@wp-playground/blueprints 3.0.8 → 3.0.13

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,20 @@ 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;
54
+ /** When true, include a `.git` directory with Git metadata (experimental). */
55
+ '.git'?: boolean;
51
56
  };
52
57
  export interface Directory {
53
58
  files: FileTree;
@@ -204,6 +209,10 @@ export declare class GitDirectoryResource extends Resource<Directory> {
204
209
  name: string;
205
210
  files: Record<string, any>;
206
211
  }>;
212
+ /**
213
+ * Generate a nice, non-empty filename – the installPlugin step depends on it.
214
+ */
215
+ get filename(): string;
207
216
  /** @inheritDoc */
208
217
  get name(): string;
209
218
  }
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.13",
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": "26e75279df438946c3fc81c12a47fae483f0ff3a",
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.13",
50
+ "@wp-playground/storage": "3.0.13",
51
+ "@wp-playground/common": "3.0.13",
52
+ "@php-wasm/universal": "3.0.13",
53
+ "@php-wasm/util": "3.0.13",
54
+ "@php-wasm/node": "3.0.13",
55
+ "@wp-playground/wordpress": "3.0.13",
56
+ "@php-wasm/logger": "3.0.13",
57
+ "@php-wasm/progress": "3.0.13",
58
+ "@php-wasm/stream-compression": "3.0.13",
59
+ "@php-wasm/web": "3.0.13"
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"