@wp-playground/blueprints 3.0.1 → 3.0.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/lib/types.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import type { Filesystem } from '@wp-playground/storage';
2
- import type { V2Schema } from './v2/wep-1-blueprint-v2-schema/appendix-A-blueprint-v2-schema';
3
2
  import type { BlueprintV1, BlueprintV1Declaration } from './v1/types';
4
- import type { RawBlueprintV2Data } from './v2/blueprint-v2-declaration';
3
+ import type { BlueprintV2, BlueprintV2Declaration } from './v2/blueprint-v2-declaration';
5
4
  /**
6
5
  * A filesystem structure containing a /blueprint.json file and any
7
6
  * resources referenced by that blueprint.
8
7
  */
9
8
  export type BlueprintBundle = Filesystem;
10
- export type BlueprintDeclaration = BlueprintV1Declaration | RawBlueprintV2Data;
11
- export type Blueprint = BlueprintV1 | V2Schema.BlueprintV2;
9
+ export type BlueprintDeclaration = BlueprintV1Declaration | BlueprintV2Declaration;
10
+ export type Blueprint = BlueprintV1 | BlueprintV2;
@@ -1,10 +1,15 @@
1
+ import type { BlueprintBundle } from '../types';
1
2
  import type { BlueprintV1Declaration } from '../v1/types';
2
- export type RawBlueprintV2Data = string | BlueprintV1Declaration | undefined;
3
- export type ParsedBlueprintV2String = {
3
+ import type { V2Schema } from './wep-1-blueprint-v2-schema/appendix-A-blueprint-v2-schema';
4
+ type BlueprintV2Declaration = V2Schema.BlueprintV2;
5
+ export type BlueprintV2 = BlueprintV2Declaration | BlueprintBundle;
6
+ export type { BlueprintV2Declaration };
7
+ export type RawBlueprintV2Data = string | BlueprintV2Declaration | undefined;
8
+ export type ParsedBlueprintV1orV2String = {
4
9
  type: 'inline-file';
5
10
  contents: string;
6
11
  } | {
7
12
  type: 'file-reference';
8
13
  reference: string;
9
14
  };
10
- export declare function parseBlueprintDeclaration(source: RawBlueprintV2Data | ParsedBlueprintV2String): ParsedBlueprintV2String;
15
+ export declare function parseBlueprintDeclaration(source: RawBlueprintV2Data | ParsedBlueprintV1orV2String | BlueprintV1Declaration): ParsedBlueprintV1orV2String;
@@ -1,5 +1,6 @@
1
1
  import { type StreamedPHPResponse, type UniversalPHP } from '@php-wasm/universal';
2
- import { type RawBlueprintV2Data, type ParsedBlueprintV2String } from './blueprint-v2-declaration';
2
+ import { type RawBlueprintV2Data, type ParsedBlueprintV1orV2String } from './blueprint-v2-declaration';
3
+ import type { BlueprintV1Declaration } from '../v1/types';
3
4
  export type PHPExceptionDetails = {
4
5
  exception: string;
5
6
  message: string;
@@ -24,7 +25,7 @@ export type BlueprintMessage = {
24
25
  interface RunV2Options {
25
26
  php: UniversalPHP;
26
27
  cliArgs?: string[];
27
- blueprint: RawBlueprintV2Data | ParsedBlueprintV2String;
28
+ blueprint: RawBlueprintV2Data | ParsedBlueprintV1orV2String | BlueprintV1Declaration;
28
29
  blueprintOverrides?: {
29
30
  wordpressVersion?: string;
30
31
  additionalSteps?: any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/blueprints",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
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": "9a65507f4294f48d98953edb9fc91392a8fab759",
24
+ "gitHead": "35cc84863d9e92c1e6a5d354bb0727673b461216",
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": "3.0.1",
50
- "@wp-playground/storage": "3.0.1",
51
- "@php-wasm/universal": "3.0.1",
52
- "@wp-playground/common": "3.0.1",
53
- "@php-wasm/util": "3.0.1",
54
- "@php-wasm/node": "3.0.1",
55
- "@wp-playground/wordpress": "3.0.1",
56
- "@php-wasm/logger": "3.0.1",
57
- "@php-wasm/progress": "3.0.1",
58
- "@php-wasm/stream-compression": "3.0.1",
59
- "@php-wasm/web": "3.0.1"
49
+ "@php-wasm/node-polyfills": "3.0.2",
50
+ "@wp-playground/storage": "3.0.2",
51
+ "@php-wasm/universal": "3.0.2",
52
+ "@wp-playground/common": "3.0.2",
53
+ "@php-wasm/util": "3.0.2",
54
+ "@php-wasm/node": "3.0.2",
55
+ "@wp-playground/wordpress": "3.0.2",
56
+ "@php-wasm/logger": "3.0.2",
57
+ "@php-wasm/progress": "3.0.2",
58
+ "@php-wasm/stream-compression": "3.0.2",
59
+ "@php-wasm/web": "3.0.2"
60
60
  },
61
61
  "overrides": {
62
62
  "rollup": "^4.34.6",