@stencil/core 4.41.1 → 4.41.2
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 -18
- package/cli/index.js +1 -18
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +37 -11
- 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 -19
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +179 -1824
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/shadow-css.js +3 -3
- package/internal/hydrate/index.js +5096 -5089
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +224 -241
- package/internal/package.json +1 -1
- package/internal/stencil-public-compiler.d.ts +10 -0
- package/internal/testing/index.js +78 -66
- package/internal/testing/jsx-dev-runtime.d.ts +2 -0
- package/internal/testing/jsx-dev-runtime.js +8 -0
- package/internal/testing/jsx-runtime.d.ts +2 -0
- package/internal/testing/jsx-runtime.js +9 -0
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +3 -3
- package/mock-doc/index.js +3 -3
- package/mock-doc/package.json +1 -1
- package/package.json +13 -2
- package/screenshot/index.js +1 -18
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +28 -28
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +19 -1
- package/testing/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/hydrate",
|
|
3
|
-
"version": "4.41.
|
|
3
|
+
"version": "4.41.2",
|
|
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.41.
|
|
2
|
+
Stencil Hydrate Runner v4.41.2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -13810,7 +13810,7 @@ var MockWindow = class {
|
|
|
13810
13810
|
if (this.__timeouts == null) {
|
|
13811
13811
|
this.__timeouts = /* @__PURE__ */ new Set();
|
|
13812
13812
|
}
|
|
13813
|
-
ms = Math.min(ms, this.__maxTimeout);
|
|
13813
|
+
ms = Math.min(ms != null ? ms : 0, this.__maxTimeout);
|
|
13814
13814
|
if (this.__allowInterval) {
|
|
13815
13815
|
const intervalId = this.__setInterval(() => {
|
|
13816
13816
|
if (this.__timeouts) {
|
|
@@ -13858,7 +13858,7 @@ var MockWindow = class {
|
|
|
13858
13858
|
if (this.__timeouts == null) {
|
|
13859
13859
|
this.__timeouts = /* @__PURE__ */ new Set();
|
|
13860
13860
|
}
|
|
13861
|
-
ms = Math.min(ms, this.__maxTimeout);
|
|
13861
|
+
ms = Math.min(ms != null ? ms : 0, this.__maxTimeout);
|
|
13862
13862
|
const timeoutId = this.__setTimeout.call(
|
|
13863
13863
|
nativeWindow || this,
|
|
13864
13864
|
() => {
|
|
@@ -14537,9 +14537,69 @@ import { BUILD as BUILD31, Env, NAMESPACE as NAMESPACE2 } from "@stencil/core/in
|
|
|
14537
14537
|
// src/runtime/bootstrap-custom-element.ts
|
|
14538
14538
|
import { BUILD as BUILD27 } from "@stencil/core/internal/app-data";
|
|
14539
14539
|
|
|
14540
|
+
// src/utils/shadow-root.ts
|
|
14541
|
+
import { BUILD as BUILD8 } from "@stencil/core/internal/app-data";
|
|
14542
|
+
|
|
14543
|
+
// src/runtime/connected-callback.ts
|
|
14544
|
+
import { BUILD as BUILD25 } from "@stencil/core/internal/app-data";
|
|
14545
|
+
|
|
14546
|
+
// src/runtime/client-hydrate.ts
|
|
14547
|
+
import { BUILD as BUILD14 } from "@stencil/core/internal/app-data";
|
|
14548
|
+
|
|
14549
|
+
// src/runtime/dom-extras.ts
|
|
14550
|
+
import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
|
|
14551
|
+
|
|
14552
|
+
// src/runtime/slot-polyfill-utils.ts
|
|
14553
|
+
import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
|
|
14554
|
+
|
|
14555
|
+
// src/runtime/profile.ts
|
|
14556
|
+
import { BUILD as BUILD11 } from "@stencil/core/internal/app-data";
|
|
14557
|
+
|
|
14558
|
+
// src/runtime/styles.ts
|
|
14559
|
+
import { BUILD as BUILD12 } from "@stencil/core/internal/app-data";
|
|
14560
|
+
|
|
14561
|
+
// src/runtime/vdom/h.ts
|
|
14562
|
+
import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
|
|
14563
|
+
|
|
14540
14564
|
// src/utils/helpers.ts
|
|
14541
14565
|
var isString = (v) => typeof v === "string";
|
|
14542
14566
|
|
|
14567
|
+
// src/runtime/initialize-component.ts
|
|
14568
|
+
import { BUILD as BUILD24 } from "@stencil/core/internal/app-data";
|
|
14569
|
+
|
|
14570
|
+
// src/utils/shadow-css.ts
|
|
14571
|
+
/**
|
|
14572
|
+
* @license
|
|
14573
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
14574
|
+
*
|
|
14575
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
14576
|
+
* found in the LICENSE file at https://angular.io/license
|
|
14577
|
+
*
|
|
14578
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
14579
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
14580
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
14581
|
+
*/
|
|
14582
|
+
var _polyfillHost = "-shadowcsshost";
|
|
14583
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
14584
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
14585
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
14586
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
14587
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
14588
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
14589
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
14590
|
+
|
|
14591
|
+
// src/runtime/mode.ts
|
|
14592
|
+
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
14593
|
+
|
|
14594
|
+
// src/runtime/proxy-component.ts
|
|
14595
|
+
import { BUILD as BUILD23 } from "@stencil/core/internal/app-data";
|
|
14596
|
+
|
|
14597
|
+
// src/runtime/set-value.ts
|
|
14598
|
+
import { BUILD as BUILD22 } from "@stencil/core/internal/app-data";
|
|
14599
|
+
|
|
14600
|
+
// src/runtime/parse-property-value.ts
|
|
14601
|
+
import { BUILD as BUILD15 } from "@stencil/core/internal/app-data";
|
|
14602
|
+
|
|
14543
14603
|
// src/utils/local-value.ts
|
|
14544
14604
|
var LocalValue = class _LocalValue {
|
|
14545
14605
|
type;
|
|
@@ -14768,6 +14828,167 @@ var LocalValue = class _LocalValue {
|
|
|
14768
14828
|
}
|
|
14769
14829
|
};
|
|
14770
14830
|
|
|
14831
|
+
// src/utils/remote-value.ts
|
|
14832
|
+
var RemoteValue = class _RemoteValue {
|
|
14833
|
+
/**
|
|
14834
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
14835
|
+
*
|
|
14836
|
+
* @param serialized The serialized LocalValue object
|
|
14837
|
+
* @returns The original JavaScript value/object
|
|
14838
|
+
*/
|
|
14839
|
+
static fromLocalValue(serialized) {
|
|
14840
|
+
const type = serialized[TYPE_CONSTANT];
|
|
14841
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
14842
|
+
switch (type) {
|
|
14843
|
+
case "string" /* String */:
|
|
14844
|
+
return value;
|
|
14845
|
+
case "boolean" /* Boolean */:
|
|
14846
|
+
return value;
|
|
14847
|
+
case "bigint" /* BigInt */:
|
|
14848
|
+
return BigInt(value);
|
|
14849
|
+
case "undefined" /* Undefined */:
|
|
14850
|
+
return void 0;
|
|
14851
|
+
case "null" /* Null */:
|
|
14852
|
+
return null;
|
|
14853
|
+
case "number" /* Number */:
|
|
14854
|
+
if (value === "NaN") return NaN;
|
|
14855
|
+
if (value === "-0") return -0;
|
|
14856
|
+
if (value === "Infinity") return Infinity;
|
|
14857
|
+
if (value === "-Infinity") return -Infinity;
|
|
14858
|
+
return value;
|
|
14859
|
+
case "array" /* Array */:
|
|
14860
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
14861
|
+
case "date" /* Date */:
|
|
14862
|
+
return new Date(value);
|
|
14863
|
+
case "map" /* Map */:
|
|
14864
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
14865
|
+
for (const [key, val] of value) {
|
|
14866
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
14867
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
14868
|
+
map2.set(deserializedKey, deserializedValue);
|
|
14869
|
+
}
|
|
14870
|
+
return map2;
|
|
14871
|
+
case "object" /* Object */:
|
|
14872
|
+
const obj = {};
|
|
14873
|
+
for (const [key, val] of value) {
|
|
14874
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
14875
|
+
}
|
|
14876
|
+
return obj;
|
|
14877
|
+
case "regexp" /* RegularExpression */:
|
|
14878
|
+
const { pattern, flags } = value;
|
|
14879
|
+
return new RegExp(pattern, flags);
|
|
14880
|
+
case "set" /* Set */:
|
|
14881
|
+
const set = /* @__PURE__ */ new Set();
|
|
14882
|
+
for (const item of value) {
|
|
14883
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
14884
|
+
}
|
|
14885
|
+
return set;
|
|
14886
|
+
case "symbol" /* Symbol */:
|
|
14887
|
+
return Symbol(value);
|
|
14888
|
+
default:
|
|
14889
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
14890
|
+
}
|
|
14891
|
+
}
|
|
14892
|
+
/**
|
|
14893
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
14894
|
+
*
|
|
14895
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
14896
|
+
* @returns Array of deserialized JavaScript values
|
|
14897
|
+
*/
|
|
14898
|
+
static fromLocalValueArray(serializedValues) {
|
|
14899
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
14900
|
+
}
|
|
14901
|
+
/**
|
|
14902
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
14903
|
+
*
|
|
14904
|
+
* @param obj Object to verify
|
|
14905
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
14906
|
+
*/
|
|
14907
|
+
static isLocalValueObject(obj) {
|
|
14908
|
+
if (typeof obj !== "object" || obj === null) {
|
|
14909
|
+
return false;
|
|
14910
|
+
}
|
|
14911
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
14912
|
+
return false;
|
|
14913
|
+
}
|
|
14914
|
+
const type = obj[TYPE_CONSTANT];
|
|
14915
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
14916
|
+
if (!hasTypeProperty) {
|
|
14917
|
+
return false;
|
|
14918
|
+
}
|
|
14919
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
14920
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
14921
|
+
}
|
|
14922
|
+
return true;
|
|
14923
|
+
}
|
|
14924
|
+
};
|
|
14925
|
+
|
|
14926
|
+
// src/utils/serialize.ts
|
|
14927
|
+
function serializeProperty(value) {
|
|
14928
|
+
if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
|
|
14929
|
+
return value;
|
|
14930
|
+
}
|
|
14931
|
+
const arg = LocalValue.getArgument(value);
|
|
14932
|
+
return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
|
|
14933
|
+
}
|
|
14934
|
+
function deserializeProperty(value) {
|
|
14935
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
14936
|
+
return value;
|
|
14937
|
+
}
|
|
14938
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
14939
|
+
}
|
|
14940
|
+
|
|
14941
|
+
// src/runtime/update-component.ts
|
|
14942
|
+
import { BUILD as BUILD21, NAMESPACE } from "@stencil/core/internal/app-data";
|
|
14943
|
+
|
|
14944
|
+
// src/runtime/event-emitter.ts
|
|
14945
|
+
import { BUILD as BUILD17 } from "@stencil/core/internal/app-data";
|
|
14946
|
+
|
|
14947
|
+
// src/runtime/element.ts
|
|
14948
|
+
import { BUILD as BUILD16 } from "@stencil/core/internal/app-data";
|
|
14949
|
+
|
|
14950
|
+
// src/runtime/vdom/vdom-render.ts
|
|
14951
|
+
import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
|
|
14952
|
+
|
|
14953
|
+
// src/runtime/vdom/update-element.ts
|
|
14954
|
+
import { BUILD as BUILD19 } from "@stencil/core/internal/app-data";
|
|
14955
|
+
|
|
14956
|
+
// src/runtime/vdom/set-accessor.ts
|
|
14957
|
+
import { BUILD as BUILD18 } from "@stencil/core/internal/app-data";
|
|
14958
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
14959
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
14960
|
+
|
|
14961
|
+
// src/runtime/disconnected-callback.ts
|
|
14962
|
+
import { BUILD as BUILD26 } from "@stencil/core/internal/app-data";
|
|
14963
|
+
|
|
14964
|
+
// src/runtime/bootstrap-lazy.ts
|
|
14965
|
+
import { BUILD as BUILD28 } from "@stencil/core/internal/app-data";
|
|
14966
|
+
|
|
14967
|
+
// src/runtime/host-listener.ts
|
|
14968
|
+
import { BUILD as BUILD29 } from "@stencil/core/internal/app-data";
|
|
14969
|
+
|
|
14970
|
+
// src/runtime/mixin.ts
|
|
14971
|
+
import { BUILD as BUILD30 } from "@stencil/core/internal/app-data";
|
|
14972
|
+
var baseClass = BUILD30.lazyLoad ? class {
|
|
14973
|
+
} : globalThis.HTMLElement || class {
|
|
14974
|
+
};
|
|
14975
|
+
|
|
14976
|
+
// src/runtime/tag-transform.ts
|
|
14977
|
+
var tagTransformer = void 0;
|
|
14978
|
+
function transformTag(tag) {
|
|
14979
|
+
if (!tagTransformer) return tag;
|
|
14980
|
+
return tagTransformer(tag);
|
|
14981
|
+
}
|
|
14982
|
+
function setTagTransformer(transformer) {
|
|
14983
|
+
if (tagTransformer) {
|
|
14984
|
+
console.warn(`
|
|
14985
|
+
A tagTransformer has already been set.
|
|
14986
|
+
Overwriting it may lead to error and unexpected results if your components have already been defined.
|
|
14987
|
+
`);
|
|
14988
|
+
}
|
|
14989
|
+
tagTransformer = transformer;
|
|
14990
|
+
}
|
|
14991
|
+
|
|
14771
14992
|
// src/utils/message-utils.ts
|
|
14772
14993
|
var catchError = (diagnostics, err2, msg) => {
|
|
14773
14994
|
const diagnostic = {
|
|
@@ -16159,106 +16380,6 @@ minimatch.Minimatch = Minimatch;
|
|
|
16159
16380
|
minimatch.escape = escape;
|
|
16160
16381
|
minimatch.unescape = unescape;
|
|
16161
16382
|
|
|
16162
|
-
// src/utils/regular-expression.ts
|
|
16163
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
16164
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
16165
|
-
};
|
|
16166
|
-
|
|
16167
|
-
// src/utils/remote-value.ts
|
|
16168
|
-
var RemoteValue = class _RemoteValue {
|
|
16169
|
-
/**
|
|
16170
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
16171
|
-
*
|
|
16172
|
-
* @param serialized The serialized LocalValue object
|
|
16173
|
-
* @returns The original JavaScript value/object
|
|
16174
|
-
*/
|
|
16175
|
-
static fromLocalValue(serialized) {
|
|
16176
|
-
const type = serialized[TYPE_CONSTANT];
|
|
16177
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
16178
|
-
switch (type) {
|
|
16179
|
-
case "string" /* String */:
|
|
16180
|
-
return value;
|
|
16181
|
-
case "boolean" /* Boolean */:
|
|
16182
|
-
return value;
|
|
16183
|
-
case "bigint" /* BigInt */:
|
|
16184
|
-
return BigInt(value);
|
|
16185
|
-
case "undefined" /* Undefined */:
|
|
16186
|
-
return void 0;
|
|
16187
|
-
case "null" /* Null */:
|
|
16188
|
-
return null;
|
|
16189
|
-
case "number" /* Number */:
|
|
16190
|
-
if (value === "NaN") return NaN;
|
|
16191
|
-
if (value === "-0") return -0;
|
|
16192
|
-
if (value === "Infinity") return Infinity;
|
|
16193
|
-
if (value === "-Infinity") return -Infinity;
|
|
16194
|
-
return value;
|
|
16195
|
-
case "array" /* Array */:
|
|
16196
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
16197
|
-
case "date" /* Date */:
|
|
16198
|
-
return new Date(value);
|
|
16199
|
-
case "map" /* Map */:
|
|
16200
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
16201
|
-
for (const [key, val] of value) {
|
|
16202
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
16203
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
16204
|
-
map2.set(deserializedKey, deserializedValue);
|
|
16205
|
-
}
|
|
16206
|
-
return map2;
|
|
16207
|
-
case "object" /* Object */:
|
|
16208
|
-
const obj = {};
|
|
16209
|
-
for (const [key, val] of value) {
|
|
16210
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
16211
|
-
}
|
|
16212
|
-
return obj;
|
|
16213
|
-
case "regexp" /* RegularExpression */:
|
|
16214
|
-
const { pattern, flags } = value;
|
|
16215
|
-
return new RegExp(pattern, flags);
|
|
16216
|
-
case "set" /* Set */:
|
|
16217
|
-
const set = /* @__PURE__ */ new Set();
|
|
16218
|
-
for (const item of value) {
|
|
16219
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
16220
|
-
}
|
|
16221
|
-
return set;
|
|
16222
|
-
case "symbol" /* Symbol */:
|
|
16223
|
-
return Symbol(value);
|
|
16224
|
-
default:
|
|
16225
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
16226
|
-
}
|
|
16227
|
-
}
|
|
16228
|
-
/**
|
|
16229
|
-
* Utility method to deserialize multiple LocalValues at once
|
|
16230
|
-
*
|
|
16231
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
16232
|
-
* @returns Array of deserialized JavaScript values
|
|
16233
|
-
*/
|
|
16234
|
-
static fromLocalValueArray(serializedValues) {
|
|
16235
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
16236
|
-
}
|
|
16237
|
-
/**
|
|
16238
|
-
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
16239
|
-
*
|
|
16240
|
-
* @param obj Object to verify
|
|
16241
|
-
* @returns boolean indicating if the object has LocalValue structure
|
|
16242
|
-
*/
|
|
16243
|
-
static isLocalValueObject(obj) {
|
|
16244
|
-
if (typeof obj !== "object" || obj === null) {
|
|
16245
|
-
return false;
|
|
16246
|
-
}
|
|
16247
|
-
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
16248
|
-
return false;
|
|
16249
|
-
}
|
|
16250
|
-
const type = obj[TYPE_CONSTANT];
|
|
16251
|
-
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
16252
|
-
if (!hasTypeProperty) {
|
|
16253
|
-
return false;
|
|
16254
|
-
}
|
|
16255
|
-
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
16256
|
-
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
16257
|
-
}
|
|
16258
|
-
return true;
|
|
16259
|
-
}
|
|
16260
|
-
};
|
|
16261
|
-
|
|
16262
16383
|
// src/utils/result.ts
|
|
16263
16384
|
var result_exports = {};
|
|
16264
16385
|
__export(result_exports, {
|
|
@@ -16308,24 +16429,6 @@ var unwrapErr = (result) => {
|
|
|
16308
16429
|
}
|
|
16309
16430
|
};
|
|
16310
16431
|
|
|
16311
|
-
// src/utils/serialize.ts
|
|
16312
|
-
function serializeProperty(value) {
|
|
16313
|
-
if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
|
|
16314
|
-
return value;
|
|
16315
|
-
}
|
|
16316
|
-
const arg = LocalValue.getArgument(value);
|
|
16317
|
-
return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
|
|
16318
|
-
}
|
|
16319
|
-
function deserializeProperty(value) {
|
|
16320
|
-
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
16321
|
-
return value;
|
|
16322
|
-
}
|
|
16323
|
-
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
16324
|
-
}
|
|
16325
|
-
|
|
16326
|
-
// src/utils/shadow-root.ts
|
|
16327
|
-
import { BUILD as BUILD8 } from "@stencil/core/internal/app-data";
|
|
16328
|
-
|
|
16329
16432
|
// src/utils/util.ts
|
|
16330
16433
|
var lowerPathParam = (fn) => (p) => fn(p.toLowerCase());
|
|
16331
16434
|
var isDtsFile = lowerPathParam((p) => p.endsWith(".d.ts") || p.endsWith(".d.mts") || p.endsWith(".d.cts"));
|
|
@@ -16340,126 +16443,6 @@ var isJsxFile = lowerPathParam(
|
|
|
16340
16443
|
);
|
|
16341
16444
|
var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") || p.endsWith(".cjs"));
|
|
16342
16445
|
|
|
16343
|
-
// src/runtime/connected-callback.ts
|
|
16344
|
-
import { BUILD as BUILD25 } from "@stencil/core/internal/app-data";
|
|
16345
|
-
|
|
16346
|
-
// src/runtime/client-hydrate.ts
|
|
16347
|
-
import { BUILD as BUILD14 } from "@stencil/core/internal/app-data";
|
|
16348
|
-
|
|
16349
|
-
// src/runtime/dom-extras.ts
|
|
16350
|
-
import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
|
|
16351
|
-
|
|
16352
|
-
// src/runtime/slot-polyfill-utils.ts
|
|
16353
|
-
import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
|
|
16354
|
-
|
|
16355
|
-
// src/runtime/profile.ts
|
|
16356
|
-
import { BUILD as BUILD11 } from "@stencil/core/internal/app-data";
|
|
16357
|
-
|
|
16358
|
-
// src/runtime/styles.ts
|
|
16359
|
-
import { BUILD as BUILD12 } from "@stencil/core/internal/app-data";
|
|
16360
|
-
|
|
16361
|
-
// src/runtime/vdom/h.ts
|
|
16362
|
-
import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
|
|
16363
|
-
|
|
16364
|
-
// src/runtime/initialize-component.ts
|
|
16365
|
-
import { BUILD as BUILD24 } from "@stencil/core/internal/app-data";
|
|
16366
|
-
|
|
16367
|
-
// src/utils/shadow-css.ts
|
|
16368
|
-
/**
|
|
16369
|
-
* @license
|
|
16370
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
16371
|
-
*
|
|
16372
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
16373
|
-
* found in the LICENSE file at https://angular.io/license
|
|
16374
|
-
*
|
|
16375
|
-
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
16376
|
-
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
16377
|
-
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
16378
|
-
*/
|
|
16379
|
-
var _polyfillHost = "-shadowcsshost";
|
|
16380
|
-
var _polyfillSlotted = "-shadowcssslotted";
|
|
16381
|
-
var _polyfillHostContext = "-shadowcsscontext";
|
|
16382
|
-
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
16383
|
-
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
16384
|
-
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
16385
|
-
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
16386
|
-
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
16387
|
-
var createSupportsRuleRe = (selector) => {
|
|
16388
|
-
const safeSelector = escapeRegExpSpecialCharacters(selector);
|
|
16389
|
-
return new RegExp(
|
|
16390
|
-
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
16391
|
-
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
16392
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector}))(${safeSelector}\\b)`,
|
|
16393
|
-
"g"
|
|
16394
|
-
);
|
|
16395
|
-
};
|
|
16396
|
-
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
16397
|
-
var _colonHostRe = createSupportsRuleRe(":host");
|
|
16398
|
-
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
16399
|
-
|
|
16400
|
-
// src/runtime/mode.ts
|
|
16401
|
-
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
16402
|
-
|
|
16403
|
-
// src/runtime/proxy-component.ts
|
|
16404
|
-
import { BUILD as BUILD23 } from "@stencil/core/internal/app-data";
|
|
16405
|
-
|
|
16406
|
-
// src/runtime/set-value.ts
|
|
16407
|
-
import { BUILD as BUILD22 } from "@stencil/core/internal/app-data";
|
|
16408
|
-
|
|
16409
|
-
// src/runtime/parse-property-value.ts
|
|
16410
|
-
import { BUILD as BUILD15 } from "@stencil/core/internal/app-data";
|
|
16411
|
-
|
|
16412
|
-
// src/runtime/update-component.ts
|
|
16413
|
-
import { BUILD as BUILD21, NAMESPACE } from "@stencil/core/internal/app-data";
|
|
16414
|
-
|
|
16415
|
-
// src/runtime/event-emitter.ts
|
|
16416
|
-
import { BUILD as BUILD17 } from "@stencil/core/internal/app-data";
|
|
16417
|
-
|
|
16418
|
-
// src/runtime/element.ts
|
|
16419
|
-
import { BUILD as BUILD16 } from "@stencil/core/internal/app-data";
|
|
16420
|
-
|
|
16421
|
-
// src/runtime/vdom/vdom-render.ts
|
|
16422
|
-
import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
|
|
16423
|
-
|
|
16424
|
-
// src/runtime/vdom/update-element.ts
|
|
16425
|
-
import { BUILD as BUILD19 } from "@stencil/core/internal/app-data";
|
|
16426
|
-
|
|
16427
|
-
// src/runtime/vdom/set-accessor.ts
|
|
16428
|
-
import { BUILD as BUILD18 } from "@stencil/core/internal/app-data";
|
|
16429
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
16430
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
16431
|
-
|
|
16432
|
-
// src/runtime/disconnected-callback.ts
|
|
16433
|
-
import { BUILD as BUILD26 } from "@stencil/core/internal/app-data";
|
|
16434
|
-
|
|
16435
|
-
// src/runtime/bootstrap-lazy.ts
|
|
16436
|
-
import { BUILD as BUILD28 } from "@stencil/core/internal/app-data";
|
|
16437
|
-
|
|
16438
|
-
// src/runtime/host-listener.ts
|
|
16439
|
-
import { BUILD as BUILD29 } from "@stencil/core/internal/app-data";
|
|
16440
|
-
|
|
16441
|
-
// src/runtime/mixin.ts
|
|
16442
|
-
import { BUILD as BUILD30 } from "@stencil/core/internal/app-data";
|
|
16443
|
-
var baseClass = BUILD30.lazyLoad ? class {
|
|
16444
|
-
} : globalThis.HTMLElement || class {
|
|
16445
|
-
};
|
|
16446
|
-
|
|
16447
|
-
// src/runtime/tag-transform.ts
|
|
16448
|
-
var tagTransformer = void 0;
|
|
16449
|
-
function transformTag(tag) {
|
|
16450
|
-
if (!tagTransformer) return tag;
|
|
16451
|
-
return tagTransformer(tag);
|
|
16452
|
-
}
|
|
16453
|
-
function setTagTransformer(transformer) {
|
|
16454
|
-
if (tagTransformer) {
|
|
16455
|
-
console.warn(`
|
|
16456
|
-
A tagTransformer has already been set.
|
|
16457
|
-
Overwriting it may lead to error and unexpected results if your components have already been defined.
|
|
16458
|
-
`);
|
|
16459
|
-
}
|
|
16460
|
-
tagTransformer = transformer;
|
|
16461
|
-
}
|
|
16462
|
-
|
|
16463
16446
|
// src/compiler/html/canonical-link.ts
|
|
16464
16447
|
var updateCanonicalLink = (doc, href) => {
|
|
16465
16448
|
var _a2;
|
package/internal/package.json
CHANGED
|
@@ -2743,6 +2743,16 @@ export interface TranspileOptions {
|
|
|
2743
2743
|
paths?: {
|
|
2744
2744
|
[key: string]: string[];
|
|
2745
2745
|
};
|
|
2746
|
+
/**
|
|
2747
|
+
* JSX mode for TypeScript compilation. Can be 'react', 'react-jsx', 'react-jsxdev', etc.
|
|
2748
|
+
* Same as the `jsx` TypeScript compiler option.
|
|
2749
|
+
*/
|
|
2750
|
+
jsx?: number;
|
|
2751
|
+
/**
|
|
2752
|
+
* Module specifier for JSX factory. Used with automatic JSX runtime.
|
|
2753
|
+
* Same as the `jsxImportSource` TypeScript compiler option.
|
|
2754
|
+
*/
|
|
2755
|
+
jsxImportSource?: string;
|
|
2746
2756
|
/**
|
|
2747
2757
|
* Passed in Stencil Compiler System, otherwise falls back to the internal in-memory only system.
|
|
2748
2758
|
*/
|