PlaygroundClient
Hierarchy
- RemoteAPI<PlaygroundWorkerEndpoint & WebClientMixin>
- PlaygroundClient
Index
Properties
Methods
Properties
addEventListener
backfillStaticFilesRemovedFromMinifiedBuild
booted
hasCachedStaticFilesRemovedFromMinifiedBuild
isConnected
Resolves to true when the remote API is ready for Comlink communication, but not necessarily fully initialized yet.
Type declaration
Returns Promise<void>
isReady
Resolves to true when the remote API is declares it's fully loaded and ready to be used.
Type declaration
Returns Promise<void>
journalFSEvents
loadedWordPressVersion
A string representing the version of WordPress that was loaded.
onDownloadProgress
The onDownloadProgress event listener.
removeEventListener
replayFSJournal
requestedWordPressVersion
A string representing the requested version of WordPress.
scope
A string representing the scope of the Playground instance.
unmounts
Methods
boot
Parameters
rest...args: [WorkerBootOptions]
Returns Promise<void>
getCurrentURL
Parameters
rest...args: []
Returns Promise<string>
getMinifiedWordPressVersions
Parameters
rest...args: []
Returns Promise<{ all: { 6.3: string; 6.4: string; 6.5: string; 6.6: string; 6.7: string; 6.8: string; beta: string; nightly: string }; latest: string }>
getWordPressModuleDetails
Parameters
rest...args: []
Returns Promise<{ majorVersion: string; staticAssetsDirectory: string }>
WordPress module details, including the static assets directory and default theme.
goTo
Parameters
rest...args: [requestedPath: string]
Returns Promise<void>
hasOpfsMount
Parameters
rest...args: [mountpoint: string]
Returns Promise<false> | Promise<true>
mountOpfs
Parameters
rest...args: [options: MountDescriptor, onProgress?: SyncProgressCallback]
Returns Promise<void>
onMessage
Parameters
rest...args: [listener: any]
Returns Promise<() => Promise<void>>
onNavigation
Parameters
rest...args: [fn: (url: string) => void]
Returns Promise<void>
setIframeSandboxFlags
Parameters
rest...args: [flags: string[]]
Returns Promise<void>
setLoaded
Parameters
rest...args: []
Returns Promise<void>
setProgress
Parameters
rest...args: [options: ProgressBarOptions]
Returns Promise<void>
unmountOpfs
Parameters
rest...args: [mountpoint: string]
Returns Promise<void>
The Playground Client interface.