@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.
Files changed (50) hide show
  1. package/dist/app-data/index.d.ts +2 -0
  2. package/dist/{runtime/app-data → app-data}/index.js +17 -12
  3. package/dist/{client-B1nuvCd2.mjs → client-aTQ7xHxx.mjs} +2432 -2278
  4. package/dist/compiler/index.d.mts +6 -6
  5. package/dist/compiler/index.mjs +2 -2
  6. package/dist/compiler/utils/index.d.mts +2 -2
  7. package/dist/compiler/utils/index.mjs +3 -3
  8. package/dist/{compiler-LX4_RKKd.mjs → compiler-DCN7Np2A.mjs} +14854 -13500
  9. package/dist/declarations/stencil-public-compiler.d.ts +4374 -2
  10. package/dist/declarations/stencil-public-compiler.js +2 -4
  11. package/dist/declarations/stencil-public-docs.d.ts +504 -1
  12. package/dist/declarations/stencil-public-runtime.d.ts +1982 -2
  13. package/dist/{index-fIuYTL9f.d.mts → index-BvkyxSY6.d.mts} +29 -2
  14. package/dist/{index-D-LlB2nw.d.mts → index-vY35H18z.d.mts} +795 -1188
  15. package/dist/{index-BONzXKJt.d.ts → index-xAkMgLX_.d.ts} +88 -39
  16. package/dist/index.d.mts +1 -1
  17. package/dist/index.mjs +2 -2
  18. package/dist/jsx-runtime.d.mts +18 -0
  19. package/dist/jsx-runtime.mjs +2 -0
  20. package/dist/{node-SxQIOCZE.mjs → node--akYC-sG.mjs} +20 -30
  21. package/dist/regular-expression-CFVJOTUh.mjs +508 -0
  22. package/dist/{runtime-CF9DJtSu.js → runtime/client/lazy.js} +2675 -2493
  23. package/dist/runtime/client/{index.d.ts → runtime.d.ts} +106 -78
  24. package/dist/runtime/client/{index.js → runtime.js} +2545 -2487
  25. package/dist/runtime/index.d.ts +58 -29
  26. package/dist/runtime/index.js +4795 -2
  27. package/dist/runtime/server/index.d.mts +103 -70
  28. package/dist/runtime/server/index.mjs +2545 -2350
  29. package/dist/runtime/server/runner.d.mts +44 -48
  30. package/dist/runtime/server/runner.mjs +347 -751
  31. package/dist/signals/index.d.ts +47 -0
  32. package/dist/signals/index.js +199 -0
  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 +97 -3
  37. package/dist/testing/index.mjs +367 -59
  38. package/dist/{validation-CaCgjw-f.mjs → validation-ByxKj8bC.mjs} +116 -99
  39. package/package.json +47 -38
  40. package/dist/index-CHjZtib0.d.ts +0 -30
  41. package/dist/jsx-runtime-DBzBJLKk.d.ts +0 -28
  42. package/dist/jsx-runtime.d.ts +0 -2
  43. package/dist/jsx-runtime.js +0 -2
  44. package/dist/runtime/app-data/index.d.ts +0 -2
  45. package/dist/serialize-BkYHk7Mi.mjs +0 -766
  46. package/dist/stencil-public-compiler-C_X1iolo.d.ts +0 -4455
  47. package/dist/stencil-public-runtime-DlV8o7-z.d.ts +0 -1845
  48. /package/dist/{runtime/app-globals → app-globals}/index.d.ts +0 -0
  49. /package/dist/{runtime/app-globals → app-globals}/index.js +0 -0
  50. /package/dist/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
@@ -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 { 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
- 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
+ //#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 };