@wp-playground/blueprints 3.0.8 → 3.0.12

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.
@@ -8,7 +8,7 @@ import type { StepHandler } from '.';
8
8
  * <code>
9
9
  * {
10
10
  * "step": "runPHP",
11
- * "code": "<?php require_once 'wordpress/wp-load.php'; wp_insert_post(array('post_title' => 'wp-load.php required for WP functionality', 'post_status' => 'publish')); ?>"
11
+ * "code": "<?php require_once '/wordpress/wp-load.php'; wp_insert_post(array('post_title' => 'wp-load.php required for WP functionality', 'post_status' => 'publish')); ?>"
12
12
  * }
13
13
  * </code>
14
14
  */
@@ -27,6 +27,6 @@ export interface RunPHPStep {
27
27
  }
28
28
  /**
29
29
  * Runs PHP code.
30
- * When running WordPress functions, the `code` key must first load [`wp-load.php`](https://github.com/WordPress/WordPress/blob/master/wp-load.php) and start with `"<?php require_once 'wordpress/wp-load.php'; "`.
30
+ * When running WordPress functions, the `code` key must first load [`wp-load.php`](https://github.com/WordPress/WordPress/blob/master/wp-load.php) and start with `"<?php require_once '/wordpress/wp-load.php'; "`.
31
31
  */
32
32
  export declare const runPHP: StepHandler<RunPHPStep, Promise<PHPResponse>>;
@@ -39,15 +39,18 @@ export type UrlReference = {
39
39
  /** Optional caption for displaying a progress message */
40
40
  caption?: string;
41
41
  };
42
+ type GitDirectoryRefType = 'branch' | 'tag' | 'commit' | 'refname';
42
43
  export type GitDirectoryReference = {
43
44
  /** Identifies the file resource as a git directory */
44
45
  resource: 'git:directory';
45
46
  /** The URL of the git repository */
46
47
  url: string;
47
- /** The branch of the git repository */
48
+ /** The ref (branch, tag, or commit) of the git repository */
48
49
  ref: string;
49
- /** The path to the directory in the git repository */
50
- path: string;
50
+ /** Explicit hint about the ref type (branch, tag, commit, refname) */
51
+ refType?: GitDirectoryRefType;
52
+ /** The path to the directory in the git repository. Defaults to the repo root. */
53
+ path?: string;
51
54
  };
52
55
  export interface Directory {
53
56
  files: FileTree;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/blueprints",
3
- "version": "3.0.8",
3
+ "version": "3.0.12",
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": "a1128d0626073076640e7acd088cd3c9c70916c2",
24
+ "gitHead": "75715549fdb6064f4fa335e65bc5718e2177c229",
25
25
  "engines": {
26
26
  "node": ">=20.18.3",
27
27
  "npm": ">=10.1.0"
@@ -41,30 +41,33 @@
41
41
  "pako": "1.0.10",
42
42
  "pify": "2.3.0",
43
43
  "readable-stream": "3.6.2",
44
- "sha.js": "2.4.11",
44
+ "sha.js": "2.4.12",
45
45
  "simple-get": "4.0.1",
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.8",
50
- "@wp-playground/storage": "3.0.8",
51
- "@wp-playground/common": "3.0.8",
52
- "@php-wasm/universal": "3.0.8",
53
- "@php-wasm/util": "3.0.8",
54
- "@php-wasm/node": "3.0.8",
55
- "@wp-playground/wordpress": "3.0.8",
56
- "@php-wasm/logger": "3.0.8",
57
- "@php-wasm/progress": "3.0.8",
58
- "@php-wasm/stream-compression": "3.0.8",
59
- "@php-wasm/web": "3.0.8"
49
+ "@php-wasm/node-polyfills": "3.0.12",
50
+ "@wp-playground/storage": "3.0.12",
51
+ "@wp-playground/common": "3.0.12",
52
+ "@php-wasm/universal": "3.0.12",
53
+ "@php-wasm/util": "3.0.12",
54
+ "@php-wasm/node": "3.0.12",
55
+ "@wp-playground/wordpress": "3.0.12",
56
+ "@php-wasm/logger": "3.0.12",
57
+ "@php-wasm/progress": "3.0.12",
58
+ "@php-wasm/stream-compression": "3.0.12",
59
+ "@php-wasm/web": "3.0.12"
60
60
  },
61
+ "packageManager": "npm@10.9.2",
61
62
  "overrides": {
62
63
  "rollup": "^4.34.6",
63
64
  "react": "18.3.1",
64
65
  "react-dom": "18.3.1",
65
66
  "typescript": "5.4.5",
66
67
  "@playwright/test": "1.47.1",
67
- "ws": "^8.18.0"
68
+ "ws": "^8.18.0",
69
+ "tmp": "0.2.5",
70
+ "form-data": "^4.0.4"
68
71
  },
69
72
  "optionalDependencies": {
70
73
  "fs-ext": "2.1.1"