@wp-playground/blueprints 0.6.9 → 0.6.10

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.d.ts CHANGED
@@ -687,7 +687,7 @@ declare const SupportedPHPVersions: readonly [
687
687
  ];
688
688
  export type SupportedPHPVersion = (typeof SupportedPHPVersions)[number];
689
689
  export type SupportedPHPExtension = "iconv" | "mbstring" | "xml-bundle" | "gd";
690
- export type SupportedPHPExtensionBundle = "kitchen-sink";
690
+ export type SupportedPHPExtensionBundle = "kitchen-sink" | "light";
691
691
  export interface SemaphoreOptions {
692
692
  concurrency: number;
693
693
  }
@@ -1587,33 +1587,31 @@ export interface ImportWordPressFilesStep<ResourceType> {
1587
1587
  */
1588
1588
  export declare const importWordPressFiles: StepHandler<ImportWordPressFilesStep<File>>;
1589
1589
  /**
1590
- * @inheritDoc importFile
1590
+ * @inheritDoc importWxr
1591
1591
  * @example
1592
1592
  *
1593
1593
  * <code>
1594
1594
  * {
1595
- * "step": "importFile",
1595
+ * "step": "importWxr",
1596
1596
  * "file": {
1597
1597
  * "resource": "url",
1598
- * "url": "https://your-site.com/starter-content.wxz"
1598
+ * "url": "https://your-site.com/starter-content.wxr"
1599
1599
  * }
1600
1600
  * }
1601
1601
  * </code>
1602
1602
  */
1603
- export interface ImportFileStep<ResourceType> {
1604
- step: "importFile";
1603
+ export interface ImportWxrStep<ResourceType> {
1604
+ step: "importWxr";
1605
1605
  /** The file to import */
1606
1606
  file: ResourceType;
1607
1607
  }
1608
1608
  /**
1609
- * Uploads a file to the WordPress importer and returns the response.
1610
- * Supports both WXR and WXZ files.
1609
+ * Imports a WXR file into WordPress.
1611
1610
  *
1612
- * @see https://github.com/WordPress/wordpress-importer/compare/master...akirk:wordpress-importer:import-wxz.patch
1613
1611
  * @param playground Playground client.
1614
1612
  * @param file The file to import.
1615
1613
  */
1616
- export declare const importFile: StepHandler<ImportFileStep<File>>;
1614
+ export declare const importWxr: StepHandler<ImportWxrStep<File>>;
1617
1615
  /**
1618
1616
  * @inheritDoc enableMultisite
1619
1617
  * @hasRunnableExample
@@ -1678,7 +1676,7 @@ export type StepDefinition = Step & {
1678
1676
  * If you add a step here, make sure to also
1679
1677
  * add it to the exports below.
1680
1678
  */
1681
- 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> | WPCLIStep;
1679
+ export type GenericStep<Resource> = ActivatePluginStep | ActivateThemeStep | CpStep | DefineWpConfigConstsStep | DefineSiteUrlStep | EnableMultisiteStep | ImportWxrStep<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> | WPCLIStep;
1682
1680
  /**
1683
1681
  * Progress reporting details.
1684
1682
  */
@@ -1699,14 +1697,6 @@ php: UniversalPHP, args: Omit<S, "step">, progressArgs?: StepProgress) => Return
1699
1697
  * @returns WXR file
1700
1698
  */
1701
1699
  export declare function exportWXR(playground: UniversalPHP): Promise<File>;
1702
- /**
1703
- * Exports the WordPress database as a WXZ file using
1704
- * the export-wxz plugin from https://github.com/akirk/export-wxz.
1705
- *
1706
- * @param playground Playground client
1707
- * @returns WXZ file
1708
- */
1709
- export declare function exportWXZ(playground: UniversalPHP): Promise<File>;
1710
1700
  export interface ZipWpContentOptions {
1711
1701
  /**
1712
1702
  * @private