@stencil/core 4.45.0 → 4.45.1-dev.1790312934.e2e5dfc
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 +42 -17
- 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 +28 -27
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +38 -27
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +59 -41
- package/internal/package.json +1 -1
- package/internal/testing/index.js +28 -27
- 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 +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 +9 -9
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +4 -4
- package/testing/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Hydrate Platform v4.45.
|
|
2
|
+
Stencil Hydrate Platform v4.45.1-dev.1790312934.e2e5dfc | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -2180,8 +2180,11 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
|
2180
2180
|
};
|
|
2181
2181
|
|
|
2182
2182
|
// src/runtime/mode.ts
|
|
2183
|
-
var computeMode = (elm) =>
|
|
2184
|
-
var setMode = (handler) =>
|
|
2183
|
+
var computeMode = (elm) => modeResolver.map((h2) => h2(elm)).find((m) => !!m);
|
|
2184
|
+
var setMode = (handler) => {
|
|
2185
|
+
modeResolver.length = 0;
|
|
2186
|
+
modeResolver.push(handler);
|
|
2187
|
+
};
|
|
2185
2188
|
var getMode = (ref) => {
|
|
2186
2189
|
var _a2;
|
|
2187
2190
|
return (_a2 = getHostRef(ref)) == null ? void 0 : _a2.$modeName$;
|
|
@@ -3618,6 +3621,19 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
3618
3621
|
|
|
3619
3622
|
// src/runtime/proxy-component.ts
|
|
3620
3623
|
var reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? "" : String(propValue);
|
|
3624
|
+
var replayPendingSetterValues = (hostRef, cmpMeta) => {
|
|
3625
|
+
var _a2;
|
|
3626
|
+
const instance = hostRef.$lazyInstance$;
|
|
3627
|
+
if (!instance) return;
|
|
3628
|
+
for (const [memberName, [memberFlags]] of Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {})) {
|
|
3629
|
+
if (memberFlags & 4096 /* Setter */ && hostRef.$instanceValues$.has(memberName)) {
|
|
3630
|
+
const pendingValue = hostRef.$instanceValues$.get(memberName);
|
|
3631
|
+
if (instance[memberName] !== pendingValue) {
|
|
3632
|
+
instance[memberName] = pendingValue;
|
|
3633
|
+
}
|
|
3634
|
+
}
|
|
3635
|
+
}
|
|
3636
|
+
};
|
|
3621
3637
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
3622
3638
|
var _a2, _b;
|
|
3623
3639
|
const prototype = Cstr.prototype;
|
|
@@ -3674,9 +3690,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
3674
3690
|
return getValue(this, memberName);
|
|
3675
3691
|
}
|
|
3676
3692
|
const ref = getHostRef(this);
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
return instance[memberName];
|
|
3693
|
+
if (!ref) return prototype[memberName];
|
|
3694
|
+
return ref.$lazyInstance$ ? ref.$lazyInstance$[memberName] : getValue(this, memberName);
|
|
3680
3695
|
}
|
|
3681
3696
|
if (!BUILD17.lazyLoad) {
|
|
3682
3697
|
return origGetter ? origGetter.apply(this) : getValue(this, memberName);
|
|
@@ -3730,13 +3745,6 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3730
3745
|
if (BUILD17.lazyLoad) {
|
|
3731
3746
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
3732
3747
|
setValue(this, memberName, newValue, cmpMeta);
|
|
3733
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
3734
|
-
ref.$fetchedCbList$.push(() => {
|
|
3735
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
3736
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
3737
|
-
}
|
|
3738
|
-
});
|
|
3739
|
-
}
|
|
3740
3748
|
return;
|
|
3741
3749
|
}
|
|
3742
3750
|
const parsedValue = parsePropertyValue(
|
|
@@ -3744,24 +3752,15 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3744
3752
|
memberFlags,
|
|
3745
3753
|
BUILD17.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
3746
3754
|
);
|
|
3747
|
-
|
|
3755
|
+
if (ref.$lazyInstance$) {
|
|
3748
3756
|
const currentValue = ref.$lazyInstance$[memberName];
|
|
3749
3757
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
3750
3758
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
3751
3759
|
}
|
|
3752
|
-
ref.$lazyInstance$[memberName] =
|
|
3760
|
+
ref.$lazyInstance$[memberName] = parsedValue;
|
|
3753
3761
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
3754
|
-
};
|
|
3755
|
-
if (ref.$lazyInstance$) {
|
|
3756
|
-
setterSetVal(parsedValue);
|
|
3757
3762
|
} else {
|
|
3758
3763
|
ref.$instanceValues$.set(memberName, parsedValue);
|
|
3759
|
-
ref.$fetchedCbList$.push(() => {
|
|
3760
|
-
const pendingValue = ref.$instanceValues$.get(memberName);
|
|
3761
|
-
if (ref.$lazyInstance$[memberName] !== pendingValue) {
|
|
3762
|
-
setterSetVal(pendingValue);
|
|
3763
|
-
}
|
|
3764
|
-
});
|
|
3765
3764
|
}
|
|
3766
3765
|
}
|
|
3767
3766
|
}
|
|
@@ -3843,7 +3842,8 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
3843
3842
|
}
|
|
3844
3843
|
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
3845
3844
|
if (isBooleanTarget) {
|
|
3846
|
-
|
|
3845
|
+
const isFormAssociated = BUILD17.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */);
|
|
3846
|
+
newValue = newValue === null || newValue === "false" && !isFormAssociated ? false : true;
|
|
3847
3847
|
}
|
|
3848
3848
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
3849
3849
|
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
@@ -3919,6 +3919,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
3919
3919
|
}
|
|
3920
3920
|
if (BUILD18.member) {
|
|
3921
3921
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
3922
|
+
replayPendingSetterValues(hostRef, cmpMeta);
|
|
3922
3923
|
}
|
|
3923
3924
|
if (BUILD18.propChangeCallback) {
|
|
3924
3925
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
@@ -6475,6 +6476,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve, abortController)
|
|
|
6475
6476
|
setScopedSSR(opts);
|
|
6476
6477
|
let tmrId;
|
|
6477
6478
|
let ranCompleted = false;
|
|
6479
|
+
let modeResolverSnapshot;
|
|
6478
6480
|
const abortedPromise = new Promise((res) => {
|
|
6479
6481
|
if (abortController.signal.aborted) {
|
|
6480
6482
|
res();
|
|
@@ -6486,6 +6488,11 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve, abortController)
|
|
|
6486
6488
|
globalThis.clearTimeout(tmrId);
|
|
6487
6489
|
createdElements.clear();
|
|
6488
6490
|
connectedElements.clear();
|
|
6491
|
+
if (modeResolverSnapshot) {
|
|
6492
|
+
modeResolver.length = 0;
|
|
6493
|
+
modeResolver.push(...modeResolverSnapshot);
|
|
6494
|
+
modeResolverSnapshot = void 0;
|
|
6495
|
+
}
|
|
6489
6496
|
if (!ranCompleted) {
|
|
6490
6497
|
ranCompleted = true;
|
|
6491
6498
|
try {
|
|
@@ -6578,6 +6585,10 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve, abortController)
|
|
|
6578
6585
|
tmrId = globalThis.setTimeout(timeoutExceeded, opts.timeout);
|
|
6579
6586
|
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./", win2.document.baseURI).href;
|
|
6580
6587
|
globalScripts();
|
|
6588
|
+
if (Array.isArray(opts.modes)) {
|
|
6589
|
+
modeResolverSnapshot = modeResolver.slice();
|
|
6590
|
+
opts.modes.forEach((mode) => setMode(mode));
|
|
6591
|
+
}
|
|
6581
6592
|
patchChild2(win2.document.body);
|
|
6582
6593
|
waitLoop2().then(hydratedComplete).catch(hydratedError);
|
|
6583
6594
|
} catch (e) {
|
|
@@ -6889,7 +6900,7 @@ var Build = {
|
|
|
6889
6900
|
isTesting: false
|
|
6890
6901
|
};
|
|
6891
6902
|
var styles = /* @__PURE__ */ new Map();
|
|
6892
|
-
var
|
|
6903
|
+
var modeResolver = [];
|
|
6893
6904
|
var setScopedSSR = (opts) => {
|
|
6894
6905
|
scopedSSR = BUILD25.shadowDom && opts.serializeShadowRoot !== false && opts.serializeShadowRoot !== "declarative-shadow-dom";
|
|
6895
6906
|
};
|
|
@@ -6930,7 +6941,7 @@ export {
|
|
|
6930
6941
|
jsxDEV,
|
|
6931
6942
|
jsxs,
|
|
6932
6943
|
loadModule,
|
|
6933
|
-
|
|
6944
|
+
modeResolver,
|
|
6934
6945
|
needsScopedSSR,
|
|
6935
6946
|
nextTick,
|
|
6936
6947
|
parsePropertyValue,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/hydrate",
|
|
3
|
-
"version": "4.45.
|
|
3
|
+
"version": "4.45.1-dev.1790312934.e2e5dfc",
|
|
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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Hydrate Runner v4.45.
|
|
2
|
+
Stencil Hydrate Runner v4.45.1-dev.1790312934.e2e5dfc | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -14533,9 +14533,6 @@ var STENCIL_DEV_MODE = BUILD4.isTesting ? ["STENCIL:"] : [
|
|
|
14533
14533
|
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
14534
14534
|
];
|
|
14535
14535
|
|
|
14536
|
-
// src/client/client-style.ts
|
|
14537
|
-
var modeResolutionChain = [];
|
|
14538
|
-
|
|
14539
14536
|
// src/client/client-task-queue.ts
|
|
14540
14537
|
import { BUILD as BUILD7 } from "@stencil/core/internal/app-data";
|
|
14541
14538
|
|
|
@@ -14558,40 +14555,40 @@ var supportsConstructableStylesheets = BUILD6.constructableCSS ? /* @__PURE__ */
|
|
|
14558
14555
|
})() : false;
|
|
14559
14556
|
|
|
14560
14557
|
// src/client/index.ts
|
|
14561
|
-
import { BUILD as
|
|
14558
|
+
import { BUILD as BUILD8, Env, NAMESPACE } from "@stencil/core/internal/app-data";
|
|
14562
14559
|
|
|
14563
14560
|
// src/runtime/bootstrap-custom-element.ts
|
|
14564
|
-
import { BUILD as
|
|
14561
|
+
import { BUILD as BUILD28 } from "@stencil/core/internal/app-data";
|
|
14565
14562
|
|
|
14566
14563
|
// src/utils/shadow-root.ts
|
|
14567
|
-
import { BUILD as
|
|
14564
|
+
import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
|
|
14568
14565
|
|
|
14569
14566
|
// src/runtime/connected-callback.ts
|
|
14570
|
-
import { BUILD as
|
|
14567
|
+
import { BUILD as BUILD26 } from "@stencil/core/internal/app-data";
|
|
14571
14568
|
|
|
14572
14569
|
// src/runtime/client-hydrate.ts
|
|
14573
|
-
import { BUILD as
|
|
14570
|
+
import { BUILD as BUILD15 } from "@stencil/core/internal/app-data";
|
|
14574
14571
|
|
|
14575
14572
|
// src/runtime/dom-extras.ts
|
|
14576
|
-
import { BUILD as
|
|
14573
|
+
import { BUILD as BUILD11 } from "@stencil/core/internal/app-data";
|
|
14577
14574
|
|
|
14578
14575
|
// src/runtime/slot-polyfill-utils.ts
|
|
14579
|
-
import { BUILD as
|
|
14576
|
+
import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
|
|
14580
14577
|
|
|
14581
14578
|
// src/runtime/profile.ts
|
|
14582
|
-
import { BUILD as
|
|
14579
|
+
import { BUILD as BUILD12 } from "@stencil/core/internal/app-data";
|
|
14583
14580
|
|
|
14584
14581
|
// src/runtime/styles.ts
|
|
14585
|
-
import { BUILD as
|
|
14582
|
+
import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
|
|
14586
14583
|
|
|
14587
14584
|
// src/runtime/vdom/h.ts
|
|
14588
|
-
import { BUILD as
|
|
14585
|
+
import { BUILD as BUILD14 } from "@stencil/core/internal/app-data";
|
|
14589
14586
|
|
|
14590
14587
|
// src/utils/helpers.ts
|
|
14591
14588
|
var isString = (v) => typeof v === "string";
|
|
14592
14589
|
|
|
14593
14590
|
// src/runtime/initialize-component.ts
|
|
14594
|
-
import { BUILD as
|
|
14591
|
+
import { BUILD as BUILD25 } from "@stencil/core/internal/app-data";
|
|
14595
14592
|
|
|
14596
14593
|
// src/utils/shadow-css.ts
|
|
14597
14594
|
/**
|
|
@@ -14614,17 +14611,14 @@ var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffi
|
|
|
14614
14611
|
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
14615
14612
|
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
14616
14613
|
|
|
14617
|
-
// src/runtime/mode.ts
|
|
14618
|
-
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
14619
|
-
|
|
14620
14614
|
// src/runtime/proxy-component.ts
|
|
14621
|
-
import { BUILD as
|
|
14615
|
+
import { BUILD as BUILD24 } from "@stencil/core/internal/app-data";
|
|
14622
14616
|
|
|
14623
14617
|
// src/runtime/set-value.ts
|
|
14624
|
-
import { BUILD as
|
|
14618
|
+
import { BUILD as BUILD23 } from "@stencil/core/internal/app-data";
|
|
14625
14619
|
|
|
14626
14620
|
// src/runtime/parse-property-value.ts
|
|
14627
|
-
import { BUILD as
|
|
14621
|
+
import { BUILD as BUILD16 } from "@stencil/core/internal/app-data";
|
|
14628
14622
|
|
|
14629
14623
|
// src/utils/local-value.ts
|
|
14630
14624
|
var LocalValue = class _LocalValue {
|
|
@@ -14981,37 +14975,37 @@ function deserializeProperty(value) {
|
|
|
14981
14975
|
}
|
|
14982
14976
|
|
|
14983
14977
|
// src/runtime/update-component.ts
|
|
14984
|
-
import { BUILD as
|
|
14978
|
+
import { BUILD as BUILD22, NAMESPACE as NAMESPACE2 } from "@stencil/core/internal/app-data";
|
|
14985
14979
|
|
|
14986
14980
|
// src/runtime/event-emitter.ts
|
|
14987
|
-
import { BUILD as
|
|
14981
|
+
import { BUILD as BUILD18 } from "@stencil/core/internal/app-data";
|
|
14988
14982
|
|
|
14989
14983
|
// src/runtime/element.ts
|
|
14990
|
-
import { BUILD as
|
|
14984
|
+
import { BUILD as BUILD17 } from "@stencil/core/internal/app-data";
|
|
14991
14985
|
|
|
14992
14986
|
// src/runtime/vdom/vdom-render.ts
|
|
14993
|
-
import { BUILD as
|
|
14987
|
+
import { BUILD as BUILD21 } from "@stencil/core/internal/app-data";
|
|
14994
14988
|
|
|
14995
14989
|
// src/runtime/vdom/update-element.ts
|
|
14996
|
-
import { BUILD as
|
|
14990
|
+
import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
|
|
14997
14991
|
|
|
14998
14992
|
// src/runtime/vdom/set-accessor.ts
|
|
14999
|
-
import { BUILD as
|
|
14993
|
+
import { BUILD as BUILD19 } from "@stencil/core/internal/app-data";
|
|
15000
14994
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
15001
14995
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
15002
14996
|
|
|
15003
14997
|
// src/runtime/disconnected-callback.ts
|
|
15004
|
-
import { BUILD as
|
|
14998
|
+
import { BUILD as BUILD27 } from "@stencil/core/internal/app-data";
|
|
15005
14999
|
|
|
15006
15000
|
// src/runtime/bootstrap-lazy.ts
|
|
15007
|
-
import { BUILD as
|
|
15001
|
+
import { BUILD as BUILD29 } from "@stencil/core/internal/app-data";
|
|
15008
15002
|
|
|
15009
15003
|
// src/runtime/host-listener.ts
|
|
15010
|
-
import { BUILD as
|
|
15004
|
+
import { BUILD as BUILD30 } from "@stencil/core/internal/app-data";
|
|
15011
15005
|
|
|
15012
15006
|
// src/runtime/mixin.ts
|
|
15013
|
-
import { BUILD as
|
|
15014
|
-
var baseClass =
|
|
15007
|
+
import { BUILD as BUILD31 } from "@stencil/core/internal/app-data";
|
|
15008
|
+
var baseClass = BUILD31.lazyLoad ? class {
|
|
15015
15009
|
} : globalThis.HTMLElement || class {
|
|
15016
15010
|
};
|
|
15017
15011
|
|
|
@@ -16729,6 +16723,37 @@ var relocateMetaCharset = (doc) => {
|
|
|
16729
16723
|
};
|
|
16730
16724
|
|
|
16731
16725
|
// src/compiler/style/css-parser/parse-css.ts
|
|
16726
|
+
var splitSelectorList = (selectors) => {
|
|
16727
|
+
const parts = [];
|
|
16728
|
+
let depth = 0;
|
|
16729
|
+
let quote = null;
|
|
16730
|
+
let start = 0;
|
|
16731
|
+
for (let i = 0; i < selectors.length; i++) {
|
|
16732
|
+
const ch = selectors[i];
|
|
16733
|
+
if (quote) {
|
|
16734
|
+
if (ch === "\\") {
|
|
16735
|
+
i++;
|
|
16736
|
+
} else if (ch === quote) {
|
|
16737
|
+
quote = null;
|
|
16738
|
+
}
|
|
16739
|
+
continue;
|
|
16740
|
+
}
|
|
16741
|
+
if (ch === '"' || ch === "'") {
|
|
16742
|
+
quote = ch;
|
|
16743
|
+
} else if (ch === "\\") {
|
|
16744
|
+
i++;
|
|
16745
|
+
} else if (ch === "(") {
|
|
16746
|
+
depth++;
|
|
16747
|
+
} else if (ch === ")") {
|
|
16748
|
+
depth = Math.max(0, depth - 1);
|
|
16749
|
+
} else if (ch === "," && depth === 0) {
|
|
16750
|
+
parts.push(selectors.slice(start, i));
|
|
16751
|
+
start = i + 1;
|
|
16752
|
+
}
|
|
16753
|
+
}
|
|
16754
|
+
parts.push(selectors.slice(start));
|
|
16755
|
+
return parts.map((s) => s.trim());
|
|
16756
|
+
};
|
|
16732
16757
|
var parseCss = (css, filePath) => {
|
|
16733
16758
|
let lineno = 1;
|
|
16734
16759
|
let column = 1;
|
|
@@ -16850,11 +16875,8 @@ var parseCss = (css, filePath) => {
|
|
|
16850
16875
|
const selector = () => {
|
|
16851
16876
|
const m = match2(/^([^{]+)/);
|
|
16852
16877
|
if (!m) return null;
|
|
16853
|
-
|
|
16854
|
-
|
|
16855
|
-
}).split(/\s*(?![^(]*\)),\s*/).map(function(s) {
|
|
16856
|
-
return s.replace(/\u200C/g, ",");
|
|
16857
|
-
});
|
|
16878
|
+
const cleaned = trim(m[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g, "");
|
|
16879
|
+
return splitSelectorList(cleaned);
|
|
16858
16880
|
};
|
|
16859
16881
|
const declaration = () => {
|
|
16860
16882
|
const pos = position();
|
|
@@ -18028,10 +18050,6 @@ async function render2(win2, opts, results) {
|
|
|
18028
18050
|
try {
|
|
18029
18051
|
await Promise.resolve(beforeHydrateFn(win2.document));
|
|
18030
18052
|
return new Promise((resolve) => {
|
|
18031
|
-
if (Array.isArray(opts.modes)) {
|
|
18032
|
-
modeResolutionChain.length = 0;
|
|
18033
|
-
opts.modes.forEach((mode) => setMode(mode));
|
|
18034
|
-
}
|
|
18035
18053
|
return hydrateFactory(win2, opts, results, afterHydrate, resolve);
|
|
18036
18054
|
});
|
|
18037
18055
|
} catch (e) {
|
package/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal",
|
|
3
|
-
"version": "4.45.
|
|
3
|
+
"version": "4.45.1-dev.1790312934.e2e5dfc",
|
|
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",
|
|
@@ -285,7 +285,7 @@ __export(index_exports, {
|
|
|
285
285
|
jsxDEV: () => jsxDEV,
|
|
286
286
|
jsxs: () => jsxs,
|
|
287
287
|
loadModule: () => loadModule,
|
|
288
|
-
|
|
288
|
+
modeResolver: () => modeResolver,
|
|
289
289
|
needsScopedSSR: () => needsScopedSSR,
|
|
290
290
|
nextTick: () => nextTick,
|
|
291
291
|
normalizeWatchers: () => normalizeWatchers,
|
|
@@ -335,7 +335,7 @@ var Build = {
|
|
|
335
335
|
|
|
336
336
|
// src/testing/platform/testing-constants.ts
|
|
337
337
|
var styles = /* @__PURE__ */ new Map();
|
|
338
|
-
var
|
|
338
|
+
var modeResolver = [];
|
|
339
339
|
var cstrs = /* @__PURE__ */ new Map();
|
|
340
340
|
var queuedTicks = [];
|
|
341
341
|
var queuedWriteTasks = [];
|
|
@@ -4303,8 +4303,11 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
|
4303
4303
|
};
|
|
4304
4304
|
|
|
4305
4305
|
// src/runtime/mode.ts
|
|
4306
|
-
var computeMode = (elm) =>
|
|
4307
|
-
var setMode = (handler) =>
|
|
4306
|
+
var computeMode = (elm) => modeResolver.map((h2) => h2(elm)).find((m) => !!m);
|
|
4307
|
+
var setMode = (handler) => {
|
|
4308
|
+
modeResolver.length = 0;
|
|
4309
|
+
modeResolver.push(handler);
|
|
4310
|
+
};
|
|
4308
4311
|
var getMode = (ref) => {
|
|
4309
4312
|
var _a2;
|
|
4310
4313
|
return (_a2 = getHostRef(ref)) == null ? void 0 : _a2.$modeName$;
|
|
@@ -5606,6 +5609,19 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
5606
5609
|
|
|
5607
5610
|
// src/runtime/proxy-component.ts
|
|
5608
5611
|
var reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? "" : String(propValue);
|
|
5612
|
+
var replayPendingSetterValues = (hostRef, cmpMeta) => {
|
|
5613
|
+
var _a2;
|
|
5614
|
+
const instance = hostRef.$lazyInstance$;
|
|
5615
|
+
if (!instance) return;
|
|
5616
|
+
for (const [memberName, [memberFlags]] of Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {})) {
|
|
5617
|
+
if (memberFlags & 4096 /* Setter */ && hostRef.$instanceValues$.has(memberName)) {
|
|
5618
|
+
const pendingValue = hostRef.$instanceValues$.get(memberName);
|
|
5619
|
+
if (instance[memberName] !== pendingValue) {
|
|
5620
|
+
instance[memberName] = pendingValue;
|
|
5621
|
+
}
|
|
5622
|
+
}
|
|
5623
|
+
}
|
|
5624
|
+
};
|
|
5609
5625
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
5610
5626
|
var _a2, _b;
|
|
5611
5627
|
const prototype = Cstr.prototype;
|
|
@@ -5662,9 +5678,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
5662
5678
|
return getValue(this, memberName);
|
|
5663
5679
|
}
|
|
5664
5680
|
const ref = getHostRef(this);
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
return instance[memberName];
|
|
5681
|
+
if (!ref) return prototype[memberName];
|
|
5682
|
+
return ref.$lazyInstance$ ? ref.$lazyInstance$[memberName] : getValue(this, memberName);
|
|
5668
5683
|
}
|
|
5669
5684
|
if (!import_app_data16.BUILD.lazyLoad) {
|
|
5670
5685
|
return origGetter ? origGetter.apply(this) : getValue(this, memberName);
|
|
@@ -5718,13 +5733,6 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
5718
5733
|
if (import_app_data16.BUILD.lazyLoad) {
|
|
5719
5734
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
5720
5735
|
setValue(this, memberName, newValue, cmpMeta);
|
|
5721
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
5722
|
-
ref.$fetchedCbList$.push(() => {
|
|
5723
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
5724
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
5725
|
-
}
|
|
5726
|
-
});
|
|
5727
|
-
}
|
|
5728
5736
|
return;
|
|
5729
5737
|
}
|
|
5730
5738
|
const parsedValue = parsePropertyValue(
|
|
@@ -5732,24 +5740,15 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
5732
5740
|
memberFlags,
|
|
5733
5741
|
import_app_data16.BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
5734
5742
|
);
|
|
5735
|
-
|
|
5743
|
+
if (ref.$lazyInstance$) {
|
|
5736
5744
|
const currentValue = ref.$lazyInstance$[memberName];
|
|
5737
5745
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
5738
5746
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
5739
5747
|
}
|
|
5740
|
-
ref.$lazyInstance$[memberName] =
|
|
5748
|
+
ref.$lazyInstance$[memberName] = parsedValue;
|
|
5741
5749
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
5742
|
-
};
|
|
5743
|
-
if (ref.$lazyInstance$) {
|
|
5744
|
-
setterSetVal(parsedValue);
|
|
5745
5750
|
} else {
|
|
5746
5751
|
ref.$instanceValues$.set(memberName, parsedValue);
|
|
5747
|
-
ref.$fetchedCbList$.push(() => {
|
|
5748
|
-
const pendingValue = ref.$instanceValues$.get(memberName);
|
|
5749
|
-
if (ref.$lazyInstance$[memberName] !== pendingValue) {
|
|
5750
|
-
setterSetVal(pendingValue);
|
|
5751
|
-
}
|
|
5752
|
-
});
|
|
5753
5752
|
}
|
|
5754
5753
|
}
|
|
5755
5754
|
}
|
|
@@ -5831,7 +5830,8 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
5831
5830
|
}
|
|
5832
5831
|
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
5833
5832
|
if (isBooleanTarget) {
|
|
5834
|
-
|
|
5833
|
+
const isFormAssociated = import_app_data16.BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */);
|
|
5834
|
+
newValue = newValue === null || newValue === "false" && !isFormAssociated ? false : true;
|
|
5835
5835
|
}
|
|
5836
5836
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
5837
5837
|
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
@@ -5907,6 +5907,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
5907
5907
|
}
|
|
5908
5908
|
if (import_app_data17.BUILD.member) {
|
|
5909
5909
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
5910
|
+
replayPendingSetterValues(hostRef, cmpMeta);
|
|
5910
5911
|
}
|
|
5911
5912
|
if (import_app_data17.BUILD.propChangeCallback) {
|
|
5912
5913
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
@@ -6776,7 +6777,7 @@ var scopedSSR = false;
|
|
|
6776
6777
|
jsxDEV,
|
|
6777
6778
|
jsxs,
|
|
6778
6779
|
loadModule,
|
|
6779
|
-
|
|
6780
|
+
modeResolver,
|
|
6780
6781
|
needsScopedSSR,
|
|
6781
6782
|
nextTick,
|
|
6782
6783
|
normalizeWatchers,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.45.
|
|
3
|
+
"version": "4.45.1-dev.1790312934.e2e5dfc",
|
|
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.45.
|
|
2
|
+
Stencil Mock Doc v4.45.1-dev.1790312934.e2e5dfc | 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
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED