@wp-playground/blueprints 2.0.15 → 2.0.16

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.
@@ -0,0 +1,10 @@
1
+ import type { BlueprintDeclaration } from '../blueprint';
2
+ export type BlueprintV2Declaration = string | BlueprintDeclaration | undefined;
3
+ export type ParsedBlueprintV2Declaration = {
4
+ type: 'inline-file';
5
+ contents: string;
6
+ } | {
7
+ type: 'file-reference';
8
+ reference: string;
9
+ };
10
+ export declare function parseBlueprintDeclaration(source: BlueprintV2Declaration | ParsedBlueprintV2Declaration): ParsedBlueprintV2Declaration;
@@ -0,0 +1 @@
1
+ export declare function getV2Runner(): Promise<File>;
@@ -0,0 +1,35 @@
1
+ import { type StreamedPHPResponse, type UniversalPHP } from '@php-wasm/universal';
2
+ import { type BlueprintV2Declaration, type ParsedBlueprintV2Declaration } from './blueprint-v2-declaration';
3
+ export type PHPExceptionDetails = {
4
+ exception: string;
5
+ message: string;
6
+ file: string;
7
+ line: number;
8
+ trace: string;
9
+ };
10
+ export type BlueprintMessage = {
11
+ type: 'blueprint.target_resolved';
12
+ } | {
13
+ type: 'blueprint.progress';
14
+ progress: number;
15
+ caption: string;
16
+ } | {
17
+ type: 'blueprint.error';
18
+ message: string;
19
+ details?: PHPExceptionDetails;
20
+ } | {
21
+ type: 'blueprint.completion';
22
+ message: string;
23
+ };
24
+ interface RunV2Options {
25
+ php: UniversalPHP;
26
+ cliArgs?: string[];
27
+ blueprint: BlueprintV2Declaration | ParsedBlueprintV2Declaration;
28
+ blueprintOverrides?: {
29
+ wordpressVersion?: string;
30
+ additionalSteps?: any[];
31
+ };
32
+ onMessage?: (message: BlueprintMessage) => void | Promise<void>;
33
+ }
34
+ export declare function runBlueprintV2(options: RunV2Options): Promise<StreamedPHPResponse>;
35
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/blueprints",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./index.js",
@@ -21,7 +21,7 @@
21
21
  "access": "public",
22
22
  "directory": "../../../dist/packages/playground/blueprints"
23
23
  },
24
- "gitHead": "f3f73a4fc48bbe3ae099da4c1418d2f125d16d0a",
24
+ "gitHead": "3587b829420250e2de23d2643151da75c0ccdbec",
25
25
  "engines": {
26
26
  "node": ">=20.18.3",
27
27
  "npm": ">=10.1.0"
@@ -46,17 +46,17 @@
46
46
  "wasm-feature-detect": "1.8.0",
47
47
  "ws": "8.18.1",
48
48
  "yargs": "17.7.2",
49
- "@php-wasm/node-polyfills": "2.0.15",
50
- "@php-wasm/universal": "2.0.15",
51
- "@php-wasm/stream-compression": "2.0.15",
52
- "@wp-playground/storage": "2.0.15",
53
- "@wp-playground/common": "2.0.15",
54
- "@php-wasm/node": "2.0.15",
55
- "@php-wasm/progress": "2.0.15",
56
- "@php-wasm/util": "2.0.15",
57
- "@php-wasm/logger": "2.0.15",
58
- "@php-wasm/web": "2.0.15",
59
- "@wp-playground/wordpress": "2.0.15"
49
+ "@php-wasm/node-polyfills": "2.0.16",
50
+ "@php-wasm/universal": "2.0.16",
51
+ "@php-wasm/stream-compression": "2.0.16",
52
+ "@wp-playground/storage": "2.0.16",
53
+ "@wp-playground/common": "2.0.16",
54
+ "@php-wasm/node": "2.0.16",
55
+ "@php-wasm/progress": "2.0.16",
56
+ "@php-wasm/util": "2.0.16",
57
+ "@php-wasm/logger": "2.0.16",
58
+ "@php-wasm/web": "2.0.16",
59
+ "@wp-playground/wordpress": "2.0.16"
60
60
  },
61
61
  "overrides": {
62
62
  "rollup": "^4.34.6",