@wordpress/build 0.24.1-next.v.202609171837.0 → 0.26.0

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/CHANGELOG.md CHANGED
@@ -2,7 +2,43 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 0.24.0-next.0 (2026-09-17)
5
+ ## 0.26.0 (2026-10-20)
6
+
7
+ ### Breaking Changes
8
+
9
+ - Remove the automatic Babel processing for `packages/components`, including the Emotion transform, implicit project Babel configuration support, and build-time dependencies. Projects that rely on these transforms must run Babel separately before `@wordpress/build` ([#84707](https://github.com/WordPress/gutenberg/pull/84707)).
10
+ - Raise the minimum required Node.js version to `>=22.13.0`, for stable `require(esm)` support ([#84313](https://github.com/WordPress/gutenberg/pull/84313)).
11
+
12
+ ### New Features
13
+
14
+ - Support importing `.svg` files from JavaScript. The SVG is inlined into the bundle (and into transpiled packages) and the import resolves to a `data:` URI ([#85147](https://github.com/WordPress/gutenberg/pull/85147)).
15
+ - Add a `{prefix}_{page_slug}_wp_admin_preload_paths` filter to the generated wp-admin page template, so a page can preload the REST API requests its JavaScript issues on mount ([#77353](https://github.com/WordPress/gutenberg/pull/77353)).
16
+
17
+ ### Enhancements
18
+
19
+ - Resolve development bundles with the `development` and `module` export conditions, enabling runtime diagnostics such as unsupported Emotion component selectors ([#84707](https://github.com/WordPress/gutenberg/pull/84707)).
20
+
21
+ ### Bug Fixes
22
+
23
+ - Check that `SCRIPT_DEBUG` is defined before reading it in the generated `build/scripts.php` and `build/styles.php`, like the other generated files, so they no longer throw an `Error` when loaded without WordPress defining the constant ([#83633](https://github.com/WordPress/gutenberg/pull/83633)).
24
+ - Add `generate_animated_image_subsizes` to the page template `/?_fields=` preload path, keeping it in sync with the `_fields` list in `@wordpress/core-data` ([#80385](https://github.com/WordPress/gutenberg/pull/80385)).
25
+
26
+ ### Internal
27
+
28
+ - Publish only runtime files, dropping `tsconfig.json`, the TypeScript build cache (`.cache`) and the test files from the package ([#84164](https://github.com/WordPress/gutenberg/pull/84164)).
29
+
30
+ ## 0.25.0 (2026-10-07)
31
+
32
+ ### Bug Fixes
33
+
34
+ - Add the `@babel/core` dependency, a peer of `esbuild-plugin-babel` ([#83765](https://github.com/WordPress/gutenberg/pull/83765)).
35
+ - Keep the build machine's absolute paths out of worker source maps when `wpWorkers` redirects a module with `resolve`, so the output is reproducible across checkouts ([#84163](https://github.com/WordPress/gutenberg/pull/84163)).
36
+
37
+ ### Internal
38
+
39
+ - Drop the optional `@wordpress/boot`, `@wordpress/private-apis`, and `@wordpress/route` peer dependencies, unused since they are no longer bundled ([#83601](https://github.com/WordPress/gutenberg/pull/83601)).
40
+
41
+ ## 0.24.0 (2026-09-23)
6
42
 
7
43
  ### Enhancements
8
44
 
@@ -10,6 +46,10 @@
10
46
  - Build `.cjs`, `.mts` and `.cts` source files, including route and widget entry points, and rewrite their local imports to the emitted `.mjs` or `.cjs` extension ([#83071](https://github.com/WordPress/gutenberg/pull/83071)).
11
47
  - Import route stage, inspector and canvas files by their full file name, so a route entry no longer depends on esbuild extending an extensionless path ([#83071](https://github.com/WordPress/gutenberg/pull/83071)).
12
48
 
49
+ ### Internal
50
+
51
+ - Declare `@wordpress/theme` as a dev dependency, so the types of the optional peer dependency resolve when dependencies are isolated ([#83129](https://github.com/WordPress/gutenberg/pull/83129)).
52
+
13
53
  ## 0.23.0 (2026-09-10)
14
54
 
15
55
  ### Breaking Changes
package/README.md CHANGED
@@ -441,6 +441,18 @@ This configuration:
441
441
  - **Vendors**: React, lodash, jQuery, moment are always externalized to their standard globals
442
442
  - **Asset files**: `.asset.php` files are always generated for WordPress dependency management
443
443
 
444
+ ## SVG imports
445
+
446
+ SVG files can be imported from JavaScript. The file is inlined into the JavaScript and the import resolves to a `data:` URI:
447
+
448
+ ```js
449
+ import logo from './logo.svg';
450
+
451
+ const Example = () => <img src={ logo } alt="" />;
452
+ ```
453
+
454
+ Because the SVG travels with the JavaScript, it works in bundles and in transpiled packages (`build/`, `build-module/`) without a public path or an extra file to ship. Other image formats are not supported yet.
455
+
444
456
  ## Output Structure
445
457
 
446
458
  The built tool generates several files in the `build/` directory, but the primary output is the PHP registration file.
package/lib/build.mjs CHANGED
@@ -12,7 +12,6 @@ import postcss from 'postcss';
12
12
  import autoprefixer from 'autoprefixer';
13
13
  import rtlcss from 'rtlcss';
14
14
  import cssnano from 'cssnano';
15
- import babel from 'esbuild-plugin-babel';
16
15
  import { camelCase } from 'change-case';
17
16
  import { NodePackageImporter } from 'sass-embedded';
18
17
  import {
@@ -74,6 +73,10 @@ const ROOT_DIR = process.cwd();
74
73
  const PACKAGES_DIR = path.join( ROOT_DIR, 'packages' );
75
74
  const BUILD_DIR = path.join( ROOT_DIR, 'build' );
76
75
 
76
+ /**
77
+ * esbuild loaders for non-JS imports. SVG files are inlined as `data:` URIs.
78
+ */
79
+ const LOADER_CONFIG = { '.svg': 'dataurl' };
77
80
  const ASSET_EXTENSIONS = 'json';
78
81
  const IGNORE_PATTERNS = [
79
82
  '**/benchmark/**',
@@ -139,6 +142,8 @@ const baseDefine = {
139
142
  false
140
143
  ),
141
144
  };
145
+ // Keep esbuild's module condition when enabling development exports.
146
+ const developmentConditions = [ 'development', 'module' ];
142
147
  const getDefine = ( scriptDebug ) => ( {
143
148
  ...baseDefine,
144
149
  'globalThis.SCRIPT_DEBUG': JSON.stringify( scriptDebug ),
@@ -185,7 +190,7 @@ function styleRuntimeAliasPlugin() {
185
190
  * Get SASS options for the given working directory.
186
191
  *
187
192
  * Uses NodePackageImporter from sass-embedded for resolving package imports
188
- * (like @wordpress/base-styles) which works with any package manager (npm, pnpm, yarn).
193
+ * (like `@wordpress/base-styles`) which works with any package manager (npm, pnpm, yarn).
189
194
  *
190
195
  * @param {string} workingDir - The directory where we're working (for NodePackageImporter).
191
196
  * @return {Object} SASS options object with importers and loadPaths.
@@ -553,6 +558,7 @@ async function bundlePackage( packageName, options = {} ) {
553
558
  const baseConfig = {
554
559
  entryPoints: [ entryPoint ],
555
560
  bundle: true,
561
+ loader: LOADER_CONFIG,
556
562
  sourcemap: true,
557
563
  format: 'iife',
558
564
  target,
@@ -614,6 +620,7 @@ async function bundlePackage( packageName, options = {} ) {
614
620
  outfile: path.join( outputDir, 'index.js' ),
615
621
  minify: false,
616
622
  define: getDefine( true ),
623
+ conditions: developmentConditions,
617
624
  plugins: [
618
625
  ...baseBundlePlugins,
619
626
  wordpressExternalsPlugin(
@@ -665,6 +672,7 @@ async function bundlePackage( packageName, options = {} ) {
665
672
 
666
673
  builds.push(
667
674
  esbuild.build( {
675
+ loader: LOADER_CONFIG,
668
676
  entryPoints: [ entryPoint ],
669
677
  outfile: path.join(
670
678
  rootBuildModuleDir,
@@ -696,6 +704,7 @@ async function bundlePackage( packageName, options = {} ) {
696
704
  if ( ! isWasmWorker ) {
697
705
  builds.push(
698
706
  esbuild.build( {
707
+ loader: LOADER_CONFIG,
699
708
  entryPoints: [ entryPoint ],
700
709
  outfile: path.join(
701
710
  rootBuildModuleDir,
@@ -709,6 +718,7 @@ async function bundlePackage( packageName, options = {} ) {
709
718
  platform: 'browser',
710
719
  minify: false,
711
720
  define: getDefine( true ),
721
+ conditions: developmentConditions,
712
722
  plugins: [
713
723
  styleRuntimeAliasPlugin(),
714
724
  wordpressExternalsPlugin(
@@ -916,7 +926,7 @@ async function bundlePackage( packageName, options = {} ) {
916
926
  /**
917
927
  * Infer style dependencies from script dependencies.
918
928
  * Only includes dependencies that:
919
- * 1. Are @wordpress packages (start with 'wp-')
929
+ * 1. Are `@wordpress` packages (start with 'wp-')
920
930
  * 2. Have wpScript: true in their package.json
921
931
  * 3. Actually have a built style.css file
922
932
  *
@@ -1328,19 +1338,14 @@ async function transpilePackage( packageName ) {
1328
1338
  // before worker bundling, but vips-worker.ts imports from worker-code.ts.
1329
1339
  await generateWorkerPlaceholder( packageDir, packageJson );
1330
1340
 
1331
- // Check if this is the components package that needs emotion babel plugin.
1332
- // Ideally we should remove this exception and move away from emotion.
1333
- const needsEmotionPlugin = packageName === 'components';
1334
- const emotionPlugin = babel( {
1335
- filter: /\.[cm]?[jt]sx?$/,
1336
- config: {
1337
- plugins: [ styleRuntimeRequire.resolve( '@emotion/babel-plugin' ) ],
1338
- },
1339
- } );
1340
- const externalizeAllExceptCssPlugin = {
1341
- name: 'externalize-except-css',
1341
+ /*
1342
+ * Keeps imports external so each source file is transpiled on its own,
1343
+ * except for styles and SVGs, which are processed and inlined.
1344
+ */
1345
+ const externalizeJsImportsPlugin = {
1346
+ name: 'externalize-js-imports',
1342
1347
  setup( build ) {
1343
- // Externalize all non-CSS imports
1348
+ // Externalize all imports except styles and SVGs
1344
1349
  build.onResolve( { filter: /.*/ }, async ( args ) => {
1345
1350
  // Skip recursive calls.
1346
1351
  if ( args.pluginData?.__fromExternalize ) {
@@ -1357,6 +1362,11 @@ async function transpilePackage( packageName ) {
1357
1362
  return null;
1358
1363
  }
1359
1364
 
1365
+ // Let SVG files be inlined by the `dataurl` loader.
1366
+ if ( args.path.endsWith( '.svg' ) ) {
1367
+ return null;
1368
+ }
1369
+
1360
1370
  // Fully resolve local dependencies without file extension
1361
1371
  // and replace the extension with the target extension.
1362
1372
  if ( args.path.startsWith( '.' ) ) {
@@ -1404,22 +1414,18 @@ async function transpilePackage( packageName ) {
1404
1414
  },
1405
1415
  };
1406
1416
  const plugins = [
1407
- // Note: dsTokenFallbacksJs and emotionPlugin both use esbuild's onLoad
1408
- // hook, which is non-composable — the first to return contents wins. If a
1409
- // file contains --wpds-* tokens, the Emotion transform will be skipped.
1410
- // Avoid using design tokens in Emotion styles until Emotion is removed.
1411
1417
  dsTokenFallbacksJs,
1412
- needsEmotionPlugin && emotionPlugin,
1413
1418
  wasmInlinePlugin,
1414
1419
  // CSS modules import @wordpress/style-runtime in generated JS. Resolve
1415
1420
  // that alias before externalizing imports so the runtime is bundled.
1416
1421
  ...createStyleBundlingPlugins( packageDir ),
1417
- externalizeAllExceptCssPlugin,
1422
+ externalizeJsImportsPlugin,
1418
1423
  ].filter( Boolean );
1419
1424
 
1420
1425
  if ( packageJson.main ) {
1421
1426
  builds.push(
1422
1427
  esbuild.build( {
1428
+ loader: LOADER_CONFIG,
1423
1429
  entryPoints: srcFiles,
1424
1430
  outdir: buildDir,
1425
1431
  outbase: srcDir,
@@ -1453,6 +1459,7 @@ async function transpilePackage( packageName ) {
1453
1459
  if ( packageJson.module ) {
1454
1460
  builds.push(
1455
1461
  esbuild.build( {
1462
+ loader: LOADER_CONFIG,
1456
1463
  entryPoints: srcFiles,
1457
1464
  outdir: buildModuleDir,
1458
1465
  outbase: srcDir,
@@ -1696,6 +1703,7 @@ async function buildRoute( routeName ) {
1696
1703
  // Build both minified and non-minified versions in parallel
1697
1704
  await Promise.all( [
1698
1705
  esbuild.build( {
1706
+ loader: LOADER_CONFIG,
1699
1707
  entryPoints: routeEntryPoints,
1700
1708
  outfile: path.join( outputDir, 'route.min.js' ),
1701
1709
  bundle: true,
@@ -1714,6 +1722,7 @@ async function buildRoute( routeName ) {
1714
1722
  ],
1715
1723
  } ),
1716
1724
  esbuild.build( {
1725
+ loader: LOADER_CONFIG,
1717
1726
  entryPoints: routeEntryPoints,
1718
1727
  outfile: path.join( outputDir, 'route.js' ),
1719
1728
  bundle: true,
@@ -1721,6 +1730,7 @@ async function buildRoute( routeName ) {
1721
1730
  target: getEsbuildTarget(),
1722
1731
  minify: false,
1723
1732
  define: getDefine( true ),
1733
+ conditions: developmentConditions,
1724
1734
  plugins: [
1725
1735
  styleRuntimeAliasPlugin(),
1726
1736
  wordpressExternalsPlugin(
@@ -1747,6 +1757,7 @@ async function buildRoute( routeName ) {
1747
1757
  // Build both minified and non-minified versions in parallel
1748
1758
  await Promise.all( [
1749
1759
  esbuild.build( {
1760
+ loader: LOADER_CONFIG,
1750
1761
  entryPoints: [ tempEntryPath ],
1751
1762
  outfile: path.join( outputDir, 'content.min.js' ),
1752
1763
  bundle: true,
@@ -1765,6 +1776,7 @@ async function buildRoute( routeName ) {
1765
1776
  ],
1766
1777
  } ),
1767
1778
  esbuild.build( {
1779
+ loader: LOADER_CONFIG,
1768
1780
  entryPoints: [ tempEntryPath ],
1769
1781
  outfile: path.join( outputDir, 'content.js' ),
1770
1782
  bundle: true,
@@ -1772,6 +1784,7 @@ async function buildRoute( routeName ) {
1772
1784
  target: getEsbuildTarget(),
1773
1785
  minify: false,
1774
1786
  define: getDefine( true ),
1787
+ conditions: developmentConditions,
1775
1788
  plugins: [
1776
1789
  ...createStyleBundlingPlugins( routeDir ),
1777
1790
  wordpressExternalsPlugin(
@@ -1857,6 +1870,7 @@ async function buildWidget( widgetName ) {
1857
1870
  // Build both minified and non-minified versions in parallel
1858
1871
  await Promise.all( [
1859
1872
  esbuild.build( {
1873
+ loader: LOADER_CONFIG,
1860
1874
  entryPoints: renderEntryPoints,
1861
1875
  outfile: path.join( outputDir, 'render.min.js' ),
1862
1876
  bundle: true,
@@ -1875,6 +1889,7 @@ async function buildWidget( widgetName ) {
1875
1889
  ],
1876
1890
  } ),
1877
1891
  esbuild.build( {
1892
+ loader: LOADER_CONFIG,
1878
1893
  entryPoints: renderEntryPoints,
1879
1894
  outfile: path.join( outputDir, 'render.js' ),
1880
1895
  bundle: true,
@@ -1882,6 +1897,7 @@ async function buildWidget( widgetName ) {
1882
1897
  target: getEsbuildTarget(),
1883
1898
  minify: false,
1884
1899
  define: getDefine( true ),
1900
+ conditions: developmentConditions,
1885
1901
  plugins: [
1886
1902
  ...createStyleBundlingPlugins( widgetDir ),
1887
1903
  wordpressExternalsPlugin(
@@ -1907,6 +1923,7 @@ async function buildWidget( widgetName ) {
1907
1923
  // Build both minified and non-minified versions in parallel
1908
1924
  await Promise.all( [
1909
1925
  esbuild.build( {
1926
+ loader: LOADER_CONFIG,
1910
1927
  entryPoints: widgetEntryPoints,
1911
1928
  outfile: path.join( outputDir, 'widget.min.js' ),
1912
1929
  bundle: true,
@@ -1925,6 +1942,7 @@ async function buildWidget( widgetName ) {
1925
1942
  ],
1926
1943
  } ),
1927
1944
  esbuild.build( {
1945
+ loader: LOADER_CONFIG,
1928
1946
  entryPoints: widgetEntryPoints,
1929
1947
  outfile: path.join( outputDir, 'widget.js' ),
1930
1948
  bundle: true,
@@ -1932,6 +1950,7 @@ async function buildWidget( widgetName ) {
1932
1950
  target: getEsbuildTarget(),
1933
1951
  minify: false,
1934
1952
  define: getDefine( true ),
1953
+ conditions: developmentConditions,
1935
1954
  plugins: [
1936
1955
  styleRuntimeAliasPlugin(),
1937
1956
  wordpressExternalsPlugin(
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Dependency graph utilities for WordPress packages.
3
3
  *
4
- * This module provides functions to analyze dependencies between @wordpress/* packages
4
+ * This module provides functions to analyze dependencies between `@wordpress/*` packages
5
5
  * and determine the correct build order using topological sorting.
6
6
  */
7
7
 
@@ -55,11 +55,20 @@ function createModuleRedirectPlugin( resolveMap ) {
55
55
  matchedKey,
56
56
  resolveMap[ matchedKey ]
57
57
  );
58
+ const resolveDir = path.dirname( args.path );
59
+ // A relative specifier keeps the checkout path out of the source map.
60
+ const specifier =
61
+ './' +
62
+ path
63
+ .relative( resolveDir, targetPath )
64
+ .split( path.sep )
65
+ .join( '/' );
58
66
  return {
59
67
  contents: `export { default } from ${ JSON.stringify(
60
- targetPath
68
+ specifier
61
69
  ) };`,
62
70
  loader: 'js',
71
+ resolveDir,
63
72
  };
64
73
  } );
65
74
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/build",
3
- "version": "0.24.1-next.v.202609171837.0",
3
+ "version": "0.26.0",
4
4
  "description": "Build tool for WordPress plugins.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -20,9 +20,15 @@
20
20
  "url": "https://github.com/WordPress/gutenberg/issues"
21
21
  },
22
22
  "engines": {
23
- "node": ">=20.10.0",
24
- "npm": ">=10.2.3"
23
+ "node": ">=22.13.0"
25
24
  },
25
+ "files": [
26
+ "eslint-overrides.cjs",
27
+ "lib",
28
+ "templates",
29
+ "*.md",
30
+ "!**/test/**"
31
+ ],
26
32
  "type": "module",
27
33
  "module": "./lib/build.mjs",
28
34
  "exports": {
@@ -35,9 +41,8 @@
35
41
  "wp-build": "./lib/build.mjs"
36
42
  },
37
43
  "dependencies": {
38
- "@emotion/babel-plugin": "^11.13.5",
39
- "@wordpress/browserslist-config": "^6.55.1-next.v.202609171837.0",
40
- "@wordpress/style-runtime": "^0.11.1-next.v.202609171837.0",
44
+ "@wordpress/browserslist-config": "^7.0.0",
45
+ "@wordpress/style-runtime": "^0.14.0",
41
46
  "autoprefixer": "^10.4.21",
42
47
  "browserslist": "^4.28.7",
43
48
  "browserslist-to-esbuild": "^2.1.1",
@@ -45,7 +50,6 @@
45
50
  "chokidar": "^4.0.0",
46
51
  "cssnano": "^6.0.1",
47
52
  "esbuild": "^0.27.2",
48
- "esbuild-plugin-babel": "^0.2.3",
49
53
  "esbuild-sass-plugin": "^3.3.1",
50
54
  "fast-glob": "^3.2.7",
51
55
  "moment-timezone": "^0.5.40",
@@ -56,24 +60,13 @@
56
60
  },
57
61
  "devDependencies": {
58
62
  "@types/node": "^24.13.3",
59
- "vitest": "^5.0.0"
63
+ "@wordpress/theme": "^3.0.0",
64
+ "vitest": "^5.0.3"
60
65
  },
61
66
  "peerDependencies": {
62
- "@wordpress/boot": ">=0.3.0 <1.0.0",
63
- "@wordpress/private-apis": "^1.0.0",
64
- "@wordpress/route": ">=0.2.0 <1.0.0",
65
67
  "@wordpress/theme": ">=0.8.0 <3.0.0"
66
68
  },
67
69
  "peerDependenciesMeta": {
68
- "@wordpress/boot": {
69
- "optional": true
70
- },
71
- "@wordpress/private-apis": {
72
- "optional": true
73
- },
74
- "@wordpress/route": {
75
- "optional": true
76
- },
77
70
  "@wordpress/theme": {
78
71
  "optional": true
79
72
  }
@@ -81,5 +74,5 @@
81
74
  "publishConfig": {
82
75
  "access": "public"
83
76
  },
84
- "gitHead": "7fc9f6676debc888d2f071d17cb71837040d4b48"
77
+ "gitHead": "8d30f92cbbde3ddf781c8799443c649befbbcb88"
85
78
  }
@@ -90,10 +90,22 @@ function {{PREFIX}}_{{PAGE_SLUG_UNDERSCORE}}_wp_admin_preload_data() {
90
90
  // This must exactly match the _fields list in packages/core-data/src/entities.js,
91
91
  // same fields in the same order, or the preload is never consumed.
92
92
  $preload_paths = array(
93
- '/?_fields=description,gmt_offset,home,image_max_bit_depth,image_sizes,image_size_threshold,image_strip_meta,name,site_icon,site_icon_url,site_logo,timezone_string,url,page_for_posts,page_on_front,show_on_front',
93
+ '/?_fields=description,generate_animated_image_subsizes,gmt_offset,home,image_max_bit_depth,image_sizes,image_size_threshold,image_strip_meta,name,site_icon,site_icon_url,site_logo,timezone_string,url,page_for_posts,page_on_front,show_on_front',
94
94
  array( '/wp/v2/settings', 'OPTIONS' ),
95
95
  );
96
96
 
97
+ /**
98
+ * Filters the REST API paths preloaded for this page.
99
+ *
100
+ * Each entry is either a string path (GET) or a `[ path, method ]` tuple.
101
+ * Pages that know which requests their JS will issue on mount can add
102
+ * them here so the responses are embedded in the initial HTML rather
103
+ * than fetched over the network after hydration.
104
+ *
105
+ * @param array<string|string[]> $preload_paths Paths to preload.
106
+ */
107
+ $preload_paths = apply_filters( '{{PREFIX}}_{{PAGE_SLUG_UNDERSCORE}}_wp_admin_preload_paths', $preload_paths );
108
+
97
109
  // Use rest_preload_api_request to gather the preloaded data
98
110
  $preload_data = array_reduce(
99
111
  $preload_paths,
@@ -91,7 +91,7 @@ function {{PREFIX}}_{{PAGE_SLUG_UNDERSCORE}}_preload_data() {
91
91
  // This must exactly match the _fields list in packages/core-data/src/entities.js,
92
92
  // same fields in the same order, or the preload is never consumed.
93
93
  $preload_paths = array(
94
- '/?_fields=description,gmt_offset,home,image_max_bit_depth,image_sizes,image_size_threshold,image_strip_meta,name,site_icon,site_icon_url,site_logo,timezone_string,url,page_for_posts,page_on_front,show_on_front',
94
+ '/?_fields=description,generate_animated_image_subsizes,gmt_offset,home,image_max_bit_depth,image_sizes,image_size_threshold,image_strip_meta,name,site_icon,site_icon_url,site_logo,timezone_string,url,page_for_posts,page_on_front,show_on_front',
95
95
  array( '/wp/v2/settings', 'OPTIONS' ),
96
96
  );
97
97
 
@@ -52,7 +52,7 @@ function {{PREFIX}}_override_script( $scripts, $handle, $src, $deps = array(), $
52
52
  function {{PREFIX}}_register_package_scripts( $scripts ) {
53
53
  // Load build constants
54
54
  $build_constants = require __DIR__ . '/constants.php';
55
- $default_version = ! SCRIPT_DEBUG ? $build_constants['version'] : time();
55
+ $default_version = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? time() : $build_constants['version'];
56
56
  $extension = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.js' : '.min.js';
57
57
 
58
58
  $scripts_dir = __DIR__ . '/scripts';
@@ -42,8 +42,8 @@ function {{PREFIX}}_override_style( $styles, $handle, $src, $deps = array(), $ve
42
42
  function {{PREFIX}}_register_package_styles( $styles ) {
43
43
  // Load build constants
44
44
  $build_constants = require __DIR__ . '/constants.php';
45
- $default_version = ! SCRIPT_DEBUG ? $build_constants['version'] : time();
46
- $suffix = SCRIPT_DEBUG ? '' : '.min';
45
+ $default_version = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? time() : $build_constants['version'];
46
+ $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
47
47
 
48
48
  $styles_dir = __DIR__ . '/styles';
49
49
  $styles_file = $styles_dir . '/registry.php';
@@ -1 +0,0 @@
1
- {"version":"7.0.2","checkPending":true,"root":[53,56,[83,89],103],"packageJsons":["../../../node_modules/@types/node/package.json","../../../node_modules/assert/package.json","../../../node_modules/browserslist/package.json","../../../node_modules/buffer/package.json","../../../node_modules/camel-case/package.json","../../../node_modules/capital-case/package.json","../../../node_modules/change-case/package.json","../../../node_modules/constant-case/package.json","../../../node_modules/cssnano/package.json","../../../node_modules/dot-case/package.json","../../../node_modules/esbuild/package.json","../../../node_modules/events/package.json","../../../node_modules/header-case/package.json","../../../node_modules/no-case/package.json","../../../node_modules/param-case/package.json","../../../node_modules/pascal-case/package.json","../../../node_modules/path-case/package.json","../../../node_modules/postcss-modules/package.json","../../../node_modules/postcss/node_modules/source-map-js/package.json","../../../node_modules/postcss/package.json","../../../node_modules/process/package.json","../../../node_modules/punycode/package.json","../../../node_modules/sentence-case/package.json","../../../node_modules/snake-case/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/undici-types/package.json","../../../node_modules/url/package.json","../../../node_modules/util/package.json","../../browserslist-config/package.json","../../theme/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/@types/assert/package.json","../../../node_modules/@types/assert/strict/package.json","../../../node_modules/@types/async_hooks/package.json","../../../node_modules/@types/buffer/package.json","../../../node_modules/@types/child_process/package.json","../../../node_modules/@types/cluster/package.json","../../../node_modules/@types/console/package.json","../../../node_modules/@types/constants/package.json","../../../node_modules/@types/crypto/package.json","../../../node_modules/@types/dgram/package.json","../../../node_modules/@types/diagnostics_channel/package.json","../../../node_modules/@types/dns/package.json","../../../node_modules/@types/dns/promises/package.json","../../../node_modules/@types/domain/package.json","../../../node_modules/@types/events/package.json","../../../node_modules/@types/fs/package.json","../../../node_modules/@types/fs/promises/package.json","../../../node_modules/@types/http/package.json","../../../node_modules/@types/http2/package.json","../../../node_modules/@types/https/package.json","../../../node_modules/@types/inspector/package.json","../../../node_modules/@types/inspector/promises/package.json","../../../node_modules/@types/module/package.json","../../../node_modules/@types/net/package.json","../../../node_modules/@types/node/assert/package.json","../../../node_modules/@types/node/compatibility/package.json","../../../node_modules/@types/node/dns/package.json","../../../node_modules/@types/node/fs/package.json","../../../node_modules/@types/node/readline/package.json","../../../node_modules/@types/node/stream/package.json","../../../node_modules/@types/node/timers/package.json","../../../node_modules/@types/node/web-globals/package.json","../../../node_modules/@types/os/package.json","../../../node_modules/@types/path/package.json","../../../node_modules/@types/path/posix/package.json","../../../node_modules/@types/path/win32/package.json","../../../node_modules/@types/perf_hooks/package.json","../../../node_modules/@types/process/package.json","../../../node_modules/@types/punycode/package.json","../../../node_modules/@types/querystring/package.json","../../../node_modules/@types/readline/package.json","../../../node_modules/@types/readline/promises/package.json","../../../node_modules/@types/repl/package.json","../../../node_modules/@types/stream/consumers/package.json","../../../node_modules/@types/stream/package.json","../../../node_modules/@types/stream/promises/package.json","../../../node_modules/@types/stream/web/package.json","../../../node_modules/@types/string_decoder/package.json","../../../node_modules/@types/timers/package.json","../../../node_modules/@types/timers/promises/package.json","../../../node_modules/@types/tls/package.json","../../../node_modules/@types/trace_events/package.json","../../../node_modules/@types/tty/package.json","../../../node_modules/@types/url/package.json","../../../node_modules/@types/util/package.json","../../../node_modules/@types/util/types/package.json","../../../node_modules/@types/v8/package.json","../../../node_modules/@types/vm/package.json","../../../node_modules/@types/wasi/package.json","../../../node_modules/@types/wordpress__browserslist-config/package.json","../../../node_modules/@types/wordpress__theme/package.json","../../../node_modules/@types/wordpress__theme/postcss-plugins/postcss-ds-token-fallbacks/package.json","../../../node_modules/@types/worker_threads/package.json","../../../node_modules/@types/zlib/package.json","../../../node_modules/@wordpress/theme/postcss-plugins/postcss-ds-token-fallbacks/package.json","../../../node_modules/assert/strict/package.json","../../../node_modules/async_hooks/package.json","../../../node_modules/camel-case/dist/package.json","../../../node_modules/capital-case/dist/package.json","../../../node_modules/change-case/dist/package.json","../../../node_modules/child_process/package.json","../../../node_modules/cluster/package.json","../../../node_modules/console/package.json","../../../node_modules/constant-case/dist/package.json","../../../node_modules/constants/package.json","../../../node_modules/crypto/package.json","../../../node_modules/cssnano/types/package.json","../../../node_modules/dgram/package.json","../../../node_modules/diagnostics_channel/package.json","../../../node_modules/dns/package.json","../../../node_modules/dns/promises/package.json","../../../node_modules/domain/package.json","../../../node_modules/dot-case/dist/package.json","../../../node_modules/esbuild/lib/package.json","../../../node_modules/fs/package.json","../../../node_modules/fs/promises/package.json","../../../node_modules/header-case/dist/package.json","../../../node_modules/http/package.json","../../../node_modules/http2/package.json","../../../node_modules/https/package.json","../../../node_modules/inspector/package.json","../../../node_modules/inspector/promises/package.json","../../../node_modules/module/package.json","../../../node_modules/net/package.json","../../../node_modules/no-case/dist/package.json","../../../node_modules/os/package.json","../../../node_modules/param-case/dist/package.json","../../../node_modules/pascal-case/dist/package.json","../../../node_modules/path-case/dist/package.json","../../../node_modules/path/package.json","../../../node_modules/path/posix/package.json","../../../node_modules/path/win32/package.json","../../../node_modules/perf_hooks/package.json","../../../node_modules/postcss/lib/package.json","../../../node_modules/querystring/package.json","../../../node_modules/readline/package.json","../../../node_modules/readline/promises/package.json","../../../node_modules/repl/package.json","../../../node_modules/sentence-case/dist/package.json","../../../node_modules/snake-case/dist/package.json","../../../node_modules/stream/consumers/package.json","../../../node_modules/stream/package.json","../../../node_modules/stream/promises/package.json","../../../node_modules/stream/web/package.json","../../../node_modules/timers/package.json","../../../node_modules/timers/promises/package.json","../../../node_modules/tls/package.json","../../../node_modules/trace_events/package.json","../../../node_modules/tty/package.json","../../../node_modules/util/types/package.json","../../../node_modules/v8/package.json","../../../node_modules/vm/package.json","../../../node_modules/wasi/package.json","../../../node_modules/worker_threads/package.json","../../../node_modules/zlib/package.json","../../theme/node_modules/postcss/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2025.float16.d.ts","lib.esnext.disposable.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../eslint-overrides.cjs","../../../node_modules/browserslist/index.d.ts","../../browserslist-config/index.js","../lib/browserslist.mjs","../../../node_modules/postcss/node_modules/source-map-js/source-map.d.ts","../../../node_modules/postcss/lib/previous-map.d.ts","../../../node_modules/postcss/lib/input.d.ts","../../../node_modules/postcss/lib/css-syntax-error.d.ts","../../../node_modules/postcss/lib/declaration.d.ts","../../../node_modules/postcss/lib/root.d.ts","../../../node_modules/postcss/lib/warning.d.ts","../../../node_modules/postcss/lib/lazy-result.d.ts","../../../node_modules/postcss/lib/no-work-result.d.ts","../../../node_modules/postcss/lib/processor.d.ts","../../../node_modules/postcss/lib/result.d.ts","../../../node_modules/postcss/lib/document.d.ts","../../../node_modules/postcss/lib/rule.d.ts","../../../node_modules/postcss/lib/node.d.ts","../../../node_modules/postcss/lib/comment.d.ts","../../../node_modules/postcss/lib/container.d.ts","../../../node_modules/postcss/lib/at-rule.d.ts","../../../node_modules/postcss/lib/list.d.ts","../../../node_modules/postcss/lib/postcss.d.ts","../../../node_modules/cssnano/types/index.d.ts","../../../node_modules/postcss/lib/postcss.d.mts","../../../node_modules/postcss-modules/index.d.ts","../../theme/prebuilt/js/design-token-fallbacks.mjs","../../theme/postcss-plugins/add-fallback-to-var.mjs","../../theme/postcss-plugins/ds-token-fallbacks.mjs","../../theme/postcss-plugins/postcss-ds-token-fallbacks.mjs","../lib/compile-inline-style.mjs","../lib/package-utils.mjs","../lib/dependency-graph.mjs","../lib/php-generator.mjs","../lib/route-utils.mjs","../lib/source-files.mjs","../lib/widget-utils.mjs","../../../node_modules/no-case/dist/index.d.ts","../../../node_modules/pascal-case/dist/index.d.ts","../../../node_modules/camel-case/dist/index.d.ts","../../../node_modules/capital-case/dist/index.d.ts","../../../node_modules/constant-case/dist/index.d.ts","../../../node_modules/dot-case/dist/index.d.ts","../../../node_modules/header-case/dist/index.d.ts","../../../node_modules/param-case/dist/index.d.ts","../../../node_modules/path-case/dist/index.d.ts","../../../node_modules/sentence-case/dist/index.d.ts","../../../node_modules/snake-case/dist/index.d.ts","../../../node_modules/change-case/dist/index.d.ts","../../../node_modules/esbuild/lib/main.d.ts","../lib/wordpress-externals-plugin.mjs","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/@types/node/web-globals/crypto.d.ts","../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/undici-types/utility.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client-stats.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/round-robin-pool.d.ts","../../../node_modules/undici-types/h2c-client.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-call-history.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/snapshot-agent.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cache-interceptor.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f",{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0219894bfe5042c7e1aa2d22e4a91ed0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be41035d7b941482a1e1ae6a5c5dcca5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"189850867741e20bc4ba8c687f1bd90d",{"version":"345ca214d25c64defc4b9f50a9d9a078","affectsGlobalScope":true,"impliedNodeFormat":1},"45322eec6f835dabf03f66ecf4a3ae50",{"version":"473fa6c8c421b6b24d9abb90340f896f","impliedNodeFormat":99},"07e14c037c571c6a65227f6028ba71bb","2db12d6b2f63775f9d81cf84e892d546","45d63fb8c396dc6c00afbb10701bfecd","00bd2083b15c16819de54ef8ac00b5ce","944a04f04959347f2e7bce3056aa2e75","a4e012a80d7cbf31ab47f7414b9d5ae3","93560bdaac133522c0b67330b05b478c","bc895a5015f48c32aa76d8392e6b7f44","13a7c35f2ac575e7df53b738c45ba30b","830857b2b53ea4bb41fcb5cd89c9a278","c6ff6ad4a92bfabbd0a356c908d63dbc","d71000ae0d453d65244d10c346da73cf","c3a96b81945368370cc912e54587f9a1","5807e6555f3a72d4f01350a3c579dfb6","9b6007b669bc68f577f656e90d3cf07f","9c7e04c49400ef8937848f6251bfb9e4","13a190261afbec6e4f56fea0313dc00e","a4c51ad6ea7b592e986056fef122852a","a6ccb5d656b21fe70760bc2f849c86d2","05f959accd08c6d2a78cc24d45014369",{"version":"c1a1a61c9a11e644e0b25a5ec786fb34","impliedNodeFormat":99},"84488f7dc8ad243f979e207a52db1748",{"version":"a45d7b2c94695fcccbca41cd2835b926","impliedNodeFormat":99},{"version":"b2b5c108aa4f0be7d8364def160f17e2","impliedNodeFormat":99},{"version":"7d20a579e0850e3d5c1fcd69eb081781","impliedNodeFormat":99},{"version":"68313c3d5a3a129f83d038c3f70f49c1","impliedNodeFormat":99},{"version":"6d6367ce4186bd46e3c0202444fdb05e","impliedNodeFormat":99},{"version":"de10ff1088759586d27bf6e2f7113212","impliedNodeFormat":99},{"version":"b15bd36d4854896f626562f20ec211be","impliedNodeFormat":99},{"version":"14074aa72368ff4646756443393cdc32","impliedNodeFormat":99},{"version":"e398f7b1924eabe0d9bfdd00cca81b68","impliedNodeFormat":99},{"version":"f6cb4168f743f8cff95576904651ae82","impliedNodeFormat":99},{"version":"3df73356edc9434f54bf2362eaa76eeb","impliedNodeFormat":99},"56bed6adc232e28a9f47c95644894a6f","17c398378c22e3340fa7af0e8d4aedbd","ea8c4131489d30cc21e08b67ac99c0da","f334a09cfdb7c8cca7bd37b2467deb79","73871f583e43cf9c7968da5d1e008b1d","ceb8f7e4fafc5b93d6c2fc889e38e731","acf8e0843a5e743cc57dbc5aa7783a10","8ad2211424b001dee0585d8e3702fdb9","357829dbe6fa21b8bedf1be66a0315df","551139d61c6d551443b62bc96e8a0399","baf819dfccc140c019405d1cab164cff","60c910950d36986f8879c795513908a0",{"version":"7a7959e53469a597bd000a31cb5c49df","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6432eace098436aee77215f7453c87f7","impliedNodeFormat":99},{"version":"2514e9a2749c0fc18d2f478e9e1e641e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6ae4c332ecb24e76c1e47c0e21d4663d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"69ee0752d1e70c56ca160360425752a9","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bf33440030f0a0fae7d1efd6c293a8d2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9af0a7e3ef1c42cd066b9f8d365cc1ba","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7b772cebc7136c34fc77954aef70519d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9eca652586205dc5b07f9ba57b1c8500","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ec5f75939754ce94652189ec7d0d3058","affectsGlobalScope":true,"impliedNodeFormat":1},"49133c0dfbc32ab95668c3443dea49e5","85c2cf74d24d4069fac4686501a2d7e3","9f970a4ba4bb3ed6326d46b3ddab3f63","f444b82bb192c8ecc7c9a06cba5c1fba","75de66fc4824402123c0d694ccc0a085","db51f206bae5021bd84c7079251e08e9","fcd1a513c1e5802916fa602e8b8e64bc","aedc93367cdc148d7dd56ef6fd5ef308","8e2bc11d0328ba95e490a741c44a215d","d63481078bffe02fbaf6694a35815dc7","705645fe223430c696f47b708d592ca8","28d57c837c94adb42add03d499793cab","8c01a9bbae8449be21b3e018d59a74ac","44d3b7d58481743f4726cf411e667164","679024f8e9f58a112f4badf119c4d612","74d351e4ed233e82c6d74c444c1a6b86","94d8e37d28e92494f484dd9afe8f043c","79db245997e9261ae21e5f3d93e3493b","c3659054228b00c4e2a22d9ebea8b4f0","d7e5f7a0f1f883f28458f684106e7643","c2364011a80b6a9e3cc0e77895bad577","38da5c670190f4a35cbc204ca6c616bf","d95cc0eb29beed58f5ce72db21398f53","ecd53256b1ec7379c73316eaf392a69c","db5a9211b779628398011a5b8f5b8b5d","69c7bb9c3befe9ae37eed0e6a6310fee","1cba93fafccb7b2655f0e75229185e83","094ecadae30f65a82b77343dde77a666","f75df12d75dd783b03a0329b95abdb25","b438b08b2f0ed94a95a75c8990d9021b","f2becd2589591db92ab14e803eb8bdd5","8dec66ce34e6fe771e58a92b7068edc0","30f12c2660896a33bd3c3a126392c80a","0468c0ccd0ec7770b76481b165564d62","188234d616a4f50ed9b14c8f84a39f33","4c116bcf0a47ea8fbf4072f380925fa7","22111ccb71c0e95ff0796144b40eed2b","add85ec26ba695fc99c698dbec065f8c","5bfde23f96fc502b5413d772c35e1abf","b744265d8ad12b7d4d5c5dc35d18d44e","eff32168b8348b822afeed9cbf61afa7","acaa6ef6fcd5ba662929d6036121a616",{"version":"dd1cf1cc3aa21cd78b4869a44d98c6d9","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"292c9398a407b33b1d9c9812b673387a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"45df94b3c51b898624bacc2bcd6d9eb2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7d352f71d1b1bcc12c79dd0e4597537c","affectsGlobalScope":true,"impliedNodeFormat":1},"db11b80743ed5356b81d763a708788e6","39078ea063fcaf72bd3cca7e0d13d017","f81aa09811fa65ac6f354ab0018d3c38",{"version":"282318b178d190157a4deacb14f3040a","affectsGlobalScope":true,"impliedNodeFormat":1},"aafe512c4216100fd65028f9b2afce83","54c5c3dcfdb5f7cf5fbbccfff6ead3fa",{"version":"dc14f078230582a2f8fb2138bfcf4f85","affectsGlobalScope":true,"impliedNodeFormat":1},"b2b472cd0bf0f8d5f022e00ca1c401f4","370d966b810b687a9e58851208cb3d4c","39b3089f3df8d14e0f2ddac0479872d9","cc7a57e86f908c313649aea8d90377e1","5c271f10d8a9b9a1206bc82a4fe5b84d","fbe31979333ec391d8b59e8f42236e8e","6751c8c175fac6bbe7b935582cdfdca7",{"version":"a3f111d2a29b6cdd04fc4b41aa560c86","affectsGlobalScope":true,"impliedNodeFormat":1},"5f4ac576bcdc670a8489c881b23a2b17","a500e7362abeae2d2f1fefea525dc869","02a1ccf1ef65bfbf65865ac4ce346974","d589d01c82f6793f20d2f5c838462e3d","dbe700f7f1fa52fd220c7ee2c6617ebc","579675a2c3b0f8c532a82ad9cbd5d384","b2e8f93606aeb2dee2a4cc9272c56973",{"version":"a8e5d3e42303570b1114b6cd9ef9f38a","affectsGlobalScope":true,"impliedNodeFormat":1},"0003c8459d069181cc4856724fcf2832","c9053dbbe4fa2853f2d3f73b9a2fee81","4e458316a6083cbd2bba2fd29f674dd5",{"version":"3cccee1f2c106192d18ac4e08119f872","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"057189402e597cd50262b082723f21ff","affectsGlobalScope":true,"impliedNodeFormat":1},"6b26581aa2587701d570206a0db8c9ee","88a29e2aac8082c0910733950159e1ca","10282f14d9c2a5cbf3bcf2b1c8cebeaf","0f80958d77cd6301b43c1d7904e3e4bc","3bdc645524ab0d2f6795d3a008833bd7","deb50b47eb75a5566532a763fa1324fa","6e61cd09c2e15845909de3ed59a00b37","3e4ffe5f2733e0589b2612bd86f6cec3","c8206d568b54e5ea06131963eecd576a","15878f4f50c2e562c0768eb735c2aed5",{"version":"cb8f7733bee3d973c152a75fad9f6da6","affectsGlobalScope":true,"impliedNodeFormat":1},"dd404118e8bd70aff746f7d31e46270b","a0fa4618173795c74b488178ea77f951",{"version":"6b8649a280031d9e86955db721cfad87","affectsGlobalScope":true,"impliedNodeFormat":1},"4bc8f13c472858fb74f77388c0c5d885","75ab229142dad0ca2ff14d02d52f11f9","c72d2516d1e8910caca33c4dff75fcd4","f0231f36cb7117fbe9271ff19ef0f5f4",{"version":"8a642eed2a45ac7028479b6089a04842","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1e6ddb6b86dc5d86e75ba797d5324346","affectsGlobalScope":true,"impliedNodeFormat":1},"701aef085585b152042aa216b06bb4b8","e9bc5b1de50e48fa9857b64091673883","9268959cff1006c82e6abbd73824db97",{"version":"8f1c048bd5761910f5ea340fe4d792cd","affectsGlobalScope":true,"impliedNodeFormat":1},"6b1f3649b0eabeaca20c778fcc5f270c","eb567c7b5824aab578f75bbccf9f4b05"],"fileIdsList":[[106,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,153,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[104,105,106,107,108,109,110,111,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,209,210],[106,153,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,153,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209],[91,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[90,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[90,91,92,93,94,95,96,97,98,99,100,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[93,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[95,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[72,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[70,72,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[61,69,70,71,73,75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[59,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[62,67,72,75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[58,75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[62,63,66,67,68,75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[62,63,64,66,67,75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[59,60,61,62,63,67,68,69,71,72,73,75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[57,59,60,61,62,63,64,66,67,68,69,70,71,72,73,74,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[57,75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[62,64,65,67,68,75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[66,75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[67,68,72,75,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[60,70,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,118,121,124,125,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,121,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,121,125,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,115,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,119,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,117,118,121,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211],[106,115,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211],[106,117,121,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,112,113,114,116,120,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,121,130,138,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,113,119,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,121,147,148,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,113,116,121,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211],[106,112,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,115,116,117,119,120,121,122,123,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,148,149,150,151,152,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,121,140,143,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,121,130,131,132,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,119,121,131,133,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,120,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,113,115,121,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,121,125,131,133,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,125,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,119,121,124,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,113,117,121,130,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,121,140,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,133,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[106,115,121,147,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211],[79,80,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[77,81,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[54,55,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[76,77,78,82,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[84,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],[84,101,102,106,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210]],"options":{"allowJs":true,"checkJs":true,"composite":true,"emitDeclarationOnly":false,"declaration":true,"declarationDir":"../build-types","declarationMap":false,"jsx":1,"module":100,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"outDir":"./","rootDir":"..","skipLibCheck":true,"strict":true,"target":8,"allowSyntheticDefaultImports":true},"referencedMap":[[158,1],[159,2],[160,3],[106,4],[161,5],[162,6],[163,7],[104,8],[164,9],[165,10],[166,11],[167,12],[168,13],[169,14],[170,15],[171,16],[172,17],[173,18],[174,19],[107,8],[105,8],[175,20],[176,21],[177,22],[211,23],[178,24],[179,25],[180,26],[181,27],[182,28],[183,29],[184,30],[185,31],[186,32],[187,33],[188,34],[189,35],[190,36],[191,37],[192,38],[193,39],[195,40],[194,41],[196,42],[197,43],[198,44],[199,45],[200,46],[201,47],[202,48],[203,49],[204,50],[205,51],[206,52],[207,53],[208,54],[108,8],[109,8],[110,8],[111,8],[154,55],[155,8],[156,8],[157,8],[209,56],[210,57],[51,8],[52,8],[10,8],[9,8],[2,8],[11,8],[12,8],[13,8],[14,8],[15,8],[16,8],[17,8],[18,8],[3,8],[19,8],[20,8],[4,8],[21,8],[25,8],[22,8],[23,8],[24,8],[26,8],[27,8],[28,8],[5,8],[29,8],[30,8],[31,8],[32,8],[6,8],[36,8],[33,8],[34,8],[35,8],[37,8],[7,8],[38,8],[43,8],[44,8],[39,8],[40,8],[41,8],[42,8],[8,8],[48,8],[45,8],[46,8],[47,8],[49,8],[1,8],[50,8],[54,8],[92,58],[93,59],[101,60],[94,59],[76,61],[95,59],[102,8],[96,62],[90,8],[97,63],[91,59],[98,63],[78,61],[73,64],[71,65],[72,66],[60,67],[61,65],[68,68],[59,69],[64,70],[74,8],[65,71],[70,72],[77,61],[75,73],[58,74],[66,75],[67,76],[62,77],[69,64],[63,78],[57,8],[99,59],[100,63],[130,79],[142,80],[127,81],[143,8],[152,82],[118,83],[119,84],[117,8],[151,85],[146,86],[150,87],[121,88],[139,89],[120,90],[149,91],[115,92],[116,86],[122,80],[123,8],[129,87],[126,80],[113,93],[153,94],[144,95],[133,96],[132,80],[134,97],[137,98],[131,99],[135,100],[147,85],[124,101],[125,102],[138,103],[114,8],[141,104],[140,80],[128,102],[136,105],[145,8],[112,8],[148,106],[55,8],[80,8],[81,107],[82,108],[79,8],[53,8],[56,109],[83,110],[85,111],[84,8],[86,111],[87,111],[88,8],[89,8],[103,112]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211],"affectedFilesPendingEmit":[[53,17],[56,17],[83,17],[85,17],[84,17],[86,17],[87,17],[88,17],[89,17],[103,17]],"emitSignatures":[53,56,83,84,85,86,87,88,89,103]}
@@ -1,34 +0,0 @@
1
- import { afterEach, describe, expect, it, vi } from 'vitest';
2
- import browserslist from 'browserslist';
3
- import wordpressBrowserslistConfig from '@wordpress/browserslist-config';
4
- import { getBrowserslistQueries } from '../browserslist.mjs';
5
-
6
- describe( 'browserslist targeting', () => {
7
- let findConfigSpy;
8
-
9
- afterEach( () => {
10
- findConfigSpy.mockRestore();
11
- } );
12
-
13
- it( 'falls back to @wordpress/browserslist-config when the project has no config', () => {
14
- findConfigSpy = vi
15
- .spyOn( browserslist, 'findConfig' )
16
- .mockReturnValue( undefined );
17
-
18
- expect( getBrowserslistQueries() ).toEqual(
19
- wordpressBrowserslistConfig
20
- );
21
- } );
22
-
23
- it( 'uses the project browserslist config when one is present', () => {
24
- findConfigSpy = vi
25
- .spyOn( browserslist, 'findConfig' )
26
- .mockReturnValue( {
27
- defaults: [ 'last 1 chrome version' ],
28
- } );
29
-
30
- expect( getBrowserslistQueries() ).toEqual( [
31
- 'last 1 chrome version',
32
- ] );
33
- } );
34
- } );
@@ -1,69 +0,0 @@
1
- import { describe, expect, test } from 'vitest';
2
- import { compileInlineStyle } from '../compile-inline-style.mjs';
3
-
4
- async function compileStyleModule() {
5
- return compileInlineStyle( { minify: false } )(
6
- '.fixture { color: rgb(1, 2, 3); }',
7
- import.meta.dirname,
8
- `${ import.meta.dirname }/fixture.css`
9
- );
10
- }
11
-
12
- function executeStyleModule( source, processValue ) {
13
- let injectedStyleCount = 0;
14
- const document = {
15
- createElement: () => ( {
16
- appendChild() {},
17
- setAttribute() {},
18
- } ),
19
- createTextNode: () => ( {} ),
20
- head: {
21
- appendChild: () => {
22
- injectedStyleCount++;
23
- },
24
- querySelector: () => null,
25
- },
26
- };
27
-
28
- new Function( 'document', 'process', source )( document, processValue );
29
-
30
- return injectedStyleCount;
31
- }
32
-
33
- describe( 'compileInlineStyle', () => {
34
- test( 'applies design token fallbacks by default', async () => {
35
- const source = await compileInlineStyle( { minify: false } )(
36
- '.fixture { gap: var(--wpds-dimension-gap-sm); }',
37
- import.meta.dirname,
38
- `${ import.meta.dirname }/fixture.css`
39
- );
40
-
41
- expect( source ).toContain( 'var(--wpds-dimension-gap-sm, 8px)' );
42
- } );
43
-
44
- test( 'skips generated style injection in test mode', async () => {
45
- const source = await compileStyleModule();
46
-
47
- expect(
48
- executeStyleModule( source, {
49
- env: { NODE_ENV: 'test' },
50
- } )
51
- ).toBe( 0 );
52
- } );
53
-
54
- test( 'injects generated styles outside test mode', async () => {
55
- const source = await compileStyleModule();
56
-
57
- expect(
58
- executeStyleModule( source, {
59
- env: { NODE_ENV: 'development' },
60
- } )
61
- ).toBe( 1 );
62
- } );
63
-
64
- test( 'injects generated styles when process is absent', async () => {
65
- const source = await compileStyleModule();
66
-
67
- expect( executeStyleModule( source, undefined ) ).toBe( 1 );
68
- } );
69
- } );
@@ -1,32 +0,0 @@
1
- import path from 'node:path';
2
- import { fileURLToPath } from 'node:url';
3
- import { describe, expect, it } from 'vitest';
4
- import { getPackageInfo } from '../package-utils.mjs';
5
-
6
- const testDirectory = path.dirname( fileURLToPath( import.meta.url ) );
7
-
8
- describe( 'getPackageInfo() resolve-miss contract', () => {
9
- it( 'returns null (does not throw) for an unresolvable scoped package', () => {
10
- expect( () =>
11
- getPackageInfo( '@does-not-exist/nope', testDirectory )
12
- ).not.toThrow();
13
-
14
- expect(
15
- getPackageInfo( '@does-not-exist/nope', testDirectory )
16
- ).toBeNull();
17
- } );
18
-
19
- it( 'returns the cached null on a repeated miss', () => {
20
- const first = getPackageInfo( '@still-missing/pkg', testDirectory );
21
- const second = getPackageInfo( '@still-missing/pkg', testDirectory );
22
-
23
- expect( first ).toBeNull();
24
- expect( second ).toBeNull();
25
- } );
26
-
27
- it( 'still resolves an installed package that exposes its package.json', () => {
28
- const info = getPackageInfo( '@wordpress/build', testDirectory );
29
-
30
- expect( info ).toMatchObject( { name: '@wordpress/build' } );
31
- } );
32
- } );
@@ -1,40 +0,0 @@
1
- import { describe, expect, it } from 'vitest';
2
- import { renderTemplateToString as generateTemplate } from '../php-generator.mjs';
3
-
4
- describe( 'page-wp-admin.php template', () => {
5
- it( 'retains the Core Boot compatibility class on the mount element', async () => {
6
- const generatedPage = await generateTemplate(
7
- 'page-wp-admin.php.template',
8
- {
9
- '{{PAGE_SLUG}}': 'example',
10
- }
11
- );
12
-
13
- expect( generatedPage ).toContain(
14
- '<div id="example-wp-admin-app" class="boot-layout-container"></div>'
15
- );
16
- } );
17
- } );
18
-
19
- describe( 'page.php template', () => {
20
- it( 'guards the admin_init interceptor with authentication and the configured capability', async () => {
21
- const generatedPage = await generateTemplate( 'page.php.template', {
22
- '{{PAGE_SLUG}}': 'example',
23
- '{{PAGE_SLUG_UNDERSCORE}}': 'example',
24
- '{{PREFIX}}': 'wp',
25
- '{{CAPABILITY}}': 'edit_theme_options',
26
- } );
27
-
28
- const interceptor = generatedPage.slice(
29
- generatedPage.indexOf( 'function wp_example_intercept_render()' )
30
- );
31
-
32
- expect( interceptor ).toContain( 'is_user_logged_in()' );
33
- expect( interceptor ).toContain(
34
- "current_user_can( 'edit_theme_options' )"
35
- );
36
- expect( interceptor.indexOf( 'current_user_can' ) ).toBeLessThan(
37
- interceptor.indexOf( 'wp_example_render_page()' )
38
- );
39
- } );
40
- } );
@@ -1,73 +0,0 @@
1
- import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs';
2
- import os from 'node:os';
3
- import path from 'node:path';
4
- import glob from 'fast-glob';
5
- import { afterEach, describe, expect, it } from 'vitest';
6
- import { getSourceFileGlob, isTestSourceFile } from '../source-files.mjs';
7
-
8
- describe( 'source file discovery', () => {
9
- let temporaryDirectory;
10
-
11
- afterEach( () => {
12
- if ( temporaryDirectory ) {
13
- rmSync( temporaryDirectory, { force: true, recursive: true } );
14
- temporaryDirectory = undefined;
15
- }
16
- } );
17
-
18
- it( 'returns a glob that expands to every supported source extension', async () => {
19
- temporaryDirectory = mkdtempSync(
20
- path.join( os.tmpdir(), 'wordpress-build-source-files-' )
21
- );
22
- const sourceDirectory = path.join( temporaryDirectory, 'src' );
23
- mkdirSync( sourceDirectory );
24
-
25
- for ( const extension of [
26
- 'js',
27
- 'jsx',
28
- 'mjs',
29
- 'cjs',
30
- 'ts',
31
- 'tsx',
32
- 'mts',
33
- 'cts',
34
- 'css',
35
- ] ) {
36
- writeFileSync(
37
- path.join( sourceDirectory, `index.${ extension }` ),
38
- ''
39
- );
40
- }
41
-
42
- const sourceFiles = await glob( getSourceFileGlob( 'src/**/*' ), {
43
- cwd: temporaryDirectory,
44
- } );
45
-
46
- expect( sourceFiles.sort() ).toEqual( [
47
- 'src/index.cjs',
48
- 'src/index.cts',
49
- 'src/index.js',
50
- 'src/index.jsx',
51
- 'src/index.mjs',
52
- 'src/index.mts',
53
- 'src/index.ts',
54
- 'src/index.tsx',
55
- ] );
56
- } );
57
-
58
- it.each( [
59
- 'packages/example/src/test/component.jsx',
60
- 'packages/example/src/component.test.jsx',
61
- 'packages/example/src/component.spec.mjs',
62
- 'packages/example/src/component.test.mts',
63
- 'packages/example/src/component.spec.cts',
64
- ] )( 'identifies development-only source: %s', ( filename ) => {
65
- expect( isTestSourceFile( filename ) ).toBe( true );
66
- } );
67
-
68
- it( 'keeps production JSX source', () => {
69
- expect( isTestSourceFile( 'packages/example/src/component.jsx' ) ).toBe(
70
- false
71
- );
72
- } );
73
- } );
@@ -1,34 +0,0 @@
1
- import { expect, test } from 'vitest';
2
- // The test config supplies this module from wp-build's real CSS transform.
3
- // eslint-disable-next-line import/no-unresolved
4
- import styles from 'virtual:wp-build-style-injection';
5
- // eslint-disable-next-line import/no-unresolved
6
- import 'virtual:wp-build-ordinary-style-injection';
7
-
8
- test( 'injects wp-build generated styles in Browser Mode', () => {
9
- const fixture = document.createElement( 'div' );
10
- fixture.className = styles.fixture;
11
- document.body.append( fixture );
12
-
13
- try {
14
- expect( globalThis.getComputedStyle( fixture ).color ).toBe(
15
- 'rgb(1, 2, 3)'
16
- );
17
- } finally {
18
- fixture.remove();
19
- }
20
- } );
21
-
22
- test( 'injects wp-build generated ordinary styles in Browser Mode', () => {
23
- const fixture = document.createElement( 'div' );
24
- fixture.className = 'ordinary-fixture';
25
- document.body.append( fixture );
26
-
27
- try {
28
- expect( globalThis.getComputedStyle( fixture ).backgroundColor ).toBe(
29
- 'rgb(4, 5, 6)'
30
- );
31
- } finally {
32
- fixture.remove();
33
- }
34
- } );
@@ -1,11 +0,0 @@
1
- import { expect, test } from 'vitest';
2
- // The test config supplies this module from wp-build's real CSS transform.
3
- // eslint-disable-next-line import/no-unresolved
4
- import styles from 'virtual:wp-build-style-injection';
5
-
6
- test( 'does not inject wp-build generated styles in jsdom', () => {
7
- expect( styles.fixture ).toBeTruthy();
8
- expect( document.head ).not.toHaveTextContent(
9
- '--wp-build-style-injection-test'
10
- );
11
- } );
package/tsconfig.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig.json",
3
- "extends": "@wordpress/monorepo-tools/tsconfig/base.json",
4
- "compilerOptions": {
5
- "module": "node16",
6
- "moduleResolution": "node16",
7
- "target": "es2021",
8
- "lib": [ "es2021", "ES2020.string" ],
9
- "rootDir": ".",
10
- "types": [ "node" ],
11
-
12
- // This package isn't published with types.
13
- // Don't generate types, this is strictly for validation.
14
- "incremental": true,
15
- "declarationMap": false,
16
- "emitDeclarationOnly": false,
17
- "noEmit": true,
18
- "outDir": ".cache"
19
- },
20
- "references": [ { "path": "../style-runtime/tsconfig.build.json" } ],
21
- "include": [ "." ],
22
- "exclude": [
23
- // Excluded to maintain consistency with bin/tsconfig.json
24
- // where packages/build.mjs was also excluded
25
- "lib/build.mjs",
26
- "lib/worker-build.mjs",
27
- // Test files run via Jest; they are not part of the type-check.
28
- "lib/test"
29
- ]
30
- }