@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.
Files changed (42) hide show
  1. package/dist/{client-DucyoZT4.mjs → client-Dti6fFpE.mjs} +108 -69
  2. package/dist/compiler/index.d.mts +3 -3
  3. package/dist/compiler/index.mjs +2 -2
  4. package/dist/compiler/utils/index.d.mts +2 -2
  5. package/dist/compiler/utils/index.mjs +3 -3
  6. package/dist/{compiler-DyK1_szo.mjs → compiler-BYRrEeD-.mjs} +2065 -2106
  7. package/dist/declarations/stencil-public-compiler.d.ts +4085 -2
  8. package/dist/declarations/stencil-public-compiler.js +0 -1
  9. package/dist/declarations/stencil-public-docs.d.ts +494 -1
  10. package/dist/declarations/stencil-public-runtime.d.ts +1943 -2
  11. package/dist/{index-fIuYTL9f.d.mts → index-9LTuoSiw.d.mts} +18 -2
  12. package/dist/{index-D-LlB2nw.d.mts → index-BwTaN1Nq.d.mts} +199 -809
  13. package/dist/{index-BONzXKJt.d.ts → index-CyrGY82h.d.ts} +5 -7
  14. package/dist/{index-CHjZtib0.d.ts → index-hS-KBdAP.d.ts} +1 -1
  15. package/dist/index.d.mts +1 -0
  16. package/dist/index.mjs +2 -2
  17. package/dist/{jsx-runtime-DBzBJLKk.d.ts → jsx-runtime-DlDkTqps.d.ts} +1 -1
  18. package/dist/jsx-runtime.d.ts +1 -1
  19. package/dist/jsx-runtime.js +1 -1
  20. package/dist/{node-BWBQAh8C.mjs → node-BF2jSfWg.mjs} +3 -14
  21. package/dist/regular-expression-D5pGVpCu.mjs +415 -0
  22. package/dist/runtime/app-data/index.d.ts +1 -1
  23. package/dist/runtime/app-data/index.js +1 -2
  24. package/dist/runtime/client/index.d.ts +18 -4
  25. package/dist/runtime/client/index.js +130 -214
  26. package/dist/runtime/index.d.ts +20 -4
  27. package/dist/runtime/index.js +2 -2
  28. package/dist/runtime/server/index.d.mts +18 -7
  29. package/dist/runtime/server/index.mjs +128 -215
  30. package/dist/runtime/server/runner.d.mts +1 -17
  31. package/dist/runtime/server/runner.mjs +12 -394
  32. package/dist/{runtime-CqlPYKjW.js → runtime-COEYYPyw.js} +130 -214
  33. package/dist/sys/node/index.d.mts +1 -1
  34. package/dist/sys/node/index.mjs +1 -1
  35. package/dist/sys/node/worker.mjs +2 -2
  36. package/dist/testing/index.d.mts +3 -3
  37. package/dist/testing/index.mjs +20 -18
  38. package/dist/{validation-BR7tMYEv.mjs → validation-Byxie0Uk.mjs} +28 -24
  39. package/package.json +9 -13
  40. package/dist/serialize-o-Sj1lvg.mjs +0 -792
  41. package/dist/stencil-public-compiler-C_X1iolo.d.ts +0 -4455
  42. package/dist/stencil-public-runtime-DlV8o7-z.d.ts +0 -1845
@@ -1,4 +1,4 @@
1
- import { Ca as VNode, Ct as HostElement, Sa as UserBuildConditionals, _a as ErrorHandler, ba as ResolutionHandler, p as ChildType, pn as RuntimeRef, va as FunctionalComponent, xa as TagTransformer, ya as RafCallback } from "./index-D-LlB2nw.mjs";
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 { State as A, Component as C, Method as D, Listen as E, resolveVar as M, Build as N, Prop as O, AttrDeserialize as S, Event as T, setPlatformHelpers as _, setTagTransformer as a, setErrorHandler as b, getMode as c, Fragment as d, createEvent as f, Env as g, setAssetPath as h, getRenderingRef as i, Watch as j, PropSerialize as k, setMode as l, getAssetPath as m, h as n, transformTag as o, getElement as p, forceUpdate as r, render as s, Host as t, Mixin as u, readTask as v, Element$1 as w, AttachInternals as x, writeTask as y };
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 };