@wp-playground/blueprints 0.6.7 → 0.6.9

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
@@ -187,6 +187,14 @@ declare class PHPResponse implements PHPResponseData {
187
187
  export interface PHPRequestEndEvent {
188
188
  type: "request.end";
189
189
  }
190
+ /**
191
+ * Represents an error event related to the PHP request.
192
+ */
193
+ export interface PHPRequestErrorEvent {
194
+ type: "request.error";
195
+ error: Error;
196
+ source?: "request" | "php-wasm";
197
+ }
190
198
  /**
191
199
  * Represents a PHP runtime initialization event.
192
200
  */
@@ -204,7 +212,7 @@ export interface PHPRuntimeBeforeDestroyEvent {
204
212
  * This is intentionally not an extension of CustomEvent
205
213
  * to make it isomorphic between different JavaScript runtimes.
206
214
  */
207
- export type PHPEvent = PHPRequestEndEvent | PHPRuntimeInitializedEvent | PHPRuntimeBeforeDestroyEvent;
215
+ export type PHPEvent = PHPRequestEndEvent | PHPRequestErrorEvent | PHPRuntimeInitializedEvent | PHPRuntimeBeforeDestroyEvent;
208
216
  /**
209
217
  * A callback function that handles PHP events.
210
218
  */
@@ -651,11 +659,6 @@ export interface PHPRunOptions {
651
659
  * The code snippet to eval instead of a php file.
652
660
  */
653
661
  code?: string;
654
- /**
655
- * Whether to throw an error if the PHP process exits with a non-zero code
656
- * or outputs to stderr.
657
- */
658
- throwOnError?: boolean;
659
662
  }
660
663
  export interface RmDirOptions {
661
664
  /**
@@ -1490,8 +1493,7 @@ export declare const defineWpConfigConsts: StepHandler<DefineWpConfigConstsStep>
1490
1493
  * <code>
1491
1494
  * {
1492
1495
  * "step": "activateTheme",
1493
- * "pluginName": "Storefront",
1494
- * "pluginPath": "/wordpress/wp-content/themes/storefront"
1496
+ * "themeFolderName": "storefront"
1495
1497
  * }
1496
1498
  * </code>
1497
1499
  */
@@ -1642,7 +1644,7 @@ export declare const enableMultisite: StepHandler<EnableMultisiteStep>;
1642
1644
  *
1643
1645
  * <code>
1644
1646
  * {
1645
- * "step": "wpCLI",
1647
+ * "step": "wp-cli",
1646
1648
  * "command": "wp post create --post_title='Test post' --post_excerpt='Some content'"
1647
1649
  * }
1648
1650
  * </code>
@@ -1729,8 +1731,31 @@ export interface Blueprint {
1729
1731
  * Optional description. It doesn't do anything but is exposed as
1730
1732
  * a courtesy to developers who may want to document which blueprint
1731
1733
  * file does what.
1734
+ *
1735
+ * @deprecated Use meta.description instead.
1732
1736
  */
1733
1737
  description?: string;
1738
+ /**
1739
+ * Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints
1740
+ */
1741
+ meta?: {
1742
+ /**
1743
+ * A clear and concise name for your Blueprint.
1744
+ */
1745
+ title: string;
1746
+ /**
1747
+ * A brief explanation of what your Blueprint offers.
1748
+ */
1749
+ description?: string;
1750
+ /**
1751
+ * A GitHub username of the author of this Blueprint.
1752
+ */
1753
+ author: string;
1754
+ /**
1755
+ * Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org.
1756
+ */
1757
+ categories?: string[];
1758
+ };
1734
1759
  /**
1735
1760
  * The preferred PHP and WordPress versions to use.
1736
1761
  */