@tamagui/static 1.89.26 → 1.89.27-1708113113238
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/constants.native.js +4 -4
- package/dist/cjs/constants.native.js.map +3 -3
- package/dist/cjs/extractor/accessSafe.native.js +1 -5
- package/dist/cjs/extractor/accessSafe.native.js.map +3 -3
- package/dist/cjs/extractor/babelParse.native.js +5 -8
- package/dist/cjs/extractor/babelParse.native.js.map +3 -3
- package/dist/cjs/extractor/buildClassName.native.js +31 -42
- package/dist/cjs/extractor/buildClassName.native.js.map +3 -3
- package/dist/cjs/extractor/bundle.js +6 -4
- package/dist/cjs/extractor/bundle.js.map +1 -1
- package/dist/cjs/extractor/bundle.native.js +321 -56
- package/dist/cjs/extractor/bundle.native.js.map +3 -3
- package/dist/cjs/extractor/bundleConfig.native.js +499 -187
- package/dist/cjs/extractor/bundleConfig.native.js.map +3 -3
- package/dist/cjs/extractor/createEvaluator.native.js +9 -11
- package/dist/cjs/extractor/createEvaluator.native.js.map +3 -3
- package/dist/cjs/extractor/createExtractor.native.js +1240 -906
- package/dist/cjs/extractor/createExtractor.native.js.map +3 -3
- package/dist/cjs/extractor/ensureImportingConcat.native.js +11 -17
- package/dist/cjs/extractor/ensureImportingConcat.native.js.map +3 -3
- package/dist/cjs/extractor/esbuildAliasPlugin.native.js +22 -11
- package/dist/cjs/extractor/esbuildAliasPlugin.native.js.map +3 -3
- package/dist/cjs/extractor/evaluateAstNode.native.js +15 -21
- package/dist/cjs/extractor/evaluateAstNode.native.js.map +3 -3
- package/dist/cjs/extractor/extractHelpers.native.js +146 -38
- package/dist/cjs/extractor/extractHelpers.native.js.map +3 -3
- package/dist/cjs/extractor/extractMediaStyle.native.js +127 -54
- package/dist/cjs/extractor/extractMediaStyle.native.js.map +3 -3
- package/dist/cjs/extractor/extractToClassNames.native.js +449 -252
- package/dist/cjs/extractor/extractToClassNames.native.js.map +3 -3
- package/dist/cjs/extractor/findTopmostFunction.native.js +4 -4
- package/dist/cjs/extractor/findTopmostFunction.native.js.map +3 -3
- package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js +415 -54
- package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js.map +3 -3
- package/dist/cjs/extractor/generatedUid.native.js +2 -2
- package/dist/cjs/extractor/generatedUid.native.js.map +3 -3
- package/dist/cjs/extractor/getPrefixLogs.native.js +2 -1
- package/dist/cjs/extractor/getPrefixLogs.native.js.map +3 -3
- package/dist/cjs/extractor/getPropValueFromAttributes.native.js +16 -19
- package/dist/cjs/extractor/getPropValueFromAttributes.native.js.map +3 -3
- package/dist/cjs/extractor/getSourceModule.native.js +20 -7
- package/dist/cjs/extractor/getSourceModule.native.js.map +3 -3
- package/dist/cjs/extractor/getStaticBindingsForScope.native.js +336 -94
- package/dist/cjs/extractor/getStaticBindingsForScope.native.js.map +3 -3
- package/dist/cjs/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +3 -3
- package/dist/cjs/extractor/hoistClassNames.native.js +8 -10
- package/dist/cjs/extractor/hoistClassNames.native.js.map +3 -3
- package/dist/cjs/extractor/literalToAst.native.js +89 -19
- package/dist/cjs/extractor/literalToAst.native.js.map +3 -3
- package/dist/cjs/extractor/loadFile.native.js +16 -8
- package/dist/cjs/extractor/loadFile.native.js.map +3 -3
- package/dist/cjs/extractor/loadTamagui.js +3 -3
- package/dist/cjs/extractor/loadTamagui.js.map +1 -1
- package/dist/cjs/extractor/loadTamagui.native.js +667 -192
- package/dist/cjs/extractor/loadTamagui.native.js.map +3 -3
- package/dist/cjs/extractor/logLines.native.js +24 -6
- package/dist/cjs/extractor/logLines.native.js.map +3 -3
- package/dist/cjs/extractor/normalizeTernaries.native.js +71 -20
- package/dist/cjs/extractor/normalizeTernaries.native.js.map +3 -3
- package/dist/cjs/extractor/propsToFontFamilyCache.native.js +3 -3
- package/dist/cjs/extractor/propsToFontFamilyCache.native.js.map +3 -3
- package/dist/cjs/extractor/removeUnusedHooks.native.js +69 -36
- package/dist/cjs/extractor/removeUnusedHooks.native.js.map +3 -3
- package/dist/cjs/extractor/timer.native.js +10 -9
- package/dist/cjs/extractor/timer.native.js.map +3 -3
- package/dist/cjs/extractor/validHTMLAttributes.native.js +1 -1
- package/dist/cjs/extractor/validHTMLAttributes.native.js.map +3 -3
- package/dist/cjs/getPragmaOptions.native.js +4 -9
- package/dist/cjs/getPragmaOptions.native.js.map +3 -3
- package/dist/cjs/helpers/memoize.native.js +5 -3
- package/dist/cjs/helpers/memoize.native.js.map +3 -3
- package/dist/cjs/helpers/requireTamaguiCore.native.js +2 -1
- package/dist/cjs/helpers/requireTamaguiCore.native.js.map +3 -3
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/cjs/minifyCSS.native.js.map +3 -3
- package/dist/cjs/registerRequire.native.js +56 -28
- package/dist/cjs/registerRequire.native.js.map +3 -3
- package/dist/cjs/server.native.js +175 -21
- package/dist/cjs/server.native.js.map +3 -3
- package/dist/cjs/setup.native.js.map +3 -3
- package/dist/cjs/static.native.js.map +2 -2
- package/dist/cjs/types.native.js.map +2 -2
- package/dist/cjs/webpackPlugin.native.js +26 -5
- package/dist/cjs/webpackPlugin.native.js.map +3 -3
- package/dist/esm/constants.native.js +4 -3
- package/dist/esm/constants.native.js.map +3 -3
- package/dist/esm/extractor/accessSafe.native.js +1 -5
- package/dist/esm/extractor/accessSafe.native.js.map +3 -3
- package/dist/esm/extractor/babelParse.native.js +5 -7
- package/dist/esm/extractor/babelParse.native.js.map +3 -3
- package/dist/esm/extractor/buildClassName.native.js +31 -41
- package/dist/esm/extractor/buildClassName.native.js.map +3 -3
- package/dist/esm/extractor/bundle.js +6 -4
- package/dist/esm/extractor/bundle.js.map +1 -1
- package/dist/esm/extractor/bundle.mjs +7 -5
- package/dist/esm/extractor/bundle.native.js +321 -56
- package/dist/esm/extractor/bundle.native.js.map +3 -3
- package/dist/esm/extractor/bundleConfig.native.js +499 -187
- package/dist/esm/extractor/bundleConfig.native.js.map +3 -3
- package/dist/esm/extractor/createEvaluator.native.js +9 -11
- package/dist/esm/extractor/createEvaluator.native.js.map +3 -3
- package/dist/esm/extractor/createExtractor.native.js +1241 -916
- package/dist/esm/extractor/createExtractor.native.js.map +3 -3
- package/dist/esm/extractor/ensureImportingConcat.native.js +11 -16
- package/dist/esm/extractor/ensureImportingConcat.native.js.map +3 -3
- package/dist/esm/extractor/esbuildAliasPlugin.native.js +22 -11
- package/dist/esm/extractor/esbuildAliasPlugin.native.js.map +3 -3
- package/dist/esm/extractor/evaluateAstNode.native.js +15 -21
- package/dist/esm/extractor/evaluateAstNode.native.js.map +3 -3
- package/dist/esm/extractor/extractHelpers.native.js +146 -38
- package/dist/esm/extractor/extractHelpers.native.js.map +3 -3
- package/dist/esm/extractor/extractMediaStyle.native.js +127 -54
- package/dist/esm/extractor/extractMediaStyle.native.js.map +3 -3
- package/dist/esm/extractor/extractToClassNames.native.js +449 -252
- package/dist/esm/extractor/extractToClassNames.native.js.map +3 -3
- package/dist/esm/extractor/findTopmostFunction.native.js +4 -4
- package/dist/esm/extractor/findTopmostFunction.native.js.map +3 -3
- package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +415 -54
- package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +3 -3
- package/dist/esm/extractor/generatedUid.native.js +2 -2
- package/dist/esm/extractor/generatedUid.native.js.map +3 -3
- package/dist/esm/extractor/getPrefixLogs.native.js +2 -1
- package/dist/esm/extractor/getPrefixLogs.native.js.map +3 -3
- package/dist/esm/extractor/getPropValueFromAttributes.native.js +16 -19
- package/dist/esm/extractor/getPropValueFromAttributes.native.js.map +3 -3
- package/dist/esm/extractor/getSourceModule.native.js +20 -7
- package/dist/esm/extractor/getSourceModule.native.js.map +3 -3
- package/dist/esm/extractor/getStaticBindingsForScope.native.js +336 -94
- package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +3 -3
- package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +3 -3
- package/dist/esm/extractor/hoistClassNames.native.js +8 -10
- package/dist/esm/extractor/hoistClassNames.native.js.map +3 -3
- package/dist/esm/extractor/literalToAst.native.js +89 -19
- package/dist/esm/extractor/literalToAst.native.js.map +3 -3
- package/dist/esm/extractor/loadFile.native.js +16 -8
- package/dist/esm/extractor/loadFile.native.js.map +3 -3
- package/dist/esm/extractor/loadTamagui.js +1 -2
- package/dist/esm/extractor/loadTamagui.js.map +1 -1
- package/dist/esm/extractor/loadTamagui.mjs +5 -3
- package/dist/esm/extractor/loadTamagui.native.js +668 -203
- package/dist/esm/extractor/loadTamagui.native.js.map +3 -3
- package/dist/esm/extractor/logLines.native.js +24 -6
- package/dist/esm/extractor/logLines.native.js.map +3 -3
- package/dist/esm/extractor/normalizeTernaries.native.js +71 -20
- package/dist/esm/extractor/normalizeTernaries.native.js.map +3 -3
- package/dist/esm/extractor/propsToFontFamilyCache.native.js +3 -3
- package/dist/esm/extractor/propsToFontFamilyCache.native.js.map +3 -3
- package/dist/esm/extractor/removeUnusedHooks.native.js +69 -35
- package/dist/esm/extractor/removeUnusedHooks.native.js.map +3 -3
- package/dist/esm/extractor/timer.native.js +10 -9
- package/dist/esm/extractor/timer.native.js.map +3 -3
- package/dist/esm/extractor/validHTMLAttributes.native.js +1 -1
- package/dist/esm/extractor/validHTMLAttributes.native.js.map +3 -3
- package/dist/esm/getPragmaOptions.native.js +4 -9
- package/dist/esm/getPragmaOptions.native.js.map +3 -3
- package/dist/esm/helpers/memoize.native.js +5 -3
- package/dist/esm/helpers/memoize.native.js.map +3 -3
- package/dist/esm/helpers/requireTamaguiCore.native.js +2 -1
- package/dist/esm/helpers/requireTamaguiCore.native.js.map +3 -3
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/minifyCSS.native.js.map +3 -3
- package/dist/esm/registerRequire.native.js +56 -28
- package/dist/esm/registerRequire.native.js.map +3 -3
- package/dist/esm/server.native.js +175 -21
- package/dist/esm/server.native.js.map +3 -3
- package/dist/esm/setup.native.js.map +3 -3
- package/dist/esm/static.native.js.map +3 -3
- package/dist/esm/webpackPlugin.native.js +26 -5
- package/dist/esm/webpackPlugin.native.js.map +3 -3
- package/package.json +14 -15
- package/src/extractor/bundle.ts +5 -2
- package/src/extractor/loadTamagui.ts +3 -2
- package/types/extractor/bundle.d.ts.map +1 -1
- package/types/extractor/loadTamagui.d.ts.map +1 -1
- package/tamagui.tsconfig.json +0 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/generateTamaguiStudioConfig.ts"],
|
4
|
-
"mappings": "
|
5
|
-
"names": ["fs"]
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/generateTamaguiStudioConfig.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAA8B,iBAE9B,yBAAqD,qCAErD,kBAA6B,8BAE7B,4BAAmC,0CAGnC,sBAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,IAAMA,iBAAaC,kBAAKC,QAAQC,IAAG,GAAI,UAAA,GACjCC,eAAWH,kBAAKD,YAAY,qBAAA;AAMlC,SAAsBK,4BACpBC,gBACAC,UAA+B;SAFXF,6BAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,+BAAAA;AAAAA,wCAAf,oBAAA,SACLC,gBACAC,UAA+B;QAC/BC,SAGQC,QAAAA,MAEAC,KAMCC,KACHT;;;;AAZNM,oBAAAA,WAAAA,SAAAA,KAAAA,WAAAA,CAAAA,MAAAA,SAAAA,WAAAA,CAAAA,IAAU;;;;;;;cAGOD,YAAAA,OAAAA;;;sBAAAA;;;;;AAAa,iBAAA;;gBAAM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WAAWrB,CAAAA,CAAE;AACnDoB,kBAAUC,WAAWrB,CAAAA,IAAKsB;AAE1B,YAAwCA,+BAAAA,eAAeC,cAA/CC,qBAAgCF,6BAAhCE,oBAAuBC,OAAAA,2BAASH,8BAAAA;UAAhCE;;AACRF,uBAAeC,eAAeE;MAChC;IACF;;AATK,wBAAA,IAAA,iBAAA;;;OAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;UAAA;cAAA;;;AAYL1C,OAAK4B,cAAc,CAAC;AACpB,WAAWI,QAAOJ;AAChB5B,SAAK4B,YAAYI,IAAAA,IAAQ,qBAAGJ,YAAYI,IAAAA,CAAI;AAI9C,MACEhC,sBAAAA,KAAK6B,eADCc,cACN3C,oBADM2C,aAAaC,SACnB5C,oBADmB4C,QAAQC,eAC3B7C,oBAD2B6C,cAAcC,cACzC9C,oBADyC8C,aAAgBC,gBAAAA,2BACzD/C,qBAAAA;IADM2C;IAAaC;IAAQC;IAAcC;;AAG3C,SAAO;IACLnB;IACAC;IACAC,eAAekB;EACjB;AACF;",
|
5
|
+
"names": ["tamaguiDir", "join", "process", "cwd", "confFile", "generateTamaguiStudioConfig", "tamaguiOptions", "configIn", "rebuild", "config", "out", "err", "getBundledConfig", "transformConfig", "platform", "fs", "ensureDir", "dirname", "writeJSON", "spaces", "env", "DEBUG", "includes", "IS_TAMAGUI_DEV", "console", "warn", "generateTamaguiStudioConfigSync", "_tamaguiOptions", "ensureDirSync", "writeJSONSync", "generateTamaguiThemes", "force", "input", "output", "inPath", "outPath", "generatedOutput", "hasChanged", "themeBuilder", "resolveRelativePath", "generateThemes", "themeBuilderJsonExists", "next", "current", "pathExists", "_state", "generated", "readFile", "writeGeneratedThemes", "inputPath", "startsWith", "require", "resolve", "cloneDeepSafe", "x", "excludeKeys", "Array", "isArray", "map", "_", "Object", "fromEntries", "entries", "flatMap", "k", "v", "getVariableValue", "requireTamaguiCore", "validStyles", "components", "nameToPaths", "tamaguiConfig", "themes", "tokens", "key", "theme", "id", "tkey", "token", "component", "nameToInfo", "compDefinition", "staticConfig", "parentStaticConfig", "rest", "fontsParsed", "getCSS", "tokensParsed", "themeConfig", "cleanedConfig"]
|
6
6
|
}
|
@@ -33,11 +33,11 @@ function generateUid(scope, name) {
|
|
33
33
|
if (!(typeof name == "string" && name !== ""))
|
34
34
|
throw "generateUid expects a valid name as its second parameter";
|
35
35
|
name = t.toIdentifier(name).replace(/^_+/, "").replace(/[0-9]+$/g, "");
|
36
|
-
|
36
|
+
var uid, i = 0;
|
37
37
|
do
|
38
38
|
i > 1 ? uid = name + i : uid = name, i++;
|
39
39
|
while (scope.hasLabel(uid) || scope.hasBinding(uid) || scope.hasGlobal(uid) || scope.hasReference(uid));
|
40
|
-
|
40
|
+
var program = scope.getProgramParent();
|
41
41
|
return program.references[uid] = !0, program.uids[uid] = !0, uid;
|
42
42
|
}
|
43
43
|
// Annotate the CommonJS export names for ESM import in node:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/generatedUid.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/generatedUid.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;QAAmB;AASZ,SAASA,YAAYC,OAAYC,MAAY;AAClD,MAAM,OAAOD,SAAU;AACrB,UAAM;AACR,MAAI,EAAE,OAAOC,QAAS,YAAYA,SAAS;AACzC,UAAM;AAERA,SAAOC,EACJC,aAAaF,IAAAA,EACbG,QAAQ,OAAO,EAAA,EACfA,QAAQ,YAAY,EAAA;AAEvB,MAAIC,KACAC,IAAI;AACR;AACE,IAAIA,IAAI,IACND,MAAMJ,OAAOK,IAEbD,MAAMJ,MAERK;SAEAN,MAAMO,SAASF,GAAAA,KACfL,MAAMQ,WAAWH,GAAAA,KACjBL,MAAMS,UAAUJ,GAAAA,KAChBL,MAAMU,aAAaL,GAAAA;AAGrB,MAAMM,UAAUX,MAAMY,iBAAgB;AACtCD,iBAAQE,WAAWR,GAAAA,IAAO,IAC1BM,QAAQG,KAAKT,GAAAA,IAAO,IAEbA;AACT;",
|
5
|
+
"names": ["generateUid", "scope", "name", "t", "toIdentifier", "replace", "uid", "i", "hasLabel", "hasBinding", "hasGlobal", "hasReference", "program", "getProgramParent", "references", "uids"]
|
6
6
|
}
|
@@ -19,7 +19,8 @@ __export(getPrefixLogs_exports, {
|
|
19
19
|
});
|
20
20
|
module.exports = __toCommonJS(getPrefixLogs_exports);
|
21
21
|
function getPrefixLogs(options) {
|
22
|
-
|
22
|
+
var _options_prefixLogs;
|
23
|
+
return (_options_prefixLogs = options == null ? void 0 : options.prefixLogs) !== null && _options_prefixLogs !== void 0 ? _options_prefixLogs : " ".concat((options == null ? void 0 : options.platform) || "web", " | ");
|
23
24
|
}
|
24
25
|
// Annotate the CommonJS export names for ESM import in node:
|
25
26
|
0 && (module.exports = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/getPrefixLogs.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/getPrefixLogs.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAEA;;;;;AAAO,SAASA,cAAcC,SAAwB;MAC7CA;AAAP,UAAOA,sBAAAA,WAAAA,OAAAA,SAAAA,QAASC,gBAAU,QAAnBD,wBAAAA,SAAAA,sBAAwB,IAA8B,QAA3BA,WAAAA,OAAAA,SAAAA,QAASE,aAAY,OAAM,MAAA;AAC/D;",
|
5
|
+
"names": ["getPrefixLogs", "options", "prefixLogs", "platform"]
|
6
6
|
}
|
@@ -28,9 +28,8 @@ __export(getPropValueFromAttributes_exports, {
|
|
28
28
|
module.exports = __toCommonJS(getPropValueFromAttributes_exports);
|
29
29
|
var import_generator = __toESM(require("@babel/generator")), t = __toESM(require("@babel/types")), import_accessSafe = require("./accessSafe");
|
30
30
|
function getPropValueFromAttributes(propName, attrs) {
|
31
|
-
|
32
|
-
|
33
|
-
const attr = attrs[idx];
|
31
|
+
for (var propIndex = -1, jsxAttr = null, idx = -1, len = attrs.length; ++idx < len; ) {
|
32
|
+
var attr = attrs[idx];
|
34
33
|
if (t.isJSXAttribute(attr) && attr.name && attr.name.name === propName) {
|
35
34
|
propIndex = idx, jsxAttr = attr;
|
36
35
|
break;
|
@@ -38,30 +37,28 @@ function getPropValueFromAttributes(propName, attrs) {
|
|
38
37
|
}
|
39
38
|
if (!jsxAttr || jsxAttr.value == null)
|
40
39
|
return null;
|
41
|
-
|
40
|
+
var propValue = jsxAttr.value;
|
42
41
|
if (t.isJSXExpressionContainer(propValue) && (propValue = propValue.expression), t.isJSXEmptyExpression(propValue))
|
43
42
|
return console.error("encountered JSXEmptyExpression"), null;
|
44
|
-
|
43
|
+
var applicableSpreads = attrs.filter(
|
45
44
|
// 1. idx is greater than propValue prop index
|
46
45
|
// 2. attr is a spread operator
|
47
|
-
(
|
48
|
-
if (t.isJSXSpreadAttribute(
|
49
|
-
if (t.isIdentifier(
|
50
|
-
return
|
51
|
-
if (t.isLogicalExpression(
|
46
|
+
function(attr2, idx2) {
|
47
|
+
if (t.isJSXSpreadAttribute(attr2)) {
|
48
|
+
if (t.isIdentifier(attr2.argument) || t.isMemberExpression(attr2.argument))
|
49
|
+
return idx2 > propIndex;
|
50
|
+
if (t.isLogicalExpression(attr2.argument))
|
52
51
|
return !1;
|
53
|
-
throw new Error(
|
54
|
-
`unsupported spread of type "${attr.argument.type}": ${// @ts-ignore
|
55
|
-
(0, import_generator.default)(attr).code}`
|
56
|
-
);
|
52
|
+
throw new Error('unsupported spread of type "'.concat(attr2.argument.type, '": ').concat((0, import_generator.default)(attr2).code));
|
57
53
|
}
|
58
54
|
return !1;
|
59
55
|
}
|
60
|
-
).map((
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
56
|
+
).map(function(attr2) {
|
57
|
+
return attr2.argument;
|
58
|
+
});
|
59
|
+
return applicableSpreads.length > 0 && (propValue = applicableSpreads.reduce(function(acc, val) {
|
60
|
+
return t.logicalExpression("||", (0, import_accessSafe.accessSafe)(val, propName), acc);
|
61
|
+
}, propValue)), propValue;
|
65
62
|
}
|
66
63
|
// Annotate the CommonJS export names for ESM import in node:
|
67
64
|
0 && (module.exports = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/getPropValueFromAttributes.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": ["generate"]
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/getPropValueFromAttributes.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;uBAAqB,sCACrB,IAAmB,kCAEnB,oBAA2B;AAkBpB,SAASA,2BACdC,UACAC,OAAgD;AAIhD,WAFIC,YAAY,IACZC,UAAiC,MAC5BC,MAAM,IAAIC,MAAMJ,MAAMK,QAAQ,EAAEF,MAAMC,OAAO;AACpD,QAAME,OAAON,MAAMG,GAAAA;AACnB,QAAII,EAAEC,eAAeF,IAAAA,KAASA,KAAKG,QAAQH,KAAKG,KAAKA,SAASV,UAAU;AACtEE,kBAAYE,KACZD,UAAUI;AACV;IACF;EACF;AAEA,MAAI,CAACJ,WAAWA,QAAQQ,SAAS;AAC/B,WAAO;AAGT,MAAIC,YAMeT,QAAQQ;AAO3B,MALIH,EAAEK,yBAAyBD,SAAAA,MAC7BA,YAAYA,UAAUE,aAIpBN,EAAEO,qBAAqBH,SAAAA;AACzBI,mBAAQC,MAAM,gCAAA,GACP;AAIT,MAAMC,oBAAoBjB,MACvBkB;;;IAGC,SAACZ,OAAMH,MAAAA;AACL,UAAII,EAAEY,qBAAqBb,KAAAA,GAAO;AAChC,YAAIC,EAAEa,aAAad,MAAKe,QAAQ,KAAKd,EAAEe,mBAAmBhB,MAAKe,QAAQ;AACrE,iBAAOlB,OAAMF;AAEf,YAAIM,EAAEgB,oBAAoBjB,MAAKe,QAAQ;AACrC,iBAAO;AAET,cAAM,IAAIG,MACP,+BAECC,OAF6BnB,MAAKe,SAASK,MAAK,KAAA,EAGjD,WADCD,iBAAAA,SAASnB,KAAAA,EAAaqB,IAAI,CAAA;MAGhC;AACA,aAAO;IACT;EAAA,EAEDC,IAAI,SAACtB,OAAAA;WAASA,MAAKe;;AAKtB,SAAIJ,kBAAkBZ,SAAS,MAC7BM,YAAYM,kBAAkBY,OAC5B,SAACC,KAAKC,KAAAA;WAAQxB,EAAEyB,kBAAkB,UAAMC,8BAAWF,KAAKhC,QAAAA,GAAW+B,GAAAA;KACnEnB,SAAAA,IAIGA;AACT;",
|
5
|
+
"names": ["getPropValueFromAttributes", "propName", "attrs", "propIndex", "jsxAttr", "idx", "len", "length", "attr", "t", "isJSXAttribute", "name", "value", "propValue", "isJSXExpressionContainer", "expression", "isJSXEmptyExpression", "console", "error", "applicableSpreads", "filter", "isJSXSpreadAttribute", "isIdentifier", "argument", "isMemberExpression", "isLogicalExpression", "Error", "generate", "type", "code", "map", "reduce", "acc", "val", "logicalExpression", "accessSafe"]
|
6
6
|
}
|
@@ -30,8 +30,7 @@ var t = __toESM(require("@babel/types"));
|
|
30
30
|
function getSourceModule(itemName, itemBinding) {
|
31
31
|
if (!itemBinding.constant)
|
32
32
|
return null;
|
33
|
-
|
34
|
-
const itemNode = itemBinding.path.node;
|
33
|
+
var sourceModule, imported, local, destructured, usesImportSyntax = !1, itemNode = itemBinding.path.node;
|
35
34
|
if (
|
36
35
|
// import x from 'y';
|
37
36
|
t.isImportDefaultSpecifier(itemNode) || // import {x} from 'y';
|
@@ -39,17 +38,31 @@ function getSourceModule(itemName, itemBinding) {
|
|
39
38
|
)
|
40
39
|
t.isImportDeclaration(itemBinding.path.parent) && (sourceModule = itemBinding.path.parent.source.value, local = itemNode.local.name, usesImportSyntax = !0, t.isImportSpecifier(itemNode) ? (imported = itemNode.imported.name, destructured = !0) : (imported = itemNode.local.name, destructured = !1));
|
41
40
|
else if (t.isVariableDeclarator(itemNode) && itemNode.init != null && t.isCallExpression(itemNode.init) && t.isIdentifier(itemNode.init.callee) && itemNode.init.callee.name === "require" && itemNode.init.arguments.length === 1) {
|
42
|
-
|
41
|
+
var firstArg = itemNode.init.arguments[0];
|
43
42
|
if (!t.isStringLiteral(firstArg))
|
44
43
|
return null;
|
45
44
|
if (sourceModule = firstArg.value, t.isIdentifier(itemNode.id))
|
46
45
|
local = itemNode.id.name, imported = itemNode.id.name, destructured = !1;
|
47
46
|
else if (t.isObjectPattern(itemNode.id)) {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
47
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
48
|
+
try {
|
49
|
+
for (var _iterator = itemNode.id.properties[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
50
|
+
var objProp = _step.value;
|
51
|
+
if (t.isObjectProperty(objProp) && t.isIdentifier(objProp.value) && objProp.value.name === itemName) {
|
52
|
+
local = objProp.value.name, imported = objProp.key.name, destructured = !0;
|
53
|
+
break;
|
54
|
+
}
|
52
55
|
}
|
56
|
+
} catch (err) {
|
57
|
+
_didIteratorError = !0, _iteratorError = err;
|
58
|
+
} finally {
|
59
|
+
try {
|
60
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
61
|
+
} finally {
|
62
|
+
if (_didIteratorError)
|
63
|
+
throw _iteratorError;
|
64
|
+
}
|
65
|
+
}
|
53
66
|
if (!local || !imported)
|
54
67
|
return console.error("could not find prop with value `%s`", itemName), null;
|
55
68
|
} else
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/getSourceModule.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/getSourceModule.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;QAAmB;AAUZ,SAASA,gBACdC,UACAC,aAGC;AAGD,MAAI,CAACA,YAAYC;AACf,WAAO;AAGT,MAAIC,cACAC,UACAC,OACAC,cACAC,mBAAmB,IAEjBC,WAAWP,YAAYQ,KAAKC;AAElC;;IAEEC,EAAEC,yBAAyBJ,QAAAA;IAE3BG,EAAEE,kBAAkBL,QAAAA;;AAEpB,IAAIG,EAAEG,oBAAoBb,YAAYQ,KAAKM,MAAM,MAC/CZ,eAAeF,YAAYQ,KAAKM,OAAOC,OAAOC,OAC9CZ,QAAQG,SAASH,MAAMa,MACvBX,mBAAmB,IACfI,EAAEE,kBAAkBL,QAAAA,KACtBJ,WAAWI,SAASJ,SAAS,MAC7BE,eAAe,OAEfF,WAAWI,SAASH,MAAMa,MAC1BZ,eAAe;WAInBK,EAAEQ,qBAAqBX,QAAAA,KACvBA,SAASY,QAAQ,QACjBT,EAAEU,iBAAiBb,SAASY,IAAI,KAChCT,EAAEW,aAAad,SAASY,KAAKG,MAAM,KACnCf,SAASY,KAAKG,OAAOL,SAAS,aAC9BV,SAASY,KAAKI,UAAUC,WAAW,GACnC;AACA,QAAMC,WAAWlB,SAASY,KAAKI,UAAU,CAAA;AACzC,QAAI,CAACb,EAAEgB,gBAAgBD,QAAAA;AACrB,aAAO;AAIT,QAFAvB,eAAeuB,SAAST,OAEpBN,EAAEW,aAAad,SAASoB,EAAE;AAC5BvB,cAAQG,SAASoB,GAAGV,MACpBd,WAAWI,SAASoB,GAAGV,MACvBZ,eAAe;aACNK,EAAEkB,gBAAgBrB,SAASoB,EAAE,GAAG;UACpC,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,iBAAK,YAAiBpB,SAASoB,GAAGE,WAAU,OAAA,QAAA,EAAA,GAAvC,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAyC;AAAzC,cAAMC,UAAN,MAAA;AACH,cACEpB,EAAEqB,iBAAiBD,OAAAA,KACnBpB,EAAEW,aAAaS,QAAQd,KAAK,KAC5Bc,QAAQd,MAAMC,SAASlB,UACvB;AACAK,oBAAQ0B,QAAQd,MAAMC,MAEtBd,WAAW2B,QAAQE,IAAIf,MACvBZ,eAAe;AACf;UACF;QACF;;AAZK,4BAAA,IAAA,iBAAA;;;WAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;cAAA;kBAAA;;;AAcL,UAAI,CAACD,SAAS,CAACD;AACb8B,uBAAQC,MAAM,uCAAuCnC,QAAAA,GAC9C;IAEX;AACEkC,qBAAQC,MAAM,yBAAyB3B,SAASoB,GAAGQ,IAAI,GAChD;EAEX;AACE,WAAO;AAGT,SAAO;IACL9B;IACAF;IACAC;IACAF;IACAI;EACF;AACF;",
|
5
|
+
"names": ["getSourceModule", "itemName", "itemBinding", "constant", "sourceModule", "imported", "local", "destructured", "usesImportSyntax", "itemNode", "path", "node", "t", "isImportDefaultSpecifier", "isImportSpecifier", "isImportDeclaration", "parent", "source", "value", "name", "isVariableDeclarator", "init", "isCallExpression", "isIdentifier", "callee", "arguments", "length", "firstArg", "isStringLiteral", "id", "isObjectPattern", "properties", "objProp", "isObjectProperty", "key", "console", "error", "type"]
|
6
6
|
}
|