tutuca 0.9.88 → 0.9.89

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.
@@ -10294,7 +10294,7 @@ var init_anode = __esm(() => {
10294
10294
  const isPseudoX = attrs[0]?.name === "@x";
10295
10295
  if (tag === "X" || isPseudoX)
10296
10296
  return parseXOp(attrs, childs, isPseudoX ? 1 : 0, px);
10297
- else if (tag.charCodeAt(1) === 58 && tag.charCodeAt(0) === 88) {
10297
+ else if (tag.charCodeAt(1) === 58 && (tag.charCodeAt(0) === 88 || tag.charCodeAt(0) === 120)) {
10298
10298
  const macroName = tag.slice(2).toLowerCase();
10299
10299
  if (macroName === "slot") {
10300
10300
  const slotName = attrs.getNamedItem("name")?.value ?? "_";
@@ -13573,7 +13573,7 @@ var init_lint_check = __esm(() => {
13573
13573
  PushViewNameNode: { originAttr: "<x push-view>" }
13574
13574
  };
13575
13575
  HANDLER_CHANNELS = ["input", "receive", "bubble", "response", "alter"];
13576
- ASYNC_HANDLER_HELP = "Handlers must be synchronous and return the updated state. Move the async " + "work into a request handler and trigger it with ctx.request('name', args), " + "then handle the result in a synchronous response handler. To coordinate other " + "components, keep the handler synchronous and use ctx.send to deliver a message " + "or ctx.bubble to raise an event.";
13576
+ ASYNC_HANDLER_HELP = "Move the async work into a request handler and trigger it with " + "ctx.request('name', args), then handle the result in a synchronous response " + "handler. To coordinate other components, keep the handler synchronous and use " + "ctx.send to deliver a message or ctx.bubble to raise an event.";
13577
13577
  KNOWN_LOOKUP_KEYS = new Set(["for", "default"]);
13578
13578
  LintParseContext = class LintParseContext extends ParseContext {
13579
13579
  constructor(document2, Text, Comment) {
@@ -2077,7 +2077,7 @@ class ANode extends BaseNode {
2077
2077
  const isPseudoX = attrs[0]?.name === "@x";
2078
2078
  if (tag === "X" || isPseudoX)
2079
2079
  return parseXOp(attrs, childs, isPseudoX ? 1 : 0, px);
2080
- else if (tag.charCodeAt(1) === 58 && tag.charCodeAt(0) === 88) {
2080
+ else if (tag.charCodeAt(1) === 58 && (tag.charCodeAt(0) === 88 || tag.charCodeAt(0) === 120)) {
2081
2081
  const macroName = tag.slice(2).toLowerCase();
2082
2082
  if (macroName === "slot") {
2083
2083
  const slotName = attrs.getNamedItem("name")?.value ?? "_";
@@ -5611,7 +5611,7 @@ function checkUnreferencedInputHandlers(lx, Comp, referencedInputs) {
5611
5611
  }
5612
5612
  }
5613
5613
  var HANDLER_CHANNELS = ["input", "receive", "bubble", "response", "alter"];
5614
- var ASYNC_HANDLER_HELP = "Handlers must be synchronous and return the updated state. Move the async " + "work into a request handler and trigger it with ctx.request('name', args), " + "then handle the result in a synchronous response handler. To coordinate other " + "components, keep the handler synchronous and use ctx.send to deliver a message " + "or ctx.bubble to raise an event.";
5614
+ var ASYNC_HANDLER_HELP = "Move the async work into a request handler and trigger it with " + "ctx.request('name', args), then handle the result in a synchronous response " + "handler. To coordinate other components, keep the handler synchronous and use " + "ctx.send to deliver a message or ctx.bubble to raise an event.";
5615
5615
  function checkHandlersNotAsync(lx, Comp) {
5616
5616
  for (const channel of HANDLER_CHANNELS) {
5617
5617
  const block = Comp[channel];
@@ -9728,7 +9728,7 @@ class ANode extends BaseNode {
9728
9728
  const isPseudoX = attrs[0]?.name === "@x";
9729
9729
  if (tag === "X" || isPseudoX)
9730
9730
  return parseXOp(attrs, childs, isPseudoX ? 1 : 0, px);
9731
- else if (tag.charCodeAt(1) === 58 && tag.charCodeAt(0) === 88) {
9731
+ else if (tag.charCodeAt(1) === 58 && (tag.charCodeAt(0) === 88 || tag.charCodeAt(0) === 120)) {
9732
9732
  const macroName = tag.slice(2).toLowerCase();
9733
9733
  if (macroName === "slot") {
9734
9734
  const slotName = attrs.getNamedItem("name")?.value ?? "_";
@@ -13262,7 +13262,7 @@ function checkUnreferencedInputHandlers(lx, Comp, referencedInputs) {
13262
13262
  }
13263
13263
  }
13264
13264
  var HANDLER_CHANNELS = ["input", "receive", "bubble", "response", "alter"];
13265
- var ASYNC_HANDLER_HELP = "Handlers must be synchronous and return the updated state. Move the async " + "work into a request handler and trigger it with ctx.request('name', args), " + "then handle the result in a synchronous response handler. To coordinate other " + "components, keep the handler synchronous and use ctx.send to deliver a message " + "or ctx.bubble to raise an event.";
13265
+ var ASYNC_HANDLER_HELP = "Move the async work into a request handler and trigger it with " + "ctx.request('name', args), then handle the result in a synchronous response " + "handler. To coordinate other components, keep the handler synchronous and use " + "ctx.send to deliver a message or ctx.bubble to raise an event.";
13266
13266
  function checkHandlersNotAsync(lx, Comp) {
13267
13267
  for (const channel of HANDLER_CHANNELS) {
13268
13268
  const block = Comp[channel];