@stencil/core 5.0.0-alpha.8 → 5.0.0-beta.0
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 +5 -2
- package/dist/client-BRu0GtRn.mjs +2368 -0
- package/dist/compiler/index.d.mts +167 -3
- package/dist/compiler/index.mjs +3 -3
- package/dist/compiler/utils/index.d.mts +272 -2
- package/dist/compiler/utils/index.mjs +4 -3
- package/dist/{compiler-B3pUYg_P.mjs → compiler-NrvbUOX1.mjs} +2904 -1269
- package/dist/declarations/stencil-ext-modules.d.ts +5 -5
- package/dist/declarations/stencil-public-compiler.d.ts +208 -62
- package/dist/declarations/stencil-public-docs.d.ts +9 -0
- package/dist/declarations/stencil-public-runtime.d.ts +91 -6
- package/dist/fragment-Di1hWOC8.mjs +4 -0
- package/dist/{regular-expression-CFVJOTUh.mjs → helpers-Cpp3qc3u.mjs} +31 -15
- package/dist/index-BOrz3rbJ.d.mts +100 -0
- package/dist/{index-BuveMLxy.d.ts → index-DnISpqrd.d.ts} +150 -10
- package/dist/{index-CVhWFUM0.d.mts → index-RrQfiPWK.d.mts} +490 -841
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +91 -2
- package/dist/jsx-runtime.mjs +2 -1
- package/dist/{node-10UamZmn.mjs → node-75gQKkFz.mjs} +60 -58
- package/dist/{chunk-z9aeyW2b.mjs → rolldown-runtime-BhDjJH2R.mjs} +1 -1
- package/dist/runtime/client/lazy.js +483 -347
- package/dist/runtime/client/runtime.d.ts +150 -39
- package/dist/runtime/client/runtime.js +483 -347
- package/dist/runtime/index.d.ts +6 -32
- package/dist/runtime/index.js +482 -345
- package/dist/runtime/server/index.d.mts +81 -9
- package/dist/runtime/server/index.mjs +419 -193
- package/dist/runtime/server/runner.d.mts +3 -0
- package/dist/runtime/server/runner.mjs +321 -338
- package/dist/signals/index.d.ts +2 -0
- package/dist/signals/index.js +5 -2
- 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 +4716 -105
- package/dist/testing/index.mjs +7744 -791
- package/dist/util-IKfWWLJo.mjs +724 -0
- package/dist/validation-DAdGTrys.mjs +791 -0
- package/package.json +33 -33
- package/dist/client-Dd-NB5Ei.mjs +0 -4833
- package/dist/index-ch-cf-bZ.d.mts +0 -205
- package/dist/runtime/app-data/index.d.ts +0 -2
- package/dist/validation-ByxKj8bC.mjs +0 -1458
- /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
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { C as ReactiveControllerHostInterface, E as VNode, S as MixedInCtor, T as TagTransformer, _ as ComponentInterface, a as ComponentConstructor, b as HTMLStencilElement, c as ComponentRuntimeMeta, d as HostRef, f as LazyBundlesRuntimeData, g as RuntimeRef, h as RenderNode, i as ChildType, l as ComponentRuntimeMetaCompact, m as PropsType, o as ComponentConstructorChangeHandlers, p as PlatformRuntime, s as ComponentRuntimeHostListener, u as HostElement, v as CustomElementsDefineOptions, w as ResolutionHandler, x as JSXBase, y as FunctionalComponent } from "../index-DnISpqrd.js";
|
|
3
2
|
//#region src/runtime/asset-path.d.ts
|
|
4
3
|
declare const getAssetPath: (path: string) => string;
|
|
5
4
|
declare const setAssetPath: (path: string) => string;
|
|
@@ -143,6 +142,9 @@ declare const setPlatformOptions: (opts: SetPlatformOptions) => PlatformRuntime
|
|
|
143
142
|
*/
|
|
144
143
|
declare const proxyComponent: (Cstr: ComponentConstructor, cmpMeta: ComponentRuntimeMeta, flags: number) => ComponentConstructor;
|
|
145
144
|
//#endregion
|
|
145
|
+
//#region src/runtime/reactive-controller.d.ts
|
|
146
|
+
declare const ReactiveControllerHost: <B extends MixedInCtor<ComponentInterface & HTMLElement>>(Base: B) => B & MixedInCtor<ReactiveControllerHostInterface>;
|
|
147
|
+
//#endregion
|
|
146
148
|
//#region src/runtime/render.d.ts
|
|
147
149
|
/**
|
|
148
150
|
* Method to render a virtual DOM tree to a container element.
|
|
@@ -194,7 +196,7 @@ declare const postUpdateComponent: (hostRef: HostRef) => void;
|
|
|
194
196
|
declare const forceUpdate: (ref: any) => boolean;
|
|
195
197
|
//#endregion
|
|
196
198
|
//#region src/runtime/vdom/h.d.ts
|
|
197
|
-
declare const h: (nodeName: any, vnodeData:
|
|
199
|
+
declare const h: (nodeName: any, vnodeData: PropsType, ...children: ChildType[]) => VNode;
|
|
198
200
|
declare const Host: {};
|
|
199
201
|
//#endregion
|
|
200
202
|
//#region src/runtime/vdom/jsx-runtime.d.ts
|
|
@@ -208,32 +210,4 @@ declare const jsxs: typeof jsx;
|
|
|
208
210
|
*/
|
|
209
211
|
declare const jsxDEV: typeof jsx;
|
|
210
212
|
//#endregion
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Updates the DOM generated on the server with annotations such as node attributes and
|
|
214
|
-
* comment nodes to facilitate future client-side hydration. These annotations are used for things
|
|
215
|
-
* like moving elements back to their original hosts if using Shadow DOM on the client, and for quickly
|
|
216
|
-
* reconstructing the vNode representations of the DOM.
|
|
217
|
-
*
|
|
218
|
-
* @param doc The DOM generated by the server.
|
|
219
|
-
* @param staticComponents Any components that should be considered static and do not need client-side hydration.
|
|
220
|
-
*/
|
|
221
|
-
declare const insertVdomAnnotations: (doc: Document, staticComponents: string[]) => void;
|
|
222
|
-
//#endregion
|
|
223
|
-
//#region src/runtime/vdom/vdom-render.d.ts
|
|
224
|
-
/**
|
|
225
|
-
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
226
|
-
*
|
|
227
|
-
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
228
|
-
* function will handle creating a virtual DOM tree with a single root, patching
|
|
229
|
-
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
230
|
-
* relocation, and reflecting attributes.
|
|
231
|
-
*
|
|
232
|
-
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
233
|
-
* the DOM node into which it should be rendered.
|
|
234
|
-
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
235
|
-
* @param isInitialLoad whether or not this is the first call after page load
|
|
236
|
-
*/
|
|
237
|
-
declare const renderVdom: (hostRef: HostRef, renderFnResults: VNode | VNode[], isInitialLoad?: boolean) => void;
|
|
238
|
-
//#endregion
|
|
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 };
|
|
213
|
+
export { Fragment, type HTMLStencilElement, HYDRATED_STYLE_ID, Host, type JSXBase, Mixin, ReactiveControllerHost, addHostEventListeners, bootstrapLazy, connectedCallback, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getMode, getRegistry, getRenderingRef, getShadowRoot, getValue, h, jsx, jsxDEV, jsxs, normalizeWatchers, parsePropertyValue, postUpdateComponent, proxyComponent, proxyCustomElement, render, setAssetPath, setMode, setNonce, setPlatformOptions, setRegistry, setTagTransformer, setValue, transformTag };
|