@stencil/core 5.0.0-alpha.4 → 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-Dti6fFpE.mjs → client-fWOou5EW.mjs} +2360 -2090
- 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-BYRrEeD-.mjs → compiler-CdUbDTbV.mjs} +13426 -12276
- package/dist/declarations/stencil-public-compiler.d.ts +527 -238
- package/dist/declarations/stencil-public-compiler.js +2 -3
- package/dist/declarations/stencil-public-docs.d.ts +10 -0
- package/dist/declarations/stencil-public-runtime.d.ts +51 -12
- package/dist/{index-BwTaN1Nq.d.mts → index-D8vvsppY.d.mts} +566 -350
- package/dist/{index-CyrGY82h.d.ts → index-Dap2E02-.d.ts} +83 -32
- package/dist/{index-9LTuoSiw.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-BF2jSfWg.mjs → node-klLZLdDe.mjs} +20 -19
- package/dist/{regular-expression-D5pGVpCu.mjs → regular-expression-DUdhF3Ei.mjs} +113 -29
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/app-data/index.js +15 -9
- package/dist/{runtime-COEYYPyw.js → runtime/client/lazy.js} +2596 -2182
- package/dist/runtime/client/{index.d.ts → runtime.d.ts} +89 -47
- package/dist/runtime/client/{index.js → runtime.js} +2473 -2183
- package/dist/runtime/index.d.ts +46 -5
- package/dist/runtime/index.js +4956 -2
- package/dist/runtime/server/index.d.mts +85 -63
- package/dist/runtime/server/index.mjs +2462 -2193
- package/dist/runtime/server/runner.d.mts +44 -32
- package/dist/runtime/server/runner.mjs +335 -383
- 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 +197 -45
- package/dist/{validation-Byxie0Uk.mjs → validation-2QipI30K.mjs} +90 -77
- package/package.json +41 -28
- 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/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
|
@@ -107,6 +107,14 @@ interface ComponentInterface {
|
|
|
107
107
|
interface RafCallback {
|
|
108
108
|
(timeStamp: number): void;
|
|
109
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Minimal interface matched by signal objects (from @stencil/core/signals).
|
|
112
|
+
* Used in JSX attribute types.
|
|
113
|
+
*/
|
|
114
|
+
interface SignalRef<T = any> {
|
|
115
|
+
readonly value: T;
|
|
116
|
+
peek(): T;
|
|
117
|
+
}
|
|
110
118
|
/**
|
|
111
119
|
* Utilities for working with functional Stencil components. An object
|
|
112
120
|
* conforming to this interface is passed by the Stencil runtime as the third
|
|
@@ -148,7 +156,7 @@ interface FunctionalUtilities {
|
|
|
148
156
|
map: (children: VNode[], cb: (vnode: ChildNode$1, index: number, array: ChildNode$1[]) => ChildNode$1) => VNode[];
|
|
149
157
|
}
|
|
150
158
|
interface FunctionalComponent<T = {}> {
|
|
151
|
-
(props: T, children: VNode[], utils: FunctionalUtilities): VNode |
|
|
159
|
+
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | null;
|
|
152
160
|
}
|
|
153
161
|
/**
|
|
154
162
|
* A Child VDOM node
|
|
@@ -159,7 +167,7 @@ interface FunctionalComponent<T = {}> {
|
|
|
159
167
|
* {@link FunctionalUtilities}).
|
|
160
168
|
*/
|
|
161
169
|
interface ChildNode$1 {
|
|
162
|
-
vtag?: string | number | Function;
|
|
170
|
+
vtag?: string | number | Function | symbol | null;
|
|
163
171
|
vkey?: string | number;
|
|
164
172
|
vtext?: string;
|
|
165
173
|
vchildren?: VNode[];
|
|
@@ -171,13 +179,15 @@ interface ChildNode$1 {
|
|
|
171
179
|
*/
|
|
172
180
|
interface VNode {
|
|
173
181
|
$flags$: number;
|
|
174
|
-
$tag$: string | number | Function;
|
|
182
|
+
$tag$: string | number | Function | symbol | null;
|
|
175
183
|
$elm$: any;
|
|
176
184
|
$text$: string;
|
|
177
185
|
$children$: VNode[];
|
|
178
186
|
$attrs$?: any;
|
|
179
187
|
$name$?: string;
|
|
180
188
|
$key$?: string | number;
|
|
189
|
+
/** Signal reference for vdom bypass: signal text nodes store the signal here. */
|
|
190
|
+
$signal$?: any;
|
|
181
191
|
}
|
|
182
192
|
declare namespace JSXBase {
|
|
183
193
|
interface IntrinsicElements {
|
|
@@ -497,6 +507,7 @@ declare namespace JSXBase {
|
|
|
497
507
|
importance?: 'low' | 'auto' | 'high';
|
|
498
508
|
height?: number | string;
|
|
499
509
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
510
|
+
referrerPolicy?: ReferrerPolicy;
|
|
500
511
|
sizes?: string;
|
|
501
512
|
src?: string;
|
|
502
513
|
srcSet?: string;
|
|
@@ -812,7 +823,7 @@ declare namespace JSXBase {
|
|
|
812
823
|
autofocus?: boolean | string;
|
|
813
824
|
class?: string | {
|
|
814
825
|
[className: string]: boolean;
|
|
815
|
-
}
|
|
826
|
+
} | SignalRef<string>;
|
|
816
827
|
contentEditable?: boolean | string;
|
|
817
828
|
contenteditable?: boolean | string;
|
|
818
829
|
contextMenu?: string;
|
|
@@ -871,7 +882,7 @@ declare namespace JSXBase {
|
|
|
871
882
|
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
872
883
|
class?: string | {
|
|
873
884
|
[className: string]: boolean;
|
|
874
|
-
}
|
|
885
|
+
} | SignalRef<string>;
|
|
875
886
|
color?: string;
|
|
876
887
|
height?: number | string;
|
|
877
888
|
id?: string;
|
|
@@ -1272,10 +1283,13 @@ declare namespace JSXBase {
|
|
|
1272
1283
|
interface JSXAttributes<T = Element$2> {
|
|
1273
1284
|
key?: string | number;
|
|
1274
1285
|
ref?: (elm?: T) => void;
|
|
1286
|
+
children?: any;
|
|
1275
1287
|
}
|
|
1276
1288
|
interface CustomElementsDefineOptions {
|
|
1277
1289
|
exclude?: string[];
|
|
1278
1290
|
syncQueue?: boolean;
|
|
1291
|
+
/** Scoped custom element registry to define components in. Defaults to the global registry. */
|
|
1292
|
+
registry?: CustomElementRegistry;
|
|
1279
1293
|
jmp?: (c: Function) => any;
|
|
1280
1294
|
raf?: (c: FrameRequestCallback) => number;
|
|
1281
1295
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
@@ -1284,7 +1298,7 @@ interface CustomElementsDefineOptions {
|
|
|
1284
1298
|
}
|
|
1285
1299
|
//#endregion
|
|
1286
1300
|
//#region src/declarations/stencil-public-compiler.d.ts
|
|
1287
|
-
interface
|
|
1301
|
+
interface SsrDocumentOptions {
|
|
1288
1302
|
/**
|
|
1289
1303
|
* Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
|
|
1290
1304
|
* a random ID will be generated
|
|
@@ -1301,7 +1315,7 @@ interface HydrateDocumentOptions {
|
|
|
1301
1315
|
* JavaScript to read the structure of the HTML and rebuild each
|
|
1302
1316
|
* component. Defaults to `true`.
|
|
1303
1317
|
*/
|
|
1304
|
-
|
|
1318
|
+
clientSsrAnnotations?: boolean;
|
|
1305
1319
|
/**
|
|
1306
1320
|
* Constrain `setTimeout()` to 1ms, but still async. Also
|
|
1307
1321
|
* only allows `setInterval()` to fire once, also constrained to 1ms.
|
|
@@ -1400,10 +1414,14 @@ interface HydrateDocumentOptions {
|
|
|
1400
1414
|
default: 'declarative-shadow-dom' | 'scoped';
|
|
1401
1415
|
} | boolean;
|
|
1402
1416
|
}
|
|
1403
|
-
interface SerializeDocumentOptions extends
|
|
1417
|
+
interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
1404
1418
|
/**
|
|
1405
1419
|
* Runs after the `document` has been hydrated.
|
|
1406
1420
|
*/
|
|
1421
|
+
afterSsr?(document: any): any | Promise<any>;
|
|
1422
|
+
/**
|
|
1423
|
+
* @deprecated Use `afterSsr` instead.
|
|
1424
|
+
*/
|
|
1407
1425
|
afterHydrate?(document: any): any | Promise<any>;
|
|
1408
1426
|
/**
|
|
1409
1427
|
* Sets an approximate line width the HTML should attempt to stay within.
|
|
@@ -1416,6 +1434,10 @@ interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
|
|
1416
1434
|
/**
|
|
1417
1435
|
* Runs before the `document` has been hydrated.
|
|
1418
1436
|
*/
|
|
1437
|
+
beforeSsr?(document: any): any | Promise<any>;
|
|
1438
|
+
/**
|
|
1439
|
+
* @deprecated Use `beforeSsr` instead.
|
|
1440
|
+
*/
|
|
1419
1441
|
beforeHydrate?(document: any): any | Promise<any>;
|
|
1420
1442
|
/**
|
|
1421
1443
|
* Format the HTML in a nicely indented format.
|
|
@@ -1453,7 +1475,7 @@ interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
|
|
1453
1475
|
*/
|
|
1454
1476
|
modes?: ResolutionHandler[];
|
|
1455
1477
|
}
|
|
1456
|
-
interface
|
|
1478
|
+
interface SsrFactoryOptions extends SerializeDocumentOptions {
|
|
1457
1479
|
serializeToHtml: boolean;
|
|
1458
1480
|
destroyWindow: boolean;
|
|
1459
1481
|
destroyDocument: boolean;
|
|
@@ -1523,7 +1545,7 @@ interface HostElement extends HTMLElement {
|
|
|
1523
1545
|
disconnectedCallback?: () => void;
|
|
1524
1546
|
host?: Element;
|
|
1525
1547
|
forceUpdate?: () => void;
|
|
1526
|
-
|
|
1548
|
+
__s_ghr?: () => HostRef;
|
|
1527
1549
|
/**
|
|
1528
1550
|
* Unique stencil id for this element
|
|
1529
1551
|
*/
|
|
@@ -1671,61 +1693,61 @@ interface RenderNode extends HostElement {
|
|
|
1671
1693
|
['s-en']?: '' | /*shadow*/'c';
|
|
1672
1694
|
/**
|
|
1673
1695
|
* On a `scoped: true` component
|
|
1674
|
-
* with `
|
|
1696
|
+
* with `lightDomPatches` flag enabled,
|
|
1675
1697
|
* returns the internal `childNodes` of the component
|
|
1676
1698
|
*/
|
|
1677
1699
|
readonly __childNodes?: NodeListOf<ChildNode>;
|
|
1678
1700
|
/**
|
|
1679
1701
|
* On a `scoped: true` component
|
|
1680
|
-
* with `
|
|
1702
|
+
* with `lightDomPatches` flag enabled,
|
|
1681
1703
|
* returns the internal `children` of the component
|
|
1682
1704
|
*/
|
|
1683
1705
|
readonly __children?: HTMLCollectionOf<Element>;
|
|
1684
1706
|
/**
|
|
1685
1707
|
* On a `scoped: true` component
|
|
1686
|
-
* with `
|
|
1708
|
+
* with `lightDomPatches` flag enabled,
|
|
1687
1709
|
* returns the internal `firstChild` of the component
|
|
1688
1710
|
*/
|
|
1689
1711
|
readonly __firstChild?: ChildNode;
|
|
1690
1712
|
/**
|
|
1691
1713
|
* On a `scoped: true` component
|
|
1692
|
-
* with `
|
|
1714
|
+
* with `lightDomPatches` flag enabled,
|
|
1693
1715
|
* returns the internal `lastChild` of the component
|
|
1694
1716
|
*/
|
|
1695
1717
|
readonly __lastChild?: ChildNode;
|
|
1696
1718
|
/**
|
|
1697
1719
|
* On a `scoped: true` component
|
|
1698
|
-
* with `
|
|
1720
|
+
* with `lightDomPatches` flag enabled,
|
|
1699
1721
|
* returns the internal `textContent` of the component
|
|
1700
1722
|
*/
|
|
1701
1723
|
__textContent?: string;
|
|
1702
1724
|
/**
|
|
1703
1725
|
* On a `scoped: true` component
|
|
1704
|
-
* with `
|
|
1726
|
+
* with `lightDomPatches` flag enabled,
|
|
1705
1727
|
* gives access to the original `append` method
|
|
1706
1728
|
*/
|
|
1707
1729
|
__append?: (...nodes: (Node | string)[]) => void;
|
|
1708
1730
|
/**
|
|
1709
1731
|
* On a `scoped: true` component
|
|
1710
|
-
* with `
|
|
1732
|
+
* with `lightDomPatches` flag enabled,
|
|
1711
1733
|
* gives access to the original `prepend` method
|
|
1712
1734
|
*/
|
|
1713
1735
|
__prepend?: (...nodes: (Node | string)[]) => void;
|
|
1714
1736
|
/**
|
|
1715
1737
|
* On a `scoped: true` component
|
|
1716
|
-
* with `
|
|
1738
|
+
* with `lightDomPatches` flag enabled,
|
|
1717
1739
|
* gives access to the original `appendChild` method
|
|
1718
1740
|
*/
|
|
1719
1741
|
__appendChild?: <T extends Node>(newChild: T) => T;
|
|
1720
1742
|
/**
|
|
1721
1743
|
* On a `scoped: true` component
|
|
1722
|
-
* with `
|
|
1744
|
+
* with `lightDomPatches` flag enabled,
|
|
1723
1745
|
* gives access to the original `insertBefore` method
|
|
1724
1746
|
*/
|
|
1725
1747
|
__insertBefore?: <T extends Node>(node: T, child: Node | null) => T;
|
|
1726
1748
|
/**
|
|
1727
1749
|
* On a `scoped: true` component
|
|
1728
|
-
* with `
|
|
1750
|
+
* with `lightDomPatches` flag enabled,
|
|
1729
1751
|
* gives access to the original `removeChild` method
|
|
1730
1752
|
*/
|
|
1731
1753
|
__removeChild?: <T extends Node>(child: T) => T;
|
|
@@ -1763,31 +1785,31 @@ interface PatchedSlotNode extends Node {
|
|
|
1763
1785
|
['s-sr']?: boolean;
|
|
1764
1786
|
/**
|
|
1765
1787
|
* On a `scoped: true` component
|
|
1766
|
-
* with `
|
|
1788
|
+
* with `lightDomPatches` flag enabled,
|
|
1767
1789
|
* returns the actual `parentNode` of the component
|
|
1768
1790
|
*/
|
|
1769
1791
|
__parentNode?: RenderNode;
|
|
1770
1792
|
/**
|
|
1771
1793
|
* On a `scoped: true` component
|
|
1772
|
-
* with `
|
|
1794
|
+
* with `lightDomPatches` flag enabled,
|
|
1773
1795
|
* returns the actual `nextSibling` of the component
|
|
1774
1796
|
*/
|
|
1775
1797
|
__nextSibling?: RenderNode;
|
|
1776
1798
|
/**
|
|
1777
1799
|
* On a `scoped: true` component
|
|
1778
|
-
* with `
|
|
1800
|
+
* with `lightDomPatches` flag enabled,
|
|
1779
1801
|
* returns the actual `previousSibling` of the component
|
|
1780
1802
|
*/
|
|
1781
1803
|
__previousSibling?: RenderNode;
|
|
1782
1804
|
/**
|
|
1783
1805
|
* On a `scoped: true` component
|
|
1784
|
-
* with `
|
|
1806
|
+
* with `lightDomPatches` flag enabled,
|
|
1785
1807
|
* returns the actual `nextElementSibling` of the component
|
|
1786
1808
|
*/
|
|
1787
1809
|
__nextElementSibling?: RenderNode;
|
|
1788
1810
|
/**
|
|
1789
1811
|
* On a `scoped: true` component
|
|
1790
|
-
* with `
|
|
1812
|
+
* with `lightDomPatches` flag enabled,
|
|
1791
1813
|
* returns the actual `nextElementSibling` of the component
|
|
1792
1814
|
*/
|
|
1793
1815
|
__previousElementSibling?: RenderNode;
|
|
@@ -1888,7 +1910,7 @@ type ComponentRuntimeReflectingAttr = [string, string | undefined];
|
|
|
1888
1910
|
* associated {@link HostRef} instance.
|
|
1889
1911
|
*/
|
|
1890
1912
|
type RuntimeRef = HostElement | {
|
|
1891
|
-
|
|
1913
|
+
__s_ghr?: () => HostRef;
|
|
1892
1914
|
};
|
|
1893
1915
|
/**
|
|
1894
1916
|
* Interface used to track an Element, it's virtual Node (`VNode`), and other data
|
|
@@ -1899,6 +1921,9 @@ interface HostRef {
|
|
|
1899
1921
|
$cmpMeta$: ComponentRuntimeMeta;
|
|
1900
1922
|
$hostElement$: HostElement;
|
|
1901
1923
|
$instanceValues$?: Map<string, any>;
|
|
1924
|
+
$signalValues$?: Map<string, import('@preact/signals-core').Signal<any>>;
|
|
1925
|
+
/** Dispose function that tears down all signal effects for this component. */
|
|
1926
|
+
$signalCleanup$?: () => void;
|
|
1902
1927
|
$serializerValues$?: Map<string, string>;
|
|
1903
1928
|
$lazyInstance$?: ComponentInterface;
|
|
1904
1929
|
/**
|
|
@@ -2109,6 +2134,7 @@ declare const isMemberInElement: (elm: any, memberName: string) => boolean;
|
|
|
2109
2134
|
declare const cmpModules: Map<string, {
|
|
2110
2135
|
[exportName: string]: ComponentConstructor;
|
|
2111
2136
|
}>;
|
|
2137
|
+
declare const setLazyLoadBasePath: (url: string) => void;
|
|
2112
2138
|
declare const loadModule: (cmpMeta: ComponentRuntimeMeta, hostRef: HostRef, hmrVersionId?: string) => Promise<ComponentConstructor | undefined> | ComponentConstructor | undefined;
|
|
2113
2139
|
//#endregion
|
|
2114
2140
|
//#region src/client/client-log.d.ts
|
|
@@ -2122,7 +2148,7 @@ declare const setErrorHandler: (handler: ErrorHandler) => ErrorHandler;
|
|
|
2122
2148
|
//#region src/client/client-style.d.ts
|
|
2123
2149
|
declare const styles: StyleMap;
|
|
2124
2150
|
declare const modeResolutionChain: ResolutionHandler[];
|
|
2125
|
-
declare const
|
|
2151
|
+
declare const setScopedSsr: (_opts: SsrFactoryOptions) => void;
|
|
2126
2152
|
declare const needsScopedSSR: () => boolean;
|
|
2127
2153
|
//#endregion
|
|
2128
2154
|
//#region src/client/client-task-queue.d.ts
|
|
@@ -2144,7 +2170,6 @@ declare const setPlatformHelpers: (helpers: {
|
|
|
2144
2170
|
rel?: (el: any, eventName: string, listener: any, options: any) => void;
|
|
2145
2171
|
ce?: (eventName: string, opts?: any) => any;
|
|
2146
2172
|
}) => void;
|
|
2147
|
-
declare const supportsShadow: boolean;
|
|
2148
2173
|
declare const supportsListenerOptions: boolean;
|
|
2149
2174
|
declare const promiseResolve: (v?: any) => Promise<any>;
|
|
2150
2175
|
declare const supportsConstructableStylesheets: boolean;
|
|
@@ -2154,12 +2179,16 @@ declare const supportsMutableAdoptedStyleSheets: boolean;
|
|
|
2154
2179
|
declare const getAssetPath: (path: string) => string;
|
|
2155
2180
|
declare const setAssetPath: (path: string) => string;
|
|
2156
2181
|
//#endregion
|
|
2157
|
-
//#region src/runtime/bootstrap-
|
|
2182
|
+
//#region src/runtime/bootstrap-standalone.d.ts
|
|
2158
2183
|
declare const defineCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => void;
|
|
2159
2184
|
declare const proxyCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => any;
|
|
2160
2185
|
declare const forceModeUpdate: (elm: RenderNode) => void;
|
|
2161
2186
|
//#endregion
|
|
2162
|
-
//#region src/runtime/
|
|
2187
|
+
//#region src/runtime/registry.d.ts
|
|
2188
|
+
declare const setRegistry: (registry: CustomElementRegistry) => void;
|
|
2189
|
+
declare const getRegistry: () => CustomElementRegistry;
|
|
2190
|
+
//#endregion
|
|
2191
|
+
//#region src/runtime/bootstrap-loader.d.ts
|
|
2163
2192
|
declare const bootstrapLazy: (lazyBundles: LazyBundlesRuntimeData, options?: CustomElementsDefineOptions) => void;
|
|
2164
2193
|
//#endregion
|
|
2165
2194
|
//#region src/runtime/connected-callback.d.ts
|
|
@@ -2211,6 +2240,30 @@ declare const getMode: (ref: RuntimeRef) => string;
|
|
|
2211
2240
|
*/
|
|
2212
2241
|
declare const setNonce: (nonce: string) => string;
|
|
2213
2242
|
//#endregion
|
|
2243
|
+
//#region src/runtime/normalize-watchers.d.ts
|
|
2244
|
+
/**
|
|
2245
|
+
* Normalizes watcher metadata to the current `{ [methodName]: flags }[]` format.
|
|
2246
|
+
*
|
|
2247
|
+
* Prior to Stencil 4.39.x (PR #6484), the `@Watch()` compiler emitted watcher
|
|
2248
|
+
* handlers as a plain string array: `{ "min": ["minChanged"] }`. The new format
|
|
2249
|
+
* wraps each entry in an object that carries option flags (e.g. `immediate`):
|
|
2250
|
+
* `{ "min": [{ "minChanged": 0 }] }`.
|
|
2251
|
+
*
|
|
2252
|
+
* When a library (e.g. Ionic Framework) was compiled with an older Stencil compiler
|
|
2253
|
+
* but consumed by an app using a newer Stencil runtime, the runtime's
|
|
2254
|
+
* `Object.entries(watcher)` call receives a string and misinterprets its character
|
|
2255
|
+
* indices as method names, causing:
|
|
2256
|
+
* `TypeError: instance[watchMethodName] is not a function`
|
|
2257
|
+
*
|
|
2258
|
+
* This helper should be used at `$watchers$` assignment sites that need to
|
|
2259
|
+
* accept both legacy and current compiler metadata so downstream code on those
|
|
2260
|
+
* paths can safely assume the new object format.
|
|
2261
|
+
*
|
|
2262
|
+
* @param raw The raw watcher map from compiled metadata (new or legacy format).
|
|
2263
|
+
* @returns A normalized watcher map in the `{ [methodName]: flags }[]` format, or `undefined` if `raw` is `undefined` or empty.
|
|
2264
|
+
*/
|
|
2265
|
+
declare const normalizeWatchers: (raw: ComponentConstructorChangeHandlers | undefined) => ComponentConstructorChangeHandlers | undefined;
|
|
2266
|
+
//#endregion
|
|
2214
2267
|
//#region src/runtime/parse-property-value.d.ts
|
|
2215
2268
|
/**
|
|
2216
2269
|
* Parse a new property value for a given property type.
|
|
@@ -2320,26 +2373,15 @@ declare const h: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VN
|
|
|
2320
2373
|
declare const Host: {};
|
|
2321
2374
|
//#endregion
|
|
2322
2375
|
//#region src/runtime/vdom/jsx-runtime.d.ts
|
|
2376
|
+
declare function jsx(type: any, props: any, key?: string): VNode;
|
|
2323
2377
|
/**
|
|
2324
|
-
*
|
|
2325
|
-
* Called by TypeScript's jsx transform for elements without static children.
|
|
2326
|
-
*
|
|
2327
|
-
* @param type - The element type (string tag name or functional component)
|
|
2328
|
-
* @param props - The element props (includes children)
|
|
2329
|
-
* @param key - Optional key for the element
|
|
2330
|
-
* @returns A virtual DOM node
|
|
2378
|
+
* @alias
|
|
2331
2379
|
*/
|
|
2332
|
-
declare
|
|
2380
|
+
declare const jsxs: typeof jsx;
|
|
2333
2381
|
/**
|
|
2334
|
-
*
|
|
2335
|
-
* Called by TypeScript's jsx transform as an optimization when children are static.
|
|
2336
|
-
*
|
|
2337
|
-
* @param type - The element type (string tag name or functional component)
|
|
2338
|
-
* @param props - The element props (includes children)
|
|
2339
|
-
* @param key - Optional key for the element
|
|
2340
|
-
* @returns A virtual DOM node
|
|
2382
|
+
* @alias
|
|
2341
2383
|
*/
|
|
2342
|
-
declare
|
|
2384
|
+
declare const jsxDEV: typeof jsx;
|
|
2343
2385
|
//#endregion
|
|
2344
2386
|
//#region src/runtime/vdom/vdom-annotations.d.ts
|
|
2345
2387
|
/**
|
|
@@ -2369,4 +2411,4 @@ declare const insertVdomAnnotations: (doc: Document, staticComponents: string[])
|
|
|
2369
2411
|
*/
|
|
2370
2412
|
declare const renderVdom: (hostRef: HostRef, renderFnResults: VNode | VNode[], isInitialLoad?: boolean) => void;
|
|
2371
2413
|
//#endregion
|
|
2372
|
-
export { AttachInternals, AttrDeserialize, BUILD, Build, Component, Element$1 as Element, Env, Event, Fragment, H, H as HTMLElement, type HTMLStencilElement, HYDRATED_STYLE_ID, Host, type JSXBase, Listen, Method, Mixin, NAMESPACE, Prop, PropSerialize, STENCIL_DEV_MODE, State, Watch, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, getShadowRoot, getValue, h, insertVdomAnnotations, isMemberInElement, jsx, jsxs, loadModule, modeResolutionChain, needsScopedSSR, nextTick, parsePropertyValue, plt, postUpdateComponent, promiseResolve, proxyComponent, proxyCustomElement, readTask, registerHost, registerInstance, render, renderVdom, resolveVar, setAssetPath, setErrorHandler, setMode, setNonce, setPlatformHelpers, setPlatformOptions,
|
|
2414
|
+
export { AttachInternals, AttrDeserialize, BUILD, Build, Component, Element$1 as Element, Env, Event, Fragment, H, H as HTMLElement, type HTMLStencilElement, HYDRATED_STYLE_ID, Host, type JSXBase, Listen, Method, Mixin, NAMESPACE, Prop, PropSerialize, STENCIL_DEV_MODE, State, Watch, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRegistry, getRenderingRef, getShadowRoot, getValue, h, insertVdomAnnotations, isMemberInElement, jsx, jsxDEV, jsxs, loadModule, modeResolutionChain, needsScopedSSR, nextTick, normalizeWatchers, parsePropertyValue, plt, postUpdateComponent, promiseResolve, proxyComponent, proxyCustomElement, readTask, registerHost, registerInstance, render, renderVdom, resolveVar, setAssetPath, setErrorHandler, setLazyLoadBasePath, setMode, setNonce, setPlatformHelpers, setPlatformOptions, setRegistry, setScopedSsr, setTagTransformer, setValue, styles, supportsConstructableStylesheets, supportsListenerOptions, supportsMutableAdoptedStyleSheets, transformTag, win, writeTask };
|