@tamagui/static 1.99.0 → 1.100.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/checkDeps.native.js +53 -58
- package/dist/cjs/checkDeps.native.js.map +1 -1
- package/dist/cjs/extractor/bundle.native.js +65 -79
- package/dist/cjs/extractor/bundle.native.js.map +1 -1
- package/dist/cjs/extractor/bundleConfig.js +2 -4
- package/dist/cjs/extractor/bundleConfig.js.map +1 -1
- package/dist/cjs/extractor/bundleConfig.native.js +67 -83
- package/dist/cjs/extractor/bundleConfig.native.js.map +1 -1
- package/dist/cjs/extractor/createExtractor.js +8 -16
- package/dist/cjs/extractor/createExtractor.js.map +1 -1
- package/dist/cjs/extractor/createExtractor.native.js +70 -92
- package/dist/cjs/extractor/createExtractor.native.js.map +1 -1
- package/dist/cjs/extractor/extractHelpers.js +4 -8
- package/dist/cjs/extractor/extractHelpers.js.map +1 -1
- package/dist/cjs/extractor/extractHelpers.native.js +11 -22
- package/dist/cjs/extractor/extractHelpers.native.js.map +1 -1
- package/dist/cjs/extractor/extractMediaStyle.js +3 -6
- package/dist/cjs/extractor/extractMediaStyle.js.map +1 -1
- package/dist/cjs/extractor/extractMediaStyle.native.js +10 -20
- package/dist/cjs/extractor/extractMediaStyle.native.js.map +1 -1
- package/dist/cjs/extractor/extractToClassNames.js +5 -7
- package/dist/cjs/extractor/extractToClassNames.js.map +1 -1
- package/dist/cjs/extractor/extractToClassNames.native.js +66 -79
- package/dist/cjs/extractor/extractToClassNames.native.js.map +1 -1
- package/dist/cjs/extractor/generateTamaguiStudioConfig.js +3 -6
- package/dist/cjs/extractor/generateTamaguiStudioConfig.js.map +1 -1
- package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js +63 -78
- package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js.map +1 -1
- package/dist/cjs/extractor/generatedUid.native.js +2 -4
- package/dist/cjs/extractor/generatedUid.native.js.map +1 -1
- package/dist/cjs/extractor/getStaticBindingsForScope.js +4 -8
- package/dist/cjs/extractor/getStaticBindingsForScope.js.map +1 -1
- package/dist/cjs/extractor/getStaticBindingsForScope.native.js +82 -94
- package/dist/cjs/extractor/getStaticBindingsForScope.native.js.map +1 -1
- package/dist/cjs/extractor/hoistClassNames.js +1 -2
- package/dist/cjs/extractor/hoistClassNames.js.map +1 -1
- package/dist/cjs/extractor/hoistClassNames.native.js +1 -2
- package/dist/cjs/extractor/hoistClassNames.native.js.map +1 -1
- package/dist/cjs/extractor/literalToAst.native.js +6 -12
- package/dist/cjs/extractor/literalToAst.native.js.map +1 -1
- package/dist/cjs/extractor/loadTamagui.native.js +75 -92
- package/dist/cjs/extractor/loadTamagui.native.js.map +1 -1
- package/dist/cjs/extractor/normalizeTernaries.native.js +2 -4
- package/dist/cjs/extractor/normalizeTernaries.native.js.map +1 -1
- package/dist/cjs/extractor/removeUnusedHooks.js +2 -4
- package/dist/cjs/extractor/removeUnusedHooks.js.map +1 -1
- package/dist/cjs/extractor/removeUnusedHooks.native.js +4 -8
- package/dist/cjs/extractor/removeUnusedHooks.native.js.map +1 -1
- package/dist/cjs/extractor/watchTamaguiConfig.native.js +57 -63
- package/dist/cjs/extractor/watchTamaguiConfig.native.js.map +1 -1
- package/dist/cjs/server.native.js +53 -58
- package/dist/cjs/server.native.js.map +1 -1
- package/dist/esm/checkDeps.native.js +53 -58
- package/dist/esm/checkDeps.native.js.map +1 -1
- package/dist/esm/extractor/bundle.native.js +65 -79
- package/dist/esm/extractor/bundle.native.js.map +1 -1
- package/dist/esm/extractor/bundleConfig.js +2 -4
- package/dist/esm/extractor/bundleConfig.js.map +1 -1
- package/dist/esm/extractor/bundleConfig.native.js +67 -83
- package/dist/esm/extractor/bundleConfig.native.js.map +1 -1
- package/dist/esm/extractor/createExtractor.js +8 -16
- package/dist/esm/extractor/createExtractor.js.map +1 -1
- package/dist/esm/extractor/createExtractor.native.js +70 -92
- package/dist/esm/extractor/createExtractor.native.js.map +1 -1
- package/dist/esm/extractor/extractHelpers.js +4 -8
- package/dist/esm/extractor/extractHelpers.js.map +1 -1
- package/dist/esm/extractor/extractHelpers.native.js +11 -22
- package/dist/esm/extractor/extractHelpers.native.js.map +1 -1
- package/dist/esm/extractor/extractMediaStyle.js +3 -6
- package/dist/esm/extractor/extractMediaStyle.js.map +1 -1
- package/dist/esm/extractor/extractMediaStyle.native.js +10 -20
- package/dist/esm/extractor/extractMediaStyle.native.js.map +1 -1
- package/dist/esm/extractor/extractToClassNames.js +5 -7
- package/dist/esm/extractor/extractToClassNames.js.map +1 -1
- package/dist/esm/extractor/extractToClassNames.native.js +66 -79
- package/dist/esm/extractor/extractToClassNames.native.js.map +1 -1
- package/dist/esm/extractor/generateTamaguiStudioConfig.js +3 -6
- package/dist/esm/extractor/generateTamaguiStudioConfig.js.map +1 -1
- package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +63 -78
- package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +1 -1
- package/dist/esm/extractor/generatedUid.native.js +2 -4
- package/dist/esm/extractor/generatedUid.native.js.map +1 -1
- package/dist/esm/extractor/getStaticBindingsForScope.js +4 -8
- package/dist/esm/extractor/getStaticBindingsForScope.js.map +1 -1
- package/dist/esm/extractor/getStaticBindingsForScope.native.js +82 -94
- package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +1 -1
- package/dist/esm/extractor/hoistClassNames.js +1 -2
- package/dist/esm/extractor/hoistClassNames.js.map +1 -1
- package/dist/esm/extractor/hoistClassNames.native.js +1 -2
- package/dist/esm/extractor/hoistClassNames.native.js.map +1 -1
- package/dist/esm/extractor/literalToAst.native.js +6 -12
- package/dist/esm/extractor/literalToAst.native.js.map +1 -1
- package/dist/esm/extractor/loadTamagui.native.js +75 -92
- package/dist/esm/extractor/loadTamagui.native.js.map +1 -1
- package/dist/esm/extractor/normalizeTernaries.native.js +2 -4
- package/dist/esm/extractor/normalizeTernaries.native.js.map +1 -1
- package/dist/esm/extractor/removeUnusedHooks.js +2 -4
- package/dist/esm/extractor/removeUnusedHooks.js.map +1 -1
- package/dist/esm/extractor/removeUnusedHooks.native.js +4 -8
- package/dist/esm/extractor/removeUnusedHooks.native.js.map +1 -1
- package/dist/esm/extractor/watchTamaguiConfig.native.js +57 -63
- package/dist/esm/extractor/watchTamaguiConfig.native.js.map +1 -1
- package/dist/esm/server.native.js +53 -58
- package/dist/esm/server.native.js.map +1 -1
- package/package.json +16 -15
@@ -60,8 +60,7 @@ function _ts_generator(thisArg, body) {
|
|
60
60
|
var f, y, t2, g, _ = {
|
61
61
|
label: 0,
|
62
62
|
sent: function() {
|
63
|
-
if (t2[0] & 1)
|
64
|
-
throw t2[1];
|
63
|
+
if (t2[0] & 1) throw t2[1];
|
65
64
|
return t2[1];
|
66
65
|
},
|
67
66
|
trys: [],
|
@@ -83,64 +82,60 @@ function _ts_generator(thisArg, body) {
|
|
83
82
|
};
|
84
83
|
}
|
85
84
|
function step(op) {
|
86
|
-
if (f)
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
default:
|
114
|
-
if (t2 = _.trys, !(t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
115
|
-
_ = 0;
|
116
|
-
continue;
|
117
|
-
}
|
118
|
-
if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
|
119
|
-
_.label = op[1];
|
120
|
-
break;
|
121
|
-
}
|
122
|
-
if (op[0] === 6 && _.label < t2[1]) {
|
123
|
-
_.label = t2[1], t2 = op;
|
124
|
-
break;
|
125
|
-
}
|
126
|
-
if (t2 && _.label < t2[2]) {
|
127
|
-
_.label = t2[2], _.ops.push(op);
|
128
|
-
break;
|
129
|
-
}
|
130
|
-
t2[2] && _.ops.pop(), _.trys.pop();
|
85
|
+
if (f) throw new TypeError("Generator is already executing.");
|
86
|
+
for (; _; ) try {
|
87
|
+
if (f = 1, y && (t2 = op[0] & 2 ? y.return : op[0] ? y.throw || ((t2 = y.return) && t2.call(y), 0) : y.next) && !(t2 = t2.call(y, op[1])).done) return t2;
|
88
|
+
switch (y = 0, t2 && (op = [
|
89
|
+
op[0] & 2,
|
90
|
+
t2.value
|
91
|
+
]), op[0]) {
|
92
|
+
case 0:
|
93
|
+
case 1:
|
94
|
+
t2 = op;
|
95
|
+
break;
|
96
|
+
case 4:
|
97
|
+
return _.label++, {
|
98
|
+
value: op[1],
|
99
|
+
done: !1
|
100
|
+
};
|
101
|
+
case 5:
|
102
|
+
_.label++, y = op[1], op = [
|
103
|
+
0
|
104
|
+
];
|
105
|
+
continue;
|
106
|
+
case 7:
|
107
|
+
op = _.ops.pop(), _.trys.pop();
|
108
|
+
continue;
|
109
|
+
default:
|
110
|
+
if (t2 = _.trys, !(t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
111
|
+
_ = 0;
|
131
112
|
continue;
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
113
|
+
}
|
114
|
+
if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
|
115
|
+
_.label = op[1];
|
116
|
+
break;
|
117
|
+
}
|
118
|
+
if (op[0] === 6 && _.label < t2[1]) {
|
119
|
+
_.label = t2[1], t2 = op;
|
120
|
+
break;
|
121
|
+
}
|
122
|
+
if (t2 && _.label < t2[2]) {
|
123
|
+
_.label = t2[2], _.ops.push(op);
|
124
|
+
break;
|
125
|
+
}
|
126
|
+
t2[2] && _.ops.pop(), _.trys.pop();
|
127
|
+
continue;
|
141
128
|
}
|
142
|
-
|
143
|
-
|
129
|
+
op = body.call(thisArg, _);
|
130
|
+
} catch (e) {
|
131
|
+
op = [
|
132
|
+
6,
|
133
|
+
e
|
134
|
+
], y = 0;
|
135
|
+
} finally {
|
136
|
+
f = t2 = 0;
|
137
|
+
}
|
138
|
+
if (op[0] & 5) throw op[1];
|
144
139
|
return {
|
145
140
|
value: op[0] ? op[1] : void 0,
|
146
141
|
done: !0
|
@@ -149,17 +144,15 @@ function _ts_generator(thisArg, body) {
|
|
149
144
|
}
|
150
145
|
function _ts_values(o) {
|
151
146
|
var s = typeof Symbol == "function" && Symbol.iterator, m = s && o[s], i = 0;
|
152
|
-
if (m)
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
}
|
162
|
-
};
|
147
|
+
if (m) return m.call(o);
|
148
|
+
if (o && typeof o.length == "number") return {
|
149
|
+
next: function() {
|
150
|
+
return o && i >= o.length && (o = void 0), {
|
151
|
+
value: o && o[i++],
|
152
|
+
done: !o
|
153
|
+
};
|
154
|
+
}
|
155
|
+
};
|
163
156
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
164
157
|
}
|
165
158
|
var isLocalImport = function(path) {
|
@@ -267,16 +260,14 @@ function _getStaticBindingsForScope() {
|
|
267
260
|
return _ts_generator(this, function(_state2) {
|
268
261
|
switch (_state2.label) {
|
269
262
|
case 0:
|
270
|
-
if (node = _step.value, !t.isImportDeclaration(node))
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
"continue"
|
279
|
-
];
|
263
|
+
if (node = _step.value, !t.isImportDeclaration(node)) return [
|
264
|
+
3,
|
265
|
+
4
|
266
|
+
];
|
267
|
+
if (importPath = node.source.value, !node.specifiers.length) return [
|
268
|
+
2,
|
269
|
+
"continue"
|
270
|
+
];
|
280
271
|
if (!isLocalImport(importPath))
|
281
272
|
return [
|
282
273
|
2,
|
@@ -284,11 +275,10 @@ function _getStaticBindingsForScope() {
|
|
284
275
|
];
|
285
276
|
if (moduleName = resolveImportPath(sourcePath, importPath), isOnWhitelist = whitelist.some(function(test) {
|
286
277
|
return moduleName.endsWith(test);
|
287
|
-
}), !isOnWhitelist)
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
];
|
278
|
+
}), !isOnWhitelist) return [
|
279
|
+
2,
|
280
|
+
"continue"
|
281
|
+
];
|
292
282
|
_state2.label = 1;
|
293
283
|
case 1:
|
294
284
|
return _state2.trys.push([
|
@@ -301,11 +291,10 @@ function _getStaticBindingsForScope() {
|
|
301
291
|
importModule(moduleName)
|
302
292
|
];
|
303
293
|
case 2:
|
304
|
-
if (src = _state2.sent(), !src)
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
];
|
294
|
+
if (src = _state2.sent(), !src) return [
|
295
|
+
2,
|
296
|
+
"continue"
|
297
|
+
];
|
309
298
|
_iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
310
299
|
try {
|
311
300
|
for (_iterator2 = node.specifiers[Symbol.iterator](); !(_iteratorNormalCompletion2 = (_step1 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0)
|
@@ -375,11 +364,10 @@ function _getStaticBindingsForScope() {
|
|
375
364
|
if (!bindingCache)
|
376
365
|
throw new Error("BindingCache is a required param");
|
377
366
|
for (var k2 in bindings)
|
378
|
-
if (_ret = _loop(k2), _type_of(_ret) === "object")
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
];
|
367
|
+
if (_ret = _loop(k2), _type_of(_ret) === "object") return [
|
368
|
+
2,
|
369
|
+
_ret.v
|
370
|
+
];
|
383
371
|
return [
|
384
372
|
2,
|
385
373
|
ret
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/getStaticBindingsForScope.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gCAAqB,+BACrB,mBAAgD,sB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6BAAA;AAAMI,kCAAN,OAAA,OACC7B,EAAEqC,kBAAkBR,SAAAA,KAAc7B,EAAEO,aAAasB,UAAU/B,QAAQ,KACjE,OAAOJ,IAAImC,UAAU/B,SAASW,IAAI,IAAM,QACpCtC,MAAMuB,IAAImC,UAAUS,MAAM7B,IAAI,GACpC1B,IAAI8C,UAAUS,MAAM7B,IAAI,IAAItC;;AAJ7B,oBAAAuD,qBAAA,IAAAC,kBAAAG;;;uBAAAL,8BAAAG,WAAA,UAAA,QAAAA,WAAA,OAAA;;0BAAAF;8BAAAC;;;;;;;;AAQEG,gCAAAA,QAAAA,KAAAA,GACHjD,mBACFc,QAAQ4C,KACL,uDAAiE,OAAXlD,YAAW,2BAAA,CAAA,IAE3DlC,wBAAAA,QAAQqF,IAAIC,WAAK,QAAjBtF,uBAAAA,WAAAA,mBAAmBzB,WAAW,SAAA,KACvCiE,QAAQC,KAAM,+BAA8BkC,KAAIY,SAASZ,KAAIa,KAAK;;;;;;;;;;UAI1E,GA/BK,YAAc3D,QAAQ4D,KAAI,OAAA,QAAA,EAAA;;kBAA1B,6BAAA,QAAA,UAAA,KAAA,GAAA,QAAA;;;;;;;;;;AAAA,6CAAA;;;;;;;;;;sCAAA,oBAAA,IAAA,iBAAA;;;;;;aAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;gBAAA;oBAAA;;;;;;AAiCL,cAAI,CAAChE;AACH,kBAAM,IAAIZ,MAAM,kCAAA;AAGlB,mBAAWiB,MAAKH;;;;;AAmFhB,iBAAA;;YAAOC;;;;EACT,CAAA,GA5IsBN,2BAAAA,MAAAA,MAAAA,SAAAA;;",
|
5
5
|
"names": ["isLocalImport", "path", "startsWith", "resolveImportPath", "sourcePath", "sourceDir", "dirname", "extname", "resolve", "cache", "Map", "pending", "loadCmd", "join", "__dirname", "exited", "child", "forkChild", "fork", "execArgv", "detached", "stdio", "cleanupBeforeExit", "removeAllListeners", "unref", "disconnect", "kill", "process", "once", "importModule", "has", "get", "promise", "Promise", "res", "rej", "size", "clear", "listener", "msg", "Error", "slice", "removeListener", "val", "JSON", "parse", "set", "send", "replace", "getStaticBindingsForScope", "scope", "whitelist", "bindingCache", "shouldPrintDebug", "bindings", "ret", "program", "k", "binding", "sourceModule", "getSourceModule", "moduleName", "isOnWhitelist", "some", "test", "endsWith", "src", "console", "info", "destructured", "imported", "parent", "t", "isVariableDeclaration", "kind", "dec", "declarations", "find", "d", "isIdentifier", "id", "name", "init", "start", "end", "error", "cacheKey", "Object", "hasOwnProperty", "call", "evaluateAstNode", "undefined", "getAllBindings", "getProgramParent", "block", "node", "importPath", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "specifier", "err", "isImportDeclaration", "source", "value", "specifiers", "length", "_state", "isImportSpecifier", "local", "warn", "env", "DEBUG", "message", "stack", "body"]
|
6
6
|
}
|
@@ -49,8 +49,7 @@ function hoistClassNames(path, existing, expr) {
|
|
49
49
|
return expr;
|
50
50
|
function replaceStringWithVariable(str) {
|
51
51
|
const uid = path.scope.generateUidIdentifier("cn"), parent = path.findParent((path2) => path2.isProgram());
|
52
|
-
if (!parent)
|
53
|
-
throw new Error("no program?");
|
52
|
+
if (!parent) throw new Error("no program?");
|
54
53
|
const variable = t.variableDeclaration("const", [
|
55
54
|
// adding a space for extra safety
|
56
55
|
t.variableDeclarator(uid, t.stringLiteral(` ${str.value}`))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/hoistClassNames.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,QAAmB;AAEZ,SAAS,gBACd,MACA,UACA,MACA;AACA,QAAM,QAAQ,gBAAgB,KAAK,MAAM,MAAM,QAAQ;AACvD,MAAI,EAAE,gBAAgB,IAAI,GAAG;AAC3B,QAAI,KAAK,MAAM,KAAK,MAAM;AACxB,aAAO;AAET,QAAI,SAAS,KAAK,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kB,KAAK,UAAU,MAAM,KAAK,IAAI,GAAG,MAAM,KAAK,KAAK,CAAC;AAE/E,MAAI,EAAE,wBAAwB,IAAI;AAChC,WAAO,EAAE;AAAA,MACP,KAAK;AAAA,MACL,MAAM,KAAK,UAAU;AAAA,MACrB,MAAM,KAAK,SAAS;AAAA,IACtB;AAEF,SAAO;AAEP,WAAS,0BAA0B,KAAoC;AAErE,UAAM,MAAM,KAAK,MAAM,sBAAsB,IAAI,GAC3C,SAAS,KAAK,WAAW,CAACA,UAASA,MAAK,UAAU,CAAC;AACzD,QAAI,CAAC,OAAQ,OAAM,IAAI,MAAM,aAAa;AAC1C,UAAM,WAAW,EAAE,oBAAoB,SAAS;AAAA;AAAA,MAE9C,EAAE,mBAAmB,KAAK,EAAE,cAAc,IAAI,IAAI,KAAK,EAAE,CAAC;AAAA,IAC5D,CAAC;AAED,kBAAO,iBAAiB,QAAQ,QAAQ,GACjC;AAAA,EACT;AACF;",
|
5
5
|
"names": ["path"]
|
6
6
|
}
|
@@ -48,8 +48,7 @@ function hoistClassNames(path, existing, expr) {
|
|
48
48
|
var uid = path.scope.generateUidIdentifier("cn"), parent = path.findParent(function(path2) {
|
49
49
|
return path2.isProgram();
|
50
50
|
});
|
51
|
-
if (!parent)
|
52
|
-
throw new Error("no program?");
|
51
|
+
if (!parent) throw new Error("no program?");
|
53
52
|
var variable = t.variableDeclaration("const", [
|
54
53
|
// adding a space for extra safety
|
55
54
|
t.variableDeclarator(uid, t.stringLiteral(" ".concat(str.value)))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/hoistClassNames.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AACA;;;;;QAAmB;AAEZ,SAASA,gBACdC,MACAC,UACAC,MAAkB;AAElB,MAAMC,QAAQJ,gBAAgBK,KAAK,MAAMJ,MAAMC,QAAAA;AAC/C,MA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BA;EACT;AACA,MAAIJ,EAAEM,mBAAmBT,IAAAA;AACvB,WAAOG,EAAEO,iBAAiBV,KAAKW,UAAUV,MAAMD,KAAKY,IAAI,GAAGX,MAAMD,KAAKa,KAAK,CAAA;AAE7E,MAAIV,EAAEW,oBAAoBd,IAAAA;AACxB,WAAOG,EAAEY,kBAAkBf,KAAKW,UAAUV,MAAMD,KAAKY,IAAI,GAAGX,MAAMD,KAAKa,KAAK,CAAA;AAE9E,MAAIV,EAAEa,wBAAwBhB,IAAAA;AAC5B,WAAOG,EAAEc,sBACPjB,KAAKkB,MACLjB,MAAMD,KAAKmB,UAAU,GACrBlB,MAAMD,KAAKoB,SAAS,CAAA;AAGxB,SAAOpB;AAEP,WAASQ,0BAA0Ba,KAAoB;AAErD,QAAMC,MAAMxB,KAAKyB,MAAMC,sBAAsB,IAAA,GACvCC,SAAS3B,KAAK4B,WAAW,SAAC5B,OAAAA;aAASA,MAAK6B,UAAS;;AACvD,QAAI,CAACF,OAAQ,OAAM,IAAIG,MAAO,aAAA;AAC9B,QAAMC,WAAW1B,EAAE2B,oBAAoB,SAAS;;MAE9C3B,EAAE4B,mBAAmBT,KAAKnB,EAAE6B,cAAe,IAAa,OAAVX,IAAIhB,KAAK,CAAA,CAAA;KACxD;AAEDoB,kBAAOQ,iBAAiB,QAAQJ,QAAAA,GACzBP;EACT;AACF;",
|
5
5
|
"names": ["hoistClassNames", "path", "existing", "expr", "hoist", "bind", "t", "isStringLiteral", "value", "trim", "identifier", "replaceStringWithVariable", "isBinaryExpression", "binaryExpression", "operator", "left", "right", "isLogicalExpression", "logicalExpression", "isConditionalExpression", "conditionalExpression", "test", "consequent", "alternate", "str", "uid", "scope", "generateUidIdentifier", "parent", "findParent", "isProgram", "Error", "variable", "variableDeclaration", "variableDeclarator", "stringLiteral", "unshiftContainer"]
|
6
6
|
}
|
@@ -30,13 +30,11 @@ module.exports = __toCommonJS(literalToAst_exports);
|
|
30
30
|
var t = __toESM(require("@babel/types"));
|
31
31
|
function _array_like_to_array(arr, len) {
|
32
32
|
(len == null || len > arr.length) && (len = arr.length);
|
33
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
34
|
-
arr2[i] = arr[i];
|
33
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
35
34
|
return arr2;
|
36
35
|
}
|
37
36
|
function _array_without_holes(arr) {
|
38
|
-
if (Array.isArray(arr))
|
39
|
-
return _array_like_to_array(arr);
|
37
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
40
38
|
}
|
41
39
|
function _define_property(obj, key, value) {
|
42
40
|
return key in obj ? Object.defineProperty(obj, key, {
|
@@ -47,8 +45,7 @@ function _define_property(obj, key, value) {
|
|
47
45
|
}) : obj[key] = value, obj;
|
48
46
|
}
|
49
47
|
function _iterable_to_array(iter) {
|
50
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
51
|
-
return Array.from(iter);
|
48
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
52
49
|
}
|
53
50
|
function _non_iterable_spread() {
|
54
51
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
@@ -88,13 +85,10 @@ function _type_of(obj) {
|
|
88
85
|
}
|
89
86
|
function _unsupported_iterable_to_array(o, minLen) {
|
90
87
|
if (o) {
|
91
|
-
if (typeof o == "string")
|
92
|
-
return _array_like_to_array(o, minLen);
|
88
|
+
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
93
89
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
94
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
95
|
-
|
96
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
97
|
-
return _array_like_to_array(o, minLen);
|
90
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
91
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
98
92
|
}
|
99
93
|
}
|
100
94
|
function literalToAst(literal) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/literalToAst.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,QAAmB
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,QAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,SAASA,aAAaC,SAAY;AACvC,MAAIA,YAAY;AACd,WAAOC,EAAEC,YAAW;AAEtB,UAAQ,OAAOF,UAAAA,MAAAA,cAAP,SAAOA,OAAAA,GAAAA;IACb,KAAK;AACH,YAAM,IAAIG,MAAM,aAAA;IAClB,KAAK;AACH,aAAOF,EAAEG,eAAeJ,OAAAA;IAC1B,KAAK;AACH,aAAOC,EAAEI,cAAcL,OAAAA;IACzB,KAAK;AACH,aAAOC,EAAEK,eAAeN,OAAAA;IAC1B,KAAK;AACH,aAAOC,EAAEM,gBAAgB,QAAQN,EAAEG,eAAe,CAAA,GAAI,EAAA;IACxD;AACE,aAAII,MAAMC,QAAQT,OAAAA,IACTC,EAAES,gBAAgBV,QAAQW,IAAIZ,YAAAA,CAAAA,IAEhCE,EAAEW,iBACPC,OAAOC,KAAKd,OAAAA,EACTe,OAAO,SAACC,GAAAA;AACP,eAAO,OAAOhB,QAAQgB,CAAAA,IAAO;MAC/B,CAAA,EACCL,IAAI,SAACK,GAAAA;AACJ,eAAOf,EAAEgB,eAAehB,EAAEI,cAAcW,CAAAA,GAAIjB,aAAaC,QAAQgB,CAAAA,CAAE,CAAA;MACrE,CAAA,CAAA;EAER;AACF;AAEA,IAAME,cAAc;EAAC;EAAkB;EAAiB;;AAEjD,SAASC,aAAaC,MAAS;AACpC,MAAKA,MAGL;QAAIF,YAAYG,SAASD,KAAKE,IAAI;AAChC,aAAOF,KAAKG;AAEd,QAAIH,OAAKI,SAAS,eAAe,CAACJ,KAAKG,QAGvC;UAAItB,EAAEwB,cAAcL,IAAAA;AAClB,eAAO;AAET,UAAInB,EAAEyB,mBAAmBN,IAAAA;AACvB,eAAOO,aAAaP,KAAKQ,UAAU;AAErC,UAAI3B,EAAE4B,kBAAkBT,IAAAA;AACtB,eAAOA,KAAKU,SAASC;;UAEnB,SAACC,KAAKC,SAAAA;mBACJ,qBAAGD,GAAAA,EAAAA,OACH,sBAAIC,WAAAA,OAAAA,SAAAA,QAASX,UAAS,kBAClBH,aAAac,QAAQC,QAAQ,IAC7B;cAACf,aAAac,OAAAA;aAAS,CAAA;;UAE7B,CAAA;QAAE;;;AAGR;AAEA,SAASN,aAAaQ,OAAK;AACzB,SAAOA,MAAMJ,OAAO,SAACC,KAAKI,MAAAA;AACxB,QAAIA,KAAKd,SAAS;AAChB,aAAO,eAAA,CAAA,GACFU,KACAb,aAAaiB,KAAKF,QAAQ,CAAA;AAGjC,QAAIE,KAAKd,SAAS,gBAAgB;AAChC,UAAMe,MAAMlB,aAAaiB,KAAKb,KAAK;AACnC,UAAIc,QAAQC;AACV,eAAO,qBAAA,eAAA,CAAA,GACFN,GAAAA,GACH,iBAAA,CAAA,GAACI,KAAKG,IAAIf,MAAOa,GAAAA,CAAAA;IAGvB;AACA,WAAOL;EACT,GAAG,CAAC,CAAA;AACN;",
|
5
5
|
"names": ["literalToAst", "literal", "t", "nullLiteral", "Error", "numericLiteral", "stringLiteral", "booleanLiteral", "unaryExpression", "Array", "isArray", "arrayExpression", "map", "objectExpression", "Object", "keys", "filter", "k", "objectProperty", "easyPeasies", "astToLiteral", "node", "includes", "type", "value", "name", "isNullLiteral", "isObjectExpression", "computeProps", "properties", "isArrayExpression", "elements", "reduce", "acc", "element", "argument", "props", "prop", "val", "undefined", "key"]
|
6
6
|
}
|
@@ -35,13 +35,11 @@ module.exports = __toCommonJS(loadTamagui_exports);
|
|
35
35
|
var import_node_fs = require("node:fs"), import_node_path = require("node:path"), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), fsExtra = __toESM(require("fs-extra")), import_promises = require("node:fs/promises"), import_constants = require("../constants"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore"), import_minifyCSS = require("../minifyCSS"), import_registerRequire = require("../registerRequire"), import_bundleConfig = require("./bundleConfig"), import_generateTamaguiStudioConfig = require("./generateTamaguiStudioConfig"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig");
|
36
36
|
function _array_like_to_array(arr, len) {
|
37
37
|
(len == null || len > arr.length) && (len = arr.length);
|
38
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
39
|
-
arr2[i] = arr[i];
|
38
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
40
39
|
return arr2;
|
41
40
|
}
|
42
41
|
function _array_without_holes(arr) {
|
43
|
-
if (Array.isArray(arr))
|
44
|
-
return _array_like_to_array(arr);
|
42
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
45
43
|
}
|
46
44
|
function asyncGeneratorStep(gen, resolve2, reject, _next, _throw, key, arg) {
|
47
45
|
try {
|
@@ -79,8 +77,7 @@ function _instanceof(left, right) {
|
|
79
77
|
return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
|
80
78
|
}
|
81
79
|
function _iterable_to_array(iter) {
|
82
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
83
|
-
return Array.from(iter);
|
80
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
84
81
|
}
|
85
82
|
function _non_iterable_spread() {
|
86
83
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
@@ -112,8 +109,7 @@ function _object_spread_props(target, source) {
|
|
112
109
|
}), target;
|
113
110
|
}
|
114
111
|
function _object_without_properties(source, excluded) {
|
115
|
-
if (source == null)
|
116
|
-
return {};
|
112
|
+
if (source == null) return {};
|
117
113
|
var target = _object_without_properties_loose(source, excluded), key, i;
|
118
114
|
if (Object.getOwnPropertySymbols) {
|
119
115
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
@@ -123,8 +119,7 @@ function _object_without_properties(source, excluded) {
|
|
123
119
|
return target;
|
124
120
|
}
|
125
121
|
function _object_without_properties_loose(source, excluded) {
|
126
|
-
if (source == null)
|
127
|
-
return {};
|
122
|
+
if (source == null) return {};
|
128
123
|
var target = {}, sourceKeys = Object.keys(source), key, i;
|
129
124
|
for (i = 0; i < sourceKeys.length; i++)
|
130
125
|
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
@@ -135,21 +130,17 @@ function _to_consumable_array(arr) {
|
|
135
130
|
}
|
136
131
|
function _unsupported_iterable_to_array(o, minLen) {
|
137
132
|
if (o) {
|
138
|
-
if (typeof o == "string")
|
139
|
-
return _array_like_to_array(o, minLen);
|
133
|
+
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
140
134
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
141
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
142
|
-
|
143
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
144
|
-
return _array_like_to_array(o, minLen);
|
135
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
136
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
145
137
|
}
|
146
138
|
}
|
147
139
|
function _ts_generator(thisArg, body) {
|
148
140
|
var f, y, t, g, _ = {
|
149
141
|
label: 0,
|
150
142
|
sent: function() {
|
151
|
-
if (t[0] & 1)
|
152
|
-
throw t[1];
|
143
|
+
if (t[0] & 1) throw t[1];
|
153
144
|
return t[1];
|
154
145
|
},
|
155
146
|
trys: [],
|
@@ -171,64 +162,60 @@ function _ts_generator(thisArg, body) {
|
|
171
162
|
};
|
172
163
|
}
|
173
164
|
function step(op) {
|
174
|
-
if (f)
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
default:
|
202
|
-
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
203
|
-
_ = 0;
|
204
|
-
continue;
|
205
|
-
}
|
206
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
207
|
-
_.label = op[1];
|
208
|
-
break;
|
209
|
-
}
|
210
|
-
if (op[0] === 6 && _.label < t[1]) {
|
211
|
-
_.label = t[1], t = op;
|
212
|
-
break;
|
213
|
-
}
|
214
|
-
if (t && _.label < t[2]) {
|
215
|
-
_.label = t[2], _.ops.push(op);
|
216
|
-
break;
|
217
|
-
}
|
218
|
-
t[2] && _.ops.pop(), _.trys.pop();
|
165
|
+
if (f) throw new TypeError("Generator is already executing.");
|
166
|
+
for (; _; ) try {
|
167
|
+
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
168
|
+
switch (y = 0, t && (op = [
|
169
|
+
op[0] & 2,
|
170
|
+
t.value
|
171
|
+
]), op[0]) {
|
172
|
+
case 0:
|
173
|
+
case 1:
|
174
|
+
t = op;
|
175
|
+
break;
|
176
|
+
case 4:
|
177
|
+
return _.label++, {
|
178
|
+
value: op[1],
|
179
|
+
done: !1
|
180
|
+
};
|
181
|
+
case 5:
|
182
|
+
_.label++, y = op[1], op = [
|
183
|
+
0
|
184
|
+
];
|
185
|
+
continue;
|
186
|
+
case 7:
|
187
|
+
op = _.ops.pop(), _.trys.pop();
|
188
|
+
continue;
|
189
|
+
default:
|
190
|
+
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
191
|
+
_ = 0;
|
219
192
|
continue;
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
193
|
+
}
|
194
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
195
|
+
_.label = op[1];
|
196
|
+
break;
|
197
|
+
}
|
198
|
+
if (op[0] === 6 && _.label < t[1]) {
|
199
|
+
_.label = t[1], t = op;
|
200
|
+
break;
|
201
|
+
}
|
202
|
+
if (t && _.label < t[2]) {
|
203
|
+
_.label = t[2], _.ops.push(op);
|
204
|
+
break;
|
205
|
+
}
|
206
|
+
t[2] && _.ops.pop(), _.trys.pop();
|
207
|
+
continue;
|
229
208
|
}
|
230
|
-
|
231
|
-
|
209
|
+
op = body.call(thisArg, _);
|
210
|
+
} catch (e) {
|
211
|
+
op = [
|
212
|
+
6,
|
213
|
+
e
|
214
|
+
], y = 0;
|
215
|
+
} finally {
|
216
|
+
f = t = 0;
|
217
|
+
}
|
218
|
+
if (op[0] & 5) throw op[1];
|
232
219
|
return {
|
233
220
|
value: op[0] ? op[1] : void 0,
|
234
221
|
done: !0
|
@@ -273,16 +260,14 @@ function _loadTamagui() {
|
|
273
260
|
bundleInfo
|
274
261
|
];
|
275
262
|
if (!// this depends on the config so run it after
|
276
|
-
bundleInfo)
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
10
|
285
|
-
];
|
263
|
+
bundleInfo) return [
|
264
|
+
3,
|
265
|
+
10
|
266
|
+
];
|
267
|
+
if (createTamagui = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform || "web").createTamagui, config = createTamagui(bundleInfo.tamaguiConfig), outputCSS = props.outputCSS, !(outputCSS && props.platform === "web")) return [
|
268
|
+
3,
|
269
|
+
10
|
270
|
+
];
|
286
271
|
flush = function() {
|
287
272
|
var _ref = _async_to_generator(function() {
|
288
273
|
return _ts_generator(this, function(_state2) {
|
@@ -369,14 +354,12 @@ var waiting = !1, hasLoggedOnce = !1, generateThemesAndLog = function() {
|
|
369
354
|
return _ts_generator(this, function(_state) {
|
370
355
|
switch (_state.label) {
|
371
356
|
case 0:
|
372
|
-
if (force = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : !1, waiting)
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
2
|
379
|
-
];
|
357
|
+
if (force = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : !1, waiting) return [
|
358
|
+
2
|
359
|
+
];
|
360
|
+
if (!options.themeBuilder) return [
|
361
|
+
2
|
362
|
+
];
|
380
363
|
_state.label = 1;
|
381
364
|
case 1:
|
382
365
|
return _state.trys.push([
|