marko 6.0.144 → 6.0.146
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 +45 -24
- package/dist/debug/dom.mjs +45 -24
- package/dist/debug/html.js +41 -9
- package/dist/debug/html.mjs +41 -9
- package/dist/dom.js +33 -25
- package/dist/dom.mjs +33 -25
- package/dist/html/attrs.d.ts +2 -2
- package/dist/html.js +34 -9
- package/dist/html.mjs +34 -9
- package/dist/translator/index.js +2 -5
- package/package.json +2 -2
- package/tags/id.d.marko +1 -1
- package/tags-html.d.ts +120 -41
package/tags-html.d.ts
CHANGED
|
@@ -240,7 +240,7 @@ declare global {
|
|
|
240
240
|
* Specifies the URL of the linked resource.
|
|
241
241
|
* @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-href
|
|
242
242
|
*/
|
|
243
|
-
href?:
|
|
243
|
+
href?: AttrHref;
|
|
244
244
|
|
|
245
245
|
/**
|
|
246
246
|
* Specifies the language of the linked resource.
|
|
@@ -298,7 +298,7 @@ declare global {
|
|
|
298
298
|
* Specifies the MIME type of the linked resource.
|
|
299
299
|
* @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-type
|
|
300
300
|
*/
|
|
301
|
-
type?:
|
|
301
|
+
type?: AttrMimeType;
|
|
302
302
|
|
|
303
303
|
/** @deprecated */
|
|
304
304
|
charset?: AttrString;
|
|
@@ -386,7 +386,7 @@ declare global {
|
|
|
386
386
|
nohref?: AttrString;
|
|
387
387
|
|
|
388
388
|
/** @deprecated */
|
|
389
|
-
type?:
|
|
389
|
+
type?: AttrMimeType;
|
|
390
390
|
}
|
|
391
391
|
interface Article extends HTMLAttributes<HTMLElement> {}
|
|
392
392
|
interface Aside extends HTMLAttributes<HTMLElement> {}
|
|
@@ -449,7 +449,7 @@ declare global {
|
|
|
449
449
|
* Specifies the URL of the audio resource.
|
|
450
450
|
* @see https://html.spec.whatwg.org/multipage/media.html#attr-media-src
|
|
451
451
|
*/
|
|
452
|
-
src?:
|
|
452
|
+
src?: AttrSrc;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
interface B extends HTMLAttributes<HTMLElement> {}
|
|
@@ -458,7 +458,7 @@ declare global {
|
|
|
458
458
|
* Specifies the base URL for resolving relative URLs within the document.
|
|
459
459
|
* @see https://html.spec.whatwg.org/multipage/semantics.html#attr-base-href
|
|
460
460
|
*/
|
|
461
|
-
href?:
|
|
461
|
+
href?: AttrHref;
|
|
462
462
|
|
|
463
463
|
/**
|
|
464
464
|
* Specifies the default browsing context for links and forms in the document.
|
|
@@ -473,7 +473,7 @@ declare global {
|
|
|
473
473
|
* Specifies the URL of the source document or quoted content.
|
|
474
474
|
* @see https://html.spec.whatwg.org/multipage/grouping-content.html#attr-blockquote-cite
|
|
475
475
|
*/
|
|
476
|
-
cite?:
|
|
476
|
+
cite?: AttrHref;
|
|
477
477
|
}
|
|
478
478
|
interface Body extends HTMLAttributes<HTMLBodyElement> {
|
|
479
479
|
/**
|
|
@@ -780,7 +780,7 @@ declare global {
|
|
|
780
780
|
* Specifies the URL of the source of the quote or change.
|
|
781
781
|
* @see https://html.spec.whatwg.org/multipage/edits.html#attr-mod-cite
|
|
782
782
|
*/
|
|
783
|
-
cite?:
|
|
783
|
+
cite?: AttrHref;
|
|
784
784
|
|
|
785
785
|
/**
|
|
786
786
|
* Specifies the date and time of the quote or change.
|
|
@@ -804,6 +804,12 @@ declare global {
|
|
|
804
804
|
}
|
|
805
805
|
interface Dfn extends HTMLAttributes<HTMLElement> {}
|
|
806
806
|
interface Dialog extends HTMLAttributes<HTMLDialogElement> {
|
|
807
|
+
/**
|
|
808
|
+
* Specifies the types of user actions that can be used to close the `<dialog>` element.
|
|
809
|
+
* @see https://html.spec.whatwg.org/multipage/interactive-elements.html#attr-dialog-closedby
|
|
810
|
+
*/
|
|
811
|
+
closedby?: AttrMissing | "any" | "closerequest" | "none";
|
|
812
|
+
|
|
807
813
|
/**
|
|
808
814
|
* Specifies whether the `<dialog>` element is open.
|
|
809
815
|
* @see https://html.spec.whatwg.org/multipage/interactive-elements.html#attr-dialog-open
|
|
@@ -832,13 +838,13 @@ declare global {
|
|
|
832
838
|
* Specifies the URL of the resource to embed.
|
|
833
839
|
* @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-embed-src
|
|
834
840
|
*/
|
|
835
|
-
src?:
|
|
841
|
+
src?: AttrSrc;
|
|
836
842
|
|
|
837
843
|
/**
|
|
838
844
|
* Specifies the MIME type of the embedded content.
|
|
839
845
|
* @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-embed-type
|
|
840
846
|
*/
|
|
841
|
-
type?:
|
|
847
|
+
type?: AttrMimeType;
|
|
842
848
|
|
|
843
849
|
/**
|
|
844
850
|
* Specifies the width of the embedded content.
|
|
@@ -876,7 +882,7 @@ declare global {
|
|
|
876
882
|
* Specifies the URL which the form data will be submitted to.
|
|
877
883
|
* @see https://html.spec.whatwg.org/multipage/forms.html#attr-fs-action
|
|
878
884
|
*/
|
|
879
|
-
action?:
|
|
885
|
+
action?: AttrHref;
|
|
880
886
|
/**
|
|
881
887
|
* Controls whether the browser should automatically complete form input values.
|
|
882
888
|
* @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
|
|
@@ -890,7 +896,8 @@ declare global {
|
|
|
890
896
|
| AttrMissing
|
|
891
897
|
| "application/x-www-form-urlencoded"
|
|
892
898
|
| "multipart/form-data"
|
|
893
|
-
| "text/plain"
|
|
899
|
+
| "text/plain"
|
|
900
|
+
| (string & {});
|
|
894
901
|
/**
|
|
895
902
|
* Specifies the HTTP method used to submit the form to the server.
|
|
896
903
|
* @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-method
|
|
@@ -1048,7 +1055,7 @@ declare global {
|
|
|
1048
1055
|
* The URL of the page to embed in the iframe.
|
|
1049
1056
|
* @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-src
|
|
1050
1057
|
*/
|
|
1051
|
-
src?:
|
|
1058
|
+
src?: AttrSrc;
|
|
1052
1059
|
/**
|
|
1053
1060
|
* A document to render inside the iframe.
|
|
1054
1061
|
* @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-srcdoc
|
|
@@ -1132,7 +1139,7 @@ declare global {
|
|
|
1132
1139
|
* The URL of the image to display.
|
|
1133
1140
|
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-src
|
|
1134
1141
|
*/
|
|
1135
|
-
src?:
|
|
1142
|
+
src?: AttrSrc;
|
|
1136
1143
|
|
|
1137
1144
|
/**
|
|
1138
1145
|
* A string containing URL and size descriptor pairs for responsive images.
|
|
@@ -1170,7 +1177,7 @@ declare global {
|
|
|
1170
1177
|
* A comma-separated list of file types that a file input should accept.
|
|
1171
1178
|
* @see https://html.spec.whatwg.org/multipage/input.html#attr-input-accept
|
|
1172
1179
|
*/
|
|
1173
|
-
accept?:
|
|
1180
|
+
accept?: AttrAccept;
|
|
1174
1181
|
|
|
1175
1182
|
/**
|
|
1176
1183
|
* The alternate text for an image input, displayed if the image cannot be loaded.
|
|
@@ -1343,7 +1350,7 @@ declare global {
|
|
|
1343
1350
|
* The URL of the image file.
|
|
1344
1351
|
* @see https://html.spec.whatwg.org/multipage/input.html#attr-input-src
|
|
1345
1352
|
*/
|
|
1346
|
-
src?:
|
|
1353
|
+
src?: AttrSrc;
|
|
1347
1354
|
|
|
1348
1355
|
/**
|
|
1349
1356
|
* Specifies the allowed number intervals for the input value.
|
|
@@ -1407,7 +1414,7 @@ declare global {
|
|
|
1407
1414
|
* When `checkedValue` is an array of strings, the `checked` attribute will be set to a boolean that is `true` if the `checkedValue` array includes the `value`.
|
|
1408
1415
|
* If the `checkedValue` is falsy then `checked` is always `false`.
|
|
1409
1416
|
*/
|
|
1410
|
-
checkedValue?:
|
|
1417
|
+
checkedValue?: AttrStringOrNumber | string[] | number[];
|
|
1411
1418
|
/**
|
|
1412
1419
|
* Called whenever a `input type="checkbox"` or `input type="radio"` using the `checkedValue` attribute has changed.
|
|
1413
1420
|
* When `checkedValueChange` is a function, `checked` becomes controlled.
|
|
@@ -1433,7 +1440,7 @@ declare global {
|
|
|
1433
1440
|
* A URI for a resource that explains the reason for the insertion.
|
|
1434
1441
|
* @see https://html.spec.whatwg.org/multipage/edits.html#attr-mod-cite
|
|
1435
1442
|
*/
|
|
1436
|
-
cite?:
|
|
1443
|
+
cite?: AttrHref;
|
|
1437
1444
|
|
|
1438
1445
|
/**
|
|
1439
1446
|
* The date and time when the element's contents were inserted, in the format "YYYY-MM-DDThh:mm:ssZ".
|
|
@@ -1468,7 +1475,7 @@ declare global {
|
|
|
1468
1475
|
value?: AttrStringOrNumber;
|
|
1469
1476
|
|
|
1470
1477
|
/** @deprecated */
|
|
1471
|
-
type?:
|
|
1478
|
+
type?: AttrMimeType;
|
|
1472
1479
|
}
|
|
1473
1480
|
// TODO break into multiple interfaces based on rel?
|
|
1474
1481
|
interface Link extends HTMLAttributes<HTMLLinkElement> {
|
|
@@ -1519,7 +1526,7 @@ declare global {
|
|
|
1519
1526
|
* Specifies the URL of the linked resource.
|
|
1520
1527
|
* @see https://html.spec.whatwg.org/multipage/links.html#attr-link-href
|
|
1521
1528
|
*/
|
|
1522
|
-
href?:
|
|
1529
|
+
href?: AttrHref;
|
|
1523
1530
|
|
|
1524
1531
|
/**
|
|
1525
1532
|
* Specifies the language of the linked resource.
|
|
@@ -1594,7 +1601,7 @@ declare global {
|
|
|
1594
1601
|
* Specifies the MIME type of the linked resource.
|
|
1595
1602
|
* @see https://html.spec.whatwg.org/multipage/links.html#attr-link-type
|
|
1596
1603
|
*/
|
|
1597
|
-
type?:
|
|
1604
|
+
type?: AttrMimeType;
|
|
1598
1605
|
|
|
1599
1606
|
// DEPRECATED
|
|
1600
1607
|
|
|
@@ -1730,7 +1737,7 @@ declare global {
|
|
|
1730
1737
|
* Specifies the MIME type of the resource.
|
|
1731
1738
|
* @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-object-type
|
|
1732
1739
|
*/
|
|
1733
|
-
type?:
|
|
1740
|
+
type?: AttrMimeType;
|
|
1734
1741
|
|
|
1735
1742
|
/**
|
|
1736
1743
|
* Specifies a client-side image map to be used with the object element.
|
|
@@ -1753,7 +1760,7 @@ declare global {
|
|
|
1753
1760
|
/** @deprecated */
|
|
1754
1761
|
codebase?: AttrString;
|
|
1755
1762
|
/** @deprecated */
|
|
1756
|
-
codetype?:
|
|
1763
|
+
codetype?: AttrMimeType;
|
|
1757
1764
|
/** @deprecated */
|
|
1758
1765
|
declare?: AttrBoolean;
|
|
1759
1766
|
/** @deprecated */
|
|
@@ -1865,7 +1872,7 @@ declare global {
|
|
|
1865
1872
|
* Specifies the URL of the source document or message that the quotation came from.
|
|
1866
1873
|
* @see https://html.spec.whatwg.org/multipage/text-level-semantics.html#attr-q-cite
|
|
1867
1874
|
*/
|
|
1868
|
-
cite?:
|
|
1875
|
+
cite?: AttrHref;
|
|
1869
1876
|
}
|
|
1870
1877
|
|
|
1871
1878
|
interface RP extends HTMLAttributes<HTMLElement> {}
|
|
@@ -1926,7 +1933,7 @@ declare global {
|
|
|
1926
1933
|
* Specifies the URL of the script.
|
|
1927
1934
|
* @see https://html.spec.whatwg.org/multipage/scripting.html#attr-script-src
|
|
1928
1935
|
*/
|
|
1929
|
-
src?:
|
|
1936
|
+
src?: AttrSrc;
|
|
1930
1937
|
|
|
1931
1938
|
/**
|
|
1932
1939
|
* Specifies the type of the script.
|
|
@@ -1997,7 +2004,7 @@ declare global {
|
|
|
1997
2004
|
* When the `value` is a string, nested `<option>` tags with a matching `value` attribute become `selected`.
|
|
1998
2005
|
* When the `value` is an array of strings, nested `<option>` tags with a `value` contained within the array are `selected.
|
|
1999
2006
|
*/
|
|
2000
|
-
value?:
|
|
2007
|
+
value?: AttrStringOrNumber | string[] | number[];
|
|
2001
2008
|
|
|
2002
2009
|
/**
|
|
2003
2010
|
* Called whenever a the `value` property of the `select` has changed.
|
|
@@ -2027,13 +2034,13 @@ declare global {
|
|
|
2027
2034
|
* Helps the browser decide if it can play the resource or not.
|
|
2028
2035
|
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-type
|
|
2029
2036
|
*/
|
|
2030
|
-
type?:
|
|
2037
|
+
type?: AttrMimeType;
|
|
2031
2038
|
|
|
2032
2039
|
/**
|
|
2033
2040
|
* Specifies the URL of the media resource for the <source> element.
|
|
2034
2041
|
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-src
|
|
2035
2042
|
*/
|
|
2036
|
-
src?:
|
|
2043
|
+
src?: AttrSrc;
|
|
2037
2044
|
|
|
2038
2045
|
/**
|
|
2039
2046
|
* Specifies a list of image sources for the <source> element when used inside a <picture> element.
|
|
@@ -2089,7 +2096,7 @@ declare global {
|
|
|
2089
2096
|
/** @deprecated */
|
|
2090
2097
|
scoped?: AttrBoolean;
|
|
2091
2098
|
/** @deprecated */
|
|
2092
|
-
type?:
|
|
2099
|
+
type?: AttrMimeType;
|
|
2093
2100
|
}
|
|
2094
2101
|
interface Sub extends HTMLAttributes<HTMLElement> {}
|
|
2095
2102
|
interface Summary extends HTMLAttributes<HTMLElement> {}
|
|
@@ -2383,7 +2390,7 @@ declare global {
|
|
|
2383
2390
|
| "chapters"
|
|
2384
2391
|
| "metadata";
|
|
2385
2392
|
label?: AttrString;
|
|
2386
|
-
src?:
|
|
2393
|
+
src?: AttrSrc;
|
|
2387
2394
|
srclang?: AttrString;
|
|
2388
2395
|
}
|
|
2389
2396
|
interface U extends HTMLAttributes<HTMLElement> {}
|
|
@@ -2471,7 +2478,7 @@ declare global {
|
|
|
2471
2478
|
* Specifies the URL of an image to be shown while the video is downloading or until the user plays the video.
|
|
2472
2479
|
* @see https://html.spec.whatwg.org/multipage/media.html#attr-video-poster
|
|
2473
2480
|
*/
|
|
2474
|
-
poster?:
|
|
2481
|
+
poster?: AttrSrc;
|
|
2475
2482
|
|
|
2476
2483
|
/**
|
|
2477
2484
|
* Specifies how much of the video should be preloaded when the page loads.
|
|
@@ -2482,7 +2489,7 @@ declare global {
|
|
|
2482
2489
|
* Specifies the URL of the video file to be embedded.
|
|
2483
2490
|
* @see https://html.spec.whatwg.org/multipage/media.html#attr-media-src
|
|
2484
2491
|
*/
|
|
2485
|
-
src?:
|
|
2492
|
+
src?: AttrSrc;
|
|
2486
2493
|
/**
|
|
2487
2494
|
* Specifies the width of the video's display area.
|
|
2488
2495
|
* @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
|
|
@@ -2505,7 +2512,7 @@ declare global {
|
|
|
2505
2512
|
/**
|
|
2506
2513
|
* @see https://www.w3.org/TR/SVG2/linking.html#AElementHrefAttribute
|
|
2507
2514
|
*/
|
|
2508
|
-
href?:
|
|
2515
|
+
href?: AttrHref;
|
|
2509
2516
|
|
|
2510
2517
|
/**
|
|
2511
2518
|
* @see https://www.w3.org/TR/SVG2/linking.html#AElementTargetAttribute
|
|
@@ -2683,7 +2690,7 @@ declare global {
|
|
|
2683
2690
|
/**
|
|
2684
2691
|
* @see https://svgwg.org/specs/animations/#DiscardElementHrefAttribute
|
|
2685
2692
|
*/
|
|
2686
|
-
href?:
|
|
2693
|
+
href?: AttrHref;
|
|
2687
2694
|
}
|
|
2688
2695
|
|
|
2689
2696
|
/**
|
|
@@ -3389,7 +3396,7 @@ declare global {
|
|
|
3389
3396
|
/**
|
|
3390
3397
|
* @see https://www.w3.org/TR/SVG2/embedded.html#ImageElementHrefAttribute
|
|
3391
3398
|
*/
|
|
3392
|
-
href?:
|
|
3399
|
+
href?: AttrHref;
|
|
3393
3400
|
|
|
3394
3401
|
/**
|
|
3395
3402
|
* @see https://www.w3.org/TR/SVG2/embedded.html#ImageElementCrossoriginAttribute
|
|
@@ -3492,7 +3499,7 @@ declare global {
|
|
|
3492
3499
|
/**
|
|
3493
3500
|
* @see https://www.w3.org/TR/SVG2/pservers.html#LinearGradientElementHrefAttribute
|
|
3494
3501
|
*/
|
|
3495
|
-
href?:
|
|
3502
|
+
href?: AttrHref;
|
|
3496
3503
|
}
|
|
3497
3504
|
|
|
3498
3505
|
/**
|
|
@@ -3598,7 +3605,7 @@ declare global {
|
|
|
3598
3605
|
/**
|
|
3599
3606
|
* @see https://svgwg.org/specs/animations/#MPathElementHrefAttribute
|
|
3600
3607
|
*/
|
|
3601
|
-
href?:
|
|
3608
|
+
href?: AttrHref;
|
|
3602
3609
|
}
|
|
3603
3610
|
|
|
3604
3611
|
/**
|
|
@@ -3674,7 +3681,7 @@ declare global {
|
|
|
3674
3681
|
/**
|
|
3675
3682
|
* @see https://www.w3.org/TR/SVG2/pservers.html#PatternElementHrefAttribute
|
|
3676
3683
|
*/
|
|
3677
|
-
href?:
|
|
3684
|
+
href?: AttrHref;
|
|
3678
3685
|
}
|
|
3679
3686
|
|
|
3680
3687
|
/**
|
|
@@ -3765,7 +3772,7 @@ declare global {
|
|
|
3765
3772
|
/**
|
|
3766
3773
|
* @see https://www.w3.org/TR/SVG2/pservers.html#RadialGradientElementHrefAttribute
|
|
3767
3774
|
*/
|
|
3768
|
-
href?:
|
|
3775
|
+
href?: AttrHref;
|
|
3769
3776
|
}
|
|
3770
3777
|
|
|
3771
3778
|
/**
|
|
@@ -4019,7 +4026,7 @@ declare global {
|
|
|
4019
4026
|
/**
|
|
4020
4027
|
* @see https://www.w3.org/TR/SVG2/text.html#TextPathElementHrefAttribute
|
|
4021
4028
|
*/
|
|
4022
|
-
href?:
|
|
4029
|
+
href?: AttrHref;
|
|
4023
4030
|
|
|
4024
4031
|
/**
|
|
4025
4032
|
* @see https://www.w3.org/TR/SVG2/text.html#TextPathElementStartOffsetAttribute
|
|
@@ -4100,7 +4107,7 @@ declare global {
|
|
|
4100
4107
|
/**
|
|
4101
4108
|
* @see https://www.w3.org/TR/SVG2/struct.html#UseElementHrefAttribute
|
|
4102
4109
|
*/
|
|
4103
|
-
href?:
|
|
4110
|
+
href?: AttrHref;
|
|
4104
4111
|
|
|
4105
4112
|
/**
|
|
4106
4113
|
* @see https://www.w3.org/TR/SVG2/geometry.html#XProperty
|
|
@@ -4574,7 +4581,7 @@ interface SVGAnimationTargetElementAttributes {
|
|
|
4574
4581
|
/**
|
|
4575
4582
|
* @see https://svgwg.org/specs/animations/#HrefAttribute
|
|
4576
4583
|
*/
|
|
4577
|
-
href?:
|
|
4584
|
+
href?: AttrHref;
|
|
4578
4585
|
}
|
|
4579
4586
|
|
|
4580
4587
|
interface SVGAnimationAttributeTargetAttributes {
|
|
@@ -5915,6 +5922,78 @@ type AttrReferrerPolicy =
|
|
|
5915
5922
|
| "strict-origin-when-cross-origin"
|
|
5916
5923
|
| "strict-origin"
|
|
5917
5924
|
| "unsafe-url";
|
|
5925
|
+
/**
|
|
5926
|
+
* URL for links, form actions, and citations. Use (string & {}) so any URL is
|
|
5927
|
+
* accepted while suggesting common prefixes in autocomplete.
|
|
5928
|
+
*/
|
|
5929
|
+
type AttrHref =
|
|
5930
|
+
| AttrMissing
|
|
5931
|
+
| "#"
|
|
5932
|
+
| "mailto:"
|
|
5933
|
+
| "tel:"
|
|
5934
|
+
| "/"
|
|
5935
|
+
| "./"
|
|
5936
|
+
| "https://"
|
|
5937
|
+
| "data:"
|
|
5938
|
+
| (string & {});
|
|
5939
|
+
/**
|
|
5940
|
+
* URL for embeddable resources (img, script, iframe, etc.). Use (string & {})
|
|
5941
|
+
* so any URL is accepted while suggesting common prefixes in autocomplete.
|
|
5942
|
+
*/
|
|
5943
|
+
type AttrSrc =
|
|
5944
|
+
| AttrMissing
|
|
5945
|
+
| "/"
|
|
5946
|
+
| "./"
|
|
5947
|
+
| "https://"
|
|
5948
|
+
| "data:"
|
|
5949
|
+
| "blob:"
|
|
5950
|
+
| (string & {});
|
|
5951
|
+
/**
|
|
5952
|
+
* MIME type for type, codetype, and enctype attributes. Use (string & {}) so
|
|
5953
|
+
* any MIME type is accepted while suggesting common values in autocomplete.
|
|
5954
|
+
*/
|
|
5955
|
+
type AttrMimeType =
|
|
5956
|
+
| AttrMissing
|
|
5957
|
+
| "text/html"
|
|
5958
|
+
| "text/css"
|
|
5959
|
+
| "text/javascript"
|
|
5960
|
+
| "application/javascript"
|
|
5961
|
+
| "application/json"
|
|
5962
|
+
| "application/pdf"
|
|
5963
|
+
| "text/plain"
|
|
5964
|
+
| "application/x-www-form-urlencoded"
|
|
5965
|
+
| "multipart/form-data"
|
|
5966
|
+
| "image/png"
|
|
5967
|
+
| "image/jpeg"
|
|
5968
|
+
| "image/gif"
|
|
5969
|
+
| "image/svg+xml"
|
|
5970
|
+
| "image/webp"
|
|
5971
|
+
| "video/mp4"
|
|
5972
|
+
| "video/webm"
|
|
5973
|
+
| "audio/mpeg"
|
|
5974
|
+
| "audio/webm"
|
|
5975
|
+
| "font/woff"
|
|
5976
|
+
| "font/woff2"
|
|
5977
|
+
| (string & {});
|
|
5978
|
+
/**
|
|
5979
|
+
* File type hint for input accept. Use (string & {}) so any value is accepted
|
|
5980
|
+
* while suggesting common MIME wildcards and extensions in autocomplete.
|
|
5981
|
+
*/
|
|
5982
|
+
type AttrAccept =
|
|
5983
|
+
| AttrMissing
|
|
5984
|
+
| "image/*"
|
|
5985
|
+
| "audio/*"
|
|
5986
|
+
| "video/*"
|
|
5987
|
+
| "application/pdf"
|
|
5988
|
+
| ".pdf"
|
|
5989
|
+
| ".doc"
|
|
5990
|
+
| ".docx"
|
|
5991
|
+
| ".jpg"
|
|
5992
|
+
| ".jpeg"
|
|
5993
|
+
| ".png"
|
|
5994
|
+
| ".gif"
|
|
5995
|
+
| ".webp"
|
|
5996
|
+
| (string & {});
|
|
5918
5997
|
type AttrString = AttrMissing | string;
|
|
5919
5998
|
type AttrStringOrNumber = AttrString | number;
|
|
5920
5999
|
type AttrBoolean = AttrMissing | boolean;
|