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