@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.
- package/README.md +94 -0
- package/bin/stencil.mjs +1 -1
- package/dist/app-data/index.d.ts +2 -0
- package/dist/{runtime/app-data → app-data}/index.js +23 -15
- package/dist/{runtime/app-globals → app-globals}/index.js +1 -2
- package/dist/client-BMtGBEQV.mjs +2498 -0
- package/dist/compiler/browser.d.ts +1573 -0
- package/dist/compiler/browser.js +16998 -0
- package/dist/compiler/index.d.mts +284 -7
- package/dist/compiler/index.mjs +3 -9
- package/dist/compiler/utils/index.d.mts +272 -3
- package/dist/compiler/utils/index.mjs +4 -5
- package/dist/{transpile-CJQcQEVa.mjs → compiler-C_Y38j4m.mjs} +20984 -15554
- package/dist/declarations/stencil-ext-modules.d.ts +8 -8
- package/dist/declarations/stencil-public-compiler.d.ts +1016 -840
- package/dist/declarations/stencil-public-compiler.js +3 -5
- package/dist/declarations/stencil-public-docs.d.ts +441 -376
- package/dist/declarations/stencil-public-docs.js +0 -0
- package/dist/declarations/stencil-public-runtime.d.ts +361 -113
- package/dist/fragment-Di1hWOC8.mjs +4 -0
- package/dist/helpers-pTCZhNi0.mjs +529 -0
- package/dist/{index-szczUd2l.d.mts → index-CFiy6MZ3.d.mts} +1471 -2044
- package/dist/index-CViiWNQ9.d.mts +104 -0
- package/dist/{stencil-private-Cgcr414u.d.ts → index-XQHZl0MW.d.ts} +308 -114
- package/dist/index.d.mts +14 -2
- package/dist/index.mjs +171 -4
- package/dist/jsx-runtime.d.mts +24 -0
- package/dist/jsx-runtime.mjs +3 -0
- package/dist/mock-doc.mjs +2 -3
- package/dist/{node-sys-BGURUNOZ.mjs → node-Bkq8vRnu.mjs} +176 -197
- package/dist/rolldown-runtime-BhDjJH2R.mjs +15 -0
- package/dist/{client-DR9zhmKG.mjs → runtime/client/lazy.js} +3794 -2659
- package/dist/runtime/client/{index.d.ts → runtime.d.ts} +516 -227
- package/dist/runtime/client/{index.js → runtime.js} +3596 -2857
- package/dist/runtime/index.d.ts +90 -72
- package/dist/runtime/index.js +3528 -2897
- package/dist/runtime/server/index.d.mts +243 -219
- package/dist/runtime/server/index.mjs +3770 -3352
- package/dist/runtime/server/runner.d.mts +114 -47
- package/dist/runtime/server/runner.mjs +12710 -763
- package/dist/signals/index.d.ts +58 -0
- package/dist/signals/index.js +182 -0
- package/dist/sys/node/index.d.mts +1 -3
- package/dist/sys/node/index.mjs +2 -7
- package/dist/sys/node/worker.d.mts +1 -1
- package/dist/sys/node/worker.mjs +3 -12
- package/dist/testing/index.d.mts +4763 -12
- package/dist/testing/index.mjs +7945 -618
- package/dist/util-CP6-333M.mjs +731 -0
- package/dist/validation-C1mr0klL.mjs +825 -0
- package/package.json +91 -59
- package/dist/chunk-ClPoSABd.mjs +0 -21
- package/dist/index-Bxo2jCf6.d.mts +0 -77
- package/dist/runtime/app-data/index.d.ts +0 -30
- package/dist/serialize-BJvhE9aQ.mjs +0 -775
- package/dist/validation-BdcPruW_.mjs +0 -1451
- /package/{LICENSE.md → LICENSE} +0 -0
- /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 };
|