@tamagui/compiler-core 3.0.0-beta.806.1 → 3.0.0-beta.831.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/zero.cjs +1 -2
- package/dist/esm/zero.mjs +1 -2
- package/dist/esm/zero.mjs.map +1 -1
- package/package.json +2 -2
- package/src/zero.ts +1 -2
- package/types/zero.d.ts.map +1 -1
package/dist/cjs/zero.cjs
CHANGED
package/dist/esm/zero.mjs
CHANGED
package/dist/esm/zero.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zero.js","names":[],"sources":["esm/zero.js"],"sourcesContent":["import { childNode, childNodes, walkAst } from \"./ast\";\nimport { zeroRuleForBailout } from \"./diagnostics\";\nimport { parseModuleAst } from \"./yuku\";\nconst ZERO_FAILURE_FOOTER = \"Fix every site or move the owning module to a declared full-runtime island. Zero-runtime never retains one component as a fallback.\";\nconst ZERO_DESIGN_STATE_APIS = /* @__PURE__ */ new Set([\n \"useMedia\",\n \"useTheme\",\n \"useThemeName\",\n \"useProps\",\n \"usePropsAndStyle\",\n \"getConfig\",\n \"getTokens\",\n \"useTokens\",\n \"getVariableValue\",\n \"getToken\",\n \"getTokenValue\",\n \"useConfiguration\",\n \"useAnimationDriver\",\n \"updateTheme\",\n \"addTheme\",\n \"replaceTheme\",\n \"forceUpdateThemes\"\n]);\nconst ZERO_PROVIDER_EXPORTS = /* @__PURE__ */ new Set([\n \"TamaguiProvider\",\n \"ThemeProvider\",\n \"TamaguiRoot\"\n]);\nconst ZERO_ANIMATED_NUMBER_HOOKS = /* @__PURE__ */ new Set([\n \"useAnimatedNumber\",\n \"useAnimatedNumberStyle\",\n \"useAnimatedNumbersStyle\",\n \"useAnimatedNumberReaction\"\n]);\nconst ZERO_ANIMATED_NUMBER_MODULE = \"@tamagui/animations-css/animated-number\";\nfunction zeroRuleMessage(rule, params) {\n const component = params.component ?? \"this component\";\n switch (rule) {\n case 1:\n return `Zero-runtime rule 1: ${component} cannot receive a prop spread because the compiler cannot prove it is style-free. Pass non-style props explicitly or move this module to a full-runtime island.`;\n case 2:\n return `Zero-runtime rule 2: component expression ${params.expression ?? component} does not resolve to one literal lowerable host component. Use a literal Tamagui or html.* component, or move this module to a full-runtime island.`;\n case 3:\n return `Zero-runtime rule 3: value for ${params.prop ?? \"a style prop\"} on ${component} cannot be lowered: ${params.detail ?? \"the compiler could not evaluate it\"}. Use a supported build-time value or move this module to a full-runtime island.`;\n case 4:\n return `Zero-runtime rule 4: ${params.detail ?? component} requires runtime theme or config state. Theme names and modifier targets must be statically enumerable, Theme value props and config must be build-time data, and runtime mutation belongs in a full-runtime island.`;\n case 5:\n return `Zero-runtime rule 5: ${params.detail ?? component} requires a component animation runtime. Use a static CSS transition or move this module to a full-runtime island.`;\n case 6:\n return `Zero-runtime rule 6: ${component} does not lower to one host element with className and is island-only. Move this module to a declared full-runtime island.`;\n case 7:\n return `Zero-runtime rule 7: ${params.api ?? component} reads Tamagui design state in JavaScript. Express the condition in CSS or move this module to a full-runtime island.`;\n case 8:\n return `Zero-runtime rule 8: ${params.detail ?? \"a module-level import\"} defeats the zero-runtime graph. ${params.remediation ?? \"\"}`.trimEnd();\n }\n}\nfunction zeroSideEffectImportMessage(specifier) {\n return zeroRuleMessage(8, {\n detail: `the bare side-effect import of \"${specifier}\", whose effects zero-runtime cannot prove or erase,`,\n remediation: `Remove it, or import the values this module uses so the compiler can lower and erase them.`\n });\n}\nfunction zeroStaticIslandImportMessage(specifier, islandId) {\n return zeroRuleMessage(8, {\n detail: `the static import of \"${specifier}\", which is declared as full-runtime island \"${islandId}\",`,\n remediation: `Import the generated island loader instead; the island is a separately built entry and the zero graph never contains it.`\n });\n}\nconst ZERO_PROVIDER_MESSAGE = \"[tamagui zero-runtime] Rule 4: TamaguiProvider is not used by a zero-runtime root. The bundler loads generated CSS and the compiler lowers static Theme nodes. Remove this provider or make this entry full-runtime.\";\nfunction zeroThemeBoundaryMessage(component, prop) {\n return `[tamagui zero-runtime] Rule 4: ${component} uses ${prop}, which creates a runtime component theme boundary. Replace it with a static <Theme name=\"...\"> wrapper (use name=\"inverse\" for themeInverse) or move this module to a full-runtime island.`;\n}\nfunction zeroConfigDriverMessage(name, outputStyle) {\n return `[tamagui zero-runtime] Rule 5: createTamagui animations must resolve to the CSS driver. Driver ${name} has outputStyle=${String(outputStyle)}. Remove it from the zero entry or move its consumers to a full-runtime island.`;\n}\nfunction zeroIslandThemeMessage(entry) {\n return `[tamagui zero-runtime] Rule 4: island ${entry} has no statically resolved theme context at this mount. Place the island boundary under a compiler-visible static <Theme> or make this entry full-runtime.`;\n}\nfunction zeroViolationsFromPlan(plan) {\n const violations = [];\n for (const diagnostic of plan.diagnostics) {\n if (!diagnostic.blocking) continue;\n const rule = zeroRuleForBailout(diagnostic);\n violations.push({\n rule,\n code: diagnostic.code,\n span: diagnostic.span,\n component: diagnostic.component,\n message: diagnostic.zeroMessage ?? zeroRuleMessage(rule, {\n component: diagnostic.component,\n prop: diagnostic.prop,\n detail: diagnostic.message\n })\n });\n }\n return violations;\n}\nfunction isTamaguiSpecifier(specifier) {\n return specifier === \"tamagui\" || specifier.startsWith(\"tamagui/\") || specifier.startsWith(\"@tamagui/\");\n}\nfunction collectNameOccurrences(program) {\n const occurrences = /* @__PURE__ */ new Map();\n walkAst(program, (node, parent, key) => {\n if (node.type !== \"Identifier\" && node.type !== \"JSXIdentifier\") return;\n const name = typeof node.name === \"string\" ? node.name : null;\n if (!name) return;\n if (parent) {\n if (parent.type === \"ImportSpecifier\" || parent.type === \"ImportDefaultSpecifier\" || parent.type === \"ImportNamespaceSpecifier\" || parent.type === \"ExportSpecifier\") {\n return;\n }\n if ((parent.type === \"MemberExpression\" || parent.type === \"JSXMemberExpression\" || parent.type === \"OptionalMemberExpression\") && key === \"property\" && !parent.computed) {\n return;\n }\n if ((parent.type === \"Property\" || parent.type === \"PropertyDefinition\") && key === \"key\" && !parent.computed) {\n return;\n }\n if (parent.type === \"JSXAttribute\" && key === \"name\") return;\n if ((parent.type === \"VariableDeclarator\" || parent.type === \"FunctionDeclaration\" || parent.type === \"ClassDeclaration\") && key === \"id\") {\n return;\n }\n }\n const entry = { start: node.start, end: node.end, parent: parent ?? null };\n const list = occurrences.get(name);\n if (list) list.push(entry);\n else occurrences.set(name, [entry]);\n });\n return occurrences;\n}\nfunction coversRange(outer, inner) {\n return outer.start <= inner.start && outer.end >= inner.end;\n}\nfunction stringValueOf(node) {\n return node && typeof node.value === \"string\" ? node.value : null;\n}\nfunction identifierNameOf(node) {\n return node && node.type === \"Identifier\" && typeof node.name === \"string\" ? node.name : null;\n}\nfunction referenceExpression(source, reference) {\n const parent = reference.parent;\n const node = parent && (parent.type === \"ConditionalExpression\" || parent.type === \"LogicalExpression\" || parent.type === \"CallExpression\" || parent.type === \"MemberExpression\" || parent.type === \"ArrayExpression\") ? parent : reference;\n const text = source.slice(node.start, node.end).replace(/\\s+/g, \" \").trim();\n return text.length > 80 ? `${text.slice(0, 77)}...` : text;\n}\nfunction collectStyledDeclarators(program, styledLocals) {\n const found = [];\n for (const statement of childNodes(program, \"body\")) {\n const exported = statement.type === \"ExportNamedDeclaration\";\n const declaration = exported ? childNode(statement, \"declaration\") : statement;\n if (!declaration || declaration.type !== \"VariableDeclaration\") continue;\n const declarators = childNodes(declaration, \"declarations\");\n if (declarators.length !== 1) continue;\n const declarator = declarators[0];\n const name = identifierNameOf(childNode(declarator, \"id\"));\n const init = childNode(declarator, \"init\");\n if (!name || !init || init.type !== \"CallExpression\") continue;\n const callee = identifierNameOf(childNode(init, \"callee\"));\n if (!callee || !styledLocals.has(callee)) continue;\n found.push({\n name,\n declarator,\n declaration: exported ? statement : declaration,\n exported\n });\n }\n return found;\n}\nfunction planZeroErasure(input) {\n const { id, source, loweredEdits } = input;\n const program = parseModuleAst(source, id);\n const violations = [];\n const span = (node) => ({ id, start: node.start, end: node.end });\n const bindings = [];\n const tamaguiDeclarations = [];\n for (const statement of childNodes(program, \"body\")) {\n if (statement.type !== \"ImportDeclaration\") continue;\n if (statement.importKind === \"type\") continue;\n const moduleSpecifier = stringValueOf(childNode(statement, \"source\"));\n if (!moduleSpecifier) continue;\n const islandId = input.islandIdFor(moduleSpecifier);\n if (islandId) {\n violations.push({\n rule: 8,\n code: \"zero/static-island-import\",\n span: span(statement),\n message: zeroStaticIslandImportMessage(moduleSpecifier, islandId)\n });\n continue;\n }\n if (!input.isTamaguiSpecifier(moduleSpecifier)) continue;\n tamaguiDeclarations.push(statement);\n const specifiers = childNodes(statement, \"specifiers\");\n if (specifiers.length === 0) {\n violations.push({\n rule: 8,\n code: \"zero/side-effect-import\",\n span: span(statement),\n message: zeroSideEffectImportMessage(moduleSpecifier)\n });\n continue;\n }\n for (const specifier of specifiers) {\n if (specifier.importKind === \"type\") continue;\n const local = identifierNameOf(childNode(specifier, \"local\"));\n if (!local) continue;\n bindings.push({\n local,\n imported: identifierNameOf(childNode(specifier, \"imported\")) ?? local,\n specifierNode: specifier,\n declaration: statement,\n moduleSpecifier\n });\n }\n }\n if (bindings.length === 0) {\n return {\n edits: [],\n removedModules: [],\n removedBindings: [],\n erasedStyledDefinitions: [],\n erasedExports: [],\n rewrittenAnimatedNumberHooks: [],\n liveBindings: [],\n violations\n };\n }\n const consumed = loweredEdits.filter((edit) => edit.end > edit.start).map((edit) => ({ start: edit.start, end: edit.end }));\n const occurrences = collectNameOccurrences(program);\n const referencesOf = (local) => occurrences.get(local) ?? [];\n const isConsumed = (reference) => consumed.some((range) => coversRange(range, reference));\n const styledLocals = new Set(\n bindings.filter((binding) => binding.imported === \"styled\").map((b) => b.local)\n );\n const erasedStyledDefinitions = [];\n const erasedExports = [];\n const styledEdits = [];\n for (const definition of collectStyledDeclarators(program, styledLocals)) {\n const references = referencesOf(definition.name);\n if (references.length === 0) continue;\n if (!references.every(isConsumed)) continue;\n styledEdits.push({\n start: definition.declaration.start,\n end: definition.declaration.end,\n content: \"\",\n origin: span(definition.declaration)\n });\n consumed.push({\n start: definition.declaration.start,\n end: definition.declaration.end\n });\n erasedStyledDefinitions.push(definition.name);\n if (definition.exported) erasedExports.push(definition.name);\n }\n const animatedNumberBindings = bindings.filter(\n (binding) => ZERO_ANIMATED_NUMBER_HOOKS.has(binding.imported) && referencesOf(binding.local).some((reference) => !isConsumed(reference))\n );\n const rewrittenAnimatedNumberHooks = animatedNumberBindings.map(\n (binding) => binding.imported\n );\n const animatedNumberSpecifiers = new Set(\n animatedNumberBindings.map((binding) => binding.specifierNode)\n );\n const leafImportEdits = [];\n for (const declaration of tamaguiDeclarations) {\n const rewritten = animatedNumberBindings.filter(\n (binding) => binding.declaration === declaration\n );\n if (rewritten.length === 0) continue;\n leafImportEdits.push({\n start: declaration.start,\n end: declaration.start,\n content: `import { ${rewritten.map(\n (binding) => binding.imported === binding.local ? binding.imported : `${binding.imported} as ${binding.local}`\n ).join(\", \")} } from ${JSON.stringify(ZERO_ANIMATED_NUMBER_MODULE)};\n`,\n origin: span(declaration)\n });\n }\n const deadBindings = new Set(animatedNumberSpecifiers);\n const removedBindings = [];\n const liveBindings = [];\n for (const binding of bindings) {\n if (animatedNumberSpecifiers.has(binding.specifierNode)) continue;\n const references = referencesOf(binding.local);\n if (references.length > 0 && !references.every(isConsumed)) {\n liveBindings.push(binding);\n continue;\n }\n deadBindings.add(binding.specifierNode);\n removedBindings.push(binding.local);\n }\n const edits = [...styledEdits, ...leafImportEdits];\n const removedModules = [];\n for (const declaration of tamaguiDeclarations) {\n const specifiers = childNodes(declaration, \"specifiers\").filter(\n (specifier) => specifier.importKind !== \"type\"\n );\n if (specifiers.length === 0) continue;\n const dead = specifiers.filter((specifier) => deadBindings.has(specifier));\n if (dead.length === 0) continue;\n if (dead.length === specifiers.length) {\n edits.push({\n start: declaration.start,\n end: declaration.end,\n content: \"\",\n origin: span(declaration)\n });\n removedModules.push(stringValueOf(childNode(declaration, \"source\")));\n continue;\n }\n const survivors = specifiers.filter((specifier) => !deadBindings.has(specifier));\n const braceStart = specifiers[0].start;\n const braceEnd = specifiers[specifiers.length - 1].end;\n edits.push({\n start: braceStart,\n end: braceEnd,\n content: survivors.map((specifier) => source.slice(specifier.start, specifier.end)).join(\", \"),\n origin: span({ start: braceStart, end: braceEnd })\n });\n }\n for (const binding of liveBindings) {\n const live = referencesOf(binding.local).filter(\n (reference) => !isConsumed(reference)\n )[0];\n if (ZERO_DESIGN_STATE_APIS.has(binding.imported)) {\n violations.push({\n rule: 7,\n code: \"zero/design-state-read\",\n span: span(live),\n message: zeroRuleMessage(7, { api: binding.imported })\n });\n continue;\n }\n if (ZERO_PROVIDER_EXPORTS.has(binding.imported)) {\n violations.push({\n rule: 4,\n code: \"zero/runtime-provider\",\n span: span(live),\n component: binding.imported,\n message: ZERO_PROVIDER_MESSAGE\n });\n continue;\n }\n violations.push({\n rule: 2,\n code: \"zero/live-tamagui-reference\",\n span: span(live),\n component: binding.local,\n message: zeroRuleMessage(2, { expression: referenceExpression(source, live) })\n });\n }\n return {\n edits,\n removedModules,\n removedBindings,\n erasedStyledDefinitions,\n erasedExports,\n rewrittenAnimatedNumberHooks,\n liveBindings: liveBindings.map((binding) => binding.local),\n violations\n };\n}\nexport {\n ZERO_ANIMATED_NUMBER_HOOKS,\n ZERO_ANIMATED_NUMBER_MODULE,\n ZERO_DESIGN_STATE_APIS,\n ZERO_FAILURE_FOOTER,\n ZERO_PROVIDER_EXPORTS,\n ZERO_PROVIDER_MESSAGE,\n isTamaguiSpecifier,\n planZeroErasure,\n zeroConfigDriverMessage,\n zeroIslandThemeMessage,\n zeroRuleMessage,\n zeroSideEffectImportMessage,\n zeroStaticIslandImportMessage,\n zeroThemeBoundaryMessage,\n zeroViolationsFromPlan\n};\n//# sourceMappingURL=zero.js.map\n"],"mappings":";;;;;AAGA,MAAM,sBAAsB;AAC5B,MAAM,yCAAyC,IAAI,IAAI;CACrD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,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AAQ;GACnB,SAAS,gBAAgB,GAAG,EAAE,YAAY,oBAAoB,QAAQ,IAAI,EAAE,CAAC;EAC/E,CAAC;CACH;CACA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA,cAAc,aAAa,KAAK,YAAY,QAAQ,KAAK;EACzD;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"zero.js","names":[],"sources":["esm/zero.js"],"sourcesContent":["import { childNode, childNodes, walkAst } from \"./ast\";\nimport { zeroRuleForBailout } from \"./diagnostics\";\nimport { parseModuleAst } from \"./yuku\";\nconst ZERO_FAILURE_FOOTER = \"Fix every site or move the owning module to a declared full-runtime island. Zero-runtime never retains one component as a fallback.\";\nconst ZERO_DESIGN_STATE_APIS = /* @__PURE__ */ new Set([\n \"useMedia\",\n \"useTheme\",\n \"useThemeName\",\n \"splitStyleProps\",\n \"getConfig\",\n \"getTokens\",\n \"useTokens\",\n \"getVariableValue\",\n \"getToken\",\n \"getTokenValue\",\n \"useConfiguration\",\n \"useAnimationDriver\",\n \"updateTheme\",\n \"addTheme\",\n \"replaceTheme\",\n \"forceUpdateThemes\"\n]);\nconst ZERO_PROVIDER_EXPORTS = /* @__PURE__ */ new Set([\n \"TamaguiProvider\",\n \"ThemeProvider\",\n \"TamaguiRoot\"\n]);\nconst ZERO_ANIMATED_NUMBER_HOOKS = /* @__PURE__ */ new Set([\n \"useAnimatedNumber\",\n \"useAnimatedNumberStyle\",\n \"useAnimatedNumbersStyle\",\n \"useAnimatedNumberReaction\"\n]);\nconst ZERO_ANIMATED_NUMBER_MODULE = \"@tamagui/animations-css/animated-number\";\nfunction zeroRuleMessage(rule, params) {\n const component = params.component ?? \"this component\";\n switch (rule) {\n case 1:\n return `Zero-runtime rule 1: ${component} cannot receive a prop spread because the compiler cannot prove it is style-free. Pass non-style props explicitly or move this module to a full-runtime island.`;\n case 2:\n return `Zero-runtime rule 2: component expression ${params.expression ?? component} does not resolve to one literal lowerable host component. Use a literal Tamagui or html.* component, or move this module to a full-runtime island.`;\n case 3:\n return `Zero-runtime rule 3: value for ${params.prop ?? \"a style prop\"} on ${component} cannot be lowered: ${params.detail ?? \"the compiler could not evaluate it\"}. Use a supported build-time value or move this module to a full-runtime island.`;\n case 4:\n return `Zero-runtime rule 4: ${params.detail ?? component} requires runtime theme or config state. Theme names and modifier targets must be statically enumerable, Theme value props and config must be build-time data, and runtime mutation belongs in a full-runtime island.`;\n case 5:\n return `Zero-runtime rule 5: ${params.detail ?? component} requires a component animation runtime. Use a static CSS transition or move this module to a full-runtime island.`;\n case 6:\n return `Zero-runtime rule 6: ${component} does not lower to one host element with className and is island-only. Move this module to a declared full-runtime island.`;\n case 7:\n return `Zero-runtime rule 7: ${params.api ?? component} reads Tamagui design state in JavaScript. Express the condition in CSS or move this module to a full-runtime island.`;\n case 8:\n return `Zero-runtime rule 8: ${params.detail ?? \"a module-level import\"} defeats the zero-runtime graph. ${params.remediation ?? \"\"}`.trimEnd();\n }\n}\nfunction zeroSideEffectImportMessage(specifier) {\n return zeroRuleMessage(8, {\n detail: `the bare side-effect import of \"${specifier}\", whose effects zero-runtime cannot prove or erase,`,\n remediation: `Remove it, or import the values this module uses so the compiler can lower and erase them.`\n });\n}\nfunction zeroStaticIslandImportMessage(specifier, islandId) {\n return zeroRuleMessage(8, {\n detail: `the static import of \"${specifier}\", which is declared as full-runtime island \"${islandId}\",`,\n remediation: `Import the generated island loader instead; the island is a separately built entry and the zero graph never contains it.`\n });\n}\nconst ZERO_PROVIDER_MESSAGE = \"[tamagui zero-runtime] Rule 4: TamaguiProvider is not used by a zero-runtime root. The bundler loads generated CSS and the compiler lowers static Theme nodes. Remove this provider or make this entry full-runtime.\";\nfunction zeroThemeBoundaryMessage(component, prop) {\n return `[tamagui zero-runtime] Rule 4: ${component} uses ${prop}, which creates a runtime component theme boundary. Replace it with a static <Theme name=\"...\"> wrapper (use name=\"inverse\" for themeInverse) or move this module to a full-runtime island.`;\n}\nfunction zeroConfigDriverMessage(name, outputStyle) {\n return `[tamagui zero-runtime] Rule 5: createTamagui animations must resolve to the CSS driver. Driver ${name} has outputStyle=${String(outputStyle)}. Remove it from the zero entry or move its consumers to a full-runtime island.`;\n}\nfunction zeroIslandThemeMessage(entry) {\n return `[tamagui zero-runtime] Rule 4: island ${entry} has no statically resolved theme context at this mount. Place the island boundary under a compiler-visible static <Theme> or make this entry full-runtime.`;\n}\nfunction zeroViolationsFromPlan(plan) {\n const violations = [];\n for (const diagnostic of plan.diagnostics) {\n if (!diagnostic.blocking) continue;\n const rule = zeroRuleForBailout(diagnostic);\n violations.push({\n rule,\n code: diagnostic.code,\n span: diagnostic.span,\n component: diagnostic.component,\n message: diagnostic.zeroMessage ?? zeroRuleMessage(rule, {\n component: diagnostic.component,\n prop: diagnostic.prop,\n detail: diagnostic.message\n })\n });\n }\n return violations;\n}\nfunction isTamaguiSpecifier(specifier) {\n return specifier === \"tamagui\" || specifier.startsWith(\"tamagui/\") || specifier.startsWith(\"@tamagui/\");\n}\nfunction collectNameOccurrences(program) {\n const occurrences = /* @__PURE__ */ new Map();\n walkAst(program, (node, parent, key) => {\n if (node.type !== \"Identifier\" && node.type !== \"JSXIdentifier\") return;\n const name = typeof node.name === \"string\" ? node.name : null;\n if (!name) return;\n if (parent) {\n if (parent.type === \"ImportSpecifier\" || parent.type === \"ImportDefaultSpecifier\" || parent.type === \"ImportNamespaceSpecifier\" || parent.type === \"ExportSpecifier\") {\n return;\n }\n if ((parent.type === \"MemberExpression\" || parent.type === \"JSXMemberExpression\" || parent.type === \"OptionalMemberExpression\") && key === \"property\" && !parent.computed) {\n return;\n }\n if ((parent.type === \"Property\" || parent.type === \"PropertyDefinition\") && key === \"key\" && !parent.computed) {\n return;\n }\n if (parent.type === \"JSXAttribute\" && key === \"name\") return;\n if ((parent.type === \"VariableDeclarator\" || parent.type === \"FunctionDeclaration\" || parent.type === \"ClassDeclaration\") && key === \"id\") {\n return;\n }\n }\n const entry = { start: node.start, end: node.end, parent: parent ?? null };\n const list = occurrences.get(name);\n if (list) list.push(entry);\n else occurrences.set(name, [entry]);\n });\n return occurrences;\n}\nfunction coversRange(outer, inner) {\n return outer.start <= inner.start && outer.end >= inner.end;\n}\nfunction stringValueOf(node) {\n return node && typeof node.value === \"string\" ? node.value : null;\n}\nfunction identifierNameOf(node) {\n return node && node.type === \"Identifier\" && typeof node.name === \"string\" ? node.name : null;\n}\nfunction referenceExpression(source, reference) {\n const parent = reference.parent;\n const node = parent && (parent.type === \"ConditionalExpression\" || parent.type === \"LogicalExpression\" || parent.type === \"CallExpression\" || parent.type === \"MemberExpression\" || parent.type === \"ArrayExpression\") ? parent : reference;\n const text = source.slice(node.start, node.end).replace(/\\s+/g, \" \").trim();\n return text.length > 80 ? `${text.slice(0, 77)}...` : text;\n}\nfunction collectStyledDeclarators(program, styledLocals) {\n const found = [];\n for (const statement of childNodes(program, \"body\")) {\n const exported = statement.type === \"ExportNamedDeclaration\";\n const declaration = exported ? childNode(statement, \"declaration\") : statement;\n if (!declaration || declaration.type !== \"VariableDeclaration\") continue;\n const declarators = childNodes(declaration, \"declarations\");\n if (declarators.length !== 1) continue;\n const declarator = declarators[0];\n const name = identifierNameOf(childNode(declarator, \"id\"));\n const init = childNode(declarator, \"init\");\n if (!name || !init || init.type !== \"CallExpression\") continue;\n const callee = identifierNameOf(childNode(init, \"callee\"));\n if (!callee || !styledLocals.has(callee)) continue;\n found.push({\n name,\n declarator,\n declaration: exported ? statement : declaration,\n exported\n });\n }\n return found;\n}\nfunction planZeroErasure(input) {\n const { id, source, loweredEdits } = input;\n const program = parseModuleAst(source, id);\n const violations = [];\n const span = (node) => ({ id, start: node.start, end: node.end });\n const bindings = [];\n const tamaguiDeclarations = [];\n for (const statement of childNodes(program, \"body\")) {\n if (statement.type !== \"ImportDeclaration\") continue;\n if (statement.importKind === \"type\") continue;\n const moduleSpecifier = stringValueOf(childNode(statement, \"source\"));\n if (!moduleSpecifier) continue;\n const islandId = input.islandIdFor(moduleSpecifier);\n if (islandId) {\n violations.push({\n rule: 8,\n code: \"zero/static-island-import\",\n span: span(statement),\n message: zeroStaticIslandImportMessage(moduleSpecifier, islandId)\n });\n continue;\n }\n if (!input.isTamaguiSpecifier(moduleSpecifier)) continue;\n tamaguiDeclarations.push(statement);\n const specifiers = childNodes(statement, \"specifiers\");\n if (specifiers.length === 0) {\n violations.push({\n rule: 8,\n code: \"zero/side-effect-import\",\n span: span(statement),\n message: zeroSideEffectImportMessage(moduleSpecifier)\n });\n continue;\n }\n for (const specifier of specifiers) {\n if (specifier.importKind === \"type\") continue;\n const local = identifierNameOf(childNode(specifier, \"local\"));\n if (!local) continue;\n bindings.push({\n local,\n imported: identifierNameOf(childNode(specifier, \"imported\")) ?? local,\n specifierNode: specifier,\n declaration: statement,\n moduleSpecifier\n });\n }\n }\n if (bindings.length === 0) {\n return {\n edits: [],\n removedModules: [],\n removedBindings: [],\n erasedStyledDefinitions: [],\n erasedExports: [],\n rewrittenAnimatedNumberHooks: [],\n liveBindings: [],\n violations\n };\n }\n const consumed = loweredEdits.filter((edit) => edit.end > edit.start).map((edit) => ({ start: edit.start, end: edit.end }));\n const occurrences = collectNameOccurrences(program);\n const referencesOf = (local) => occurrences.get(local) ?? [];\n const isConsumed = (reference) => consumed.some((range) => coversRange(range, reference));\n const styledLocals = new Set(\n bindings.filter((binding) => binding.imported === \"styled\").map((b) => b.local)\n );\n const erasedStyledDefinitions = [];\n const erasedExports = [];\n const styledEdits = [];\n for (const definition of collectStyledDeclarators(program, styledLocals)) {\n const references = referencesOf(definition.name);\n if (references.length === 0) continue;\n if (!references.every(isConsumed)) continue;\n styledEdits.push({\n start: definition.declaration.start,\n end: definition.declaration.end,\n content: \"\",\n origin: span(definition.declaration)\n });\n consumed.push({\n start: definition.declaration.start,\n end: definition.declaration.end\n });\n erasedStyledDefinitions.push(definition.name);\n if (definition.exported) erasedExports.push(definition.name);\n }\n const animatedNumberBindings = bindings.filter(\n (binding) => ZERO_ANIMATED_NUMBER_HOOKS.has(binding.imported) && referencesOf(binding.local).some((reference) => !isConsumed(reference))\n );\n const rewrittenAnimatedNumberHooks = animatedNumberBindings.map(\n (binding) => binding.imported\n );\n const animatedNumberSpecifiers = new Set(\n animatedNumberBindings.map((binding) => binding.specifierNode)\n );\n const leafImportEdits = [];\n for (const declaration of tamaguiDeclarations) {\n const rewritten = animatedNumberBindings.filter(\n (binding) => binding.declaration === declaration\n );\n if (rewritten.length === 0) continue;\n leafImportEdits.push({\n start: declaration.start,\n end: declaration.start,\n content: `import { ${rewritten.map(\n (binding) => binding.imported === binding.local ? binding.imported : `${binding.imported} as ${binding.local}`\n ).join(\", \")} } from ${JSON.stringify(ZERO_ANIMATED_NUMBER_MODULE)};\n`,\n origin: span(declaration)\n });\n }\n const deadBindings = new Set(animatedNumberSpecifiers);\n const removedBindings = [];\n const liveBindings = [];\n for (const binding of bindings) {\n if (animatedNumberSpecifiers.has(binding.specifierNode)) continue;\n const references = referencesOf(binding.local);\n if (references.length > 0 && !references.every(isConsumed)) {\n liveBindings.push(binding);\n continue;\n }\n deadBindings.add(binding.specifierNode);\n removedBindings.push(binding.local);\n }\n const edits = [...styledEdits, ...leafImportEdits];\n const removedModules = [];\n for (const declaration of tamaguiDeclarations) {\n const specifiers = childNodes(declaration, \"specifiers\").filter(\n (specifier) => specifier.importKind !== \"type\"\n );\n if (specifiers.length === 0) continue;\n const dead = specifiers.filter((specifier) => deadBindings.has(specifier));\n if (dead.length === 0) continue;\n if (dead.length === specifiers.length) {\n edits.push({\n start: declaration.start,\n end: declaration.end,\n content: \"\",\n origin: span(declaration)\n });\n removedModules.push(stringValueOf(childNode(declaration, \"source\")));\n continue;\n }\n const survivors = specifiers.filter((specifier) => !deadBindings.has(specifier));\n const braceStart = specifiers[0].start;\n const braceEnd = specifiers[specifiers.length - 1].end;\n edits.push({\n start: braceStart,\n end: braceEnd,\n content: survivors.map((specifier) => source.slice(specifier.start, specifier.end)).join(\", \"),\n origin: span({ start: braceStart, end: braceEnd })\n });\n }\n for (const binding of liveBindings) {\n const live = referencesOf(binding.local).filter(\n (reference) => !isConsumed(reference)\n )[0];\n if (ZERO_DESIGN_STATE_APIS.has(binding.imported)) {\n violations.push({\n rule: 7,\n code: \"zero/design-state-read\",\n span: span(live),\n message: zeroRuleMessage(7, { api: binding.imported })\n });\n continue;\n }\n if (ZERO_PROVIDER_EXPORTS.has(binding.imported)) {\n violations.push({\n rule: 4,\n code: \"zero/runtime-provider\",\n span: span(live),\n component: binding.imported,\n message: ZERO_PROVIDER_MESSAGE\n });\n continue;\n }\n violations.push({\n rule: 2,\n code: \"zero/live-tamagui-reference\",\n span: span(live),\n component: binding.local,\n message: zeroRuleMessage(2, { expression: referenceExpression(source, live) })\n });\n }\n return {\n edits,\n removedModules,\n removedBindings,\n erasedStyledDefinitions,\n erasedExports,\n rewrittenAnimatedNumberHooks,\n liveBindings: liveBindings.map((binding) => binding.local),\n violations\n };\n}\nexport {\n ZERO_ANIMATED_NUMBER_HOOKS,\n ZERO_ANIMATED_NUMBER_MODULE,\n ZERO_DESIGN_STATE_APIS,\n ZERO_FAILURE_FOOTER,\n ZERO_PROVIDER_EXPORTS,\n ZERO_PROVIDER_MESSAGE,\n isTamaguiSpecifier,\n planZeroErasure,\n zeroConfigDriverMessage,\n zeroIslandThemeMessage,\n zeroRuleMessage,\n zeroSideEffectImportMessage,\n zeroStaticIslandImportMessage,\n zeroThemeBoundaryMessage,\n zeroViolationsFromPlan\n};\n//# sourceMappingURL=zero.js.map\n"],"mappings":";;;;;AAGA,MAAM,sBAAsB;AAC5B,MAAM,yCAAyC,IAAI,IAAI;CACrD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,MAAM,wCAAwC,IAAI,IAAI;CACpD;CACA;CACA;AACF,CAAC;AACD,MAAM,6CAA6C,IAAI,IAAI;CACzD;CACA;CACA;CACA;AACF,CAAC;AACD,MAAM,8BAA8B;AACpC,SAAS,gBAAgB,MAAM,QAAQ;CACrC,MAA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AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/compiler-core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.831.1",
|
|
4
4
|
"description": "Shared parser-independent Tamagui compiler graph and element IR",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"yuku-analyzer": "0.6.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@tamagui/build": "3.0.0-beta.
|
|
43
|
+
"@tamagui/build": "3.0.0-beta.831.1",
|
|
44
44
|
"typescript": "~6.0.3"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
package/src/zero.ts
CHANGED
package/types/zero.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zero.d.ts","sourceRoot":"","sources":["../src/zero.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAW,gBAAgB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C;;;;;;;;GAQG;AAEH,YAAY,EAAE,QAAQ,EAAE,CAAA;AAExB,MAAM,MAAM,iBAAiB,GACzB,2BAA2B,GAC3B,yBAAyB,GACzB,6BAA6B,GAC7B,wBAAwB,GACxB,uBAAuB,GACvB,aAAa,CAAC,MAAM,CAAC,CAAA;AAEzB,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,EAAE,iBAAiB,CAAA;IACvB,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,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