@wp-playground/blueprints 0.6.6 → 0.6.8

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,13 @@ 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
+ }
190
197
  /**
191
198
  * Represents a PHP runtime initialization event.
192
199
  */
@@ -204,7 +211,7 @@ export interface PHPRuntimeBeforeDestroyEvent {
204
211
  * This is intentionally not an extension of CustomEvent
205
212
  * to make it isomorphic between different JavaScript runtimes.
206
213
  */
207
- export type PHPEvent = PHPRequestEndEvent | PHPRuntimeInitializedEvent | PHPRuntimeBeforeDestroyEvent;
214
+ export type PHPEvent = PHPRequestEndEvent | PHPRequestErrorEvent | PHPRuntimeInitializedEvent | PHPRuntimeBeforeDestroyEvent;
208
215
  /**
209
216
  * A callback function that handles PHP events.
210
217
  */
@@ -1490,8 +1497,7 @@ export declare const defineWpConfigConsts: StepHandler<DefineWpConfigConstsStep>
1490
1497
  * <code>
1491
1498
  * {
1492
1499
  * "step": "activateTheme",
1493
- * "pluginName": "Storefront",
1494
- * "pluginPath": "/wordpress/wp-content/themes/storefront"
1500
+ * "themeFolderName": "storefront"
1495
1501
  * }
1496
1502
  * </code>
1497
1503
  */
@@ -1729,8 +1735,31 @@ export interface Blueprint {
1729
1735
  * Optional description. It doesn't do anything but is exposed as
1730
1736
  * a courtesy to developers who may want to document which blueprint
1731
1737
  * file does what.
1738
+ *
1739
+ * @deprecated Use meta.description instead.
1732
1740
  */
1733
1741
  description?: string;
1742
+ /**
1743
+ * Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints
1744
+ */
1745
+ meta?: {
1746
+ /**
1747
+ * A clear and concise name for your Blueprint.
1748
+ */
1749
+ title: string;
1750
+ /**
1751
+ * A brief explanation of what your Blueprint offers.
1752
+ */
1753
+ description?: string;
1754
+ /**
1755
+ * A GitHub username of the author of this Blueprint.
1756
+ */
1757
+ author: string;
1758
+ /**
1759
+ * Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org.
1760
+ */
1761
+ categories?: string[];
1762
+ };
1734
1763
  /**
1735
1764
  * The preferred PHP and WordPress versions to use.
1736
1765
  */