ovr 4.2.7 → 4.4.0

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.
@@ -106,7 +106,7 @@ type Attributes<
106
106
  slot: string;
107
107
  spellcheck: "true" | "false";
108
108
  style: string;
109
- tabindex: number;
109
+ tabindex: string | number;
110
110
  title: string;
111
111
  translate: string;
112
112
  virtualkeyboardpolicy: string;
@@ -159,32 +159,32 @@ type SharedAttributes = {
159
159
  // https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#token-list
160
160
  | (string & {});
161
161
  blocking: "render";
162
- crossorigin: boolean | "anonymous" | "use-credentials";
163
- referrerpolicy:
164
- | "no-referrer"
165
- | "no-referrer-when-downgrade"
166
- | "origin"
167
- | "origin-when-cross-origin"
168
- | "same-origin"
169
- | "strict-origin"
170
- | "strict-origin-when-cross-origin"
171
- | "unsafe-url";
172
- target: "_self" | "_blank" | "_parent" | "_top";
173
- preload: "none" | "metadata" | "auto";
174
162
  controlslist:
175
163
  | "nodownload"
176
164
  | "nofullscreen"
177
165
  | "noremoteplayback"
178
166
  // allows multiple
179
167
  | (string & {});
168
+ crossorigin: boolean | "anonymous" | "use-credentials";
180
169
  enctype:
181
170
  | "application/x-www-form-urlencoded"
182
171
  | "multipart/form-data"
183
172
  | "text/plain";
184
- method: "get" | "post" | "dialog";
185
- loading: "eager" | "lazy";
186
173
  fetchpriority: "high" | "low" | "auto";
174
+ loading: "eager" | "lazy";
175
+ method: "get" | "post" | "dialog";
187
176
  popovertargetaction: "hide" | "show" | "toggle";
177
+ preload: "none" | "metadata" | "auto";
178
+ referrerpolicy:
179
+ | "no-referrer"
180
+ | "no-referrer-when-downgrade"
181
+ | "origin"
182
+ | "origin-when-cross-origin"
183
+ | "same-origin"
184
+ | "strict-origin"
185
+ | "strict-origin-when-cross-origin"
186
+ | "unsafe-url";
187
+ target: "_self" | "_blank" | "_parent" | "_top";
188
188
  };
189
189
 
190
190
  type AAttributes = Attributes<{
@@ -295,14 +295,14 @@ type ButtonAttributes = Attributes<{
295
295
  }>;
296
296
 
297
297
  type CanvasAttributes = Attributes<{
298
- height: string;
298
+ height: string | number;
299
299
  ["moz-opaque"]: boolean;
300
- width: string;
300
+ width: string | number;
301
301
  }>;
302
302
 
303
- type ColAttributes = Attributes<{ span: string }, undefined>;
303
+ type ColAttributes = Attributes<{ span: string | number }, undefined>;
304
304
 
305
- type ColgroupAttributes = Attributes<{ span: string }>;
305
+ type ColgroupAttributes = Attributes<{ span: string | number }>;
306
306
 
307
307
  type DataAttributes = Attributes<{ value: string }>;
308
308
 
@@ -313,7 +313,12 @@ type DetailsAttributes = Attributes<{ open: boolean; name: string }>;
313
313
  type DialogAttributes = Attributes<{ open: boolean }>;
314
314
 
315
315
  type EmbedAttributes = Attributes<
316
- { height: string; src: string; type: string; width: string },
316
+ {
317
+ height: string | number;
318
+ src: string;
319
+ type: string;
320
+ width: string | number;
321
+ },
317
322
  undefined
318
323
  >;
319
324
 
@@ -350,14 +355,14 @@ type HtmlAttributes = Attributes<{ xmlns: string }>;
350
355
  type IframeAttributes = Attributes<{
351
356
  allow: string;
352
357
  allowfullscreen: boolean;
353
- height: string;
358
+ height: string | number;
354
359
  loading: SharedAttributes["loading"];
355
360
  name: string;
356
361
  referrerpolicy: SharedAttributes["referrerpolicy"];
357
362
  sandbox: string;
358
363
  src: string;
359
364
  srcdoc: string;
360
- width: string;
365
+ width: string | number;
361
366
  }>;
362
367
 
363
368
  type ImgAttributes = Attributes<
@@ -367,14 +372,14 @@ type ImgAttributes = Attributes<
367
372
  decoding: "sync" | "async" | "auto";
368
373
  elementtiming: string;
369
374
  fetchpriority: SharedAttributes["fetchpriority"];
370
- height: string;
375
+ height: string | number;
371
376
  ismap: boolean;
372
377
  loading: SharedAttributes["loading"];
373
378
  referrerpolicy: SharedAttributes["referrerpolicy"];
374
379
  sizes: string;
375
380
  src: string;
376
381
  srcset: string;
377
- width: string;
382
+ width: string | number;
378
383
  usemap: string;
379
384
  },
380
385
  undefined
@@ -397,10 +402,10 @@ type InputAttributes = Attributes<
397
402
  formtarget: SharedAttributes["target"];
398
403
  height: string;
399
404
  list: string;
400
- max: string;
401
- maxlength: string;
402
- min: string;
403
- minlength: string;
405
+ max: string | number;
406
+ maxlength: string | number;
407
+ min: string | number;
408
+ minlength: string | number;
404
409
  multiple: boolean;
405
410
  name: string;
406
411
  pattern: string;
@@ -409,9 +414,9 @@ type InputAttributes = Attributes<
409
414
  popovertargetaction: SharedAttributes["popovertargetaction"];
410
415
  readonly: boolean;
411
416
  required: boolean;
412
- size: string;
417
+ size: string | number;
413
418
  src: string;
414
- step: string;
419
+ step: string | number;
415
420
  type:
416
421
  | "button"
417
422
  | "checkbox"
@@ -435,7 +440,7 @@ type InputAttributes = Attributes<
435
440
  | "time"
436
441
  | "url"
437
442
  | "week";
438
- value: string;
443
+ value: string | number;
439
444
  webkitdirectory: boolean;
440
445
  width: string;
441
446
  },
@@ -446,9 +451,9 @@ type InsAttributes = Attributes<{ cite: string; datetime: string }>;
446
451
 
447
452
  type LabelAttributes = Attributes<{ for: string }>;
448
453
 
449
- type LiAttributes = Attributes<{ value: string }>;
454
+ type LiAttributes = Attributes<{ value: string | number }>;
450
455
 
451
- type AnchorAttributes = Attributes<
456
+ type LinkAttributes = Attributes<
452
457
  {
453
458
  as:
454
459
  | "audio"
@@ -540,27 +545,27 @@ type MetaAttributes = Attributes<
540
545
  >;
541
546
 
542
547
  type MeterAttributes = Attributes<{
543
- value: string;
544
- min: string;
545
- max: string;
546
- low: string;
547
- high: string;
548
- optimum: string;
548
+ value: string | number;
549
+ min: string | number;
550
+ max: string | number;
551
+ low: string | number;
552
+ high: string | number;
553
+ optimum: string | number;
549
554
  form: string;
550
555
  }>;
551
556
 
552
557
  type ObjectAttributes = Attributes<{
553
558
  data: string;
554
559
  form: string;
555
- height: string;
560
+ height: string | number;
556
561
  name: string;
557
562
  type: string;
558
- width: string;
563
+ width: string | number;
559
564
  }>;
560
565
 
561
566
  type OlAttributes = Attributes<{
562
567
  reversed: boolean;
563
- start: string;
568
+ start: string | number;
564
569
  type: "a" | "A" | "i" | "I" | "1";
565
570
  }>;
566
571
 
@@ -575,7 +580,10 @@ type OptionAttributes = Attributes<{
575
580
 
576
581
  type OutputAttributes = Attributes<{ for: string; form: string; name: string }>;
577
582
 
578
- type ProgressAttributes = Attributes<{ max: string; value: string }>;
583
+ type ProgressAttributes = Attributes<{
584
+ max: string | number;
585
+ value: string | number;
586
+ }>;
579
587
 
580
588
  type QAttributes = Attributes<{ cite: string }>;
581
589
 
@@ -599,20 +607,20 @@ type SelectAttributes = Attributes<{
599
607
  multiple: boolean;
600
608
  name: string;
601
609
  required: boolean;
602
- size: string;
610
+ size: string | number;
603
611
  }>;
604
612
 
605
613
  type SlotAttributes = Attributes<{ name: string }>;
606
614
 
607
615
  type SourceAttributes = Attributes<
608
616
  {
609
- type: string;
617
+ height: string | number;
618
+ media: string;
619
+ sizes: string;
610
620
  src: string;
611
621
  srcset: string;
612
- sizes: string;
613
- media: string;
614
- height: string;
615
- width: string;
622
+ type: string;
623
+ width: string | number;
616
624
  },
617
625
  undefined
618
626
  >;
@@ -623,9 +631,9 @@ type StyleAttributes = Attributes<{
623
631
  }>;
624
632
 
625
633
  type TdAttributes = Attributes<{
626
- colspan: string;
634
+ colspan: string | number;
627
635
  headers: string;
628
- rowspan: string;
636
+ rowspan: string | number;
629
637
  }>;
630
638
 
631
639
  type TemplateAttributes = Attributes<{
@@ -637,25 +645,25 @@ type TemplateAttributes = Attributes<{
637
645
 
638
646
  type TextareaAttributes = Attributes<{
639
647
  autocomplete: SharedAttributes["autocomplete"];
640
- cols: string;
648
+ cols: string | number;
641
649
  dirname: string;
642
650
  disabled: boolean;
643
651
  form: string;
644
- maxlength: string;
645
- minlength: string;
652
+ maxlength: string | number;
653
+ minlength: string | number;
646
654
  name: string;
647
655
  placeholder: string;
648
656
  readonly: boolean;
649
657
  required: boolean;
650
- rows: string;
658
+ rows: string | number;
651
659
  wrap: "hard" | "soft" | "off";
652
660
  }>;
653
661
 
654
662
  type ThAttributes = Attributes<{
655
663
  abbr: string;
656
- colspan: string;
664
+ colspan: string | number;
657
665
  headers: string;
658
- rowspan: string;
666
+ rowspan: string | number;
659
667
  scope: "row" | "col" | "rowgroup" | "colgroup" | (string & {});
660
668
  }>;
661
669
 
@@ -679,14 +687,14 @@ type VideoAttributes = Attributes<{
679
687
  crossorigin: SharedAttributes["crossorigin"];
680
688
  disablepictureinpicture: boolean;
681
689
  disableremoteplayback: boolean;
682
- height: string;
690
+ height: string | number;
683
691
  loop: boolean;
684
692
  muted: boolean;
685
693
  playsinline: boolean;
686
694
  poster: string;
687
695
  preload: SharedAttributes["preload"];
688
696
  src: string;
689
- width: string;
697
+ width: string | number;
690
698
  }>;
691
699
 
692
700
  export type IntrinsicElements =
@@ -749,7 +757,7 @@ export type IntrinsicElements =
749
757
  label: LabelAttributes;
750
758
  legend: Attributes;
751
759
  li: LiAttributes;
752
- link: AnchorAttributes;
760
+ link: LinkAttributes;
753
761
  main: Attributes;
754
762
  map: MapAttributes;
755
763
  mark: Attributes;
@@ -1,4 +1,3 @@
1
- import type { JSX } from "../jsx/index.js";
2
1
  import type { Params } from "../trie/index.js";
3
2
 
4
3
  export type MaybePromise<T> = T | Promise<T>;
@@ -41,12 +40,3 @@ export type InsertParams<
41
40
  ? `${Start}${P["*"]}`
42
41
  : Pattern
43
42
  : Pattern;
44
-
45
- export type AnchorProps<P extends Params> = JSX.IntrinsicElements["a"] &
46
- (keyof P extends never ? { params?: never } : { params: P });
47
-
48
- export type FormProps<P extends Params> = JSX.IntrinsicElements["form"] &
49
- (keyof P extends never ? { params?: never } : { params: P });
50
-
51
- export type ButtonProps<P extends Params> = JSX.IntrinsicElements["button"] &
52
- (keyof P extends never ? { params?: never } : { params: P });