lwc 2.23.0 → 2.23.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/dist/engine-dom/esm/es2017/engine-dom.js +29 -24
- package/dist/engine-dom/iife/es2017/engine-dom.js +29 -24
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +18 -13
- package/dist/engine-dom/iife/es5/engine-dom.js +30 -24
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +19 -13
- package/dist/engine-dom/umd/es2017/engine-dom.js +29 -24
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +18 -13
- package/dist/engine-dom/umd/es5/engine-dom.js +30 -24
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +19 -13
- package/dist/engine-server/commonjs/es2017/engine-server.js +19 -19
- package/dist/engine-server/esm/es2017/engine-server.js +19 -19
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +19 -19
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +19 -19
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +19 -19
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +20 -20
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +19 -19
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/package.json +7 -7
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
|
154
154
|
// we can't use typeof since it will fail when transpiling.
|
|
155
155
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
156
|
-
/** version: 2.23.
|
|
156
|
+
/** version: 2.23.1 */
|
|
157
157
|
|
|
158
158
|
/*
|
|
159
159
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1128,8 +1128,8 @@
|
|
|
1128
1128
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
1129
1129
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1130
1130
|
}
|
|
1131
|
-
const
|
|
1132
|
-
/** version: 2.23.
|
|
1131
|
+
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1132
|
+
/** version: 2.23.1 */
|
|
1133
1133
|
|
|
1134
1134
|
/*
|
|
1135
1135
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1380,7 +1380,7 @@
|
|
|
1380
1380
|
},
|
|
1381
1381
|
textContent: {
|
|
1382
1382
|
get() {
|
|
1383
|
-
if (!
|
|
1383
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1384
1384
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1385
1385
|
return textContentGetterPatched.call(this);
|
|
1386
1386
|
}
|
|
@@ -1487,7 +1487,7 @@
|
|
|
1487
1487
|
return true;
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
|
-
if (!
|
|
1490
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1491
1491
|
if (otherNode == null) {
|
|
1492
1492
|
return false;
|
|
1493
1493
|
}
|
|
@@ -1513,7 +1513,7 @@
|
|
|
1513
1513
|
},
|
|
1514
1514
|
cloneNode: {
|
|
1515
1515
|
value(deep) {
|
|
1516
|
-
if (!
|
|
1516
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1517
1517
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1518
1518
|
return cloneNodePatched.call(this, deep);
|
|
1519
1519
|
}
|
|
@@ -3813,7 +3813,7 @@
|
|
|
3813
3813
|
defineProperties(Element.prototype, {
|
|
3814
3814
|
innerHTML: {
|
|
3815
3815
|
get() {
|
|
3816
|
-
if (!
|
|
3816
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3817
3817
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3818
3818
|
return innerHTMLGetterPatched.call(this);
|
|
3819
3819
|
}
|
|
@@ -3838,7 +3838,7 @@
|
|
|
3838
3838
|
},
|
|
3839
3839
|
outerHTML: {
|
|
3840
3840
|
get() {
|
|
3841
|
-
if (!
|
|
3841
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3842
3842
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3843
3843
|
return outerHTMLGetterPatched.call(this);
|
|
3844
3844
|
}
|
|
@@ -3966,7 +3966,7 @@
|
|
|
3966
3966
|
const elm = ArrayFind.call(nodeList, elm => getNodeNearestOwnerKey(elm) === ownerKey);
|
|
3967
3967
|
return isUndefined(elm) ? null : elm;
|
|
3968
3968
|
} else {
|
|
3969
|
-
if (!
|
|
3969
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3970
3970
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
3971
3971
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
3972
3972
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -3978,7 +3978,7 @@
|
|
|
3978
3978
|
return isUndefined(elm) ? null : elm;
|
|
3979
3979
|
}
|
|
3980
3980
|
} else {
|
|
3981
|
-
if (!
|
|
3981
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3982
3982
|
if (!(this instanceof HTMLBodyElement)) {
|
|
3983
3983
|
const elm = nodeList[0];
|
|
3984
3984
|
return isUndefined(elm) ? null : elm;
|
|
@@ -4061,7 +4061,7 @@
|
|
|
4061
4061
|
value() {
|
|
4062
4062
|
const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4063
4063
|
|
|
4064
|
-
if (!
|
|
4064
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4065
4065
|
const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
4066
4066
|
/* ShadowDomSemantic.Disabled */
|
|
4067
4067
|
);
|
|
@@ -4085,7 +4085,7 @@
|
|
|
4085
4085
|
value() {
|
|
4086
4086
|
const elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
4087
4087
|
|
|
4088
|
-
if (!
|
|
4088
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4089
4089
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4090
4090
|
}
|
|
4091
4091
|
|
|
@@ -4103,7 +4103,7 @@
|
|
|
4103
4103
|
value() {
|
|
4104
4104
|
const elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
4105
4105
|
|
|
4106
|
-
if (!
|
|
4106
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4107
4107
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4108
4108
|
}
|
|
4109
4109
|
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
value() {
|
|
4122
4122
|
const elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
4123
4123
|
|
|
4124
|
-
if (!
|
|
4124
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4125
4125
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4126
4126
|
}
|
|
4127
4127
|
|
|
@@ -4853,11 +4853,11 @@
|
|
|
4853
4853
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
4854
4854
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
4855
4855
|
get() {
|
|
4856
|
-
if (!
|
|
4856
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4857
4857
|
return innerTextGetter.call(this);
|
|
4858
4858
|
}
|
|
4859
4859
|
|
|
4860
|
-
if (!
|
|
4860
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4861
4861
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4862
4862
|
return getInnerText(this);
|
|
4863
4863
|
}
|
|
@@ -4889,11 +4889,11 @@
|
|
|
4889
4889
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
4890
4890
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
4891
4891
|
get() {
|
|
4892
|
-
if (!
|
|
4892
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4893
4893
|
return outerTextGetter.call(this);
|
|
4894
4894
|
}
|
|
4895
4895
|
|
|
4896
|
-
if (!
|
|
4896
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4897
4897
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4898
4898
|
return getInnerText(this);
|
|
4899
4899
|
}
|
|
@@ -5107,7 +5107,7 @@
|
|
|
5107
5107
|
window.addEventListener('test-dummy-flag', () => {
|
|
5108
5108
|
let hasFlag = false;
|
|
5109
5109
|
|
|
5110
|
-
if (
|
|
5110
|
+
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
|
5111
5111
|
hasFlag = true;
|
|
5112
5112
|
}
|
|
5113
5113
|
|
|
@@ -5119,6 +5119,6 @@
|
|
|
5119
5119
|
}));
|
|
5120
5120
|
});
|
|
5121
5121
|
}
|
|
5122
|
-
/** version: 2.23.
|
|
5122
|
+
/** version: 2.23.1 */
|
|
5123
5123
|
|
|
5124
5124
|
}));
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
const KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
90
90
|
const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
91
91
|
const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
92
|
-
/** version: 2.23.
|
|
92
|
+
/** version: 2.23.1 */
|
|
93
93
|
|
|
94
94
|
/*
|
|
95
95
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1050,8 +1050,8 @@
|
|
|
1050
1050
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
1051
1051
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1054
|
-
/** version: 2.23.
|
|
1053
|
+
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1054
|
+
/** version: 2.23.1 */
|
|
1055
1055
|
|
|
1056
1056
|
/*
|
|
1057
1057
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1294,7 +1294,7 @@
|
|
|
1294
1294
|
},
|
|
1295
1295
|
textContent: {
|
|
1296
1296
|
get() {
|
|
1297
|
-
if (!
|
|
1297
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1298
1298
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1299
1299
|
return textContentGetterPatched.call(this);
|
|
1300
1300
|
}
|
|
@@ -1401,7 +1401,7 @@
|
|
|
1401
1401
|
return true;
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
|
-
if (!
|
|
1404
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1405
1405
|
if (otherNode == null) {
|
|
1406
1406
|
return false;
|
|
1407
1407
|
}
|
|
@@ -1427,7 +1427,7 @@
|
|
|
1427
1427
|
},
|
|
1428
1428
|
cloneNode: {
|
|
1429
1429
|
value(deep) {
|
|
1430
|
-
if (!
|
|
1430
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1431
1431
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1432
1432
|
return cloneNodePatched.call(this, deep);
|
|
1433
1433
|
}
|
|
@@ -3644,7 +3644,7 @@
|
|
|
3644
3644
|
defineProperties(Element.prototype, {
|
|
3645
3645
|
innerHTML: {
|
|
3646
3646
|
get() {
|
|
3647
|
-
if (!
|
|
3647
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3648
3648
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3649
3649
|
return innerHTMLGetterPatched.call(this);
|
|
3650
3650
|
}
|
|
@@ -3669,7 +3669,7 @@
|
|
|
3669
3669
|
},
|
|
3670
3670
|
outerHTML: {
|
|
3671
3671
|
get() {
|
|
3672
|
-
if (!
|
|
3672
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3673
3673
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3674
3674
|
return outerHTMLGetterPatched.call(this);
|
|
3675
3675
|
}
|
|
@@ -3797,7 +3797,7 @@
|
|
|
3797
3797
|
const elm = ArrayFind.call(nodeList, elm => getNodeNearestOwnerKey(elm) === ownerKey);
|
|
3798
3798
|
return isUndefined(elm) ? null : elm;
|
|
3799
3799
|
} else {
|
|
3800
|
-
if (!
|
|
3800
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3801
3801
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
3802
3802
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
3803
3803
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -3809,7 +3809,7 @@
|
|
|
3809
3809
|
return isUndefined(elm) ? null : elm;
|
|
3810
3810
|
}
|
|
3811
3811
|
} else {
|
|
3812
|
-
if (!
|
|
3812
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3813
3813
|
if (!(this instanceof HTMLBodyElement)) {
|
|
3814
3814
|
const elm = nodeList[0];
|
|
3815
3815
|
return isUndefined(elm) ? null : elm;
|
|
@@ -3892,7 +3892,7 @@
|
|
|
3892
3892
|
value() {
|
|
3893
3893
|
const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
3894
3894
|
|
|
3895
|
-
if (!
|
|
3895
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3896
3896
|
const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
3897
3897
|
/* ShadowDomSemantic.Disabled */
|
|
3898
3898
|
);
|
|
@@ -3916,7 +3916,7 @@
|
|
|
3916
3916
|
value() {
|
|
3917
3917
|
const elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
3918
3918
|
|
|
3919
|
-
if (!
|
|
3919
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
3920
3920
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
3921
3921
|
}
|
|
3922
3922
|
|
|
@@ -3934,7 +3934,7 @@
|
|
|
3934
3934
|
value() {
|
|
3935
3935
|
const elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
3936
3936
|
|
|
3937
|
-
if (!
|
|
3937
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
3938
3938
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
3939
3939
|
}
|
|
3940
3940
|
|
|
@@ -3952,7 +3952,7 @@
|
|
|
3952
3952
|
value() {
|
|
3953
3953
|
const elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
3954
3954
|
|
|
3955
|
-
if (!
|
|
3955
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
3956
3956
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
3957
3957
|
}
|
|
3958
3958
|
|
|
@@ -4675,11 +4675,11 @@
|
|
|
4675
4675
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
4676
4676
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
4677
4677
|
get() {
|
|
4678
|
-
if (!
|
|
4678
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4679
4679
|
return innerTextGetter.call(this);
|
|
4680
4680
|
}
|
|
4681
4681
|
|
|
4682
|
-
if (!
|
|
4682
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4683
4683
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4684
4684
|
return getInnerText(this);
|
|
4685
4685
|
}
|
|
@@ -4711,11 +4711,11 @@
|
|
|
4711
4711
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
4712
4712
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
4713
4713
|
get() {
|
|
4714
|
-
if (!
|
|
4714
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4715
4715
|
return outerTextGetter.call(this);
|
|
4716
4716
|
}
|
|
4717
4717
|
|
|
4718
|
-
if (!
|
|
4718
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4719
4719
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4720
4720
|
return getInnerText(this);
|
|
4721
4721
|
}
|
|
@@ -4916,6 +4916,6 @@
|
|
|
4916
4916
|
},
|
|
4917
4917
|
configurable: true,
|
|
4918
4918
|
});
|
|
4919
|
-
/** version: 2.23.
|
|
4919
|
+
/** version: 2.23.1 */
|
|
4920
4920
|
|
|
4921
4921
|
}));
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
var hasNativeSymbolSupport = /*@__PURE__*/function () {
|
|
202
202
|
return Symbol('x').toString() === 'Symbol(x)';
|
|
203
203
|
}();
|
|
204
|
-
/** version: 2.23.
|
|
204
|
+
/** version: 2.23.1 */
|
|
205
205
|
|
|
206
206
|
/*
|
|
207
207
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1300,8 +1300,8 @@
|
|
|
1300
1300
|
});
|
|
1301
1301
|
}
|
|
1302
1302
|
|
|
1303
|
-
var
|
|
1304
|
-
/** version: 2.23.
|
|
1303
|
+
var lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1304
|
+
/** version: 2.23.1 */
|
|
1305
1305
|
|
|
1306
1306
|
/*
|
|
1307
1307
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1551,7 +1551,7 @@
|
|
|
1551
1551
|
},
|
|
1552
1552
|
textContent: {
|
|
1553
1553
|
get: function get() {
|
|
1554
|
-
if (!
|
|
1554
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1555
1555
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1556
1556
|
return textContentGetterPatched.call(this);
|
|
1557
1557
|
}
|
|
@@ -1652,7 +1652,7 @@
|
|
|
1652
1652
|
return true;
|
|
1653
1653
|
}
|
|
1654
1654
|
|
|
1655
|
-
if (!
|
|
1655
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1656
1656
|
if (otherNode == null) {
|
|
1657
1657
|
return false;
|
|
1658
1658
|
}
|
|
@@ -1677,7 +1677,7 @@
|
|
|
1677
1677
|
},
|
|
1678
1678
|
cloneNode: {
|
|
1679
1679
|
value: function value(deep) {
|
|
1680
|
-
if (!
|
|
1680
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1681
1681
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1682
1682
|
return cloneNodePatched.call(this, deep);
|
|
1683
1683
|
}
|
|
@@ -4227,7 +4227,7 @@
|
|
|
4227
4227
|
defineProperties(Element.prototype, {
|
|
4228
4228
|
innerHTML: {
|
|
4229
4229
|
get: function get() {
|
|
4230
|
-
if (!
|
|
4230
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4231
4231
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4232
4232
|
return innerHTMLGetterPatched.call(this);
|
|
4233
4233
|
}
|
|
@@ -4250,7 +4250,7 @@
|
|
|
4250
4250
|
},
|
|
4251
4251
|
outerHTML: {
|
|
4252
4252
|
get: function get() {
|
|
4253
|
-
if (!
|
|
4253
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4254
4254
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4255
4255
|
return outerHTMLGetterPatched.call(this);
|
|
4256
4256
|
}
|
|
@@ -4376,7 +4376,7 @@
|
|
|
4376
4376
|
});
|
|
4377
4377
|
return isUndefined(elm) ? null : elm;
|
|
4378
4378
|
} else {
|
|
4379
|
-
if (!
|
|
4379
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4380
4380
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
4381
4381
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
4382
4382
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -4392,7 +4392,7 @@
|
|
|
4392
4392
|
return isUndefined(_elm) ? null : _elm;
|
|
4393
4393
|
}
|
|
4394
4394
|
} else {
|
|
4395
|
-
if (!
|
|
4395
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4396
4396
|
if (!(this instanceof HTMLBodyElement)) {
|
|
4397
4397
|
var _elm3 = nodeList[0];
|
|
4398
4398
|
return isUndefined(_elm3) ? null : _elm3;
|
|
@@ -4484,7 +4484,7 @@
|
|
|
4484
4484
|
value: function value() {
|
|
4485
4485
|
var nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4486
4486
|
|
|
4487
|
-
if (!
|
|
4487
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4488
4488
|
var filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
4489
4489
|
/* ShadowDomSemantic.Disabled */
|
|
4490
4490
|
);
|
|
@@ -4507,7 +4507,7 @@
|
|
|
4507
4507
|
value: function value() {
|
|
4508
4508
|
var elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
4509
4509
|
|
|
4510
|
-
if (!
|
|
4510
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4511
4511
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4512
4512
|
}
|
|
4513
4513
|
|
|
@@ -4524,7 +4524,7 @@
|
|
|
4524
4524
|
value: function value() {
|
|
4525
4525
|
var elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
4526
4526
|
|
|
4527
|
-
if (!
|
|
4527
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4528
4528
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4529
4529
|
}
|
|
4530
4530
|
|
|
@@ -4541,7 +4541,7 @@
|
|
|
4541
4541
|
value: function value() {
|
|
4542
4542
|
var elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
4543
4543
|
|
|
4544
|
-
if (!
|
|
4544
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4545
4545
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4546
4546
|
}
|
|
4547
4547
|
|
|
@@ -5372,11 +5372,11 @@
|
|
|
5372
5372
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
5373
5373
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
5374
5374
|
get: function get() {
|
|
5375
|
-
if (!
|
|
5375
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
5376
5376
|
return innerTextGetter.call(this);
|
|
5377
5377
|
}
|
|
5378
5378
|
|
|
5379
|
-
if (!
|
|
5379
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5380
5380
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5381
5381
|
return getInnerText(this);
|
|
5382
5382
|
}
|
|
@@ -5406,11 +5406,11 @@
|
|
|
5406
5406
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
5407
5407
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
5408
5408
|
get: function get() {
|
|
5409
|
-
if (!
|
|
5409
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
5410
5410
|
return outerTextGetter.call(this);
|
|
5411
5411
|
}
|
|
5412
5412
|
|
|
5413
|
-
if (!
|
|
5413
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5414
5414
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5415
5415
|
return getInnerText(this);
|
|
5416
5416
|
}
|
|
@@ -5652,7 +5652,7 @@
|
|
|
5652
5652
|
window.addEventListener('test-dummy-flag', function () {
|
|
5653
5653
|
var hasFlag = false;
|
|
5654
5654
|
|
|
5655
|
-
if (
|
|
5655
|
+
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
|
5656
5656
|
hasFlag = true;
|
|
5657
5657
|
}
|
|
5658
5658
|
|
|
@@ -5664,6 +5664,6 @@
|
|
|
5664
5664
|
}));
|
|
5665
5665
|
});
|
|
5666
5666
|
}
|
|
5667
|
-
/** version: 2.23.
|
|
5667
|
+
/** version: 2.23.1 */
|
|
5668
5668
|
|
|
5669
5669
|
}));
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
var KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
126
126
|
var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
127
127
|
var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
128
|
-
/** version: 2.23.
|
|
128
|
+
/** version: 2.23.1 */
|
|
129
129
|
|
|
130
130
|
/*
|
|
131
131
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1209,8 +1209,8 @@
|
|
|
1209
1209
|
});
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
|
-
var
|
|
1213
|
-
/** version: 2.23.
|
|
1212
|
+
var lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1213
|
+
/** version: 2.23.1 */
|
|
1214
1214
|
|
|
1215
1215
|
/*
|
|
1216
1216
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1452,7 +1452,7 @@
|
|
|
1452
1452
|
},
|
|
1453
1453
|
textContent: {
|
|
1454
1454
|
get: function get() {
|
|
1455
|
-
if (!
|
|
1455
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1456
1456
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1457
1457
|
return textContentGetterPatched.call(this);
|
|
1458
1458
|
}
|
|
@@ -1553,7 +1553,7 @@
|
|
|
1553
1553
|
return true;
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
|
-
if (!
|
|
1556
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1557
1557
|
if (otherNode == null) {
|
|
1558
1558
|
return false;
|
|
1559
1559
|
}
|
|
@@ -1578,7 +1578,7 @@
|
|
|
1578
1578
|
},
|
|
1579
1579
|
cloneNode: {
|
|
1580
1580
|
value: function value(deep) {
|
|
1581
|
-
if (!
|
|
1581
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1582
1582
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1583
1583
|
return cloneNodePatched.call(this, deep);
|
|
1584
1584
|
}
|
|
@@ -4041,7 +4041,7 @@
|
|
|
4041
4041
|
defineProperties(Element.prototype, {
|
|
4042
4042
|
innerHTML: {
|
|
4043
4043
|
get: function get() {
|
|
4044
|
-
if (!
|
|
4044
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4045
4045
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4046
4046
|
return innerHTMLGetterPatched.call(this);
|
|
4047
4047
|
}
|
|
@@ -4064,7 +4064,7 @@
|
|
|
4064
4064
|
},
|
|
4065
4065
|
outerHTML: {
|
|
4066
4066
|
get: function get() {
|
|
4067
|
-
if (!
|
|
4067
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4068
4068
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4069
4069
|
return outerHTMLGetterPatched.call(this);
|
|
4070
4070
|
}
|
|
@@ -4190,7 +4190,7 @@
|
|
|
4190
4190
|
});
|
|
4191
4191
|
return isUndefined(elm) ? null : elm;
|
|
4192
4192
|
} else {
|
|
4193
|
-
if (!
|
|
4193
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4194
4194
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
4195
4195
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
4196
4196
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -4206,7 +4206,7 @@
|
|
|
4206
4206
|
return isUndefined(_elm) ? null : _elm;
|
|
4207
4207
|
}
|
|
4208
4208
|
} else {
|
|
4209
|
-
if (!
|
|
4209
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4210
4210
|
if (!(this instanceof HTMLBodyElement)) {
|
|
4211
4211
|
var _elm3 = nodeList[0];
|
|
4212
4212
|
return isUndefined(_elm3) ? null : _elm3;
|
|
@@ -4298,7 +4298,7 @@
|
|
|
4298
4298
|
value: function value() {
|
|
4299
4299
|
var nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4300
4300
|
|
|
4301
|
-
if (!
|
|
4301
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4302
4302
|
var filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
4303
4303
|
/* ShadowDomSemantic.Disabled */
|
|
4304
4304
|
);
|
|
@@ -4321,7 +4321,7 @@
|
|
|
4321
4321
|
value: function value() {
|
|
4322
4322
|
var elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
4323
4323
|
|
|
4324
|
-
if (!
|
|
4324
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4325
4325
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4326
4326
|
}
|
|
4327
4327
|
|
|
@@ -4338,7 +4338,7 @@
|
|
|
4338
4338
|
value: function value() {
|
|
4339
4339
|
var elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
4340
4340
|
|
|
4341
|
-
if (!
|
|
4341
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4342
4342
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4343
4343
|
}
|
|
4344
4344
|
|
|
@@ -4355,7 +4355,7 @@
|
|
|
4355
4355
|
value: function value() {
|
|
4356
4356
|
var elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
4357
4357
|
|
|
4358
|
-
if (!
|
|
4358
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4359
4359
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4360
4360
|
}
|
|
4361
4361
|
|
|
@@ -5176,11 +5176,11 @@
|
|
|
5176
5176
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
5177
5177
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
5178
5178
|
get: function get() {
|
|
5179
|
-
if (!
|
|
5179
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
5180
5180
|
return innerTextGetter.call(this);
|
|
5181
5181
|
}
|
|
5182
5182
|
|
|
5183
|
-
if (!
|
|
5183
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5184
5184
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5185
5185
|
return getInnerText(this);
|
|
5186
5186
|
}
|
|
@@ -5210,11 +5210,11 @@
|
|
|
5210
5210
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
5211
5211
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
5212
5212
|
get: function get() {
|
|
5213
|
-
if (!
|
|
5213
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
5214
5214
|
return outerTextGetter.call(this);
|
|
5215
5215
|
}
|
|
5216
5216
|
|
|
5217
|
-
if (!
|
|
5217
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5218
5218
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5219
5219
|
return getInnerText(this);
|
|
5220
5220
|
}
|
|
@@ -5444,6 +5444,6 @@
|
|
|
5444
5444
|
},
|
|
5445
5445
|
configurable: true
|
|
5446
5446
|
});
|
|
5447
|
-
/** version: 2.23.
|
|
5447
|
+
/** version: 2.23.1 */
|
|
5448
5448
|
|
|
5449
5449
|
}));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
function isUndefined(obj) {
|
|
8
8
|
return obj === undefined;
|
|
9
9
|
}
|
|
10
|
-
/** version: 2.23.
|
|
10
|
+
/** version: 2.23.1 */
|
|
11
11
|
|
|
12
12
|
/*
|
|
13
13
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -181,6 +181,6 @@ class LegacyWireAdapterBridge {
|
|
|
181
181
|
forEach.call(this.disconnecting, (listener) => listener.call(undefined));
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
/** version: 2.23.
|
|
184
|
+
/** version: 2.23.1 */
|
|
185
185
|
|
|
186
186
|
export { ValueChangedEvent, register, registerWireService };
|
|
@@ -10,7 +10,7 @@ var WireService = (function (exports) {
|
|
|
10
10
|
function isUndefined(obj) {
|
|
11
11
|
return obj === undefined;
|
|
12
12
|
}
|
|
13
|
-
/** version: 2.23.
|
|
13
|
+
/** version: 2.23.1 */
|
|
14
14
|
|
|
15
15
|
/*
|
|
16
16
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -184,7 +184,7 @@ var WireService = (function (exports) {
|
|
|
184
184
|
forEach.call(this.disconnecting, (listener) => listener.call(undefined));
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
/** version: 2.23.
|
|
187
|
+
/** version: 2.23.1 */
|
|
188
188
|
|
|
189
189
|
exports.ValueChangedEvent = ValueChangedEvent;
|
|
190
190
|
exports.register = register;
|
|
@@ -10,7 +10,7 @@ var WireService = (function (exports) {
|
|
|
10
10
|
function isUndefined(obj) {
|
|
11
11
|
return obj === undefined;
|
|
12
12
|
}
|
|
13
|
-
/** version: 2.23.
|
|
13
|
+
/** version: 2.23.1 */
|
|
14
14
|
|
|
15
15
|
/*
|
|
16
16
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -184,7 +184,7 @@ var WireService = (function (exports) {
|
|
|
184
184
|
forEach.call(this.disconnecting, (listener) => listener.call(undefined));
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
/** version: 2.23.
|
|
187
|
+
/** version: 2.23.1 */
|
|
188
188
|
|
|
189
189
|
exports.ValueChangedEvent = ValueChangedEvent;
|
|
190
190
|
exports.register = register;
|