@wp-playground/blueprints 1.0.14 → 1.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.
- package/blueprint-schema-validator.js +1016 -932
- package/blueprint-schema.json +6 -0
- package/index.cjs +178 -63
- package/index.js +3218 -3016
- package/lib/resources.d.ts +6 -2
- package/lib/steps/import-wxr.d.ts +14 -0
- package/package.json +12 -11
package/lib/resources.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.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": "
|
|
24
|
+
"gitHead": "bb91e62fb28611a9d447a182aff26dcfced2bb2e",
|
|
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.
|
|
48
|
-
"@php-wasm/universal": "1.0.
|
|
49
|
-
"@wp-playground/common": "1.0.
|
|
50
|
-
"@php-wasm/node": "1.0.
|
|
51
|
-
"@php-wasm/progress": "1.0.
|
|
52
|
-
"@php-wasm/util": "1.0.
|
|
53
|
-
"@php-wasm/logger": "1.0.
|
|
54
|
-
"@wp-playground/storage": "1.0.
|
|
55
|
-
"@
|
|
47
|
+
"@php-wasm/node-polyfills": "1.0.16",
|
|
48
|
+
"@php-wasm/universal": "1.0.16",
|
|
49
|
+
"@wp-playground/common": "1.0.16",
|
|
50
|
+
"@php-wasm/node": "1.0.16",
|
|
51
|
+
"@php-wasm/progress": "1.0.16",
|
|
52
|
+
"@php-wasm/util": "1.0.16",
|
|
53
|
+
"@php-wasm/logger": "1.0.16",
|
|
54
|
+
"@wp-playground/storage": "1.0.16",
|
|
55
|
+
"@php-wasm/web": "1.0.16",
|
|
56
|
+
"@wp-playground/wordpress": "1.0.16"
|
|
56
57
|
}
|
|
57
58
|
}
|