@stencil/core 4.40.1-dev.1767330502.42ebdfa → 4.41.0-dev.1767590127.4bb24de
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +80 -28
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +42 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +2 -2
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +4722 -4731
- package/internal/package.json +1 -1
- package/internal/stencil-core/jsx-dev-runtime.cjs +7 -0
- package/internal/stencil-core/jsx-dev-runtime.d.ts +23 -0
- package/internal/stencil-core/jsx-dev-runtime.js +2 -0
- package/internal/stencil-core/jsx-runtime.cjs +8 -0
- package/internal/stencil-core/jsx-runtime.d.ts +22 -0
- package/internal/stencil-core/jsx-runtime.js +2 -0
- package/internal/stencil-public-runtime.d.ts +29 -0
- package/internal/testing/index.js +44 -0
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +11 -1
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +15 -15
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
package/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.41.0-dev.1767590127.4bb24de",
|
|
4
4
|
"description": "Stencil internals only to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Automatic JSX Development Runtime type definitions for Stencil
|
|
3
|
+
*
|
|
4
|
+
* This module provides TypeScript type definitions for the automatic JSX development runtime.
|
|
5
|
+
* When using "jsx": "react-jsxdev" in tsconfig.json with "jsxImportSource": "@stencil/core",
|
|
6
|
+
* TypeScript will automatically import from this module in development mode.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { VNode } from '../stencil-public-runtime';
|
|
10
|
+
|
|
11
|
+
export { Fragment } from '../stencil-public-runtime';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* JSX development runtime function for creating elements with debug info.
|
|
15
|
+
*/
|
|
16
|
+
export function jsxDEV(
|
|
17
|
+
type: any,
|
|
18
|
+
props: any,
|
|
19
|
+
key?: string | number,
|
|
20
|
+
isStaticChildren?: boolean,
|
|
21
|
+
source?: any,
|
|
22
|
+
self?: any,
|
|
23
|
+
): VNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Automatic JSX Runtime type definitions for Stencil
|
|
3
|
+
*
|
|
4
|
+
* This module provides TypeScript type definitions for the automatic JSX runtime.
|
|
5
|
+
* When using "jsx": "react-jsx" or "jsx": "react-jsxdev" in tsconfig.json with
|
|
6
|
+
* "jsxImportSource": "@stencil/core", TypeScript will automatically import from
|
|
7
|
+
* these modules instead of requiring manual `h` imports.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import type { VNode } from '../stencil-public-runtime';
|
|
11
|
+
|
|
12
|
+
export { Fragment } from '../stencil-public-runtime';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* JSX runtime function for creating elements in production mode.
|
|
16
|
+
*/
|
|
17
|
+
export function jsx(type: any, props: any, key?: string): VNode;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* JSX runtime function for creating elements with static children.
|
|
21
|
+
*/
|
|
22
|
+
export function jsxs(type: any, props: any, key?: string): VNode;
|
|
@@ -673,6 +673,35 @@ export declare function h(sel: any, text: string): VNode;
|
|
|
673
673
|
export declare function h(sel: any, children: Array<VNode | undefined | null>): VNode;
|
|
674
674
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
675
675
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
676
|
+
/**
|
|
677
|
+
* Automatic JSX runtime functions for TypeScript's react-jsx mode.
|
|
678
|
+
* These functions are called automatically by TypeScript when using "jsx": "react-jsx".
|
|
679
|
+
* @param type type of node
|
|
680
|
+
* @param props properties of node
|
|
681
|
+
* @param key optional key for the node
|
|
682
|
+
* @returns a jsx vnode
|
|
683
|
+
*/
|
|
684
|
+
export declare function jsx(type: any, props: any, key?: string): VNode;
|
|
685
|
+
/**
|
|
686
|
+
* Automatic JSX runtime functions for TypeScript's react-jsxmode with multiple children.
|
|
687
|
+
* @param type type of node
|
|
688
|
+
* @param props properties of node
|
|
689
|
+
* @param key optional key for the node
|
|
690
|
+
* @returns a jsx vnode
|
|
691
|
+
*/
|
|
692
|
+
export declare function jsxs(type: any, props: any, key?: string): VNode;
|
|
693
|
+
/**
|
|
694
|
+
* Automatic JSX runtime functions for TypeScript's react-jsxdev mode.
|
|
695
|
+
* These functions are called automatically by TypeScript when using "jsx": "react-jsxdev".
|
|
696
|
+
* @param type type of node
|
|
697
|
+
* @param props properties of node
|
|
698
|
+
* @param key optional key for the node
|
|
699
|
+
* @param isStaticChildren indicates if the children are static
|
|
700
|
+
* @param source source information
|
|
701
|
+
* @param self reference to the component instance
|
|
702
|
+
* @returns a jsx vnode
|
|
703
|
+
*/
|
|
704
|
+
export declare function jsxDEV(type: any, props: any, key?: string | number, isStaticChildren?: boolean, source?: any, self?: any): VNode;
|
|
676
705
|
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
677
706
|
/**
|
|
678
707
|
* A virtual DOM node
|
|
@@ -281,6 +281,9 @@ __export(index_exports, {
|
|
|
281
281
|
h: () => h,
|
|
282
282
|
insertVdomAnnotations: () => insertVdomAnnotations,
|
|
283
283
|
isMemberInElement: () => isMemberInElement,
|
|
284
|
+
jsx: () => jsx,
|
|
285
|
+
jsxDEV: () => jsxDEV,
|
|
286
|
+
jsxs: () => jsxs,
|
|
284
287
|
loadModule: () => loadModule,
|
|
285
288
|
modeResolutionChain: () => modeResolutionChain,
|
|
286
289
|
needsScopedSSR: () => needsScopedSSR,
|
|
@@ -6153,6 +6156,44 @@ function setTagTransformer(transformer) {
|
|
|
6153
6156
|
tagTransformer = transformer;
|
|
6154
6157
|
}
|
|
6155
6158
|
|
|
6159
|
+
// src/runtime/vdom/jsx-dev-runtime.ts
|
|
6160
|
+
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
6161
|
+
const { children, ...rest } = props;
|
|
6162
|
+
const vnodeData = key !== void 0 ? { ...rest, key } : rest;
|
|
6163
|
+
if (Array.isArray(children)) {
|
|
6164
|
+
return h(type, vnodeData, ...children);
|
|
6165
|
+
} else if (children !== void 0) {
|
|
6166
|
+
return h(type, vnodeData, children);
|
|
6167
|
+
}
|
|
6168
|
+
return h(type, vnodeData);
|
|
6169
|
+
}
|
|
6170
|
+
|
|
6171
|
+
// src/runtime/vdom/jsx-runtime.ts
|
|
6172
|
+
function jsx(type, props, key) {
|
|
6173
|
+
const propsObj = props || {};
|
|
6174
|
+
const { children, ...rest } = propsObj;
|
|
6175
|
+
let vnodeData = rest;
|
|
6176
|
+
if (key !== void 0) {
|
|
6177
|
+
vnodeData = { ...rest, key };
|
|
6178
|
+
}
|
|
6179
|
+
if (vnodeData && Object.keys(vnodeData).length === 0) {
|
|
6180
|
+
vnodeData = null;
|
|
6181
|
+
}
|
|
6182
|
+
if (children !== void 0) {
|
|
6183
|
+
if (Array.isArray(children)) {
|
|
6184
|
+
return h(type, vnodeData, ...children);
|
|
6185
|
+
}
|
|
6186
|
+
if (typeof children === "object" && children !== null && "$flags$" in children) {
|
|
6187
|
+
return h(type, vnodeData, children);
|
|
6188
|
+
}
|
|
6189
|
+
return h(type, vnodeData, children);
|
|
6190
|
+
}
|
|
6191
|
+
return h(type, vnodeData);
|
|
6192
|
+
}
|
|
6193
|
+
function jsxs(type, props, key) {
|
|
6194
|
+
return jsx(type, props, key);
|
|
6195
|
+
}
|
|
6196
|
+
|
|
6156
6197
|
// src/runtime/vdom/vdom-annotations.ts
|
|
6157
6198
|
var insertVdomAnnotations = (doc, staticComponents) => {
|
|
6158
6199
|
if (doc != null) {
|
|
@@ -6336,6 +6377,9 @@ var scopedSSR = false;
|
|
|
6336
6377
|
h,
|
|
6337
6378
|
insertVdomAnnotations,
|
|
6338
6379
|
isMemberInElement,
|
|
6380
|
+
jsx,
|
|
6381
|
+
jsxDEV,
|
|
6382
|
+
jsxs,
|
|
6339
6383
|
loadModule,
|
|
6340
6384
|
modeResolutionChain,
|
|
6341
6385
|
needsScopedSSR,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.41.0-dev.1767590127.4bb24de",
|
|
4
4
|
"description": "Stencil internal testing platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": true
|
package/mock-doc/index.cjs
CHANGED
package/mock-doc/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc v4.
|
|
2
|
+
Stencil Mock Doc v4.41.0-dev.1767590127.4bb24de | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.41.0-dev.1767590127.4bb24de",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./internal/stencil-core/index.cjs",
|
|
6
6
|
"module": "./internal/stencil-core/index.js",
|
|
@@ -28,6 +28,16 @@
|
|
|
28
28
|
"import": "./internal/stencil-core/index.js",
|
|
29
29
|
"require": "./internal/stencil-core/index.cjs"
|
|
30
30
|
},
|
|
31
|
+
"./jsx-runtime": {
|
|
32
|
+
"types": "./internal/stencil-core/jsx-runtime.d.ts",
|
|
33
|
+
"import": "./internal/stencil-core/jsx-runtime.js",
|
|
34
|
+
"require": "./internal/stencil-core/jsx-runtime.cjs"
|
|
35
|
+
},
|
|
36
|
+
"./jsx-dev-runtime": {
|
|
37
|
+
"types": "./internal/stencil-core/jsx-dev-runtime.d.ts",
|
|
38
|
+
"import": "./internal/stencil-core/jsx-dev-runtime.js",
|
|
39
|
+
"require": "./internal/stencil-core/jsx-dev-runtime.cjs"
|
|
40
|
+
},
|
|
31
41
|
"./cli": {
|
|
32
42
|
"import": "./cli/index.js",
|
|
33
43
|
"require": "./cli/index.cjs"
|
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED