@tamagui/static 1.0.0-alpha.63 → 1.0.0-alpha.67
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/README.md +0 -2
- package/dist/cjs/extractor/createExtractor.js +15 -15
- package/dist/cjs/extractor/createExtractor.js.map +2 -2
- package/dist/cjs/extractor/extractHelpers.js +1 -1
- package/dist/cjs/extractor/extractHelpers.js.map +2 -2
- package/dist/cjs/extractor/extractToClassNames.js +25 -19
- package/dist/cjs/extractor/extractToClassNames.js.map +2 -2
- package/dist/cjs/extractor/getPrefixLogs.js +34 -0
- package/dist/cjs/extractor/getPrefixLogs.js.map +7 -0
- package/dist/cjs/patchReactNativeWeb.js +1 -1
- package/dist/cjs/patchReactNativeWeb.js.map +1 -1
- package/dist/cjs/types.js.map +1 -1
- package/dist/esm/extractor/createExtractor.js +12 -13
- package/dist/esm/extractor/createExtractor.js.map +2 -2
- package/dist/esm/extractor/extractHelpers.js +1 -4
- package/dist/esm/extractor/extractHelpers.js.map +2 -2
- package/dist/esm/extractor/extractToClassNames.js +27 -21
- package/dist/esm/extractor/extractToClassNames.js.map +2 -2
- package/dist/esm/extractor/getPrefixLogs.js +12 -0
- package/dist/esm/extractor/getPrefixLogs.js.map +7 -0
- package/dist/esm/patchReactNativeWeb.js +1 -1
- package/dist/esm/patchReactNativeWeb.js.map +1 -1
- package/dist/jsx/extractor/createExtractor.js +12 -13
- package/dist/jsx/extractor/extractHelpers.js +1 -4
- package/dist/jsx/extractor/extractToClassNames.js +27 -21
- package/dist/jsx/extractor/getPrefixLogs.js +11 -0
- package/dist/jsx/patchReactNativeWeb.js +1 -1
- package/package.json +7 -7
- package/types/extractor/createExtractor.d.ts +1 -1
- package/types/extractor/getPrefixLogs.d.ts +3 -0
- package/types/types.d.ts +2 -0
- package/types/constants.d.ts.map +0 -1
- package/types/extractor/accessSafe.d.ts.map +0 -1
- package/types/extractor/babelParse.d.ts.map +0 -1
- package/types/extractor/buildClassName.d.ts.map +0 -1
- package/types/extractor/createEvaluator.d.ts.map +0 -1
- package/types/extractor/createExtractor.d.ts.map +0 -1
- package/types/extractor/ensureImportingConcat.d.ts.map +0 -1
- package/types/extractor/evaluateAstNode.d.ts.map +0 -1
- package/types/extractor/extractHelpers.d.ts.map +0 -1
- package/types/extractor/extractMediaStyle.d.ts.map +0 -1
- package/types/extractor/extractToClassNames.d.ts.map +0 -1
- package/types/extractor/findTopmostFunction.d.ts.map +0 -1
- package/types/extractor/generatedUid.d.ts.map +0 -1
- package/types/extractor/getPropValueFromAttributes.d.ts.map +0 -1
- package/types/extractor/getSourceModule.d.ts.map +0 -1
- package/types/extractor/getStaticBindingsForScope.d.ts.map +0 -1
- package/types/extractor/hoistClassNames.d.ts.map +0 -1
- package/types/extractor/literalToAst.d.ts.map +0 -1
- package/types/extractor/loadTamagui.d.ts.map +0 -1
- package/types/extractor/logLines.d.ts.map +0 -1
- package/types/extractor/normalizeTernaries.d.ts.map +0 -1
- package/types/extractor/removeUnusedHooks.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types/patchReactNativeWeb.d.ts.map +0 -1
- package/types/types.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/patchReactNativeWeb.ts"],
|
|
4
|
-
"sourcesContent": ["import * as fs from 'fs'\nimport path from 'path'\n\n// were patching react-native-web so we can use some internal methods\n// we do it this way because we need to rely on webpack or bundler config to determine cjs vs esm\n// so we can't just require it all directly\n// would be nice in the future to be able to eject from react-native-web entirely optionally\n\n// keep it sync\nexport function patchReactNativeWeb() {\n const rootDir = require.resolve('react-native-web').replace(/\\/dist.*/, '')\n const modulePath = path.join(rootDir, 'dist', 'tamagui-exports.js')\n const cjsPath = path.join(rootDir, 'dist', 'cjs', 'tamagui-exports.js')\n\n const isEqual = (() => {\n let res = false\n try {\n res =\n fs.readFileSync(modulePath, 'utf-8') === moduleExports &&\n fs.readFileSync(cjsPath, 'utf-8') == cjsExports\n } catch {\n res = false\n }\n return res\n })()\n\n if (!isEqual) {\n console.log('\
|
|
4
|
+
"sourcesContent": ["import * as fs from 'fs'\nimport path from 'path'\n\n// were patching react-native-web so we can use some internal methods\n// we do it this way because we need to rely on webpack or bundler config to determine cjs vs esm\n// so we can't just require it all directly\n// would be nice in the future to be able to eject from react-native-web entirely optionally\n\n// keep it sync\nexport function patchReactNativeWeb() {\n const rootDir = require.resolve('react-native-web').replace(/\\/dist.*/, '')\n const modulePath = path.join(rootDir, 'dist', 'tamagui-exports.js')\n const cjsPath = path.join(rootDir, 'dist', 'cjs', 'tamagui-exports.js')\n\n const isEqual = (() => {\n let res = false\n try {\n res =\n fs.readFileSync(modulePath, 'utf-8') === moduleExports &&\n fs.readFileSync(cjsPath, 'utf-8') == cjsExports\n } catch {\n res = false\n }\n return res\n })()\n\n if (!isEqual) {\n console.log('\u00BB Tamagui patching react-native-web to share atomic styling primitives')\n console.log(' > adding', modulePath)\n console.log(' > adding', cjsPath)\n fs.writeFileSync(modulePath, moduleExports)\n fs.writeFileSync(cjsPath, cjsExports)\n }\n\n // patch to allow className prop\n const classNamePatch = `if (props.dataSet && props.dataSet['__className']) { domProps.className = className ? className + ' ' + props.dataSet['__className'] : props.dataSet['__className']; delete props.dataSet['__className'] }`\n const domPropsPath = ['modules', 'createDOMProps', 'index.js']\n const domPropsModulePath = path.join(rootDir, 'dist', ...domPropsPath)\n const domPropsCjsPath = path.join(rootDir, 'dist', 'cjs', ...domPropsPath)\n const patchClassName = (file: string) => {\n const contents = fs.readFileSync(file, 'utf-8')\n if (!contents.includes(classNamePatch)) {\n const needle = `domProps.className = className`\n const patchLocation = contents.indexOf(needle) + needle.length + 5\n // its far down the file\n if (patchLocation < 100) {\n console.warn(\n `\u26A0\uFE0F Couldn't apply className patch! Maybe using incompatible react-native-web version.`\n )\n } else {\n const before = contents.slice(0, patchLocation)\n const after = contents.slice(patchLocation)\n const patched = before + '\\n' + classNamePatch + '\\n' + after\n console.log(' > adding className support to react-native-web', file)\n fs.writeFileSync(file, patched)\n }\n }\n }\n patchClassName(domPropsModulePath)\n patchClassName(domPropsCjsPath)\n\n // if (props.className) {\n // domProps.className = className ? className + ' ' + props.className : props.className\n // }\n\n // if entry files not patched, patch them:\n const moduleEntry = path.join(rootDir, 'dist', 'index.js')\n const moduleEntrySrc = fs.readFileSync(moduleEntry, 'utf-8')\n if (!moduleEntrySrc.includes('// tamagui-patch-v4')) {\n fs.writeFileSync(\n moduleEntry,\n `${removePatch(moduleEntrySrc)}\n\n// tamagui-patch-v4\nimport * as TExports from './tamagui-exports'\nexport const TamaguiExports = TExports\n// tamagui-patch-end\n`\n )\n }\n const cjsEntry = path.join(rootDir, 'dist', 'cjs', 'index.js')\n const cjsEntrySrc = fs.readFileSync(cjsEntry, 'utf-8')\n if (!cjsEntrySrc.includes('// tamagui-patch-v4')) {\n fs.writeFileSync(\n cjsEntry,\n `${removePatch(cjsEntrySrc)}\n\n// tamagui-patch-v4\nexports.TamaguiExports = _interopRequireDefault(require(\"./tamagui-exports\"));\n// tamagui-patch-end\n`\n )\n }\n}\n\nfunction removePatch(source: string) {\n return source.replace(/\\/\\/ tamagui-patch([.\\s\\S]*)/g, '')\n}\n\n// view exports/View.ts\nconst forwardedPropsObj = `{\n ...fwdProps.defaultProps,\n ...fwdProps.accessibilityProps,\n ...fwdProps.clickProps,\n ...fwdProps.focusProps,\n ...fwdProps.keyboardProps,\n ...fwdProps.mouseProps,\n ...fwdProps.touchProps,\n ...fwdProps.styleProps,\n href: true,\n lang: true,\n onScroll: true,\n onWheel: true,\n pointerEvents: true\n}\n`\n\nconst moduleExports = `\nexport { atomic } from './exports/StyleSheet/compile'\nexport { default as createCompileableStyle } from './exports/StyleSheet/createCompileableStyle'\nexport { default as createReactDOMStyle } from './exports/StyleSheet/createReactDOMStyle'\nexport { default as i18Style } from './exports/StyleSheet/i18nStyle'\nexport { default as createDOMProps } from './modules/createDOMProps'\nexport { default as AccessibilityUtil } from './modules/AccessibilityUtil'\nexport { default as createElement } from './exports/createElement'\nexport { default as css } from './exports/StyleSheet/css'\nexport { default as TextAncestorContext } from './exports/Text/TextAncestorContext'\nexport { default as pick } from './modules/pick'\nexport { default as useElementLayout } from './modules/useElementLayout'\nexport { default as useMergeRefs } from './modules/useMergeRefs'\nexport { default as usePlatformMethods } from './modules/usePlatformMethods'\nexport { default as useResponderEvents } from './modules/useResponderEvents'\nimport * as fwdProps from './modules/forwardedProps'\nexport const forwardedProps = ${forwardedPropsObj}\n`\n\nconst cjsExports = `\nexports.atomic = require('./exports/StyleSheet/compile').atomic\nexports.createCompileableStyle = require('./exports/StyleSheet/createCompileableStyle')\nexports.createReactDOMStyle = require('./exports/StyleSheet/createReactDOMStyle')\nexports.i18Style = require('./exports/StyleSheet/i18nStyle')\nexports.createDOMProps = require('./modules/createDOMProps')\nexports.AccessibilityUtil = require('./modules/AccessibilityUtil')\nexports.createElement = require('./exports/createElement')\nexports.css = require('./exports/StyleSheet/css')\nexports.TextAncestorContext = require('./exports/Text/TextAncestorContext')\nexports.pick = require('./modules/pick')\nexports.useElementLayout = require('./modules/useElementLayout')\nexports.useMergeRefs = require('./modules/useMergeRefs')\nexports.usePlatformMethods = require('./modules/usePlatformMethods')\nexports.useResponderEvents = require('./modules/useResponderEvents')\nconst fwdProps = require('./modules/forwardedProps')\nexports.forwardedProps = ${forwardedPropsObj}\n`\n"],
|
|
5
5
|
"mappings": ";;AAAA;AACA;AAQO,+BAA+B;AACpC,QAAM,UAAU,AAAgB,oCAAoB,QAAQ,YAAY;AACxE,QAAM,aAAa,KAAK,KAAK,SAAS,QAAQ;AAC9C,QAAM,UAAU,KAAK,KAAK,SAAS,QAAQ,OAAO;AAElD,QAAM,UAAW,OAAM;AACrB,QAAI,MAAM;AACV,QAAI;AACF,YACE,GAAG,aAAa,YAAY,aAAa,iBACzC,GAAG,aAAa,SAAS,YAAY;AAAA,YACvC;AACA,YAAM;AAAA;AAER,WAAO;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AQ,iCAAiC;AAAA;AADhD;AAKT,MAAM,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiB1B,MAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAgBU;AAAA;AAGhC,MAAM,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAgBQ;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -51,6 +51,7 @@ function createExtractor() {
|
|
|
51
51
|
disableExtractInlineMedia,
|
|
52
52
|
disableExtractVariables,
|
|
53
53
|
disableDebugAttr,
|
|
54
|
+
prefixLogs,
|
|
54
55
|
...props
|
|
55
56
|
}) => {
|
|
56
57
|
if (sourcePath === "") {
|
|
@@ -156,7 +157,7 @@ function createExtractor() {
|
|
|
156
157
|
}
|
|
157
158
|
if (disableExtraction) {
|
|
158
159
|
if (!hasLogged) {
|
|
159
|
-
console.log("
|
|
160
|
+
console.log(prefixLogs, "Tamagui disableExtraction set: no CSS or optimizations will be run");
|
|
160
161
|
hasLogged = true;
|
|
161
162
|
}
|
|
162
163
|
return;
|
|
@@ -792,24 +793,20 @@ function createExtractor() {
|
|
|
792
793
|
var _a2;
|
|
793
794
|
if (!props2)
|
|
794
795
|
return;
|
|
796
|
+
if (!Object.keys(props2).length)
|
|
797
|
+
return;
|
|
795
798
|
if (!!excludeProps.size) {
|
|
796
799
|
for (const key in props2) {
|
|
797
800
|
if (isExcludedProp(key))
|
|
798
801
|
delete props2[key];
|
|
799
802
|
}
|
|
800
803
|
}
|
|
801
|
-
if (shouldPrintDebug) {
|
|
802
|
-
props2["debug"] = true;
|
|
803
|
-
}
|
|
804
804
|
const out = postProcessStyles(props2, staticConfig, defaultTheme);
|
|
805
|
-
if (shouldPrintDebug) {
|
|
806
|
-
delete props2["debug"];
|
|
807
|
-
}
|
|
808
805
|
const next = (_a2 = out == null ? void 0 : out.style) != null ? _a2 : props2;
|
|
809
806
|
if (shouldPrintDebug) {
|
|
810
|
-
console.log("
|
|
811
|
-
console.log("
|
|
812
|
-
console.log("
|
|
807
|
+
console.log(" -- getStyles (viewProps):\n", logLines(objToStr(out.viewProps)));
|
|
808
|
+
console.log(" -- getStyles (props):\n", logLines(objToStr(props2)));
|
|
809
|
+
console.log(" -- getStyles (next):\n", logLines(objToStr(next)));
|
|
813
810
|
}
|
|
814
811
|
for (const key in next) {
|
|
815
812
|
if (staticConfig.validStyles) {
|
|
@@ -838,12 +835,14 @@ function createExtractor() {
|
|
|
838
835
|
}
|
|
839
836
|
}
|
|
840
837
|
if (shouldPrintDebug) {
|
|
841
|
-
console.log(" completeStaticProps
|
|
842
|
-
console.log(" completeStylesProcessed
|
|
838
|
+
console.log(" -- completeStaticProps:\n", logLines(objToStr(completeStaticProps)));
|
|
839
|
+
console.log(" -- completeStylesProcessed:\n", logLines(objToStr(completeStylesProcessed)));
|
|
843
840
|
}
|
|
844
841
|
let getStyleError = null;
|
|
845
842
|
for (const attr of attrs) {
|
|
846
843
|
try {
|
|
844
|
+
if (shouldPrintDebug)
|
|
845
|
+
console.log(" *", attrStr(attr));
|
|
847
846
|
switch (attr.type) {
|
|
848
847
|
case "ternary":
|
|
849
848
|
const a = getStyles(attr.value.alternate);
|
|
@@ -892,7 +891,7 @@ function createExtractor() {
|
|
|
892
891
|
}
|
|
893
892
|
}
|
|
894
893
|
if (shouldPrintDebug) {
|
|
895
|
-
console.log(
|
|
894
|
+
console.log(` \u274A\u274A inline props (${inlinePropCount}):`, shouldDeopt ? " deopted" : "", hasSpread ? " has spread" : "", staticConfig.neverFlatten ? "neverFlatten" : "");
|
|
896
895
|
console.log(" - attrs (end):\n", logLines(attrs.map(attrStr).join(", ")));
|
|
897
896
|
}
|
|
898
897
|
res.optimized++;
|
|
@@ -14,10 +14,7 @@ const attrStr = /* @__PURE__ */ __name((attr) => {
|
|
|
14
14
|
return attr.type === "attr" ? getNameAttr(attr.value) : attr.type === "ternary" ? `...${ternaryStr(attr.value)}` : `${attr.type}(${objToStr(attr.value)})`;
|
|
15
15
|
}, "attrStr");
|
|
16
16
|
const objToStr = /* @__PURE__ */ __name((obj) => {
|
|
17
|
-
return Object.entries(obj).map(([k, v]) => {
|
|
18
|
-
var _a;
|
|
19
|
-
return `${k}:${Array.isArray(v) ? `[...]` : v && typeof v === "object" ? `{${objToStr(v)}}` : (_a = astToLiteral(v)) != null ? _a : JSON.stringify(v)}`;
|
|
20
|
-
}).join(", ");
|
|
17
|
+
return `{${Object.entries(obj).map(([k, v]) => `${k}:${Array.isArray(v) ? `[...]` : v && typeof v === "object" ? `{${objToStr(v)}}` : JSON.stringify(v)}`).join(", ")}}`;
|
|
21
18
|
}, "objToStr");
|
|
22
19
|
const getNameAttr = /* @__PURE__ */ __name((attr) => {
|
|
23
20
|
if (t.isJSXSpreadAttribute(attr)) {
|
|
@@ -15,6 +15,7 @@ import { buildClassName } from "./buildClassName";
|
|
|
15
15
|
import { ensureImportingConcat } from "./ensureImportingConcat";
|
|
16
16
|
import { isSimpleSpread } from "./extractHelpers";
|
|
17
17
|
import { extractMediaStyle } from "./extractMediaStyle";
|
|
18
|
+
import { getPrefixLogs } from "./getPrefixLogs";
|
|
18
19
|
import { hoistClassNames } from "./hoistClassNames";
|
|
19
20
|
import { logLines } from "./logLines";
|
|
20
21
|
const mergeStyleGroups = {
|
|
@@ -69,6 +70,7 @@ function extractToClassNames({
|
|
|
69
70
|
lineNumbers,
|
|
70
71
|
programPath
|
|
71
72
|
}) => {
|
|
73
|
+
var _a2, _b;
|
|
72
74
|
let finalClassNames = [];
|
|
73
75
|
let finalAttrs = [];
|
|
74
76
|
let finalStyles = [];
|
|
@@ -79,14 +81,14 @@ function extractToClassNames({
|
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
const ensureNeededPrevStyle = /* @__PURE__ */ __name((style) => {
|
|
82
|
-
var
|
|
84
|
+
var _a3;
|
|
83
85
|
const keys = Object.keys(style);
|
|
84
86
|
if (!keys.some((key) => mergeStyleGroups[key])) {
|
|
85
87
|
return style;
|
|
86
88
|
}
|
|
87
89
|
for (const k in mergeStyleGroups) {
|
|
88
90
|
if (k in viewStyles) {
|
|
89
|
-
style[k] = (
|
|
91
|
+
style[k] = (_a3 = style[k]) != null ? _a3 : viewStyles[k];
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
return style;
|
|
@@ -140,33 +142,37 @@ function extractToClassNames({
|
|
|
140
142
|
case "ternary":
|
|
141
143
|
const mediaExtraction = extractMediaStyle(attr.value, jsxPath, extractor.getTamagui(), sourcePath, lastMediaImportance, shouldPrintDebug);
|
|
142
144
|
if (shouldPrintDebug) {
|
|
143
|
-
console.log("ternary (mediaExtraction)", mediaExtraction);
|
|
145
|
+
console.log("ternary (mediaStyles)", (_b = (_a2 = mediaExtraction == null ? void 0 : mediaExtraction.ternaryWithoutMedia) == null ? void 0 : _a2.inlineMediaQuery) != null ? _b : "", mediaExtraction == null ? void 0 : mediaExtraction.mediaStyles.map((x) => x.identifier).join("."));
|
|
144
146
|
}
|
|
145
|
-
if (mediaExtraction) {
|
|
146
|
-
|
|
147
|
+
if (!mediaExtraction) {
|
|
148
|
+
addTernaryStyle(attr.value, addStyles(attr.value.consequent), addStyles(attr.value.alternate));
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
lastMediaImportance++;
|
|
152
|
+
if (mediaExtraction.mediaStyles) {
|
|
147
153
|
finalStyles = [...finalStyles, ...mediaExtraction.mediaStyles];
|
|
154
|
+
}
|
|
155
|
+
if (mediaExtraction.ternaryWithoutMedia) {
|
|
156
|
+
addTernaryStyle(mediaExtraction.ternaryWithoutMedia, mediaExtraction.mediaStyles, []);
|
|
157
|
+
} else {
|
|
148
158
|
finalClassNames = [
|
|
149
159
|
...finalClassNames,
|
|
150
160
|
...mediaExtraction.mediaStyles.map((x) => t.stringLiteral(x.identifier))
|
|
151
161
|
];
|
|
152
|
-
if (!mediaExtraction.ternaryWithoutMedia) {
|
|
153
|
-
continue;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
const isMedia = !!(mediaExtraction == null ? void 0 : mediaExtraction.ternaryWithoutMedia);
|
|
157
|
-
const ternary = (mediaExtraction == null ? void 0 : mediaExtraction.ternaryWithoutMedia) || attr.value;
|
|
158
|
-
const consInfo = isMedia ? mediaExtraction.mediaStyles : addStyles(ternary.consequent);
|
|
159
|
-
const altInfo = isMedia ? [] : addStyles(ternary.alternate);
|
|
160
|
-
const cCN = consInfo.map((x) => x.identifier).join(" ");
|
|
161
|
-
const aCN = altInfo.map((x) => x.identifier).join(" ");
|
|
162
|
-
if (consInfo.length && altInfo.length) {
|
|
163
|
-
finalClassNames.push(t.conditionalExpression(ternary.test, t.stringLiteral(cCN), t.stringLiteral(aCN)));
|
|
164
|
-
} else {
|
|
165
|
-
finalClassNames.push(t.conditionalExpression(ternary.test, t.stringLiteral(" " + cCN), t.stringLiteral(" " + aCN)));
|
|
166
162
|
}
|
|
167
163
|
break;
|
|
168
164
|
}
|
|
169
165
|
}
|
|
166
|
+
function addTernaryStyle(ternary, a, b) {
|
|
167
|
+
const cCN = a.map((x) => x.identifier).join(" ");
|
|
168
|
+
const aCN = b.map((x) => x.identifier).join(" ");
|
|
169
|
+
if (a.length && b.length) {
|
|
170
|
+
finalClassNames.push(t.conditionalExpression(ternary.test, t.stringLiteral(cCN), t.stringLiteral(aCN)));
|
|
171
|
+
} else {
|
|
172
|
+
finalClassNames.push(t.conditionalExpression(ternary.test, t.stringLiteral(" " + cCN), t.stringLiteral(" " + aCN)));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
__name(addTernaryStyle, "addTernaryStyle");
|
|
170
176
|
node.attributes = finalAttrs;
|
|
171
177
|
if (finalClassNames.length) {
|
|
172
178
|
const names = buildClassName(finalClassNames);
|
|
@@ -233,10 +239,10 @@ function extractToClassNames({
|
|
|
233
239
|
if (shouldLogTiming) {
|
|
234
240
|
const memUsed = mem ? Math.round((process.memoryUsage().heapUsed - mem.heapUsed) / 1024 / 1204 * 10) / 10 : 0;
|
|
235
241
|
const timing = `${Date.now() - start}`.padStart(3);
|
|
236
|
-
const path2 = basename(sourcePath).padStart(
|
|
242
|
+
const path2 = basename(sourcePath).padStart(30);
|
|
237
243
|
const numOptimized = `${res.optimized}`.padStart(4);
|
|
238
244
|
const memory = memUsed > 10 ? `used ${memUsed}MB` : "";
|
|
239
|
-
console.log(
|
|
245
|
+
console.log(`${getPrefixLogs(options)} ${path2} ${timing}ms \u05C1\xB7 ${numOptimized} optimized \xB7 ${res.flattened} flattened ${memory}`);
|
|
240
246
|
}
|
|
241
247
|
return {
|
|
242
248
|
ast,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
function getPrefixLogs(options) {
|
|
4
|
+
var _a;
|
|
5
|
+
const { TAMAGUI_TARGET } = process.env;
|
|
6
|
+
return (_a = options == null ? void 0 : options.prefixLogs) != null ? _a : `[${TAMAGUI_TARGET}] \xBB `;
|
|
7
|
+
}
|
|
8
|
+
__name(getPrefixLogs, "getPrefixLogs");
|
|
9
|
+
export {
|
|
10
|
+
getPrefixLogs
|
|
11
|
+
};
|
|
@@ -16,7 +16,7 @@ function patchReactNativeWeb() {
|
|
|
16
16
|
return res;
|
|
17
17
|
})();
|
|
18
18
|
if (!isEqual) {
|
|
19
|
-
console.log("\
|
|
19
|
+
console.log("\xBB Tamagui patching react-native-web to share atomic styling primitives");
|
|
20
20
|
console.log(" > adding", modulePath);
|
|
21
21
|
console.log(" > adding", cjsPath);
|
|
22
22
|
fs.writeFileSync(modulePath, moduleExports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/static",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.67",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"typings": "types",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"@babel/traverse": "^7.15.4",
|
|
60
60
|
"@dish/babel-preset": "^0.0.6",
|
|
61
61
|
"@expo/match-media": "^0.1.0",
|
|
62
|
-
"@tamagui/build": "^1.0.0-alpha.
|
|
63
|
-
"@tamagui/core": "^1.0.0-alpha.
|
|
64
|
-
"@tamagui/core-node": "^1.0.0-alpha.
|
|
62
|
+
"@tamagui/build": "^1.0.0-alpha.64",
|
|
63
|
+
"@tamagui/core": "^1.0.0-alpha.67",
|
|
64
|
+
"@tamagui/core-node": "^1.0.0-alpha.64",
|
|
65
65
|
"@tamagui/fake-react-native": "^1.0.0-alpha.17",
|
|
66
|
-
"@tamagui/helpers": "^1.0.0-alpha.
|
|
66
|
+
"@tamagui/helpers": "^1.0.0-alpha.64",
|
|
67
67
|
"babel-literal-to-ast": "^2.1.0",
|
|
68
68
|
"esbuild": "^0.13.12",
|
|
69
69
|
"esbuild-register": "^3.1.2",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"invariant": "^2.2.4",
|
|
73
73
|
"loader-utils": "^2.0.0",
|
|
74
74
|
"lodash": "^4.17.21",
|
|
75
|
-
"tamagui": "^1.0.0-alpha.
|
|
75
|
+
"tamagui": "^1.0.0-alpha.67"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react-native-web": "*"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "5ce5d4eaa54a429c1d5fa8c58aa6a32203adcf33"
|
|
81
81
|
}
|
|
@@ -24,7 +24,7 @@ export declare function createExtractor(): {
|
|
|
24
24
|
[key: string]: string | number;
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
|
-
parse: (fileOrPath: NodePath<t.Program> | t.File, { config, importsWhitelist, evaluateVars, shouldPrintDebug, sourcePath, onExtractTag, getFlattenedNode, disableExtraction, disableExtractInlineMedia, disableExtractVariables, disableDebugAttr, ...props }: ExtractorParseProps) => {
|
|
27
|
+
parse: (fileOrPath: NodePath<t.Program> | t.File, { config, importsWhitelist, evaluateVars, shouldPrintDebug, sourcePath, onExtractTag, getFlattenedNode, disableExtraction, disableExtractInlineMedia, disableExtractVariables, disableDebugAttr, prefixLogs, ...props }: ExtractorParseProps) => {
|
|
28
28
|
flattened: number;
|
|
29
29
|
optimized: number;
|
|
30
30
|
modified: number;
|
package/types/types.d.ts
CHANGED
|
@@ -13,8 +13,10 @@ export interface TamaguiOptions {
|
|
|
13
13
|
disableDebugAttr?: boolean;
|
|
14
14
|
disableExtractInlineMedia?: boolean;
|
|
15
15
|
disableExtractVariables?: boolean;
|
|
16
|
+
excludeReactNativeWebExports?: string[];
|
|
16
17
|
exclude?: RegExp;
|
|
17
18
|
logTimings?: boolean;
|
|
19
|
+
prefixLogs?: string;
|
|
18
20
|
cssPath?: string;
|
|
19
21
|
cssData?: any;
|
|
20
22
|
deoptProps?: Set<string>;
|
package/types/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gBAAgB,CAAA;AAI1C,eAAO,MAAM,SAAS,MAAM,CAAA;AAG5B,eAAO,MAAM,QAAQ,KAAkD,CAAA;AAEvE,eAAO,MAAM,WAAW,eAA8B,CAAA;AACtD,eAAO,MAAM,uBAAuB,oBAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accessSafe.d.ts","sourceRoot":"","sources":["../../src/extractor/accessSafe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAIjC,wBAAgB,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,iBAAiB,CAajF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"babelParse.d.ts","sourceRoot":"","sources":["../../src/extractor/babelParse.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAE5C,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,aAkBtC,CAAA;AAIF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAErD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildClassName.d.ts","sourceRoot":"","sources":["../../src/extractor/buildClassName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,wBAAgB,cAAc,CAC5B,gBAAgB,EAAE,eAAe,EAAE,GAClC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,aAAa,GAAG,IAAI,CAsDvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createEvaluator.d.ts","sourceRoot":"","sources":["../../src/extractor/createEvaluator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AACjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAMlD,wBAAgB,eAAe,CAAC,EAC9B,aAAa,EACb,eAAe,EACf,UAAU,EACV,YAAY,EACZ,gBAAgB,GACjB,EAAE;IACD,aAAa,EAAE,aAAa,CAAA;IAC5B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;IACpC,gBAAgB,EAAE,OAAO,CAAA;CAC1B,OA+BY,MAAM,SAGlB;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,KAAK,GAAG,OACtD,MAAM,SAOlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createExtractor.d.ts","sourceRoot":"","sources":["../../src/extractor/createExtractor.ts"],"names":[],"mappings":"AAAA,OAAiB,EAAE,QAAQ,EAAW,MAAM,iBAAiB,CAAA;AAC7D,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AACjC,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAM9E,OAAO,EAAoC,mBAAmB,EAAW,MAAM,UAAU,CAAA;AAyBzF,oBAAY,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAI1D,wBAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;wBAsBb,SAAS,EAAE,OAAO,CAAC,GAAG,MAAM,+MAcrC,mBAAmB;;;;;EA0qC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensureImportingConcat.d.ts","sourceRoot":"","sources":["../../src/extractor/ensureImportingConcat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAMjC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QA+B9D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evaluateAstNode.d.ts","sourceRoot":"","sources":["../../src/extractor/evaluateAstNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,CAAC,CAAC,IAAI,GAAG,SAAS,GAAG,IAAI,EACnC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,KAAK,GAAG,EAC9B,gBAAgB,CAAC,EAAE,OAAO,GACzB,GAAG,CAkHL"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extractHelpers.d.ts","sourceRoot":"","sources":["../../src/extractor/extractHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAGjD,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,KAAK,IAAI,CAAC,CAE1F;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,kBAAkB,WAExD;AAED,eAAO,MAAM,OAAO,SAAU,aAAa,6BAM1C,CAAA;AAED,eAAO,MAAM,QAAQ,QAAS,GAAG,QAahC,CAAA;AASD,eAAO,MAAM,UAAU,MAAO,OAAO,WAyBpC,CAAA;AAED,wBAAgB,iBAAiB,CAAC,KAAK,KAAA,sBAoBtC;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC/B,CAAC,EAAE,CAAC,CAAC,gBAAgB,EACrB,UAAU,EAAE,MAAM,WAoBnB;AAED,eAAO,MAAM,eAAe,YAAa,MAAM,YAE9C,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extractMediaStyle.d.ts","sourceRoot":"","sources":["../../src/extractor/extractMediaStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO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MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,CAAC,CAAC,IAAI,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;CACT,CAgSA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findTopmostFunction.d.ts","sourceRoot":"","sources":["../../src/extractor/findTopmostFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,wBAkBlE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generatedUid.d.ts","sourceRoot":"","sources":["../../src/extractor/generatedUid.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,cAAc,CAAC;IAC5B,SAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CACpD;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAiC5D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPropValueFromAttributes.d.ts","sourceRoot":"","sources":["../../src/extractor/getPropValueFromAttributes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAoBjC,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,CAAC,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,kBAAkB,CAAC,EAAE,GAC/C,CAAC,CAAC,UAAU,GAAG,IAAI,CAmErB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getSourceModule.d.ts","sourceRoot":"","sources":["../../src/extractor/getSourceModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,MAAM,WAAW,YAAY;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,OAAO,CAAA;CAC1B;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE;QAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;QAAC,MAAM,EAAE,GAAG,CAAA;KAAE,CAAA;CACpC,GACA,YAAY,GAAG,IAAI,CAoFrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getStaticBindingsForScope.d.ts","sourceRoot":"","sources":["../../src/extractor/getStaticBindingsForScope.ts"],"names":[],"mappings":"AAEA,OAAO,EAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AA8BjC,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,EACtC,SAAS,sBAAe,EACxB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,EAC3C,gBAAgB,EAAE,OAAO,GACxB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAqIrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hoistClassNames.d.ts","sourceRoot":"","sources":["../../src/extractor/hoistClassNames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC5B,QAAQ,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,UAAU,CAAA;CAAE,EACzC,IAAI,EAAE,CAAC,CAAC,UAAU,OAsCnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"literalToAst.d.ts","sourceRoot":"","sources":["../../src/extractor/literalToAst.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,YAAY,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,CAAC,UAAU,CA6BvD;AAID,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,OA4BrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../../src/extractor/loadTamagui.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAK3E,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAC5E,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IAC3C,aAAa,EAAE,qBAAqB,CAAA;CACrC,CAsDA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logLines.d.ts","sourceRoot":"","sources":["../../src/extractor/logLines.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,QAAS,MAAM,WAUnC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeTernaries.d.ts","sourceRoot":"","sources":["../../src/extractor/normalizeTernaries.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,OAAO,EAAE,aAqDtD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"removeUnusedHooks.d.ts","sourceRoot":"","sources":["../../src/extractor/removeUnusedHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAQ1C,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,gBAAgB,EAAE,OAAO,QAmEjF"}
|
package/types/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,cAAc,aAAa,CAAA;AAC3B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"patchReactNativeWeb.d.ts","sourceRoot":"","sources":["../src/patchReactNativeWeb.ts"],"names":[],"mappings":"AASA,wBAAgB,mBAAmB,SAoFlC"}
|
package/types/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,oBAAY,eAAe,GAAG,CAAC,CAAC,aAAa,GAAG,CAAC,CAAC,UAAU,CAAA;AAE5D,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAED,MAAM,WAAW,cAAc;I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