@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/client/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Client Platform v4.
|
|
2
|
+
Stencil Client Platform v4.41.0-dev.1767590127.4bb24de | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -6033,6 +6033,44 @@ function setTagTransformer(transformer) {
|
|
|
6033
6033
|
tagTransformer = transformer;
|
|
6034
6034
|
}
|
|
6035
6035
|
|
|
6036
|
+
// src/runtime/vdom/jsx-dev-runtime.ts
|
|
6037
|
+
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
6038
|
+
const { children, ...rest } = props;
|
|
6039
|
+
const vnodeData = key !== void 0 ? { ...rest, key } : rest;
|
|
6040
|
+
if (Array.isArray(children)) {
|
|
6041
|
+
return h(type, vnodeData, ...children);
|
|
6042
|
+
} else if (children !== void 0) {
|
|
6043
|
+
return h(type, vnodeData, children);
|
|
6044
|
+
}
|
|
6045
|
+
return h(type, vnodeData);
|
|
6046
|
+
}
|
|
6047
|
+
|
|
6048
|
+
// src/runtime/vdom/jsx-runtime.ts
|
|
6049
|
+
function jsx(type, props, key) {
|
|
6050
|
+
const propsObj = props || {};
|
|
6051
|
+
const { children, ...rest } = propsObj;
|
|
6052
|
+
let vnodeData = rest;
|
|
6053
|
+
if (key !== void 0) {
|
|
6054
|
+
vnodeData = { ...rest, key };
|
|
6055
|
+
}
|
|
6056
|
+
if (vnodeData && Object.keys(vnodeData).length === 0) {
|
|
6057
|
+
vnodeData = null;
|
|
6058
|
+
}
|
|
6059
|
+
if (children !== void 0) {
|
|
6060
|
+
if (Array.isArray(children)) {
|
|
6061
|
+
return h(type, vnodeData, ...children);
|
|
6062
|
+
}
|
|
6063
|
+
if (typeof children === "object" && children !== null && "$flags$" in children) {
|
|
6064
|
+
return h(type, vnodeData, children);
|
|
6065
|
+
}
|
|
6066
|
+
return h(type, vnodeData, children);
|
|
6067
|
+
}
|
|
6068
|
+
return h(type, vnodeData);
|
|
6069
|
+
}
|
|
6070
|
+
function jsxs(type, props, key) {
|
|
6071
|
+
return jsx(type, props, key);
|
|
6072
|
+
}
|
|
6073
|
+
|
|
6036
6074
|
// src/runtime/vdom/vdom-annotations.ts
|
|
6037
6075
|
var insertVdomAnnotations = (doc, staticComponents) => {
|
|
6038
6076
|
if (doc != null) {
|
|
@@ -6211,6 +6249,9 @@ export {
|
|
|
6211
6249
|
h,
|
|
6212
6250
|
insertVdomAnnotations,
|
|
6213
6251
|
isMemberInElement,
|
|
6252
|
+
jsx,
|
|
6253
|
+
jsxDEV,
|
|
6254
|
+
jsxs,
|
|
6214
6255
|
loadModule,
|
|
6215
6256
|
modeResolutionChain,
|
|
6216
6257
|
needsScopedSSR,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.41.0-dev.1767590127.4bb24de",
|
|
4
4
|
"description": "Stencil internal client platform to be imported by the Stencil Compiler and internal runtime. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"exports": "./index.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Hydrate Platform v4.
|
|
2
|
+
Stencil Hydrate Platform v4.41.0-dev.1767590127.4bb24de | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -6350,7 +6350,7 @@ var isMemberInElement = (elm, memberName) => {
|
|
|
6350
6350
|
var registerComponents = (Cstrs) => {
|
|
6351
6351
|
for (const Cstr of Cstrs) {
|
|
6352
6352
|
const exportName = Cstr.cmpMeta.$tagName$;
|
|
6353
|
-
const transformedTagName =
|
|
6353
|
+
const transformedTagName = $stencilTagTransform.transformTag(exportName);
|
|
6354
6354
|
cmpModules.set(exportName, {
|
|
6355
6355
|
[exportName]: Cstr
|
|
6356
6356
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/hydrate",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.41.0-dev.1767590127.4bb24de",
|
|
4
4
|
"description": "Stencil internal hydrate 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
|