@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
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { n as jsxs, r as Fragment, t as jsx } from "../jsx-runtime-DlDkTqps.js";
|
|
1
|
+
import { S as VNode, _ as FunctionalComponent, a as ComponentConstructor, b as ResolutionHandler, c as ComponentRuntimeMeta, d as HostRef, f as LazyBundlesRuntimeData, g as CustomElementsDefineOptions, h as RuntimeRef, i as ChildType, l as ComponentRuntimeMetaCompact, m as RenderNode, o as ComponentConstructorChangeHandlers, p as PlatformRuntime, s as ComponentRuntimeHostListener, u as HostElement, v as HTMLStencilElement, x as TagTransformer, y as JSXBase } from "../index-Dap2E02-.js";
|
|
3
2
|
|
|
4
3
|
//#region src/runtime/asset-path.d.ts
|
|
5
4
|
declare const getAssetPath: (path: string) => string;
|
|
6
5
|
declare const setAssetPath: (path: string) => string;
|
|
7
6
|
//#endregion
|
|
8
|
-
//#region src/runtime/bootstrap-
|
|
7
|
+
//#region src/runtime/bootstrap-standalone.d.ts
|
|
9
8
|
declare const defineCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => void;
|
|
10
9
|
declare const proxyCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => any;
|
|
11
10
|
declare const forceModeUpdate: (elm: RenderNode) => void;
|
|
12
11
|
//#endregion
|
|
13
|
-
//#region src/runtime/
|
|
12
|
+
//#region src/runtime/registry.d.ts
|
|
13
|
+
declare const setRegistry: (registry: CustomElementRegistry) => void;
|
|
14
|
+
declare const getRegistry: () => CustomElementRegistry;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/runtime/bootstrap-loader.d.ts
|
|
14
17
|
declare const bootstrapLazy: (lazyBundles: LazyBundlesRuntimeData, options?: CustomElementsDefineOptions) => void;
|
|
15
18
|
//#endregion
|
|
16
19
|
//#region src/runtime/connected-callback.d.ts
|
|
@@ -39,6 +42,9 @@ declare const createEvent: (ref: RuntimeRef, name: string, flags: number) => {
|
|
|
39
42
|
emit: (detail: any) => CustomEvent<any>;
|
|
40
43
|
};
|
|
41
44
|
//#endregion
|
|
45
|
+
//#region src/runtime/fragment.d.ts
|
|
46
|
+
declare const Fragment: FunctionalComponent;
|
|
47
|
+
//#endregion
|
|
42
48
|
//#region src/runtime/host-listener.d.ts
|
|
43
49
|
declare const addHostEventListeners: (elm: HostElement, hostRef: HostRef, listeners?: ComponentRuntimeHostListener[]) => void;
|
|
44
50
|
//#endregion
|
|
@@ -59,6 +65,30 @@ declare const getMode: (ref: RuntimeRef) => string;
|
|
|
59
65
|
*/
|
|
60
66
|
declare const setNonce: (nonce: string) => string;
|
|
61
67
|
//#endregion
|
|
68
|
+
//#region src/runtime/normalize-watchers.d.ts
|
|
69
|
+
/**
|
|
70
|
+
* Normalizes watcher metadata to the current `{ [methodName]: flags }[]` format.
|
|
71
|
+
*
|
|
72
|
+
* Prior to Stencil 4.39.x (PR #6484), the `@Watch()` compiler emitted watcher
|
|
73
|
+
* handlers as a plain string array: `{ "min": ["minChanged"] }`. The new format
|
|
74
|
+
* wraps each entry in an object that carries option flags (e.g. `immediate`):
|
|
75
|
+
* `{ "min": [{ "minChanged": 0 }] }`.
|
|
76
|
+
*
|
|
77
|
+
* When a library (e.g. Ionic Framework) was compiled with an older Stencil compiler
|
|
78
|
+
* but consumed by an app using a newer Stencil runtime, the runtime's
|
|
79
|
+
* `Object.entries(watcher)` call receives a string and misinterprets its character
|
|
80
|
+
* indices as method names, causing:
|
|
81
|
+
* `TypeError: instance[watchMethodName] is not a function`
|
|
82
|
+
*
|
|
83
|
+
* This helper should be used at `$watchers$` assignment sites that need to
|
|
84
|
+
* accept both legacy and current compiler metadata so downstream code on those
|
|
85
|
+
* paths can safely assume the new object format.
|
|
86
|
+
*
|
|
87
|
+
* @param raw The raw watcher map from compiled metadata (new or legacy format).
|
|
88
|
+
* @returns A normalized watcher map in the `{ [methodName]: flags }[]` format, or `undefined` if `raw` is `undefined` or empty.
|
|
89
|
+
*/
|
|
90
|
+
declare const normalizeWatchers: (raw: ComponentConstructorChangeHandlers | undefined) => ComponentConstructorChangeHandlers | undefined;
|
|
91
|
+
//#endregion
|
|
62
92
|
//#region src/runtime/parse-property-value.d.ts
|
|
63
93
|
/**
|
|
64
94
|
* Parse a new property value for a given property type.
|
|
@@ -167,6 +197,17 @@ declare const forceUpdate: (ref: any) => boolean;
|
|
|
167
197
|
declare const h: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VNode;
|
|
168
198
|
declare const Host: {};
|
|
169
199
|
//#endregion
|
|
200
|
+
//#region src/runtime/vdom/jsx-runtime.d.ts
|
|
201
|
+
declare function jsx(type: any, props: any, key?: string): VNode;
|
|
202
|
+
/**
|
|
203
|
+
* @alias
|
|
204
|
+
*/
|
|
205
|
+
declare const jsxs: typeof jsx;
|
|
206
|
+
/**
|
|
207
|
+
* @alias
|
|
208
|
+
*/
|
|
209
|
+
declare const jsxDEV: typeof jsx;
|
|
210
|
+
//#endregion
|
|
170
211
|
//#region src/runtime/vdom/vdom-annotations.d.ts
|
|
171
212
|
/**
|
|
172
213
|
* Updates the DOM generated on the server with annotations such as node attributes and
|
|
@@ -195,4 +236,4 @@ declare const insertVdomAnnotations: (doc: Document, staticComponents: string[])
|
|
|
195
236
|
*/
|
|
196
237
|
declare const renderVdom: (hostRef: HostRef, renderFnResults: VNode | VNode[], isInitialLoad?: boolean) => void;
|
|
197
238
|
//#endregion
|
|
198
|
-
export { Fragment, type HTMLStencilElement, HYDRATED_STYLE_ID, Host, type JSXBase, Mixin, addHostEventListeners, bootstrapLazy, connectedCallback, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getShadowRoot, getValue, h, insertVdomAnnotations, jsx, jsxs, parsePropertyValue, postUpdateComponent, proxyComponent, proxyCustomElement, render, renderVdom, setAssetPath, setMode, setNonce, setPlatformOptions, setTagTransformer, setValue, transformTag };
|
|
239
|
+
export { Fragment, type HTMLStencilElement, HYDRATED_STYLE_ID, Host, type JSXBase, Mixin, addHostEventListeners, bootstrapLazy, connectedCallback, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getMode, getRegistry, getRenderingRef, getShadowRoot, getValue, h, insertVdomAnnotations, jsx, jsxDEV, jsxs, normalizeWatchers, parsePropertyValue, postUpdateComponent, proxyComponent, proxyCustomElement, render, renderVdom, setAssetPath, setMode, setNonce, setPlatformOptions, setRegistry, setTagTransformer, setValue, transformTag };
|