@wp-playground/client 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +41 -385
- package/index.d.ts +3 -18
- package/index.js +1029 -1534
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -364,7 +364,7 @@ export interface IsomorphicLocalPHP extends RequestHandler {
|
|
|
364
364
|
* @param key - The name of the constant.
|
|
365
365
|
* @param value - The value of the constant.
|
|
366
366
|
*/
|
|
367
|
-
defineConstant(key: string, value: string | number | null): void;
|
|
367
|
+
defineConstant(key: string, value: boolean | string | number | null): void;
|
|
368
368
|
/**
|
|
369
369
|
* Adds an event listener for a PHP event.
|
|
370
370
|
* @param eventType - The type of event to listen for.
|
|
@@ -1172,21 +1172,6 @@ export interface ActivatePluginStep {
|
|
|
1172
1172
|
* @param playground The playground client.
|
|
1173
1173
|
*/
|
|
1174
1174
|
export declare const activatePlugin: StepHandler<ActivatePluginStep>;
|
|
1175
|
-
/**
|
|
1176
|
-
* @private
|
|
1177
|
-
*/
|
|
1178
|
-
export interface ApplyWordPressPatchesStep {
|
|
1179
|
-
step: "applyWordPressPatches";
|
|
1180
|
-
siteUrl?: string;
|
|
1181
|
-
wordpressPath?: string;
|
|
1182
|
-
addPhpInfo?: boolean;
|
|
1183
|
-
patchSecrets?: boolean;
|
|
1184
|
-
disableSiteHealth?: boolean;
|
|
1185
|
-
disableWpNewBlogNotification?: boolean;
|
|
1186
|
-
prepareForRunningInsideWebBrowser?: boolean;
|
|
1187
|
-
addFetchNetworkTransport?: boolean;
|
|
1188
|
-
}
|
|
1189
|
-
export declare const applyWordPressPatches: StepHandler<ApplyWordPressPatchesStep>;
|
|
1190
1175
|
/**
|
|
1191
1176
|
* @inheritDoc defineSiteUrl
|
|
1192
1177
|
* @hasRunnableExample
|
|
@@ -1878,7 +1863,7 @@ export declare const importFile: StepHandler<ImportFileStep<File>>;
|
|
|
1878
1863
|
*
|
|
1879
1864
|
* <code>
|
|
1880
1865
|
* {
|
|
1881
|
-
* "step": "enableMultisite"
|
|
1866
|
+
* "step": "enableMultisite"
|
|
1882
1867
|
* }
|
|
1883
1868
|
* </code>
|
|
1884
1869
|
*/
|
|
@@ -1911,7 +1896,7 @@ export type StepDefinition = Step & {
|
|
|
1911
1896
|
* If you add a step here, make sure to also
|
|
1912
1897
|
* add it to the exports below.
|
|
1913
1898
|
*/
|
|
1914
|
-
export type GenericStep<Resource> = ActivatePluginStep | ActivateThemeStep |
|
|
1899
|
+
export type GenericStep<Resource> = ActivatePluginStep | ActivateThemeStep | CpStep | DefineWpConfigConstsStep | DefineSiteUrlStep | EnableMultisiteStep | ImportFileStep<Resource> | ImportWordPressFilesStep<Resource> | InstallPluginStep<Resource> | InstallThemeStep<Resource> | LoginStep | MkdirStep | MvStep | RequestStep | RmStep | RmdirStep | RunPHPStep | RunPHPWithOptionsStep | RunWpInstallationWizardStep | RunSqlStep<Resource> | SetPhpIniEntryStep | SetSiteOptionsStep | UnzipStep<Resource> | UpdateUserMetaStep | WriteFileStep<Resource>;
|
|
1915
1900
|
/**
|
|
1916
1901
|
* Progress reporting details.
|
|
1917
1902
|
*/
|