marko 6.0.145 → 6.0.147
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 +189 -135
- package/dist/debug/dom.mjs +189 -135
- package/dist/debug/html.js +41 -9
- package/dist/debug/html.mjs +41 -9
- package/dist/dom/controllable.d.ts +5 -1
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +112 -91
- package/dist/dom.mjs +112 -91
- 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 +26 -13
- package/package.json +2 -2
- package/tags/id.d.marko +1 -1
- package/tags-html.d.ts +114 -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.
|
|
@@ -838,13 +838,13 @@ declare global {
|
|
|
838
838
|
* Specifies the URL of the resource to embed.
|
|
839
839
|
* @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-embed-src
|
|
840
840
|
*/
|
|
841
|
-
src?:
|
|
841
|
+
src?: AttrSrc;
|
|
842
842
|
|
|
843
843
|
/**
|
|
844
844
|
* Specifies the MIME type of the embedded content.
|
|
845
845
|
* @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-embed-type
|
|
846
846
|
*/
|
|
847
|
-
type?:
|
|
847
|
+
type?: AttrMimeType;
|
|
848
848
|
|
|
849
849
|
/**
|
|
850
850
|
* Specifies the width of the embedded content.
|
|
@@ -882,7 +882,7 @@ declare global {
|
|
|
882
882
|
* Specifies the URL which the form data will be submitted to.
|
|
883
883
|
* @see https://html.spec.whatwg.org/multipage/forms.html#attr-fs-action
|
|
884
884
|
*/
|
|
885
|
-
action?:
|
|
885
|
+
action?: AttrHref;
|
|
886
886
|
/**
|
|
887
887
|
* Controls whether the browser should automatically complete form input values.
|
|
888
888
|
* @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
|
|
@@ -896,7 +896,8 @@ declare global {
|
|
|
896
896
|
| AttrMissing
|
|
897
897
|
| "application/x-www-form-urlencoded"
|
|
898
898
|
| "multipart/form-data"
|
|
899
|
-
| "text/plain"
|
|
899
|
+
| "text/plain"
|
|
900
|
+
| (string & {});
|
|
900
901
|
/**
|
|
901
902
|
* Specifies the HTTP method used to submit the form to the server.
|
|
902
903
|
* @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-method
|
|
@@ -1054,7 +1055,7 @@ declare global {
|
|
|
1054
1055
|
* The URL of the page to embed in the iframe.
|
|
1055
1056
|
* @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-src
|
|
1056
1057
|
*/
|
|
1057
|
-
src?:
|
|
1058
|
+
src?: AttrSrc;
|
|
1058
1059
|
/**
|
|
1059
1060
|
* A document to render inside the iframe.
|
|
1060
1061
|
* @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-srcdoc
|
|
@@ -1138,7 +1139,7 @@ declare global {
|
|
|
1138
1139
|
* The URL of the image to display.
|
|
1139
1140
|
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-src
|
|
1140
1141
|
*/
|
|
1141
|
-
src?:
|
|
1142
|
+
src?: AttrSrc;
|
|
1142
1143
|
|
|
1143
1144
|
/**
|
|
1144
1145
|
* A string containing URL and size descriptor pairs for responsive images.
|
|
@@ -1176,7 +1177,7 @@ declare global {
|
|
|
1176
1177
|
* A comma-separated list of file types that a file input should accept.
|
|
1177
1178
|
* @see https://html.spec.whatwg.org/multipage/input.html#attr-input-accept
|
|
1178
1179
|
*/
|
|
1179
|
-
accept?:
|
|
1180
|
+
accept?: AttrAccept;
|
|
1180
1181
|
|
|
1181
1182
|
/**
|
|
1182
1183
|
* The alternate text for an image input, displayed if the image cannot be loaded.
|
|
@@ -1349,7 +1350,7 @@ declare global {
|
|
|
1349
1350
|
* The URL of the image file.
|
|
1350
1351
|
* @see https://html.spec.whatwg.org/multipage/input.html#attr-input-src
|
|
1351
1352
|
*/
|
|
1352
|
-
src?:
|
|
1353
|
+
src?: AttrSrc;
|
|
1353
1354
|
|
|
1354
1355
|
/**
|
|
1355
1356
|
* Specifies the allowed number intervals for the input value.
|
|
@@ -1413,7 +1414,7 @@ declare global {
|
|
|
1413
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`.
|
|
1414
1415
|
* If the `checkedValue` is falsy then `checked` is always `false`.
|
|
1415
1416
|
*/
|
|
1416
|
-
checkedValue?:
|
|
1417
|
+
checkedValue?: AttrStringOrNumber | string[] | number[];
|
|
1417
1418
|
/**
|
|
1418
1419
|
* Called whenever a `input type="checkbox"` or `input type="radio"` using the `checkedValue` attribute has changed.
|
|
1419
1420
|
* When `checkedValueChange` is a function, `checked` becomes controlled.
|
|
@@ -1439,7 +1440,7 @@ declare global {
|
|
|
1439
1440
|
* A URI for a resource that explains the reason for the insertion.
|
|
1440
1441
|
* @see https://html.spec.whatwg.org/multipage/edits.html#attr-mod-cite
|
|
1441
1442
|
*/
|
|
1442
|
-
cite?:
|
|
1443
|
+
cite?: AttrHref;
|
|
1443
1444
|
|
|
1444
1445
|
/**
|
|
1445
1446
|
* The date and time when the element's contents were inserted, in the format "YYYY-MM-DDThh:mm:ssZ".
|
|
@@ -1474,7 +1475,7 @@ declare global {
|
|
|
1474
1475
|
value?: AttrStringOrNumber;
|
|
1475
1476
|
|
|
1476
1477
|
/** @deprecated */
|
|
1477
|
-
type?:
|
|
1478
|
+
type?: AttrMimeType;
|
|
1478
1479
|
}
|
|
1479
1480
|
// TODO break into multiple interfaces based on rel?
|
|
1480
1481
|
interface Link extends HTMLAttributes<HTMLLinkElement> {
|
|
@@ -1525,7 +1526,7 @@ declare global {
|
|
|
1525
1526
|
* Specifies the URL of the linked resource.
|
|
1526
1527
|
* @see https://html.spec.whatwg.org/multipage/links.html#attr-link-href
|
|
1527
1528
|
*/
|
|
1528
|
-
href?:
|
|
1529
|
+
href?: AttrHref;
|
|
1529
1530
|
|
|
1530
1531
|
/**
|
|
1531
1532
|
* Specifies the language of the linked resource.
|
|
@@ -1600,7 +1601,7 @@ declare global {
|
|
|
1600
1601
|
* Specifies the MIME type of the linked resource.
|
|
1601
1602
|
* @see https://html.spec.whatwg.org/multipage/links.html#attr-link-type
|
|
1602
1603
|
*/
|
|
1603
|
-
type?:
|
|
1604
|
+
type?: AttrMimeType;
|
|
1604
1605
|
|
|
1605
1606
|
// DEPRECATED
|
|
1606
1607
|
|
|
@@ -1736,7 +1737,7 @@ declare global {
|
|
|
1736
1737
|
* Specifies the MIME type of the resource.
|
|
1737
1738
|
* @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-object-type
|
|
1738
1739
|
*/
|
|
1739
|
-
type?:
|
|
1740
|
+
type?: AttrMimeType;
|
|
1740
1741
|
|
|
1741
1742
|
/**
|
|
1742
1743
|
* Specifies a client-side image map to be used with the object element.
|
|
@@ -1759,7 +1760,7 @@ declare global {
|
|
|
1759
1760
|
/** @deprecated */
|
|
1760
1761
|
codebase?: AttrString;
|
|
1761
1762
|
/** @deprecated */
|
|
1762
|
-
codetype?:
|
|
1763
|
+
codetype?: AttrMimeType;
|
|
1763
1764
|
/** @deprecated */
|
|
1764
1765
|
declare?: AttrBoolean;
|
|
1765
1766
|
/** @deprecated */
|
|
@@ -1871,7 +1872,7 @@ declare global {
|
|
|
1871
1872
|
* Specifies the URL of the source document or message that the quotation came from.
|
|
1872
1873
|
* @see https://html.spec.whatwg.org/multipage/text-level-semantics.html#attr-q-cite
|
|
1873
1874
|
*/
|
|
1874
|
-
cite?:
|
|
1875
|
+
cite?: AttrHref;
|
|
1875
1876
|
}
|
|
1876
1877
|
|
|
1877
1878
|
interface RP extends HTMLAttributes<HTMLElement> {}
|
|
@@ -1932,7 +1933,7 @@ declare global {
|
|
|
1932
1933
|
* Specifies the URL of the script.
|
|
1933
1934
|
* @see https://html.spec.whatwg.org/multipage/scripting.html#attr-script-src
|
|
1934
1935
|
*/
|
|
1935
|
-
src?:
|
|
1936
|
+
src?: AttrSrc;
|
|
1936
1937
|
|
|
1937
1938
|
/**
|
|
1938
1939
|
* Specifies the type of the script.
|
|
@@ -2003,7 +2004,7 @@ declare global {
|
|
|
2003
2004
|
* When the `value` is a string, nested `<option>` tags with a matching `value` attribute become `selected`.
|
|
2004
2005
|
* When the `value` is an array of strings, nested `<option>` tags with a `value` contained within the array are `selected.
|
|
2005
2006
|
*/
|
|
2006
|
-
value?:
|
|
2007
|
+
value?: AttrStringOrNumber | string[] | number[];
|
|
2007
2008
|
|
|
2008
2009
|
/**
|
|
2009
2010
|
* Called whenever a the `value` property of the `select` has changed.
|
|
@@ -2033,13 +2034,13 @@ declare global {
|
|
|
2033
2034
|
* Helps the browser decide if it can play the resource or not.
|
|
2034
2035
|
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-type
|
|
2035
2036
|
*/
|
|
2036
|
-
type?:
|
|
2037
|
+
type?: AttrMimeType;
|
|
2037
2038
|
|
|
2038
2039
|
/**
|
|
2039
2040
|
* Specifies the URL of the media resource for the <source> element.
|
|
2040
2041
|
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-src
|
|
2041
2042
|
*/
|
|
2042
|
-
src?:
|
|
2043
|
+
src?: AttrSrc;
|
|
2043
2044
|
|
|
2044
2045
|
/**
|
|
2045
2046
|
* Specifies a list of image sources for the <source> element when used inside a <picture> element.
|
|
@@ -2095,7 +2096,7 @@ declare global {
|
|
|
2095
2096
|
/** @deprecated */
|
|
2096
2097
|
scoped?: AttrBoolean;
|
|
2097
2098
|
/** @deprecated */
|
|
2098
|
-
type?:
|
|
2099
|
+
type?: AttrMimeType;
|
|
2099
2100
|
}
|
|
2100
2101
|
interface Sub extends HTMLAttributes<HTMLElement> {}
|
|
2101
2102
|
interface Summary extends HTMLAttributes<HTMLElement> {}
|
|
@@ -2389,7 +2390,7 @@ declare global {
|
|
|
2389
2390
|
| "chapters"
|
|
2390
2391
|
| "metadata";
|
|
2391
2392
|
label?: AttrString;
|
|
2392
|
-
src?:
|
|
2393
|
+
src?: AttrSrc;
|
|
2393
2394
|
srclang?: AttrString;
|
|
2394
2395
|
}
|
|
2395
2396
|
interface U extends HTMLAttributes<HTMLElement> {}
|
|
@@ -2477,7 +2478,7 @@ declare global {
|
|
|
2477
2478
|
* Specifies the URL of an image to be shown while the video is downloading or until the user plays the video.
|
|
2478
2479
|
* @see https://html.spec.whatwg.org/multipage/media.html#attr-video-poster
|
|
2479
2480
|
*/
|
|
2480
|
-
poster?:
|
|
2481
|
+
poster?: AttrSrc;
|
|
2481
2482
|
|
|
2482
2483
|
/**
|
|
2483
2484
|
* Specifies how much of the video should be preloaded when the page loads.
|
|
@@ -2488,7 +2489,7 @@ declare global {
|
|
|
2488
2489
|
* Specifies the URL of the video file to be embedded.
|
|
2489
2490
|
* @see https://html.spec.whatwg.org/multipage/media.html#attr-media-src
|
|
2490
2491
|
*/
|
|
2491
|
-
src?:
|
|
2492
|
+
src?: AttrSrc;
|
|
2492
2493
|
/**
|
|
2493
2494
|
* Specifies the width of the video's display area.
|
|
2494
2495
|
* @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
|
|
@@ -2511,7 +2512,7 @@ declare global {
|
|
|
2511
2512
|
/**
|
|
2512
2513
|
* @see https://www.w3.org/TR/SVG2/linking.html#AElementHrefAttribute
|
|
2513
2514
|
*/
|
|
2514
|
-
href?:
|
|
2515
|
+
href?: AttrHref;
|
|
2515
2516
|
|
|
2516
2517
|
/**
|
|
2517
2518
|
* @see https://www.w3.org/TR/SVG2/linking.html#AElementTargetAttribute
|
|
@@ -2689,7 +2690,7 @@ declare global {
|
|
|
2689
2690
|
/**
|
|
2690
2691
|
* @see https://svgwg.org/specs/animations/#DiscardElementHrefAttribute
|
|
2691
2692
|
*/
|
|
2692
|
-
href?:
|
|
2693
|
+
href?: AttrHref;
|
|
2693
2694
|
}
|
|
2694
2695
|
|
|
2695
2696
|
/**
|
|
@@ -3395,7 +3396,7 @@ declare global {
|
|
|
3395
3396
|
/**
|
|
3396
3397
|
* @see https://www.w3.org/TR/SVG2/embedded.html#ImageElementHrefAttribute
|
|
3397
3398
|
*/
|
|
3398
|
-
href?:
|
|
3399
|
+
href?: AttrHref;
|
|
3399
3400
|
|
|
3400
3401
|
/**
|
|
3401
3402
|
* @see https://www.w3.org/TR/SVG2/embedded.html#ImageElementCrossoriginAttribute
|
|
@@ -3498,7 +3499,7 @@ declare global {
|
|
|
3498
3499
|
/**
|
|
3499
3500
|
* @see https://www.w3.org/TR/SVG2/pservers.html#LinearGradientElementHrefAttribute
|
|
3500
3501
|
*/
|
|
3501
|
-
href?:
|
|
3502
|
+
href?: AttrHref;
|
|
3502
3503
|
}
|
|
3503
3504
|
|
|
3504
3505
|
/**
|
|
@@ -3604,7 +3605,7 @@ declare global {
|
|
|
3604
3605
|
/**
|
|
3605
3606
|
* @see https://svgwg.org/specs/animations/#MPathElementHrefAttribute
|
|
3606
3607
|
*/
|
|
3607
|
-
href?:
|
|
3608
|
+
href?: AttrHref;
|
|
3608
3609
|
}
|
|
3609
3610
|
|
|
3610
3611
|
/**
|
|
@@ -3680,7 +3681,7 @@ declare global {
|
|
|
3680
3681
|
/**
|
|
3681
3682
|
* @see https://www.w3.org/TR/SVG2/pservers.html#PatternElementHrefAttribute
|
|
3682
3683
|
*/
|
|
3683
|
-
href?:
|
|
3684
|
+
href?: AttrHref;
|
|
3684
3685
|
}
|
|
3685
3686
|
|
|
3686
3687
|
/**
|
|
@@ -3771,7 +3772,7 @@ declare global {
|
|
|
3771
3772
|
/**
|
|
3772
3773
|
* @see https://www.w3.org/TR/SVG2/pservers.html#RadialGradientElementHrefAttribute
|
|
3773
3774
|
*/
|
|
3774
|
-
href?:
|
|
3775
|
+
href?: AttrHref;
|
|
3775
3776
|
}
|
|
3776
3777
|
|
|
3777
3778
|
/**
|
|
@@ -4025,7 +4026,7 @@ declare global {
|
|
|
4025
4026
|
/**
|
|
4026
4027
|
* @see https://www.w3.org/TR/SVG2/text.html#TextPathElementHrefAttribute
|
|
4027
4028
|
*/
|
|
4028
|
-
href?:
|
|
4029
|
+
href?: AttrHref;
|
|
4029
4030
|
|
|
4030
4031
|
/**
|
|
4031
4032
|
* @see https://www.w3.org/TR/SVG2/text.html#TextPathElementStartOffsetAttribute
|
|
@@ -4106,7 +4107,7 @@ declare global {
|
|
|
4106
4107
|
/**
|
|
4107
4108
|
* @see https://www.w3.org/TR/SVG2/struct.html#UseElementHrefAttribute
|
|
4108
4109
|
*/
|
|
4109
|
-
href?:
|
|
4110
|
+
href?: AttrHref;
|
|
4110
4111
|
|
|
4111
4112
|
/**
|
|
4112
4113
|
* @see https://www.w3.org/TR/SVG2/geometry.html#XProperty
|
|
@@ -4580,7 +4581,7 @@ interface SVGAnimationTargetElementAttributes {
|
|
|
4580
4581
|
/**
|
|
4581
4582
|
* @see https://svgwg.org/specs/animations/#HrefAttribute
|
|
4582
4583
|
*/
|
|
4583
|
-
href?:
|
|
4584
|
+
href?: AttrHref;
|
|
4584
4585
|
}
|
|
4585
4586
|
|
|
4586
4587
|
interface SVGAnimationAttributeTargetAttributes {
|
|
@@ -5921,6 +5922,78 @@ type AttrReferrerPolicy =
|
|
|
5921
5922
|
| "strict-origin-when-cross-origin"
|
|
5922
5923
|
| "strict-origin"
|
|
5923
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 & {});
|
|
5924
5997
|
type AttrString = AttrMissing | string;
|
|
5925
5998
|
type AttrStringOrNumber = AttrString | number;
|
|
5926
5999
|
type AttrBoolean = AttrMissing | boolean;
|