@stencil/core 5.0.0-alpha.3 → 5.0.0-alpha.30
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/README.md +94 -0
- package/dist/app-data/index.d.ts +2 -0
- package/dist/{runtime/app-data → app-data}/index.js +17 -11
- package/dist/{client-CSm3x5ke.mjs → client-D1MsT-Rp.mjs} +2717 -2424
- package/dist/compiler/index.d.mts +170 -6
- package/dist/compiler/index.mjs +4 -3
- package/dist/compiler/utils/index.d.mts +272 -2
- package/dist/compiler/utils/index.mjs +4 -3
- package/dist/{compiler-D6iP7Bzb.mjs → compiler-DPnvX_cT.mjs} +14953 -12327
- package/dist/declarations/stencil-ext-modules.d.ts +5 -5
- package/dist/declarations/stencil-public-compiler.d.ts +728 -287
- package/dist/declarations/stencil-public-compiler.js +2 -3
- package/dist/declarations/stencil-public-docs.d.ts +19 -0
- package/dist/declarations/stencil-public-runtime.d.ts +131 -17
- package/dist/fragment-Di1hWOC8.mjs +4 -0
- package/dist/{index-tUR6pD3J.d.mts → index-BHj3EBl2.d.mts} +1052 -668
- package/dist/{index-CyrGY82h.d.ts → index-D2PAsXxx.d.ts} +215 -40
- package/dist/index-VK8okIiF.d.mts +108 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +91 -2
- package/dist/jsx-runtime.d.mts +18 -0
- package/dist/jsx-runtime.mjs +3 -0
- package/dist/{node-Bg-mO5dw.mjs → node-BQR4L-TG.mjs} +76 -73
- package/dist/reactive-controller-BdCpSAQP.d.mts +13 -0
- package/dist/{regular-expression-D5pGVpCu.mjs → regular-expression-XqU5zmPp.mjs} +141 -31
- package/dist/{chunk-CjcI7cDX.mjs → rolldown-runtime-BhDjJH2R.mjs} +1 -1
- package/dist/{runtime-BBCnuprF.js → runtime/client/lazy.js} +2987 -2443
- package/dist/runtime/client/{index.d.ts → runtime.d.ts} +228 -83
- package/dist/runtime/client/{index.js → runtime.js} +2852 -2432
- package/dist/runtime/index.d.ts +48 -29
- package/dist/runtime/index.js +5069 -2
- package/dist/runtime/server/index.d.mts +182 -75
- package/dist/runtime/server/index.mjs +2769 -2283
- package/dist/runtime/server/runner.d.mts +47 -32
- package/dist/runtime/server/runner.mjs +563 -687
- package/dist/signals/index.d.ts +49 -0
- package/dist/signals/index.js +199 -0
- package/dist/sys/node/index.d.mts +1 -2
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.d.mts +1 -1
- package/dist/sys/node/worker.mjs +6 -3
- package/dist/testing/index.d.mts +98 -9
- package/dist/testing/index.mjs +395 -70
- package/dist/util-BIa-iHnt.mjs +724 -0
- package/dist/validation-Dd3g77T5.mjs +778 -0
- package/package.json +49 -36
- package/dist/index-CXHCTQNt.d.mts +0 -190
- package/dist/index-hS-KBdAP.d.ts +0 -30
- package/dist/jsx-runtime-DlDkTqps.d.ts +0 -28
- package/dist/jsx-runtime.d.ts +0 -2
- package/dist/jsx-runtime.js +0 -2
- package/dist/runtime/app-data/index.d.ts +0 -2
- package/dist/validation-Byxie0Uk.mjs +0 -1445
- /package/{LICENSE.md → LICENSE} +0 -0
- /package/dist/{runtime/app-globals → app-globals}/index.d.ts +0 -0
- /package/dist/{runtime/app-globals → app-globals}/index.js +0 -0
|
@@ -29,7 +29,7 @@ const LOG_LEVELS = [
|
|
|
29
29
|
/**
|
|
30
30
|
* The collection of valid export behaviors.
|
|
31
31
|
* Used to generate a type for typed configs as well as output target validation
|
|
32
|
-
* for the `
|
|
32
|
+
* for the `standalone` output target.
|
|
33
33
|
*
|
|
34
34
|
* Adding a value to this const array will automatically add it as a valid option on the
|
|
35
35
|
* output target configuration for `customElementsExportBehavior`.
|
|
@@ -38,8 +38,7 @@ const LOG_LEVELS = [
|
|
|
38
38
|
* - `auto-define-custom-elements`: Enables the auto-definition of a component and its children (recursively) in the custom elements registry. This
|
|
39
39
|
* functionality allows consumers to bypass the explicit call to define a component, its children, its children's
|
|
40
40
|
* children, etc. Users of this flag should be aware that enabling this functionality may increase bundle size.
|
|
41
|
-
* - `bundle`: A `defineCustomElements` function will be exported from the distribution directory.
|
|
42
|
-
* from `dist-custom-elements-bundle` to `dist-custom-elements`.
|
|
41
|
+
* - `bundle`: A `defineCustomElements` function will be exported from the distribution directory.
|
|
43
42
|
* - `single-export-module`: All components will be re-exported from the specified directory's root `index.js` file.
|
|
44
43
|
*/
|
|
45
44
|
const CustomElementsExportBehaviorOptions = [
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "rolldown";
|
|
2
|
+
import "typescript";
|
|
1
3
|
//#region src/declarations/stencil-private.d.ts
|
|
2
4
|
/**
|
|
3
5
|
* Information about a type used in a Stencil component or exported
|
|
@@ -20,6 +22,11 @@ interface ComponentCompilerPropertyComplexType {
|
|
|
20
22
|
* annotation in the original source file.
|
|
21
23
|
*/
|
|
22
24
|
references: ComponentCompilerTypeReferences;
|
|
25
|
+
/**
|
|
26
|
+
* @internal TypeScript AST node used for semantic type analysis during compilation.
|
|
27
|
+
* Not serialized, only used internally for improved type renaming logic.
|
|
28
|
+
*/
|
|
29
|
+
_astNode?: any;
|
|
23
30
|
}
|
|
24
31
|
/**
|
|
25
32
|
* A record of `ComponentCompilerTypeReference` entities.
|
|
@@ -90,6 +97,11 @@ interface ComponentCompilerMethodComplexType {
|
|
|
90
97
|
parameters: JsonDocMethodParameter[];
|
|
91
98
|
references: ComponentCompilerTypeReferences;
|
|
92
99
|
return: string;
|
|
100
|
+
/**
|
|
101
|
+
* @internal TypeScript AST method node used for semantic type analysis during compilation.
|
|
102
|
+
* Not serialized, only used internally for improved type renaming logic.
|
|
103
|
+
*/
|
|
104
|
+
_astNode?: any;
|
|
93
105
|
}
|
|
94
106
|
//#endregion
|
|
95
107
|
//#region src/declarations/stencil-public-docs.d.ts
|
|
@@ -113,6 +125,13 @@ interface JsonDocs {
|
|
|
113
125
|
* The metadata for the JSDocs for each component in a Stencil project
|
|
114
126
|
*/
|
|
115
127
|
components: JsonDocsComponent[];
|
|
128
|
+
/**
|
|
129
|
+
* Project-level usage content, collected from markdown files in a `usage`
|
|
130
|
+
* directory at the project's {@link Config.srcDir} root (as opposed to
|
|
131
|
+
* per-component usage content, which lives in {@link JsonDocsComponent.usage}).
|
|
132
|
+
* Keyed by file name (without extension), same shape as component usage.
|
|
133
|
+
*/
|
|
134
|
+
usage?: JsonDocsUsage;
|
|
116
135
|
/**
|
|
117
136
|
* The timestamp at which the metadata was generated, in the format YYYY-MM-DDThh:mm:ss
|
|
118
137
|
*/
|
|
@@ -55,6 +55,28 @@ interface ComponentOptions {
|
|
|
55
55
|
* Array of relative links to folders of assets required by the component.
|
|
56
56
|
*/
|
|
57
57
|
assetsDirs?: string[];
|
|
58
|
+
/**
|
|
59
|
+
* Relative URL to an external stylesheet providing document-level styles for this component.
|
|
60
|
+
* Unlike `styleUrl`, these styles are not scoped to shadow/scoped DOM - they are collected
|
|
61
|
+
* at build time and injected wherever `@import "stencil-globals"` appears in a global stylesheet.
|
|
62
|
+
*
|
|
63
|
+
* Useful for
|
|
64
|
+
* - pre-first-js-render styles (combatting cumulative layout shift)
|
|
65
|
+
* - host element and slotted content style
|
|
66
|
+
* - 'css-only' CEs - those that don't use a JS runtime at all
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```tsx
|
|
70
|
+
* @Component({ tag: 'my-button', globalStyleUrl: './my-button.global.css' })
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
globalStyleUrl?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Inline CSS string providing document-level styles for this component.
|
|
76
|
+
* Collected at build time and injected wherever `@import "stencil-globals"` appears.
|
|
77
|
+
* @see globalStyleUrl
|
|
78
|
+
*/
|
|
79
|
+
globalStyle?: string;
|
|
58
80
|
}
|
|
59
81
|
/**
|
|
60
82
|
* Shadow DOM encapsulation options for the `encapsulation` property.
|
|
@@ -83,7 +105,7 @@ interface ShadowEncapsulation {
|
|
|
83
105
|
}
|
|
84
106
|
/**
|
|
85
107
|
* Patch types for non-shadow DOM components that use slots.
|
|
86
|
-
* - `'all'`: Apply all slot-related patches (equivalent to `
|
|
108
|
+
* - `'all'`: Apply all slot-related patches (equivalent to `lightDomPatches: true`)
|
|
87
109
|
* - `'children'`: Patch child node accessors (children, firstChild, lastChild, etc.)
|
|
88
110
|
* - `'clone'`: Patch `cloneNode()` to handle slotted content
|
|
89
111
|
* - `'insert'`: Patch `appendChild()`, `insertBefore()`, etc. for slot relocation
|
|
@@ -331,6 +353,7 @@ declare const Listen: ListenDecorator;
|
|
|
331
353
|
* and object properties to their string literal values. This allows variables to be
|
|
332
354
|
* used in `@Listen` and `@Event` decorators instead of hardcoded strings.
|
|
333
355
|
*
|
|
356
|
+
*
|
|
334
357
|
* @example
|
|
335
358
|
* ```ts
|
|
336
359
|
* const MY_EVENT = 'myEvent';
|
|
@@ -461,7 +484,7 @@ declare function setNonce(nonce: string): void;
|
|
|
461
484
|
* @param ref the ref to get the Stencil element for
|
|
462
485
|
* @returns a reference to the element
|
|
463
486
|
*/
|
|
464
|
-
declare function getElement(ref: any):
|
|
487
|
+
declare function getElement<T extends HTMLElement = HTMLStencilElement>(ref: any): T;
|
|
465
488
|
/**
|
|
466
489
|
* Get the shadow root for a Stencil component's host element.
|
|
467
490
|
* This works for both open and closed shadow DOM modes.
|
|
@@ -534,15 +557,16 @@ declare function setTagTransformer(transformer: TagTransformer): void;
|
|
|
534
557
|
* @returns the transformed tag e.g. `new-my-tag`
|
|
535
558
|
*/
|
|
536
559
|
declare function transformTag(tag: string): string;
|
|
560
|
+
type MixinFactory = (base: MixedInCtor) => MixedInCtor;
|
|
537
561
|
/**
|
|
538
|
-
*
|
|
562
|
+
* A constructor type that can be used as the base for mixin factories.
|
|
563
|
+
*
|
|
539
564
|
* ```ts
|
|
540
565
|
* import { MixedInCtor } from '@stencil/core';
|
|
541
566
|
*
|
|
542
567
|
* const AFactoryFn = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
|
|
543
568
|
* ```
|
|
544
569
|
*/
|
|
545
|
-
type MixinFactory = (base: MixedInCtor) => MixedInCtor;
|
|
546
570
|
type MixedInCtor<T = {}> = new (...args: any[]) => T;
|
|
547
571
|
/**
|
|
548
572
|
* Compose multiple mixin classes into a single constructor.
|
|
@@ -615,6 +639,17 @@ interface ComponentDidUpdate {
|
|
|
615
639
|
*/
|
|
616
640
|
componentDidUpdate(): void;
|
|
617
641
|
}
|
|
642
|
+
/**
|
|
643
|
+
* A map of `@Prop`/`@State` property names to their new and previous
|
|
644
|
+
* values, passed to `componentShouldUpdate` once per render cycle.
|
|
645
|
+
*
|
|
646
|
+
* Pass `this` as `T` to type `changes` against your component's own
|
|
647
|
+
* members, e.g. `componentShouldUpdate(changes: ComponentShouldUpdateChanges<this>)`.
|
|
648
|
+
*/
|
|
649
|
+
type ComponentShouldUpdateChanges<T = any> = { [K in Extract<keyof T, string>]?: {
|
|
650
|
+
newVal: T[K];
|
|
651
|
+
oldVal: T[K];
|
|
652
|
+
}; };
|
|
618
653
|
interface ComponentInterface {
|
|
619
654
|
connectedCallback?(): void;
|
|
620
655
|
disconnectedCallback?(): void;
|
|
@@ -640,14 +675,18 @@ interface ComponentInterface {
|
|
|
640
675
|
*/
|
|
641
676
|
componentDidLoad?(): void;
|
|
642
677
|
/**
|
|
643
|
-
*
|
|
678
|
+
* One or more `@Prop` or `@State` properties changed and a rerender is
|
|
679
|
+
* about to be requested. `changes` contains every property that changed
|
|
680
|
+
* since the last render, keyed by property name.
|
|
644
681
|
*
|
|
645
|
-
* Called
|
|
646
|
-
*
|
|
682
|
+
* Called once per render cycle, batching all properties that changed
|
|
683
|
+
* synchronously since the last render.
|
|
684
|
+
*
|
|
685
|
+
* Return `false` to prevent the pending render.
|
|
647
686
|
*
|
|
648
687
|
* componentShouldUpdate is not called on the first render.
|
|
649
688
|
*/
|
|
650
|
-
componentShouldUpdate?(
|
|
689
|
+
componentShouldUpdate?(changes: ComponentShouldUpdateChanges<this>): boolean | void;
|
|
651
690
|
/**
|
|
652
691
|
* The component is about to update and re-render.
|
|
653
692
|
*
|
|
@@ -670,6 +709,54 @@ interface ComponentInterface {
|
|
|
670
709
|
render?(): any;
|
|
671
710
|
[memberName: string]: any;
|
|
672
711
|
}
|
|
712
|
+
/**
|
|
713
|
+
* A reusable behavior that hooks into a `ReactiveControllerHost`'s lifecycle. Modeled after Lit's
|
|
714
|
+
* `ReactiveController` pattern: implement the hooks you need, then register an instance with a host
|
|
715
|
+
* via `host.addController(this)`.
|
|
716
|
+
*/
|
|
717
|
+
interface ReactiveController {
|
|
718
|
+
hostConnected?(): void;
|
|
719
|
+
hostDisconnected?(): void;
|
|
720
|
+
hostWillLoad?(): Promise<void> | void;
|
|
721
|
+
hostDidLoad?(): void;
|
|
722
|
+
hostWillRender?(): Promise<void> | void;
|
|
723
|
+
hostDidRender?(): void;
|
|
724
|
+
hostWillUpdate?(): Promise<void> | void;
|
|
725
|
+
hostDidUpdate?(): void;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* The shape added to a component by mixing in `ReactiveControllerHost` (see below).
|
|
729
|
+
*/
|
|
730
|
+
interface ReactiveControllerHostInterface extends ComponentInterface, HTMLElement {
|
|
731
|
+
readonly controllers: ReadonlySet<ReactiveController>;
|
|
732
|
+
addController(controller: ReactiveController): void;
|
|
733
|
+
removeController(controller: ReactiveController): void;
|
|
734
|
+
requestUpdate(): void;
|
|
735
|
+
/**
|
|
736
|
+
* Resolves once the next pending render commits. Matches the shape of Lit's
|
|
737
|
+
* `ReactiveControllerHost.updateComplete`, for interop with controllers written against Lit's API
|
|
738
|
+
* (e.g. `@lit/context`).
|
|
739
|
+
*/
|
|
740
|
+
readonly updateComplete: Promise<boolean>;
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* A mixin factory (for use with `Mixin()`) that adds `ReactiveController` support to a component,
|
|
744
|
+
* forwarding each Stencil lifecycle method to every registered controller's matching `hostX` hook.
|
|
745
|
+
*
|
|
746
|
+
* ```ts
|
|
747
|
+
* import { Mixin, ReactiveControllerHost } from '@stencil/core';
|
|
748
|
+
* import { MouseController } from './mouse-controller';
|
|
749
|
+
*
|
|
750
|
+
* class MyComponent extends Mixin(ReactiveControllerHost) {
|
|
751
|
+
* private mouse = new MouseController(this);
|
|
752
|
+
* render() { return <Host>{this.mouse.pos.x}, {this.mouse.pos.y}</Host>; }
|
|
753
|
+
* }
|
|
754
|
+
* ```
|
|
755
|
+
*
|
|
756
|
+
* @param Base the class to extend.
|
|
757
|
+
* @returns a class extending `Base` with reactive-controller support.
|
|
758
|
+
*/
|
|
759
|
+
declare function ReactiveControllerHost<B extends MixedInCtor>(Base: B): MixedInCtor<InstanceType<B> & ReactiveControllerHostInterface>;
|
|
673
760
|
interface EventEmitter<T = any> {
|
|
674
761
|
emit: (data?: T) => CustomEvent<T>;
|
|
675
762
|
}
|
|
@@ -683,13 +770,21 @@ interface QueueApi {
|
|
|
683
770
|
clear?: () => void;
|
|
684
771
|
flush?: (cb?: () => void) => void;
|
|
685
772
|
}
|
|
773
|
+
/**
|
|
774
|
+
* Minimal interface matched by signal objects (from @stencil/core/signals).
|
|
775
|
+
* Used in JSX attribute types.
|
|
776
|
+
*/
|
|
777
|
+
interface SignalRef<T = any> {
|
|
778
|
+
readonly value: T;
|
|
779
|
+
peek(): T;
|
|
780
|
+
}
|
|
686
781
|
/**
|
|
687
782
|
* Host
|
|
688
783
|
*/
|
|
689
784
|
interface HostAttributes {
|
|
690
785
|
class?: string | {
|
|
691
786
|
[className: string]: boolean;
|
|
692
|
-
}
|
|
787
|
+
} | SignalRef<string>;
|
|
693
788
|
style?: {
|
|
694
789
|
[key: string]: string | undefined;
|
|
695
790
|
};
|
|
@@ -737,7 +832,7 @@ interface FunctionalUtilities {
|
|
|
737
832
|
map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
|
|
738
833
|
}
|
|
739
834
|
interface FunctionalComponent<T = {}> {
|
|
740
|
-
(props: T, children: VNode[], utils: FunctionalUtilities): VNode |
|
|
835
|
+
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | null;
|
|
741
836
|
}
|
|
742
837
|
/**
|
|
743
838
|
* A Child VDOM node
|
|
@@ -748,7 +843,7 @@ interface FunctionalComponent<T = {}> {
|
|
|
748
843
|
* {@link FunctionalUtilities}).
|
|
749
844
|
*/
|
|
750
845
|
interface ChildNode {
|
|
751
|
-
vtag?: string | number | Function;
|
|
846
|
+
vtag?: string | number | Function | symbol | null;
|
|
752
847
|
vkey?: string | number;
|
|
753
848
|
vtext?: string;
|
|
754
849
|
vchildren?: VNode[];
|
|
@@ -761,11 +856,11 @@ interface ChildNode {
|
|
|
761
856
|
*
|
|
762
857
|
* For further information: https://stenciljs.com/docs/host-element
|
|
763
858
|
*/
|
|
764
|
-
declare const Host:
|
|
859
|
+
declare const Host: (props: HostAttributes) => VNode;
|
|
765
860
|
/**
|
|
766
861
|
* Fragment
|
|
767
862
|
*/
|
|
768
|
-
declare const Fragment:
|
|
863
|
+
declare const Fragment: (props: {}) => VNode;
|
|
769
864
|
/**
|
|
770
865
|
* The "h" namespace is used to import JSX types for elements and attributes.
|
|
771
866
|
* It is imported in order to avoid conflicting global JSX issues.
|
|
@@ -781,6 +876,7 @@ declare namespace h {
|
|
|
781
876
|
function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
782
877
|
function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
783
878
|
namespace JSX {
|
|
879
|
+
type Element = VNode;
|
|
784
880
|
interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
|
|
785
881
|
[tagName: string]: any;
|
|
786
882
|
}
|
|
@@ -817,13 +913,15 @@ declare function jsxs(type: any, props: any, key?: string): VNode;
|
|
|
817
913
|
*/
|
|
818
914
|
interface VNode {
|
|
819
915
|
$flags$: number;
|
|
820
|
-
$tag$: string | number | Function;
|
|
916
|
+
$tag$: string | number | Function | symbol | null;
|
|
821
917
|
$elm$: any;
|
|
822
918
|
$text$: string;
|
|
823
919
|
$children$: VNode[];
|
|
824
920
|
$attrs$?: any;
|
|
825
921
|
$name$?: string;
|
|
826
922
|
$key$?: string | number;
|
|
923
|
+
/** Signal reference for vdom bypass: signal text nodes store the signal here. */
|
|
924
|
+
$signal$?: any;
|
|
827
925
|
}
|
|
828
926
|
interface VNodeData {
|
|
829
927
|
class?: {
|
|
@@ -1092,6 +1190,7 @@ declare namespace JSXBase {
|
|
|
1092
1190
|
onClose?: (event: Event) => void;
|
|
1093
1191
|
open?: boolean;
|
|
1094
1192
|
returnValue?: string;
|
|
1193
|
+
closedby?: 'any' | 'closerequest' | 'none';
|
|
1095
1194
|
}
|
|
1096
1195
|
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1097
1196
|
height?: number | string;
|
|
@@ -1129,6 +1228,8 @@ declare namespace JSXBase {
|
|
|
1129
1228
|
allowtransparency?: string | boolean;
|
|
1130
1229
|
frameBorder?: number | string;
|
|
1131
1230
|
frameborder?: number | string;
|
|
1231
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1232
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1132
1233
|
importance?: 'low' | 'auto' | 'high';
|
|
1133
1234
|
height?: number | string;
|
|
1134
1235
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1151,9 +1252,12 @@ declare namespace JSXBase {
|
|
|
1151
1252
|
crossOrigin?: string;
|
|
1152
1253
|
crossorigin?: string;
|
|
1153
1254
|
decoding?: 'async' | 'auto' | 'sync';
|
|
1255
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1256
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1154
1257
|
importance?: 'low' | 'auto' | 'high';
|
|
1155
1258
|
height?: number | string;
|
|
1156
1259
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
1260
|
+
referrerPolicy?: ReferrerPolicy;
|
|
1157
1261
|
sizes?: string;
|
|
1158
1262
|
src?: string;
|
|
1159
1263
|
srcSet?: string;
|
|
@@ -1249,6 +1353,8 @@ declare namespace JSXBase {
|
|
|
1249
1353
|
}
|
|
1250
1354
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1251
1355
|
as?: string;
|
|
1356
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1357
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1252
1358
|
href?: string;
|
|
1253
1359
|
hrefLang?: string;
|
|
1254
1360
|
hreflang?: string;
|
|
@@ -1372,6 +1478,8 @@ declare namespace JSXBase {
|
|
|
1372
1478
|
crossOrigin?: string;
|
|
1373
1479
|
crossorigin?: string;
|
|
1374
1480
|
defer?: boolean;
|
|
1481
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1482
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1375
1483
|
importance?: 'low' | 'auto' | 'high';
|
|
1376
1484
|
integrity?: string;
|
|
1377
1485
|
nonce?: string;
|
|
@@ -1469,7 +1577,7 @@ declare namespace JSXBase {
|
|
|
1469
1577
|
autofocus?: boolean | string;
|
|
1470
1578
|
class?: string | {
|
|
1471
1579
|
[className: string]: boolean;
|
|
1472
|
-
}
|
|
1580
|
+
} | SignalRef<string>;
|
|
1473
1581
|
contentEditable?: boolean | string;
|
|
1474
1582
|
contenteditable?: boolean | string;
|
|
1475
1583
|
contextMenu?: string;
|
|
@@ -1487,7 +1595,10 @@ declare namespace JSXBase {
|
|
|
1487
1595
|
tabIndex?: number;
|
|
1488
1596
|
tabindex?: number | string;
|
|
1489
1597
|
title?: string;
|
|
1598
|
+
translate?: 'yes' | 'no' | (string & {});
|
|
1490
1599
|
popover?: string | null;
|
|
1600
|
+
focusgroup?: string;
|
|
1601
|
+
focusgroupstart?: boolean;
|
|
1491
1602
|
inputMode?: string;
|
|
1492
1603
|
inputmode?: string;
|
|
1493
1604
|
enterKeyHint?: string;
|
|
@@ -1528,7 +1639,7 @@ declare namespace JSXBase {
|
|
|
1528
1639
|
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1529
1640
|
class?: string | {
|
|
1530
1641
|
[className: string]: boolean;
|
|
1531
|
-
}
|
|
1642
|
+
} | SignalRef<string>;
|
|
1532
1643
|
color?: string;
|
|
1533
1644
|
height?: number | string;
|
|
1534
1645
|
id?: string;
|
|
@@ -1929,10 +2040,13 @@ declare namespace JSXBase {
|
|
|
1929
2040
|
interface JSXAttributes<T = Element> {
|
|
1930
2041
|
key?: string | number;
|
|
1931
2042
|
ref?: (elm?: T) => void;
|
|
2043
|
+
children?: any;
|
|
1932
2044
|
}
|
|
1933
2045
|
interface CustomElementsDefineOptions {
|
|
1934
2046
|
exclude?: string[];
|
|
1935
2047
|
syncQueue?: boolean;
|
|
2048
|
+
/** Scoped custom element registry to define components in. Defaults to the global registry. */
|
|
2049
|
+
registry?: CustomElementRegistry;
|
|
1936
2050
|
jmp?: (c: Function) => any;
|
|
1937
2051
|
raf?: (c: FrameRequestCallback) => number;
|
|
1938
2052
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
@@ -1940,4 +2054,4 @@ interface CustomElementsDefineOptions {
|
|
|
1940
2054
|
ce?: (eventName: string, opts?: any) => CustomEvent;
|
|
1941
2055
|
}
|
|
1942
2056
|
//#endregion
|
|
1943
|
-
export { AttachInternals, AttachInternalsDecorator, AttachInternalsOptions, AttrDeserialize, AttrDeserializeDecorator, Build, ChildNode, Component, ComponentDecorator, ComponentDidLoad, ComponentDidUpdate, ComponentInterface, ComponentOptions, ComponentWillLoad, ComponentWillUpdate, CustomElementsDefineOptions, Element, ElementDecorator, EncapsulationOptions, Env, ErrorHandler, Event, EventDecorator, EventEmitter, EventOptions, Fragment, FunctionalComponent, FunctionalUtilities, HTMLStencilElement, Host, HostAttributes, LocalJSX as JSX, JSXAttributes, JSXBase, Listen, ListenDecorator, ListenOptions, ListenTargetOptions, Method, MethodDecorator, MethodOptions, MixedInCtor, Mixin,
|
|
2057
|
+
export { AttachInternals, AttachInternalsDecorator, AttachInternalsOptions, AttrDeserialize, AttrDeserializeDecorator, Build, ChildNode, Component, ComponentDecorator, ComponentDidLoad, ComponentDidUpdate, ComponentInterface, ComponentOptions, ComponentShouldUpdateChanges, ComponentWillLoad, ComponentWillUpdate, CustomElementsDefineOptions, Element, ElementDecorator, EncapsulationOptions, Env, ErrorHandler, Event, EventDecorator, EventEmitter, EventOptions, Fragment, FunctionalComponent, FunctionalUtilities, HTMLStencilElement, Host, HostAttributes, LocalJSX as JSX, JSXAttributes, JSXBase, Listen, ListenDecorator, ListenOptions, ListenTargetOptions, Method, MethodDecorator, MethodOptions, MixedInCtor, Mixin, ModeStyles, NoneEncapsulation, Prop, PropDecorator, PropOptions, PropSerialize, PropSerializeDecorator, QueueApi, RafCallback, ReactiveController, ReactiveControllerHost, ReactiveControllerHostInterface, ResolutionHandler, ResolveVarFunction, ScopedEncapsulation, ShadowEncapsulation, ShadowRootOptions, SignalRef, SlotPatch, State, StateDecorator, TagTransformer, UserBuildConditionals, VNode, VNodeData, Watch, WatchDecorator, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getShadowRoot, h, jsx, jsxs, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setNonce, setPlatformHelpers, setTagTransformer, transformTag, writeTask };
|