@viewfly/platform-browser 0.0.1-alpha.16 → 0.0.1-alpha.17
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/bundles/jsx.d.ts +234 -234
- package/package.json +3 -3
package/bundles/jsx.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as CSS from 'csstype';
|
|
2
|
+
import { Key, Ref } from '@viewfly/core';
|
|
2
3
|
export interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
|
|
3
4
|
/**
|
|
4
5
|
* The index signature was removed to enable closed typing for style
|
|
@@ -198,8 +199,12 @@ interface AriaAttributes {
|
|
|
198
199
|
/** Defines the human readable text alternative of aria-valuenow for a range widget. */
|
|
199
200
|
'aria-valuetext'?: string;
|
|
200
201
|
}
|
|
201
|
-
export type StyleValue = string | CSSProperties
|
|
202
|
-
export interface
|
|
202
|
+
export type StyleValue = string | CSSProperties;
|
|
203
|
+
export interface VFAttributes<T extends object> {
|
|
204
|
+
ref?: Ref<T>;
|
|
205
|
+
key?: Key;
|
|
206
|
+
}
|
|
207
|
+
export interface HTMLAttributes<T extends object> extends AriaAttributes, EventHandlers<Events>, VFAttributes<T> {
|
|
203
208
|
innerHTML?: string;
|
|
204
209
|
class?: any;
|
|
205
210
|
style?: StyleValue;
|
|
@@ -243,14 +248,10 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
243
248
|
* @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
|
|
244
249
|
*/
|
|
245
250
|
inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
246
|
-
|
|
247
|
-
* Specify that a standard HTML element should behave like a defined custom built-in element
|
|
248
|
-
* @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
|
|
249
|
-
*/
|
|
250
|
-
is?: string;
|
|
251
|
+
[k: string]: any;
|
|
251
252
|
}
|
|
252
253
|
type HTMLAttributeReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
|
|
253
|
-
export interface AnchorHTMLAttributes extends HTMLAttributes {
|
|
254
|
+
export interface AnchorHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
254
255
|
download?: any;
|
|
255
256
|
href?: string;
|
|
256
257
|
hreflang?: string;
|
|
@@ -261,7 +262,7 @@ export interface AnchorHTMLAttributes extends HTMLAttributes {
|
|
|
261
262
|
type?: string;
|
|
262
263
|
referrerpolicy?: HTMLAttributeReferrerPolicy;
|
|
263
264
|
}
|
|
264
|
-
export interface AreaHTMLAttributes extends HTMLAttributes {
|
|
265
|
+
export interface AreaHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
265
266
|
alt?: string;
|
|
266
267
|
coords?: string;
|
|
267
268
|
download?: any;
|
|
@@ -273,16 +274,16 @@ export interface AreaHTMLAttributes extends HTMLAttributes {
|
|
|
273
274
|
shape?: string;
|
|
274
275
|
target?: string;
|
|
275
276
|
}
|
|
276
|
-
export interface AudioHTMLAttributes extends MediaHTMLAttributes {
|
|
277
|
+
export interface AudioHTMLAttributes<T extends object> extends MediaHTMLAttributes<T> {
|
|
277
278
|
}
|
|
278
|
-
export interface BaseHTMLAttributes extends HTMLAttributes {
|
|
279
|
+
export interface BaseHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
279
280
|
href?: string;
|
|
280
281
|
target?: string;
|
|
281
282
|
}
|
|
282
|
-
export interface BlockquoteHTMLAttributes extends HTMLAttributes {
|
|
283
|
+
export interface BlockquoteHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
283
284
|
cite?: string;
|
|
284
285
|
}
|
|
285
|
-
export interface ButtonHTMLAttributes extends HTMLAttributes {
|
|
286
|
+
export interface ButtonHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
286
287
|
autofocus?: Booleanish;
|
|
287
288
|
disabled?: Booleanish;
|
|
288
289
|
form?: string;
|
|
@@ -295,42 +296,42 @@ export interface ButtonHTMLAttributes extends HTMLAttributes {
|
|
|
295
296
|
type?: 'submit' | 'reset' | 'button';
|
|
296
297
|
value?: string | string[] | number;
|
|
297
298
|
}
|
|
298
|
-
export interface CanvasHTMLAttributes extends HTMLAttributes {
|
|
299
|
+
export interface CanvasHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
299
300
|
height?: Numberish;
|
|
300
301
|
width?: Numberish;
|
|
301
302
|
}
|
|
302
|
-
export interface ColHTMLAttributes extends HTMLAttributes {
|
|
303
|
+
export interface ColHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
303
304
|
span?: Numberish;
|
|
304
305
|
width?: Numberish;
|
|
305
306
|
}
|
|
306
|
-
export interface ColgroupHTMLAttributes extends HTMLAttributes {
|
|
307
|
+
export interface ColgroupHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
307
308
|
span?: Numberish;
|
|
308
309
|
}
|
|
309
|
-
export interface DataHTMLAttributes extends HTMLAttributes {
|
|
310
|
+
export interface DataHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
310
311
|
value?: string | string[] | number;
|
|
311
312
|
}
|
|
312
|
-
export interface DetailsHTMLAttributes extends HTMLAttributes {
|
|
313
|
+
export interface DetailsHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
313
314
|
open?: Booleanish;
|
|
314
315
|
}
|
|
315
|
-
export interface DelHTMLAttributes extends HTMLAttributes {
|
|
316
|
+
export interface DelHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
316
317
|
cite?: string;
|
|
317
318
|
datetime?: string;
|
|
318
319
|
}
|
|
319
|
-
export interface DialogHTMLAttributes extends HTMLAttributes {
|
|
320
|
+
export interface DialogHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
320
321
|
open?: Booleanish;
|
|
321
322
|
}
|
|
322
|
-
export interface EmbedHTMLAttributes extends HTMLAttributes {
|
|
323
|
+
export interface EmbedHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
323
324
|
height?: Numberish;
|
|
324
325
|
src?: string;
|
|
325
326
|
type?: string;
|
|
326
327
|
width?: Numberish;
|
|
327
328
|
}
|
|
328
|
-
export interface FieldsetHTMLAttributes extends HTMLAttributes {
|
|
329
|
+
export interface FieldsetHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
329
330
|
disabled?: Booleanish;
|
|
330
331
|
form?: string;
|
|
331
332
|
name?: string;
|
|
332
333
|
}
|
|
333
|
-
export interface FormHTMLAttributes extends HTMLAttributes {
|
|
334
|
+
export interface FormHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
334
335
|
acceptcharset?: string;
|
|
335
336
|
action?: string;
|
|
336
337
|
autocomplete?: string;
|
|
@@ -340,10 +341,10 @@ export interface FormHTMLAttributes extends HTMLAttributes {
|
|
|
340
341
|
novalidate?: Booleanish;
|
|
341
342
|
target?: string;
|
|
342
343
|
}
|
|
343
|
-
export interface HtmlHTMLAttributes extends HTMLAttributes {
|
|
344
|
+
export interface HtmlHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
344
345
|
manifest?: string;
|
|
345
346
|
}
|
|
346
|
-
export interface IframeHTMLAttributes extends HTMLAttributes {
|
|
347
|
+
export interface IframeHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
347
348
|
allow?: string;
|
|
348
349
|
allowfullscreen?: Booleanish;
|
|
349
350
|
allowtransparency?: Booleanish;
|
|
@@ -360,7 +361,7 @@ export interface IframeHTMLAttributes extends HTMLAttributes {
|
|
|
360
361
|
srcdoc?: string;
|
|
361
362
|
width?: Numberish;
|
|
362
363
|
}
|
|
363
|
-
export interface ImgHTMLAttributes extends HTMLAttributes {
|
|
364
|
+
export interface ImgHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
364
365
|
alt?: string;
|
|
365
366
|
crossorigin?: 'anonymous' | 'use-credentials' | '';
|
|
366
367
|
decoding?: 'async' | 'auto' | 'sync';
|
|
@@ -372,11 +373,11 @@ export interface ImgHTMLAttributes extends HTMLAttributes {
|
|
|
372
373
|
usemap?: string;
|
|
373
374
|
width?: Numberish;
|
|
374
375
|
}
|
|
375
|
-
export interface InsHTMLAttributes extends HTMLAttributes {
|
|
376
|
+
export interface InsHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
376
377
|
cite?: string;
|
|
377
378
|
datetime?: string;
|
|
378
379
|
}
|
|
379
|
-
export interface InputHTMLAttributes extends HTMLAttributes {
|
|
380
|
+
export interface InputHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
380
381
|
accept?: string;
|
|
381
382
|
alt?: string;
|
|
382
383
|
autocomplete?: string;
|
|
@@ -411,7 +412,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
|
|
|
411
412
|
value?: any;
|
|
412
413
|
width?: Numberish;
|
|
413
414
|
}
|
|
414
|
-
export interface KeygenHTMLAttributes extends HTMLAttributes {
|
|
415
|
+
export interface KeygenHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
415
416
|
autofocus?: Booleanish;
|
|
416
417
|
challenge?: string;
|
|
417
418
|
disabled?: Booleanish;
|
|
@@ -420,14 +421,14 @@ export interface KeygenHTMLAttributes extends HTMLAttributes {
|
|
|
420
421
|
keyparams?: string;
|
|
421
422
|
name?: string;
|
|
422
423
|
}
|
|
423
|
-
export interface LabelHTMLAttributes extends HTMLAttributes {
|
|
424
|
+
export interface LabelHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
424
425
|
for?: string;
|
|
425
426
|
form?: string;
|
|
426
427
|
}
|
|
427
|
-
export interface LiHTMLAttributes extends HTMLAttributes {
|
|
428
|
+
export interface LiHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
428
429
|
value?: string | string[] | number;
|
|
429
430
|
}
|
|
430
|
-
export interface LinkHTMLAttributes extends HTMLAttributes {
|
|
431
|
+
export interface LinkHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
431
432
|
as?: string;
|
|
432
433
|
crossorigin?: string;
|
|
433
434
|
href?: string;
|
|
@@ -439,13 +440,13 @@ export interface LinkHTMLAttributes extends HTMLAttributes {
|
|
|
439
440
|
sizes?: string;
|
|
440
441
|
type?: string;
|
|
441
442
|
}
|
|
442
|
-
export interface MapHTMLAttributes extends HTMLAttributes {
|
|
443
|
+
export interface MapHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
443
444
|
name?: string;
|
|
444
445
|
}
|
|
445
|
-
export interface MenuHTMLAttributes extends HTMLAttributes {
|
|
446
|
+
export interface MenuHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
446
447
|
type?: string;
|
|
447
448
|
}
|
|
448
|
-
export interface MediaHTMLAttributes extends HTMLAttributes {
|
|
449
|
+
export interface MediaHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
449
450
|
autoplay?: Booleanish;
|
|
450
451
|
controls?: Booleanish;
|
|
451
452
|
controlslist?: string;
|
|
@@ -457,13 +458,13 @@ export interface MediaHTMLAttributes extends HTMLAttributes {
|
|
|
457
458
|
preload?: string;
|
|
458
459
|
src?: string;
|
|
459
460
|
}
|
|
460
|
-
export interface MetaHTMLAttributes extends HTMLAttributes {
|
|
461
|
+
export interface MetaHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
461
462
|
charset?: string;
|
|
462
463
|
content?: string;
|
|
463
464
|
httpequiv?: string;
|
|
464
465
|
name?: string;
|
|
465
466
|
}
|
|
466
|
-
export interface MeterHTMLAttributes extends HTMLAttributes {
|
|
467
|
+
export interface MeterHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
467
468
|
form?: string;
|
|
468
469
|
high?: Numberish;
|
|
469
470
|
low?: Numberish;
|
|
@@ -472,10 +473,10 @@ export interface MeterHTMLAttributes extends HTMLAttributes {
|
|
|
472
473
|
optimum?: Numberish;
|
|
473
474
|
value?: string | string[] | number;
|
|
474
475
|
}
|
|
475
|
-
export interface QuoteHTMLAttributes extends HTMLAttributes {
|
|
476
|
+
export interface QuoteHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
476
477
|
cite?: string;
|
|
477
478
|
}
|
|
478
|
-
export interface ObjectHTMLAttributes extends HTMLAttributes {
|
|
479
|
+
export interface ObjectHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
479
480
|
classid?: string;
|
|
480
481
|
data?: string;
|
|
481
482
|
form?: string;
|
|
@@ -486,35 +487,35 @@ export interface ObjectHTMLAttributes extends HTMLAttributes {
|
|
|
486
487
|
width?: Numberish;
|
|
487
488
|
wmode?: string;
|
|
488
489
|
}
|
|
489
|
-
export interface OlHTMLAttributes extends HTMLAttributes {
|
|
490
|
+
export interface OlHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
490
491
|
reversed?: Booleanish;
|
|
491
492
|
start?: Numberish;
|
|
492
493
|
type?: '1' | 'a' | 'A' | 'i' | 'I';
|
|
493
494
|
}
|
|
494
|
-
export interface OptgroupHTMLAttributes extends HTMLAttributes {
|
|
495
|
+
export interface OptgroupHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
495
496
|
disabled?: Booleanish;
|
|
496
497
|
label?: string;
|
|
497
498
|
}
|
|
498
|
-
export interface OptionHTMLAttributes extends HTMLAttributes {
|
|
499
|
+
export interface OptionHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
499
500
|
disabled?: Booleanish;
|
|
500
501
|
label?: string;
|
|
501
502
|
selected?: Booleanish;
|
|
502
503
|
value?: string;
|
|
503
504
|
}
|
|
504
|
-
export interface OutputHTMLAttributes extends HTMLAttributes {
|
|
505
|
+
export interface OutputHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
505
506
|
for?: string;
|
|
506
507
|
form?: string;
|
|
507
508
|
name?: string;
|
|
508
509
|
}
|
|
509
|
-
export interface ParamHTMLAttributes extends HTMLAttributes {
|
|
510
|
+
export interface ParamHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
510
511
|
name?: string;
|
|
511
512
|
value?: string | string[] | number;
|
|
512
513
|
}
|
|
513
|
-
export interface ProgressHTMLAttributes extends HTMLAttributes {
|
|
514
|
+
export interface ProgressHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
514
515
|
max?: Numberish;
|
|
515
516
|
value?: string | string[] | number;
|
|
516
517
|
}
|
|
517
|
-
export interface ScriptHTMLAttributes extends HTMLAttributes {
|
|
518
|
+
export interface ScriptHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
518
519
|
async?: Booleanish;
|
|
519
520
|
charset?: string;
|
|
520
521
|
crossorigin?: string;
|
|
@@ -526,7 +527,7 @@ export interface ScriptHTMLAttributes extends HTMLAttributes {
|
|
|
526
527
|
src?: string;
|
|
527
528
|
type?: string;
|
|
528
529
|
}
|
|
529
|
-
export interface SelectHTMLAttributes extends HTMLAttributes {
|
|
530
|
+
export interface SelectHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
530
531
|
autocomplete?: string;
|
|
531
532
|
autofocus?: Booleanish;
|
|
532
533
|
disabled?: Booleanish;
|
|
@@ -537,25 +538,25 @@ export interface SelectHTMLAttributes extends HTMLAttributes {
|
|
|
537
538
|
size?: Numberish;
|
|
538
539
|
value?: string;
|
|
539
540
|
}
|
|
540
|
-
export interface SourceHTMLAttributes extends HTMLAttributes {
|
|
541
|
+
export interface SourceHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
541
542
|
media?: string;
|
|
542
543
|
sizes?: string;
|
|
543
544
|
src?: string;
|
|
544
545
|
srcset?: string;
|
|
545
546
|
type?: string;
|
|
546
547
|
}
|
|
547
|
-
export interface StyleHTMLAttributes extends HTMLAttributes {
|
|
548
|
+
export interface StyleHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
548
549
|
media?: string;
|
|
549
550
|
nonce?: string;
|
|
550
551
|
scoped?: Booleanish;
|
|
551
552
|
type?: string;
|
|
552
553
|
}
|
|
553
|
-
export interface TableHTMLAttributes extends HTMLAttributes {
|
|
554
|
+
export interface TableHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
554
555
|
cellpadding?: Numberish;
|
|
555
556
|
cellspacing?: Numberish;
|
|
556
557
|
summary?: string;
|
|
557
558
|
}
|
|
558
|
-
export interface TextareaHTMLAttributes extends HTMLAttributes {
|
|
559
|
+
export interface TextareaHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
559
560
|
autocomplete?: string;
|
|
560
561
|
autofocus?: Booleanish;
|
|
561
562
|
cols?: Numberish;
|
|
@@ -572,7 +573,7 @@ export interface TextareaHTMLAttributes extends HTMLAttributes {
|
|
|
572
573
|
value?: string | string[] | number;
|
|
573
574
|
wrap?: string;
|
|
574
575
|
}
|
|
575
|
-
export interface TdHTMLAttributes extends HTMLAttributes {
|
|
576
|
+
export interface TdHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
576
577
|
align?: 'left' | 'center' | 'right' | 'justify' | 'char';
|
|
577
578
|
colspan?: Numberish;
|
|
578
579
|
headers?: string;
|
|
@@ -580,31 +581,31 @@ export interface TdHTMLAttributes extends HTMLAttributes {
|
|
|
580
581
|
scope?: string;
|
|
581
582
|
valign?: 'top' | 'middle' | 'bottom' | 'baseline';
|
|
582
583
|
}
|
|
583
|
-
export interface ThHTMLAttributes extends HTMLAttributes {
|
|
584
|
+
export interface ThHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
584
585
|
align?: 'left' | 'center' | 'right' | 'justify' | 'char';
|
|
585
586
|
colspan?: Numberish;
|
|
586
587
|
headers?: string;
|
|
587
588
|
rowspan?: Numberish;
|
|
588
589
|
scope?: string;
|
|
589
590
|
}
|
|
590
|
-
export interface TimeHTMLAttributes extends HTMLAttributes {
|
|
591
|
+
export interface TimeHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
591
592
|
datetime?: string;
|
|
592
593
|
}
|
|
593
|
-
export interface TrackHTMLAttributes extends HTMLAttributes {
|
|
594
|
+
export interface TrackHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
594
595
|
default?: Booleanish;
|
|
595
596
|
kind?: string;
|
|
596
597
|
label?: string;
|
|
597
598
|
src?: string;
|
|
598
599
|
srclang?: string;
|
|
599
600
|
}
|
|
600
|
-
export interface VideoHTMLAttributes extends MediaHTMLAttributes {
|
|
601
|
+
export interface VideoHTMLAttributes<T extends object> extends MediaHTMLAttributes<T> {
|
|
601
602
|
height?: Numberish;
|
|
602
603
|
playsinline?: Booleanish;
|
|
603
604
|
poster?: string;
|
|
604
605
|
width?: Numberish;
|
|
605
606
|
disablePictureInPicture?: Booleanish;
|
|
606
607
|
}
|
|
607
|
-
export interface WebViewHTMLAttributes extends HTMLAttributes {
|
|
608
|
+
export interface WebViewHTMLAttributes<T extends object> extends HTMLAttributes<T> {
|
|
608
609
|
allowfullscreen?: Booleanish;
|
|
609
610
|
allowpopups?: Booleanish;
|
|
610
611
|
autoFocus?: Booleanish;
|
|
@@ -623,7 +624,7 @@ export interface WebViewHTMLAttributes extends HTMLAttributes {
|
|
|
623
624
|
useragent?: string;
|
|
624
625
|
webpreferences?: string;
|
|
625
626
|
}
|
|
626
|
-
export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
627
|
+
export interface SVGAttributes<T extends object> extends AriaAttributes, EventHandlers<Events>, VFAttributes<T> {
|
|
627
628
|
innerHTML?: string;
|
|
628
629
|
/**
|
|
629
630
|
* SVG Styling Attributes
|
|
@@ -882,179 +883,181 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
882
883
|
z?: Numberish;
|
|
883
884
|
zoomAndPan?: string;
|
|
884
885
|
}
|
|
885
|
-
export interface
|
|
886
|
-
a: AnchorHTMLAttributes
|
|
887
|
-
abbr: HTMLAttributes
|
|
888
|
-
address: HTMLAttributes
|
|
889
|
-
area: AreaHTMLAttributes
|
|
890
|
-
article: HTMLAttributes
|
|
891
|
-
aside: HTMLAttributes
|
|
892
|
-
audio: AudioHTMLAttributes
|
|
893
|
-
b: HTMLAttributes
|
|
894
|
-
base: BaseHTMLAttributes
|
|
895
|
-
bdi: HTMLAttributes
|
|
896
|
-
bdo: HTMLAttributes
|
|
897
|
-
blockquote: BlockquoteHTMLAttributes
|
|
898
|
-
body: HTMLAttributes
|
|
899
|
-
br: HTMLAttributes
|
|
900
|
-
button: ButtonHTMLAttributes
|
|
901
|
-
canvas: CanvasHTMLAttributes
|
|
902
|
-
caption: HTMLAttributes
|
|
903
|
-
cite: HTMLAttributes
|
|
904
|
-
code: HTMLAttributes
|
|
905
|
-
col: ColHTMLAttributes
|
|
906
|
-
colgroup: ColgroupHTMLAttributes
|
|
907
|
-
data: DataHTMLAttributes
|
|
908
|
-
datalist: HTMLAttributes
|
|
909
|
-
dd: HTMLAttributes
|
|
910
|
-
del: DelHTMLAttributes
|
|
911
|
-
details: DetailsHTMLAttributes
|
|
912
|
-
dfn: HTMLAttributes
|
|
913
|
-
dialog: DialogHTMLAttributes
|
|
914
|
-
div: HTMLAttributes
|
|
915
|
-
dl: HTMLAttributes
|
|
916
|
-
dt: HTMLAttributes
|
|
917
|
-
em: HTMLAttributes
|
|
918
|
-
embed: EmbedHTMLAttributes
|
|
919
|
-
fieldset: FieldsetHTMLAttributes
|
|
920
|
-
figcaption: HTMLAttributes
|
|
921
|
-
figure: HTMLAttributes
|
|
922
|
-
footer: HTMLAttributes
|
|
923
|
-
form: FormHTMLAttributes
|
|
924
|
-
h1: HTMLAttributes
|
|
925
|
-
h2: HTMLAttributes
|
|
926
|
-
h3: HTMLAttributes
|
|
927
|
-
h4: HTMLAttributes
|
|
928
|
-
h5: HTMLAttributes
|
|
929
|
-
h6: HTMLAttributes
|
|
930
|
-
head: HTMLAttributes
|
|
931
|
-
header: HTMLAttributes
|
|
932
|
-
hgroup: HTMLAttributes
|
|
933
|
-
hr: HTMLAttributes
|
|
934
|
-
html: HtmlHTMLAttributes
|
|
935
|
-
i: HTMLAttributes
|
|
936
|
-
iframe: IframeHTMLAttributes
|
|
937
|
-
img: ImgHTMLAttributes
|
|
938
|
-
input: InputHTMLAttributes
|
|
939
|
-
ins: InsHTMLAttributes
|
|
940
|
-
kbd: HTMLAttributes
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
svg: SVGAttributes
|
|
1001
|
-
animate: SVGAttributes
|
|
1002
|
-
animateMotion: SVGAttributes
|
|
1003
|
-
animateTransform: SVGAttributes
|
|
1004
|
-
circle: SVGAttributes
|
|
1005
|
-
clipPath: SVGAttributes
|
|
1006
|
-
defs: SVGAttributes
|
|
1007
|
-
desc: SVGAttributes
|
|
1008
|
-
ellipse: SVGAttributes
|
|
1009
|
-
feBlend: SVGAttributes
|
|
1010
|
-
feColorMatrix: SVGAttributes
|
|
1011
|
-
feComponentTransfer: SVGAttributes
|
|
1012
|
-
feComposite: SVGAttributes
|
|
1013
|
-
feConvolveMatrix: SVGAttributes
|
|
1014
|
-
feDiffuseLighting: SVGAttributes
|
|
1015
|
-
feDisplacementMap: SVGAttributes
|
|
1016
|
-
feDistantLight: SVGAttributes
|
|
1017
|
-
feDropShadow: SVGAttributes
|
|
1018
|
-
feFlood: SVGAttributes
|
|
1019
|
-
feFuncA: SVGAttributes
|
|
1020
|
-
feFuncB: SVGAttributes
|
|
1021
|
-
feFuncG: SVGAttributes
|
|
1022
|
-
feFuncR: SVGAttributes
|
|
1023
|
-
feGaussianBlur: SVGAttributes
|
|
1024
|
-
feImage: SVGAttributes
|
|
1025
|
-
feMerge: SVGAttributes
|
|
1026
|
-
feMergeNode: SVGAttributes
|
|
1027
|
-
feMorphology: SVGAttributes
|
|
1028
|
-
feOffset: SVGAttributes
|
|
1029
|
-
fePointLight: SVGAttributes
|
|
1030
|
-
feSpecularLighting: SVGAttributes
|
|
1031
|
-
feSpotLight: SVGAttributes
|
|
1032
|
-
feTile: SVGAttributes
|
|
1033
|
-
feTurbulence: SVGAttributes
|
|
1034
|
-
filter: SVGAttributes
|
|
1035
|
-
foreignObject: SVGAttributes
|
|
1036
|
-
g: SVGAttributes
|
|
1037
|
-
image: SVGAttributes
|
|
1038
|
-
line: SVGAttributes
|
|
1039
|
-
linearGradient: SVGAttributes
|
|
1040
|
-
marker: SVGAttributes
|
|
1041
|
-
mask: SVGAttributes
|
|
1042
|
-
metadata: SVGAttributes
|
|
1043
|
-
mpath: SVGAttributes
|
|
1044
|
-
path: SVGAttributes
|
|
1045
|
-
pattern: SVGAttributes
|
|
1046
|
-
polygon: SVGAttributes
|
|
1047
|
-
polyline: SVGAttributes
|
|
1048
|
-
radialGradient: SVGAttributes
|
|
1049
|
-
rect: SVGAttributes
|
|
1050
|
-
stop: SVGAttributes
|
|
1051
|
-
switch: SVGAttributes
|
|
1052
|
-
symbol: SVGAttributes
|
|
1053
|
-
text: SVGAttributes
|
|
1054
|
-
textPath: SVGAttributes
|
|
1055
|
-
tspan: SVGAttributes
|
|
1056
|
-
use: SVGAttributes
|
|
1057
|
-
view: SVGAttributes
|
|
886
|
+
export interface DOMElements {
|
|
887
|
+
a: AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
888
|
+
abbr: HTMLAttributes<HTMLElement>;
|
|
889
|
+
address: HTMLAttributes<HTMLElement>;
|
|
890
|
+
area: AreaHTMLAttributes<HTMLAreaElement>;
|
|
891
|
+
article: HTMLAttributes<HTMLElement>;
|
|
892
|
+
aside: HTMLAttributes<HTMLElement>;
|
|
893
|
+
audio: AudioHTMLAttributes<HTMLAudioElement>;
|
|
894
|
+
b: HTMLAttributes<HTMLElement>;
|
|
895
|
+
base: BaseHTMLAttributes<HTMLBaseElement>;
|
|
896
|
+
bdi: HTMLAttributes<HTMLElement>;
|
|
897
|
+
bdo: HTMLAttributes<HTMLElement>;
|
|
898
|
+
blockquote: BlockquoteHTMLAttributes<HTMLElement>;
|
|
899
|
+
body: HTMLAttributes<HTMLBodyElement>;
|
|
900
|
+
br: HTMLAttributes<HTMLBRElement>;
|
|
901
|
+
button: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
902
|
+
canvas: CanvasHTMLAttributes<HTMLCanvasElement>;
|
|
903
|
+
caption: HTMLAttributes<HTMLTableCaptionElement>;
|
|
904
|
+
cite: HTMLAttributes<HTMLElement>;
|
|
905
|
+
code: HTMLAttributes<HTMLElement>;
|
|
906
|
+
col: ColHTMLAttributes<HTMLTableColElement>;
|
|
907
|
+
colgroup: ColgroupHTMLAttributes<HTMLTableColElement>;
|
|
908
|
+
data: DataHTMLAttributes<HTMLDataElement>;
|
|
909
|
+
datalist: HTMLAttributes<HTMLDataListElement>;
|
|
910
|
+
dd: HTMLAttributes<HTMLElement>;
|
|
911
|
+
del: DelHTMLAttributes<HTMLElement>;
|
|
912
|
+
details: DetailsHTMLAttributes<HTMLDetailsElement>;
|
|
913
|
+
dfn: HTMLAttributes<HTMLElement>;
|
|
914
|
+
dialog: DialogHTMLAttributes<HTMLDialogElement>;
|
|
915
|
+
div: HTMLAttributes<HTMLDivElement>;
|
|
916
|
+
dl: HTMLAttributes<HTMLDListElement>;
|
|
917
|
+
dt: HTMLAttributes<HTMLElement>;
|
|
918
|
+
em: HTMLAttributes<HTMLElement>;
|
|
919
|
+
embed: EmbedHTMLAttributes<HTMLEmbedElement>;
|
|
920
|
+
fieldset: FieldsetHTMLAttributes<HTMLFieldSetElement>;
|
|
921
|
+
figcaption: HTMLAttributes<HTMLElement>;
|
|
922
|
+
figure: HTMLAttributes<HTMLElement>;
|
|
923
|
+
footer: HTMLAttributes<HTMLElement>;
|
|
924
|
+
form: FormHTMLAttributes<HTMLFormElement>;
|
|
925
|
+
h1: HTMLAttributes<HTMLHeadingElement>;
|
|
926
|
+
h2: HTMLAttributes<HTMLHeadingElement>;
|
|
927
|
+
h3: HTMLAttributes<HTMLHeadingElement>;
|
|
928
|
+
h4: HTMLAttributes<HTMLHeadingElement>;
|
|
929
|
+
h5: HTMLAttributes<HTMLHeadingElement>;
|
|
930
|
+
h6: HTMLAttributes<HTMLHeadingElement>;
|
|
931
|
+
head: HTMLAttributes<HTMLHeadElement>;
|
|
932
|
+
header: HTMLAttributes<HTMLElement>;
|
|
933
|
+
hgroup: HTMLAttributes<HTMLElement>;
|
|
934
|
+
hr: HTMLAttributes<HTMLHRElement>;
|
|
935
|
+
html: HtmlHTMLAttributes<HTMLHtmlElement>;
|
|
936
|
+
i: HTMLAttributes<HTMLElement>;
|
|
937
|
+
iframe: IframeHTMLAttributes<HTMLIFrameElement>;
|
|
938
|
+
img: ImgHTMLAttributes<HTMLImageElement>;
|
|
939
|
+
input: InputHTMLAttributes<HTMLInputElement>;
|
|
940
|
+
ins: InsHTMLAttributes<HTMLModElement>;
|
|
941
|
+
kbd: HTMLAttributes<HTMLElement>;
|
|
942
|
+
label: LabelHTMLAttributes<HTMLLabelElement>;
|
|
943
|
+
legend: HTMLAttributes<HTMLLegendElement>;
|
|
944
|
+
li: LiHTMLAttributes<HTMLLIElement>;
|
|
945
|
+
link: LinkHTMLAttributes<HTMLLinkElement>;
|
|
946
|
+
main: HTMLAttributes<HTMLElement>;
|
|
947
|
+
map: MapHTMLAttributes<HTMLMapElement>;
|
|
948
|
+
mark: HTMLAttributes<HTMLElement>;
|
|
949
|
+
menu: MenuHTMLAttributes<HTMLMenuElement>;
|
|
950
|
+
meta: MetaHTMLAttributes<HTMLMetaElement>;
|
|
951
|
+
meter: MeterHTMLAttributes<HTMLMeterElement>;
|
|
952
|
+
nav: HTMLAttributes<HTMLElement>;
|
|
953
|
+
noindex: HTMLAttributes<HTMLElement>;
|
|
954
|
+
noscript: HTMLAttributes<HTMLElement>;
|
|
955
|
+
object: ObjectHTMLAttributes<HTMLObjectElement>;
|
|
956
|
+
ol: OlHTMLAttributes<HTMLOListElement>;
|
|
957
|
+
optgroup: OptgroupHTMLAttributes<HTMLOptGroupElement>;
|
|
958
|
+
option: OptionHTMLAttributes<HTMLOptionElement>;
|
|
959
|
+
output: OutputHTMLAttributes<HTMLOutputElement>;
|
|
960
|
+
p: HTMLAttributes<HTMLParagraphElement>;
|
|
961
|
+
picture: HTMLAttributes<HTMLPictureElement>;
|
|
962
|
+
pre: HTMLAttributes<HTMLPreElement>;
|
|
963
|
+
progress: ProgressHTMLAttributes<HTMLProgressElement>;
|
|
964
|
+
q: QuoteHTMLAttributes<HTMLQuoteElement>;
|
|
965
|
+
rp: HTMLAttributes<HTMLElement>;
|
|
966
|
+
rt: HTMLAttributes<HTMLElement>;
|
|
967
|
+
ruby: HTMLAttributes<HTMLElement>;
|
|
968
|
+
s: HTMLAttributes<HTMLElement>;
|
|
969
|
+
samp: HTMLAttributes<HTMLElement>;
|
|
970
|
+
script: ScriptHTMLAttributes<HTMLScriptElement>;
|
|
971
|
+
section: HTMLAttributes<HTMLElement>;
|
|
972
|
+
select: SelectHTMLAttributes<HTMLSelectElement>;
|
|
973
|
+
small: HTMLAttributes<HTMLElement>;
|
|
974
|
+
source: SourceHTMLAttributes<HTMLSourceElement>;
|
|
975
|
+
span: HTMLAttributes<HTMLElement>;
|
|
976
|
+
strong: HTMLAttributes<HTMLElement>;
|
|
977
|
+
style: StyleHTMLAttributes<HTMLStyleElement>;
|
|
978
|
+
sub: HTMLAttributes<HTMLElement>;
|
|
979
|
+
summary: HTMLAttributes<HTMLElement>;
|
|
980
|
+
sup: HTMLAttributes<HTMLElement>;
|
|
981
|
+
table: TableHTMLAttributes<HTMLTableElement>;
|
|
982
|
+
template: HTMLAttributes<HTMLTemplateElement>;
|
|
983
|
+
tbody: HTMLAttributes<HTMLTableSectionElement>;
|
|
984
|
+
td: TdHTMLAttributes<HTMLTableCellElement>;
|
|
985
|
+
textarea: TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
986
|
+
tfoot: HTMLAttributes<HTMLTableSectionElement>;
|
|
987
|
+
th: ThHTMLAttributes<HTMLTableCellElement>;
|
|
988
|
+
thead: HTMLAttributes<HTMLTableSectionElement>;
|
|
989
|
+
time: TimeHTMLAttributes<HTMLTimeElement>;
|
|
990
|
+
title: HTMLAttributes<HTMLTitleElement>;
|
|
991
|
+
tr: HTMLAttributes<HTMLTableRowElement>;
|
|
992
|
+
track: TrackHTMLAttributes<HTMLTrackElement>;
|
|
993
|
+
u: HTMLAttributes<HTMLElement>;
|
|
994
|
+
ul: HTMLAttributes<HTMLUListElement>;
|
|
995
|
+
var: HTMLAttributes<HTMLElement>;
|
|
996
|
+
video: VideoHTMLAttributes<HTMLVideoElement>;
|
|
997
|
+
wbr: HTMLAttributes<HTMLElement>;
|
|
998
|
+
webview: WebViewHTMLAttributes<HTMLElement>;
|
|
999
|
+
}
|
|
1000
|
+
export interface SVGElements {
|
|
1001
|
+
svg: SVGAttributes<SVGElement>;
|
|
1002
|
+
animate: SVGAttributes<SVGAnimateElement>;
|
|
1003
|
+
animateMotion: SVGAttributes<SVGAnimateMotionElement>;
|
|
1004
|
+
animateTransform: SVGAttributes<SVGAnimateTransformElement>;
|
|
1005
|
+
circle: SVGAttributes<SVGCircleElement>;
|
|
1006
|
+
clipPath: SVGAttributes<SVGClipPathElement>;
|
|
1007
|
+
defs: SVGAttributes<SVGDefsElement>;
|
|
1008
|
+
desc: SVGAttributes<SVGDescElement>;
|
|
1009
|
+
ellipse: SVGAttributes<SVGEllipseElement>;
|
|
1010
|
+
feBlend: SVGAttributes<SVGFEBlendElement>;
|
|
1011
|
+
feColorMatrix: SVGAttributes<SVGFEColorMatrixElement>;
|
|
1012
|
+
feComponentTransfer: SVGAttributes<SVGFEComponentTransferElement>;
|
|
1013
|
+
feComposite: SVGAttributes<SVGFECompositeElement>;
|
|
1014
|
+
feConvolveMatrix: SVGAttributes<SVGFEConvolveMatrixElement>;
|
|
1015
|
+
feDiffuseLighting: SVGAttributes<SVGFEDiffuseLightingElement>;
|
|
1016
|
+
feDisplacementMap: SVGAttributes<SVGFEDisplacementMapElement>;
|
|
1017
|
+
feDistantLight: SVGAttributes<SVGFEDistantLightElement>;
|
|
1018
|
+
feDropShadow: SVGAttributes<SVGFEDropShadowElement>;
|
|
1019
|
+
feFlood: SVGAttributes<SVGFEFloodElement>;
|
|
1020
|
+
feFuncA: SVGAttributes<SVGFEFuncAElement>;
|
|
1021
|
+
feFuncB: SVGAttributes<SVGFEFuncBElement>;
|
|
1022
|
+
feFuncG: SVGAttributes<SVGFEFuncGElement>;
|
|
1023
|
+
feFuncR: SVGAttributes<SVGFEFuncRElement>;
|
|
1024
|
+
feGaussianBlur: SVGAttributes<SVGFEGaussianBlurElement>;
|
|
1025
|
+
feImage: SVGAttributes<SVGFEImageElement>;
|
|
1026
|
+
feMerge: SVGAttributes<SVGFEMergeElement>;
|
|
1027
|
+
feMergeNode: SVGAttributes<SVGFEMergeNodeElement>;
|
|
1028
|
+
feMorphology: SVGAttributes<SVGFEMorphologyElement>;
|
|
1029
|
+
feOffset: SVGAttributes<SVGFEOffsetElement>;
|
|
1030
|
+
fePointLight: SVGAttributes<SVGFEPointLightElement>;
|
|
1031
|
+
feSpecularLighting: SVGAttributes<SVGFESpecularLightingElement>;
|
|
1032
|
+
feSpotLight: SVGAttributes<SVGFESpotLightElement>;
|
|
1033
|
+
feTile: SVGAttributes<SVGFETileElement>;
|
|
1034
|
+
feTurbulence: SVGAttributes<SVGFETurbulenceElement>;
|
|
1035
|
+
filter: SVGAttributes<SVGFilterElement>;
|
|
1036
|
+
foreignObject: SVGAttributes<SVGForeignObjectElement>;
|
|
1037
|
+
g: SVGAttributes<SVGGElement>;
|
|
1038
|
+
image: SVGAttributes<SVGImageElement>;
|
|
1039
|
+
line: SVGAttributes<SVGLineElement>;
|
|
1040
|
+
linearGradient: SVGAttributes<SVGLinearGradientElement>;
|
|
1041
|
+
marker: SVGAttributes<SVGMarkerElement>;
|
|
1042
|
+
mask: SVGAttributes<SVGMaskElement>;
|
|
1043
|
+
metadata: SVGAttributes<SVGMetadataElement>;
|
|
1044
|
+
mpath: SVGAttributes<SVGMPathElement>;
|
|
1045
|
+
path: SVGAttributes<SVGPathElement>;
|
|
1046
|
+
pattern: SVGAttributes<SVGPatternElement>;
|
|
1047
|
+
polygon: SVGAttributes<SVGPolygonElement>;
|
|
1048
|
+
polyline: SVGAttributes<SVGPolylineElement>;
|
|
1049
|
+
radialGradient: SVGAttributes<SVGRadialGradientElement>;
|
|
1050
|
+
rect: SVGAttributes<SVGRectElement>;
|
|
1051
|
+
stop: SVGAttributes<SVGStopElement>;
|
|
1052
|
+
switch: SVGAttributes<SVGSwitchElement>;
|
|
1053
|
+
symbol: SVGAttributes<SVGSymbolElement>;
|
|
1054
|
+
text: SVGAttributes<SVGTextElement>;
|
|
1055
|
+
textPath: SVGAttributes<SVGTextPathElement>;
|
|
1056
|
+
tspan: SVGAttributes<SVGTSpanElement>;
|
|
1057
|
+
use: SVGAttributes<SVGUseElement>;
|
|
1058
|
+
view: SVGAttributes<SVGViewElement>;
|
|
1059
|
+
}
|
|
1060
|
+
export interface NativeElements extends DOMElements, SVGElements {
|
|
1058
1061
|
}
|
|
1059
1062
|
export interface Events {
|
|
1060
1063
|
onCopy: ClipboardEvent;
|
|
@@ -1143,7 +1146,4 @@ export interface Events {
|
|
|
1143
1146
|
type EventHandlers<E> = {
|
|
1144
1147
|
[K in keyof E]?: E[K] extends (...args: any) => any ? E[K] : (payload: E[K]) => void;
|
|
1145
1148
|
};
|
|
1146
|
-
export type NativeElements = {
|
|
1147
|
-
[K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K];
|
|
1148
|
-
};
|
|
1149
1149
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/platform-browser",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.17",
|
|
4
4
|
"description": "This project is used to enable the Viewfly framework to run in a browser.",
|
|
5
5
|
"main": "./bundles/index.js",
|
|
6
6
|
"module": "./bundles/index.esm.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"keywords": [],
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@tanbo/di": "^1.1.5",
|
|
16
|
-
"@viewfly/core": "^0.0.1-alpha.
|
|
16
|
+
"@viewfly/core": "^0.0.1-alpha.17",
|
|
17
17
|
"csstype": "^3.1.2",
|
|
18
18
|
"reflect-metadata": "^0.1.13"
|
|
19
19
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "d10e9c9f134b3b5bcd1278f3f4f1106bc2623f26"
|
|
39
39
|
}
|