@stencil/core 4.45.0 → 4.45.1
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 +10 -6
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +20 -6
- 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 +10 -6
- 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 Runner v4.45.
|
|
2
|
+
Stencil Hydrate Runner v4.45.1 | 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
|
@@ -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$;
|
|
@@ -5833,8 +5836,9 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
5833
5836
|
if (isBooleanTarget) {
|
|
5834
5837
|
newValue = newValue === null || newValue === "false" ? false : true;
|
|
5835
5838
|
}
|
|
5839
|
+
const currentValue = import_app_data16.BUILD.lazyLoad && propMemberFlags & 4096 /* Setter */ ? hostRef.$instanceValues$.get(propName) : this[propName];
|
|
5836
5840
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
5837
|
-
if (!isSpuriousBooleanRemoval && newValue !=
|
|
5841
|
+
if (!isSpuriousBooleanRemoval && newValue != currentValue && (!propDesc.get || !!propDesc.set)) {
|
|
5838
5842
|
this[propName] = newValue;
|
|
5839
5843
|
}
|
|
5840
5844
|
});
|
|
@@ -6776,7 +6780,7 @@ var scopedSSR = false;
|
|
|
6776
6780
|
jsxDEV,
|
|
6777
6781
|
jsxs,
|
|
6778
6782
|
loadModule,
|
|
6779
|
-
|
|
6783
|
+
modeResolver,
|
|
6780
6784
|
needsScopedSSR,
|
|
6781
6785
|
nextTick,
|
|
6782
6786
|
normalizeWatchers,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.45.
|
|
3
|
+
"version": "4.45.1",
|
|
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 | 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