@wordpress/style-engine 2.37.0 → 2.37.1-next.ba3aee3a2.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.
Files changed (90) hide show
  1. package/CHANGELOG.md +0 -2
  2. package/LICENSE.md +1 -1
  3. package/build/{index.js → index.cjs} +3 -3
  4. package/build/styles/background/{index.js → index.cjs} +2 -2
  5. package/build/styles/border/{index.js → index.cjs} +2 -2
  6. package/build/styles/color/{background.js → background.cjs} +2 -2
  7. package/build/styles/color/{gradient.js → gradient.cjs} +2 -2
  8. package/build/styles/color/{index.js → index.cjs} +4 -4
  9. package/build/styles/color/{text.js → text.cjs} +2 -2
  10. package/build/styles/{constants.js → constants.cjs} +1 -1
  11. package/build/styles/dimensions/{index.js → index.cjs} +14 -3
  12. package/build/styles/dimensions/index.cjs.map +7 -0
  13. package/build/styles/{index.js → index.cjs} +9 -9
  14. package/build/styles/outline/{index.js → index.cjs} +2 -2
  15. package/build/styles/shadow/{index.js → index.cjs} +2 -2
  16. package/build/styles/spacing/{index.js → index.cjs} +3 -3
  17. package/build/styles/spacing/{margin.js → margin.cjs} +2 -2
  18. package/build/styles/spacing/{padding.js → padding.cjs} +2 -2
  19. package/build/styles/typography/{index.js → index.cjs} +2 -2
  20. package/build/styles/{utils.js → utils.cjs} +2 -2
  21. package/build/{types.js → types.cjs} +1 -1
  22. package/build/{types.js.map → types.cjs.map} +1 -1
  23. package/build-module/{index.js → index.mjs} +3 -3
  24. package/build-module/styles/background/{index.js → index.mjs} +2 -2
  25. package/build-module/styles/border/{index.js → index.mjs} +2 -2
  26. package/build-module/styles/color/{background.js → background.mjs} +2 -2
  27. package/build-module/styles/color/{gradient.js → gradient.mjs} +2 -2
  28. package/build-module/styles/color/index.mjs +9 -0
  29. package/build-module/styles/color/{text.js → text.mjs} +2 -2
  30. package/build-module/styles/{constants.js → constants.mjs} +1 -1
  31. package/build-module/styles/dimensions/{index.js → index.mjs} +14 -3
  32. package/build-module/styles/dimensions/index.mjs.map +7 -0
  33. package/build-module/styles/index.mjs +23 -0
  34. package/build-module/styles/outline/{index.js → index.mjs} +2 -2
  35. package/build-module/styles/shadow/{index.js → index.mjs} +2 -2
  36. package/build-module/styles/spacing/{index.js → index.mjs} +3 -3
  37. package/build-module/styles/spacing/{margin.js → margin.mjs} +2 -2
  38. package/build-module/styles/spacing/{padding.js → padding.mjs} +2 -2
  39. package/build-module/styles/typography/{index.js → index.mjs} +2 -2
  40. package/build-module/styles/{utils.js → utils.mjs} +2 -2
  41. package/build-module/types.mjs +1 -0
  42. package/build-types/styles/dimensions/index.d.ts.map +1 -1
  43. package/build-types/types.d.ts +2 -0
  44. package/build-types/types.d.ts.map +1 -1
  45. package/package.json +14 -7
  46. package/src/class-wp-style-engine.php +10 -1
  47. package/src/styles/dimensions/index.ts +13 -1
  48. package/src/types.ts +2 -0
  49. package/build/styles/dimensions/index.js.map +0 -7
  50. package/build-module/styles/color/index.js +0 -9
  51. package/build-module/styles/dimensions/index.js.map +0 -7
  52. package/build-module/styles/index.js +0 -23
  53. package/build-module/types.js +0 -1
  54. package/docs/toc.json +0 -8
  55. package/docs/using-the-style-engine-with-block-supports.md +0 -234
  56. package/tsconfig.json +0 -4
  57. package/tsconfig.tsbuildinfo +0 -1
  58. /package/build/{index.js.map → index.cjs.map} +0 -0
  59. /package/build/styles/background/{index.js.map → index.cjs.map} +0 -0
  60. /package/build/styles/border/{index.js.map → index.cjs.map} +0 -0
  61. /package/build/styles/color/{background.js.map → background.cjs.map} +0 -0
  62. /package/build/styles/color/{gradient.js.map → gradient.cjs.map} +0 -0
  63. /package/build/styles/color/{index.js.map → index.cjs.map} +0 -0
  64. /package/build/styles/color/{text.js.map → text.cjs.map} +0 -0
  65. /package/build/styles/{constants.js.map → constants.cjs.map} +0 -0
  66. /package/build/styles/{index.js.map → index.cjs.map} +0 -0
  67. /package/build/styles/outline/{index.js.map → index.cjs.map} +0 -0
  68. /package/build/styles/shadow/{index.js.map → index.cjs.map} +0 -0
  69. /package/build/styles/spacing/{index.js.map → index.cjs.map} +0 -0
  70. /package/build/styles/spacing/{margin.js.map → margin.cjs.map} +0 -0
  71. /package/build/styles/spacing/{padding.js.map → padding.cjs.map} +0 -0
  72. /package/build/styles/typography/{index.js.map → index.cjs.map} +0 -0
  73. /package/build/styles/{utils.js.map → utils.cjs.map} +0 -0
  74. /package/build-module/{index.js.map → index.mjs.map} +0 -0
  75. /package/build-module/styles/background/{index.js.map → index.mjs.map} +0 -0
  76. /package/build-module/styles/border/{index.js.map → index.mjs.map} +0 -0
  77. /package/build-module/styles/color/{background.js.map → background.mjs.map} +0 -0
  78. /package/build-module/styles/color/{gradient.js.map → gradient.mjs.map} +0 -0
  79. /package/build-module/styles/color/{index.js.map → index.mjs.map} +0 -0
  80. /package/build-module/styles/color/{text.js.map → text.mjs.map} +0 -0
  81. /package/build-module/styles/{constants.js.map → constants.mjs.map} +0 -0
  82. /package/build-module/styles/{index.js.map → index.mjs.map} +0 -0
  83. /package/build-module/styles/outline/{index.js.map → index.mjs.map} +0 -0
  84. /package/build-module/styles/shadow/{index.js.map → index.mjs.map} +0 -0
  85. /package/build-module/styles/spacing/{index.js.map → index.mjs.map} +0 -0
  86. /package/build-module/styles/spacing/{margin.js.map → margin.mjs.map} +0 -0
  87. /package/build-module/styles/spacing/{padding.js.map → padding.mjs.map} +0 -0
  88. /package/build-module/styles/typography/{index.js.map → index.mjs.map} +0 -0
  89. /package/build-module/styles/{utils.js.map → utils.mjs.map} +0 -0
  90. /package/build-module/{types.js.map → types.mjs.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,KAAK,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AACvC,MAAM,WAAW,GAAG,CAAE,CAAC,SAAS,UAAU,GAAG,SAAS,GA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EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;IAChC,CAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,GAAI,gBAAgB,EAAE,CAAC;CAC5D;AAED,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/style-engine",
3
- "version": "2.37.0",
3
+ "version": "2.37.1-next.ba3aee3a2.0",
4
4
  "description": "A suite of parsers and compilers for WordPress styles.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -24,19 +24,25 @@
24
24
  "node": ">=18.12.0",
25
25
  "npm": ">=8.19.2"
26
26
  },
27
- "main": "build/index.js",
28
- "module": "build-module/index.js",
27
+ "files": [
28
+ "src",
29
+ "build",
30
+ "build-module",
31
+ "build-types",
32
+ "*.md"
33
+ ],
34
+ "main": "build/index.cjs",
35
+ "module": "build-module/index.mjs",
29
36
  "exports": {
30
37
  ".": {
31
38
  "types": "./build-types/index.d.ts",
32
- "import": "./build-module/index.js",
33
- "require": "./build/index.js"
39
+ "import": "./build-module/index.mjs",
40
+ "require": "./build/index.cjs"
34
41
  },
35
42
  "./package.json": "./package.json"
36
43
  },
37
44
  "react-native": "src/index",
38
45
  "wpScript": true,
39
- "types": "build-types",
40
46
  "wpCopyFiles": {
41
47
  "files": [
42
48
  "src/*.php"
@@ -56,6 +62,7 @@
56
62
  }
57
63
  }
58
64
  },
65
+ "types": "build-types",
59
66
  "sideEffects": false,
60
67
  "dependencies": {
61
68
  "change-case": "^4.1.2"
@@ -63,5 +70,5 @@
63
70
  "publishConfig": {
64
71
  "access": "public"
65
72
  },
66
- "gitHead": "2cf13ec6cf86153c9b3cf369bf5c59046f5cd950"
73
+ "gitHead": "67d2e486fcd40c753591cf911ca0659132f519ca"
67
74
  }
@@ -201,13 +201,19 @@ if ( ! class_exists( 'WP_Style_Engine' ) ) {
201
201
  'has-aspect-ratio' => true,
202
202
  ),
203
203
  ),
204
+ 'height' => array(
205
+ 'property_keys' => array(
206
+ 'default' => 'height',
207
+ ),
208
+ 'path' => array( 'dimensions', 'height' ),
209
+ ),
204
210
  'minHeight' => array(
205
211
  'property_keys' => array(
206
212
  'default' => 'min-height',
207
213
  ),
208
214
  'path' => array( 'dimensions', 'minHeight' ),
209
215
  'css_vars' => array(
210
- 'spacing' => '--wp--preset--spacing--$slug',
216
+ 'dimension' => '--wp--preset--dimension--$slug',
211
217
  ),
212
218
  ),
213
219
  'width' => array(
@@ -215,6 +221,9 @@ if ( ! class_exists( 'WP_Style_Engine' ) ) {
215
221
  'default' => 'width',
216
222
  ),
217
223
  'path' => array( 'dimensions', 'width' ),
224
+ 'css_vars' => array(
225
+ 'dimension' => '--wp--preset--dimension--$slug',
226
+ ),
218
227
  ),
219
228
  ),
220
229
  'spacing' => array(
@@ -4,6 +4,18 @@
4
4
  import type { Style, StyleOptions } from '../../types';
5
5
  import { generateRule } from '../utils';
6
6
 
7
+ const height = {
8
+ name: 'height',
9
+ generate: ( style: Style, options: StyleOptions ) => {
10
+ return generateRule(
11
+ style,
12
+ options,
13
+ [ 'dimensions', 'height' ],
14
+ 'height'
15
+ );
16
+ },
17
+ };
18
+
7
19
  const minHeight = {
8
20
  name: 'minHeight',
9
21
  generate: ( style: Style, options: StyleOptions ) => {
@@ -40,4 +52,4 @@ const width = {
40
52
  },
41
53
  };
42
54
 
43
- export default [ minHeight, aspectRatio, width ];
55
+ export default [ height, minHeight, aspectRatio, width ];
package/src/types.ts CHANGED
@@ -48,7 +48,9 @@ export interface Style {
48
48
  };
49
49
  dimensions?: {
50
50
  aspectRatio?: CSSProperties[ 'aspectRatio' ];
51
+ height?: CSSProperties[ 'height' ];
51
52
  minHeight?: CSSProperties[ 'minHeight' ];
53
+ width?: CSSProperties[ 'width' ];
52
54
  };
53
55
  spacing?: {
54
56
  margin?: CSSProperties[ 'margin' ] | Box< 'margin' >;
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/styles/dimensions/index.ts"],
4
- "sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { Style, StyleOptions } from '../../types';\nimport { generateRule } from '../utils';\n\nconst minHeight = {\n\tname: 'minHeight',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateRule(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'dimensions', 'minHeight' ],\n\t\t\t'minHeight'\n\t\t);\n\t},\n};\n\nconst aspectRatio = {\n\tname: 'aspectRatio',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateRule(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'dimensions', 'aspectRatio' ],\n\t\t\t'aspectRatio'\n\t\t);\n\t},\n};\n\nconst width = {\n\tname: 'width',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateRule(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'dimensions', 'width' ],\n\t\t\t'width'\n\t\t);\n\t},\n};\n\nexport default [ minHeight, aspectRatio, width ];\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,mBAA6B;AAE7B,IAAM,YAAY;AAAA,EACjB,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,eAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA,CAAE,cAAc,WAAY;AAAA,MAC5B;AAAA,IACD;AAAA,EACD;AACD;AAEA,IAAM,cAAc;AAAA,EACnB,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,eAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA,CAAE,cAAc,aAAc;AAAA,MAC9B;AAAA,IACD;AAAA,EACD;AACD;AAEA,IAAM,QAAQ;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,eAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA,CAAE,cAAc,OAAQ;AAAA,MACxB;AAAA,IACD;AAAA,EACD;AACD;AAEA,IAAO,qBAAQ,CAAE,WAAW,aAAa,KAAM;",
6
- "names": []
7
- }
@@ -1,9 +0,0 @@
1
- // packages/style-engine/src/styles/color/index.ts
2
- import background from "./background";
3
- import gradient from "./gradient";
4
- import text from "./text";
5
- var color_default = [text, gradient, background];
6
- export {
7
- color_default as default
8
- };
9
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/styles/dimensions/index.ts"],
4
- "sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { Style, StyleOptions } from '../../types';\nimport { generateRule } from '../utils';\n\nconst minHeight = {\n\tname: 'minHeight',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateRule(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'dimensions', 'minHeight' ],\n\t\t\t'minHeight'\n\t\t);\n\t},\n};\n\nconst aspectRatio = {\n\tname: 'aspectRatio',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateRule(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'dimensions', 'aspectRatio' ],\n\t\t\t'aspectRatio'\n\t\t);\n\t},\n};\n\nconst width = {\n\tname: 'width',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateRule(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'dimensions', 'width' ],\n\t\t\t'width'\n\t\t);\n\t},\n};\n\nexport default [ minHeight, aspectRatio, width ];\n"],
5
- "mappings": ";AAIA,SAAS,oBAAoB;AAE7B,IAAM,YAAY;AAAA,EACjB,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,WAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA,CAAE,cAAc,WAAY;AAAA,MAC5B;AAAA,IACD;AAAA,EACD;AACD;AAEA,IAAM,cAAc;AAAA,EACnB,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,WAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA,CAAE,cAAc,aAAc;AAAA,MAC9B;AAAA,IACD;AAAA,EACD;AACD;AAEA,IAAM,QAAQ;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CAAE,OAAc,YAA2B;AACpD,WAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA,CAAE,cAAc,OAAQ;AAAA,MACxB;AAAA,IACD;AAAA,EACD;AACD;AAEA,IAAO,qBAAQ,CAAE,WAAW,aAAa,KAAM;",
6
- "names": []
7
- }
@@ -1,23 +0,0 @@
1
- // packages/style-engine/src/styles/index.ts
2
- import border from "./border";
3
- import color from "./color";
4
- import dimensions from "./dimensions";
5
- import background from "./background";
6
- import shadow from "./shadow";
7
- import outline from "./outline";
8
- import spacing from "./spacing";
9
- import typography from "./typography";
10
- var styleDefinitions = [
11
- ...border,
12
- ...color,
13
- ...dimensions,
14
- ...outline,
15
- ...spacing,
16
- ...typography,
17
- ...shadow,
18
- ...background
19
- ];
20
- export {
21
- styleDefinitions
22
- };
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
package/docs/toc.json DELETED
@@ -1,8 +0,0 @@
1
- [
2
- {
3
- "title": "@wordpress/style-engine Using the Style Engine to generate block supports styles",
4
- "slug": "using-the-style-engine-with-block-supports",
5
- "markdown_source": "../packages/style-engine/docs/using-the-style-engine-with-block-supports.md",
6
- "parent": "packages-style-engine"
7
- }
8
- ]
@@ -1,234 +0,0 @@
1
- # Using the Style Engine to generate block supports styles
2
-
3
- [Block supports](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/) is the API that allows a block to declare support for certain features.
4
-
5
- Where a block declares support for a specific style group or property, e.g., "spacing" or "spacing.padding", the block's attributes are extended to include a **style object**.
6
-
7
- For example:
8
-
9
- ```json
10
- {
11
- "attributes": {
12
- "style": {
13
- "spacing": {
14
- "margin": {
15
- "top": "10px"
16
- },
17
- "padding": "1em"
18
- },
19
- "typography": {
20
- "fontSize": "2.2rem"
21
- }
22
- }
23
- }
24
- }
25
- ```
26
-
27
- Using this object, the Style Engine can generate the classes and CSS required to style the block element.
28
-
29
- The global function `wp_style_engine_get_styles` accepts a style object as its first argument, and will output compiled CSS and an array of CSS declaration property/value pairs.
30
-
31
- ```php
32
- $block_styles = array(
33
- 'spacing' => array( 'padding' => '10px', 'margin' => array( 'top' => '1em') ),
34
- 'typography' => array( 'fontSize' => '2.2rem' ),
35
- );
36
- $styles = wp_style_engine_get_styles(
37
- $block_styles
38
- );
39
- print_r( $styles );
40
-
41
- /*
42
- array(
43
- 'css' => 'padding:10px;margin-top:1em;font-size:2.2rem',
44
- 'declarations' => array( 'padding' => '10px', 'margin-top' => '1em', 'font-size' => '2.2rem' )
45
- )
46
- */
47
- ```
48
-
49
- ## Use case
50
- When [registering a block support](https://developer.wordpress.org/reference/classes/wp_block_supports/register/), it is possible to pass an 'apply' callback in the block support config array to add or extend block support attributes with "class" or "style" properties.
51
-
52
- If a block has opted into the block support, the values of "class" and "style" will be applied to the block element's "class" and "style" attributes accordingly when rendered in the frontend HTML. Note, this applies only to server-side rendered blocks, for example, the [Site Title block](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/#site-title).
53
-
54
- The callback receives `$block_type` and `$block_attributes` as arguments. The `style` attribute within `$block_attributes` only contains the raw style object, if any styles have been set for the block, and not any CSS or classnames to be applied to the block's HTML elements.
55
-
56
- Here is where `wp_style_engine_get_styles` comes in handy: it will generate CSS and, if appropriate, classnames to be added to the "style" and "class" HTML attributes in the final rendered block markup.
57
-
58
- Here is a _very_ simplified version of how the [color block support](https://github.com/WordPress/gutenberg/tree/HEAD/lib/block-supports/color.php) works:
59
-
60
- ```php
61
- function gutenberg_apply_colors_support( $block_type, $block_attributes ) {
62
- // Get the color styles from the style object.
63
- $block_color_styles = isset( $block_attributes['style']['color'] ) ? $block_attributes['style']['color'] : null;
64
-
65
- // Since we only want the color styles, pass the color styles only to the Style Engine.
66
- $styles = wp_style_engine_get_styles( array( 'color' => $block_color_styles ) );
67
-
68
- // Return the generated styles to be applied to the block's HTML element.
69
- return array(
70
- 'style' => $styles['css'],
71
- 'class' => $styles['classnames']
72
- );
73
- }
74
-
75
- // Register the block support.
76
- WP_Block_Supports::get_instance()->register(
77
- 'colors',
78
- array(
79
- 'register_attribute' => 'gutenberg_register_colors_support',
80
- 'apply' => 'gutenberg_apply_colors_support',
81
- )
82
- );
83
- ```
84
-
85
- It's important to note that, for now, the Style Engine will only generate styles for the following, core block supports:
86
-
87
- - border
88
- - color
89
- - spacing
90
- - typography
91
-
92
- In future releases, it will be possible to extend this list.
93
-
94
- ## Checking for block support and skip serialization
95
-
96
- Before passing the block style object to the Style Engine, you'll need to take into account:
97
-
98
- 1. whether the theme has elected to support a particular block style, and
99
- 2. whether a block has elected to "skip serialization" of that particular block style, that is, opt-out of automatic application of styles to the block's element (usually in order to do it via the block's internals). See the [block API documentation](https://developer.wordpress.org/block-editor/explanations/architecture/styles/#block-supports-api) for further information.
100
-
101
- If a block either:
102
-
103
- - has no support for a style, or
104
- - skips serialization of that style
105
-
106
- it's likely that you'll want to remove those style values from the style object before passing it to the Style Engine with help of two functions:
107
-
108
- - wp_should_skip_block_supports_serialization()
109
- - block_has_support()
110
-
111
- We can now update the "apply" callback code above so that we'll only return "style" and "class", where a block has support, and it doesn't skip serialization:
112
-
113
- ```php
114
- function gutenberg_apply_colors_support( $block_type, $block_attributes ) {
115
- // The return value.
116
- $attributes = array();
117
-
118
- // Return early if the block skips all serialization for block supports.
119
- if ( gutenberg_should_skip_block_supports_serialization( $block_type, 'color' ) ) {
120
- return $attributes;
121
- }
122
-
123
- // Checks for support and skip serialization.
124
- $has_text_support = block_has_support( $block_type, array( 'color', 'text' ), false );
125
- $has_background_support = block_has_support( $block_type, array( 'color', 'background' ), false );
126
- $skips_serialization_of_color_text = wp_should_skip_block_supports_serialization( $block_type, 'color', 'text' );
127
- $skips_serialization_of_color_background = wp_should_skip_block_supports_serialization( $block_type, 'color', 'background' );
128
-
129
- // Get the color styles from the style object.
130
- $block_color_styles = isset( $block_attributes['style']['color'] ) ? $block_attributes['style']['color'] : null;
131
-
132
- // The mutated styles object we're going to pass to wp_style_engine_get_styles().
133
- $color_block_styles = array();
134
-
135
- // Set the color style values according to whether the block has support and does not skip serialization.
136
- $spacing_block_styles['text'] = null;
137
- $spacing_block_styles['background'] = null;
138
- if ( $has_text_support && ! $skips_serialization_of_color_text ) {
139
- $spacing_block_styles['text'] = $block_color_styles['text'] ?? null;
140
- }
141
- if $has_background_support && ! $skips_serialization_of_color_background ) {
142
- $spacing_block_styles['background'] = $block_color_styles['background'] ?? null;
143
- }
144
-
145
- // Pass the color styles, excluding those that have no support or skip serialization, to the Style Engine.
146
- $styles = wp_style_engine_get_styles( array( 'color' => $block_color_styles ) );
147
-
148
- // Return the generated styles to be applied to the block's HTML element.
149
- return array(
150
- 'style' => $styles['css'],
151
- 'class' => $styles['classnames']
152
- );
153
- }
154
- ```
155
-
156
- ## Generating classnames and CSS custom selectors from presets
157
-
158
- Many of theme.json's presets will generate both CSS custom properties and CSS rules (consisting of a selector and the CSS declarations) on the frontend.
159
-
160
- Styling a block using these presets normally involves adding the selector to the "className" attribute of the block.
161
-
162
- For styles that can have preset values, such as text color and font family, the Style Engine knows how to construct the classnames using the preset slug.
163
-
164
- To discern CSS values from preset values, the Style Engine expects a special format.
165
-
166
- Preset values must follow the pattern `var:preset|<PRESET_TYPE>|<PRESET_SLUG>`.
167
-
168
- When the Style Engine encounters these values, it will parse them and create a CSS value of `var(--wp--preset--font-size--small)` and/or generate a classname if required.
169
-
170
- Example:
171
-
172
- ```php
173
- // Let's say the block attributes styles contain a fontSize preset slug of "small".
174
- // $block_attributes['fontSize'] = 'var:preset|font-size|small';
175
- $preset_font_size = "var:preset|font-size|{$block_attributes['fontSize']}";
176
- // Now let's say the block attributes styles contain a backgroundColor preset slug of "blue".
177
- // $block_attributes['backgroundColor'] = 'var:preset|color|blue';
178
- $preset_background_color = "var:preset|color|{$block_attributes['backgroundColor']}";
179
-
180
- $block_styles = array(
181
- 'typography' => array( 'fontSize' => $preset_font_size ),
182
- 'color' => array( 'background' => $preset_background_color ),
183
- 'spacing' => array( 'padding' => '10px', 'margin' => array( 'top' => '1em') ),
184
- );
185
-
186
- $styles = wp_style_engine_get_styles(
187
- $block_styles
188
- );
189
- print_r( $styles );
190
-
191
- /*
192
- array(
193
- 'css' => 'background-color:var(--wp--preset--color--blue);padding:10px;margin-top:1em;font-size:var(--wp--preset--font-size--small);',
194
- 'declarations' => array(
195
- 'background-color' => 'var(--wp--preset--color--blue)',
196
- 'padding' => '10px',
197
- 'margin-top' => '1em',
198
- 'font-size' => 'var(--wp--preset--font-size--small)',
199
- ),
200
- 'classnames' => 'has-background has-blue-background-color has-small-font-size',
201
- )
202
- */
203
- ```
204
-
205
- If you don't want the Style Engine to output the CSS custom vars in the generated CSS string as well, which you might not if you're applying both the CSS rules and classnames to the block element, you can pass `'convert_vars_to_classnames' => true` in the options array.
206
-
207
- This flag means "convert the vars to classnames and don't output the vars to the CSS". The Style Engine will therefore **only** generate the required classnames and omit the CSS custom vars in the CSS.
208
-
209
- Using the above example code, observe the different output when we pass the option:
210
-
211
- ```php
212
- $options = array(
213
- 'convert_vars_to_classnames' => true,
214
- );
215
-
216
- $styles = wp_style_engine_get_styles(
217
- $block_styles,
218
- $options
219
- );
220
- print_r( $styles );
221
-
222
- /*
223
- array(
224
- 'css' => 'padding:10px;margin-top:1em;',
225
- 'declarations' => array(
226
- 'padding' => '10px',
227
- 'margin-top' => '1em',
228
- ),
229
- 'classnames' => 'has-background has-blue-background-color has-small-font-size',
230
- )
231
- */
232
- ```
233
-
234
- Read more about [global styles](https://developer.wordpress.org/block-editor/explanations/architecture/styles/#global-styles) and [preset CSS custom properties](https://developer.wordpress.org/block-editor/how-to-guides/themes/global-settings-and-styles.md#css-custom-properties-presets-custom) and [theme supports](https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/).
package/tsconfig.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig.json",
3
- "extends": "../../tsconfig.base.json"
4
- }
@@ -1 +0,0 @@
1
- {"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/typescript/lib/lib.es2024.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../node_modules/typescript/lib/lib.esnext.float16.d.ts","../../node_modules/typescript/lib/lib.esnext.error.d.ts","../../node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../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/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/react/index.d.ts","./src/types.ts","./src/styles/constants.ts","./src/styles/utils.ts","./src/styles/border/index.ts","./src/styles/color/background.ts","./src/styles/color/gradient.ts","./src/styles/color/text.ts","./src/styles/color/index.ts","./src/styles/dimensions/index.ts","./src/styles/background/index.ts","./src/styles/shadow/index.ts","./src/styles/outline/index.ts","./src/styles/spacing/padding.ts","./src/styles/spacing/margin.ts","./src/styles/spacing/index.ts","./src/styles/typography/index.ts","./src/styles/index.ts","./src/index.ts"],"fileIdsList":[[95,96,97],[84],[83],[83,84,85,86,87,88,89,90,91,92,93],[86],[88],[94,99,101,115],[99,101],[103,104,105],[102,106,107,108,109,110,113,114],[111,112],[94,99,100],[98]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4e123af1af6049685c93073a15868b50aebdad666d422edc72fa2b585fa8a37","impliedFormat":1},{"version":"f86c04a744ebcede96bac376f9a2c90f2bd3c422740d91dda4ca6233199d4977","impliedFormat":1},{"version":"6ae1bddee5c790439bd992abd063b9b46e0cadd676c2a8562268d1869213ff60","impliedFormat":1},{"version":"606244fc97a6a74b877f2e924ba7e55b233bc6acb57d7bf40ba84a5be2d9adb0","impliedFormat":1},{"version":"4a1cabac71036b8a14f5db1b753b579f0c901c7d7b9227e6872dadf6efb104e8","impliedFormat":1},{"version":"062959a1d825b96639d87be35fe497cbd3f89544bf06fdad577bbfb85fcf604c","impliedFormat":1},{"version":"4c3672dc8f4e4fdd3d18525b22b31f1b5481f5a415db96550d3ac5163a6c3dd3","impliedFormat":1},{"version":"f9a69ca445010b91fe08f08c06e0f86d79c0d776905f9bdb828477cb2a1eb7fc","impliedFormat":1},{"version":"ad7fd0e7ee457d4884b3aaecbcbd2a80b6803407c4ce2540c296170d4c7918ef","impliedFormat":1},{"version":"a50ef21605f41c6acad6c3ef0307e5311b94963c846ca093c764b80cdb5318d6","impliedFormat":1},{"version":"74b4035dd26d09a417c44ca23ab5ee69b173f8c2f6b2e47350ab0795cf2d4a17","impliedFormat":1},{"version":"918f86ee2b19cc38cb8b1a4cf8f223eb228aaa39df3604c42f700fac2f0b3ea1","impliedFormat":1},{"version":"55461596dc873b866911ef4e640fae4c39da7ac1fbc7ef5e649cb2f2fb42c349","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c68749a564a6facdf675416d75789ee5a557afda8960e0803cf6711fa569288","impliedFormat":1},{"version":"f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","impliedFormat":1},{"version":"8ca4709dbd22a34bcc1ebf93e1877645bdb02ebd3f3d9a211a299a8db2ee4ba1","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb2ceed19e0b7482dc537ed2490bdb4491d90cfa0bd5f3e403ac5042f36d0fe4","signature":"156bc964d404f5c75fc9982ed04809cbf3db8c9e351a98dd9f09fec7d4b949ec"},{"version":"301543eebfdd2fc5e5d6d928c5ed3f65bd377e95d184eb1351df5fe38ef9eac0","signature":"b6dbb3376b4265410d8aad2c234b41ac0a1f8d29e0ae0bf06c159c9f2ef13fc0"},{"version":"5845aea1f53caa3e725b90d6bf869aebe608a61c99e0bc959c1462ced2962300","signature":"a9a2b2976cf46df21e0f23c4ab90e0f8a9ae7f551a3dec463252df8a6b893c3d"},{"version":"6a47ab963c0de27ca91c40b8a8370d4c368f51bbcfeb70ca028fa3679afa56f9","signature":"65511c14946110a16693dd09273dfc0f8060d0ac6d0ad40cbcebdced0b251961"},{"version":"49dec6685c69b84a795d1e2c2a8d7ac8953efb4a7dadb9b1b04c836053e0ea21","signature":"9a4c1e89a7eeff330b95276972fee79058b121b261d1118ef7d5ef9cfc3bccdd"},{"version":"8cbcd8c85fe3627d4c9e75ccf2784b7e4d0082396600e9d432f1cd61009a7933","signature":"1bcecf449f856cced1aeb30fbb82a49e1037833139fd43bf1c1740ccc9ba0b6a"},{"version":"f303eb9a884f47802f08d6b1d376c737856c29783532a44116bfc7e4929a7204","signature":"629dbceb125f23c956f1f42fc11f9b37d42f49519267b4f8448a4e5c1214d142"},{"version":"e8dc9f16ad89ba54f1e7202369a69a265ccd5eec0df39cf429ff1a941603d4da","signature":"2439cec606f95353956bd2e48af0b238600ec807f6270db4fc22e6433bb59efd"},{"version":"11b73ba7b2d332dbc375f76c20c52432f9334b66d3812050de74a154a5c8cd7d","signature":"06f5b632cabf37fd02dd4ebff4cb0f8a693846cac3f30a47f1a517e9ff956bd3"},{"version":"e02067cf9aa8586210240c0c9b52f7abc6ec5f65a3ecb5a4efeaf1115264de6e","signature":"06f5b632cabf37fd02dd4ebff4cb0f8a693846cac3f30a47f1a517e9ff956bd3"},{"version":"51f25b3291c4ca38c72cb150453eb2961bb0ca2891102719064e2a695c47a55a","signature":"06f5b632cabf37fd02dd4ebff4cb0f8a693846cac3f30a47f1a517e9ff956bd3"},{"version":"697ce73163b0e4ac9fe325a666e48b76b0754eff4b3fe7906369894a76cd860f","signature":"a69042401e8a750db9b3e8be7898ee61a6af5bacdc2abfa373b596923b68f170"},{"version":"caa45d96bc56c4f2ea6dfbe715413636f0d8b74121a8820b70526a3ae1bfd9b9","signature":"aaf7dd84606d5f76aa8219904020c11a858ce264dc846a4023faff5e3823e9b4"},{"version":"3d0705f37a3de49d9210d2656cd697ae0cd93476a7e60f7b099797166e4d78b0","signature":"76fc0038ad0327ca885df7e552ebbf68e65ec59cf5ecab10cbdcb48486367cb0"},{"version":"b7003bd91d5a0b8bf84a3ef07a0cf5a4b8e0cef58d9e6404f54f05fd4ed6f0b2","signature":"2439cec606f95353956bd2e48af0b238600ec807f6270db4fc22e6433bb59efd"},{"version":"8f78e17d875af8af5817ba21888947d6a220016b0968e5f220292c24f09e5fb7","signature":"06f5b632cabf37fd02dd4ebff4cb0f8a693846cac3f30a47f1a517e9ff956bd3"},{"version":"c79131802a0c87da52604e6e6c6e87ef62168bbc7eb8f37ba587b0ef456d2e30","signature":"ed379548d37856782da05eb4ead24db026f64d325c2cfbe256e667da7efe7c42"},{"version":"59f1688c24d09455eed4b73a555ce536c5ba7c197043efa8aadd09c5ad7f97e0","signature":"9a234928ebfed61c66bd5d8f281281085f3dcf93ad00a5aa289929cbba3a7a05"}],"root":[[99,116]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"checkJs":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"rootDir":"./src","skipDefaultLibCheck":true,"strict":true,"target":99},"referencedMap":[[98,1],[85,2],[86,3],[94,4],[87,3],[88,3],[89,5],[90,6],[84,3],[91,6],[92,3],[93,6],[116,7],[108,8],[102,8],[103,8],[104,8],[106,9],[105,8],[107,8],[115,10],[110,8],[109,8],[113,11],[112,8],[111,8],[114,8],[101,12],[99,13]],"latestChangedDtsFile":"./build-types/index.d.ts","version":"5.9.3"}
File without changes
File without changes
File without changes
File without changes
File without changes