@stencil/core 5.0.0-alpha.5 → 5.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-Dnio47yQ.mjs → client-fWOou5EW.mjs} +2324 -2125
- package/dist/compiler/index.d.mts +5 -5
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +2 -2
- package/dist/compiler/utils/index.mjs +3 -3
- package/dist/{compiler-Dxri2g8Z.mjs → compiler-CdUbDTbV.mjs} +13329 -12670
- package/dist/declarations/stencil-public-compiler.d.ts +254 -121
- package/dist/declarations/stencil-public-docs.d.ts +10 -0
- package/dist/declarations/stencil-public-runtime.d.ts +49 -12
- package/dist/{index-D5zaocDq.d.mts → index-D8vvsppY.d.mts} +228 -180
- package/dist/{index-D61XZw0f.d.ts → index-Dap2E02-.d.ts} +82 -31
- package/dist/{index-Dat4djoo.d.mts → index-UUlemGuu.d.mts} +13 -2
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.d.mts +18 -0
- package/dist/jsx-runtime.mjs +2 -0
- package/dist/{node-pj6rF4Wt.mjs → node-klLZLdDe.mjs} +59 -55
- package/dist/{regular-expression-D0_N0PGa.mjs → regular-expression-DUdhF3Ei.mjs} +72 -6
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/app-data/index.js +15 -9
- package/dist/{runtime-CKyUrF4i.js → runtime/client/lazy.js} +2539 -2199
- package/dist/runtime/client/{index.d.ts → runtime.d.ts} +49 -40
- package/dist/runtime/client/{index.js → runtime.js} +2401 -2185
- package/dist/runtime/index.d.ts +20 -3
- package/dist/runtime/index.js +4956 -2
- package/dist/runtime/server/index.d.mts +30 -39
- package/dist/runtime/server/index.mjs +2369 -2185
- package/dist/runtime/server/runner.d.mts +4 -6
- package/dist/runtime/server/runner.mjs +307 -361
- package/dist/signals/index.d.ts +47 -0
- package/dist/signals/index.js +199 -0
- package/dist/sys/node/index.d.mts +1 -1
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.d.mts +97 -3
- package/dist/testing/index.mjs +199 -47
- package/dist/{validation-BA8nzXu_.mjs → validation-2QipI30K.mjs} +21 -32
- package/package.json +41 -27
- package/dist/index-D-XN9HW_.d.ts +0 -30
- package/dist/jsx-runtime-B3vQbWIW.d.ts +0 -28
- package/dist/jsx-runtime.d.ts +0 -2
- package/dist/jsx-runtime.js +0 -2
- /package/dist/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
|
@@ -96,6 +96,14 @@ interface ComponentInterface {
|
|
|
96
96
|
render?(): any;
|
|
97
97
|
[memberName: string]: any;
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Minimal interface matched by signal objects (from @stencil/core/signals).
|
|
101
|
+
* Used in JSX attribute types.
|
|
102
|
+
*/
|
|
103
|
+
interface SignalRef<T = any> {
|
|
104
|
+
readonly value: T;
|
|
105
|
+
peek(): T;
|
|
106
|
+
}
|
|
99
107
|
/**
|
|
100
108
|
* Utilities for working with functional Stencil components. An object
|
|
101
109
|
* conforming to this interface is passed by the Stencil runtime as the third
|
|
@@ -137,7 +145,7 @@ interface FunctionalUtilities {
|
|
|
137
145
|
map: (children: VNode[], cb: (vnode: ChildNode$1, index: number, array: ChildNode$1[]) => ChildNode$1) => VNode[];
|
|
138
146
|
}
|
|
139
147
|
interface FunctionalComponent<T = {}> {
|
|
140
|
-
(props: T, children: VNode[], utils: FunctionalUtilities): VNode |
|
|
148
|
+
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | null;
|
|
141
149
|
}
|
|
142
150
|
/**
|
|
143
151
|
* A Child VDOM node
|
|
@@ -148,7 +156,7 @@ interface FunctionalComponent<T = {}> {
|
|
|
148
156
|
* {@link FunctionalUtilities}).
|
|
149
157
|
*/
|
|
150
158
|
interface ChildNode$1 {
|
|
151
|
-
vtag?: string | number | Function;
|
|
159
|
+
vtag?: string | number | Function | symbol | null;
|
|
152
160
|
vkey?: string | number;
|
|
153
161
|
vtext?: string;
|
|
154
162
|
vchildren?: VNode[];
|
|
@@ -160,13 +168,15 @@ interface ChildNode$1 {
|
|
|
160
168
|
*/
|
|
161
169
|
interface VNode {
|
|
162
170
|
$flags$: number;
|
|
163
|
-
$tag$: string | number | Function;
|
|
171
|
+
$tag$: string | number | Function | symbol | null;
|
|
164
172
|
$elm$: any;
|
|
165
173
|
$text$: string;
|
|
166
174
|
$children$: VNode[];
|
|
167
175
|
$attrs$?: any;
|
|
168
176
|
$name$?: string;
|
|
169
177
|
$key$?: string | number;
|
|
178
|
+
/** Signal reference for vdom bypass: signal text nodes store the signal here. */
|
|
179
|
+
$signal$?: any;
|
|
170
180
|
}
|
|
171
181
|
declare namespace JSXBase {
|
|
172
182
|
interface IntrinsicElements {
|
|
@@ -802,7 +812,7 @@ declare namespace JSXBase {
|
|
|
802
812
|
autofocus?: boolean | string;
|
|
803
813
|
class?: string | {
|
|
804
814
|
[className: string]: boolean;
|
|
805
|
-
}
|
|
815
|
+
} | SignalRef<string>;
|
|
806
816
|
contentEditable?: boolean | string;
|
|
807
817
|
contenteditable?: boolean | string;
|
|
808
818
|
contextMenu?: string;
|
|
@@ -861,7 +871,7 @@ declare namespace JSXBase {
|
|
|
861
871
|
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
862
872
|
class?: string | {
|
|
863
873
|
[className: string]: boolean;
|
|
864
|
-
}
|
|
874
|
+
} | SignalRef<string>;
|
|
865
875
|
color?: string;
|
|
866
876
|
height?: number | string;
|
|
867
877
|
id?: string;
|
|
@@ -1262,10 +1272,13 @@ declare namespace JSXBase {
|
|
|
1262
1272
|
interface JSXAttributes<T = Element$1> {
|
|
1263
1273
|
key?: string | number;
|
|
1264
1274
|
ref?: (elm?: T) => void;
|
|
1275
|
+
children?: any;
|
|
1265
1276
|
}
|
|
1266
1277
|
interface CustomElementsDefineOptions {
|
|
1267
1278
|
exclude?: string[];
|
|
1268
1279
|
syncQueue?: boolean;
|
|
1280
|
+
/** Scoped custom element registry to define components in. Defaults to the global registry. */
|
|
1281
|
+
registry?: CustomElementRegistry;
|
|
1269
1282
|
jmp?: (c: Function) => any;
|
|
1270
1283
|
raf?: (c: FrameRequestCallback) => number;
|
|
1271
1284
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
@@ -1302,6 +1315,7 @@ interface BuildFeatures {
|
|
|
1302
1315
|
vdomStyle: boolean;
|
|
1303
1316
|
vdomText: boolean;
|
|
1304
1317
|
vdomXlink: boolean;
|
|
1318
|
+
vdomSignals: boolean;
|
|
1305
1319
|
slotRelocation: boolean;
|
|
1306
1320
|
patchAll: boolean;
|
|
1307
1321
|
patchChildren: boolean;
|
|
@@ -1348,20 +1362,27 @@ interface BuildConditionals extends Partial<BuildFeatures> {
|
|
|
1348
1362
|
lazyLoad?: boolean;
|
|
1349
1363
|
profile?: boolean;
|
|
1350
1364
|
constructableCSS?: boolean;
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1365
|
+
/** True when `extras.lightDomPatches === true` - enables `applyLightDomPatches` shortcut. */
|
|
1366
|
+
lightDomPatches?: boolean;
|
|
1367
|
+
/** Patch `childNodes`/`children` getters on light-dom slotted components. */
|
|
1368
|
+
slotChildNodes?: boolean;
|
|
1369
|
+
/** Patch `cloneNode()` on light-dom slotted components. */
|
|
1370
|
+
slotCloneNode?: boolean;
|
|
1371
|
+
/** Patch `appendChild`/`insertBefore`/`removeChild` on light-dom slotted components. */
|
|
1372
|
+
slotDomMutations?: boolean;
|
|
1373
|
+
/** Patch `textContent` on light-dom slotted components. */
|
|
1374
|
+
slotTextContent?: boolean;
|
|
1355
1375
|
hydratedAttribute?: boolean;
|
|
1356
1376
|
hydratedClass?: boolean;
|
|
1357
1377
|
hydratedSelectorName?: string;
|
|
1378
|
+
/** True when a global-style input contains `@import "stencil-hydrate"` - suppresses dynamic style injection in the loader. */
|
|
1379
|
+
staticHydrationStyles?: boolean;
|
|
1358
1380
|
initializeNextTick?: boolean;
|
|
1359
|
-
shadowDomShim?: boolean;
|
|
1360
1381
|
asyncQueue?: boolean;
|
|
1361
1382
|
additionalTagTransformers?: boolean | 'prod';
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1383
|
+
signalBacking?: boolean;
|
|
1384
|
+
/** True when JSX signal bypass is active - text nodes and attributes backed by Signal objects update the DOM directly. Auto-enabled when `signalBacking: true`. */
|
|
1385
|
+
vdomSignals?: boolean;
|
|
1365
1386
|
}
|
|
1366
1387
|
interface ComponentConstructor {
|
|
1367
1388
|
is?: string;
|
|
@@ -1426,7 +1447,7 @@ interface HostElement extends HTMLElement {
|
|
|
1426
1447
|
disconnectedCallback?: () => void;
|
|
1427
1448
|
host?: Element;
|
|
1428
1449
|
forceUpdate?: () => void;
|
|
1429
|
-
|
|
1450
|
+
__s_ghr?: () => HostRef;
|
|
1430
1451
|
/**
|
|
1431
1452
|
* Unique stencil id for this element
|
|
1432
1453
|
*/
|
|
@@ -1574,61 +1595,61 @@ interface RenderNode extends HostElement {
|
|
|
1574
1595
|
['s-en']?: '' | /*shadow*/'c';
|
|
1575
1596
|
/**
|
|
1576
1597
|
* On a `scoped: true` component
|
|
1577
|
-
* with `
|
|
1598
|
+
* with `lightDomPatches` flag enabled,
|
|
1578
1599
|
* returns the internal `childNodes` of the component
|
|
1579
1600
|
*/
|
|
1580
1601
|
readonly __childNodes?: NodeListOf<ChildNode>;
|
|
1581
1602
|
/**
|
|
1582
1603
|
* On a `scoped: true` component
|
|
1583
|
-
* with `
|
|
1604
|
+
* with `lightDomPatches` flag enabled,
|
|
1584
1605
|
* returns the internal `children` of the component
|
|
1585
1606
|
*/
|
|
1586
1607
|
readonly __children?: HTMLCollectionOf<Element>;
|
|
1587
1608
|
/**
|
|
1588
1609
|
* On a `scoped: true` component
|
|
1589
|
-
* with `
|
|
1610
|
+
* with `lightDomPatches` flag enabled,
|
|
1590
1611
|
* returns the internal `firstChild` of the component
|
|
1591
1612
|
*/
|
|
1592
1613
|
readonly __firstChild?: ChildNode;
|
|
1593
1614
|
/**
|
|
1594
1615
|
* On a `scoped: true` component
|
|
1595
|
-
* with `
|
|
1616
|
+
* with `lightDomPatches` flag enabled,
|
|
1596
1617
|
* returns the internal `lastChild` of the component
|
|
1597
1618
|
*/
|
|
1598
1619
|
readonly __lastChild?: ChildNode;
|
|
1599
1620
|
/**
|
|
1600
1621
|
* On a `scoped: true` component
|
|
1601
|
-
* with `
|
|
1622
|
+
* with `lightDomPatches` flag enabled,
|
|
1602
1623
|
* returns the internal `textContent` of the component
|
|
1603
1624
|
*/
|
|
1604
1625
|
__textContent?: string;
|
|
1605
1626
|
/**
|
|
1606
1627
|
* On a `scoped: true` component
|
|
1607
|
-
* with `
|
|
1628
|
+
* with `lightDomPatches` flag enabled,
|
|
1608
1629
|
* gives access to the original `append` method
|
|
1609
1630
|
*/
|
|
1610
1631
|
__append?: (...nodes: (Node | string)[]) => void;
|
|
1611
1632
|
/**
|
|
1612
1633
|
* On a `scoped: true` component
|
|
1613
|
-
* with `
|
|
1634
|
+
* with `lightDomPatches` flag enabled,
|
|
1614
1635
|
* gives access to the original `prepend` method
|
|
1615
1636
|
*/
|
|
1616
1637
|
__prepend?: (...nodes: (Node | string)[]) => void;
|
|
1617
1638
|
/**
|
|
1618
1639
|
* On a `scoped: true` component
|
|
1619
|
-
* with `
|
|
1640
|
+
* with `lightDomPatches` flag enabled,
|
|
1620
1641
|
* gives access to the original `appendChild` method
|
|
1621
1642
|
*/
|
|
1622
1643
|
__appendChild?: <T extends Node>(newChild: T) => T;
|
|
1623
1644
|
/**
|
|
1624
1645
|
* On a `scoped: true` component
|
|
1625
|
-
* with `
|
|
1646
|
+
* with `lightDomPatches` flag enabled,
|
|
1626
1647
|
* gives access to the original `insertBefore` method
|
|
1627
1648
|
*/
|
|
1628
1649
|
__insertBefore?: <T extends Node>(node: T, child: Node | null) => T;
|
|
1629
1650
|
/**
|
|
1630
1651
|
* On a `scoped: true` component
|
|
1631
|
-
* with `
|
|
1652
|
+
* with `lightDomPatches` flag enabled,
|
|
1632
1653
|
* gives access to the original `removeChild` method
|
|
1633
1654
|
*/
|
|
1634
1655
|
__removeChild?: <T extends Node>(child: T) => T;
|
|
@@ -1666,31 +1687,31 @@ interface PatchedSlotNode extends Node {
|
|
|
1666
1687
|
['s-sr']?: boolean;
|
|
1667
1688
|
/**
|
|
1668
1689
|
* On a `scoped: true` component
|
|
1669
|
-
* with `
|
|
1690
|
+
* with `lightDomPatches` flag enabled,
|
|
1670
1691
|
* returns the actual `parentNode` of the component
|
|
1671
1692
|
*/
|
|
1672
1693
|
__parentNode?: RenderNode;
|
|
1673
1694
|
/**
|
|
1674
1695
|
* On a `scoped: true` component
|
|
1675
|
-
* with `
|
|
1696
|
+
* with `lightDomPatches` flag enabled,
|
|
1676
1697
|
* returns the actual `nextSibling` of the component
|
|
1677
1698
|
*/
|
|
1678
1699
|
__nextSibling?: RenderNode;
|
|
1679
1700
|
/**
|
|
1680
1701
|
* On a `scoped: true` component
|
|
1681
|
-
* with `
|
|
1702
|
+
* with `lightDomPatches` flag enabled,
|
|
1682
1703
|
* returns the actual `previousSibling` of the component
|
|
1683
1704
|
*/
|
|
1684
1705
|
__previousSibling?: RenderNode;
|
|
1685
1706
|
/**
|
|
1686
1707
|
* On a `scoped: true` component
|
|
1687
|
-
* with `
|
|
1708
|
+
* with `lightDomPatches` flag enabled,
|
|
1688
1709
|
* returns the actual `nextElementSibling` of the component
|
|
1689
1710
|
*/
|
|
1690
1711
|
__nextElementSibling?: RenderNode;
|
|
1691
1712
|
/**
|
|
1692
1713
|
* On a `scoped: true` component
|
|
1693
|
-
* with `
|
|
1714
|
+
* with `lightDomPatches` flag enabled,
|
|
1694
1715
|
* returns the actual `nextElementSibling` of the component
|
|
1695
1716
|
*/
|
|
1696
1717
|
__previousElementSibling?: RenderNode;
|
|
@@ -1791,7 +1812,7 @@ type ComponentRuntimeReflectingAttr = [string, string | undefined];
|
|
|
1791
1812
|
* associated {@link HostRef} instance.
|
|
1792
1813
|
*/
|
|
1793
1814
|
type RuntimeRef = HostElement | {
|
|
1794
|
-
|
|
1815
|
+
__s_ghr?: () => HostRef;
|
|
1795
1816
|
};
|
|
1796
1817
|
/**
|
|
1797
1818
|
* Interface used to track an Element, it's virtual Node (`VNode`), and other data
|
|
@@ -1802,6 +1823,9 @@ interface HostRef {
|
|
|
1802
1823
|
$cmpMeta$: ComponentRuntimeMeta;
|
|
1803
1824
|
$hostElement$: HostElement;
|
|
1804
1825
|
$instanceValues$?: Map<string, any>;
|
|
1826
|
+
$signalValues$?: Map<string, import('@preact/signals-core').Signal<any>>;
|
|
1827
|
+
/** Dispose function that tears down all signal effects for this component. */
|
|
1828
|
+
$signalCleanup$?: () => void;
|
|
1805
1829
|
$serializerValues$?: Map<string, string>;
|
|
1806
1830
|
$lazyInstance$?: ComponentInterface;
|
|
1807
1831
|
/**
|
|
@@ -1888,4 +1912,31 @@ interface PlatformRuntime {
|
|
|
1888
1912
|
}
|
|
1889
1913
|
type ChildType = VNode | number | string;
|
|
1890
1914
|
//#endregion
|
|
1891
|
-
|
|
1915
|
+
//#region src/app-data/index.d.ts
|
|
1916
|
+
/**
|
|
1917
|
+
* A collection of default build flags for a Stencil project.
|
|
1918
|
+
*
|
|
1919
|
+
* This collection can be found throughout the Stencil codebase, often imported from the `virtual:app-data` module like so:
|
|
1920
|
+
* ```ts
|
|
1921
|
+
* import { BUILD } from 'virtual:app-data';
|
|
1922
|
+
* ```
|
|
1923
|
+
* and is used to determine if a portion of the output of a Stencil _project_'s compilation step can be eliminated.
|
|
1924
|
+
*
|
|
1925
|
+
* e.g. When `BUILD.allRenderFn` evaluates to `false`, the compiler will eliminate conditional statements like:
|
|
1926
|
+
* ```ts
|
|
1927
|
+
* if (BUILD.allRenderFn) {
|
|
1928
|
+
* // some code that will be eliminated if BUILD.allRenderFn is false
|
|
1929
|
+
* }
|
|
1930
|
+
* ```
|
|
1931
|
+
*
|
|
1932
|
+
* `virtual:app-data`, the module that `BUILD` is imported from, is an alias for the `@stencil/core/runtime/app-data`, and is
|
|
1933
|
+
* partially referenced by {@link STENCIL_APP_DATA_ID}. The `src/compiler/bundle/app-data-plugin.ts` references
|
|
1934
|
+
* `STENCIL_APP_DATA_ID` uses it to replace these defaults with {@link BuildConditionals} that are derived from a
|
|
1935
|
+
* Stencil project's contents (i.e. metadata from the components). This replacement happens at a Stencil project's
|
|
1936
|
+
* compile time. Such code can be found at `src/compiler/app-core/app-data.ts`.
|
|
1937
|
+
*/
|
|
1938
|
+
declare const BUILD: BuildConditionals;
|
|
1939
|
+
declare const Env: {};
|
|
1940
|
+
declare const NAMESPACE: string;
|
|
1941
|
+
//#endregion
|
|
1942
|
+
export { VNode as S, FunctionalComponent as _, ComponentConstructor as a, ResolutionHandler as b, ComponentRuntimeMeta as c, HostRef as d, LazyBundlesRuntimeData as f, CustomElementsDefineOptions as g, RuntimeRef as h, ChildType as i, ComponentRuntimeMetaCompact as l, RenderNode as m, Env as n, ComponentConstructorChangeHandlers as o, PlatformRuntime as p, NAMESPACE as r, ComponentRuntimeHostListener as s, BUILD as t, HostElement as u, HTMLStencilElement as v, TagTransformer as x, JSXBase as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Et as HostElement, ca as ErrorHandler, cn as RuntimeRef, da as ResolutionHandler, fa as TagTransformer, la as FunctionalComponent, ma as VNode, p as ChildType, pa as UserBuildConditionals, ua as RafCallback } from "./index-D8vvsppY.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/client/client-build.d.ts
|
|
4
4
|
declare const Build: UserBuildConditionals;
|
|
@@ -191,4 +191,15 @@ declare const forceUpdate: (ref: any) => boolean;
|
|
|
191
191
|
declare const h: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VNode;
|
|
192
192
|
declare const Host: {};
|
|
193
193
|
//#endregion
|
|
194
|
-
|
|
194
|
+
//#region src/runtime/vdom/jsx-runtime.d.ts
|
|
195
|
+
declare function jsx(type: any, props: any, key?: string): VNode;
|
|
196
|
+
/**
|
|
197
|
+
* @alias
|
|
198
|
+
*/
|
|
199
|
+
declare const jsxs: typeof jsx;
|
|
200
|
+
/**
|
|
201
|
+
* @alias
|
|
202
|
+
*/
|
|
203
|
+
declare const jsxDEV: typeof jsx;
|
|
204
|
+
//#endregion
|
|
205
|
+
export { Listen as A, writeTask as C, Component as D, AttrDeserialize as E, Watch as F, resolveVar as I, Build as L, Prop as M, PropSerialize as N, Element$1 as O, State as P, readTask as S, AttachInternals as T, getShadowRoot as _, h as a, Env as b, setTagTransformer as c, getMode as d, setMode as f, getElement as g, createEvent as h, Host as i, Method as j, Event as k, transformTag as l, Fragment as m, jsxDEV as n, forceUpdate as o, Mixin as p, jsxs as r, getRenderingRef as s, jsx as t, render as u, getAssetPath as v, setErrorHandler as w, setPlatformHelpers as x, setAssetPath as y };
|
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as AttachInternals, B as Watch, C as setAssetPath, E as setPlatformHelpers, F as Listen, H as Build, I as Method, L as Prop, M as Component, N as Element, O as setErrorHandler, P as Event, R as PropSerialize, S as getAssetPath, T as writeTask, V as resolveVar, _ as getRenderingRef, a as setTagTransformer, b as getElement, c as Mixin, d as getMode, f as setMode, g as forceUpdate, h, j as AttrDeserialize, l as Fragment, m as Host, o as transformTag, s as render, w as readTask, x as getShadowRoot, z as State } from "./client-fWOou5EW.mjs";
|
|
2
2
|
export { AttachInternals, AttrDeserialize, Build, Component, Element, Event, Fragment, Host, Listen, Method, Mixin, Prop, PropSerialize, State, Watch, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getShadowRoot, h, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setPlatformHelpers, setTagTransformer, transformTag, writeTask };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { VNode, JSXBase, JSX as LocalJSX } from './declarations/stencil-public-runtime';
|
|
2
|
+
|
|
3
|
+
export { Fragment } from './declarations/stencil-public-runtime';
|
|
4
|
+
export function jsx(type: any, props: any, key?: string): VNode;
|
|
5
|
+
export function jsxs(type: any, props: any, key?: string): VNode;
|
|
6
|
+
export function jsxDEV(type: any, props: any, key?: string): VNode;
|
|
7
|
+
|
|
8
|
+
export namespace JSX {
|
|
9
|
+
type BaseElements = LocalJSX.IntrinsicElements & JSXBase.IntrinsicElements;
|
|
10
|
+
|
|
11
|
+
export type IntrinsicElements = {
|
|
12
|
+
[K in keyof BaseElements]: BaseElements[K] & { children?: any };
|
|
13
|
+
} & {
|
|
14
|
+
[tagName: string]: any;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type Element = VNode;
|
|
18
|
+
}
|