@stencil/core 5.0.0-alpha.2 → 5.0.0-alpha.4
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-DucyoZT4.mjs → client-Dti6fFpE.mjs} +108 -69
- package/dist/compiler/index.d.mts +3 -3
- 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-DyK1_szo.mjs → compiler-BYRrEeD-.mjs} +2065 -2106
- package/dist/declarations/stencil-public-compiler.d.ts +4085 -2
- package/dist/declarations/stencil-public-compiler.js +0 -1
- package/dist/declarations/stencil-public-docs.d.ts +494 -1
- package/dist/declarations/stencil-public-runtime.d.ts +1943 -2
- package/dist/{index-fIuYTL9f.d.mts → index-9LTuoSiw.d.mts} +18 -2
- package/dist/{index-D-LlB2nw.d.mts → index-BwTaN1Nq.d.mts} +199 -809
- package/dist/{index-BONzXKJt.d.ts → index-CyrGY82h.d.ts} +5 -7
- package/dist/{index-CHjZtib0.d.ts → index-hS-KBdAP.d.ts} +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +2 -2
- package/dist/{jsx-runtime-DBzBJLKk.d.ts → jsx-runtime-DlDkTqps.d.ts} +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +1 -1
- package/dist/{node-BWBQAh8C.mjs → node-BF2jSfWg.mjs} +3 -14
- package/dist/regular-expression-D5pGVpCu.mjs +415 -0
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/app-data/index.js +1 -2
- package/dist/runtime/client/index.d.ts +18 -4
- package/dist/runtime/client/index.js +130 -214
- package/dist/runtime/index.d.ts +20 -4
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/server/index.d.mts +18 -7
- package/dist/runtime/server/index.mjs +128 -215
- package/dist/runtime/server/runner.d.mts +1 -17
- package/dist/runtime/server/runner.mjs +12 -394
- package/dist/{runtime-CqlPYKjW.js → runtime-COEYYPyw.js} +130 -214
- 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 +3 -3
- package/dist/testing/index.mjs +20 -18
- package/dist/{validation-BR7tMYEv.mjs → validation-Byxie0Uk.mjs} +28 -24
- package/package.json +9 -13
- package/dist/serialize-o-Sj1lvg.mjs +0 -792
- package/dist/stencil-public-compiler-C_X1iolo.d.ts +0 -4455
- package/dist/stencil-public-runtime-DlV8o7-z.d.ts +0 -1845
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tt as HostElement, ca as FunctionalComponent, da as TagTransformer, fa as UserBuildConditionals, hn as RuntimeRef, la as RafCallback, p as ChildType, pa as VNode, sa as ErrorHandler, ua as ResolutionHandler } from "./index-BwTaN1Nq.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,4 @@ 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
|
-
export {
|
|
194
|
+
export { PropSerialize as A, AttrDeserialize as C, Listen as D, Event as E, Watch as M, resolveVar as N, Method as O, Build as P, AttachInternals as S, Element$1 as T, Env as _, setTagTransformer as a, writeTask as b, getMode as c, Fragment as d, createEvent as f, setAssetPath as g, getAssetPath as h, getRenderingRef as i, State as j, Prop as k, setMode as l, getShadowRoot as m, h as n, transformTag as o, getElement as p, forceUpdate as r, render as s, Host as t, Mixin as u, setPlatformHelpers as v, Component as w, setErrorHandler as x, readTask as y };
|