@wordpress/primitives 3.37.0 → 3.38.1
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 +2 -0
- package/build/block-quotation/index.js.map +1 -1
- package/build/block-quotation/index.native.js +5 -12
- package/build/block-quotation/index.native.js.map +1 -1
- package/build/horizontal-rule/index.js.map +1 -1
- package/build/horizontal-rule/index.native.js +1 -11
- package/build/horizontal-rule/index.native.js.map +1 -1
- package/build/index.js +0 -8
- package/build/index.js.map +1 -1
- package/build/svg/index.js +17 -39
- package/build/svg/index.js.map +1 -1
- package/build/svg/index.native.js +7 -12
- package/build/svg/index.native.js.map +1 -1
- package/build/view/index.js.map +1 -1
- package/build/view/index.native.js +0 -1
- package/build/view/index.native.js.map +1 -1
- package/build-module/block-quotation/index.js.map +1 -1
- package/build-module/block-quotation/index.native.js +4 -7
- package/build-module/block-quotation/index.native.js.map +1 -1
- package/build-module/horizontal-rule/index.js.map +1 -1
- package/build-module/horizontal-rule/index.native.js +2 -9
- package/build-module/horizontal-rule/index.native.js.map +1 -1
- package/build-module/index.js.map +1 -1
- package/build-module/svg/index.js +19 -16
- package/build-module/svg/index.js.map +1 -1
- package/build-module/svg/index.native.js +8 -6
- package/build-module/svg/index.native.js.map +1 -1
- package/build-module/view/index.js.map +1 -1
- package/build-module/view/index.native.js.map +1 -1
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/primitives/src/block-quotation/index.js"],"
|
|
1
|
+
{"version":3,"names":["BlockQuotation","exports"],"sources":["@wordpress/primitives/src/block-quotation/index.js"],"sourcesContent":["export const BlockQuotation = 'blockquote';\n"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAG,YAAY;AAACC,OAAA,CAAAD,cAAA,GAAAA,cAAA"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.BlockQuotation = void 0;
|
|
9
|
-
|
|
10
8
|
var _element = require("@wordpress/element");
|
|
11
|
-
|
|
12
9
|
var _reactNative = require("react-native");
|
|
13
|
-
|
|
14
10
|
var _compose = require("@wordpress/compose");
|
|
15
|
-
|
|
16
11
|
var _style = _interopRequireDefault(require("./style.scss"));
|
|
17
|
-
|
|
18
12
|
/**
|
|
19
13
|
* External dependencies
|
|
20
14
|
*/
|
|
@@ -26,7 +20,9 @@ var _style = _interopRequireDefault(require("./style.scss"));
|
|
|
26
20
|
/**
|
|
27
21
|
* Internal dependencies
|
|
28
22
|
*/
|
|
29
|
-
|
|
23
|
+
|
|
24
|
+
const BlockQuotation = (0, _element.forwardRef)(({
|
|
25
|
+
...props
|
|
30
26
|
}, ref) => {
|
|
31
27
|
const {
|
|
32
28
|
style
|
|
@@ -37,26 +33,23 @@ const BlockQuotation = (0, _element.forwardRef)(({ ...props
|
|
|
37
33
|
const colorStyle = style?.color ? {
|
|
38
34
|
color: style.color
|
|
39
35
|
} : {};
|
|
40
|
-
|
|
41
36
|
const newChildren = _element.Children.map(props.children, child => {
|
|
42
37
|
if (child && child.props.identifier === 'citation') {
|
|
43
38
|
return (0, _element.cloneElement)(child, {
|
|
44
|
-
style: {
|
|
39
|
+
style: {
|
|
40
|
+
..._style.default.wpBlockQuoteCitation,
|
|
45
41
|
...colorStyle
|
|
46
42
|
}
|
|
47
43
|
});
|
|
48
44
|
}
|
|
49
|
-
|
|
50
45
|
if (child && child.props.identifier === 'value') {
|
|
51
46
|
return (0, _element.cloneElement)(child, {
|
|
52
47
|
tagsToEliminate: ['div'],
|
|
53
48
|
style: colorStyle
|
|
54
49
|
});
|
|
55
50
|
}
|
|
56
|
-
|
|
57
51
|
return child;
|
|
58
52
|
});
|
|
59
|
-
|
|
60
53
|
return (0, _element.createElement)(_reactNative.View, {
|
|
61
54
|
ref: ref,
|
|
62
55
|
style: blockQuoteStyle
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_element","require","_reactNative","_compose","_style","_interopRequireDefault","BlockQuotation","forwardRef","props","ref","style","blockQuoteStyle","usePreferredColorSchemeStyle","styles","wpBlockQuoteLight","wpBlockQuoteDark","color","borderLeftColor","backgroundColor","paddingWithBackground","colorStyle","newChildren","Children","map","children","child","identifier","cloneElement","wpBlockQuoteCitation","tagsToEliminate","createElement","View","exports"],"sources":["@wordpress/primitives/src/block-quotation/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n/**\n * WordPress dependencies\n */\nimport { Children, cloneElement, forwardRef } from '@wordpress/element';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nexport const BlockQuotation = forwardRef( ( { ...props }, ref ) => {\n\tconst { style } = props;\n\n\tconst blockQuoteStyle = [\n\t\tusePreferredColorSchemeStyle(\n\t\t\tstyles.wpBlockQuoteLight,\n\t\t\tstyles.wpBlockQuoteDark\n\t\t),\n\t\tstyle?.color && {\n\t\t\tborderLeftColor: style.color,\n\t\t},\n\t\tstyle,\n\t\tstyle?.backgroundColor && styles.paddingWithBackground,\n\t];\n\tconst colorStyle = style?.color ? { color: style.color } : {};\n\n\tconst newChildren = Children.map( props.children, ( child ) => {\n\t\tif ( child && child.props.identifier === 'citation' ) {\n\t\t\treturn cloneElement( child, {\n\t\t\t\tstyle: {\n\t\t\t\t\t...styles.wpBlockQuoteCitation,\n\t\t\t\t\t...colorStyle,\n\t\t\t\t},\n\t\t\t} );\n\t\t}\n\t\tif ( child && child.props.identifier === 'value' ) {\n\t\t\treturn cloneElement( child, {\n\t\t\t\ttagsToEliminate: [ 'div' ],\n\t\t\t\tstyle: colorStyle,\n\t\t\t} );\n\t\t}\n\t\treturn child;\n\t} );\n\treturn (\n\t\t<View ref={ ref } style={ blockQuoteStyle }>\n\t\t\t{ newChildren }\n\t\t</View>\n\t);\n} );\n"],"mappings":";;;;;;;AAOA,IAAAA,QAAA,GAAAC,OAAA;AAJA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,QAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAZA;AACA;AACA;;AAEA;AACA;AACA;;AAGA;AACA;AACA;;AAGO,MAAMK,cAAc,GAAG,IAAAC,mBAAU,EAAE,CAAE;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAM;EAClE,MAAM;IAAEC;EAAM,CAAC,GAAGF,KAAK;EAEvB,MAAMG,eAAe,GAAG,CACvB,IAAAC,qCAA4B,EAC3BC,cAAM,CAACC,iBAAiB,EACxBD,cAAM,CAACE,gBACR,CAAC,EACDL,KAAK,EAAEM,KAAK,IAAI;IACfC,eAAe,EAAEP,KAAK,CAACM;EACxB,CAAC,EACDN,KAAK,EACLA,KAAK,EAAEQ,eAAe,IAAIL,cAAM,CAACM,qBAAqB,CACtD;EACD,MAAMC,UAAU,GAAGV,KAAK,EAAEM,KAAK,GAAG;IAAEA,KAAK,EAAEN,KAAK,CAACM;EAAM,CAAC,GAAG,CAAC,CAAC;EAE7D,MAAMK,WAAW,GAAGC,iBAAQ,CAACC,GAAG,CAAEf,KAAK,CAACgB,QAAQ,EAAIC,KAAK,IAAM;IAC9D,IAAKA,KAAK,IAAIA,KAAK,CAACjB,KAAK,CAACkB,UAAU,KAAK,UAAU,EAAG;MACrD,OAAO,IAAAC,qBAAY,EAAEF,KAAK,EAAE;QAC3Bf,KAAK,EAAE;UACN,GAAGG,cAAM,CAACe,oBAAoB;UAC9B,GAAGR;QACJ;MACD,CAAE,CAAC;IACJ;IACA,IAAKK,KAAK,IAAIA,KAAK,CAACjB,KAAK,CAACkB,UAAU,KAAK,OAAO,EAAG;MAClD,OAAO,IAAAC,qBAAY,EAAEF,KAAK,EAAE;QAC3BI,eAAe,EAAE,CAAE,KAAK,CAAE;QAC1BnB,KAAK,EAAEU;MACR,CAAE,CAAC;IACJ;IACA,OAAOK,KAAK;EACb,CAAE,CAAC;EACH,OACC,IAAAzB,QAAA,CAAA8B,aAAA,EAAC5B,YAAA,CAAA6B,IAAI;IAACtB,GAAG,EAAGA,GAAK;IAACC,KAAK,EAAGC;EAAiB,GACxCU,WACG,CAAC;AAET,CAAE,CAAC;AAACW,OAAA,CAAA1B,cAAA,GAAAA,cAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/primitives/src/horizontal-rule/index.js"],"
|
|
1
|
+
{"version":3,"names":["HorizontalRule","exports"],"sources":["@wordpress/primitives/src/horizontal-rule/index.js"],"sourcesContent":["export const HorizontalRule = 'hr';\n"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAG,IAAI;AAACC,OAAA,CAAAD,cAAA,GAAAA,cAAA"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.HorizontalRule = void 0;
|
|
9
|
-
|
|
10
8
|
var _element = require("@wordpress/element");
|
|
11
|
-
|
|
12
9
|
var _reactNative = require("react-native");
|
|
13
|
-
|
|
14
10
|
var _compose = require("@wordpress/compose");
|
|
15
|
-
|
|
16
11
|
var _styles = _interopRequireDefault(require("./styles.scss"));
|
|
17
|
-
|
|
18
12
|
/**
|
|
19
13
|
* External dependencies
|
|
20
14
|
*/
|
|
@@ -26,6 +20,7 @@ var _styles = _interopRequireDefault(require("./styles.scss"));
|
|
|
26
20
|
/**
|
|
27
21
|
* Internal dependencies
|
|
28
22
|
*/
|
|
23
|
+
|
|
29
24
|
const HR = ({
|
|
30
25
|
getStylesFromColorScheme,
|
|
31
26
|
lineStyle,
|
|
@@ -39,21 +34,17 @@ const HR = ({
|
|
|
39
34
|
key: key,
|
|
40
35
|
style: getStylesFromColorScheme(_styles.default.line, _styles.default.lineDark)
|
|
41
36
|
});
|
|
42
|
-
|
|
43
37
|
const renderText = key => (0, _element.createElement)(_reactNative.View, {
|
|
44
38
|
key: key
|
|
45
39
|
}, (0, _element.createElement)(_reactNative.Text, {
|
|
46
40
|
style: [_styles.default.text, textStyle]
|
|
47
41
|
}, text));
|
|
48
|
-
|
|
49
42
|
const renderInner = () => {
|
|
50
43
|
if (!text) {
|
|
51
44
|
return renderLine();
|
|
52
45
|
}
|
|
53
|
-
|
|
54
46
|
return [renderLine(1), renderText(2), renderLine(3)];
|
|
55
47
|
};
|
|
56
|
-
|
|
57
48
|
return (0, _element.createElement)(_reactNative.View, {
|
|
58
49
|
style: [_styles.default.container, {
|
|
59
50
|
marginLeft,
|
|
@@ -62,7 +53,6 @@ const HR = ({
|
|
|
62
53
|
...props
|
|
63
54
|
}, renderInner());
|
|
64
55
|
};
|
|
65
|
-
|
|
66
56
|
const HorizontalRule = (0, _compose.withPreferredColorScheme)(HR);
|
|
67
57
|
exports.HorizontalRule = HorizontalRule;
|
|
68
58
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_compose","_styles","_interopRequireDefault","HR","getStylesFromColorScheme","lineStyle","marginLeft","marginRight","textStyle","text","props","renderLine","key","_element","createElement","View","style","styles","line","lineDark","renderText","Text","renderInner","container","HorizontalRule","withPreferredColorScheme","exports"],"sources":["@wordpress/primitives/src/horizontal-rule/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Text, View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { withPreferredColorScheme } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './styles.scss';\n\nconst HR = ( {\n\tgetStylesFromColorScheme,\n\tlineStyle,\n\tmarginLeft,\n\tmarginRight,\n\ttextStyle,\n\ttext,\n\t...props\n} ) => {\n\tconst renderLine = ( key ) => (\n\t\t<View\n\t\t\tkey={ key }\n\t\t\tstyle={ getStylesFromColorScheme( styles.line, styles.lineDark ) }\n\t\t/>\n\t);\n\n\tconst renderText = ( key ) => (\n\t\t<View key={ key }>\n\t\t\t<Text style={ [ styles.text, textStyle ] }>{ text }</Text>\n\t\t</View>\n\t);\n\n\tconst renderInner = () => {\n\t\tif ( ! text ) {\n\t\t\treturn renderLine();\n\t\t}\n\t\treturn [ renderLine( 1 ), renderText( 2 ), renderLine( 3 ) ];\n\t};\n\n\treturn (\n\t\t<View\n\t\t\tstyle={ [\n\t\t\t\tstyles.container,\n\t\t\t\t{ marginLeft, marginRight },\n\t\t\t\tprops.style,\n\t\t\t] }\n\t\t\t{ ...props }\n\t\t>\n\t\t\t{ renderInner() }\n\t\t</View>\n\t);\n};\n\nexport const HorizontalRule = withPreferredColorScheme( HR );\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAKA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AAbA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAGA,MAAMI,EAAE,GAAGA,CAAE;EACZC,wBAAwB;EACxBC,SAAS;EACTC,UAAU;EACVC,WAAW;EACXC,SAAS;EACTC,IAAI;EACJ,GAAGC;AACJ,CAAC,KAAM;EACN,MAAMC,UAAU,GAAKC,GAAG,IACvB,IAAAC,QAAA,CAAAC,aAAA,EAAChB,YAAA,CAAAiB,IAAI;IACJH,GAAG,EAAGA,GAAK;IACXI,KAAK,EAAGZ,wBAAwB,CAAEa,eAAM,CAACC,IAAI,EAAED,eAAM,CAACE,QAAS;EAAG,CAClE,CACD;EAED,MAAMC,UAAU,GAAKR,GAAG,IACvB,IAAAC,QAAA,CAAAC,aAAA,EAAChB,YAAA,CAAAiB,IAAI;IAACH,GAAG,EAAGA;EAAK,GAChB,IAAAC,QAAA,CAAAC,aAAA,EAAChB,YAAA,CAAAuB,IAAI;IAACL,KAAK,EAAG,CAAEC,eAAM,CAACR,IAAI,EAAED,SAAS;EAAI,GAAGC,IAAY,CACpD,CACN;EAED,MAAMa,WAAW,GAAGA,CAAA,KAAM;IACzB,IAAK,CAAEb,IAAI,EAAG;MACb,OAAOE,UAAU,CAAC,CAAC;IACpB;IACA,OAAO,CAAEA,UAAU,CAAE,CAAE,CAAC,EAAES,UAAU,CAAE,CAAE,CAAC,EAAET,UAAU,CAAE,CAAE,CAAC,CAAE;EAC7D,CAAC;EAED,OACC,IAAAE,QAAA,CAAAC,aAAA,EAAChB,YAAA,CAAAiB,IAAI;IACJC,KAAK,EAAG,CACPC,eAAM,CAACM,SAAS,EAChB;MAAEjB,UAAU;MAAEC;IAAY,CAAC,EAC3BG,KAAK,CAACM,KAAK,CACT;IAAA,GACEN;EAAK,GAERY,WAAW,CAAC,CACT,CAAC;AAET,CAAC;AAEM,MAAME,cAAc,GAAG,IAAAC,iCAAwB,EAAEtB,EAAG,CAAC;AAACuB,OAAA,CAAAF,cAAA,GAAAA,cAAA"}
|
package/build/index.js
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
var _svg = require("./svg");
|
|
8
|
-
|
|
9
7
|
Object.keys(_svg).forEach(function (key) {
|
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
|
11
9
|
if (key in exports && exports[key] === _svg[key]) return;
|
|
@@ -16,9 +14,7 @@ Object.keys(_svg).forEach(function (key) {
|
|
|
16
14
|
}
|
|
17
15
|
});
|
|
18
16
|
});
|
|
19
|
-
|
|
20
17
|
var _horizontalRule = require("./horizontal-rule");
|
|
21
|
-
|
|
22
18
|
Object.keys(_horizontalRule).forEach(function (key) {
|
|
23
19
|
if (key === "default" || key === "__esModule") return;
|
|
24
20
|
if (key in exports && exports[key] === _horizontalRule[key]) return;
|
|
@@ -29,9 +25,7 @@ Object.keys(_horizontalRule).forEach(function (key) {
|
|
|
29
25
|
}
|
|
30
26
|
});
|
|
31
27
|
});
|
|
32
|
-
|
|
33
28
|
var _blockQuotation = require("./block-quotation");
|
|
34
|
-
|
|
35
29
|
Object.keys(_blockQuotation).forEach(function (key) {
|
|
36
30
|
if (key === "default" || key === "__esModule") return;
|
|
37
31
|
if (key in exports && exports[key] === _blockQuotation[key]) return;
|
|
@@ -42,9 +36,7 @@ Object.keys(_blockQuotation).forEach(function (key) {
|
|
|
42
36
|
}
|
|
43
37
|
});
|
|
44
38
|
});
|
|
45
|
-
|
|
46
39
|
var _view = require("./view");
|
|
47
|
-
|
|
48
40
|
Object.keys(_view).forEach(function (key) {
|
|
49
41
|
if (key === "default" || key === "__esModule") return;
|
|
50
42
|
if (key in exports && exports[key] === _view[key]) return;
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/primitives/src/index.js"],"
|
|
1
|
+
{"version":3,"names":["_svg","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_horizontalRule","_blockQuotation","_view"],"sources":["@wordpress/primitives/src/index.js"],"sourcesContent":["export * from './svg';\nexport * from './horizontal-rule';\nexport * from './block-quotation';\nexport * from './view';\n"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,eAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,eAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,eAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,eAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,eAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,eAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,eAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,eAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,KAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,KAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,KAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,KAAA,CAAAP,GAAA;IAAA;EAAA;AAAA"}
|
package/build/svg/index.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.Stop = exports.SVG = exports.Rect = exports.RadialGradient = exports.Polygon = exports.Path = exports.LinearGradient = exports.Line = exports.G = exports.Defs = exports.Circle = void 0;
|
|
9
|
-
|
|
10
8
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
9
|
var _element = require("@wordpress/element");
|
|
13
|
-
|
|
14
10
|
/**
|
|
15
11
|
* External dependencies
|
|
16
12
|
*/
|
|
@@ -27,96 +23,79 @@ var _element = require("@wordpress/element");
|
|
|
27
23
|
* @return {JSX.Element} Circle component
|
|
28
24
|
*/
|
|
29
25
|
const Circle = props => (0, _element.createElement)('circle', props);
|
|
26
|
+
|
|
30
27
|
/**
|
|
31
28
|
* @param {import('react').ComponentPropsWithoutRef<'g'>} props
|
|
32
29
|
*
|
|
33
30
|
* @return {JSX.Element} G component
|
|
34
31
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
32
|
exports.Circle = Circle;
|
|
38
|
-
|
|
39
33
|
const G = props => (0, _element.createElement)('g', props);
|
|
34
|
+
|
|
40
35
|
/**
|
|
41
36
|
* @param {import('react').ComponentPropsWithoutRef<'line'>} props
|
|
42
37
|
*
|
|
43
38
|
* @return {JSX.Element} Path component
|
|
44
39
|
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
40
|
exports.G = G;
|
|
48
|
-
|
|
49
41
|
const Line = props => (0, _element.createElement)('line', props);
|
|
42
|
+
|
|
50
43
|
/**
|
|
51
44
|
* @param {import('react').ComponentPropsWithoutRef<'path'>} props
|
|
52
45
|
*
|
|
53
46
|
* @return {JSX.Element} Path component
|
|
54
47
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
48
|
exports.Line = Line;
|
|
58
|
-
|
|
59
49
|
const Path = props => (0, _element.createElement)('path', props);
|
|
50
|
+
|
|
60
51
|
/**
|
|
61
52
|
* @param {import('react').ComponentPropsWithoutRef<'polygon'>} props
|
|
62
53
|
*
|
|
63
54
|
* @return {JSX.Element} Polygon component
|
|
64
55
|
*/
|
|
65
|
-
|
|
66
|
-
|
|
67
56
|
exports.Path = Path;
|
|
68
|
-
|
|
69
57
|
const Polygon = props => (0, _element.createElement)('polygon', props);
|
|
58
|
+
|
|
70
59
|
/**
|
|
71
60
|
* @param {import('react').ComponentPropsWithoutRef<'rect'>} props
|
|
72
61
|
*
|
|
73
62
|
* @return {JSX.Element} Rect component
|
|
74
63
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
64
|
exports.Polygon = Polygon;
|
|
78
|
-
|
|
79
65
|
const Rect = props => (0, _element.createElement)('rect', props);
|
|
66
|
+
|
|
80
67
|
/**
|
|
81
68
|
* @param {import('react').ComponentPropsWithoutRef<'defs'>} props
|
|
82
69
|
*
|
|
83
70
|
* @return {JSX.Element} Defs component
|
|
84
71
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
72
|
exports.Rect = Rect;
|
|
88
|
-
|
|
89
73
|
const Defs = props => (0, _element.createElement)('defs', props);
|
|
74
|
+
|
|
90
75
|
/**
|
|
91
76
|
* @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props
|
|
92
77
|
*
|
|
93
78
|
* @return {JSX.Element} RadialGradient component
|
|
94
79
|
*/
|
|
95
|
-
|
|
96
|
-
|
|
97
80
|
exports.Defs = Defs;
|
|
98
|
-
|
|
99
81
|
const RadialGradient = props => (0, _element.createElement)('radialGradient', props);
|
|
82
|
+
|
|
100
83
|
/**
|
|
101
84
|
* @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props
|
|
102
85
|
*
|
|
103
86
|
* @return {JSX.Element} LinearGradient component
|
|
104
87
|
*/
|
|
105
|
-
|
|
106
|
-
|
|
107
88
|
exports.RadialGradient = RadialGradient;
|
|
108
|
-
|
|
109
89
|
const LinearGradient = props => (0, _element.createElement)('linearGradient', props);
|
|
90
|
+
|
|
110
91
|
/**
|
|
111
92
|
* @param {import('react').ComponentPropsWithoutRef<'stop'>} props
|
|
112
93
|
*
|
|
113
94
|
* @return {JSX.Element} Stop component
|
|
114
95
|
*/
|
|
115
|
-
|
|
116
|
-
|
|
117
96
|
exports.LinearGradient = LinearGradient;
|
|
118
|
-
|
|
119
97
|
const Stop = props => (0, _element.createElement)('stop', props);
|
|
98
|
+
|
|
120
99
|
/**
|
|
121
100
|
*
|
|
122
101
|
* @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.
|
|
@@ -124,27 +103,26 @@ const Stop = props => (0, _element.createElement)('stop', props);
|
|
|
124
103
|
*
|
|
125
104
|
* @return {JSX.Element} Stop component
|
|
126
105
|
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
106
|
exports.Stop = Stop;
|
|
130
|
-
|
|
131
107
|
const SVG = ({
|
|
132
108
|
className,
|
|
133
109
|
isPressed,
|
|
134
110
|
...props
|
|
135
111
|
}) => {
|
|
136
|
-
const appliedProps = {
|
|
112
|
+
const appliedProps = {
|
|
113
|
+
...props,
|
|
137
114
|
className: (0, _classnames.default)(className, {
|
|
138
115
|
'is-pressed': isPressed
|
|
139
116
|
}) || undefined,
|
|
140
117
|
'aria-hidden': true,
|
|
141
118
|
focusable: false
|
|
142
|
-
};
|
|
143
|
-
// eslint-disable-next-line react/forbid-elements
|
|
119
|
+
};
|
|
144
120
|
|
|
145
|
-
|
|
121
|
+
// Disable reason: We need to have a way to render HTML tag for web.
|
|
122
|
+
// eslint-disable-next-line react/forbid-elements
|
|
123
|
+
return (0, _element.createElement)("svg", {
|
|
124
|
+
...appliedProps
|
|
146
125
|
});
|
|
147
126
|
};
|
|
148
|
-
|
|
149
127
|
exports.SVG = SVG;
|
|
150
128
|
//# sourceMappingURL=index.js.map
|
package/build/svg/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_classnames","_interopRequireDefault","require","_element","Circle","props","createElement","exports","G","Line","Path","Polygon","Rect","Defs","RadialGradient","LinearGradient","Stop","SVG","className","isPressed","appliedProps","classnames","undefined","focusable"],"sources":["@wordpress/primitives/src/svg/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { createElement } from '@wordpress/element';\n\n/** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'circle'>} props\n *\n * @return {JSX.Element} Circle component\n */\nexport const Circle = ( props ) => createElement( 'circle', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'g'>} props\n *\n * @return {JSX.Element} G component\n */\nexport const G = ( props ) => createElement( 'g', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'line'>} props\n *\n * @return {JSX.Element} Path component\n */\nexport const Line = ( props ) => createElement( 'line', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'path'>} props\n *\n * @return {JSX.Element} Path component\n */\nexport const Path = ( props ) => createElement( 'path', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props\n *\n * @return {JSX.Element} Polygon component\n */\nexport const Polygon = ( props ) => createElement( 'polygon', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'rect'>} props\n *\n * @return {JSX.Element} Rect component\n */\nexport const Rect = ( props ) => createElement( 'rect', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'defs'>} props\n *\n * @return {JSX.Element} Defs component\n */\nexport const Defs = ( props ) => createElement( 'defs', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props\n *\n * @return {JSX.Element} RadialGradient component\n */\nexport const RadialGradient = ( props ) =>\n\tcreateElement( 'radialGradient', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props\n *\n * @return {JSX.Element} LinearGradient component\n */\nexport const LinearGradient = ( props ) =>\n\tcreateElement( 'linearGradient', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'stop'>} props\n *\n * @return {JSX.Element} Stop component\n */\nexport const Stop = ( props ) => createElement( 'stop', props );\n\n/**\n *\n * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.\n * Other props will be passed through to svg component.\n *\n * @return {JSX.Element} Stop component\n */\nexport const SVG = ( { className, isPressed, ...props } ) => {\n\tconst appliedProps = {\n\t\t...props,\n\t\tclassName:\n\t\t\tclassnames( className, { 'is-pressed': isPressed } ) || undefined,\n\t\t'aria-hidden': true,\n\t\tfocusable: false,\n\t};\n\n\t// Disable reason: We need to have a way to render HTML tag for web.\n\t// eslint-disable-next-line react/forbid-elements\n\treturn <svg { ...appliedProps } />;\n};\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACO,MAAME,MAAM,GAAKC,KAAK,IAAM,IAAAC,sBAAa,EAAE,QAAQ,EAAED,KAAM,CAAC;;AAEnE;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAH,MAAA,GAAAA,MAAA;AAKO,MAAMI,CAAC,GAAKH,KAAK,IAAM,IAAAC,sBAAa,EAAE,GAAG,EAAED,KAAM,CAAC;;AAEzD;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAC,CAAA,GAAAA,CAAA;AAKO,MAAMC,IAAI,GAAKJ,KAAK,IAAM,IAAAC,sBAAa,EAAE,MAAM,EAAED,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAE,IAAA,GAAAA,IAAA;AAKO,MAAMC,IAAI,GAAKL,KAAK,IAAM,IAAAC,sBAAa,EAAE,MAAM,EAAED,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAG,IAAA,GAAAA,IAAA;AAKO,MAAMC,OAAO,GAAKN,KAAK,IAAM,IAAAC,sBAAa,EAAE,SAAS,EAAED,KAAM,CAAC;;AAErE;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAI,OAAA,GAAAA,OAAA;AAKO,MAAMC,IAAI,GAAKP,KAAK,IAAM,IAAAC,sBAAa,EAAE,MAAM,EAAED,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAK,IAAA,GAAAA,IAAA;AAKO,MAAMC,IAAI,GAAKR,KAAK,IAAM,IAAAC,sBAAa,EAAE,MAAM,EAAED,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAM,IAAA,GAAAA,IAAA;AAKO,MAAMC,cAAc,GAAKT,KAAK,IACpC,IAAAC,sBAAa,EAAE,gBAAgB,EAAED,KAAM,CAAC;;AAEzC;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAO,cAAA,GAAAA,cAAA;AAKO,MAAMC,cAAc,GAAKV,KAAK,IACpC,IAAAC,sBAAa,EAAE,gBAAgB,EAAED,KAAM,CAAC;;AAEzC;AACA;AACA;AACA;AACA;AAJAE,OAAA,CAAAQ,cAAA,GAAAA,cAAA;AAKO,MAAMC,IAAI,GAAKX,KAAK,IAAM,IAAAC,sBAAa,EAAE,MAAM,EAAED,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AANAE,OAAA,CAAAS,IAAA,GAAAA,IAAA;AAOO,MAAMC,GAAG,GAAGA,CAAE;EAAEC,SAAS;EAAEC,SAAS;EAAE,GAAGd;AAAM,CAAC,KAAM;EAC5D,MAAMe,YAAY,GAAG;IACpB,GAAGf,KAAK;IACRa,SAAS,EACR,IAAAG,mBAAU,EAAEH,SAAS,EAAE;MAAE,YAAY,EAAEC;IAAU,CAAE,CAAC,IAAIG,SAAS;IAClE,aAAa,EAAE,IAAI;IACnBC,SAAS,EAAE;EACZ,CAAC;;EAED;EACA;EACA,OAAO,IAAApB,QAAA,CAAAG,aAAA;IAAA,GAAUc;EAAY,CAAI,CAAC;AACnC,CAAC;AAACb,OAAA,CAAAU,GAAA,GAAAA,GAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -66,17 +65,11 @@ Object.defineProperty(exports, "Stop", {
|
|
|
66
65
|
return _reactNativeSvg.Stop;
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
|
-
|
|
70
68
|
var _element = require("@wordpress/element");
|
|
71
|
-
|
|
72
69
|
var _reactNativeSvg = require("react-native-svg");
|
|
73
|
-
|
|
74
70
|
var _reactNative = require("react-native");
|
|
75
|
-
|
|
76
71
|
var _compose = require("@wordpress/compose");
|
|
77
|
-
|
|
78
72
|
var _style = _interopRequireDefault(require("./style.scss"));
|
|
79
|
-
|
|
80
73
|
/**
|
|
81
74
|
* External dependencies
|
|
82
75
|
*/
|
|
@@ -88,11 +81,11 @@ var _style = _interopRequireDefault(require("./style.scss"));
|
|
|
88
81
|
/**
|
|
89
82
|
* Internal dependencies
|
|
90
83
|
*/
|
|
84
|
+
|
|
91
85
|
const AnimatedSvg = _reactNative.Animated.createAnimatedComponent((0, _element.forwardRef)((props, ref) => (0, _element.createElement)(_reactNativeSvg.Svg, {
|
|
92
86
|
ref: ref,
|
|
93
87
|
...props
|
|
94
88
|
})));
|
|
95
|
-
|
|
96
89
|
const SVG = ({
|
|
97
90
|
className = '',
|
|
98
91
|
isPressed,
|
|
@@ -103,16 +96,19 @@ const SVG = ({
|
|
|
103
96
|
const stylesFromClasses = className.split(' ').map(element => _style.default[element]).filter(Boolean);
|
|
104
97
|
const defaultStyle = isPressed ? _style.default[`is-pressed--${colorScheme}`] : _style.default['components-toolbar__control-' + colorScheme];
|
|
105
98
|
const propStyle = Array.isArray(props.style) ? props.style.reduce((acc, el) => {
|
|
106
|
-
return {
|
|
99
|
+
return {
|
|
100
|
+
...acc,
|
|
107
101
|
...el
|
|
108
102
|
};
|
|
109
103
|
}, {}) : props.style;
|
|
110
104
|
const styleValues = Object.assign({}, defaultStyle, propStyle, ...stylesFromClasses);
|
|
111
|
-
const appliedProps = {
|
|
105
|
+
const appliedProps = {
|
|
106
|
+
...props,
|
|
112
107
|
style: styleValues
|
|
113
108
|
};
|
|
114
109
|
const SvgWrapper = animated ? AnimatedSvg : _reactNativeSvg.Svg;
|
|
115
|
-
return (0, _element.createElement)(SvgWrapper
|
|
110
|
+
return (0, _element.createElement)(SvgWrapper
|
|
111
|
+
// We want to re-render when style color is changed.
|
|
116
112
|
, {
|
|
117
113
|
key: appliedProps.style.color,
|
|
118
114
|
height: "100%",
|
|
@@ -120,6 +116,5 @@ const SVG = ({
|
|
|
120
116
|
...appliedProps
|
|
121
117
|
});
|
|
122
118
|
};
|
|
123
|
-
|
|
124
119
|
exports.SVG = SVG;
|
|
125
120
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_element","require","_reactNativeSvg","_reactNative","_compose","_style","_interopRequireDefault","AnimatedSvg","Animated","createAnimatedComponent","forwardRef","props","ref","createElement","Svg","SVG","className","isPressed","animated","colorScheme","usePreferredColorScheme","stylesFromClasses","split","map","element","styles","filter","Boolean","defaultStyle","propStyle","Array","isArray","style","reduce","acc","el","styleValues","Object","assign","appliedProps","SvgWrapper","key","color","height","width","exports"],"sources":["@wordpress/primitives/src/svg/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Svg } from 'react-native-svg';\nimport { Animated } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\nimport { usePreferredColorScheme } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nexport {\n\tCircle,\n\tG,\n\tPath,\n\tPolygon,\n\tRect,\n\tDefs,\n\tRadialGradient,\n\tLinearGradient,\n\tStop,\n\tLine,\n} from 'react-native-svg';\n\nconst AnimatedSvg = Animated.createAnimatedComponent(\n\tforwardRef( ( props, ref ) => <Svg ref={ ref } { ...props } /> )\n);\n\nexport const SVG = ( {\n\tclassName = '',\n\tisPressed,\n\tanimated = false,\n\t...props\n} ) => {\n\tconst colorScheme = usePreferredColorScheme();\n\tconst stylesFromClasses = className\n\t\t.split( ' ' )\n\t\t.map( ( element ) => styles[ element ] )\n\t\t.filter( Boolean );\n\tconst defaultStyle = isPressed\n\t\t? styles[ `is-pressed--${ colorScheme }` ]\n\t\t: styles[ 'components-toolbar__control-' + colorScheme ];\n\tconst propStyle = Array.isArray( props.style )\n\t\t? props.style.reduce( ( acc, el ) => {\n\t\t\t\treturn { ...acc, ...el };\n\t\t }, {} )\n\t\t: props.style;\n\tconst styleValues = Object.assign(\n\t\t{},\n\t\tdefaultStyle,\n\t\tpropStyle,\n\t\t...stylesFromClasses\n\t);\n\n\tconst appliedProps = { ...props, style: styleValues };\n\n\tconst SvgWrapper = animated ? AnimatedSvg : Svg;\n\n\treturn (\n\t\t<SvgWrapper\n\t\t\t// We want to re-render when style color is changed.\n\t\t\tkey={ appliedProps.style.color }\n\t\t\theight=\"100%\"\n\t\t\twidth=\"100%\"\n\t\t\t{ ...appliedProps }\n\t\t/>\n\t);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AANA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAMA,IAAAG,QAAA,GAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAC,sBAAA,CAAAL,OAAA;AAfA;AACA;AACA;;AAIA;AACA;AACA;;AAIA;AACA;AACA;;AAgBA,MAAMM,WAAW,GAAGC,qBAAQ,CAACC,uBAAuB,CACnD,IAAAC,mBAAU,EAAE,CAAEC,KAAK,EAAEC,GAAG,KAAM,IAAAZ,QAAA,CAAAa,aAAA,EAACX,eAAA,CAAAY,GAAG;EAACF,GAAG,EAAGA,GAAK;EAAA,GAAMD;AAAK,CAAI,CAAE,CAChE,CAAC;AAEM,MAAMI,GAAG,GAAGA,CAAE;EACpBC,SAAS,GAAG,EAAE;EACdC,SAAS;EACTC,QAAQ,GAAG,KAAK;EAChB,GAAGP;AACJ,CAAC,KAAM;EACN,MAAMQ,WAAW,GAAG,IAAAC,gCAAuB,EAAC,CAAC;EAC7C,MAAMC,iBAAiB,GAAGL,SAAS,CACjCM,KAAK,CAAE,GAAI,CAAC,CACZC,GAAG,CAAIC,OAAO,IAAMC,cAAM,CAAED,OAAO,CAAG,CAAC,CACvCE,MAAM,CAAEC,OAAQ,CAAC;EACnB,MAAMC,YAAY,GAAGX,SAAS,GAC3BQ,cAAM,CAAG,eAAeN,WAAa,EAAC,CAAE,GACxCM,cAAM,CAAE,8BAA8B,GAAGN,WAAW,CAAE;EACzD,MAAMU,SAAS,GAAGC,KAAK,CAACC,OAAO,CAAEpB,KAAK,CAACqB,KAAM,CAAC,GAC3CrB,KAAK,CAACqB,KAAK,CAACC,MAAM,CAAE,CAAEC,GAAG,EAAEC,EAAE,KAAM;IACnC,OAAO;MAAE,GAAGD,GAAG;MAAE,GAAGC;IAAG,CAAC;EACxB,CAAC,EAAE,CAAC,CAAE,CAAC,GACPxB,KAAK,CAACqB,KAAK;EACd,MAAMI,WAAW,GAAGC,MAAM,CAACC,MAAM,CAChC,CAAC,CAAC,EACFV,YAAY,EACZC,SAAS,EACT,GAAGR,iBACJ,CAAC;EAED,MAAMkB,YAAY,GAAG;IAAE,GAAG5B,KAAK;IAAEqB,KAAK,EAAEI;EAAY,CAAC;EAErD,MAAMI,UAAU,GAAGtB,QAAQ,GAAGX,WAAW,GAAGO,mBAAG;EAE/C,OACC,IAAAd,QAAA,CAAAa,aAAA,EAAC2B;EACA;EAAA;IACAC,GAAG,EAAGF,YAAY,CAACP,KAAK,CAACU,KAAO;IAChCC,MAAM,EAAC,MAAM;IACbC,KAAK,EAAC,MAAM;IAAA,GACPL;EAAY,CACjB,CAAC;AAEJ,CAAC;AAACM,OAAA,CAAA9B,GAAA,GAAAA,GAAA"}
|
package/build/view/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/primitives/src/view/index.js"],"
|
|
1
|
+
{"version":3,"names":["View","exports"],"sources":["@wordpress/primitives/src/view/index.js"],"sourcesContent":["export const View = 'div';\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAG,KAAK;AAACC,OAAA,CAAAD,IAAA,GAAAA,IAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/primitives/src/view/index.native.js"],"
|
|
1
|
+
{"version":3,"names":["_reactNative","require"],"sources":["@wordpress/primitives/src/view/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nexport { View } from 'react-native';\n"],"mappings":";;;;;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/primitives/src/block-quotation/index.js"],"
|
|
1
|
+
{"version":3,"names":["BlockQuotation"],"sources":["@wordpress/primitives/src/block-quotation/index.js"],"sourcesContent":["export const BlockQuotation = 'blockquote';\n"],"mappings":"AAAA,OAAO,MAAMA,cAAc,GAAG,YAAY"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createElement } from "@wordpress/element";
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* External dependencies
|
|
5
4
|
*/
|
|
@@ -7,15 +6,14 @@ import { View } from 'react-native';
|
|
|
7
6
|
/**
|
|
8
7
|
* WordPress dependencies
|
|
9
8
|
*/
|
|
10
|
-
|
|
11
9
|
import { Children, cloneElement, forwardRef } from '@wordpress/element';
|
|
12
10
|
import { usePreferredColorSchemeStyle } from '@wordpress/compose';
|
|
13
11
|
/**
|
|
14
12
|
* Internal dependencies
|
|
15
13
|
*/
|
|
16
|
-
|
|
17
14
|
import styles from './style.scss';
|
|
18
|
-
export const BlockQuotation = forwardRef(({
|
|
15
|
+
export const BlockQuotation = forwardRef(({
|
|
16
|
+
...props
|
|
19
17
|
}, ref) => {
|
|
20
18
|
const {
|
|
21
19
|
style
|
|
@@ -29,19 +27,18 @@ export const BlockQuotation = forwardRef(({ ...props
|
|
|
29
27
|
const newChildren = Children.map(props.children, child => {
|
|
30
28
|
if (child && child.props.identifier === 'citation') {
|
|
31
29
|
return cloneElement(child, {
|
|
32
|
-
style: {
|
|
30
|
+
style: {
|
|
31
|
+
...styles.wpBlockQuoteCitation,
|
|
33
32
|
...colorStyle
|
|
34
33
|
}
|
|
35
34
|
});
|
|
36
35
|
}
|
|
37
|
-
|
|
38
36
|
if (child && child.props.identifier === 'value') {
|
|
39
37
|
return cloneElement(child, {
|
|
40
38
|
tagsToEliminate: ['div'],
|
|
41
39
|
style: colorStyle
|
|
42
40
|
});
|
|
43
41
|
}
|
|
44
|
-
|
|
45
42
|
return child;
|
|
46
43
|
});
|
|
47
44
|
return createElement(View, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["View","Children","cloneElement","forwardRef","usePreferredColorSchemeStyle","styles","BlockQuotation","props","ref","style","blockQuoteStyle","wpBlockQuoteLight","wpBlockQuoteDark","color","borderLeftColor","backgroundColor","paddingWithBackground","colorStyle","newChildren","map","children","child","identifier","wpBlockQuoteCitation","tagsToEliminate","createElement"],"sources":["@wordpress/primitives/src/block-quotation/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n/**\n * WordPress dependencies\n */\nimport { Children, cloneElement, forwardRef } from '@wordpress/element';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nexport const BlockQuotation = forwardRef( ( { ...props }, ref ) => {\n\tconst { style } = props;\n\n\tconst blockQuoteStyle = [\n\t\tusePreferredColorSchemeStyle(\n\t\t\tstyles.wpBlockQuoteLight,\n\t\t\tstyles.wpBlockQuoteDark\n\t\t),\n\t\tstyle?.color && {\n\t\t\tborderLeftColor: style.color,\n\t\t},\n\t\tstyle,\n\t\tstyle?.backgroundColor && styles.paddingWithBackground,\n\t];\n\tconst colorStyle = style?.color ? { color: style.color } : {};\n\n\tconst newChildren = Children.map( props.children, ( child ) => {\n\t\tif ( child && child.props.identifier === 'citation' ) {\n\t\t\treturn cloneElement( child, {\n\t\t\t\tstyle: {\n\t\t\t\t\t...styles.wpBlockQuoteCitation,\n\t\t\t\t\t...colorStyle,\n\t\t\t\t},\n\t\t\t} );\n\t\t}\n\t\tif ( child && child.props.identifier === 'value' ) {\n\t\t\treturn cloneElement( child, {\n\t\t\t\ttagsToEliminate: [ 'div' ],\n\t\t\t\tstyle: colorStyle,\n\t\t\t} );\n\t\t}\n\t\treturn child;\n\t} );\n\treturn (\n\t\t<View ref={ ref } style={ blockQuoteStyle }>\n\t\t\t{ newChildren }\n\t\t</View>\n\t);\n} );\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,IAAI,QAAQ,cAAc;AACnC;AACA;AACA;AACA,SAASC,QAAQ,EAAEC,YAAY,EAAEC,UAAU,QAAQ,oBAAoB;AACvE,SAASC,4BAA4B,QAAQ,oBAAoB;AACjE;AACA;AACA;AACA,OAAOC,MAAM,MAAM,cAAc;AAEjC,OAAO,MAAMC,cAAc,GAAGH,UAAU,CAAE,CAAE;EAAE,GAAGI;AAAM,CAAC,EAAEC,GAAG,KAAM;EAClE,MAAM;IAAEC;EAAM,CAAC,GAAGF,KAAK;EAEvB,MAAMG,eAAe,GAAG,CACvBN,4BAA4B,CAC3BC,MAAM,CAACM,iBAAiB,EACxBN,MAAM,CAACO,gBACR,CAAC,EACDH,KAAK,EAAEI,KAAK,IAAI;IACfC,eAAe,EAAEL,KAAK,CAACI;EACxB,CAAC,EACDJ,KAAK,EACLA,KAAK,EAAEM,eAAe,IAAIV,MAAM,CAACW,qBAAqB,CACtD;EACD,MAAMC,UAAU,GAAGR,KAAK,EAAEI,KAAK,GAAG;IAAEA,KAAK,EAAEJ,KAAK,CAACI;EAAM,CAAC,GAAG,CAAC,CAAC;EAE7D,MAAMK,WAAW,GAAGjB,QAAQ,CAACkB,GAAG,CAAEZ,KAAK,CAACa,QAAQ,EAAIC,KAAK,IAAM;IAC9D,IAAKA,KAAK,IAAIA,KAAK,CAACd,KAAK,CAACe,UAAU,KAAK,UAAU,EAAG;MACrD,OAAOpB,YAAY,CAAEmB,KAAK,EAAE;QAC3BZ,KAAK,EAAE;UACN,GAAGJ,MAAM,CAACkB,oBAAoB;UAC9B,GAAGN;QACJ;MACD,CAAE,CAAC;IACJ;IACA,IAAKI,KAAK,IAAIA,KAAK,CAACd,KAAK,CAACe,UAAU,KAAK,OAAO,EAAG;MAClD,OAAOpB,YAAY,CAAEmB,KAAK,EAAE;QAC3BG,eAAe,EAAE,CAAE,KAAK,CAAE;QAC1Bf,KAAK,EAAEQ;MACR,CAAE,CAAC;IACJ;IACA,OAAOI,KAAK;EACb,CAAE,CAAC;EACH,OACCI,aAAA,CAACzB,IAAI;IAACQ,GAAG,EAAGA,GAAK;IAACC,KAAK,EAAGC;EAAiB,GACxCQ,WACG,CAAC;AAET,CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/primitives/src/horizontal-rule/index.js"],"
|
|
1
|
+
{"version":3,"names":["HorizontalRule"],"sources":["@wordpress/primitives/src/horizontal-rule/index.js"],"sourcesContent":["export const HorizontalRule = 'hr';\n"],"mappings":"AAAA,OAAO,MAAMA,cAAc,GAAG,IAAI"}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { createElement } from "@wordpress/element";
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* External dependencies
|
|
5
4
|
*/
|
|
6
5
|
import { Text, View } from 'react-native';
|
|
6
|
+
|
|
7
7
|
/**
|
|
8
8
|
* WordPress dependencies
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
10
|
import { withPreferredColorScheme } from '@wordpress/compose';
|
|
11
|
+
|
|
12
12
|
/**
|
|
13
13
|
* Internal dependencies
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
15
|
import styles from './styles.scss';
|
|
17
|
-
|
|
18
16
|
const HR = ({
|
|
19
17
|
getStylesFromColorScheme,
|
|
20
18
|
lineStyle,
|
|
@@ -28,21 +26,17 @@ const HR = ({
|
|
|
28
26
|
key: key,
|
|
29
27
|
style: getStylesFromColorScheme(styles.line, styles.lineDark)
|
|
30
28
|
});
|
|
31
|
-
|
|
32
29
|
const renderText = key => createElement(View, {
|
|
33
30
|
key: key
|
|
34
31
|
}, createElement(Text, {
|
|
35
32
|
style: [styles.text, textStyle]
|
|
36
33
|
}, text));
|
|
37
|
-
|
|
38
34
|
const renderInner = () => {
|
|
39
35
|
if (!text) {
|
|
40
36
|
return renderLine();
|
|
41
37
|
}
|
|
42
|
-
|
|
43
38
|
return [renderLine(1), renderText(2), renderLine(3)];
|
|
44
39
|
};
|
|
45
|
-
|
|
46
40
|
return createElement(View, {
|
|
47
41
|
style: [styles.container, {
|
|
48
42
|
marginLeft,
|
|
@@ -51,6 +45,5 @@ const HR = ({
|
|
|
51
45
|
...props
|
|
52
46
|
}, renderInner());
|
|
53
47
|
};
|
|
54
|
-
|
|
55
48
|
export const HorizontalRule = withPreferredColorScheme(HR);
|
|
56
49
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["Text","View","withPreferredColorScheme","styles","HR","getStylesFromColorScheme","lineStyle","marginLeft","marginRight","textStyle","text","props","renderLine","key","createElement","style","line","lineDark","renderText","renderInner","container","HorizontalRule"],"sources":["@wordpress/primitives/src/horizontal-rule/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Text, View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { withPreferredColorScheme } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './styles.scss';\n\nconst HR = ( {\n\tgetStylesFromColorScheme,\n\tlineStyle,\n\tmarginLeft,\n\tmarginRight,\n\ttextStyle,\n\ttext,\n\t...props\n} ) => {\n\tconst renderLine = ( key ) => (\n\t\t<View\n\t\t\tkey={ key }\n\t\t\tstyle={ getStylesFromColorScheme( styles.line, styles.lineDark ) }\n\t\t/>\n\t);\n\n\tconst renderText = ( key ) => (\n\t\t<View key={ key }>\n\t\t\t<Text style={ [ styles.text, textStyle ] }>{ text }</Text>\n\t\t</View>\n\t);\n\n\tconst renderInner = () => {\n\t\tif ( ! text ) {\n\t\t\treturn renderLine();\n\t\t}\n\t\treturn [ renderLine( 1 ), renderText( 2 ), renderLine( 3 ) ];\n\t};\n\n\treturn (\n\t\t<View\n\t\t\tstyle={ [\n\t\t\t\tstyles.container,\n\t\t\t\t{ marginLeft, marginRight },\n\t\t\t\tprops.style,\n\t\t\t] }\n\t\t\t{ ...props }\n\t\t>\n\t\t\t{ renderInner() }\n\t\t</View>\n\t);\n};\n\nexport const HorizontalRule = withPreferredColorScheme( HR );\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,IAAI,EAAEC,IAAI,QAAQ,cAAc;;AAEzC;AACA;AACA;AACA,SAASC,wBAAwB,QAAQ,oBAAoB;;AAE7D;AACA;AACA;AACA,OAAOC,MAAM,MAAM,eAAe;AAElC,MAAMC,EAAE,GAAGA,CAAE;EACZC,wBAAwB;EACxBC,SAAS;EACTC,UAAU;EACVC,WAAW;EACXC,SAAS;EACTC,IAAI;EACJ,GAAGC;AACJ,CAAC,KAAM;EACN,MAAMC,UAAU,GAAKC,GAAG,IACvBC,aAAA,CAACb,IAAI;IACJY,GAAG,EAAGA,GAAK;IACXE,KAAK,EAAGV,wBAAwB,CAAEF,MAAM,CAACa,IAAI,EAAEb,MAAM,CAACc,QAAS;EAAG,CAClE,CACD;EAED,MAAMC,UAAU,GAAKL,GAAG,IACvBC,aAAA,CAACb,IAAI;IAACY,GAAG,EAAGA;EAAK,GAChBC,aAAA,CAACd,IAAI;IAACe,KAAK,EAAG,CAAEZ,MAAM,CAACO,IAAI,EAAED,SAAS;EAAI,GAAGC,IAAY,CACpD,CACN;EAED,MAAMS,WAAW,GAAGA,CAAA,KAAM;IACzB,IAAK,CAAET,IAAI,EAAG;MACb,OAAOE,UAAU,CAAC,CAAC;IACpB;IACA,OAAO,CAAEA,UAAU,CAAE,CAAE,CAAC,EAAEM,UAAU,CAAE,CAAE,CAAC,EAAEN,UAAU,CAAE,CAAE,CAAC,CAAE;EAC7D,CAAC;EAED,OACCE,aAAA,CAACb,IAAI;IACJc,KAAK,EAAG,CACPZ,MAAM,CAACiB,SAAS,EAChB;MAAEb,UAAU;MAAEC;IAAY,CAAC,EAC3BG,KAAK,CAACI,KAAK,CACT;IAAA,GACEJ;EAAK,GAERQ,WAAW,CAAC,CACT,CAAC;AAET,CAAC;AAED,OAAO,MAAME,cAAc,GAAGnB,wBAAwB,CAAEE,EAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/primitives/src/index.js"],"
|
|
1
|
+
{"version":3,"names":[],"sources":["@wordpress/primitives/src/index.js"],"sourcesContent":["export * from './svg';\nexport * from './horizontal-rule';\nexport * from './block-quotation';\nexport * from './view';\n"],"mappings":"AAAA,cAAc,OAAO;AACrB,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,QAAQ"}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* WordPress dependencies
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
9
|
import { createElement } from '@wordpress/element';
|
|
10
|
+
|
|
10
11
|
/** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -14,71 +15,71 @@ import { createElement } from '@wordpress/element';
|
|
|
14
15
|
*
|
|
15
16
|
* @return {JSX.Element} Circle component
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
18
|
export const Circle = props => createElement('circle', props);
|
|
19
|
+
|
|
19
20
|
/**
|
|
20
21
|
* @param {import('react').ComponentPropsWithoutRef<'g'>} props
|
|
21
22
|
*
|
|
22
23
|
* @return {JSX.Element} G component
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
25
|
export const G = props => createElement('g', props);
|
|
26
|
+
|
|
26
27
|
/**
|
|
27
28
|
* @param {import('react').ComponentPropsWithoutRef<'line'>} props
|
|
28
29
|
*
|
|
29
30
|
* @return {JSX.Element} Path component
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
32
|
export const Line = props => createElement('line', props);
|
|
33
|
+
|
|
33
34
|
/**
|
|
34
35
|
* @param {import('react').ComponentPropsWithoutRef<'path'>} props
|
|
35
36
|
*
|
|
36
37
|
* @return {JSX.Element} Path component
|
|
37
38
|
*/
|
|
38
|
-
|
|
39
39
|
export const Path = props => createElement('path', props);
|
|
40
|
+
|
|
40
41
|
/**
|
|
41
42
|
* @param {import('react').ComponentPropsWithoutRef<'polygon'>} props
|
|
42
43
|
*
|
|
43
44
|
* @return {JSX.Element} Polygon component
|
|
44
45
|
*/
|
|
45
|
-
|
|
46
46
|
export const Polygon = props => createElement('polygon', props);
|
|
47
|
+
|
|
47
48
|
/**
|
|
48
49
|
* @param {import('react').ComponentPropsWithoutRef<'rect'>} props
|
|
49
50
|
*
|
|
50
51
|
* @return {JSX.Element} Rect component
|
|
51
52
|
*/
|
|
52
|
-
|
|
53
53
|
export const Rect = props => createElement('rect', props);
|
|
54
|
+
|
|
54
55
|
/**
|
|
55
56
|
* @param {import('react').ComponentPropsWithoutRef<'defs'>} props
|
|
56
57
|
*
|
|
57
58
|
* @return {JSX.Element} Defs component
|
|
58
59
|
*/
|
|
59
|
-
|
|
60
60
|
export const Defs = props => createElement('defs', props);
|
|
61
|
+
|
|
61
62
|
/**
|
|
62
63
|
* @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props
|
|
63
64
|
*
|
|
64
65
|
* @return {JSX.Element} RadialGradient component
|
|
65
66
|
*/
|
|
66
|
-
|
|
67
67
|
export const RadialGradient = props => createElement('radialGradient', props);
|
|
68
|
+
|
|
68
69
|
/**
|
|
69
70
|
* @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props
|
|
70
71
|
*
|
|
71
72
|
* @return {JSX.Element} LinearGradient component
|
|
72
73
|
*/
|
|
73
|
-
|
|
74
74
|
export const LinearGradient = props => createElement('linearGradient', props);
|
|
75
|
+
|
|
75
76
|
/**
|
|
76
77
|
* @param {import('react').ComponentPropsWithoutRef<'stop'>} props
|
|
77
78
|
*
|
|
78
79
|
* @return {JSX.Element} Stop component
|
|
79
80
|
*/
|
|
80
|
-
|
|
81
81
|
export const Stop = props => createElement('stop', props);
|
|
82
|
+
|
|
82
83
|
/**
|
|
83
84
|
*
|
|
84
85
|
* @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.
|
|
@@ -86,22 +87,24 @@ export const Stop = props => createElement('stop', props);
|
|
|
86
87
|
*
|
|
87
88
|
* @return {JSX.Element} Stop component
|
|
88
89
|
*/
|
|
89
|
-
|
|
90
90
|
export const SVG = ({
|
|
91
91
|
className,
|
|
92
92
|
isPressed,
|
|
93
93
|
...props
|
|
94
94
|
}) => {
|
|
95
|
-
const appliedProps = {
|
|
95
|
+
const appliedProps = {
|
|
96
|
+
...props,
|
|
96
97
|
className: classnames(className, {
|
|
97
98
|
'is-pressed': isPressed
|
|
98
99
|
}) || undefined,
|
|
99
100
|
'aria-hidden': true,
|
|
100
101
|
focusable: false
|
|
101
|
-
};
|
|
102
|
-
// eslint-disable-next-line react/forbid-elements
|
|
102
|
+
};
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
// Disable reason: We need to have a way to render HTML tag for web.
|
|
105
|
+
// eslint-disable-next-line react/forbid-elements
|
|
106
|
+
return createElement("svg", {
|
|
107
|
+
...appliedProps
|
|
105
108
|
});
|
|
106
109
|
};
|
|
107
110
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["classnames","createElement","Circle","props","G","Line","Path","Polygon","Rect","Defs","RadialGradient","LinearGradient","Stop","SVG","className","isPressed","appliedProps","undefined","focusable"],"sources":["@wordpress/primitives/src/svg/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { createElement } from '@wordpress/element';\n\n/** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'circle'>} props\n *\n * @return {JSX.Element} Circle component\n */\nexport const Circle = ( props ) => createElement( 'circle', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'g'>} props\n *\n * @return {JSX.Element} G component\n */\nexport const G = ( props ) => createElement( 'g', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'line'>} props\n *\n * @return {JSX.Element} Path component\n */\nexport const Line = ( props ) => createElement( 'line', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'path'>} props\n *\n * @return {JSX.Element} Path component\n */\nexport const Path = ( props ) => createElement( 'path', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props\n *\n * @return {JSX.Element} Polygon component\n */\nexport const Polygon = ( props ) => createElement( 'polygon', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'rect'>} props\n *\n * @return {JSX.Element} Rect component\n */\nexport const Rect = ( props ) => createElement( 'rect', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'defs'>} props\n *\n * @return {JSX.Element} Defs component\n */\nexport const Defs = ( props ) => createElement( 'defs', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props\n *\n * @return {JSX.Element} RadialGradient component\n */\nexport const RadialGradient = ( props ) =>\n\tcreateElement( 'radialGradient', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props\n *\n * @return {JSX.Element} LinearGradient component\n */\nexport const LinearGradient = ( props ) =>\n\tcreateElement( 'linearGradient', props );\n\n/**\n * @param {import('react').ComponentPropsWithoutRef<'stop'>} props\n *\n * @return {JSX.Element} Stop component\n */\nexport const Stop = ( props ) => createElement( 'stop', props );\n\n/**\n *\n * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.\n * Other props will be passed through to svg component.\n *\n * @return {JSX.Element} Stop component\n */\nexport const SVG = ( { className, isPressed, ...props } ) => {\n\tconst appliedProps = {\n\t\t...props,\n\t\tclassName:\n\t\t\tclassnames( className, { 'is-pressed': isPressed } ) || undefined,\n\t\t'aria-hidden': true,\n\t\tfocusable: false,\n\t};\n\n\t// Disable reason: We need to have a way to render HTML tag for web.\n\t// eslint-disable-next-line react/forbid-elements\n\treturn <svg { ...appliedProps } />;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,aAAa,QAAQ,oBAAoB;;AAElD;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,GAAKC,KAAK,IAAMF,aAAa,CAAE,QAAQ,EAAEE,KAAM,CAAC;;AAEnE;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,CAAC,GAAKD,KAAK,IAAMF,aAAa,CAAE,GAAG,EAAEE,KAAM,CAAC;;AAEzD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,IAAI,GAAKF,KAAK,IAAMF,aAAa,CAAE,MAAM,EAAEE,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,IAAI,GAAKH,KAAK,IAAMF,aAAa,CAAE,MAAM,EAAEE,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,OAAO,GAAKJ,KAAK,IAAMF,aAAa,CAAE,SAAS,EAAEE,KAAM,CAAC;;AAErE;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMK,IAAI,GAAKL,KAAK,IAAMF,aAAa,CAAE,MAAM,EAAEE,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,IAAI,GAAKN,KAAK,IAAMF,aAAa,CAAE,MAAM,EAAEE,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMO,cAAc,GAAKP,KAAK,IACpCF,aAAa,CAAE,gBAAgB,EAAEE,KAAM,CAAC;;AAEzC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMQ,cAAc,GAAKR,KAAK,IACpCF,aAAa,CAAE,gBAAgB,EAAEE,KAAM,CAAC;;AAEzC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMS,IAAI,GAAKT,KAAK,IAAMF,aAAa,CAAE,MAAM,EAAEE,KAAM,CAAC;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMU,GAAG,GAAGA,CAAE;EAAEC,SAAS;EAAEC,SAAS;EAAE,GAAGZ;AAAM,CAAC,KAAM;EAC5D,MAAMa,YAAY,GAAG;IACpB,GAAGb,KAAK;IACRW,SAAS,EACRd,UAAU,CAAEc,SAAS,EAAE;MAAE,YAAY,EAAEC;IAAU,CAAE,CAAC,IAAIE,SAAS;IAClE,aAAa,EAAE,IAAI;IACnBC,SAAS,EAAE;EACZ,CAAC;;EAED;EACA;EACA,OAAOjB,aAAA;IAAA,GAAUe;EAAY,CAAI,CAAC;AACnC,CAAC"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { createElement } from "@wordpress/element";
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* External dependencies
|
|
5
4
|
*/
|
|
6
5
|
import { Svg } from 'react-native-svg';
|
|
7
6
|
import { Animated } from 'react-native';
|
|
7
|
+
|
|
8
8
|
/**
|
|
9
9
|
* WordPress dependencies
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
11
|
import { forwardRef } from '@wordpress/element';
|
|
13
12
|
import { usePreferredColorScheme } from '@wordpress/compose';
|
|
13
|
+
|
|
14
14
|
/**
|
|
15
15
|
* Internal dependencies
|
|
16
16
|
*/
|
|
17
|
-
|
|
18
17
|
import styles from './style.scss';
|
|
19
18
|
export { Circle, G, Path, Polygon, Rect, Defs, RadialGradient, LinearGradient, Stop, Line } from 'react-native-svg';
|
|
20
19
|
const AnimatedSvg = Animated.createAnimatedComponent(forwardRef((props, ref) => createElement(Svg, {
|
|
@@ -31,16 +30,19 @@ export const SVG = ({
|
|
|
31
30
|
const stylesFromClasses = className.split(' ').map(element => styles[element]).filter(Boolean);
|
|
32
31
|
const defaultStyle = isPressed ? styles[`is-pressed--${colorScheme}`] : styles['components-toolbar__control-' + colorScheme];
|
|
33
32
|
const propStyle = Array.isArray(props.style) ? props.style.reduce((acc, el) => {
|
|
34
|
-
return {
|
|
33
|
+
return {
|
|
34
|
+
...acc,
|
|
35
35
|
...el
|
|
36
36
|
};
|
|
37
37
|
}, {}) : props.style;
|
|
38
38
|
const styleValues = Object.assign({}, defaultStyle, propStyle, ...stylesFromClasses);
|
|
39
|
-
const appliedProps = {
|
|
39
|
+
const appliedProps = {
|
|
40
|
+
...props,
|
|
40
41
|
style: styleValues
|
|
41
42
|
};
|
|
42
43
|
const SvgWrapper = animated ? AnimatedSvg : Svg;
|
|
43
|
-
return createElement(SvgWrapper
|
|
44
|
+
return createElement(SvgWrapper
|
|
45
|
+
// We want to re-render when style color is changed.
|
|
44
46
|
, {
|
|
45
47
|
key: appliedProps.style.color,
|
|
46
48
|
height: "100%",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["Svg","Animated","forwardRef","usePreferredColorScheme","styles","Circle","G","Path","Polygon","Rect","Defs","RadialGradient","LinearGradient","Stop","Line","AnimatedSvg","createAnimatedComponent","props","ref","createElement","SVG","className","isPressed","animated","colorScheme","stylesFromClasses","split","map","element","filter","Boolean","defaultStyle","propStyle","Array","isArray","style","reduce","acc","el","styleValues","Object","assign","appliedProps","SvgWrapper","key","color","height","width"],"sources":["@wordpress/primitives/src/svg/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Svg } from 'react-native-svg';\nimport { Animated } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\nimport { usePreferredColorScheme } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nexport {\n\tCircle,\n\tG,\n\tPath,\n\tPolygon,\n\tRect,\n\tDefs,\n\tRadialGradient,\n\tLinearGradient,\n\tStop,\n\tLine,\n} from 'react-native-svg';\n\nconst AnimatedSvg = Animated.createAnimatedComponent(\n\tforwardRef( ( props, ref ) => <Svg ref={ ref } { ...props } /> )\n);\n\nexport const SVG = ( {\n\tclassName = '',\n\tisPressed,\n\tanimated = false,\n\t...props\n} ) => {\n\tconst colorScheme = usePreferredColorScheme();\n\tconst stylesFromClasses = className\n\t\t.split( ' ' )\n\t\t.map( ( element ) => styles[ element ] )\n\t\t.filter( Boolean );\n\tconst defaultStyle = isPressed\n\t\t? styles[ `is-pressed--${ colorScheme }` ]\n\t\t: styles[ 'components-toolbar__control-' + colorScheme ];\n\tconst propStyle = Array.isArray( props.style )\n\t\t? props.style.reduce( ( acc, el ) => {\n\t\t\t\treturn { ...acc, ...el };\n\t\t }, {} )\n\t\t: props.style;\n\tconst styleValues = Object.assign(\n\t\t{},\n\t\tdefaultStyle,\n\t\tpropStyle,\n\t\t...stylesFromClasses\n\t);\n\n\tconst appliedProps = { ...props, style: styleValues };\n\n\tconst SvgWrapper = animated ? AnimatedSvg : Svg;\n\n\treturn (\n\t\t<SvgWrapper\n\t\t\t// We want to re-render when style color is changed.\n\t\t\tkey={ appliedProps.style.color }\n\t\t\theight=\"100%\"\n\t\t\twidth=\"100%\"\n\t\t\t{ ...appliedProps }\n\t\t/>\n\t);\n};\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,GAAG,QAAQ,kBAAkB;AACtC,SAASC,QAAQ,QAAQ,cAAc;;AAEvC;AACA;AACA;AACA,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,uBAAuB,QAAQ,oBAAoB;;AAE5D;AACA;AACA;AACA,OAAOC,MAAM,MAAM,cAAc;AAEjC,SACCC,MAAM,EACNC,CAAC,EACDC,IAAI,EACJC,OAAO,EACPC,IAAI,EACJC,IAAI,EACJC,cAAc,EACdC,cAAc,EACdC,IAAI,EACJC,IAAI,QACE,kBAAkB;AAEzB,MAAMC,WAAW,GAAGd,QAAQ,CAACe,uBAAuB,CACnDd,UAAU,CAAE,CAAEe,KAAK,EAAEC,GAAG,KAAMC,aAAA,CAACnB,GAAG;EAACkB,GAAG,EAAGA,GAAK;EAAA,GAAMD;AAAK,CAAI,CAAE,CAChE,CAAC;AAED,OAAO,MAAMG,GAAG,GAAGA,CAAE;EACpBC,SAAS,GAAG,EAAE;EACdC,SAAS;EACTC,QAAQ,GAAG,KAAK;EAChB,GAAGN;AACJ,CAAC,KAAM;EACN,MAAMO,WAAW,GAAGrB,uBAAuB,CAAC,CAAC;EAC7C,MAAMsB,iBAAiB,GAAGJ,SAAS,CACjCK,KAAK,CAAE,GAAI,CAAC,CACZC,GAAG,CAAIC,OAAO,IAAMxB,MAAM,CAAEwB,OAAO,CAAG,CAAC,CACvCC,MAAM,CAAEC,OAAQ,CAAC;EACnB,MAAMC,YAAY,GAAGT,SAAS,GAC3BlB,MAAM,CAAG,eAAeoB,WAAa,EAAC,CAAE,GACxCpB,MAAM,CAAE,8BAA8B,GAAGoB,WAAW,CAAE;EACzD,MAAMQ,SAAS,GAAGC,KAAK,CAACC,OAAO,CAAEjB,KAAK,CAACkB,KAAM,CAAC,GAC3ClB,KAAK,CAACkB,KAAK,CAACC,MAAM,CAAE,CAAEC,GAAG,EAAEC,EAAE,KAAM;IACnC,OAAO;MAAE,GAAGD,GAAG;MAAE,GAAGC;IAAG,CAAC;EACxB,CAAC,EAAE,CAAC,CAAE,CAAC,GACPrB,KAAK,CAACkB,KAAK;EACd,MAAMI,WAAW,GAAGC,MAAM,CAACC,MAAM,CAChC,CAAC,CAAC,EACFV,YAAY,EACZC,SAAS,EACT,GAAGP,iBACJ,CAAC;EAED,MAAMiB,YAAY,GAAG;IAAE,GAAGzB,KAAK;IAAEkB,KAAK,EAAEI;EAAY,CAAC;EAErD,MAAMI,UAAU,GAAGpB,QAAQ,GAAGR,WAAW,GAAGf,GAAG;EAE/C,OACCmB,aAAA,CAACwB;EACA;EAAA;IACAC,GAAG,EAAGF,YAAY,CAACP,KAAK,CAACU,KAAO;IAChCC,MAAM,EAAC,MAAM;IACbC,KAAK,EAAC,MAAM;IAAA,GACPL;EAAY,CACjB,CAAC;AAEJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/primitives/src/view/index.js"],"
|
|
1
|
+
{"version":3,"names":["View"],"sources":["@wordpress/primitives/src/view/index.js"],"sourcesContent":["export const View = 'div';\n"],"mappings":"AAAA,OAAO,MAAMA,IAAI,GAAG,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/primitives/src/view/index.native.js"],"
|
|
1
|
+
{"version":3,"names":["View"],"sources":["@wordpress/primitives/src/view/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nexport { View } from 'react-native';\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,IAAI,QAAQ,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/primitives",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.38.1",
|
|
4
4
|
"description": "WordPress cross-platform primitives.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"types": "build-types",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.16.0",
|
|
34
|
-
"@wordpress/element": "^5.
|
|
34
|
+
"@wordpress/element": "^5.17.1",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "bb1fbf87bb0f451744530fc6a85de2dff1263bed"
|
|
41
41
|
}
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"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.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.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.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.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/classnames/index.d.ts","../element/node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../element/node_modules/@types/react/index.d.ts","../element/build-types/react.d.ts","../element/build-types/create-interpolate-element.d.ts","../../node_modules/@types/react/index.d.ts","../../node_modules/@types/react-dom/index.d.ts","../../node_modules/@types/react-dom/client.d.ts","../element/build-types/react-platform.d.ts","../element/build-types/utils.d.ts","../element/build-types/platform.d.ts","../element/build-types/serialize.d.ts","../element/build-types/raw-html.d.ts","../element/build-types/index.d.ts","./src/svg/index.js","./src/horizontal-rule/index.js","./src/block-quotation/index.js","./src/view/index.js","./src/index.js","../../node_modules/@types/react/global.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"d153cbce75b7e1621eda0a4148748f44edd71ff44cc5351bac1c7787da4d5b05",{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"14ed49cb68f29e36dfb562b7c382ce70d467b7310e8e27cc587772d029f372b7","ab6f9c23c44e0b20c2be80af46ffc9d0e6681efa05ee1704bb4c9fcef8e61497",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"e4dd91dd4789a109aab51d8a0569a282369fcda9ba6f2b2297bc61bacfb1a042","83e27bbd7304ea67f9afa1535f1d4fdb15866089f0d893c784cbb5b1c6fb3386","c4b39848e2fb237507a7acae0b83a34271c9d72714faae6a6b9075527205111b","d2d9e98a2b167079474768593e1e7125fc3db055add8fbdb5977e3d05a8a3696","6462da67490105ba7d98cf312c2faf8794c425781128b161ea8394d66502eec8","62359da52b6c8d00c50c2e50738fac82e902f916fdf458d8159e7edb1c60c3a8","1e0ac21bc775686383ea8c8e48bd98b385e6195b25c85525a7affd08a2cd38b9","0449615e1ed03c7d54fc435a63b7ef0cb4e5cea5ac40c9a63280a46f7eeae0ff",{"version":"21b1d3eaa1a7613866fa52b4150c9c032b828df9905a4c5f8be5016014856404","signature":"ddae5230d3010951c8f11848ece43c3d6b4b71c4796becc89671d60598a24e2f"},{"version":"f8e298da09cf32e610b863cdd377e9093b7931e0bbabbad0a26891cafcb4ad62","signature":"80b85aa7ed72bece274fc0ccae3c5f860a010adf07912f0752575b7cf2a63a7c"},{"version":"9675295ca9bf82085e315c5eab5782eb396fea7a215f74d4cfea96f34556c6dc","signature":"de489cff39c41af1e5310d5796a2e6ed1ace82faf63b6525b19c2eb0e6ec4627"},{"version":"39a05c31820e107df0f7d548ae3858b49fc135ca170cba1aed2efcee055720c0","signature":"27ee52cb96941f90d8ccf06f5d9f631f0e516c3573ae48c5a586d354fa634292"},{"version":"171a2085a03a3c9f04fac48f34f39a1b1b10cd5f2bd622119bee7fbe7a7f5d87","signature":"cf05b53edd2450776c71388d3096fcf666a83f078f587ad5da5f4a774e0b7de7"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"importsNotUsedAsValues":2,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"target":99},"fileIdsList":[[61],[58,59,60,78],[62],[62,63,67,68,69,70,71],[65,66],[61,62],[57,58,59,60],[73,74,75,76],[56,61,72]],"referencedMap":[[66,1],[65,1],[64,2],[63,3],[72,4],[71,1],[67,5],[62,1],[70,6],[61,7],[77,8],[73,9]],"exportedModulesMap":[[66,1],[65,1],[64,2],[63,3],[72,4],[71,1],[67,5],[62,1],[70,6],[61,7],[73,1]],"semanticDiagnosticsPerFile":[59,66,65,64,60,56,58,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,43,44,39,40,41,42,8,48,45,46,47,49,9,50,51,52,53,54,1,10,55,63,72,69,71,67,62,70,68,57,61,75,74,77,73,76],"latestChangedDtsFile":"./build-types/index.d.ts"},"version":"4.9.5"}
|
|
1
|
+
{"program":{"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.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.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.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.sharedmemory.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.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/classnames/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/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","../element/build-types/react.d.ts","../element/build-types/create-interpolate-element.d.ts","../../node_modules/@types/react-dom/index.d.ts","../../node_modules/@types/react-dom/client.d.ts","../element/build-types/react-platform.d.ts","../element/build-types/utils.d.ts","../element/build-types/platform.d.ts","../element/build-types/serialize.d.ts","../element/build-types/raw-html.d.ts","../element/build-types/index.d.ts","./src/svg/index.js","./src/horizontal-rule/index.js","./src/block-quotation/index.js","./src/view/index.js","./src/index.js"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","f4e736d6c8d69ae5b3ab0ddfcaa3dc365c3e76909d6660af5b4e979b3934ac20","eeeb3aca31fbadef8b82502484499dfd1757204799a6f5b33116201c810676ec",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"25de46552b782d43cb7284df22fe2a265de387cf0248b747a7a1b647d81861f6","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"d153cbce75b7e1621eda0a4148748f44edd71ff44cc5351bac1c7787da4d5b05",{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"4c68749a564a6facdf675416d75789ee5a557afda8960e0803cf6711fa569288","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"dafd74bcff368ce1a07ee99d42fe2f8868743ae46fd47208eebd7c8ba8bbff86","9448cecc866cbdbe522f6152b6645e3e36aaee8f276d04e6c8bed83193b12c73","e4dd91dd4789a109aab51d8a0569a282369fcda9ba6f2b2297bc61bacfb1a042","83e27bbd7304ea67f9afa1535f1d4fdb15866089f0d893c784cbb5b1c6fb3386","472c14cdec534a465e866b6e1feee2d4e0d89c15fdc33ba80ff034fa0e80f3c1","4d807d55c784b72f71c092c34c84d09b95c29500c30252538fd5cf9a0a788c0e","df43a3968118d4b16618d7a0ac8ba89337fcce3c39e39984087ac34bf0cf250c","69ae15cf7f64219db1d1585f0ec791ee14b48d07e4fb453e80137b84e0a8c3a0","582f001c48a6204fd6bb5c6c71b36adc5256078c0ac3686b99db59cbb724ca73","af88a0b0f808a6721401550621bfe67c46c6fd55000305058e7c73600d119a9b",{"version":"21b1d3eaa1a7613866fa52b4150c9c032b828df9905a4c5f8be5016014856404","signature":"ddae5230d3010951c8f11848ece43c3d6b4b71c4796becc89671d60598a24e2f"},{"version":"f8e298da09cf32e610b863cdd377e9093b7931e0bbabbad0a26891cafcb4ad62","signature":"80b85aa7ed72bece274fc0ccae3c5f860a010adf07912f0752575b7cf2a63a7c"},{"version":"9675295ca9bf82085e315c5eab5782eb396fea7a215f74d4cfea96f34556c6dc","signature":"de489cff39c41af1e5310d5796a2e6ed1ace82faf63b6525b19c2eb0e6ec4627"},{"version":"39a05c31820e107df0f7d548ae3858b49fc135ca170cba1aed2efcee055720c0","signature":"27ee52cb96941f90d8ccf06f5d9f631f0e516c3573ae48c5a586d354fa634292"},{"version":"171a2085a03a3c9f04fac48f34f39a1b1b10cd5f2bd622119bee7fbe7a7f5d87","signature":"cf05b53edd2450776c71388d3096fcf666a83f078f587ad5da5f4a774e0b7de7"}],"root":[[77,81]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"target":99},"fileIdsList":[[66],[62,63,64,65],[67],[67,68,71,72,73,74,75],[69,70],[66,67],[77,78,79,80],[61,66,76]],"referencedMap":[[70,1],[69,1],[66,2],[68,3],[76,4],[75,1],[71,5],[67,1],[74,6],[81,7],[77,8]],"exportedModulesMap":[[70,1],[69,1],[66,2],[68,3],[76,4],[75,1],[71,5],[67,1],[74,6],[77,1]],"semanticDiagnosticsPerFile":[64,70,69,62,66,65,61,63,59,60,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,56,54,55,57,10,1,11,58,68,76,73,75,71,67,74,72,79,78,81,77,80],"latestChangedDtsFile":"./build-types/index.d.ts"},"version":"5.1.6"}
|