@stencil/core 5.0.0-alpha.1 → 5.0.0-alpha.11
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/app-data/index.d.ts +2 -0
- package/dist/{runtime/app-data → app-data}/index.js +17 -12
- package/dist/{client-B1nuvCd2.mjs → client-aTQ7xHxx.mjs} +2432 -2278
- package/dist/compiler/index.d.mts +6 -6
- 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-LX4_RKKd.mjs → compiler-DCN7Np2A.mjs} +14854 -13500
- package/dist/declarations/stencil-public-compiler.d.ts +4374 -2
- package/dist/declarations/stencil-public-compiler.js +2 -4
- package/dist/declarations/stencil-public-docs.d.ts +504 -1
- package/dist/declarations/stencil-public-runtime.d.ts +1982 -2
- package/dist/{index-fIuYTL9f.d.mts → index-BvkyxSY6.d.mts} +29 -2
- package/dist/{index-D-LlB2nw.d.mts → index-vY35H18z.d.mts} +795 -1188
- package/dist/{index-BONzXKJt.d.ts → index-xAkMgLX_.d.ts} +88 -39
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/jsx-runtime.d.mts +18 -0
- package/dist/jsx-runtime.mjs +2 -0
- package/dist/{node-SxQIOCZE.mjs → node--akYC-sG.mjs} +20 -30
- package/dist/regular-expression-CFVJOTUh.mjs +508 -0
- package/dist/{runtime-CF9DJtSu.js → runtime/client/lazy.js} +2675 -2493
- package/dist/runtime/client/{index.d.ts → runtime.d.ts} +106 -78
- package/dist/runtime/client/{index.js → runtime.js} +2545 -2487
- package/dist/runtime/index.d.ts +58 -29
- package/dist/runtime/index.js +4795 -2
- package/dist/runtime/server/index.d.mts +103 -70
- package/dist/runtime/server/index.mjs +2545 -2350
- package/dist/runtime/server/runner.d.mts +44 -48
- package/dist/runtime/server/runner.mjs +347 -751
- 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 +367 -59
- package/dist/{validation-CaCgjw-f.mjs → validation-ByxKj8bC.mjs} +116 -99
- package/package.json +47 -38
- package/dist/index-CHjZtib0.d.ts +0 -30
- package/dist/jsx-runtime-DBzBJLKk.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/serialize-BkYHk7Mi.mjs +0 -766
- package/dist/stencil-public-compiler-C_X1iolo.d.ts +0 -4455
- package/dist/stencil-public-runtime-DlV8o7-z.d.ts +0 -1845
- /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/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Et as HostElement, cn as RuntimeRef, da as FunctionalComponent, fa as RafCallback, ga as VNode, ha as UserBuildConditionals, ma as TagTransformer, p as ChildType, pa as ResolutionHandler, ua as ErrorHandler } from "./index-vY35H18z.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/client/client-build.d.ts
|
|
4
4
|
declare const Build: UserBuildConditionals;
|
|
@@ -116,6 +116,18 @@ declare const setAssetPath: (path: string) => string;
|
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/runtime/element.d.ts
|
|
118
118
|
declare const getElement: (ref: any) => HostElement;
|
|
119
|
+
/**
|
|
120
|
+
* Get the shadow root for a Stencil component's host element.
|
|
121
|
+
* This works for both open and closed shadow DOM modes.
|
|
122
|
+
*
|
|
123
|
+
* For closed shadow DOM, `element.shadowRoot` returns `null` by design,
|
|
124
|
+
* but Stencil stores the reference internally so components can still
|
|
125
|
+
* access their own shadow root.
|
|
126
|
+
*
|
|
127
|
+
* @param element The host element (from @Element() decorator)
|
|
128
|
+
* @returns The shadow root, or null if no shadow root exists
|
|
129
|
+
*/
|
|
130
|
+
declare const getShadowRoot: (element: HTMLElement) => ShadowRoot | null;
|
|
119
131
|
//#endregion
|
|
120
132
|
//#region src/runtime/event-emitter.d.ts
|
|
121
133
|
declare const createEvent: (ref: RuntimeRef, name: string, flags: number) => {
|
|
@@ -137,6 +149,10 @@ declare const getMode: (ref: RuntimeRef) => string;
|
|
|
137
149
|
/**
|
|
138
150
|
* Method to render a virtual DOM tree to a container element.
|
|
139
151
|
*
|
|
152
|
+
* Supports efficient re-renders: calling `render()` again on the same container
|
|
153
|
+
* will diff the new VNode tree against the previous one and only update what changed,
|
|
154
|
+
* preserving existing DOM elements and their state.
|
|
155
|
+
*
|
|
140
156
|
* @example
|
|
141
157
|
* ```tsx
|
|
142
158
|
* import { render } from '@stencil/core';
|
|
@@ -175,4 +191,15 @@ declare const forceUpdate: (ref: any) => boolean;
|
|
|
175
191
|
declare const h: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VNode;
|
|
176
192
|
declare const Host: {};
|
|
177
193
|
//#endregion
|
|
178
|
-
|
|
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 };
|