marko 6.3.20 → 6.3.21
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/cheatsheet.md +29 -3
- package/dist/common/accessor.d.ts +21 -75
- package/dist/common/accessor.debug.d.ts +21 -75
- package/dist/common/constants/accessor-prefix.d.ts +16 -0
- package/dist/common/constants/accessor-prefix.debug.d.ts +16 -0
- package/dist/common/constants/accessor-prop.d.ts +30 -0
- package/dist/common/constants/accessor-prop.debug.d.ts +30 -0
- package/dist/common/constants/closure-signal-prop.d.ts +6 -0
- package/dist/common/constants/closure-signal-prop.debug.d.ts +6 -0
- package/dist/common/constants/controlled-type.d.ts +9 -0
- package/dist/common/constants/keyed-scopes-prop.d.ts +4 -0
- package/dist/common/constants/keyed-scopes-prop.debug.d.ts +4 -0
- package/dist/common/constants/load-signal-value.d.ts +5 -0
- package/dist/common/constants/load-signal-value.debug.d.ts +5 -0
- package/dist/common/constants/node-type.d.ts +7 -0
- package/dist/common/constants/pending-render-prop.d.ts +9 -0
- package/dist/common/constants/pending-render-prop.debug.d.ts +9 -0
- package/dist/common/constants/renderer-prop.d.ts +12 -0
- package/dist/common/constants/renderer-prop.debug.d.ts +12 -0
- package/dist/common/constants/resume-symbol.d.ts +10 -0
- package/dist/common/constants/walk-code.d.ts +17 -0
- package/dist/common/constants/walk-range-size.d.ts +7 -0
- package/dist/common/types.d.ts +15 -45
- package/dist/debug/dom.js +291 -225
- package/dist/debug/dom.mjs +291 -225
- package/dist/debug/html.js +184 -41
- package/dist/debug/html.mjs +184 -41
- package/dist/dom/compat.d.ts +1 -1
- package/dist/dom/control-flow.d.ts +1 -1
- package/dist/dom/renderer.d.ts +2 -2
- package/dist/dom/scope.d.ts +1 -1
- package/dist/dom.js +8 -6
- package/dist/dom.mjs +8 -6
- package/dist/html/constants/char.d.ts +11 -0
- package/dist/html/constants/flush-status.d.ts +6 -0
- package/dist/html/constants/mark.d.ts +6 -0
- package/dist/html/constants/runtime-key.d.ts +7 -0
- package/dist/html/writer.d.ts +19 -23
- package/dist/html.js +127 -28
- package/dist/html.mjs +127 -28
- package/dist/translator/core/if.d.ts +7 -7
- package/dist/translator/core/index.d.ts +7 -7
- package/dist/translator/index.d.ts +9 -9
- package/dist/translator/index.js +185 -132
- package/dist/translator/interop/constants/feature-type.d.ts +5 -0
- package/dist/translator/interop/index.d.ts +2 -2
- package/dist/translator/util/body-to-text-literal.d.ts +2 -2
- package/dist/translator/util/constants/binding-type.d.ts +10 -0
- package/dist/translator/util/constants/compile-stage.d.ts +8 -0
- package/dist/translator/util/constants/content-type.d.ts +8 -0
- package/dist/translator/util/constants/step.d.ts +5 -0
- package/dist/translator/util/constants/tag-name-type.d.ts +7 -0
- package/dist/translator/util/is-static.d.ts +1 -1
- package/dist/translator/util/references.d.ts +5 -12
- package/dist/translator/util/sections.d.ts +4 -8
- package/dist/translator/util/signals.d.ts +1 -0
- package/dist/translator/util/tag-name-type.d.ts +4 -7
- package/dist/translator/util/walks.d.ts +4 -6
- package/dist/translator/visitors/constants/sibling-text.d.ts +7 -0
- package/dist/translator/visitors/placeholder.d.ts +2 -6
- package/dist/translator/visitors/tag/constants/class-hydration.d.ts +5 -0
- package/dist/translator/visitors/tag/dynamic-tag.d.ts +2 -4
- package/package.json +15 -15
- package/tags-html.d.ts +98 -22
package/tags-html.d.ts
CHANGED
|
@@ -922,7 +922,13 @@ declare global {
|
|
|
922
922
|
* @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-method
|
|
923
923
|
*/
|
|
924
924
|
method?:
|
|
925
|
-
|
|
925
|
+
| AttrMissing
|
|
926
|
+
| "POST"
|
|
927
|
+
| "post"
|
|
928
|
+
| "GET"
|
|
929
|
+
| "get"
|
|
930
|
+
| "dialog"
|
|
931
|
+
| "DIALOG";
|
|
926
932
|
/**
|
|
927
933
|
* The name attribute represents the form's name within the forms collection.
|
|
928
934
|
* @see https://html.spec.whatwg.org/multipage/forms.html#attr-form-name
|
|
@@ -2639,7 +2645,12 @@ declare global {
|
|
|
2639
2645
|
* @see https://svgwg.org/specs/animations/#AnimateTransformElementTypeAttribute
|
|
2640
2646
|
*/
|
|
2641
2647
|
type?:
|
|
2642
|
-
|
|
2648
|
+
| AttrMissing
|
|
2649
|
+
| "translate"
|
|
2650
|
+
| "scale"
|
|
2651
|
+
| "rotate"
|
|
2652
|
+
| "skewX"
|
|
2653
|
+
| "skewY";
|
|
2643
2654
|
}
|
|
2644
2655
|
|
|
2645
2656
|
/**
|
|
@@ -3566,7 +3577,11 @@ declare global {
|
|
|
3566
3577
|
* @see https://www.w3.org/TR/SVG2/painting.html#OrientAttribute
|
|
3567
3578
|
*/
|
|
3568
3579
|
orient?:
|
|
3569
|
-
|
|
3580
|
+
| AttrMissing
|
|
3581
|
+
| "auto"
|
|
3582
|
+
| "auto-start-reverse"
|
|
3583
|
+
| number
|
|
3584
|
+
| (string & {});
|
|
3570
3585
|
}
|
|
3571
3586
|
|
|
3572
3587
|
/**
|
|
@@ -3686,7 +3701,9 @@ declare global {
|
|
|
3686
3701
|
* @see https://www.w3.org/TR/SVG2/pservers.html#PatternElementPatternContentUnitsAttribute
|
|
3687
3702
|
*/
|
|
3688
3703
|
patternContentUnits?:
|
|
3689
|
-
|
|
3704
|
+
| AttrMissing
|
|
3705
|
+
| "userSpaceOnUse"
|
|
3706
|
+
| "objectBoundingBox";
|
|
3690
3707
|
|
|
3691
3708
|
/**
|
|
3692
3709
|
* @see https://www.w3.org/TR/SVG2/pservers.html#PatternElementPatternTransformAttribute
|
|
@@ -3934,13 +3951,23 @@ declare global {
|
|
|
3934
3951
|
* @see https://www.w3.org/TR/SVG2/struct.html#SymbolElementRefXAttribute
|
|
3935
3952
|
*/
|
|
3936
3953
|
refX?:
|
|
3937
|
-
|
|
3954
|
+
| AttrMissing
|
|
3955
|
+
| "left"
|
|
3956
|
+
| "center"
|
|
3957
|
+
| "right"
|
|
3958
|
+
| number
|
|
3959
|
+
| (string & {});
|
|
3938
3960
|
|
|
3939
3961
|
/**
|
|
3940
3962
|
* @see https://www.w3.org/TR/SVG2/struct.html#SymbolElementRefYAttribute
|
|
3941
3963
|
*/
|
|
3942
3964
|
refY?:
|
|
3943
|
-
|
|
3965
|
+
| AttrMissing
|
|
3966
|
+
| "top"
|
|
3967
|
+
| "center"
|
|
3968
|
+
| "bottom"
|
|
3969
|
+
| number
|
|
3970
|
+
| (string & {});
|
|
3944
3971
|
|
|
3945
3972
|
/**
|
|
3946
3973
|
* @see https://www.w3.org/TR/SVG2/geometry.html#XProperty
|
|
@@ -4170,7 +4197,11 @@ declare global {
|
|
|
4170
4197
|
* @see https://html.spec.whatwg.org/multipage/interaction.html#attr-autocapitalize
|
|
4171
4198
|
*/
|
|
4172
4199
|
autocapitalize?:
|
|
4173
|
-
|
|
4200
|
+
| AttrOnOff
|
|
4201
|
+
| "characters"
|
|
4202
|
+
| "none"
|
|
4203
|
+
| "sentences"
|
|
4204
|
+
| "words";
|
|
4174
4205
|
|
|
4175
4206
|
/**
|
|
4176
4207
|
* Indicates whether the element should automatically get focus when the page loads.
|
|
@@ -4439,13 +4470,16 @@ declare global {
|
|
|
4439
4470
|
color?: AttrMissing | csstype.Property.Color;
|
|
4440
4471
|
"color-interpolation"?: AttrMissing | csstype.Property.ColorInterpolation;
|
|
4441
4472
|
"color-interpolation-filters"?:
|
|
4442
|
-
|
|
4473
|
+
| AttrMissing
|
|
4474
|
+
| csstype.Property.ColorInterpolation;
|
|
4443
4475
|
"color-rendering"?: AttrMissing | csstype.Property.ColorRendering;
|
|
4444
4476
|
cursor?: AttrMissing | csstype.Property.Cursor;
|
|
4445
4477
|
direction?: AttrMissing | csstype.Property.Direction;
|
|
4446
4478
|
display?: AttrMissing | csstype.Property.Display;
|
|
4447
4479
|
"dominant-baseline"?:
|
|
4448
|
-
|
|
4480
|
+
| AttrMissing
|
|
4481
|
+
| csstype.Property.DominantBaseline
|
|
4482
|
+
| number;
|
|
4449
4483
|
/**
|
|
4450
4484
|
* @see https://www.w3.org/TR/SVG11/filters.html#EnableBackgroundProperty
|
|
4451
4485
|
*/
|
|
@@ -4460,15 +4494,19 @@ declare global {
|
|
|
4460
4494
|
"font-family"?: AttrMissing | csstype.Property.FontFamily;
|
|
4461
4495
|
"font-size"?: AttrMissing | csstype.Property.FontSize | number;
|
|
4462
4496
|
"font-size-adjust"?:
|
|
4463
|
-
|
|
4497
|
+
| AttrMissing
|
|
4498
|
+
| csstype.Property.FontSizeAdjust
|
|
4499
|
+
| number;
|
|
4464
4500
|
"font-stretch"?: AttrMissing | csstype.Property.FontStretch;
|
|
4465
4501
|
"font-style"?: AttrMissing | csstype.Property.FontStyle;
|
|
4466
4502
|
"font-variant"?: AttrMissing | csstype.Property.FontVariant;
|
|
4467
4503
|
"font-weight"?: AttrMissing | csstype.Property.FontWeight | number;
|
|
4468
4504
|
"glyph-orientation-horizontal"?:
|
|
4469
|
-
|
|
4505
|
+
| AttrMissing
|
|
4506
|
+
| csstype.Property.GlyphOrientationVertical;
|
|
4470
4507
|
"glyph-orientation-vertical"?:
|
|
4471
|
-
|
|
4508
|
+
| AttrMissing
|
|
4509
|
+
| csstype.Property.GlyphOrientationVertical;
|
|
4472
4510
|
"image-rendering"?: AttrMissing | csstype.Property.ImageRendering;
|
|
4473
4511
|
isolation?: AttrMissing | csstype.Property.Isolation;
|
|
4474
4512
|
kerning?: AttrMissing | csstype.Property.FontKerning | number;
|
|
@@ -4488,13 +4526,19 @@ declare global {
|
|
|
4488
4526
|
"stop-opacity"?: AttrMissing | csstype.Property.StopOpacity | number;
|
|
4489
4527
|
stroke?: AttrMissing | csstype.Property.Stroke;
|
|
4490
4528
|
"stroke-dasharray"?:
|
|
4491
|
-
|
|
4529
|
+
| AttrMissing
|
|
4530
|
+
| csstype.Property.StrokeDasharray
|
|
4531
|
+
| number;
|
|
4492
4532
|
"stroke-dashoffset"?:
|
|
4493
|
-
|
|
4533
|
+
| AttrMissing
|
|
4534
|
+
| csstype.Property.StrokeDashoffset
|
|
4535
|
+
| number;
|
|
4494
4536
|
"stroke-linecap"?: AttrMissing | csstype.Property.StrokeLinecap;
|
|
4495
4537
|
"stroke-linejoin"?: AttrMissing | csstype.Property.StrokeLinejoin;
|
|
4496
4538
|
"stroke-miterlimit"?:
|
|
4497
|
-
|
|
4539
|
+
| AttrMissing
|
|
4540
|
+
| csstype.Property.StrokeMiterlimit
|
|
4541
|
+
| number;
|
|
4498
4542
|
"stroke-opacity"?: AttrMissing | csstype.Property.StrokeOpacity | number;
|
|
4499
4543
|
"stroke-width"?: AttrMissing | csstype.Property.StrokeWidth | number;
|
|
4500
4544
|
"text-anchor"?: AttrMissing | csstype.Property.TextAnchor;
|
|
@@ -5552,7 +5596,13 @@ interface CommonAttributes<T extends Element> {
|
|
|
5552
5596
|
* @see https://www.w3.org/TR/wai-aria-1.1/#aria-current
|
|
5553
5597
|
*/
|
|
5554
5598
|
"aria-current"?:
|
|
5555
|
-
|
|
5599
|
+
| AttrBooleanString
|
|
5600
|
+
| "date"
|
|
5601
|
+
| "location"
|
|
5602
|
+
| "page"
|
|
5603
|
+
| "step"
|
|
5604
|
+
| "time"
|
|
5605
|
+
| "true";
|
|
5556
5606
|
/**
|
|
5557
5607
|
* Identifies the element (or elements) that describes the object.
|
|
5558
5608
|
* @see https://www.w3.org/TR/wai-aria-1.1/#aria-describedby
|
|
@@ -5581,7 +5631,13 @@ interface CommonAttributes<T extends Element> {
|
|
|
5581
5631
|
* @see https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect
|
|
5582
5632
|
* */
|
|
5583
5633
|
"aria-dropeffect"?:
|
|
5584
|
-
|
|
5634
|
+
| AttrMissing
|
|
5635
|
+
| "copy"
|
|
5636
|
+
| "execute"
|
|
5637
|
+
| "link"
|
|
5638
|
+
| "move"
|
|
5639
|
+
| "none"
|
|
5640
|
+
| "popup";
|
|
5585
5641
|
/**
|
|
5586
5642
|
* Identifies the element that provides an error message for the object.
|
|
5587
5643
|
* @see https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage
|
|
@@ -5611,7 +5667,12 @@ interface CommonAttributes<T extends Element> {
|
|
|
5611
5667
|
* @see https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup
|
|
5612
5668
|
*/
|
|
5613
5669
|
"aria-haspopup"?:
|
|
5614
|
-
|
|
5670
|
+
| AttrBooleanString
|
|
5671
|
+
| "dialog"
|
|
5672
|
+
| "grid"
|
|
5673
|
+
| "listbox"
|
|
5674
|
+
| "menu"
|
|
5675
|
+
| "tree";
|
|
5615
5676
|
/**
|
|
5616
5677
|
* Indicates whether the element is exposed to an accessibility API.
|
|
5617
5678
|
* @see https://www.w3.org/TR/wai-aria-1.1/#aria-hidden
|
|
@@ -5867,13 +5928,22 @@ interface CommonAttributes<T extends Element> {
|
|
|
5867
5928
|
}
|
|
5868
5929
|
type AttrMissing = undefined | null | false;
|
|
5869
5930
|
type AttrClass =
|
|
5870
|
-
|
|
5931
|
+
| AttrMissing
|
|
5932
|
+
| string
|
|
5933
|
+
| AttrClass[]
|
|
5934
|
+
| Record<string, AttrMissing | boolean>;
|
|
5871
5935
|
type AttrStyle = AttrMissing | string | Marko.CSS.Properties | AttrStyle[];
|
|
5872
5936
|
type AttrCrossOrigin = AttrBoolean | "anonymous" | "use-credentials";
|
|
5873
5937
|
type AttrEventHandler<Event, Target> =
|
|
5874
|
-
|
|
5938
|
+
| AttrMissing
|
|
5939
|
+
| ((event: Event, target: Target) => unknown);
|
|
5875
5940
|
type AttrTarget =
|
|
5876
|
-
|
|
5941
|
+
| AttrMissing
|
|
5942
|
+
| "_blank"
|
|
5943
|
+
| "_parent"
|
|
5944
|
+
| "_self"
|
|
5945
|
+
| "_top"
|
|
5946
|
+
| (string & {});
|
|
5877
5947
|
type AttrReferrerPolicy =
|
|
5878
5948
|
| AttrMissing
|
|
5879
5949
|
| "no-referrer-when-downgrade"
|
|
@@ -5903,7 +5973,13 @@ type AttrHref =
|
|
|
5903
5973
|
* so any URL is accepted while suggesting common prefixes in autocomplete.
|
|
5904
5974
|
*/
|
|
5905
5975
|
type AttrSrc =
|
|
5906
|
-
|
|
5976
|
+
| AttrMissing
|
|
5977
|
+
| "/"
|
|
5978
|
+
| "./"
|
|
5979
|
+
| "https://"
|
|
5980
|
+
| "data:"
|
|
5981
|
+
| "blob:"
|
|
5982
|
+
| (string & {});
|
|
5907
5983
|
/**
|
|
5908
5984
|
* MIME type for type, codetype, and enctype attributes. Use (string & {}) so
|
|
5909
5985
|
* any MIME type is accepted while suggesting common values in autocomplete.
|