@stencil/core 4.45.2-dev.1794200759.bb880de → 4.45.2-dev.1794373558.f615a1c
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 +5 -5
- 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 +23 -11
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +23 -11
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +15 -11
- package/internal/package.json +1 -1
- package/internal/testing/index.js +22 -10
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +15 -11
- package/mock-doc/index.d.ts +11 -1
- package/mock-doc/index.js +15 -11
- package/mock-doc/package.json +1 -1
- package/package.json +1 -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 +23 -23
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Hydrate Runner v4.45.2-dev.
|
|
2
|
+
Stencil Hydrate Runner v4.45.2-dev.1794373558.f615a1c | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -11288,22 +11288,26 @@ var MockNodeList = class {
|
|
|
11288
11288
|
this.length = length;
|
|
11289
11289
|
}
|
|
11290
11290
|
};
|
|
11291
|
+
var MockElementInternals = class {
|
|
11292
|
+
states = /* @__PURE__ */ new Set();
|
|
11293
|
+
setFormValue() {
|
|
11294
|
+
}
|
|
11295
|
+
setValidity() {
|
|
11296
|
+
}
|
|
11297
|
+
checkValidity() {
|
|
11298
|
+
return true;
|
|
11299
|
+
}
|
|
11300
|
+
reportValidity() {
|
|
11301
|
+
return true;
|
|
11302
|
+
}
|
|
11303
|
+
};
|
|
11291
11304
|
var MockElement = class extends MockNode2 {
|
|
11292
11305
|
__namespaceURI;
|
|
11293
11306
|
__attributeMap;
|
|
11294
11307
|
__shadowRoot;
|
|
11295
11308
|
__style;
|
|
11296
11309
|
attachInternals() {
|
|
11297
|
-
return new
|
|
11298
|
-
get: function(_target, prop, _receiver) {
|
|
11299
|
-
if ("process" in globalThis && globalThis.process.env.__STENCIL_SPEC_TESTS__) {
|
|
11300
|
-
console.error(
|
|
11301
|
-
`NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
|
|
11302
|
-
Testing components with ElementInternals is fully supported in e2e tests.`
|
|
11303
|
-
);
|
|
11304
|
-
}
|
|
11305
|
-
}
|
|
11306
|
-
});
|
|
11310
|
+
return new MockElementInternals();
|
|
11307
11311
|
}
|
|
11308
11312
|
constructor(ownerDocument, nodeName, namespaceURI = null) {
|
|
11309
11313
|
super(ownerDocument, 1 /* ELEMENT_NODE */, typeof nodeName === "string" ? nodeName : null, null);
|
package/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal",
|
|
3
|
-
"version": "4.45.2-dev.
|
|
3
|
+
"version": "4.45.2-dev.1794373558.f615a1c",
|
|
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",
|
|
@@ -3302,7 +3302,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
3302
3302
|
}
|
|
3303
3303
|
const existingStyleElm = (import_app_data7.BUILD.hydrateClientSide || import_app_data7.BUILD.hotModuleReplacement) && styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
3304
3304
|
if (existingStyleElm) {
|
|
3305
|
-
|
|
3305
|
+
if (import_app_data7.BUILD.hotModuleReplacement) {
|
|
3306
|
+
existingStyleElm.textContent = style;
|
|
3307
|
+
}
|
|
3308
|
+
appliedStyles.add(scopeId2);
|
|
3306
3309
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
3307
3310
|
styleElm = win.document.createElement("style");
|
|
3308
3311
|
styleElm.textContent = style;
|
|
@@ -3310,7 +3313,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
3310
3313
|
if (nonce != null) {
|
|
3311
3314
|
styleElm.setAttribute("nonce", nonce);
|
|
3312
3315
|
}
|
|
3313
|
-
if (
|
|
3316
|
+
if (import_app_data7.BUILD.hydrateServerSide || import_app_data7.BUILD.hotModuleReplacement) {
|
|
3314
3317
|
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
3315
3318
|
}
|
|
3316
3319
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
@@ -3404,14 +3407,21 @@ var attachStyles = (hostRef) => {
|
|
|
3404
3407
|
};
|
|
3405
3408
|
var getScopeId = (cmp, mode) => "sc-" + (import_app_data7.BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
3406
3409
|
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
3407
|
-
var hydrateScopedToShadow = () => {
|
|
3410
|
+
var hydrateScopedToShadow = (cmpMetas) => {
|
|
3408
3411
|
if (!win.document) {
|
|
3409
3412
|
return;
|
|
3410
3413
|
}
|
|
3411
|
-
const
|
|
3414
|
+
const styleElms = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
3412
3415
|
let i2 = 0;
|
|
3413
|
-
for (; i2 <
|
|
3414
|
-
|
|
3416
|
+
for (; i2 < styleElms.length; i2++) {
|
|
3417
|
+
const scopeId2 = styleElms[i2].getAttribute(HYDRATED_STYLE_ID);
|
|
3418
|
+
const isShadowCmpStyle = cmpMetas.some((cmpMeta) => {
|
|
3419
|
+
const cmpScopeId = "sc-" + cmpMeta.$tagName$;
|
|
3420
|
+
return cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && (scopeId2 === cmpScopeId || import_app_data7.BUILD.mode && cmpMeta.$flags$ & 32 /* hasMode */ && scopeId2.startsWith(cmpScopeId + "-"));
|
|
3421
|
+
});
|
|
3422
|
+
if (isShadowCmpStyle) {
|
|
3423
|
+
registerStyle(scopeId2, convertScopedToShadow(styleElms[i2].innerHTML), true);
|
|
3424
|
+
}
|
|
3415
3425
|
}
|
|
3416
3426
|
};
|
|
3417
3427
|
|
|
@@ -3732,7 +3742,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
3732
3742
|
const scopeId2 = hostElm["s-sc"];
|
|
3733
3743
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
3734
3744
|
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
3735
|
-
if (childNodeType) {
|
|
3745
|
+
if (childNodeType && node !== hostElm) {
|
|
3736
3746
|
childIdSplt = childNodeType.split(".");
|
|
3737
3747
|
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
3738
3748
|
childVNode = createSimpleVNode({
|
|
@@ -5922,7 +5932,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
5922
5932
|
const entry = (_a3 = cmpMeta.$watchers$) == null ? void 0 : _a3[attrName];
|
|
5923
5933
|
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
5924
5934
|
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
5925
|
-
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
5935
|
+
if ((instance == null ? void 0 : instance[watchMethodName]) != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
5926
5936
|
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
5927
5937
|
}
|
|
5928
5938
|
});
|
|
@@ -6252,7 +6262,7 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
6252
6262
|
patchCloneNode(Cstr.prototype);
|
|
6253
6263
|
}
|
|
6254
6264
|
if (import_app_data20.BUILD.hydrateClientSide && import_app_data20.BUILD.shadowDom) {
|
|
6255
|
-
hydrateScopedToShadow();
|
|
6265
|
+
hydrateScopedToShadow([cmpMeta]);
|
|
6256
6266
|
}
|
|
6257
6267
|
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
6258
6268
|
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
@@ -6375,7 +6385,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
6375
6385
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
6376
6386
|
}
|
|
6377
6387
|
if (import_app_data21.BUILD.hydrateClientSide && import_app_data21.BUILD.shadowDom) {
|
|
6378
|
-
|
|
6388
|
+
const cmpMetas = [];
|
|
6389
|
+
lazyBundles.map((lazyBundle) => lazyBundle[1].map(([$flags$, $tagName$]) => cmpMetas.push({ $flags$, $tagName$ })));
|
|
6390
|
+
hydrateScopedToShadow(cmpMetas);
|
|
6379
6391
|
}
|
|
6380
6392
|
let hasSlotRelocation = false;
|
|
6381
6393
|
lazyBundles.map((lazyBundle) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.45.2-dev.
|
|
3
|
+
"version": "4.45.2-dev.1794373558.f615a1c",
|
|
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc (CommonJS) v4.45.2-dev.
|
|
2
|
+
Stencil Mock Doc (CommonJS) v4.45.2-dev.1794373558.f615a1c | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -6839,22 +6839,26 @@ var MockNodeList = class {
|
|
|
6839
6839
|
this.length = length;
|
|
6840
6840
|
}
|
|
6841
6841
|
};
|
|
6842
|
+
var MockElementInternals = class {
|
|
6843
|
+
states = /* @__PURE__ */ new Set();
|
|
6844
|
+
setFormValue() {
|
|
6845
|
+
}
|
|
6846
|
+
setValidity() {
|
|
6847
|
+
}
|
|
6848
|
+
checkValidity() {
|
|
6849
|
+
return true;
|
|
6850
|
+
}
|
|
6851
|
+
reportValidity() {
|
|
6852
|
+
return true;
|
|
6853
|
+
}
|
|
6854
|
+
};
|
|
6842
6855
|
var MockElement = class extends MockNode2 {
|
|
6843
6856
|
__namespaceURI;
|
|
6844
6857
|
__attributeMap;
|
|
6845
6858
|
__shadowRoot;
|
|
6846
6859
|
__style;
|
|
6847
6860
|
attachInternals() {
|
|
6848
|
-
return new
|
|
6849
|
-
get: function(_target, prop, _receiver) {
|
|
6850
|
-
if ("process" in globalThis && globalThis.process.env.__STENCIL_SPEC_TESTS__) {
|
|
6851
|
-
console.error(
|
|
6852
|
-
`NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
|
|
6853
|
-
Testing components with ElementInternals is fully supported in e2e tests.`
|
|
6854
|
-
);
|
|
6855
|
-
}
|
|
6856
|
-
}
|
|
6857
|
-
});
|
|
6861
|
+
return new MockElementInternals();
|
|
6858
6862
|
}
|
|
6859
6863
|
constructor(ownerDocument, nodeName, namespaceURI = null) {
|
|
6860
6864
|
super(ownerDocument, 1 /* ELEMENT_NODE */, typeof nodeName === "string" ? nodeName : null, null);
|
package/mock-doc/index.d.ts
CHANGED
|
@@ -542,7 +542,17 @@ declare class MockNodeList {
|
|
|
542
542
|
ownerDocument: any;
|
|
543
543
|
constructor(ownerDocument: any, childNodes: MockNode[], length: number);
|
|
544
544
|
}
|
|
545
|
-
|
|
545
|
+
/**
|
|
546
|
+
* Just enough of `ElementInternals` for form-associated components to run without throwing.
|
|
547
|
+
* There is no form, validation or accessibility tree to update, so the methods do nothing.
|
|
548
|
+
*/
|
|
549
|
+
declare class MockElementInternals {
|
|
550
|
+
states: Set<string>;
|
|
551
|
+
setFormValue(): void;
|
|
552
|
+
setValidity(): void;
|
|
553
|
+
checkValidity(): boolean;
|
|
554
|
+
reportValidity(): boolean;
|
|
555
|
+
}
|
|
546
556
|
declare class MockElement extends MockNode {
|
|
547
557
|
attachInternals(): MockElementInternals;
|
|
548
558
|
constructor(ownerDocument: any, nodeName: string | null, namespaceURI?: string | null);
|
package/mock-doc/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc v4.45.2-dev.
|
|
2
|
+
Stencil Mock Doc v4.45.2-dev.1794373558.f615a1c | 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;
|
|
@@ -6787,22 +6787,26 @@ var MockNodeList = class {
|
|
|
6787
6787
|
this.length = length;
|
|
6788
6788
|
}
|
|
6789
6789
|
};
|
|
6790
|
+
var MockElementInternals = class {
|
|
6791
|
+
states = /* @__PURE__ */ new Set();
|
|
6792
|
+
setFormValue() {
|
|
6793
|
+
}
|
|
6794
|
+
setValidity() {
|
|
6795
|
+
}
|
|
6796
|
+
checkValidity() {
|
|
6797
|
+
return true;
|
|
6798
|
+
}
|
|
6799
|
+
reportValidity() {
|
|
6800
|
+
return true;
|
|
6801
|
+
}
|
|
6802
|
+
};
|
|
6790
6803
|
var MockElement = class extends MockNode2 {
|
|
6791
6804
|
__namespaceURI;
|
|
6792
6805
|
__attributeMap;
|
|
6793
6806
|
__shadowRoot;
|
|
6794
6807
|
__style;
|
|
6795
6808
|
attachInternals() {
|
|
6796
|
-
return new
|
|
6797
|
-
get: function(_target, prop, _receiver) {
|
|
6798
|
-
if ("process" in globalThis && globalThis.process.env.__STENCIL_SPEC_TESTS__) {
|
|
6799
|
-
console.error(
|
|
6800
|
-
`NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
|
|
6801
|
-
Testing components with ElementInternals is fully supported in e2e tests.`
|
|
6802
|
-
);
|
|
6803
|
-
}
|
|
6804
|
-
}
|
|
6805
|
-
});
|
|
6809
|
+
return new MockElementInternals();
|
|
6806
6810
|
}
|
|
6807
6811
|
constructor(ownerDocument, nodeName, namespaceURI = null) {
|
|
6808
6812
|
super(ownerDocument, 1 /* ELEMENT_NODE */, typeof nodeName === "string" ? nodeName : null, null);
|
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED