@stencil/core 5.0.0-next.0 → 5.0.0-rc.1

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 (58) hide show
  1. package/README.md +94 -0
  2. package/bin/stencil.mjs +1 -1
  3. package/dist/app-data/index.d.ts +2 -0
  4. package/dist/{runtime/app-data → app-data}/index.js +23 -15
  5. package/dist/{runtime/app-globals → app-globals}/index.js +1 -2
  6. package/dist/client-BMtGBEQV.mjs +2498 -0
  7. package/dist/compiler/browser.d.ts +1573 -0
  8. package/dist/compiler/browser.js +16998 -0
  9. package/dist/compiler/index.d.mts +284 -7
  10. package/dist/compiler/index.mjs +3 -9
  11. package/dist/compiler/utils/index.d.mts +272 -3
  12. package/dist/compiler/utils/index.mjs +4 -5
  13. package/dist/{transpile-CJQcQEVa.mjs → compiler-C_Y38j4m.mjs} +20984 -15554
  14. package/dist/declarations/stencil-ext-modules.d.ts +8 -8
  15. package/dist/declarations/stencil-public-compiler.d.ts +1016 -840
  16. package/dist/declarations/stencil-public-compiler.js +3 -5
  17. package/dist/declarations/stencil-public-docs.d.ts +441 -376
  18. package/dist/declarations/stencil-public-docs.js +0 -0
  19. package/dist/declarations/stencil-public-runtime.d.ts +361 -113
  20. package/dist/fragment-Di1hWOC8.mjs +4 -0
  21. package/dist/helpers-pTCZhNi0.mjs +529 -0
  22. package/dist/{index-szczUd2l.d.mts → index-CFiy6MZ3.d.mts} +1471 -2044
  23. package/dist/index-CViiWNQ9.d.mts +104 -0
  24. package/dist/{stencil-private-Cgcr414u.d.ts → index-XQHZl0MW.d.ts} +308 -114
  25. package/dist/index.d.mts +14 -2
  26. package/dist/index.mjs +171 -4
  27. package/dist/jsx-runtime.d.mts +24 -0
  28. package/dist/jsx-runtime.mjs +3 -0
  29. package/dist/mock-doc.mjs +2 -3
  30. package/dist/{node-sys-BGURUNOZ.mjs → node-Bkq8vRnu.mjs} +176 -197
  31. package/dist/rolldown-runtime-BhDjJH2R.mjs +15 -0
  32. package/dist/{client-DR9zhmKG.mjs → runtime/client/lazy.js} +3794 -2659
  33. package/dist/runtime/client/{index.d.ts → runtime.d.ts} +516 -227
  34. package/dist/runtime/client/{index.js → runtime.js} +3596 -2857
  35. package/dist/runtime/index.d.ts +90 -72
  36. package/dist/runtime/index.js +3528 -2897
  37. package/dist/runtime/server/index.d.mts +243 -219
  38. package/dist/runtime/server/index.mjs +3770 -3352
  39. package/dist/runtime/server/runner.d.mts +114 -47
  40. package/dist/runtime/server/runner.mjs +12710 -763
  41. package/dist/signals/index.d.ts +58 -0
  42. package/dist/signals/index.js +182 -0
  43. package/dist/sys/node/index.d.mts +1 -3
  44. package/dist/sys/node/index.mjs +2 -7
  45. package/dist/sys/node/worker.d.mts +1 -1
  46. package/dist/sys/node/worker.mjs +3 -12
  47. package/dist/testing/index.d.mts +4763 -12
  48. package/dist/testing/index.mjs +7945 -618
  49. package/dist/util-CP6-333M.mjs +731 -0
  50. package/dist/validation-C1mr0klL.mjs +825 -0
  51. package/package.json +91 -59
  52. package/dist/chunk-ClPoSABd.mjs +0 -21
  53. package/dist/index-Bxo2jCf6.d.mts +0 -77
  54. package/dist/runtime/app-data/index.d.ts +0 -30
  55. package/dist/serialize-BJvhE9aQ.mjs +0 -775
  56. package/dist/validation-BdcPruW_.mjs +0 -1451
  57. /package/{LICENSE.md → LICENSE} +0 -0
  58. /package/dist/{runtime/app-globals → app-globals}/index.d.ts +0 -0
@@ -0,0 +1,104 @@
1
+ import { ar as RafCallback, cr as TagTransformer, lr as UserBuildConditionals, n as ChildType, nr as ErrorHandler, p as HostElement, rr as FunctionalComponent, sr as ResolutionHandler, ur as VNode, v as PropsType, y as RuntimeRef } from "./index-CFiy6MZ3.mjs";
2
+ //#region src/client/client-build.d.ts
3
+ /**
4
+ * `isDev` / `isTesting` are getters, not copies: the transpile path (e.g. `@stencil/unplugin`)
5
+ * sets `BUILD.*` overrides from each component module, which runs after this module is evaluated.
6
+ */
7
+ declare const Build: UserBuildConditionals;
8
+ //#endregion
9
+ //#region src/client/client-log.d.ts
10
+ declare const setErrorHandler: (handler: ErrorHandler) => ErrorHandler;
11
+ //#endregion
12
+ //#region src/client/client-task-queue.d.ts
13
+ declare const readTask: (cb: RafCallback) => void;
14
+ declare const writeTask: (cb: RafCallback) => void;
15
+ //#endregion
16
+ //#region src/client/client-window.d.ts
17
+ declare const setPlatformHelpers: (helpers: {
18
+ jmp?: (c: any) => any;
19
+ raf?: (c: any) => number;
20
+ ael?: (el: any, eventName: string, listener: any, options: any) => void;
21
+ rel?: (el: any, eventName: string, listener: any, options: any) => void;
22
+ ce?: (eventName: string, opts?: any) => any;
23
+ }) => void;
24
+ //#endregion
25
+ //#region src/runtime/element.d.ts
26
+ declare const getElement: (ref: any) => HostElement;
27
+ /**
28
+ * Get the shadow root for a Stencil component's host element.
29
+ * This works for both open and closed shadow DOM modes.
30
+ *
31
+ * For closed shadow DOM, `element.shadowRoot` returns `null` by design,
32
+ * but Stencil stores the reference internally so components can still
33
+ * access their own shadow root.
34
+ *
35
+ * @param element The host element (from @Element() decorator)
36
+ * @returns The shadow root, or null if no shadow root exists
37
+ */
38
+ declare const getShadowRoot: (element: HTMLElement) => ShadowRoot | null;
39
+ //#endregion
40
+ //#region src/runtime/fragment.d.ts
41
+ declare const Fragment: FunctionalComponent;
42
+ //#endregion
43
+ //#region src/runtime/mode.d.ts
44
+ declare const setMode: (handler: ResolutionHandler) => void;
45
+ declare const getMode: (ref: RuntimeRef) => string;
46
+ //#endregion
47
+ //#region src/runtime/render.d.ts
48
+ /**
49
+ * Method to render a virtual DOM tree to a container element.
50
+ *
51
+ * Supports efficient re-renders: calling `render()` again on the same container
52
+ * will diff the new VNode tree against the previous one and only update what changed,
53
+ * preserving existing DOM elements and their state.
54
+ *
55
+ * @example
56
+ * ```tsx
57
+ * import { render } from '@stencil/core';
58
+ *
59
+ * const vnode = (
60
+ * <div>
61
+ * <h1>Hello, world!</h1>
62
+ * </div>
63
+ * );
64
+ * render(vnode, document.body);
65
+ * ```
66
+ *
67
+ * @param vnode - The virtual DOM tree to render
68
+ * @param container - The container element to render the virtual DOM tree to
69
+ */
70
+ declare function render(vnode: VNode, container: Element): void;
71
+ //#endregion
72
+ //#region src/runtime/tag-transform.d.ts
73
+ /**
74
+ * Transforms a tag name using the current tag transformer
75
+ * @param tag - the tag to transform e.g. `my-tag`
76
+ * @returns the transformed tag e.g. `new-my-tag`
77
+ */
78
+ declare function transformTag<T extends string>(tag: T): T;
79
+ /**
80
+ * Sets the tag transformer to be used when rendering custom elements
81
+ * @param transformer the transformer function to use. Must return a string
82
+ */
83
+ declare function setTagTransformer(transformer: TagTransformer): void;
84
+ //#endregion
85
+ //#region src/runtime/update-component.d.ts
86
+ declare const getRenderingRef: () => any;
87
+ declare const forceUpdate: (ref: any) => boolean;
88
+ //#endregion
89
+ //#region src/runtime/vdom/h.d.ts
90
+ declare const h: (nodeName: any, vnodeData: PropsType, ...children: ChildType[]) => VNode;
91
+ declare const Host: {};
92
+ //#endregion
93
+ //#region src/runtime/vdom/jsx-runtime.d.ts
94
+ declare function jsx(type: any, props: any, key?: string): VNode;
95
+ /**
96
+ * @alias
97
+ */
98
+ declare const jsxs: typeof jsx;
99
+ /**
100
+ * @alias
101
+ */
102
+ declare const jsxDEV: typeof jsx;
103
+ //#endregion
104
+ export { readTask as _, h as a, Build as b, setTagTransformer as c, getMode as d, setMode as f, setPlatformHelpers as g, getShadowRoot as h, Host as i, transformTag as l, getElement as m, jsxDEV as n, forceUpdate as o, Fragment as p, jsxs as r, getRenderingRef as s, jsx as t, render as u, writeTask as v, setErrorHandler as y };