@wp-playground/blueprints 1.0.12 → 1.0.14
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 +2 -2
- package/blueprint-schema.json +1 -1
- package/index.cjs +41 -41
- package/index.js +1913 -1869
- package/lib/steps/install-plugin.d.ts +2 -2
- package/lib/steps/set-site-language.d.ts +6 -0
- package/package.json +11 -11
|
@@ -44,8 +44,8 @@ export interface InstallPluginStep<FileResource, DirectoryResource> extends Pick
|
|
|
44
44
|
*/
|
|
45
45
|
step: 'installPlugin';
|
|
46
46
|
/**
|
|
47
|
-
* The plugin files to install. It can be
|
|
48
|
-
* directory containing all the plugin files at its root.
|
|
47
|
+
* The plugin files to install. It can be a plugin zip file, a single PHP
|
|
48
|
+
* file, or a directory containing all the plugin files at its root.
|
|
49
49
|
*/
|
|
50
50
|
pluginData: FileResource | DirectoryResource;
|
|
51
51
|
/**
|
|
@@ -16,6 +16,12 @@ export interface SetSiteLanguageStep {
|
|
|
16
16
|
/** The language to set, e.g. 'en_US' */
|
|
17
17
|
language: string;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Infers the translation package URL for a given WordPress version.
|
|
21
|
+
*
|
|
22
|
+
* If it cannot be inferred, the latest translation package will be used instead.
|
|
23
|
+
*/
|
|
24
|
+
export declare const getWordPressTranslationUrl: (wpVersion: string, language: string, latestBetaWordPressVersion?: string, latestStableWordPressVersion?: string) => Promise<string>;
|
|
19
25
|
/**
|
|
20
26
|
* Sets the site language and download translations.
|
|
21
27
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wp-playground/blueprints",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
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": "4d191fdd33db1949e51d54e2b03decbb103db4ac",
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=18.18.0",
|
|
27
27
|
"npm": ">=8.11.0"
|
|
@@ -44,14 +44,14 @@
|
|
|
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
|
-
"@wp-playground/wordpress": "1.0.
|
|
47
|
+
"@php-wasm/node-polyfills": "1.0.14",
|
|
48
|
+
"@php-wasm/universal": "1.0.14",
|
|
49
|
+
"@wp-playground/common": "1.0.14",
|
|
50
|
+
"@php-wasm/node": "1.0.14",
|
|
51
|
+
"@php-wasm/progress": "1.0.14",
|
|
52
|
+
"@php-wasm/util": "1.0.14",
|
|
53
|
+
"@php-wasm/logger": "1.0.14",
|
|
54
|
+
"@wp-playground/storage": "1.0.14",
|
|
55
|
+
"@wp-playground/wordpress": "1.0.14"
|
|
56
56
|
}
|
|
57
57
|
}
|