@wp-playground/blueprints 1.0.15 → 1.0.17

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.
@@ -143,11 +143,12 @@ export declare class LiteralResource extends Resource<File> {
143
143
  */
144
144
  export declare abstract class FetchResource extends Resource<File> {
145
145
  _progress?: ProgressTracker | undefined;
146
+ private corsProxy?;
146
147
  /**
147
148
  * Creates a new instance of `FetchResource`.
148
149
  * @param progress The progress tracker.
149
150
  */
150
- constructor(_progress?: ProgressTracker | undefined);
151
+ constructor(_progress?: ProgressTracker | undefined, corsProxy?: string | undefined);
151
152
  /** @inheritDoc */
152
153
  resolve(): Promise<File>;
153
154
  /**
@@ -170,12 +171,15 @@ export declare abstract class FetchResource extends Resource<File> {
170
171
  */
171
172
  export declare class UrlResource extends FetchResource {
172
173
  private resource;
174
+ private options?;
173
175
  /**
174
176
  * Creates a new instance of `UrlResource`.
175
177
  * @param resource The URL reference.
176
178
  * @param progress The progress tracker.
177
179
  */
178
- constructor(resource: UrlReference, progress?: ProgressTracker);
180
+ constructor(resource: UrlReference, progress?: ProgressTracker, options?: {
181
+ corsProxy?: string | undefined;
182
+ } | undefined);
179
183
  /** @inheritDoc */
180
184
  getURL(): string;
181
185
  /** @inheritDoc */
@@ -17,6 +17,20 @@ export interface ImportWxrStep<ResourceType> {
17
17
  step: 'importWxr';
18
18
  /** The file to import */
19
19
  file: ResourceType;
20
+ /**
21
+ * The importer to use. Possible values:
22
+ *
23
+ * - `default`: The importer from https://github.com/humanmade/WordPress-Importer
24
+ * - `data-liberation`: The experimental Data Liberation WXR importer developed at
25
+ * https://github.com/WordPress/wordpress-playground/issues/1894
26
+ *
27
+ * This option is deprecated. The syntax will not be removed, but once the
28
+ * Data Liberation importer matures, it will become the only supported
29
+ * importer and the `importer` option will be ignored.
30
+ *
31
+ * @deprecated
32
+ */
33
+ importer?: 'data-liberation' | 'default';
20
34
  }
21
35
  /**
22
36
  * Imports a WXR file into WordPress.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/blueprints",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
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": "916516040522ab257109dd617bfcc493bb4f2eb1",
24
+ "gitHead": "c6b9b151a8baf922d23294d953e346458b9616cb",
25
25
  "engines": {
26
26
  "node": ">=18.18.0",
27
27
  "npm": ">=8.11.0"
@@ -44,14 +44,15 @@
44
44
  "sha.js": "2.4.11",
45
45
  "simple-get": "4.0.1",
46
46
  "wasm-feature-detect": "1.8.0",
47
- "@php-wasm/node-polyfills": "1.0.15",
48
- "@php-wasm/universal": "1.0.15",
49
- "@wp-playground/common": "1.0.15",
50
- "@php-wasm/node": "1.0.15",
51
- "@php-wasm/progress": "1.0.15",
52
- "@php-wasm/util": "1.0.15",
53
- "@php-wasm/logger": "1.0.15",
54
- "@wp-playground/storage": "1.0.15",
55
- "@wp-playground/wordpress": "1.0.15"
47
+ "@php-wasm/node-polyfills": "1.0.17",
48
+ "@php-wasm/universal": "1.0.17",
49
+ "@wp-playground/common": "1.0.17",
50
+ "@php-wasm/node": "1.0.17",
51
+ "@php-wasm/progress": "1.0.17",
52
+ "@php-wasm/util": "1.0.17",
53
+ "@php-wasm/logger": "1.0.17",
54
+ "@wp-playground/storage": "1.0.17",
55
+ "@php-wasm/web": "1.0.17",
56
+ "@wp-playground/wordpress": "1.0.17"
56
57
  }
57
58
  }