@vue/compiler-dom 3.6.0-rc.1 → 3.6.0-rc.10

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-dom v3.6.0-rc.1
2
+ * @vue/compiler-dom v3.6.0-rc.10
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -177,9 +177,7 @@ const transformModel = (dir, node, context) => {
177
177
  isInvalidType = true;
178
178
  context.onError(createDOMCompilerError(60, dir.loc));
179
179
  break;
180
- default:
181
- checkDuplicatedValue();
182
- break;
180
+ default: checkDuplicatedValue();
183
181
  }
184
182
  } else if ((0, _vue_compiler_core.hasDynamicKeyVBind)(node)) directiveToUse = V_MODEL_DYNAMIC;
185
183
  else checkDuplicatedValue();
@@ -192,27 +190,37 @@ const transformModel = (dir, node, context) => {
192
190
  };
193
191
  //#endregion
194
192
  //#region packages/compiler-dom/src/transforms/vOn.ts
195
- const isEventOptionModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)(`passive,once,capture`);
196
- const isNonKeyModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
197
- const maybeKeyModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)("left,right");
198
- const isKeyboardEvent = /* @__PURE__ */ (0, _vue_shared.makeMap)(`onkeyup,onkeydown,onkeypress`);
193
+ const isEventOptionModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)(`passive,once,capture`);
194
+ const isNonKeyModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
195
+ const maybeKeyModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)("left,right");
196
+ const isKeyboardEvent = /*@__PURE__*/ (0, _vue_shared.makeMap)(`onkeyup,onkeydown,onkeypress`);
199
197
  const resolveModifiers = (key, modifiers, context, loc) => {
200
198
  const keyModifiers = [];
201
199
  const nonKeyModifiers = [];
202
200
  const eventOptionModifiers = [];
203
201
  for (let i = 0; i < modifiers.length; i++) {
204
202
  const modifier = modifiers[i].content;
203
+ if (modifier === "delegate") {
204
+ if (context) {
205
+ const error = /* @__PURE__ */ new SyntaxError(`.delegate modifier is only supported in Vapor components.`);
206
+ error.loc = modifiers[i].loc;
207
+ context.onWarn(error);
208
+ }
209
+ continue;
210
+ }
205
211
  if (modifier === "native" && context && (0, _vue_compiler_core.checkCompatEnabled)("COMPILER_V_ON_NATIVE", context, loc)) eventOptionModifiers.push(modifier);
206
212
  else if (isEventOptionModifier(modifier)) eventOptionModifiers.push(modifier);
207
213
  else {
208
214
  const keyString = (0, _vue_shared.isString)(key) ? key : (0, _vue_compiler_core.isStaticExp)(key) ? key.content : null;
209
- if (maybeKeyModifier(modifier)) if (keyString) if (isKeyboardEvent(keyString.toLowerCase())) keyModifiers.push(modifier);
210
- else nonKeyModifiers.push(modifier);
211
- else {
212
- keyModifiers.push(modifier);
213
- nonKeyModifiers.push(modifier);
214
- }
215
- else if (isNonKeyModifier(modifier)) nonKeyModifiers.push(modifier);
215
+ if (maybeKeyModifier(modifier)) {
216
+ if (keyString) {
217
+ if (isKeyboardEvent(keyString.toLowerCase())) keyModifiers.push(modifier);
218
+ else nonKeyModifiers.push(modifier);
219
+ } else {
220
+ keyModifiers.push(modifier);
221
+ nonKeyModifiers.push(modifier);
222
+ }
223
+ } else if (isNonKeyModifier(modifier)) nonKeyModifiers.push(modifier);
216
224
  else keyModifiers.push(modifier);
217
225
  }
218
226
  }
@@ -382,7 +390,7 @@ const dataAriaRE = /^(?:data|aria)-/;
382
390
  const isStringifiableAttr = (name, ns) => {
383
391
  return (ns === 0 ? (0, _vue_shared.isKnownHtmlAttr)(name) : ns === 1 ? (0, _vue_shared.isKnownSvgAttr)(name) : ns === 2 ? (0, _vue_shared.isKnownMathMLAttr)(name) : false) || dataAriaRE.test(name);
384
392
  };
385
- const isNonStringifiable = /* @__PURE__ */ (0, _vue_shared.makeMap)(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);
393
+ const isNonStringifiable = /*@__PURE__*/ (0, _vue_shared.makeMap)(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);
386
394
  /**
387
395
  * for a cached node, analyze it and return:
388
396
  * - false: bailed (contains non-stringifiable props or runtime constant)
@@ -453,10 +461,11 @@ function stringifyElement(node, context) {
453
461
  res += ` ${p.arg.content}="__VUE_EXP_START__${exp.content}__VUE_EXP_END__"`;
454
462
  continue;
455
463
  }
456
- if ((0, _vue_shared.isBooleanAttr)(p.arg.content) && exp.content === "false") continue;
464
+ if (((0, _vue_shared.isBooleanAttr)(p.arg.content) || p.arg.content === "hidden") && exp.content === "false") continue;
457
465
  let evaluated = evaluateConstant(exp);
458
466
  if (evaluated != null) {
459
467
  const arg = p.arg && p.arg.content;
468
+ if (arg === "hidden" && typeof evaluated === "number" && !(0, _vue_shared.includeBooleanAttr)(evaluated)) continue;
460
469
  if (arg === "class") evaluated = (0, _vue_shared.normalizeClass)(evaluated);
461
470
  else if (arg === "style") evaluated = (0, _vue_shared.stringifyStyle)((0, _vue_shared.normalizeStyle)(evaluated));
462
471
  res += ` ${p.arg.content}="${(0, _vue_shared.escapeHtml)(evaluated)}"`;
@@ -518,7 +527,7 @@ function isValidHTMLNesting(parent, child) {
518
527
  }
519
528
  return true;
520
529
  }
521
- const headings = new Set([
530
+ const headings = /* @__PURE__ */ new Set([
522
531
  "h1",
523
532
  "h2",
524
533
  "h3",
@@ -530,7 +539,7 @@ const emptySet = /* @__PURE__ */ new Set([]);
530
539
  /**
531
540
  * maps element to set of elements that can be it's children, no other */
532
541
  const onlyValidChildren = {
533
- head: new Set([
542
+ head: /* @__PURE__ */ new Set([
534
543
  "base",
535
544
  "basefront",
536
545
  "bgsound",
@@ -543,24 +552,24 @@ const onlyValidChildren = {
543
552
  "script",
544
553
  "template"
545
554
  ]),
546
- optgroup: new Set(["option"]),
547
- select: new Set([
555
+ optgroup: /* @__PURE__ */ new Set(["option"]),
556
+ select: /* @__PURE__ */ new Set([
548
557
  "optgroup",
549
558
  "option",
550
559
  "hr"
551
560
  ]),
552
- table: new Set([
561
+ table: /* @__PURE__ */ new Set([
553
562
  "caption",
554
563
  "colgroup",
555
564
  "tbody",
556
565
  "tfoot",
557
566
  "thead"
558
567
  ]),
559
- tr: new Set(["td", "th"]),
560
- colgroup: new Set(["col"]),
561
- tbody: new Set(["tr"]),
562
- thead: new Set(["tr"]),
563
- tfoot: new Set(["tr"]),
568
+ tr: /* @__PURE__ */ new Set(["td", "th"]),
569
+ colgroup: /* @__PURE__ */ new Set(["col"]),
570
+ tbody: /* @__PURE__ */ new Set(["tr"]),
571
+ thead: /* @__PURE__ */ new Set(["tr"]),
572
+ tfoot: /* @__PURE__ */ new Set(["tr"]),
564
573
  script: emptySet,
565
574
  iframe: emptySet,
566
575
  option: emptySet,
@@ -571,30 +580,30 @@ const onlyValidChildren = {
571
580
  /** maps elements to set of elements which can be it's parent, no other */
572
581
  const onlyValidParents = {
573
582
  html: emptySet,
574
- body: new Set(["html"]),
575
- head: new Set(["html"]),
576
- td: new Set(["tr"]),
577
- colgroup: new Set(["table"]),
578
- caption: new Set(["table"]),
579
- tbody: new Set(["table"]),
580
- tfoot: new Set(["table"]),
581
- col: new Set(["colgroup"]),
582
- th: new Set(["tr"]),
583
- thead: new Set(["table"]),
584
- tr: new Set([
583
+ body: /* @__PURE__ */ new Set(["html"]),
584
+ head: /* @__PURE__ */ new Set(["html"]),
585
+ td: /* @__PURE__ */ new Set(["tr"]),
586
+ colgroup: /* @__PURE__ */ new Set(["table"]),
587
+ caption: /* @__PURE__ */ new Set(["table"]),
588
+ tbody: /* @__PURE__ */ new Set(["table"]),
589
+ tfoot: /* @__PURE__ */ new Set(["table"]),
590
+ col: /* @__PURE__ */ new Set(["colgroup"]),
591
+ th: /* @__PURE__ */ new Set(["tr"]),
592
+ thead: /* @__PURE__ */ new Set(["table"]),
593
+ tr: /* @__PURE__ */ new Set([
585
594
  "tbody",
586
595
  "thead",
587
596
  "tfoot"
588
597
  ]),
589
- dd: new Set(["dl", "div"]),
590
- dt: new Set(["dl", "div"]),
591
- figcaption: new Set(["figure"]),
592
- summary: new Set(["details"]),
593
- area: new Set(["map"])
598
+ dd: /* @__PURE__ */ new Set(["dl", "div"]),
599
+ dt: /* @__PURE__ */ new Set(["dl", "div"]),
600
+ figcaption: /* @__PURE__ */ new Set(["figure"]),
601
+ summary: /* @__PURE__ */ new Set(["details"]),
602
+ area: /* @__PURE__ */ new Set(["map"])
594
603
  };
595
604
  /** maps element to set of elements that can not be it's children, others can */
596
605
  const knownInvalidChildren = {
597
- p: new Set([
606
+ p: /* @__PURE__ */ new Set([
598
607
  "address",
599
608
  "article",
600
609
  "aside",
@@ -629,7 +638,7 @@ const knownInvalidChildren = {
629
638
  "table",
630
639
  "ul"
631
640
  ]),
632
- svg: new Set([
641
+ svg: /* @__PURE__ */ new Set([
633
642
  "b",
634
643
  "blockquote",
635
644
  "br",
@@ -670,12 +679,12 @@ const knownInvalidChildren = {
670
679
  };
671
680
  /** maps element to set of elements that can not be it's parent, others can */
672
681
  const knownInvalidParents = {
673
- a: new Set(["a"]),
674
- button: new Set(["button"]),
675
- dd: new Set(["dd", "dt"]),
676
- dt: new Set(["dd", "dt"]),
677
- form: new Set(["form"]),
678
- li: new Set(["li"]),
682
+ a: /* @__PURE__ */ new Set(["a"]),
683
+ button: /* @__PURE__ */ new Set(["button"]),
684
+ dd: /* @__PURE__ */ new Set(["dd", "dt"]),
685
+ dt: /* @__PURE__ */ new Set(["dd", "dt"]),
686
+ form: /* @__PURE__ */ new Set(["form"]),
687
+ li: /* @__PURE__ */ new Set(["li"]),
679
688
  h1: headings,
680
689
  h2: headings,
681
690
  h3: headings,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-dom v3.6.0-rc.1
2
+ * @vue/compiler-dom v3.6.0-rc.10
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -172,8 +172,6 @@ const transformModel = (dir, node, context) => {
172
172
  case "file":
173
173
  isInvalidType = true;
174
174
  context.onError(createDOMCompilerError(60, dir.loc));
175
- break;
176
- default: break;
177
175
  }
178
176
  } else if ((0, _vue_compiler_core.hasDynamicKeyVBind)(node)) directiveToUse = V_MODEL_DYNAMIC;
179
177
  } else if (tag === "select") directiveToUse = V_MODEL_SELECT;
@@ -184,27 +182,37 @@ const transformModel = (dir, node, context) => {
184
182
  };
185
183
  //#endregion
186
184
  //#region packages/compiler-dom/src/transforms/vOn.ts
187
- const isEventOptionModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)(`passive,once,capture`);
188
- const isNonKeyModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
189
- const maybeKeyModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)("left,right");
190
- const isKeyboardEvent = /* @__PURE__ */ (0, _vue_shared.makeMap)(`onkeyup,onkeydown,onkeypress`);
185
+ const isEventOptionModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)(`passive,once,capture`);
186
+ const isNonKeyModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
187
+ const maybeKeyModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)("left,right");
188
+ const isKeyboardEvent = /*@__PURE__*/ (0, _vue_shared.makeMap)(`onkeyup,onkeydown,onkeypress`);
191
189
  const resolveModifiers = (key, modifiers, context, loc) => {
192
190
  const keyModifiers = [];
193
191
  const nonKeyModifiers = [];
194
192
  const eventOptionModifiers = [];
195
193
  for (let i = 0; i < modifiers.length; i++) {
196
194
  const modifier = modifiers[i].content;
195
+ if (modifier === "delegate") {
196
+ if (context) {
197
+ const error = /* @__PURE__ */ new SyntaxError(`.delegate modifier is only supported in Vapor components.`);
198
+ error.loc = modifiers[i].loc;
199
+ context.onWarn(error);
200
+ }
201
+ continue;
202
+ }
197
203
  if (modifier === "native" && context && (0, _vue_compiler_core.checkCompatEnabled)("COMPILER_V_ON_NATIVE", context, loc)) eventOptionModifiers.push(modifier);
198
204
  else if (isEventOptionModifier(modifier)) eventOptionModifiers.push(modifier);
199
205
  else {
200
206
  const keyString = (0, _vue_shared.isString)(key) ? key : (0, _vue_compiler_core.isStaticExp)(key) ? key.content : null;
201
- if (maybeKeyModifier(modifier)) if (keyString) if (isKeyboardEvent(keyString.toLowerCase())) keyModifiers.push(modifier);
202
- else nonKeyModifiers.push(modifier);
203
- else {
204
- keyModifiers.push(modifier);
205
- nonKeyModifiers.push(modifier);
206
- }
207
- else if (isNonKeyModifier(modifier)) nonKeyModifiers.push(modifier);
207
+ if (maybeKeyModifier(modifier)) {
208
+ if (keyString) {
209
+ if (isKeyboardEvent(keyString.toLowerCase())) keyModifiers.push(modifier);
210
+ else nonKeyModifiers.push(modifier);
211
+ } else {
212
+ keyModifiers.push(modifier);
213
+ nonKeyModifiers.push(modifier);
214
+ }
215
+ } else if (isNonKeyModifier(modifier)) nonKeyModifiers.push(modifier);
208
216
  else keyModifiers.push(modifier);
209
217
  }
210
218
  }
@@ -369,7 +377,7 @@ const dataAriaRE = /^(?:data|aria)-/;
369
377
  const isStringifiableAttr = (name, ns) => {
370
378
  return (ns === 0 ? (0, _vue_shared.isKnownHtmlAttr)(name) : ns === 1 ? (0, _vue_shared.isKnownSvgAttr)(name) : ns === 2 ? (0, _vue_shared.isKnownMathMLAttr)(name) : false) || dataAriaRE.test(name);
371
379
  };
372
- const isNonStringifiable = /* @__PURE__ */ (0, _vue_shared.makeMap)(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);
380
+ const isNonStringifiable = /*@__PURE__*/ (0, _vue_shared.makeMap)(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);
373
381
  /**
374
382
  * for a cached node, analyze it and return:
375
383
  * - false: bailed (contains non-stringifiable props or runtime constant)
@@ -440,10 +448,11 @@ function stringifyElement(node, context) {
440
448
  res += ` ${p.arg.content}="__VUE_EXP_START__${exp.content}__VUE_EXP_END__"`;
441
449
  continue;
442
450
  }
443
- if ((0, _vue_shared.isBooleanAttr)(p.arg.content) && exp.content === "false") continue;
451
+ if (((0, _vue_shared.isBooleanAttr)(p.arg.content) || p.arg.content === "hidden") && exp.content === "false") continue;
444
452
  let evaluated = evaluateConstant(exp);
445
453
  if (evaluated != null) {
446
454
  const arg = p.arg && p.arg.content;
455
+ if (arg === "hidden" && typeof evaluated === "number" && !(0, _vue_shared.includeBooleanAttr)(evaluated)) continue;
447
456
  if (arg === "class") evaluated = (0, _vue_shared.normalizeClass)(evaluated);
448
457
  else if (arg === "style") evaluated = (0, _vue_shared.stringifyStyle)((0, _vue_shared.normalizeStyle)(evaluated));
449
458
  res += ` ${p.arg.content}="${(0, _vue_shared.escapeHtml)(evaluated)}"`;
@@ -502,7 +511,7 @@ function isValidHTMLNesting(parent, child) {
502
511
  }
503
512
  return true;
504
513
  }
505
- const headings = new Set([
514
+ const headings = /* @__PURE__ */ new Set([
506
515
  "h1",
507
516
  "h2",
508
517
  "h3",
@@ -514,7 +523,7 @@ const emptySet = /* @__PURE__ */ new Set([]);
514
523
  /**
515
524
  * maps element to set of elements that can be it's children, no other */
516
525
  const onlyValidChildren = {
517
- head: new Set([
526
+ head: /* @__PURE__ */ new Set([
518
527
  "base",
519
528
  "basefront",
520
529
  "bgsound",
@@ -527,24 +536,24 @@ const onlyValidChildren = {
527
536
  "script",
528
537
  "template"
529
538
  ]),
530
- optgroup: new Set(["option"]),
531
- select: new Set([
539
+ optgroup: /* @__PURE__ */ new Set(["option"]),
540
+ select: /* @__PURE__ */ new Set([
532
541
  "optgroup",
533
542
  "option",
534
543
  "hr"
535
544
  ]),
536
- table: new Set([
545
+ table: /* @__PURE__ */ new Set([
537
546
  "caption",
538
547
  "colgroup",
539
548
  "tbody",
540
549
  "tfoot",
541
550
  "thead"
542
551
  ]),
543
- tr: new Set(["td", "th"]),
544
- colgroup: new Set(["col"]),
545
- tbody: new Set(["tr"]),
546
- thead: new Set(["tr"]),
547
- tfoot: new Set(["tr"]),
552
+ tr: /* @__PURE__ */ new Set(["td", "th"]),
553
+ colgroup: /* @__PURE__ */ new Set(["col"]),
554
+ tbody: /* @__PURE__ */ new Set(["tr"]),
555
+ thead: /* @__PURE__ */ new Set(["tr"]),
556
+ tfoot: /* @__PURE__ */ new Set(["tr"]),
548
557
  script: emptySet,
549
558
  iframe: emptySet,
550
559
  option: emptySet,
@@ -555,30 +564,30 @@ const onlyValidChildren = {
555
564
  /** maps elements to set of elements which can be it's parent, no other */
556
565
  const onlyValidParents = {
557
566
  html: emptySet,
558
- body: new Set(["html"]),
559
- head: new Set(["html"]),
560
- td: new Set(["tr"]),
561
- colgroup: new Set(["table"]),
562
- caption: new Set(["table"]),
563
- tbody: new Set(["table"]),
564
- tfoot: new Set(["table"]),
565
- col: new Set(["colgroup"]),
566
- th: new Set(["tr"]),
567
- thead: new Set(["table"]),
568
- tr: new Set([
567
+ body: /* @__PURE__ */ new Set(["html"]),
568
+ head: /* @__PURE__ */ new Set(["html"]),
569
+ td: /* @__PURE__ */ new Set(["tr"]),
570
+ colgroup: /* @__PURE__ */ new Set(["table"]),
571
+ caption: /* @__PURE__ */ new Set(["table"]),
572
+ tbody: /* @__PURE__ */ new Set(["table"]),
573
+ tfoot: /* @__PURE__ */ new Set(["table"]),
574
+ col: /* @__PURE__ */ new Set(["colgroup"]),
575
+ th: /* @__PURE__ */ new Set(["tr"]),
576
+ thead: /* @__PURE__ */ new Set(["table"]),
577
+ tr: /* @__PURE__ */ new Set([
569
578
  "tbody",
570
579
  "thead",
571
580
  "tfoot"
572
581
  ]),
573
- dd: new Set(["dl", "div"]),
574
- dt: new Set(["dl", "div"]),
575
- figcaption: new Set(["figure"]),
576
- summary: new Set(["details"]),
577
- area: new Set(["map"])
582
+ dd: /* @__PURE__ */ new Set(["dl", "div"]),
583
+ dt: /* @__PURE__ */ new Set(["dl", "div"]),
584
+ figcaption: /* @__PURE__ */ new Set(["figure"]),
585
+ summary: /* @__PURE__ */ new Set(["details"]),
586
+ area: /* @__PURE__ */ new Set(["map"])
578
587
  };
579
588
  /** maps element to set of elements that can not be it's children, others can */
580
589
  const knownInvalidChildren = {
581
- p: new Set([
590
+ p: /* @__PURE__ */ new Set([
582
591
  "address",
583
592
  "article",
584
593
  "aside",
@@ -613,7 +622,7 @@ const knownInvalidChildren = {
613
622
  "table",
614
623
  "ul"
615
624
  ]),
616
- svg: new Set([
625
+ svg: /* @__PURE__ */ new Set([
617
626
  "b",
618
627
  "blockquote",
619
628
  "br",
@@ -654,12 +663,12 @@ const knownInvalidChildren = {
654
663
  };
655
664
  /** maps element to set of elements that can not be it's parent, others can */
656
665
  const knownInvalidParents = {
657
- a: new Set(["a"]),
658
- button: new Set(["button"]),
659
- dd: new Set(["dd", "dt"]),
660
- dt: new Set(["dd", "dt"]),
661
- form: new Set(["form"]),
662
- li: new Set(["li"]),
666
+ a: /* @__PURE__ */ new Set(["a"]),
667
+ button: /* @__PURE__ */ new Set(["button"]),
668
+ dd: /* @__PURE__ */ new Set(["dd", "dt"]),
669
+ dt: /* @__PURE__ */ new Set(["dd", "dt"]),
670
+ form: /* @__PURE__ */ new Set(["form"]),
671
+ li: /* @__PURE__ */ new Set(["li"]),
663
672
  h1: headings,
664
673
  h2: headings,
665
674
  h3: headings,
@@ -1,6 +1,5 @@
1
1
  import { CodegenResult, CompilerError, CompilerOptions, ComponentNode, DirectiveTransform, ExpressionNode, NodeTransform, ParserOptions, RootNode, SimpleExpressionNode, SourceLocation, TransformContext } from "@vue/compiler-core";
2
2
  export * from "@vue/compiler-core";
3
-
4
3
  //#region temp/packages/compiler-dom/src/parserOptions.d.ts
5
4
  export declare const parserOptions: ParserOptions;
6
5
  //#endregion
@@ -50,16 +49,16 @@ export declare const resolveModifiers: (key: ExpressionNode | string, modifiers:
50
49
  //#endregion
51
50
  //#region temp/packages/compiler-dom/src/htmlNesting.d.ts
52
51
  /**
53
- * Copied from https://github.com/MananTank/validate-html-nesting
54
- * with ISC license
55
- *
56
- * To avoid runtime dependency on validate-html-nesting
57
- * This file should not change very often in the original repo
58
- * but we may need to keep it up-to-date from time to time.
59
- */
52
+ * Copied from https://github.com/MananTank/validate-html-nesting
53
+ * with ISC license
54
+ *
55
+ * To avoid runtime dependency on validate-html-nesting
56
+ * This file should not change very often in the original repo
57
+ * but we may need to keep it up-to-date from time to time.
58
+ */
60
59
  /**
61
- * returns true if given parent-child nesting is valid HTML
62
- */
60
+ * returns true if given parent-child nesting is valid HTML
61
+ */
63
62
  export declare function isValidHTMLNesting(parent: string, child: string): boolean;
64
63
  //#endregion
65
64
  //#region temp/packages/compiler-dom/src/transforms/Transition.d.ts
@@ -70,4 +69,4 @@ export declare const DOMNodeTransforms: NodeTransform[];
70
69
  export declare const DOMDirectiveTransforms: Record<string, DirectiveTransform>;
71
70
  export declare function compile(src: string | RootNode, options?: CompilerOptions): CodegenResult;
72
71
  export declare function parse(template: string, options?: ParserOptions): RootNode;
73
- //#endregion
72
+ //#endregion