@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": "AAAA,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/generateTamaguiStudioConfig.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,SAASC,YAAY;AAE9B,SAASC,gBAAgBC,4BAA4B;AAErD,OAAOC,MAAMC,gBAAgB;AAE7B,SAASC,0BAA0B;AAGnC,SAASC,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,IAAMC,aAAaP,KAAKQ,QAAQC,IAAG,GAAI,UAAA,GACjCC,WAAWV,KAAKO,YAAY,qBAAA;AAMlC,SAAsBI,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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AAWpB,CAAAA,IAAKqB;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;;;AAYLvC,OAAKyB,cAAc,CAAC;AACpB,WAAWI,QAAOJ;AAChBzB,SAAKyB,YAAYI,IAAAA,IAAQ,qBAAGJ,YAAYI,IAAAA,CAAI;AAI9C,MACE7B,sBAAAA,KAAK0B,eADCc,cACNxC,oBADMwC,aAAaC,SACnBzC,oBADmByC,QAAQC,eAC3B1C,oBAD2B0C,cAAcC,cACzC3C,oBADyC2C,aAAgBC,gBAAAA,2BACzD5C,qBAAAA;IADMwC;IAAaC;IAAQC;IAAcC;;AAG3C,SAAO;IACLnB;IACAC;IACAC,eAAekB;EACjB;AACF;",
|
5
|
+
"names": ["dirname", "join", "generateThemes", "writeGeneratedThemes", "fs", "readFile", "requireTamaguiCore", "getBundledConfig", "tamaguiDir", "process", "cwd", "confFile", "generateTamaguiStudioConfig", "tamaguiOptions", "configIn", "rebuild", "config", "out", "err", "transformConfig", "platform", "ensureDir", "writeJSON", "spaces", "env", "DEBUG", "includes", "IS_TAMAGUI_DEV", "console", "warn", "generateTamaguiStudioConfigSync", "_tamaguiOptions", "ensureDirSync", "writeJSONSync", "generateTamaguiThemes", "force", "input", "output", "inPath", "outPath", "generatedOutput", "hasChanged", "themeBuilder", "resolveRelativePath", "themeBuilderJsonExists", "next", "current", "pathExists", "_state", "generated", "inputPath", "startsWith", "require", "resolve", "cloneDeepSafe", "x", "excludeKeys", "Array", "isArray", "map", "_", "Object", "fromEntries", "entries", "flatMap", "k", "v", "getVariableValue", "validStyles", "components", "nameToPaths", "tamaguiConfig", "themes", "tokens", "key", "theme", "id", "tkey", "token", "component", "nameToInfo", "compDefinition", "staticConfig", "parentStaticConfig", "rest", "fontsParsed", "getCSS", "tokensParsed", "themeConfig", "cleanedConfig"]
|
6
6
|
}
|
@@ -5,11 +5,11 @@ function generateUid(scope, name) {
|
|
5
5
|
if (!(typeof name == "string" && name !== ""))
|
6
6
|
throw "generateUid expects a valid name as its second parameter";
|
7
7
|
name = t.toIdentifier(name).replace(/^_+/, "").replace(/[0-9]+$/g, "");
|
8
|
-
|
8
|
+
var uid, i = 0;
|
9
9
|
do
|
10
10
|
i > 1 ? uid = name + i : uid = name, i++;
|
11
11
|
while (scope.hasLabel(uid) || scope.hasBinding(uid) || scope.hasGlobal(uid) || scope.hasReference(uid));
|
12
|
-
|
12
|
+
var program = scope.getProgramParent();
|
13
13
|
return program.references[uid] = !0, program.uids[uid] = !0, uid;
|
14
14
|
}
|
15
15
|
export {
|
@@ -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,YAAYA,OAAO;AASZ,SAASC,YAAYC,OAAYC,MAAY;AAClD,MAAM,OAAOD,SAAU;AACrB,UAAM;AACR,MAAI,EAAE,OAAOC,QAAS,YAAYA,SAAS;AACzC,UAAM;AAERA,SAAOH,EACJI,aAAaD,IAAAA,EACbE,QAAQ,OAAO,EAAA,EACfA,QAAQ,YAAY,EAAA;AAEvB,MAAIC,KACAC,IAAI;AACR;AACE,IAAIA,IAAI,IACND,MAAMH,OAAOI,IAEbD,MAAMH,MAERI;SAEAL,MAAMM,SAASF,GAAAA,KACfJ,MAAMO,WAAWH,GAAAA,KACjBJ,MAAMQ,UAAUJ,GAAAA,KAChBJ,MAAMS,aAAaL,GAAAA;AAGrB,MAAMM,UAAUV,MAAMW,iBAAgB;AACtCD,iBAAQE,WAAWR,GAAAA,IAAO,IAC1BM,QAAQG,KAAKT,GAAAA,IAAO,IAEbA;AACT;",
|
5
|
+
"names": ["t", "generateUid", "scope", "name", "toIdentifier", "replace", "uid", "i", "hasLabel", "hasBinding", "hasGlobal", "hasReference", "program", "getProgramParent", "references", "uids"]
|
6
6
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
function getPrefixLogs(options) {
|
2
|
-
|
2
|
+
var _options_prefixLogs;
|
3
|
+
return (_options_prefixLogs = options == null ? void 0 : options.prefixLogs) !== null && _options_prefixLogs !== void 0 ? _options_prefixLogs : " ".concat((options == null ? void 0 : options.platform) || "web", " | ");
|
3
4
|
}
|
4
5
|
export {
|
5
6
|
getPrefixLogs
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/getPrefixLogs.ts"],
|
4
|
-
"mappings": "AAEO,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/getPrefixLogs.ts"],
|
4
|
+
"mappings": "AAEO,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
|
}
|
@@ -2,9 +2,8 @@ import generate from "@babel/generator";
|
|
2
2
|
import * as t from "@babel/types";
|
3
3
|
import { accessSafe } from "./accessSafe";
|
4
4
|
function getPropValueFromAttributes(propName, attrs) {
|
5
|
-
|
6
|
-
|
7
|
-
const attr = attrs[idx];
|
5
|
+
for (var propIndex = -1, jsxAttr = null, idx = -1, len = attrs.length; ++idx < len; ) {
|
6
|
+
var attr = attrs[idx];
|
8
7
|
if (t.isJSXAttribute(attr) && attr.name && attr.name.name === propName) {
|
9
8
|
propIndex = idx, jsxAttr = attr;
|
10
9
|
break;
|
@@ -12,30 +11,28 @@ function getPropValueFromAttributes(propName, attrs) {
|
|
12
11
|
}
|
13
12
|
if (!jsxAttr || jsxAttr.value == null)
|
14
13
|
return null;
|
15
|
-
|
14
|
+
var propValue = jsxAttr.value;
|
16
15
|
if (t.isJSXExpressionContainer(propValue) && (propValue = propValue.expression), t.isJSXEmptyExpression(propValue))
|
17
16
|
return console.error("encountered JSXEmptyExpression"), null;
|
18
|
-
|
17
|
+
var applicableSpreads = attrs.filter(
|
19
18
|
// 1. idx is greater than propValue prop index
|
20
19
|
// 2. attr is a spread operator
|
21
|
-
(
|
22
|
-
if (t.isJSXSpreadAttribute(
|
23
|
-
if (t.isIdentifier(
|
24
|
-
return
|
25
|
-
if (t.isLogicalExpression(
|
20
|
+
function(attr2, idx2) {
|
21
|
+
if (t.isJSXSpreadAttribute(attr2)) {
|
22
|
+
if (t.isIdentifier(attr2.argument) || t.isMemberExpression(attr2.argument))
|
23
|
+
return idx2 > propIndex;
|
24
|
+
if (t.isLogicalExpression(attr2.argument))
|
26
25
|
return !1;
|
27
|
-
throw new Error(
|
28
|
-
`unsupported spread of type "${attr.argument.type}": ${// @ts-ignore
|
29
|
-
generate(attr).code}`
|
30
|
-
);
|
26
|
+
throw new Error('unsupported spread of type "'.concat(attr2.argument.type, '": ').concat(generate(attr2).code));
|
31
27
|
}
|
32
28
|
return !1;
|
33
29
|
}
|
34
|
-
).map((
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
30
|
+
).map(function(attr2) {
|
31
|
+
return attr2.argument;
|
32
|
+
});
|
33
|
+
return applicableSpreads.length > 0 && (propValue = applicableSpreads.reduce(function(acc, val) {
|
34
|
+
return t.logicalExpression("||", accessSafe(val, propName), acc);
|
35
|
+
}, propValue)), propValue;
|
39
36
|
}
|
40
37
|
export {
|
41
38
|
getPropValueFromAttributes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/getPropValueFromAttributes.ts"],
|
4
|
-
"mappings": "AAAA,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/getPropValueFromAttributes.ts"],
|
4
|
+
"mappings": "AAAA,OAAOA,cAAc;AACrB,YAAYC,OAAO;AAEnB,SAASC,kBAAkB;AAkBpB,SAASC,2BACdC,UACAC,OAAgD;AAIhD,WAFIC,YAAY,IACZC,UAAiC,MAC5BC,MAAM,IAAIC,MAAMJ,MAAMK,QAAQ,EAAEF,MAAMC,OAAO;AACpD,QAAME,OAAON,MAAMG,GAAAA;AACnB,QAAIP,EAAEW,eAAeD,IAAAA,KAASA,KAAKE,QAAQF,KAAKE,KAAKA,SAAST,UAAU;AACtEE,kBAAYE,KACZD,UAAUI;AACV;IACF;EACF;AAEA,MAAI,CAACJ,WAAWA,QAAQO,SAAS;AAC/B,WAAO;AAGT,MAAIC,YAMeR,QAAQO;AAO3B,MALIb,EAAEe,yBAAyBD,SAAAA,MAC7BA,YAAYA,UAAUE,aAIpBhB,EAAEiB,qBAAqBH,SAAAA;AACzBI,mBAAQC,MAAM,gCAAA,GACP;AAIT,MAAMC,oBAAoBhB,MACvBiB;;;IAGC,SAACX,OAAMH,MAAAA;AACL,UAAIP,EAAEsB,qBAAqBZ,KAAAA,GAAO;AAChC,YAAIV,EAAEuB,aAAab,MAAKc,QAAQ,KAAKxB,EAAEyB,mBAAmBf,MAAKc,QAAQ;AACrE,iBAAOjB,OAAMF;AAEf,YAAIL,EAAE0B,oBAAoBhB,MAAKc,QAAQ;AACrC,iBAAO;AAET,cAAM,IAAIG,MACP,+BAEC5B,OAF6BW,MAAKc,SAASI,MAAK,KAAA,EAGjD,OADC7B,SAASW,KAAAA,EAAamB,IAAI,CAAA;MAGhC;AACA,aAAO;IACT;EAAA,EAEDC,IAAI,SAACpB,OAAAA;WAASA,MAAKc;;AAKtB,SAAIJ,kBAAkBX,SAAS,MAC7BK,YAAYM,kBAAkBW,OAC5B,SAACC,KAAKC,KAAAA;WAAQjC,EAAEkC,kBAAkB,MAAMjC,WAAWgC,KAAK9B,QAAAA,GAAW6B,GAAAA;KACnElB,SAAAA,IAIGA;AACT;",
|
5
|
+
"names": ["generate", "t", "accessSafe", "getPropValueFromAttributes", "propName", "attrs", "propIndex", "jsxAttr", "idx", "len", "length", "attr", "isJSXAttribute", "name", "value", "propValue", "isJSXExpressionContainer", "expression", "isJSXEmptyExpression", "console", "error", "applicableSpreads", "filter", "isJSXSpreadAttribute", "isIdentifier", "argument", "isMemberExpression", "isLogicalExpression", "Error", "type", "code", "map", "reduce", "acc", "val", "logicalExpression"]
|
6
6
|
}
|
@@ -2,8 +2,7 @@ import * as t from "@babel/types";
|
|
2
2
|
function getSourceModule(itemName, itemBinding) {
|
3
3
|
if (!itemBinding.constant)
|
4
4
|
return null;
|
5
|
-
|
6
|
-
const itemNode = itemBinding.path.node;
|
5
|
+
var sourceModule, imported, local, destructured, usesImportSyntax = !1, itemNode = itemBinding.path.node;
|
7
6
|
if (
|
8
7
|
// import x from 'y';
|
9
8
|
t.isImportDefaultSpecifier(itemNode) || // import {x} from 'y';
|
@@ -11,17 +10,31 @@ function getSourceModule(itemName, itemBinding) {
|
|
11
10
|
)
|
12
11
|
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));
|
13
12
|
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) {
|
14
|
-
|
13
|
+
var firstArg = itemNode.init.arguments[0];
|
15
14
|
if (!t.isStringLiteral(firstArg))
|
16
15
|
return null;
|
17
16
|
if (sourceModule = firstArg.value, t.isIdentifier(itemNode.id))
|
18
17
|
local = itemNode.id.name, imported = itemNode.id.name, destructured = !1;
|
19
18
|
else if (t.isObjectPattern(itemNode.id)) {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
20
|
+
try {
|
21
|
+
for (var _iterator = itemNode.id.properties[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
22
|
+
var objProp = _step.value;
|
23
|
+
if (t.isObjectProperty(objProp) && t.isIdentifier(objProp.value) && objProp.value.name === itemName) {
|
24
|
+
local = objProp.value.name, imported = objProp.key.name, destructured = !0;
|
25
|
+
break;
|
26
|
+
}
|
24
27
|
}
|
28
|
+
} catch (err) {
|
29
|
+
_didIteratorError = !0, _iteratorError = err;
|
30
|
+
} finally {
|
31
|
+
try {
|
32
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
33
|
+
} finally {
|
34
|
+
if (_didIteratorError)
|
35
|
+
throw _iteratorError;
|
36
|
+
}
|
37
|
+
}
|
25
38
|
if (!local || !imported)
|
26
39
|
return console.error("could not find prop with value `%s`", itemName), null;
|
27
40
|
} 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,YAAYA,OAAO;AAUZ,SAASC,gBACdC,UACAC,aAGC;AAGD,MAAI,CAACA,YAAYC;AACf,WAAO;AAGT,MAAIC,cACAC,UACAC,OACAC,cACAC,mBAAmB,IAEjBC,WAAWP,YAAYQ,KAAKC;AAElC;;IAEEZ,EAAEa,yBAAyBH,QAAAA;IAE3BV,EAAEc,kBAAkBJ,QAAAA;;AAEpB,IAAIV,EAAEe,oBA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,CAACD,SAAS,CAACD;AACb6B,uBAAQC,MAAM,uCAAuClC,QAAAA,GAC9C;IAEX;AACEiC,qBAAQC,MAAM,yBAAyB1B,SAASmB,GAAGQ,IAAI,GAChD;EAEX;AACE,WAAO;AAGT,SAAO;IACL7B;IACAF;IACAC;IACAF;IACAI;EACF;AACF;",
|
5
|
+
"names": ["t", "getSourceModule", "itemName", "itemBinding", "constant", "sourceModule", "imported", "local", "destructured", "usesImportSyntax", "itemNode", "path", "node", "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
|
}
|