@tamagui/static 1.135.3 → 1.135.4-1761748186554

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.
Files changed (181) hide show
  1. package/dist/check-dep-versions.mjs +268 -0
  2. package/dist/check-dep-versions.mjs.map +1 -0
  3. package/dist/checkDeps.mjs +33 -0
  4. package/dist/checkDeps.mjs.map +1 -0
  5. package/dist/constants.mjs +50 -0
  6. package/dist/constants.mjs.map +1 -0
  7. package/dist/exports.mjs +42 -0
  8. package/dist/exports.mjs.map +1 -0
  9. package/dist/extractor/accessSafe.mjs +47 -0
  10. package/dist/extractor/accessSafe.mjs.map +1 -0
  11. package/dist/extractor/babelParse.mjs +55 -0
  12. package/dist/extractor/babelParse.mjs.map +1 -0
  13. package/dist/extractor/bundle.mjs +149 -0
  14. package/dist/extractor/bundle.mjs.map +1 -0
  15. package/dist/extractor/bundleConfig.mjs +331 -0
  16. package/dist/extractor/bundleConfig.mjs.map +1 -0
  17. package/dist/extractor/concatClassName.mjs +79 -0
  18. package/dist/extractor/concatClassName.mjs.map +1 -0
  19. package/dist/extractor/createEvaluator.mjs +76 -0
  20. package/dist/extractor/createEvaluator.mjs.map +1 -0
  21. package/dist/extractor/createExtractor.mjs +976 -0
  22. package/dist/extractor/createExtractor.mjs.map +1 -0
  23. package/dist/extractor/createLogger.mjs +46 -0
  24. package/dist/extractor/createLogger.mjs.map +1 -0
  25. package/dist/extractor/errors.mjs +27 -0
  26. package/dist/extractor/errors.mjs.map +1 -0
  27. package/dist/extractor/esbuildAliasPlugin.mjs +45 -0
  28. package/dist/extractor/esbuildAliasPlugin.mjs.map +1 -0
  29. package/dist/extractor/esbuildTsconfigPaths.mjs +85 -0
  30. package/dist/extractor/esbuildTsconfigPaths.mjs.map +1 -0
  31. package/dist/extractor/evaluateAstNode.mjs +84 -0
  32. package/dist/extractor/evaluateAstNode.mjs.map +1 -0
  33. package/dist/extractor/extractHelpers.mjs +121 -0
  34. package/dist/extractor/extractHelpers.mjs.map +1 -0
  35. package/dist/extractor/extractMediaStyle.mjs +129 -0
  36. package/dist/extractor/extractMediaStyle.mjs.map +1 -0
  37. package/dist/extractor/extractToClassNames.mjs +304 -0
  38. package/dist/extractor/extractToClassNames.mjs.map +1 -0
  39. package/dist/extractor/extractToNative.mjs +262 -0
  40. package/dist/extractor/extractToNative.mjs.map +1 -0
  41. package/dist/extractor/findTopmostFunction.mjs +35 -0
  42. package/dist/extractor/findTopmostFunction.mjs.map +1 -0
  43. package/dist/extractor/{generatedUid.native.js → generatedUid.mjs} +26 -23
  44. package/dist/extractor/generatedUid.mjs.map +1 -0
  45. package/dist/extractor/getPrefixLogs.mjs +30 -0
  46. package/dist/extractor/getPrefixLogs.mjs.map +1 -0
  47. package/dist/extractor/getPropValueFromAttributes.mjs +68 -0
  48. package/dist/extractor/getPropValueFromAttributes.mjs.map +1 -0
  49. package/dist/extractor/getSourceModule.mjs +65 -0
  50. package/dist/extractor/getSourceModule.mjs.map +1 -0
  51. package/dist/extractor/getStaticBindingsForScope.mjs +149 -0
  52. package/dist/extractor/getStaticBindingsForScope.mjs.map +1 -0
  53. package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.mjs +36 -0
  54. package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.mjs.map +1 -0
  55. package/dist/extractor/literalToAst.mjs +85 -0
  56. package/dist/extractor/literalToAst.mjs.map +1 -0
  57. package/dist/extractor/loadFile.mjs +12 -0
  58. package/dist/extractor/loadFile.mjs.map +1 -0
  59. package/dist/extractor/loadTamagui.mjs +296 -0
  60. package/dist/extractor/loadTamagui.mjs.map +1 -0
  61. package/dist/extractor/logLines.mjs +36 -0
  62. package/dist/extractor/logLines.mjs.map +1 -0
  63. package/dist/extractor/{normalizeTernaries.native.js → normalizeTernaries.mjs} +45 -31
  64. package/dist/extractor/normalizeTernaries.mjs.map +1 -0
  65. package/dist/extractor/propsToFontFamilyCache.mjs +39 -0
  66. package/dist/extractor/propsToFontFamilyCache.mjs.map +1 -0
  67. package/dist/extractor/regenerateConfig.mjs +145 -0
  68. package/dist/extractor/regenerateConfig.mjs.map +1 -0
  69. package/dist/extractor/removeUnusedHooks.mjs +77 -0
  70. package/dist/extractor/removeUnusedHooks.mjs.map +1 -0
  71. package/dist/extractor/timer.mjs +44 -0
  72. package/dist/extractor/timer.mjs.map +1 -0
  73. package/dist/extractor/{validHTMLAttributes.native.js → validHTMLAttributes.mjs} +17 -16
  74. package/dist/extractor/validHTMLAttributes.mjs.map +1 -0
  75. package/dist/extractor/watchTamaguiConfig.mjs +59 -0
  76. package/dist/extractor/watchTamaguiConfig.mjs.map +1 -0
  77. package/dist/getPragmaOptions.mjs +55 -0
  78. package/dist/getPragmaOptions.mjs.map +1 -0
  79. package/dist/helpers/memoize.mjs +38 -0
  80. package/dist/helpers/memoize.mjs.map +1 -0
  81. package/dist/helpers/requireTamaguiCore.mjs +34 -0
  82. package/dist/helpers/requireTamaguiCore.mjs.map +1 -0
  83. package/dist/index.mjs +41 -0
  84. package/dist/index.mjs.map +1 -0
  85. package/dist/registerRequire.mjs +107 -0
  86. package/dist/registerRequire.mjs.map +1 -0
  87. package/dist/server.mjs +76 -0
  88. package/dist/server.mjs.map +1 -0
  89. package/dist/setup.mjs +2 -0
  90. package/dist/setup.mjs.map +1 -0
  91. package/dist/{types.native.js → types.mjs} +8 -6
  92. package/dist/types.mjs.map +1 -0
  93. package/package.json +19 -21
  94. package/dist/check-dep-versions.native.js +0 -602
  95. package/dist/check-dep-versions.native.js.map +0 -6
  96. package/dist/checkDeps.native.js +0 -34
  97. package/dist/checkDeps.native.js.map +0 -6
  98. package/dist/constants.native.js +0 -45
  99. package/dist/constants.native.js.map +0 -6
  100. package/dist/exports.native.js +0 -52
  101. package/dist/exports.native.js.map +0 -6
  102. package/dist/extractor/accessSafe.native.js +0 -48
  103. package/dist/extractor/accessSafe.native.js.map +0 -6
  104. package/dist/extractor/babelParse.native.js +0 -62
  105. package/dist/extractor/babelParse.native.js.map +0 -6
  106. package/dist/extractor/bundle.native.js +0 -168
  107. package/dist/extractor/bundle.native.js.map +0 -6
  108. package/dist/extractor/bundleConfig.native.js +0 -394
  109. package/dist/extractor/bundleConfig.native.js.map +0 -6
  110. package/dist/extractor/concatClassName.native.js +0 -69
  111. package/dist/extractor/concatClassName.native.js.map +0 -6
  112. package/dist/extractor/createEvaluator.native.js +0 -63
  113. package/dist/extractor/createEvaluator.native.js.map +0 -6
  114. package/dist/extractor/createExtractor.native.js +0 -1229
  115. package/dist/extractor/createExtractor.native.js.map +0 -6
  116. package/dist/extractor/createLogger.native.js +0 -35
  117. package/dist/extractor/createLogger.native.js.map +0 -6
  118. package/dist/extractor/errors.native.js +0 -119
  119. package/dist/extractor/errors.native.js.map +0 -6
  120. package/dist/extractor/esbuildAliasPlugin.native.js +0 -52
  121. package/dist/extractor/esbuildAliasPlugin.native.js.map +0 -6
  122. package/dist/extractor/esbuildTsconfigPaths.native.js +0 -79
  123. package/dist/extractor/esbuildTsconfigPaths.native.js.map +0 -6
  124. package/dist/extractor/evaluateAstNode.native.js +0 -98
  125. package/dist/extractor/evaluateAstNode.native.js.map +0 -6
  126. package/dist/extractor/extractHelpers.native.js +0 -183
  127. package/dist/extractor/extractHelpers.native.js.map +0 -6
  128. package/dist/extractor/extractMediaStyle.native.js +0 -138
  129. package/dist/extractor/extractMediaStyle.native.js.map +0 -6
  130. package/dist/extractor/extractToClassNames.native.js +0 -332
  131. package/dist/extractor/extractToClassNames.native.js.map +0 -6
  132. package/dist/extractor/extractToNative.native.js +0 -276
  133. package/dist/extractor/extractToNative.native.js.map +0 -6
  134. package/dist/extractor/findTopmostFunction.native.js +0 -37
  135. package/dist/extractor/findTopmostFunction.native.js.map +0 -6
  136. package/dist/extractor/generatedUid.native.js.map +0 -6
  137. package/dist/extractor/getPrefixLogs.native.js +0 -30
  138. package/dist/extractor/getPrefixLogs.native.js.map +0 -6
  139. package/dist/extractor/getPropValueFromAttributes.native.js +0 -68
  140. package/dist/extractor/getPropValueFromAttributes.native.js.map +0 -6
  141. package/dist/extractor/getSourceModule.native.js +0 -80
  142. package/dist/extractor/getSourceModule.native.js.map +0 -6
  143. package/dist/extractor/getStaticBindingsForScope.native.js +0 -183
  144. package/dist/extractor/getStaticBindingsForScope.native.js.map +0 -6
  145. package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.native.js +0 -37
  146. package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +0 -6
  147. package/dist/extractor/literalToAst.native.js +0 -106
  148. package/dist/extractor/literalToAst.native.js.map +0 -6
  149. package/dist/extractor/loadFile.native.js +0 -21
  150. package/dist/extractor/loadFile.native.js.map +0 -6
  151. package/dist/extractor/loadTamagui.native.js +0 -314
  152. package/dist/extractor/loadTamagui.native.js.map +0 -6
  153. package/dist/extractor/logLines.native.js +0 -53
  154. package/dist/extractor/logLines.native.js.map +0 -6
  155. package/dist/extractor/normalizeTernaries.native.js.map +0 -6
  156. package/dist/extractor/propsToFontFamilyCache.native.js +0 -40
  157. package/dist/extractor/propsToFontFamilyCache.native.js.map +0 -6
  158. package/dist/extractor/regenerateConfig.native.js +0 -148
  159. package/dist/extractor/regenerateConfig.native.js.map +0 -6
  160. package/dist/extractor/removeUnusedHooks.native.js +0 -111
  161. package/dist/extractor/removeUnusedHooks.native.js.map +0 -6
  162. package/dist/extractor/timer.native.js +0 -44
  163. package/dist/extractor/timer.native.js.map +0 -6
  164. package/dist/extractor/validHTMLAttributes.native.js.map +0 -6
  165. package/dist/extractor/watchTamaguiConfig.native.js +0 -60
  166. package/dist/extractor/watchTamaguiConfig.native.js.map +0 -6
  167. package/dist/getPragmaOptions.native.js +0 -62
  168. package/dist/getPragmaOptions.native.js.map +0 -6
  169. package/dist/helpers/memoize.native.js +0 -40
  170. package/dist/helpers/memoize.native.js.map +0 -6
  171. package/dist/helpers/requireTamaguiCore.native.js +0 -34
  172. package/dist/helpers/requireTamaguiCore.native.js.map +0 -6
  173. package/dist/index.native.js +0 -35
  174. package/dist/index.native.js.map +0 -6
  175. package/dist/registerRequire.native.js +0 -124
  176. package/dist/registerRequire.native.js.map +0 -6
  177. package/dist/server.native.js +0 -70
  178. package/dist/server.native.js.map +0 -6
  179. package/dist/setup.native.js +0 -2
  180. package/dist/setup.native.js.map +0 -6
  181. package/dist/types.native.js.map +0 -6
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createExtractor_exports","__export","createExtractor","module","exports","__toCommonJS","import_traverse","__toESM","require","t","import_cli_color","reactNativeWebInternals","import_web","import_node_path","import_constants","import_requireTamaguiCore","import_createEvaluator","import_evaluateAstNode","import_extractHelpers","import_findTopmostFunction","import_getStaticBindingsForScope","import_literalToAst","import_loadTamagui","import_logLines","import_normalizeTernaries","import_propsToFontFamilyCache","import_timer","import_validHTMLAttributes","import_errors","UNTOUCHED_PROPS","key","style","className","createTernary","x","hasLoggedBaseInfo","isFullyDisabled","props","disableExtraction","disableDebugAttr","logger","console","platform","INLINE_EXTRACTABLE","ref","onPress","onHoverIn","onHoverOut","onPressIn","onPressOut","componentState","focus","focusVisible","focusWithin","hover","unmounted","press","pressIn","disabled","styleProps","resolveValues","noClass","isAnimated","shouldAddDebugProp","process","env","npm_package_dependencies_next","IDENTIFY_TAGS","NODE_ENV","projectInfo","loadSync","loadTamaguiSync","load","loadTamagui","options","cleanupBeforeExit","getTamagui","tamaguiConfig","parseSync","f","globalThis","expo","projectInfo2","parseWithConfig","parse","components","fileOrPath","config","importsWhitelist","evaluateVars","sourcePath","onExtractTag","onStyledDefinitionRule","getFlattenedNode","disable","disableExtractVariables","enableDynamicEvaluation","includeExtensions","extractStyledDefinitions","prefixLogs","excludeProps","platform2","restProps","includes","normalizeStyle","getSplitStyles","mediaQueryConfig","propMapper","proxyThemeVariables","pseudoDescriptors","requireTamaguiCore","shouldPrintDebug","Array","isArray","Error","some","ext","endsWith","info","join","isValidStyleKey","name","staticConfig","slice","validStyles","variants","shorthands","isTargetingHTML","ogDebug","tm","timer","propsWithFileInfo","allLoadedComponents","map","comp","Object","keys","nameToInfo","DEBUG","startsWith","moduleName","mark","themes","error","exit","firstThemeName","firstTheme","err","proxiedTheme","themeAccessListeners","Set","defaultTheme","Proxy","get","target","Reflect","has","forEach","cb","String","body","type","program","length","warn","k","JSON","stringify","getValidComponentsPaths","doesUseValidImport","hasImportedTheme","importDeclarations","bodyPath","node","source","value","valid","isValidImport","push","specifiers","specifier","local","names","isValidComponent","getValidImportedComponent","componentName","importDeclaration","find","dec","spec","getValidImport","couldntParse","modifiedComponents","bindingCache","callTraverse","a","default","traverse","shouldDisableExtraction","programPath","res","styled","flattened","optimized","modified","found","version","Math","random","Program","enter","path","CallExpression","isIdentifier","callee","variableName","isVariableDeclarator","parent","id","parentNode","arguments","parentName","definition","isObjectExpression","Component","out2","forceExports","cacheKey","flatMap","cached","foundNames","trim","colorLog","Color","FgYellow","componentSkipProps","inlineWhenUnflattened","inlineProps","skipped","styles","staticNamespace","getStaticBindingsForScope","scope","attemptEval","createEvaluator","evaluateAstNode","attemptEvalSafe","createSafeEvaluator","property","properties","isObjectProperty","add","FAILED_EVAL","out","classNames","rulesToInsert","prop","objectProperty","stringLiteral","styleObject","StyleObjectIdentifier","StyleObjectRules","JSXElement","traversePath","openingElement","ogAttributes","attributes","attr","findComponentName","closingElement","isJSXMemberExpression","isJSXIdentifier","binding","getBinding","isImportDeclaration","identifier","component","getValidComponent","originalNodeName","filePath","relative","cwd","lineNumbers","loc","start","line","end","codePosition","debugPropValue","filter","n","isJSXAttribute","isStringLiteral","unshift","jsxAttribute","jsxIdentifier","basename","evaluateAttribute","attribute","isJSXSpreadAttribute","arg","argument","conditional","isConditionalExpression","test","consequent","alternate","isLogicalExpression","operator","left","right","alt","cons","side","isStaticObject","flattenNestedTernaries","unaryExpression","ternary","inlined","set","shouldDeopt","isJSXExpressionContainer","shortname","expression","isJSXEmptyExpression","ternaries2","inlineMediaQuery","value2","valuePath","remove","p","styleValue","propMapperStyleState","val","createDOMProps","isTextView","didInline","validHTMLAttributes","toString","inlineWhenUnflattenedOGVals","defaultProps","hasSetOptimized","variantValues","isBinaryExpression","lVal","rVal","addBinaryConditional","staticConditional","getStaticConditional","staticLogical","getStaticLogical","staticExpr","cond","binaryExpression","aVal","cVal","message","obj","every","propName","ternaryPartial","truthy","falsy","objectExpression","logicalExpression","mergeToEnd","normalizeStyleWithoutVariants","res2","expanded","key2","mergeStyles","prev2","next","assign","isText","tagName","tag","flatNodeName","deoptProps","animations","isReactNative","attrs","Map","usedKeys","theme","viewProps","conf","debug","stack","flat","isPresent","logLines","attrStr","parentFn","findTopmostFunction","hasSpread","hasOnlyStringChildren","selfClosing","children","themeVal","delete","isStaticObjectVariant","canFlattenProps","size","shouldFlatten","isStyledHOC","isHOC","neverFlatten","usedThemeKeys","skipMap","defaultStyleAttrs","jsxExpressionContainer","literalToAst","ternaries","reduce","cur","indexOf","normalized","normalizeTernaries","rest","importSpecifier","replaceWith","jsxElement","jsxOpeningElement","jsxClosingElement","foundStaticProps","booleanLiteral","completeProps","acc","styleState","cn","fullKey","prev","getProps","includeProps","debugName","before","IS_STATIC","fallbackProps","experimentalFlattenThemesOnNative","outProps","pseudos","objToStr","fontFamily","setPropsToFontFamily","getStyleError","c","outKey","outVal","existingStyleKeys","i","Boolean","index","entries","splice","flatNode","parserProps","jsxPath","BailOptimizationError","TAMAGUI_DEBUG","done"],"sources":["../../src/extractor/createExtractor.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,uBAAA;AACA,IAAAM,eAAA,GAAqBC,OAAA,CAAAC,OAAA;EACrBC,CAAA,GAAmBF,OAAA,CAAAC,OAAA;EACnBE,gBAAA,GAAgCF,OAAA;EAChCG,uBAAA,GAAyCJ,OAAA,CAAAC,OAAA;EACzCI,UAAA,GAQOJ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vB;MACF;IACF,CAAC,GAEDC,EAAA,CAAGY,IAAA,CAAK,YAAY,CAAC,CAAC9B,gBAAgB,GACtCkB,EAAA,CAAG2U,IAAA,CAAK7V,gBAAA,KAAqB,SAAS,GAE/ByF,GAAA;EACT;AACF","ignoreList":[]}
@@ -0,0 +1,46 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var createLogger_exports = {};
22
+ __export(createLogger_exports, {
23
+ createLogger: () => createLogger
24
+ });
25
+ module.exports = __toCommonJS(createLogger_exports);
26
+ var import_node_path = require("node:path"),
27
+ import_getPrefixLogs = require("./getPrefixLogs.mjs");
28
+ function createLogger(sourcePath, options) {
29
+ const shouldLogTiming = options.logTimings ?? !0,
30
+ start = Date.now(),
31
+ mem = process.env.TAMAGUI_SHOW_MEMORY_USAGE && shouldLogTiming ? process.memoryUsage() : null;
32
+ return res => {
33
+ if (!shouldLogTiming) return;
34
+ const memUsed = mem ? Math.round((process.memoryUsage().heapUsed - mem.heapUsed) / 1024 / 1204 * 10) / 10 : 0,
35
+ path = (0, import_node_path.basename)(sourcePath || "").replace(/\.[jt]sx?$/, "").slice(0, 22).trim().padEnd(24),
36
+ numOptimized = `${res.optimized + res.styled}`.padStart(3),
37
+ numFound = `${res.found + res.styled}`.padStart(3),
38
+ numFlattened = `${res.flattened}`.padStart(3),
39
+ memory = memUsed ? ` ${memUsed}MB` : "",
40
+ timingStr = `${Date.now() - start}ms`.padStart(6),
41
+ pre = (0, import_getPrefixLogs.getPrefixLogs)(options),
42
+ memStr = memory ? `(${memory})` : "";
43
+ console.info(`${pre} ${path} \xB7 ${numFound} found \xB7 ${numOptimized} opt \xB7 ${numFlattened} flat ${timingStr} ${memStr}`);
44
+ };
45
+ }
46
+ //# sourceMappingURL=createLogger.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createLogger_exports","__export","createLogger","module","exports","__toCommonJS","import_node_path","require","import_getPrefixLogs","sourcePath","options","shouldLogTiming","logTimings","start","Date","now","mem","process","env","TAMAGUI_SHOW_MEMORY_USAGE","memoryUsage","res","memUsed","Math","round","heapUsed","path","basename","replace","slice","trim","padEnd","numOptimized","optimized","styled","padStart","numFound","found","numFlattened","flattened","memory","timingStr","pre","getPrefixLogs","memStr","console","info"],"sources":["../../src/extractor/createLogger.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,oBAAA;AAAA,IAAAM,gBAAA,GAAyBC,OAAA;EAGzBC,oBAAA,GAA8BD,OAAA;AAEvB,SAASL,aAAaO,UAAA,EAAoBC,OAAA,EAAyB;EACxE,MAAMC,eAAA,GAAkBD,OAAA,CAAQE,UAAA,IAAc;IACxCC,KAAA,GAAQC,IAAA,CAAKC,GAAA,CAAI;IACjBC,GAAA,GACJC,OAAA,CAAQC,GAAA,CAAIC,yBAAA,IAA6BR,eAAA,GACrCM,OAAA,CAAQG,WAAA,CAAY,IACpB;EAEN,OAAQC,GAAA,IAAQ;IACd,IAAI,CAACV,eAAA,EACH;IAGF,MAAMW,OAAA,GAAUN,GAAA,GACZO,IAAA,CAAKC,KAAA,EAAQP,OAAA,CAAQG,WAAA,CAAY,EAAEK,QAAA,GAAWT,GAAA,CAAIS,QAAA,IAAY,OAAO,OAAQ,EAAE,IAC/E,KACA;MACEC,IAAA,OAAOpB,gBAAA,CAAAqB,QAAA,EAASlB,UAAA,IAAc,EAAE,EACnCmB,OAAA,CAAQ,cAAc,EAAE,EACxBC,KAAA,CAAM,GAAG,EAAE,EACXC,IAAA,CAAK,EACLC,MAAA,CAAO,EAAE;MAENC,YAAA,GAAe,GAAGX,GAAA,CAAIY,SAAA,GAAYZ,GAAA,CAAIa,MAAM,GAAGC,QAAA,CAAS,CAAC;MACzDC,QAAA,GAAW,GAAGf,GAAA,CAAIgB,KAAA,GAAQhB,GAAA,CAAIa,MAAM,GAAGC,QAAA,CAAS,CAAC;MACjDG,YAAA,GAAe,GAAGjB,GAAA,CAAIkB,SAAS,GAAGJ,QAAA,CAAS,CAAC;MAC5CK,MAAA,GAASlB,OAAA,GAAU,IAAIA,OAAO,OAAO;MAErCmB,SAAA,GAAY,GADH3B,IAAA,CAAKC,GAAA,CAAI,IAAIF,KACD,KAAKsB,QAAA,CAAS,CAAC;MACpCO,GAAA,OAAMlC,oBAAA,CAAAmC,aAAA,EAAcjC,OAAO;MAC3BkC,MAAA,GAASJ,MAAA,GAAS,IAAIA,MAAM,MAAM;IACxCK,OAAA,CAAQC,IAAA,CACN,GAAGJ,GAAG,IAAIhB,IAAI,YAASU,QAAQ,kBAAeJ,YAAY,gBAAaM,YAAY,UAAUG,SAAS,IAAIG,MAAM,EAClH;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,27 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var errors_exports = {};
22
+ __export(errors_exports, {
23
+ BailOptimizationError: () => BailOptimizationError
24
+ });
25
+ module.exports = __toCommonJS(errors_exports);
26
+ class BailOptimizationError extends Error {}
27
+ //# sourceMappingURL=errors.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["errors_exports","__export","BailOptimizationError","module","exports","__toCommonJS","Error"],"sources":["../../src/extractor/errors.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,qBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,cAAA;AAAO,MAAME,qBAAA,SAA8BI,KAAA,CAAM","ignoreList":[]}
@@ -0,0 +1,45 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var esbuildAliasPlugin_exports = {};
22
+ __export(esbuildAliasPlugin_exports, {
23
+ esbuildAliasPlugin: () => esbuildAliasPlugin
24
+ });
25
+ module.exports = __toCommonJS(esbuildAliasPlugin_exports);
26
+ const esbuildAliasPlugin = config => {
27
+ const alias = config && Object.keys(config);
28
+ return {
29
+ name: "path-alias",
30
+ setup(build) {
31
+ if (!alias || !alias.length) return;
32
+ const main = (k, args) => ({
33
+ path: config[k].replace(/\/$/, "")
34
+ });
35
+ alias.forEach(k => {
36
+ build.onResolve({
37
+ filter: new RegExp(`^.*${k}$`)
38
+ }, args => main(k, args)), build.onResolve({
39
+ filter: new RegExp(`^.*\\/${k}\\/.*$`)
40
+ }, args => main(k, args));
41
+ });
42
+ }
43
+ };
44
+ };
45
+ //# sourceMappingURL=esbuildAliasPlugin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["esbuildAliasPlugin_exports","__export","esbuildAliasPlugin","module","exports","__toCommonJS","config","alias","Object","keys","name","setup","build","length","main","k","args","path","replace","forEach","onResolve","filter","RegExp"],"sources":["../../src/extractor/esbuildAliasPlugin.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,0BAAA;AAAAC,QAAA,CAAAD,0BAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,0BAAA;AAaO,MAAME,kBAAA,GAAsBI,MAAA,IAAW;EAC5C,MAAMC,KAAA,GAAQD,MAAA,IAAUE,MAAA,CAAOC,IAAA,CAAKH,MAAM;EAC1C,OAAO;IACLI,IAAA,EAAM;IAENC,MAAMC,KAAA,EAAO;MACX,IAAI,CAACL,KAAA,IAAS,CAACA,KAAA,CAAMM,MAAA,EACnB;MAEF,MAAMC,IAAA,GAAOA,CAACC,CAAA,EAAGC,IAAA,MAER;QACLC,IAAA,EAFiBX,MAAA,CAAOS,CAAC,EAAEG,OAAA,CAAQ,OAAO,EAAE;MAG9C;MAGFX,KAAA,CAAMY,OAAA,CAASJ,CAAA,IAAM;QACnBH,KAAA,CAAMQ,SAAA,CAAU;UAAEC,MAAA,EAAQ,IAAIC,MAAA,CAAO,MAAMP,CAAC,GAAG;QAAE,GAAIC,IAAA,IAC5CF,IAAA,CAAKC,CAAA,EAAGC,IAAI,CACpB,GACDJ,KAAA,CAAMQ,SAAA,CAAU;UAAEC,MAAA,EAAQ,IAAIC,MAAA,CAAO,SAASP,CAAC,QAAQ;QAAE,GAAIC,IAAA,IACpDF,IAAA,CAAKC,CAAA,EAAGC,IAAI,CACpB;MACH,CAAC;IACH;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,85 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name2 in all) __defProp(target, name2, {
9
+ get: all[name2],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var esbuildTsconfigPaths_exports = {};
33
+ __export(esbuildTsconfigPaths_exports, {
34
+ TsconfigPathsPlugin: () => TsconfigPathsPlugin
35
+ });
36
+ module.exports = __toCommonJS(esbuildTsconfigPaths_exports);
37
+ var import_node_fs = __toESM(require("node:fs")),
38
+ import_node_path = __toESM(require("node:path")),
39
+ import_typescript = require("typescript");
40
+ const name = "tsconfig-paths";
41
+ function TsconfigPathsPlugin() {
42
+ const compilerOptions = loadCompilerOptionsFromTsconfig();
43
+ return {
44
+ name,
45
+ setup({
46
+ onResolve
47
+ }) {
48
+ onResolve({
49
+ filter: /.*/
50
+ }, args => {
51
+ const paths = compilerOptions.paths || {};
52
+ if (!Object.keys(paths).some(p => new RegExp(p.replace("*", "\\w*")).test(args.path))) return null;
53
+ const {
54
+ resolvedModule
55
+ } = (0, import_typescript.nodeModuleNameResolver)(args.path, args.importer, compilerOptions, import_typescript.sys);
56
+ if (!resolvedModule) return null;
57
+ const {
58
+ resolvedFileName
59
+ } = resolvedModule;
60
+ return !resolvedFileName || resolvedFileName.endsWith(".d.ts") ? null : {
61
+ path: resolvedFileName
62
+ };
63
+ });
64
+ }
65
+ };
66
+ }
67
+ function loadCompilerOptionsFromTsconfig(tsconfig) {
68
+ if (!tsconfig) {
69
+ const configPath = (0, import_typescript.findConfigFile)(process.cwd(), import_typescript.sys.fileExists, "tsconfig.json") || (0, import_typescript.findConfigFile)(process.cwd(), import_typescript.sys.fileExists, "jsconfig.json");
70
+ return configPath ? parseTsconfig(configPath) : {};
71
+ }
72
+ if (typeof tsconfig == "string") {
73
+ if (import_node_fs.default.existsSync(tsconfig)) return parseTsconfig(tsconfig);
74
+ throw new Error(`Specified tsconfig file not found: ${tsconfig}`);
75
+ }
76
+ const baseDir = process.cwd();
77
+ return (0, import_typescript.parseJsonConfigFileContent)(tsconfig, import_typescript.sys, baseDir).options;
78
+ }
79
+ function parseTsconfig(configFilePath) {
80
+ const configFile = (0, import_typescript.readConfigFile)(configFilePath, import_typescript.sys.readFile);
81
+ if (configFile.error) throw new Error(`Error reading tsconfig file '${configFilePath}': ${configFile.error.messageText}`);
82
+ const baseDir = import_node_path.default.dirname(configFilePath);
83
+ return (0, import_typescript.parseJsonConfigFileContent)(configFile.config, import_typescript.sys, baseDir).options;
84
+ }
85
+ //# sourceMappingURL=esbuildTsconfigPaths.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["esbuildTsconfigPaths_exports","__export","TsconfigPathsPlugin","module","exports","__toCommonJS","import_node_fs","__toESM","require","import_node_path","import_typescript","name","compilerOptions","loadCompilerOptionsFromTsconfig","setup","onResolve","filter","args","paths","Object","keys","some","p","RegExp","replace","test","path","resolvedModule","nodeModuleNameResolver","importer","sys","resolvedFileName","endsWith","tsconfig","configPath","findConfigFile","process","cwd","fileExists","parseTsconfig","default","existsSync","Error","baseDir","parseJsonConfigFileContent","options","configFilePath","configFile","readConfigFile","readFile","error","messageText","dirname","config"],"sources":["../../src/extractor/esbuildTsconfigPaths.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,4BAAA;AAAAC,QAAA,CAAAD,4BAAA;EAAAE,mBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,4BAAA;AACA,IAAAM,cAAA,GAAeC,OAAA,CAAAC,OAAA;EACfC,gBAAA,GAAiBF,OAAA,CAAAC,OAAA;EACjBE,iBAAA,GAMOF,OAAA;AAEP,MAAMG,IAAA,GAAO;AASN,SAAST,oBAAA,EAA8B;EAC5C,MAAMU,eAAA,GAAkBC,+BAAA,CAAgC;EAExD,OAAO;IACLF,IAAA;IACAG,MAAM;MAAEC;IAAU,GAAG;MACnBA,SAAA,CAAU;QAAEC,MAAA,EAAQ;MAAK,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,MAAMU,OAAA,GAAUP,OAAA,CAAQC,GAAA,CAAI;EAE5B,WADe3B,iBAAA,CAAAkC,0BAAA,EAA2BX,QAAA,EAAUvB,iBAAA,CAAAoB,GAAA,EAAKa,OAAO,EAClDE,OAAA;AAChB;AAEA,SAASN,cAAcO,cAAA,EAAwB;EAC7C,MAAMC,UAAA,OAAarC,iBAAA,CAAAsC,cAAA,EAAeF,cAAA,EAAgBpC,iBAAA,CAAAoB,GAAA,CAAImB,QAAQ;EAC9D,IAAIF,UAAA,CAAWG,KAAA,EACb,MAAM,IAAIR,KAAA,CACR,gCAAgCI,cAAc,MAAMC,UAAA,CAAWG,KAAA,CAAMC,WAAW,EAClF;EAGF,MAAMR,OAAA,GAAUlC,gBAAA,CAAA+B,OAAA,CAAKY,OAAA,CAAQN,cAAc;EAE3C,WADepC,iBAAA,CAAAkC,0BAAA,EAA2BG,UAAA,CAAWM,MAAA,EAAQ3C,iBAAA,CAAAoB,GAAA,EAAKa,OAAO,EAC3DE,OAAA;AAChB","ignoreList":[]}
@@ -0,0 +1,84 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var evaluateAstNode_exports = {};
33
+ __export(evaluateAstNode_exports, {
34
+ evaluateAstNode: () => evaluateAstNode
35
+ });
36
+ module.exports = __toCommonJS(evaluateAstNode_exports);
37
+ var t = __toESM(require("@babel/types"));
38
+ function evaluateAstNode(exprNode, evalFn, shouldPrintDebug) {
39
+ if (exprNode !== void 0) {
40
+ if (exprNode === null) return !0;
41
+ if (t.isJSXExpressionContainer(exprNode)) return evaluateAstNode(exprNode.expression);
42
+ if (t.isObjectExpression(exprNode)) {
43
+ const ret = {};
44
+ for (let idx = -1, len = exprNode.properties.length; ++idx < len;) {
45
+ const value = exprNode.properties[idx];
46
+ if (!t.isObjectProperty(value)) throw new Error("evaluateAstNode can only evaluate object properties");
47
+ let key;
48
+ if (value.computed) {
49
+ if (typeof evalFn != "function") throw new Error("evaluateAstNode does not support computed keys unless an eval function is provided");
50
+ key = evaluateAstNode(value.key, evalFn);
51
+ } else if (t.isIdentifier(value.key)) key = value.key.name;else if (t.isStringLiteral(value.key) || t.isNumericLiteral(value.key)) key = value.key.value;else throw new Error("Unsupported key type: " + value.key.type);
52
+ if (typeof key != "string" && typeof key != "number") throw new Error("key must be either a string or a number");
53
+ ret[key] = evaluateAstNode(value.value, evalFn);
54
+ }
55
+ return ret;
56
+ }
57
+ if (t.isArrayExpression(exprNode)) return exprNode.elements.map(x => evaluateAstNode(x, evalFn));
58
+ if (t.isUnaryExpression(exprNode) && exprNode.operator === "-") {
59
+ const ret = evaluateAstNode(exprNode.argument, evalFn);
60
+ return ret == null ? null : -ret;
61
+ }
62
+ if (t.isTemplateLiteral(exprNode)) {
63
+ if (typeof evalFn != "function") throw new Error("evaluateAstNode does not support template literals unless an eval function is provided");
64
+ let ret = "";
65
+ for (let idx = -1, len = exprNode.quasis.length; ++idx < len;) {
66
+ const quasi = exprNode.quasis[idx],
67
+ expr = exprNode.expressions[idx];
68
+ ret += quasi.value.raw, expr && (ret += evaluateAstNode(expr, evalFn));
69
+ }
70
+ return ret;
71
+ }
72
+ if (t.isNullLiteral(exprNode)) return null;
73
+ if (t.isNumericLiteral(exprNode) || t.isStringLiteral(exprNode) || t.isBooleanLiteral(exprNode)) return exprNode.value;
74
+ if (t.isBinaryExpression(exprNode)) {
75
+ if (exprNode.operator === "+") return evaluateAstNode(exprNode.left, evalFn) + evaluateAstNode(exprNode.right, evalFn);
76
+ if (exprNode.operator === "-") return evaluateAstNode(exprNode.left, evalFn) - evaluateAstNode(exprNode.right, evalFn);
77
+ if (exprNode.operator === "*") return evaluateAstNode(exprNode.left, evalFn) * evaluateAstNode(exprNode.right, evalFn);
78
+ if (exprNode.operator === "/") return evaluateAstNode(exprNode.left, evalFn) / evaluateAstNode(exprNode.right, evalFn);
79
+ }
80
+ if (typeof evalFn != "function") throw new Error("evaluateAstNode does not support non-literal values unless an eval function is provided");
81
+ return evalFn(exprNode);
82
+ }
83
+ }
84
+ //# sourceMappingURL=evaluateAstNode.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["evaluateAstNode_exports","__export","evaluateAstNode","module","exports","__toCommonJS","t","__toESM","require","exprNode","evalFn","shouldPrintDebug","isJSXExpressionContainer","expression","isObjectExpression","ret","idx","len","properties","length","value","isObjectProperty","Error","key","computed","isIdentifier","name","isStringLiteral","isNumericLiteral","type","isArrayExpression","elements","map","x","isUnaryExpression","operator","argument","isTemplateLiteral","quasis","quasi","expr","expressions","raw","isNullLiteral","isBooleanLiteral","isBinaryExpression","left","right"],"sources":["../../src/extractor/evaluateAstNode.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;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AOK,GAAA;IACT;IAIA,IAAIT,CAAA,CAAEqC,aAAA,CAAclC,QAAQ,GAC1B,OAAO;IAGT,IACEH,CAAA,CAAEsB,gBAAA,CAAiBnB,QAAQ,KAC3BH,CAAA,CAAEqB,eAAA,CAAgBlB,QAAQ,KAC1BH,CAAA,CAAEsC,gBAAA,CAAiBnC,QAAQ,GAI3B,OAAOA,QAAA,CAASW,KAAA;IAGlB,IAAId,CAAA,CAAEuC,kBAAA,CAAmBpC,QAAQ,GAAG;MAClC,IAAIA,QAAA,CAAS0B,QAAA,KAAa,KACxB,OACEjC,eAAA,CAAgBO,QAAA,CAASqC,IAAA,EAAMpC,MAAM,IAAIR,eAAA,CAAgBO,QAAA,CAASsC,KAAA,EAAOrC,MAAM;MAGnF,IAAID,QAAA,CAAS0B,QAAA,KAAa,KACxB,OACEjC,eAAA,CAAgBO,QAAA,CAASqC,IAAA,EAAMpC,MAAM,IAAIR,eAAA,CAAgBO,QAAA,CAASsC,KAAA,EAAOrC,MAAM;MAGnF,IAAID,QAAA,CAAS0B,QAAA,KAAa,KACxB,OACEjC,eAAA,CAAgBO,QAAA,CAASqC,IAAA,EAAMpC,MAAM,IAAIR,eAAA,CAAgBO,QAAA,CAASsC,KAAA,EAAOrC,MAAM;MAGnF,IAAID,QAAA,CAAS0B,QAAA,KAAa,KACxB,OACEjC,eAAA,CAAgBO,QAAA,CAASqC,IAAA,EAAMpC,MAAM,IAAIR,eAAA,CAAgBO,QAAA,CAASsC,KAAA,EAAOrC,MAAM;IAGrF;IAGA,IAAI,OAAOA,MAAA,IAAW,YACpB,MAAM,IAAIY,KAAA,CACR,yFACF;IAGF,OAAOZ,MAAA,CAAOD,QAAQ;EAAA;AACxB","ignoreList":[]}
@@ -0,0 +1,121 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var extractHelpers_exports = {};
33
+ __export(extractHelpers_exports, {
34
+ attrStr: () => attrStr,
35
+ findComponentName: () => findComponentName,
36
+ getValidComponent: () => getValidComponent,
37
+ getValidComponentsPaths: () => getValidComponentsPaths,
38
+ getValidImport: () => getValidImport,
39
+ isComponentPackage: () => isComponentPackage,
40
+ isInsideComponentPackage: () => isInsideComponentPackage,
41
+ isPresent: () => isPresent,
42
+ isSimpleSpread: () => isSimpleSpread,
43
+ isValidImport: () => isValidImport,
44
+ isValidModule: () => isValidModule,
45
+ isValidThemeHook: () => isValidThemeHook,
46
+ objToStr: () => objToStr,
47
+ ternaryStr: () => ternaryStr
48
+ });
49
+ module.exports = __toCommonJS(extractHelpers_exports);
50
+ var import_node_path = require("node:path"),
51
+ import_generator = __toESM(require("@babel/generator")),
52
+ t = __toESM(require("@babel/types")),
53
+ import_find_root = __toESM(require("find-root")),
54
+ import_memoize = require("../helpers/memoize.mjs");
55
+ function isPresent(input) {
56
+ return input != null;
57
+ }
58
+ function isSimpleSpread(node) {
59
+ return t.isIdentifier(node.argument) || t.isMemberExpression(node.argument);
60
+ }
61
+ const attrStr = attr => attr ? attr.type === "attr" ? getNameAttr(attr.value) : attr.type === "ternary" ? `...${ternaryStr(attr.value)}` : `${attr.type}(${objToStr(attr.value)})` : "",
62
+ objToStr = (obj, spacer = ", ") => obj ? `{${Object.entries(obj).map(([k, v]) => `${k}:${Array.isArray(v) ? "[...]" : v && typeof v == "object" ? `${objToStr(v, ",")}` : JSON.stringify(v)}`).join(spacer)}}` : `${obj}`,
63
+ getNameAttr = attr => t.isJSXSpreadAttribute(attr) ? `...${attr.argument.name}` : "name" in attr ? attr.name.name : `unknown-${attr.type}`,
64
+ ternaryStr = x => ["ternary(", t.isIdentifier(x.test) ? x.test.name : t.isMemberExpression(x.test) ? [x.test.object.name, x.test.property.name] :
65
+ // @ts-ignore
66
+ (0, import_generator.default)(x.test).code, isFilledObj(x.consequent) ? ` ? ${objToStr(x.consequent)}` : " ? \u{1F6AB}", isFilledObj(x.alternate) ? ` : ${objToStr(x.alternate)}` : " : \u{1F6AB}", ")"].flat().join(""),
67
+ isFilledObj = obj => obj && Object.keys(obj).length;
68
+ function findComponentName(scope) {
69
+ const componentName = "";
70
+ let cur = scope.path;
71
+ for (; cur.parentPath && !t.isProgram(cur.parentPath.parent);) cur = cur.parentPath;
72
+ let node = cur.parent;
73
+ if (t.isExportNamedDeclaration(node) && (node = node.declaration), t.isVariableDeclaration(node)) {
74
+ const [dec] = node.declarations;
75
+ if (t.isVariableDeclarator(dec) && t.isIdentifier(dec.id)) return dec.id.name;
76
+ }
77
+ return t.isFunctionDeclaration(node) ? node.id?.name : componentName;
78
+ }
79
+ function isValidThemeHook(props, jsxPath, n, sourcePath) {
80
+ if (!t.isIdentifier(n.object) || !t.isIdentifier(n.property)) return !1;
81
+ const binding = jsxPath.scope.getAllBindings()[n.object.name];
82
+ if (!binding?.path || !binding.path.isVariableDeclarator()) return !1;
83
+ const init = binding.path.node.init;
84
+ if (!init || !t.isCallExpression(init) || !t.isIdentifier(init.callee) || init.callee.name !== "useTheme") return !1;
85
+ const importNode = binding.scope.getBinding("useTheme")?.path.parent;
86
+ return !(!t.isImportDeclaration(importNode) || sourcePath && !isValidImport(props, sourcePath));
87
+ }
88
+ const isInsideComponentPackage = (props, moduleName) => getValidComponentsPaths(props).some(path => moduleName.startsWith(path)),
89
+ isComponentPackage = (props, srcName) => getValidComponentsPaths(props).some(path => srcName.startsWith(path));
90
+ function getValidComponent(props, moduleName, componentName) {
91
+ if (componentName[0].toUpperCase() !== componentName[0]) return !1;
92
+ for (const loaded of props.allLoadedComponents) {
93
+ if (!loaded) continue;
94
+ const isInModule = moduleName === "*" || moduleName.startsWith(loaded.moduleName),
95
+ foundComponent = loaded.nameToInfo[componentName];
96
+ if (isInModule && foundComponent) return foundComponent;
97
+ }
98
+ return null;
99
+ }
100
+ const isValidModule = (props, moduleName) => {
101
+ if (typeof moduleName != "string") throw new Error("No module name");
102
+ const isLocal = moduleName.startsWith(".");
103
+ return {
104
+ isLocal,
105
+ isValid: isLocal ? isInsideComponentPackage(props, moduleName) : isComponentPackage(props, moduleName)
106
+ };
107
+ },
108
+ getValidImport = (props, moduleName, componentName) => {
109
+ const {
110
+ isValid,
111
+ isLocal
112
+ } = isValidModule(props, moduleName);
113
+ return !isValid || !componentName ? null : getValidComponent(props, isLocal ? "*" : moduleName, componentName) || null;
114
+ },
115
+ isValidImport = (props, moduleName, componentName) => componentName ? !!getValidImport(props, moduleName, componentName) : isValidModule(props, moduleName).isValid,
116
+ getValidComponentPackages = (0, import_memoize.memoize)(props => [... /* @__PURE__ */new Set(["@tamagui/core", "tamagui", ...(props.components || [])])]),
117
+ getValidComponentsPaths = (0, import_memoize.memoize)(props => getValidComponentPackages(props).flatMap(pkg => {
118
+ const root = (0, import_find_root.default)(pkg);
119
+ return [(0, import_node_path.basename)(root), pkg].filter(Boolean);
120
+ }));
121
+ //# sourceMappingURL=extractHelpers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["extractHelpers_exports","__export","attrStr","findComponentName","getValidComponent","getValidComponentsPaths","getValidImport","isComponentPackage","isInsideComponentPackage","isPresent","isSimpleSpread","isValidImport","isValidModule","isValidThemeHook","objToStr","ternaryStr","module","exports","__toCommonJS","import_node_path","require","import_generator","__toESM","t","import_find_root","import_memoize","input","node","isIdentifier","argument","isMemberExpression","attr","type","getNameAttr","value","obj","spacer","Object","entries","map","k","v","Array","isArray","JSON","stringify","join","isJSXSpreadAttribute","name","x","test","object","property","default","code","isFilledObj","consequent","alternate","flat","keys","length","scope","componentName","cur","path","parentPath","isProgram","parent","isExportNamedDeclaration","declaration","isVariableDeclaration","dec","declarations","isVariableDeclarator","id","isFunctionDeclaration","props","jsxPath","n","sourcePath","binding","getAllBindings","init","isCallExpression","callee","importNode","getBinding","isImportDeclaration","moduleName","some","startsWith","srcName","toUpperCase","loaded","allLoadedComponents","isInModule","foundComponent","nameToInfo","Error","isLocal","isValid","getValidComponentPackages","memoize","Set","components","flatMap","pkg","root","basename","filter","Boolean"],"sources":["../../src/extractor/extractHelpers.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAA,OAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,uBAAA,EAAAA,CAAA,KAAAA,uBAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,kBAAA,EAAAA,CAAA,KAAAA,kBAAA;EAAAC,wBAAA,EAAAA,CAAA,KAAAA,wBAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA,SAAA;EAAAC,cAAA,EAAAA,CAAA,KAA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