@marko/runtime-tags 6.0.168 → 6.0.170

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/debug/dom.js CHANGED
@@ -550,8 +550,9 @@ function enableBranches() {
550
550
  branchesEnabled = 1;
551
551
  }
552
552
  const ready = /* @__PURE__ */ ((_) => (id) => {
553
- readyLookup[id]?.();
553
+ const cb = readyLookup[id];
554
554
  readyLookup[id] = 1;
555
+ cb?.();
555
556
  })(readyLookup = {});
556
557
  function initEmbedded(readyId, runtimeId) {
557
558
  embedEnabled = 1;
@@ -647,7 +648,7 @@ function init(runtimeId = "M") {
647
648
  if (readyLookup) {
648
649
  for (const readyId in render.b) if (readyLookup[readyId] !== 1) {
649
650
  readyLookup[readyId] = ((prev) => () => {
650
- render.m();
651
+ runResumeEffects(render);
651
652
  prev?.();
652
653
  })(readyLookup[readyId]);
653
654
  return effects;
@@ -1652,10 +1653,9 @@ function abort(ctrl) {
1652
1653
  }
1653
1654
  //#endregion
1654
1655
  //#region src/common/compat-meta.ts
1655
- const prefix = "$compat_";
1656
- const RENDERER_REGISTER_ID = prefix + "renderer";
1657
- const SET_SCOPE_REGISTER_ID = prefix + "setScope";
1658
- const RENDER_BODY_ID = prefix + "renderBody";
1656
+ const RENDERER_REGISTER_ID = "$compat_renderer";
1657
+ const SET_SCOPE_REGISTER_ID = "$compat_setScope";
1658
+ const RENDER_BODY_ID = "$compat_renderBody";
1659
1659
  //#endregion
1660
1660
  //#region src/dom/compat.ts
1661
1661
  const classIdToBranch = /* @__PURE__ */ new Map();
@@ -548,8 +548,9 @@ function enableBranches() {
548
548
  branchesEnabled = 1;
549
549
  }
550
550
  const ready = /* @__PURE__ */ ((_) => (id) => {
551
- readyLookup[id]?.();
551
+ const cb = readyLookup[id];
552
552
  readyLookup[id] = 1;
553
+ cb?.();
553
554
  })(readyLookup = {});
554
555
  function initEmbedded(readyId, runtimeId) {
555
556
  embedEnabled = 1;
@@ -645,7 +646,7 @@ function init(runtimeId = "M") {
645
646
  if (readyLookup) {
646
647
  for (const readyId in render.b) if (readyLookup[readyId] !== 1) {
647
648
  readyLookup[readyId] = ((prev) => () => {
648
- render.m();
649
+ runResumeEffects(render);
649
650
  prev?.();
650
651
  })(readyLookup[readyId]);
651
652
  return effects;
@@ -1650,10 +1651,9 @@ function abort(ctrl) {
1650
1651
  }
1651
1652
  //#endregion
1652
1653
  //#region src/common/compat-meta.ts
1653
- const prefix = "$compat_";
1654
- const RENDERER_REGISTER_ID = prefix + "renderer";
1655
- const SET_SCOPE_REGISTER_ID = prefix + "setScope";
1656
- const RENDER_BODY_ID = prefix + "renderBody";
1654
+ const RENDERER_REGISTER_ID = "$compat_renderer";
1655
+ const SET_SCOPE_REGISTER_ID = "$compat_setScope";
1656
+ const RENDER_BODY_ID = "$compat_renderBody";
1657
1657
  //#endregion
1658
1658
  //#region src/dom/compat.ts
1659
1659
  const classIdToBranch = /* @__PURE__ */ new Map();
@@ -2409,10 +2409,9 @@ function normalizeBoolAttrValue(value) {
2409
2409
  }
2410
2410
  //#endregion
2411
2411
  //#region src/common/compat-meta.ts
2412
- const prefix = "$compat_";
2413
- const RENDERER_REGISTER_ID = prefix + "renderer";
2414
- const SET_SCOPE_REGISTER_ID = prefix + "setScope";
2415
- const RENDER_BODY_ID = prefix + "renderBody";
2412
+ const RENDERER_REGISTER_ID = "$compat_renderer";
2413
+ const SET_SCOPE_REGISTER_ID = "$compat_setScope";
2414
+ const RENDER_BODY_ID = "$compat_renderBody";
2416
2415
  //#endregion
2417
2416
  //#region src/common/meta.ts
2418
2417
  const DYNAMIC_TAG_SCRIPT_REGISTER_ID = "_dynamicTagScript";
@@ -2407,10 +2407,9 @@ function normalizeBoolAttrValue(value) {
2407
2407
  }
2408
2408
  //#endregion
2409
2409
  //#region src/common/compat-meta.ts
2410
- const prefix = "$compat_";
2411
- const RENDERER_REGISTER_ID = prefix + "renderer";
2412
- const SET_SCOPE_REGISTER_ID = prefix + "setScope";
2413
- const RENDER_BODY_ID = prefix + "renderBody";
2410
+ const RENDERER_REGISTER_ID = "$compat_renderer";
2411
+ const SET_SCOPE_REGISTER_ID = "$compat_setScope";
2412
+ const RENDER_BODY_ID = "$compat_renderBody";
2414
2413
  //#endregion
2415
2414
  //#region src/common/meta.ts
2416
2415
  const DYNAMIC_TAG_SCRIPT_REGISTER_ID = "_dynamicTagScript";
package/dist/dom.js CHANGED
@@ -21,7 +21,8 @@ let empty = [], rest = Symbol(), toDelimitedString = function toDelimitedString(
21
21
  walker.nextSibling();
22
22
  } else storedMultiplier = currentMultiplier * 10 + value - 117;
23
23
  }, cloneCache = {}, registeredValues = {}, curRuntimeId, readyLookup, branchesEnabled, embedEnabled, ready = /* @__PURE__ */ ((_) => (id) => {
24
- readyLookup[id]?.(), readyLookup[id] = 1;
24
+ let cb = readyLookup[id];
25
+ readyLookup[id] = 1, cb?.();
25
26
  })(readyLookup = {}), isResuming, inputType = "", controllableDelegate = /* @__PURE__ */ createDelegator(), _dynamic_tag = function(nodeAccessor, getContent, getTagVar, inputIsArgs) {
26
27
  nodeAccessor = decodeAccessor(nodeAccessor);
27
28
  let childScopeAccessor = "A" + nodeAccessor, rendererAccessor = "D" + nodeAccessor;
@@ -441,7 +442,7 @@ function init(runtimeId = "M") {
441
442
  return render.m = (effects = []) => {
442
443
  if (readyLookup) {
443
444
  for (let readyId in render.b) if (readyLookup[readyId] !== 1) return readyLookup[readyId] = ((prev) => () => {
444
- render.m(), prev?.();
445
+ runResumeEffects(render), prev?.();
445
446
  })(readyLookup[readyId]), effects;
446
447
  render.b = 0;
447
448
  }
package/dist/dom.mjs CHANGED
@@ -21,7 +21,8 @@ let empty = [], rest = Symbol(), toDelimitedString = function toDelimitedString(
21
21
  walker.nextSibling();
22
22
  } else storedMultiplier = currentMultiplier * 10 + value - 117;
23
23
  }, cloneCache = {}, registeredValues = {}, curRuntimeId, readyLookup, branchesEnabled, embedEnabled, ready = /* @__PURE__ */ ((_) => (id) => {
24
- readyLookup[id]?.(), readyLookup[id] = 1;
24
+ let cb = readyLookup[id];
25
+ readyLookup[id] = 1, cb?.();
25
26
  })(readyLookup = {}), isResuming, inputType = "", controllableDelegate = /* @__PURE__ */ createDelegator(), _dynamic_tag = function(nodeAccessor, getContent, getTagVar, inputIsArgs) {
26
27
  nodeAccessor = decodeAccessor(nodeAccessor);
27
28
  let childScopeAccessor = "A" + nodeAccessor, rendererAccessor = "D" + nodeAccessor;
@@ -440,7 +441,7 @@ function init(runtimeId = "M") {
440
441
  return render.m = (effects = []) => {
441
442
  if (readyLookup) {
442
443
  for (let readyId in render.b) if (readyLookup[readyId] !== 1) return readyLookup[readyId] = ((prev) => () => {
443
- render.m(), prev?.();
444
+ runResumeEffects(render), prev?.();
444
445
  })(readyLookup[readyId]), effects;
445
446
  render.b = 0;
446
447
  }
@@ -26,6 +26,8 @@ let package_json = require("../../package.json");
26
26
  let _marko_compiler = require("@marko/compiler");
27
27
  let _marko_compiler_babel_utils = require("@marko/compiler/babel-utils");
28
28
  let _marko_compiler_config = require("@marko/compiler/config");
29
+ let node_path = require("node:path");
30
+ node_path = __toESM(node_path);
29
31
  let path = require("path");
30
32
  path = __toESM(path);
31
33
  let magic_string = require("magic-string");
@@ -1091,7 +1093,7 @@ function isOutputHTML() {
1091
1093
  return getMarkoOpts().output === "html";
1092
1094
  }
1093
1095
  function isOutputDOM() {
1094
- return !isOutputHTML();
1096
+ return getMarkoOpts().output === "dom";
1095
1097
  }
1096
1098
  function getMarkoOpts() {
1097
1099
  return (0, _marko_compiler_babel_utils.getFile)().markoOpts;
@@ -1625,7 +1627,7 @@ var function_default = { analyze(fn) {
1625
1627
  const section = getSection(fn);
1626
1628
  const fnExtra = node.extra ??= {};
1627
1629
  fnExtra.section = section;
1628
- fnExtra.name = node.id?.name || (isMarkoAttribute(markoRoot) ? markoRoot.node.default ? _marko_compiler.types.toIdentifier(markoRoot.parentPath.has("var") ? markoRoot.parentPath.get("var") : markoRoot.parentPath.get("name")) : markoRoot.node.name : _marko_compiler.types.isVariableDeclarator(fn.parent) && _marko_compiler.types.isIdentifier(fn.parent.id) ? fn.parent.id.name : _marko_compiler.types.isObjectMethod(node) && _marko_compiler.types.isIdentifier(node.key) ? node.key.name : "anonymous");
1630
+ fnExtra.name = node.id?.name || (isMarkoAttribute(markoRoot) ? markoRoot.node.default ? _marko_compiler.types.toIdentifier((markoRoot.parentPath.has("var") ? markoRoot.parentPath.get("var") : markoRoot.parentPath.get("name")).toString()) : markoRoot.node.name : _marko_compiler.types.isVariableDeclarator(fn.parent) && _marko_compiler.types.isIdentifier(fn.parent.id) ? fn.parent.id.name : _marko_compiler.types.isObjectMethod(node) && _marko_compiler.types.isIdentifier(node.key) ? node.key.name : "anonymous");
1629
1631
  if (isStaticRoot(markoRoot)) {
1630
1632
  const refs = getStaticDeclRefs(fnExtra, fn);
1631
1633
  if (refs === true) registerFunction(fnExtra, true);
@@ -1760,11 +1762,11 @@ var entry_builder_default = {
1760
1762
  build(entryFile, exportInit) {
1761
1763
  const state = entryFile[kState];
1762
1764
  if (!state) throw entryFile.path.buildCodeFrameError("Unable to build hydrate code, no files were visited before finalizing the build");
1763
- const body = state.imports.map((it) => _marko_compiler.types.importDeclaration([], _marko_compiler.types.stringLiteral(it)));
1765
+ const body = [];
1764
1766
  if (state.init) {
1765
1767
  const isPage = entryFile.path.node.extra.page;
1766
1768
  const initHelper = isPage ? "init" : "initEmbedded";
1767
- body.unshift(_marko_compiler.types.importDeclaration([_marko_compiler.types.importSpecifier(_marko_compiler.types.identifier(initHelper), _marko_compiler.types.identifier(initHelper))], _marko_compiler.types.stringLiteral(`${runtime_info_default.name}/${entryFile.markoOpts.optimize ? "" : "debug/"}dom`)));
1769
+ body.push(_marko_compiler.types.importDeclaration([_marko_compiler.types.importSpecifier(_marko_compiler.types.identifier(initHelper), _marko_compiler.types.identifier(initHelper))], _marko_compiler.types.stringLiteral(`${runtime_info_default.name}/${entryFile.markoOpts.optimize ? "" : "debug/"}dom`)), _marko_compiler.types.importDeclaration([], _marko_compiler.types.stringLiteral(`./${node_path.default.basename(entryFile.opts.filename)}`)));
1768
1770
  const { runtimeId } = entryFile.markoOpts;
1769
1771
  const readyId = !isPage && (0, _marko_compiler_babel_utils.getTemplateId)(entryFile.markoOpts, entryFile.opts.filename);
1770
1772
  const initExpression = _marko_compiler.types.callExpression(_marko_compiler.types.identifier(initHelper), readyId ? runtimeId ? [_marko_compiler.types.stringLiteral(readyId), _marko_compiler.types.stringLiteral(runtimeId)] : [_marko_compiler.types.stringLiteral(readyId)] : runtimeId ? [_marko_compiler.types.stringLiteral(runtimeId)] : []);
@@ -1773,13 +1775,9 @@ var entry_builder_default = {
1773
1775
  return body;
1774
1776
  },
1775
1777
  visit(file, entryFile, visitChild) {
1776
- const state = entryFile[kState] ||= {
1777
- imports: [],
1778
- init: false
1779
- };
1778
+ const state = entryFile[kState] ||= { init: false };
1780
1779
  const programExtra = file.path.node.extra;
1781
1780
  const { analyzedTags } = file.metadata.marko;
1782
- state.imports.push((0, _marko_compiler_babel_utils.resolveRelativePath)(entryFile, file.opts.filename));
1783
1781
  if (programExtra.isInteractive || programExtra.needsCompat) state.init = true;
1784
1782
  for (const tag of analyzedTags || []) visitChild(tag);
1785
1783
  }
@@ -2071,12 +2069,6 @@ function normalizeBoolAttrValue(value) {
2071
2069
  if (value != null && value !== false) return true;
2072
2070
  }
2073
2071
  //#endregion
2074
- //#region src/common/compat-meta.ts
2075
- const prefix = "$C_";
2076
- prefix + "";
2077
- prefix + "";
2078
- prefix + "";
2079
- //#endregion
2080
2072
  //#region src/html/dynamic-tag.ts
2081
2073
  const voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/;
2082
2074
  let _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, serializeReason) => {
@@ -7945,7 +7937,7 @@ function analyzeSiblingText(placeholder) {
7945
7937
  else if (contentType === 4 || contentType === 1 || contentType === 2) return placeholderExtra[kSiblingText] = 1;
7946
7938
  else break;
7947
7939
  }
7948
- if (!prev.node && _marko_compiler.types.isProgram(placeholder.parentPath)) return placeholderExtra[kSiblingText] = 1;
7940
+ if (!prev.node && _marko_compiler.types.isProgram(placeholder.parent)) return placeholderExtra[kSiblingText] = 1;
7949
7941
  let next = placeholder.getNextSibling();
7950
7942
  while (next.node) {
7951
7943
  const contentType = getNodeContentType(next, "startType");
@@ -7953,7 +7945,7 @@ function analyzeSiblingText(placeholder) {
7953
7945
  else if (contentType === 4 || contentType === 1 || contentType === 2) return placeholderExtra[kSiblingText] = 2;
7954
7946
  else break;
7955
7947
  }
7956
- if (!next.node && _marko_compiler.types.isProgram(placeholder.parentPath)) return placeholderExtra[kSiblingText] = 2;
7948
+ if (!next.node && _marko_compiler.types.isProgram(placeholder.parent)) return placeholderExtra[kSiblingText] = 2;
7957
7949
  return placeholderExtra[kSiblingText] = 0;
7958
7950
  }
7959
7951
  function isStaticText(node) {
@@ -8407,7 +8399,7 @@ var text_default = { translate: { exit(text) {
8407
8399
  function buildAggregateError(file, rootMsg, ...paths) {
8408
8400
  const err = /* @__PURE__ */ new SyntaxError();
8409
8401
  const fileName = path.default.relative(_marko_compiler_modules.cwd, file.opts.filename);
8410
- const finalMsg = `${rootMsg}:\n\n${paths.map(([msg, path$9]) => `\x1b[90m${msg} at ${getFileNameWithLoc(fileName, path$9)}:\x1b[0m\n${getFrame(file, path$9)}`).join("\n\n")}`;
8402
+ const finalMsg = `${rootMsg}:\n\n${paths.map(([msg, path$10]) => `\x1b[90m${msg} at ${getFileNameWithLoc(fileName, path$10)}:\x1b[0m\n${getFrame(file, path$10)}`).join("\n\n")}`;
8411
8403
  if (!("MARKO_DEBUG" in process.env)) err.stack = finalMsg;
8412
8404
  Object.defineProperty(err, "message", {
8413
8405
  get() {
@@ -8628,13 +8620,13 @@ function mergeVisitors(visitor5, visitor6) {
8628
8620
  function mergeVisit(visit5, visit6) {
8629
8621
  const enter5 = getVisitorEnter(visit5);
8630
8622
  const enter6 = getVisitorEnter(visit6);
8631
- const enter = (enter5 || enter6) && function enter(path$7, state) {
8632
- return (isTagsAPI() ? enter6 : enter5)?.call(this, path$7, state);
8623
+ const enter = (enter5 || enter6) && function enter(path$8, state) {
8624
+ return (isTagsAPI() ? enter6 : enter5)?.call(this, path$8, state);
8633
8625
  };
8634
8626
  const exit5 = getVisitorExit(visit5);
8635
8627
  const exit6 = getVisitorExit(visit6);
8636
- const exit = (exit5 || exit6) && function exit(path$8, state) {
8637
- return (isTagsAPI() ? exit6 : exit5)?.call(this, path$8, state);
8628
+ const exit = (exit5 || exit6) && function exit(path$9, state) {
8629
+ return (isTagsAPI() ? exit6 : exit5)?.call(this, path$9, state);
8638
8630
  };
8639
8631
  return exit ? enter ? {
8640
8632
  enter,
@@ -2,8 +2,8 @@ import { type Config, types as t } from "@marko/compiler";
2
2
  type Taglibs = [taglibId: string, taglib: Record<string, unknown>][];
3
3
  export declare function createInteropTranslator(translate5: any): {
4
4
  preferAPI: any;
5
- transform: Record<"Function" | "MarkoTag" | "ClassAccessorProperty" | "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "LogicalExpression" | "BindExpression" | "BlockStatement" | "Program" | "TSModuleBlock" | "CatchClause" | "DoWhileStatement" | "ForInStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "ObjectMethod" | "SwitchStatement" | "WhileStatement" | "ForOfStatement" | "ClassMethod" | "ClassPrivateMethod" | "StaticBlock" | "MarkoTagBody" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "ClassExpression" | "ClassDeclaration" | "MarkoClass" | "ClassBody" | "ClassImplements" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "ReturnStatement" | "ThrowStatement" | "ConditionalExpression" | "IfStatement" | "DebuggerStatement" | "DecimalLiteral" | "VariableDeclaration" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportNamedDeclaration" | "ImportDeclaration" | "DeclareClass" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareTypeAlias" | "DeclareOpaqueType" | "DeclareVariable" | "DeclareExportDeclaration" | "DeclareExportAllDeclaration" | "InterfaceDeclaration" | "OpaqueType" | "TypeAlias" | "EnumDeclaration" | "TSDeclareFunction" | "TSInterfaceDeclaration" | "TSTypeAliasDeclaration" | "TSEnumDeclaration" | "TSModuleDeclaration" | "TSImportEqualsDeclaration" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumNumberBody" | "EnumStringBody" | "EnumSymbolBody" | "EnumBooleanMember" | "EnumDefaultedMember" | "EnumNumberMember" | "EnumStringMember" | "ExistsTypeAnnotation" | "ExportDefaultSpecifier" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "Identifier" | "StringLiteral" | "NumericLiteral" | "NullLiteral" | "RegExpLiteral" | "MemberExpression" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "ParenthesizedExpression" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "ImportExpression" | "MetaProperty" | "Super" | "TaggedTemplateExpression" | "TemplateLiteral" | "YieldExpression" | "Import" | "OptionalMemberExpression" | "OptionalCallExpression" | "TypeCastExpression" | "JSXElement" | "JSXFragment" | "RecordExpression" | "TupleExpression" | "ModuleExpression" | "TopicReference" | "PipelineTopicExpression" | "PipelineBareFunction" | "PipelinePrimaryTopicReference" | "TSInstantiationExpression" | "TSAsExpression" | "TSSatisfiesExpression" | "TSTypeAssertion" | "TSNonNullExpression" | "MarkoParseError" | "ExpressionStatement" | "File" | "NullLiteralTypeAnnotation" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "InferredPredicate" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "IntersectionTypeAnnotation" | "MixedTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "ObjectTypeAnnotation" | "ObjectTypeInternalSlot" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "QualifiedTypeIdentifier" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "SymbolTypeAnnotation" | "ThisTypeAnnotation" | "TupleTypeAnnotation" | "TypeofTypeAnnotation" | "TypeAnnotation" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "UnionTypeAnnotation" | "Variance" | "VoidTypeAnnotation" | "IndexedAccessType" | "OptionalIndexedAccessType" | "RestElement" | "ObjectPattern" | "VoidPattern" | "JSXAttribute" | "JSXClosingElement" | "JSXExpressionContainer" | "JSXSpreadChild" | "JSXOpeningElement" | "JSXText" | "JSXOpeningFragment" | "JSXClosingFragment" | "ImportAttribute" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "InterpreterDirective" | "JSXEmptyExpression" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXSpreadAttribute" | "TSParameterProperty" | "LabeledStatement" | "MarkoDocumentType" | "MarkoDeclaration" | "MarkoCDATA" | "MarkoComment" | "MarkoText" | "MarkoPlaceholder" | "MarkoScriptlet" | "MarkoAttribute" | "MarkoSpreadAttribute" | "Noop" | "Placeholder" | "V8IntrinsicIdentifier" | "ObjectProperty" | "PrivateName" | "SpreadElement" | "SwitchCase" | "TryStatement" | "VariableDeclarator" | "WithStatement" | "TemplateElement" | "TSExportAssignment" | "TSNamespaceExportDeclaration" | "TSAnyKeyword" | "TSArrayType" | "TSBooleanKeyword" | "TSBigIntKeyword" | "TSIntrinsicKeyword" | "TSNeverKeyword" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSStringKeyword" | "TSSymbolKeyword" | "TSUndefinedKeyword" | "TSUnknownKeyword" | "TSVoidKeyword" | "TSThisType" | "TSTemplateLiteralType" | "TSLiteralType" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareMethod" | "TSQualifiedName" | "TSEnumBody" | "TSEnumMember" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInterfaceBody" | "TSIntersectionType" | "TSMappedType" | "TSMethodSignature" | "TSNamedTupleMember" | "TSOptionalType" | "TSParenthesizedType" | "TSPropertySignature" | "TSRestType" | "TSTupleType" | "TSTypeReference" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeLiteral" | "TSUnionType" | "TSTypeOperator" | "TSTypeAnnotation" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "Standardized" | "Expression" | "Binary" | "Scopable" | "BlockParent" | "Block" | "Statement" | "Terminatorless" | "CompletionStatement" | "Conditional" | "Loop" | "While" | "ExpressionWrapper" | "For" | "ForXStatement" | "FunctionParent" | "Pureish" | "Declaration" | "FunctionParameter" | "PatternLike" | "LVal" | "TSEntityName" | "Literal" | "Immutable" | "UserWhitespacable" | "Method" | "ObjectMember" | "Property" | "UnaryLike" | "Pattern" | "Class" | "ImportOrExportDeclaration" | "ExportDeclaration" | "ModuleSpecifier" | "Accessor" | "Private" | "Flow" | "FlowType" | "FlowBaseAnnotation" | "FlowDeclaration" | "FlowPredicate" | "EnumBody" | "EnumMember" | "JSX" | "Miscellaneous" | "TypeScript" | "TSTypeElement" | "TSType" | "TSBaseType" | "Marko" | "Scope" | "ModuleDeclaration" | "BindingIdentifier" | "BlockScoped" | "ExistentialTypeParam" | "ForAwaitStatement" | "Generated" | "NumericLiteralTypeAnnotation" | "Pure" | "Referenced" | "ReferencedIdentifier" | "ReferencedMemberExpression" | "RestProperty" | "SpreadProperty" | "User" | "Var" | "enter" | "exit" | `${string}|${string}`, t.VisitNode<unknown, t.Node> | undefined>;
6
- analyze: Record<"Function" | "MarkoTag" | "ClassAccessorProperty" | "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "LogicalExpression" | "BindExpression" | "BlockStatement" | "Program" | "TSModuleBlock" | "CatchClause" | "DoWhileStatement" | "ForInStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "ObjectMethod" | "SwitchStatement" | "WhileStatement" | "ForOfStatement" | "ClassMethod" | "ClassPrivateMethod" | "StaticBlock" | "MarkoTagBody" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "ClassExpression" | "ClassDeclaration" | "MarkoClass" | "ClassBody" | "ClassImplements" | "ClassPrivateProperty" | "ClassProperty" | "ContinueStatement" | "ReturnStatement" | "ThrowStatement" | "ConditionalExpression" | "IfStatement" | "DebuggerStatement" | "DecimalLiteral" | "VariableDeclaration" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportNamedDeclaration" | "ImportDeclaration" | "DeclareClass" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareTypeAlias" | "DeclareOpaqueType" | "DeclareVariable" | "DeclareExportDeclaration" | "DeclareExportAllDeclaration" | "InterfaceDeclaration" | "OpaqueType" | "TypeAlias" | "EnumDeclaration" | "TSDeclareFunction" | "TSInterfaceDeclaration" | "TSTypeAliasDeclaration" | "TSEnumDeclaration" | "TSModuleDeclaration" | "TSImportEqualsDeclaration" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumNumberBody" | "EnumStringBody" | "EnumSymbolBody" | "EnumBooleanMember" | "EnumDefaultedMember" | "EnumNumberMember" | "EnumStringMember" | "ExistsTypeAnnotation" | "ExportDefaultSpecifier" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "Identifier" | "StringLiteral" | "NumericLiteral" | "NullLiteral" | "RegExpLiteral" | "MemberExpression" | "NewExpression" | "ObjectExpression" | "SequenceExpression" | "ParenthesizedExpression" | "ThisExpression" | "UnaryExpression" | "UpdateExpression" | "ImportExpression" | "MetaProperty" | "Super" | "TaggedTemplateExpression" | "TemplateLiteral" | "YieldExpression" | "Import" | "OptionalMemberExpression" | "OptionalCallExpression" | "TypeCastExpression" | "JSXElement" | "JSXFragment" | "RecordExpression" | "TupleExpression" | "ModuleExpression" | "TopicReference" | "PipelineTopicExpression" | "PipelineBareFunction" | "PipelinePrimaryTopicReference" | "TSInstantiationExpression" | "TSAsExpression" | "TSSatisfiesExpression" | "TSTypeAssertion" | "TSNonNullExpression" | "MarkoParseError" | "ExpressionStatement" | "File" | "NullLiteralTypeAnnotation" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "InferredPredicate" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "IntersectionTypeAnnotation" | "MixedTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "ObjectTypeAnnotation" | "ObjectTypeInternalSlot" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "QualifiedTypeIdentifier" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "SymbolTypeAnnotation" | "ThisTypeAnnotation" | "TupleTypeAnnotation" | "TypeofTypeAnnotation" | "TypeAnnotation" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "UnionTypeAnnotation" | "Variance" | "VoidTypeAnnotation" | "IndexedAccessType" | "OptionalIndexedAccessType" | "RestElement" | "ObjectPattern" | "VoidPattern" | "JSXAttribute" | "JSXClosingElement" | "JSXExpressionContainer" | "JSXSpreadChild" | "JSXOpeningElement" | "JSXText" | "JSXOpeningFragment" | "JSXClosingFragment" | "ImportAttribute" | "ImportDefaultSpecifier" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "InterpreterDirective" | "JSXEmptyExpression" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXSpreadAttribute" | "TSParameterProperty" | "LabeledStatement" | "MarkoDocumentType" | "MarkoDeclaration" | "MarkoCDATA" | "MarkoComment" | "MarkoText" | "MarkoPlaceholder" | "MarkoScriptlet" | "MarkoAttribute" | "MarkoSpreadAttribute" | "Noop" | "Placeholder" | "V8IntrinsicIdentifier" | "ObjectProperty" | "PrivateName" | "SpreadElement" | "SwitchCase" | "TryStatement" | "VariableDeclarator" | "WithStatement" | "TemplateElement" | "TSExportAssignment" | "TSNamespaceExportDeclaration" | "TSAnyKeyword" | "TSArrayType" | "TSBooleanKeyword" | "TSBigIntKeyword" | "TSIntrinsicKeyword" | "TSNeverKeyword" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSStringKeyword" | "TSSymbolKeyword" | "TSUndefinedKeyword" | "TSUnknownKeyword" | "TSVoidKeyword" | "TSThisType" | "TSTemplateLiteralType" | "TSLiteralType" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareMethod" | "TSQualifiedName" | "TSEnumBody" | "TSEnumMember" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInterfaceBody" | "TSIntersectionType" | "TSMappedType" | "TSMethodSignature" | "TSNamedTupleMember" | "TSOptionalType" | "TSParenthesizedType" | "TSPropertySignature" | "TSRestType" | "TSTupleType" | "TSTypeReference" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeLiteral" | "TSUnionType" | "TSTypeOperator" | "TSTypeAnnotation" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "Standardized" | "Expression" | "Binary" | "Scopable" | "BlockParent" | "Block" | "Statement" | "Terminatorless" | "CompletionStatement" | "Conditional" | "Loop" | "While" | "ExpressionWrapper" | "For" | "ForXStatement" | "FunctionParent" | "Pureish" | "Declaration" | "FunctionParameter" | "PatternLike" | "LVal" | "TSEntityName" | "Literal" | "Immutable" | "UserWhitespacable" | "Method" | "ObjectMember" | "Property" | "UnaryLike" | "Pattern" | "Class" | "ImportOrExportDeclaration" | "ExportDeclaration" | "ModuleSpecifier" | "Accessor" | "Private" | "Flow" | "FlowType" | "FlowBaseAnnotation" | "FlowDeclaration" | "FlowPredicate" | "EnumBody" | "EnumMember" | "JSX" | "Miscellaneous" | "TypeScript" | "TSTypeElement" | "TSType" | "TSBaseType" | "Marko" | "Scope" | "ModuleDeclaration" | "BindingIdentifier" | "BlockScoped" | "ExistentialTypeParam" | "ForAwaitStatement" | "Generated" | "NumericLiteralTypeAnnotation" | "Pure" | "Referenced" | "ReferencedIdentifier" | "ReferencedMemberExpression" | "RestProperty" | "SpreadProperty" | "User" | "Var" | "enter" | "exit" | `${string}|${string}`, t.VisitNode<unknown, t.Node> | undefined>;
5
+ transform: Record<"Function" | "MarkoTag" | "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "BindExpression" | "BlockStatement" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "CatchClause" | "ClassAccessorProperty" | "ClassBody" | "ClassDeclaration" | "ClassExpression" | "ClassImplements" | "ClassMethod" | "ClassPrivateMethod" | "ClassPrivateProperty" | "ClassProperty" | "ConditionalExpression" | "ContinueStatement" | "DebuggerStatement" | "DecimalLiteral" | "DeclareClass" | "DeclareExportAllDeclaration" | "DeclareExportDeclaration" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareOpaqueType" | "DeclareTypeAlias" | "DeclareVariable" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "DoWhileStatement" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberBody" | "EnumNumberMember" | "EnumStringBody" | "EnumStringMember" | "EnumSymbolBody" | "ExistsTypeAnnotation" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportDefaultSpecifier" | "ExportNamedDeclaration" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "ExpressionStatement" | "File" | "ForInStatement" | "ForOfStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "Identifier" | "IfStatement" | "Import" | "ImportAttribute" | "ImportDeclaration" | "ImportDefaultSpecifier" | "ImportExpression" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "IndexedAccessType" | "InferredPredicate" | "InterfaceDeclaration" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "InterpreterDirective" | "IntersectionTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXClosingFragment" | "JSXElement" | "JSXEmptyExpression" | "JSXExpressionContainer" | "JSXFragment" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXOpeningElement" | "JSXOpeningFragment" | "JSXSpreadAttribute" | "JSXSpreadChild" | "JSXText" | "LabeledStatement" | "LogicalExpression" | "MemberExpression" | "MetaProperty" | "MixedTypeAnnotation" | "ModuleExpression" | "NewExpression" | "Noop" | "NullLiteral" | "NullLiteralTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteral" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "NumericLiteral" | "ObjectExpression" | "ObjectMethod" | "ObjectPattern" | "ObjectProperty" | "ObjectTypeAnnotation" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeInternalSlot" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "OpaqueType" | "OptionalCallExpression" | "OptionalIndexedAccessType" | "OptionalMemberExpression" | "ParenthesizedExpression" | "PipelineBareFunction" | "PipelinePrimaryTopicReference" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "Program" | "QualifiedTypeIdentifier" | "RecordExpression" | "RegExpLiteral" | "RegexLiteral" | "RestElement" | "RestProperty" | "ReturnStatement" | "SequenceExpression" | "SpreadElement" | "SpreadProperty" | "StaticBlock" | "StringLiteral" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "Super" | "SwitchCase" | "SwitchStatement" | "SymbolTypeAnnotation" | "TSAnyKeyword" | "TSArrayType" | "TSAsExpression" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareFunction" | "TSDeclareMethod" | "TSEnumBody" | "TSEnumDeclaration" | "TSEnumMember" | "TSExportAssignment" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportEqualsDeclaration" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInstantiationExpression" | "TSInterfaceBody" | "TSInterfaceDeclaration" | "TSIntersectionType" | "TSIntrinsicKeyword" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSModuleBlock" | "TSModuleDeclaration" | "TSNamedTupleMember" | "TSNamespaceExportDeclaration" | "TSNeverKeyword" | "TSNonNullExpression" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParameterProperty" | "TSParenthesizedType" | "TSPropertySignature" | "TSQualifiedName" | "TSRestType" | "TSSatisfiesExpression" | "TSStringKeyword" | "TSSymbolKeyword" | "TSTemplateLiteralType" | "TSThisType" | "TSTupleType" | "TSTypeAliasDeclaration" | "TSTypeAnnotation" | "TSTypeAssertion" | "TSTypeLiteral" | "TSTypeOperator" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeReference" | "TSUndefinedKeyword" | "TSUnionType" | "TSUnknownKeyword" | "TSVoidKeyword" | "TaggedTemplateExpression" | "TemplateElement" | "TemplateLiteral" | "ThisExpression" | "ThisTypeAnnotation" | "ThrowStatement" | "TopicReference" | "TryStatement" | "TupleExpression" | "TupleTypeAnnotation" | "TypeAlias" | "TypeAnnotation" | "TypeCastExpression" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "TypeofTypeAnnotation" | "UnaryExpression" | "UnionTypeAnnotation" | "UpdateExpression" | "V8IntrinsicIdentifier" | "VariableDeclaration" | "VariableDeclarator" | "Variance" | "VoidPattern" | "VoidTypeAnnotation" | "WhileStatement" | "WithStatement" | "YieldExpression" | "MarkoParseError" | "MarkoDocumentType" | "MarkoDeclaration" | "MarkoCDATA" | "MarkoComment" | "MarkoText" | "MarkoPlaceholder" | "MarkoScriptlet" | "MarkoClass" | "MarkoAttribute" | "MarkoSpreadAttribute" | "MarkoTagBody" | "Standardized" | "Expression" | "Binary" | "Scopable" | "BlockParent" | "Block" | "Statement" | "Terminatorless" | "CompletionStatement" | "Conditional" | "Loop" | "While" | "ExpressionWrapper" | "For" | "ForXStatement" | "FunctionParent" | "Pureish" | "Declaration" | "FunctionParameter" | "PatternLike" | "LVal" | "TSEntityName" | "Literal" | "Immutable" | "UserWhitespacable" | "Method" | "ObjectMember" | "Property" | "UnaryLike" | "Pattern" | "Class" | "ImportOrExportDeclaration" | "ExportDeclaration" | "ModuleSpecifier" | "Accessor" | "Private" | "Flow" | "FlowType" | "FlowBaseAnnotation" | "FlowDeclaration" | "FlowPredicate" | "EnumBody" | "EnumMember" | "JSX" | "Miscellaneous" | "TypeScript" | "TSTypeElement" | "TSType" | "TSBaseType" | "ModuleDeclaration" | "Marko" | "Scope" | "BindingIdentifier" | "BlockScoped" | "ExistentialTypeParam" | "ForAwaitStatement" | "Generated" | "NumericLiteralTypeAnnotation" | "Pure" | "Referenced" | "ReferencedIdentifier" | "ReferencedMemberExpression" | "User" | "Var" | "enter" | "exit" | `${string}|${string}`, t.VisitNode<unknown, t.Node> | undefined>;
6
+ analyze: Record<"Function" | "MarkoTag" | "AnyTypeAnnotation" | "ArgumentPlaceholder" | "ArrayExpression" | "ArrayPattern" | "ArrayTypeAnnotation" | "ArrowFunctionExpression" | "AssignmentExpression" | "AssignmentPattern" | "AwaitExpression" | "BigIntLiteral" | "BinaryExpression" | "BindExpression" | "BlockStatement" | "BooleanLiteral" | "BooleanLiteralTypeAnnotation" | "BooleanTypeAnnotation" | "BreakStatement" | "CallExpression" | "CatchClause" | "ClassAccessorProperty" | "ClassBody" | "ClassDeclaration" | "ClassExpression" | "ClassImplements" | "ClassMethod" | "ClassPrivateMethod" | "ClassPrivateProperty" | "ClassProperty" | "ConditionalExpression" | "ContinueStatement" | "DebuggerStatement" | "DecimalLiteral" | "DeclareClass" | "DeclareExportAllDeclaration" | "DeclareExportDeclaration" | "DeclareFunction" | "DeclareInterface" | "DeclareModule" | "DeclareModuleExports" | "DeclareOpaqueType" | "DeclareTypeAlias" | "DeclareVariable" | "DeclaredPredicate" | "Decorator" | "Directive" | "DirectiveLiteral" | "DoExpression" | "DoWhileStatement" | "EmptyStatement" | "EmptyTypeAnnotation" | "EnumBooleanBody" | "EnumBooleanMember" | "EnumDeclaration" | "EnumDefaultedMember" | "EnumNumberBody" | "EnumNumberMember" | "EnumStringBody" | "EnumStringMember" | "EnumSymbolBody" | "ExistsTypeAnnotation" | "ExportAllDeclaration" | "ExportDefaultDeclaration" | "ExportDefaultSpecifier" | "ExportNamedDeclaration" | "ExportNamespaceSpecifier" | "ExportSpecifier" | "ExpressionStatement" | "File" | "ForInStatement" | "ForOfStatement" | "ForStatement" | "FunctionDeclaration" | "FunctionExpression" | "FunctionTypeAnnotation" | "FunctionTypeParam" | "GenericTypeAnnotation" | "Identifier" | "IfStatement" | "Import" | "ImportAttribute" | "ImportDeclaration" | "ImportDefaultSpecifier" | "ImportExpression" | "ImportNamespaceSpecifier" | "ImportSpecifier" | "IndexedAccessType" | "InferredPredicate" | "InterfaceDeclaration" | "InterfaceExtends" | "InterfaceTypeAnnotation" | "InterpreterDirective" | "IntersectionTypeAnnotation" | "JSXAttribute" | "JSXClosingElement" | "JSXClosingFragment" | "JSXElement" | "JSXEmptyExpression" | "JSXExpressionContainer" | "JSXFragment" | "JSXIdentifier" | "JSXMemberExpression" | "JSXNamespacedName" | "JSXOpeningElement" | "JSXOpeningFragment" | "JSXSpreadAttribute" | "JSXSpreadChild" | "JSXText" | "LabeledStatement" | "LogicalExpression" | "MemberExpression" | "MetaProperty" | "MixedTypeAnnotation" | "ModuleExpression" | "NewExpression" | "Noop" | "NullLiteral" | "NullLiteralTypeAnnotation" | "NullableTypeAnnotation" | "NumberLiteral" | "NumberLiteralTypeAnnotation" | "NumberTypeAnnotation" | "NumericLiteral" | "ObjectExpression" | "ObjectMethod" | "ObjectPattern" | "ObjectProperty" | "ObjectTypeAnnotation" | "ObjectTypeCallProperty" | "ObjectTypeIndexer" | "ObjectTypeInternalSlot" | "ObjectTypeProperty" | "ObjectTypeSpreadProperty" | "OpaqueType" | "OptionalCallExpression" | "OptionalIndexedAccessType" | "OptionalMemberExpression" | "ParenthesizedExpression" | "PipelineBareFunction" | "PipelinePrimaryTopicReference" | "PipelineTopicExpression" | "Placeholder" | "PrivateName" | "Program" | "QualifiedTypeIdentifier" | "RecordExpression" | "RegExpLiteral" | "RegexLiteral" | "RestElement" | "RestProperty" | "ReturnStatement" | "SequenceExpression" | "SpreadElement" | "SpreadProperty" | "StaticBlock" | "StringLiteral" | "StringLiteralTypeAnnotation" | "StringTypeAnnotation" | "Super" | "SwitchCase" | "SwitchStatement" | "SymbolTypeAnnotation" | "TSAnyKeyword" | "TSArrayType" | "TSAsExpression" | "TSBigIntKeyword" | "TSBooleanKeyword" | "TSCallSignatureDeclaration" | "TSConditionalType" | "TSConstructSignatureDeclaration" | "TSConstructorType" | "TSDeclareFunction" | "TSDeclareMethod" | "TSEnumBody" | "TSEnumDeclaration" | "TSEnumMember" | "TSExportAssignment" | "TSExpressionWithTypeArguments" | "TSExternalModuleReference" | "TSFunctionType" | "TSImportEqualsDeclaration" | "TSImportType" | "TSIndexSignature" | "TSIndexedAccessType" | "TSInferType" | "TSInstantiationExpression" | "TSInterfaceBody" | "TSInterfaceDeclaration" | "TSIntersectionType" | "TSIntrinsicKeyword" | "TSLiteralType" | "TSMappedType" | "TSMethodSignature" | "TSModuleBlock" | "TSModuleDeclaration" | "TSNamedTupleMember" | "TSNamespaceExportDeclaration" | "TSNeverKeyword" | "TSNonNullExpression" | "TSNullKeyword" | "TSNumberKeyword" | "TSObjectKeyword" | "TSOptionalType" | "TSParameterProperty" | "TSParenthesizedType" | "TSPropertySignature" | "TSQualifiedName" | "TSRestType" | "TSSatisfiesExpression" | "TSStringKeyword" | "TSSymbolKeyword" | "TSTemplateLiteralType" | "TSThisType" | "TSTupleType" | "TSTypeAliasDeclaration" | "TSTypeAnnotation" | "TSTypeAssertion" | "TSTypeLiteral" | "TSTypeOperator" | "TSTypeParameter" | "TSTypeParameterDeclaration" | "TSTypeParameterInstantiation" | "TSTypePredicate" | "TSTypeQuery" | "TSTypeReference" | "TSUndefinedKeyword" | "TSUnionType" | "TSUnknownKeyword" | "TSVoidKeyword" | "TaggedTemplateExpression" | "TemplateElement" | "TemplateLiteral" | "ThisExpression" | "ThisTypeAnnotation" | "ThrowStatement" | "TopicReference" | "TryStatement" | "TupleExpression" | "TupleTypeAnnotation" | "TypeAlias" | "TypeAnnotation" | "TypeCastExpression" | "TypeParameter" | "TypeParameterDeclaration" | "TypeParameterInstantiation" | "TypeofTypeAnnotation" | "UnaryExpression" | "UnionTypeAnnotation" | "UpdateExpression" | "V8IntrinsicIdentifier" | "VariableDeclaration" | "VariableDeclarator" | "Variance" | "VoidPattern" | "VoidTypeAnnotation" | "WhileStatement" | "WithStatement" | "YieldExpression" | "MarkoParseError" | "MarkoDocumentType" | "MarkoDeclaration" | "MarkoCDATA" | "MarkoComment" | "MarkoText" | "MarkoPlaceholder" | "MarkoScriptlet" | "MarkoClass" | "MarkoAttribute" | "MarkoSpreadAttribute" | "MarkoTagBody" | "Standardized" | "Expression" | "Binary" | "Scopable" | "BlockParent" | "Block" | "Statement" | "Terminatorless" | "CompletionStatement" | "Conditional" | "Loop" | "While" | "ExpressionWrapper" | "For" | "ForXStatement" | "FunctionParent" | "Pureish" | "Declaration" | "FunctionParameter" | "PatternLike" | "LVal" | "TSEntityName" | "Literal" | "Immutable" | "UserWhitespacable" | "Method" | "ObjectMember" | "Property" | "UnaryLike" | "Pattern" | "Class" | "ImportOrExportDeclaration" | "ExportDeclaration" | "ModuleSpecifier" | "Accessor" | "Private" | "Flow" | "FlowType" | "FlowBaseAnnotation" | "FlowDeclaration" | "FlowPredicate" | "EnumBody" | "EnumMember" | "JSX" | "Miscellaneous" | "TypeScript" | "TSTypeElement" | "TSType" | "TSBaseType" | "ModuleDeclaration" | "Marko" | "Scope" | "BindingIdentifier" | "BlockScoped" | "ExistentialTypeParam" | "ForAwaitStatement" | "Generated" | "NumericLiteralTypeAnnotation" | "Pure" | "Referenced" | "ReferencedIdentifier" | "ReferencedMemberExpression" | "User" | "Var" | "enter" | "exit" | `${string}|${string}`, t.VisitNode<unknown, t.Node> | undefined>;
7
7
  translate: t.Visitor<unknown>;
8
8
  tagDiscoveryDirs: any[];
9
9
  taglibs: Taglibs;
@@ -8,7 +8,6 @@ declare module "@marko/compiler/dist/types" {
8
8
  }
9
9
  type EntryFile = t.BabelFile & {
10
10
  [kState]?: {
11
- imports: string[];
12
11
  init: boolean;
13
12
  };
14
13
  };
@@ -86,6 +86,7 @@ declare module "@marko/compiler/dist/types" {
86
86
  pruned?: true;
87
87
  isEffect?: true;
88
88
  spreadFrom?: Binding;
89
+ merged?: NodeExtra;
89
90
  [kIsInvoked]?: true;
90
91
  }
91
92
  interface FunctionExtra {
@@ -129,7 +130,7 @@ export declare function addRead(exprExtra: ReferencedExtra, extra: t.NodeExtra,
129
130
  export declare function dropNodes(node: t.Node | t.Node[]): void;
130
131
  export declare function getCanonicalBinding(binding: Binding): Binding;
131
132
  export declare function getAllTagReferenceNodes(tag: t.MarkoTag, referenceNodes?: t.Node[]): t.Node[];
132
- export declare function getScopeAccessorLiteral(binding: Binding, encoded?: boolean, includeId?: boolean): t.StringLiteral | t.NumericLiteral;
133
+ export declare function getScopeAccessorLiteral(binding: Binding, encoded?: boolean, includeId?: boolean): t.NumericLiteral | t.StringLiteral;
133
134
  export declare function getScopeAccessor(binding: Binding, encoded?: boolean, includeId?: boolean): string;
134
135
  export declare function getDebugScopeAccess(binding: Binding): {
135
136
  root: Binding;
@@ -139,7 +140,7 @@ export declare function getDebugName(binding: Binding): string;
139
140
  export declare function getDebugNames(refs: ReferencedBindings): string;
140
141
  export declare function getDebugNamesAsIdentifier(refs: ReferencedBindings): string;
141
142
  export declare function getSectionInstancesAccessor(section: Section): string;
142
- export declare function getSectionInstancesAccessorLiteral(section: Section): t.StringLiteral | t.NumericLiteral | undefined;
143
+ export declare function getSectionInstancesAccessorLiteral(section: Section): t.NumericLiteral | t.StringLiteral | undefined;
143
144
  export declare function getReadReplacement(node: t.Identifier | t.MemberExpression | t.OptionalMemberExpression, signal?: Signal): t.Expression | undefined;
144
145
  export declare function hasNonConstantPropertyAlias(ref: Binding): boolean;
145
146
  export declare function pruneBinding(binding: Binding): boolean;
@@ -48,5 +48,5 @@ export declare function writeRegisteredFns(): void;
48
48
  export declare function addHTMLEffectCall(section: Section, referencedBindings?: ReferencedBindings): void;
49
49
  export declare function writeHTMLResumeStatements(path: t.NodePath<t.MarkoTagBody | t.Program>): void;
50
50
  export declare function getSetup(section: Section): Signal | undefined;
51
- export declare function replaceRegisteredFunctionNode(node: t.Node): t.CallExpression | t.ClassPrivateProperty | t.ClassProperty | t.VariableDeclaration | t.Identifier | t.ObjectProperty | undefined;
51
+ export declare function replaceRegisteredFunctionNode(node: t.Node): t.CallExpression | t.ClassPrivateProperty | t.ClassProperty | t.Identifier | t.ObjectProperty | t.VariableDeclaration | undefined;
52
52
  export {};
@@ -1,10 +1,14 @@
1
1
  import { types as t } from "@marko/compiler";
2
2
  declare module "@marko/compiler/dist/types" {
3
+ interface ProgramExtra {
4
+ featureType?: "class" | "tags";
5
+ }
3
6
  interface MarkoTagExtra {
4
7
  tagNameType?: TagNameType;
5
8
  tagNameNullable?: boolean;
6
9
  tagNameDynamic?: boolean;
7
10
  tagNameImported?: string;
11
+ featureType?: ProgramExtra["featureType"];
8
12
  }
9
13
  }
10
14
  export declare enum TagNameType {
@@ -1,3 +1,3 @@
1
1
  import { types as t } from "@marko/compiler";
2
- export declare function toFirstExpressionOrBlock(stmts: t.Statement[]): t.ArrayExpression | t.ArrowFunctionExpression | t.AwaitExpression | t.BigIntLiteral | t.BinaryExpression | t.LogicalExpression | t.BindExpression | t.BlockStatement | t.FunctionExpression | t.BooleanLiteral | t.CallExpression | t.ClassExpression | t.ConditionalExpression | t.DecimalLiteral | t.DoExpression | t.Identifier | t.StringLiteral | t.NumericLiteral | t.NullLiteral | t.RegExpLiteral | t.MemberExpression | t.NewExpression | t.SequenceExpression | t.ParenthesizedExpression | t.ThisExpression | t.UnaryExpression | t.UpdateExpression | t.ImportExpression | t.MetaProperty | t.Super | t.TaggedTemplateExpression | t.TemplateLiteral | t.YieldExpression | t.Import | t.OptionalMemberExpression | t.OptionalCallExpression | t.TypeCastExpression | t.JSXElement | t.JSXFragment | t.RecordExpression | t.TupleExpression | t.ModuleExpression | t.TopicReference | t.PipelineTopicExpression | t.PipelineBareFunction | t.PipelinePrimaryTopicReference | t.TSInstantiationExpression | t.TSAsExpression | t.TSSatisfiesExpression | t.TSTypeAssertion | t.TSNonNullExpression | t.MarkoParseError;
3
- export declare function toParenthesizedExpressionIfNeeded(expr: t.Expression): t.ArrayExpression | t.ArrowFunctionExpression | t.AwaitExpression | t.BigIntLiteral | t.BinaryExpression | t.LogicalExpression | t.BindExpression | t.FunctionExpression | t.BooleanLiteral | t.CallExpression | t.ClassExpression | t.ConditionalExpression | t.DecimalLiteral | t.DoExpression | t.Identifier | t.StringLiteral | t.NumericLiteral | t.NullLiteral | t.RegExpLiteral | t.MemberExpression | t.NewExpression | t.SequenceExpression | t.ParenthesizedExpression | t.ThisExpression | t.UnaryExpression | t.UpdateExpression | t.ImportExpression | t.MetaProperty | t.Super | t.TaggedTemplateExpression | t.TemplateLiteral | t.YieldExpression | t.Import | t.OptionalMemberExpression | t.OptionalCallExpression | t.TypeCastExpression | t.JSXElement | t.JSXFragment | t.RecordExpression | t.TupleExpression | t.ModuleExpression | t.TopicReference | t.PipelineTopicExpression | t.PipelineBareFunction | t.PipelinePrimaryTopicReference | t.TSInstantiationExpression | t.TSAsExpression | t.TSSatisfiesExpression | t.TSTypeAssertion | t.TSNonNullExpression | t.MarkoParseError;
2
+ export declare function toFirstExpressionOrBlock(stmts: t.Statement[]): t.ArrayExpression | t.ArrowFunctionExpression | t.AwaitExpression | t.BigIntLiteral | t.BinaryExpression | t.BindExpression | t.BlockStatement | t.BooleanLiteral | t.CallExpression | t.ClassExpression | t.ConditionalExpression | t.DecimalLiteral | t.DoExpression | t.FunctionExpression | t.Identifier | t.Import | t.ImportExpression | t.JSXElement | t.JSXFragment | t.LogicalExpression | t.MemberExpression | t.MetaProperty | t.ModuleExpression | t.NewExpression | t.NullLiteral | t.NumericLiteral | t.OptionalCallExpression | t.OptionalMemberExpression | t.ParenthesizedExpression | t.PipelineBareFunction | t.PipelinePrimaryTopicReference | t.PipelineTopicExpression | t.RecordExpression | t.RegExpLiteral | t.SequenceExpression | t.StringLiteral | t.Super | t.TSAsExpression | t.TSInstantiationExpression | t.TSNonNullExpression | t.TSSatisfiesExpression | t.TSTypeAssertion | t.TaggedTemplateExpression | t.TemplateLiteral | t.ThisExpression | t.TopicReference | t.TupleExpression | t.TypeCastExpression | t.UnaryExpression | t.UpdateExpression | t.YieldExpression | t.MarkoParseError;
3
+ export declare function toParenthesizedExpressionIfNeeded(expr: t.Expression): t.ArrayExpression | t.ArrowFunctionExpression | t.AwaitExpression | t.BigIntLiteral | t.BinaryExpression | t.BindExpression | t.BooleanLiteral | t.CallExpression | t.ClassExpression | t.ConditionalExpression | t.DecimalLiteral | t.DoExpression | t.FunctionExpression | t.Identifier | t.Import | t.ImportExpression | t.JSXElement | t.JSXFragment | t.LogicalExpression | t.MemberExpression | t.MetaProperty | t.ModuleExpression | t.NewExpression | t.NullLiteral | t.NumericLiteral | t.OptionalCallExpression | t.OptionalMemberExpression | t.ParenthesizedExpression | t.PipelineBareFunction | t.PipelinePrimaryTopicReference | t.PipelineTopicExpression | t.RecordExpression | t.RegExpLiteral | t.SequenceExpression | t.StringLiteral | t.Super | t.TSAsExpression | t.TSInstantiationExpression | t.TSNonNullExpression | t.TSSatisfiesExpression | t.TSTypeAssertion | t.TaggedTemplateExpression | t.TemplateLiteral | t.ThisExpression | t.TopicReference | t.TupleExpression | t.TypeCastExpression | t.UnaryExpression | t.UpdateExpression | t.YieldExpression | t.MarkoParseError;
@@ -1,6 +1,6 @@
1
1
  import { types as t } from "@marko/compiler";
2
2
  export declare function isValidPropertyIdentifier(name: string): boolean;
3
- export declare function toPropertyName(name: string): t.Identifier | t.StringLiteral | t.NumericLiteral;
3
+ export declare function toPropertyName(name: string): t.Identifier | t.NumericLiteral | t.StringLiteral;
4
4
  export declare function toObjectProperty(name: string, value: t.Expression): t.ObjectProperty;
5
5
  export declare function toMemberExpression(object: t.Expression, key: string): t.MemberExpression;
6
6
  export declare function toMemberExpression(object: t.Expression, key: string, optional: false | undefined): t.MemberExpression;
@@ -1,4 +1,9 @@
1
1
  import type { types as t } from "@marko/compiler";
2
+ declare module "@marko/compiler/dist/types" {
3
+ interface NodeExtra {
4
+ tagImport?: string;
5
+ }
6
+ }
2
7
  declare const _default: {
3
8
  analyze(this: unknown, importDecl: t.NodePath<t.ImportDeclaration>): void;
4
9
  translate: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/runtime-tags",
3
- "version": "6.0.168",
3
+ "version": "6.0.170",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",
package/tags-html.d.ts CHANGED
@@ -916,8 +916,7 @@ declare global {
916
916
  | AttrMissing
917
917
  | "application/x-www-form-urlencoded"
918
918
  | "multipart/form-data"
919
- | "text/plain"
920
- | (string & {});
919
+ | "text/plain";
921
920
  /**
922
921
  * Specifies the HTTP method used to submit the form to the server.
923
922
  * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-method
@@ -1501,7 +1500,7 @@ declare global {
1501
1500
  value?: AttrStringOrNumber;
1502
1501
 
1503
1502
  /** @deprecated */
1504
- type?: AttrMimeType;
1503
+ type?: AttrString;
1505
1504
  }
1506
1505
  // TODO break into multiple interfaces based on rel?
1507
1506
  interface Link extends HTMLAttributes<HTMLLinkElement> {
@@ -5707,7 +5706,7 @@ interface CommonAttributes<T extends Element> {
5707
5706
  * Defines the hierarchical level of an element within a structure.
5708
5707
  * @see https://www.w3.org/TR/wai-aria-1.1/#aria-level
5709
5708
  */
5710
- "aria-level"?: AttrString;
5709
+ "aria-level"?: AttrMissing | number | string;
5711
5710
  /**
5712
5711
  * Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies,
5713
5712
  * and user can expect from the live region.