@stencil/core 5.0.0-next.0 → 5.0.0-rc.0
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-ClM4H9-P.mjs +2496 -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-DFanjq9z.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-Cpp3qc3u.mjs +524 -0
- package/dist/{index-szczUd2l.d.mts → index-DvfFOkiJ.d.mts} +1466 -2044
- package/dist/{stencil-private-Cgcr414u.d.ts → index-XQHZl0MW.d.ts} +308 -114
- package/dist/index-aBMJC5F9.d.mts +104 -0
- 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-DJP8JuAS.mjs} +176 -197
- package/dist/rolldown-runtime-BhDjJH2R.mjs +15 -0
- package/dist/{client-DR9zhmKG.mjs → runtime/client/lazy.js} +3780 -2652
- package/dist/runtime/client/{index.d.ts → runtime.d.ts} +516 -227
- package/dist/runtime/client/{index.js → runtime.js} +3588 -2856
- package/dist/runtime/index.d.ts +90 -72
- package/dist/runtime/index.js +3461 -2837
- package/dist/runtime/server/index.d.mts +243 -219
- package/dist/runtime/server/index.mjs +3763 -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 +7939 -619
- package/dist/util-C-H1H84W.mjs +731 -0
- package/dist/validation-ByYYKvnS.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
package/package.json
CHANGED
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
+
"version": "5.0.0-rc.0",
|
|
3
4
|
"description": "A Compiler for Web Components and Progressive Web Apps",
|
|
4
|
-
"author": "StencilJs Contributors",
|
|
5
|
-
"homepage": "https://stenciljs.com/",
|
|
6
5
|
"keywords": [
|
|
7
|
-
"web components",
|
|
8
6
|
"components",
|
|
9
|
-
"stencil",
|
|
10
|
-
"ionic",
|
|
11
|
-
"webapp",
|
|
12
7
|
"custom elements",
|
|
8
|
+
"ionic",
|
|
9
|
+
"progressive web app",
|
|
13
10
|
"pwa",
|
|
14
|
-
"
|
|
11
|
+
"stencil",
|
|
12
|
+
"web components",
|
|
13
|
+
"webapp"
|
|
15
14
|
],
|
|
16
|
-
"
|
|
15
|
+
"homepage": "https://stenciljs.com/",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "StencilJs Contributors",
|
|
17
18
|
"repository": {
|
|
18
19
|
"type": "git",
|
|
19
20
|
"url": "git+https://github.com/stenciljs/core.git"
|
|
20
21
|
},
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"type": "module",
|
|
23
|
-
"main": "./dist/index.mjs",
|
|
24
|
-
"types": "./dist/index.d.mts",
|
|
25
22
|
"bin": {
|
|
26
23
|
"stencil": "./bin/stencil.mjs"
|
|
27
24
|
},
|
|
25
|
+
"files": [
|
|
26
|
+
"bin/",
|
|
27
|
+
"dist/"
|
|
28
|
+
],
|
|
29
|
+
"type": "module",
|
|
30
|
+
"main": "./dist/index.mjs",
|
|
31
|
+
"types": "./dist/index.d.mts",
|
|
28
32
|
"exports": {
|
|
33
|
+
"./package.json": "./package.json",
|
|
29
34
|
".": {
|
|
30
35
|
"types": "./dist/index.d.mts",
|
|
31
36
|
"import": "./dist/index.mjs"
|
|
@@ -34,13 +39,54 @@
|
|
|
34
39
|
"types": "./dist/compiler/index.d.mts",
|
|
35
40
|
"import": "./dist/compiler/index.mjs"
|
|
36
41
|
},
|
|
42
|
+
"./compiler/utils": {
|
|
43
|
+
"types": "./dist/compiler/utils/index.d.mts",
|
|
44
|
+
"import": "./dist/compiler/utils/index.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./compiler/browser": {
|
|
47
|
+
"types": "./dist/compiler/browser.d.ts",
|
|
48
|
+
"import": "./dist/compiler/browser.js"
|
|
49
|
+
},
|
|
50
|
+
"./jsx-runtime": {
|
|
51
|
+
"types": "./dist/jsx-runtime.d.mts",
|
|
52
|
+
"import": "./dist/jsx-runtime.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./jsx-dev-runtime": {
|
|
55
|
+
"types": "./dist/jsx-runtime.d.mts",
|
|
56
|
+
"import": "./dist/jsx-runtime.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./mock-doc": {
|
|
59
|
+
"types": "./dist/mock-doc.d.mts",
|
|
60
|
+
"import": "./dist/mock-doc.mjs",
|
|
61
|
+
"default": "./dist/mock-doc.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./signals": {
|
|
64
|
+
"types": "./dist/signals/index.d.ts",
|
|
65
|
+
"import": "./dist/signals/index.js"
|
|
66
|
+
},
|
|
37
67
|
"./runtime": {
|
|
38
68
|
"types": "./dist/runtime/index.d.ts",
|
|
39
69
|
"import": "./dist/runtime/index.js"
|
|
40
70
|
},
|
|
71
|
+
"./app-data": {
|
|
72
|
+
"types": "./dist/app-data/index.d.ts",
|
|
73
|
+
"import": "./dist/app-data/index.js"
|
|
74
|
+
},
|
|
75
|
+
"./app-globals": {
|
|
76
|
+
"types": "./dist/app-globals/index.d.ts",
|
|
77
|
+
"import": "./dist/app-globals/index.js"
|
|
78
|
+
},
|
|
41
79
|
"./runtime/client": {
|
|
42
|
-
"types": "./dist/runtime/client/
|
|
43
|
-
"import": "./dist/runtime/client/
|
|
80
|
+
"types": "./dist/runtime/client/runtime.d.ts",
|
|
81
|
+
"import": "./dist/runtime/client/runtime.js"
|
|
82
|
+
},
|
|
83
|
+
"./runtime/client/standalone": {
|
|
84
|
+
"types": "./dist/runtime/client/runtime.d.ts",
|
|
85
|
+
"import": "./dist/runtime/client/runtime.js"
|
|
86
|
+
},
|
|
87
|
+
"./runtime/client/lazy": {
|
|
88
|
+
"types": "./dist/runtime/client/runtime.d.ts",
|
|
89
|
+
"import": "./dist/runtime/client/lazy.js"
|
|
44
90
|
},
|
|
45
91
|
"./runtime/server": {
|
|
46
92
|
"types": "./dist/runtime/server/index.d.mts",
|
|
@@ -50,18 +96,6 @@
|
|
|
50
96
|
"types": "./dist/runtime/server/runner.d.mts",
|
|
51
97
|
"import": "./dist/runtime/server/runner.mjs"
|
|
52
98
|
},
|
|
53
|
-
"./runtime/app-data": {
|
|
54
|
-
"types": "./dist/runtime/app-data/index.d.ts",
|
|
55
|
-
"import": "./dist/runtime/app-data/index.js"
|
|
56
|
-
},
|
|
57
|
-
"./runtime/app-globals": {
|
|
58
|
-
"types": "./dist/runtime/app-globals/index.d.ts",
|
|
59
|
-
"import": "./dist/runtime/app-globals/index.js"
|
|
60
|
-
},
|
|
61
|
-
"./compiler/utils": {
|
|
62
|
-
"types": "./dist/compiler/utils/index.d.mts",
|
|
63
|
-
"import": "./dist/compiler/utils/index.mjs"
|
|
64
|
-
},
|
|
65
99
|
"./sys/node": {
|
|
66
100
|
"types": "./dist/sys/node/index.d.mts",
|
|
67
101
|
"import": "./dist/sys/node/index.mjs"
|
|
@@ -69,49 +103,47 @@
|
|
|
69
103
|
"./testing": {
|
|
70
104
|
"types": "./dist/testing/index.d.mts",
|
|
71
105
|
"import": "./dist/testing/index.mjs"
|
|
72
|
-
},
|
|
73
|
-
"./mock-doc": {
|
|
74
|
-
"import": "./dist/mock-doc.mjs"
|
|
75
106
|
}
|
|
76
107
|
},
|
|
77
|
-
"files": [
|
|
78
|
-
"bin/",
|
|
79
|
-
"dist/"
|
|
80
|
-
],
|
|
81
108
|
"dependencies": {
|
|
82
|
-
"@parcel/watcher": "^2.
|
|
83
|
-
"@
|
|
84
|
-
"@rollup/
|
|
85
|
-
"
|
|
86
|
-
"@rollup/plugin-replace": "^6.0.3",
|
|
87
|
-
"@rollup/pluginutils": "^5.3.0",
|
|
88
|
-
"autoprefixer": "^10.4.24",
|
|
109
|
+
"@parcel/watcher": "^2.6.0",
|
|
110
|
+
"@preact/signals-core": "^1.14.4",
|
|
111
|
+
"@rollup/pluginutils": "^5.4.0",
|
|
112
|
+
"browserslist": "^4.28.8",
|
|
89
113
|
"chalk": "^5.6.2",
|
|
90
114
|
"css-what": "^7.0.0",
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"postcss": "^8.5.6",
|
|
115
|
+
"jiti": "^2.7.0",
|
|
116
|
+
"lightningcss": "^1.33.0",
|
|
117
|
+
"magic-string": "^0.30.21",
|
|
118
|
+
"picomatch": "^4.0.5",
|
|
119
|
+
"postcss": "^8.5.26",
|
|
120
|
+
"postcss-nesting": "^14.0.1",
|
|
98
121
|
"postcss-safe-parser": "^7.0.1",
|
|
99
|
-
"postcss-selector-parser": "^7.1.
|
|
100
|
-
"resolve": "^1.22.
|
|
101
|
-
"
|
|
102
|
-
"semver": "^7.
|
|
103
|
-
"terser": "5.
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"@stencil/
|
|
107
|
-
"@stencil/mock-doc": "5.0.0-
|
|
122
|
+
"postcss-selector-parser": "^7.1.5",
|
|
123
|
+
"resolve": "^1.22.12",
|
|
124
|
+
"rolldown": "^1.2.6",
|
|
125
|
+
"semver": "^7.8.5",
|
|
126
|
+
"terser": "^5.50.0",
|
|
127
|
+
"tinyglobby": "^0.2.17",
|
|
128
|
+
"typescript": ">5.0.0 <7.0.0",
|
|
129
|
+
"@stencil/cli": "5.0.0-rc.0",
|
|
130
|
+
"@stencil/mock-doc": "5.0.0-rc.0",
|
|
131
|
+
"@stencil/dev-server": "5.0.0-rc.0"
|
|
132
|
+
},
|
|
133
|
+
"devDependencies": {
|
|
134
|
+
"@ionic/prettier-config": "^4.0.0",
|
|
135
|
+
"@stencil/vitest": "^1.14.0",
|
|
136
|
+
"prettier": "^3.9.6",
|
|
137
|
+
"tsdown": "^0.22.14",
|
|
138
|
+
"vitest": "^4.1.10",
|
|
139
|
+
"vitest-environment-stencil": "^1.14.0"
|
|
140
|
+
},
|
|
141
|
+
"engines": {
|
|
142
|
+
"node": ">=22.0.0"
|
|
108
143
|
},
|
|
109
144
|
"volta": {
|
|
110
145
|
"extends": "../../package.json"
|
|
111
146
|
},
|
|
112
|
-
"devDependencies": {
|
|
113
|
-
"@ionic/prettier-config": "^4.0.0"
|
|
114
|
-
},
|
|
115
147
|
"scripts": {
|
|
116
148
|
"build": "tsdown",
|
|
117
149
|
"test": "vitest run",
|
package/dist/chunk-ClPoSABd.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region \0rolldown/runtime.js
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __exportAll = (all, no_symbols) => {
|
|
6
|
-
let target = {};
|
|
7
|
-
for (var name in all) {
|
|
8
|
-
__defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
if (!no_symbols) {
|
|
14
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
-
}
|
|
16
|
-
return target;
|
|
17
|
-
};
|
|
18
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { __require as n, __exportAll as t };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { Ct as HostElement, Sa as VNode, _a as ErrorHandler, ba as ResolutionHandler, p as ChildType, pn as RuntimeRef, va as FunctionalComponent, xa as UserBuildConditionals, ya as RafCallback } from "./index-szczUd2l.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/client/client-build.d.ts
|
|
4
|
-
declare const Build: UserBuildConditionals;
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/client/client-log.d.ts
|
|
7
|
-
declare const setErrorHandler: (handler: ErrorHandler) => ErrorHandler;
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/client/client-task-queue.d.ts
|
|
10
|
-
declare const readTask: (cb: RafCallback) => void;
|
|
11
|
-
declare const writeTask: (cb: RafCallback) => void;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/client/client-window.d.ts
|
|
14
|
-
declare const setPlatformHelpers: (helpers: {
|
|
15
|
-
jmp?: (c: any) => any;
|
|
16
|
-
raf?: (c: any) => number;
|
|
17
|
-
ael?: (el: any, eventName: string, listener: any, options: any) => void;
|
|
18
|
-
rel?: (el: any, eventName: string, listener: any, options: any) => void;
|
|
19
|
-
ce?: (eventName: string, opts?: any) => any;
|
|
20
|
-
}) => void;
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/app-data/index.d.ts
|
|
23
|
-
declare const Env: {};
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/runtime/asset-path.d.ts
|
|
26
|
-
declare const getAssetPath: (path: string) => string;
|
|
27
|
-
declare const setAssetPath: (path: string) => string;
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/runtime/element.d.ts
|
|
30
|
-
declare const getElement: (ref: any) => HostElement;
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/runtime/event-emitter.d.ts
|
|
33
|
-
declare const createEvent: (ref: RuntimeRef, name: string, flags: number) => {
|
|
34
|
-
emit: (detail: any) => CustomEvent<any>;
|
|
35
|
-
};
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region src/runtime/fragment.d.ts
|
|
38
|
-
declare const Fragment: FunctionalComponent;
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/runtime/mixin.d.ts
|
|
41
|
-
type Ctor<T = {}> = new (...args: any[]) => T;
|
|
42
|
-
declare function Mixin(...mixins: ((base: Ctor) => Ctor)[]): Ctor<{}>;
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/runtime/mode.d.ts
|
|
45
|
-
declare const setMode: (handler: ResolutionHandler) => number;
|
|
46
|
-
declare const getMode: (ref: RuntimeRef) => string;
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/runtime/render.d.ts
|
|
49
|
-
/**
|
|
50
|
-
* Method to render a virtual DOM tree to a container element.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```tsx
|
|
54
|
-
* import { render } from '@stencil/core';
|
|
55
|
-
*
|
|
56
|
-
* const vnode = (
|
|
57
|
-
* <div>
|
|
58
|
-
* <h1>Hello, world!</h1>
|
|
59
|
-
* </div>
|
|
60
|
-
* );
|
|
61
|
-
* render(vnode, document.body);
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @param vnode - The virtual DOM tree to render
|
|
65
|
-
* @param container - The container element to render the virtual DOM tree to
|
|
66
|
-
*/
|
|
67
|
-
declare function render(vnode: VNode, container: Element): void;
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/runtime/update-component.d.ts
|
|
70
|
-
declare const getRenderingRef: () => any;
|
|
71
|
-
declare const forceUpdate: (ref: any) => boolean;
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region src/runtime/vdom/h.d.ts
|
|
74
|
-
declare const h: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VNode;
|
|
75
|
-
declare const Host: {};
|
|
76
|
-
//#endregion
|
|
77
|
-
export { writeTask as _, render as a, Mixin as c, getElement as d, getAssetPath as f, readTask as g, setPlatformHelpers as h, getRenderingRef as i, Fragment as l, Env as m, h as n, getMode as o, setAssetPath as p, forceUpdate as r, setMode as s, Host as t, createEvent as u, setErrorHandler as v, Build as y };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { t as BuildConditionals } from "../../stencil-private-Cgcr414u.js";
|
|
2
|
-
|
|
3
|
-
//#region src/app-data/index.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* A collection of default build flags for a Stencil project.
|
|
6
|
-
*
|
|
7
|
-
* This collection can be found throughout the Stencil codebase, often imported from the `virtual:app-data` module like so:
|
|
8
|
-
* ```ts
|
|
9
|
-
* import { BUILD } from 'virtual:app-data';
|
|
10
|
-
* ```
|
|
11
|
-
* and is used to determine if a portion of the output of a Stencil _project_'s compilation step can be eliminated.
|
|
12
|
-
*
|
|
13
|
-
* e.g. When `BUILD.allRenderFn` evaluates to `false`, the compiler will eliminate conditional statements like:
|
|
14
|
-
* ```ts
|
|
15
|
-
* if (BUILD.allRenderFn) {
|
|
16
|
-
* // some code that will be eliminated if BUILD.allRenderFn is false
|
|
17
|
-
* }
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* `virtual:app-data`, the module that `BUILD` is imported from, is an alias for the `@stencil/core/runtime/app-data`, and is
|
|
21
|
-
* partially referenced by {@link STENCIL_APP_DATA_ID}. The `src/compiler/bundle/app-data-plugin.ts` references
|
|
22
|
-
* `STENCIL_APP_DATA_ID` uses it to replace these defaults with {@link BuildConditionals} that are derived from a
|
|
23
|
-
* Stencil project's contents (i.e. metadata from the components). This replacement happens at a Stencil project's
|
|
24
|
-
* compile time. Such code can be found at `src/compiler/app-core/app-data.ts`.
|
|
25
|
-
*/
|
|
26
|
-
declare const BUILD: BuildConditionals;
|
|
27
|
-
declare const Env: {};
|
|
28
|
-
declare const NAMESPACE: string;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { BUILD, Env, NAMESPACE };
|