lwc 2.23.0 → 2.23.3
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 +1208 -877
- package/dist/engine-dom/iife/es2017/engine-dom.js +1208 -876
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +1115 -812
- package/dist/engine-dom/iife/es5/engine-dom.js +473 -386
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +424 -344
- package/dist/engine-dom/umd/es2017/engine-dom.js +1208 -876
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +1115 -812
- package/dist/engine-dom/umd/es5/engine-dom.js +473 -386
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +424 -344
- package/dist/engine-server/commonjs/es2017/engine-server.js +803 -537
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +803 -537
- 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 +17 -9
|
@@ -148,7 +148,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
|
148
148
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
|
149
149
|
// we can't use typeof since it will fail when transpiling.
|
|
150
150
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
151
|
-
/** version: 2.23.
|
|
151
|
+
/** version: 2.23.3 */
|
|
152
152
|
|
|
153
153
|
/*
|
|
154
154
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1123,8 +1123,8 @@ function createStaticHTMLCollection(items) {
|
|
|
1123
1123
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
1124
1124
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1127
|
-
/** version: 2.23.
|
|
1126
|
+
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1127
|
+
/** version: 2.23.3 */
|
|
1128
1128
|
|
|
1129
1129
|
/*
|
|
1130
1130
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1375,7 +1375,7 @@ defineProperties(_Node.prototype, {
|
|
|
1375
1375
|
},
|
|
1376
1376
|
textContent: {
|
|
1377
1377
|
get() {
|
|
1378
|
-
if (!
|
|
1378
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1379
1379
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1380
1380
|
return textContentGetterPatched.call(this);
|
|
1381
1381
|
}
|
|
@@ -1482,7 +1482,7 @@ defineProperties(_Node.prototype, {
|
|
|
1482
1482
|
return true;
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
1485
|
-
if (!
|
|
1485
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1486
1486
|
if (otherNode == null) {
|
|
1487
1487
|
return false;
|
|
1488
1488
|
}
|
|
@@ -1508,7 +1508,7 @@ defineProperties(_Node.prototype, {
|
|
|
1508
1508
|
},
|
|
1509
1509
|
cloneNode: {
|
|
1510
1510
|
value(deep) {
|
|
1511
|
-
if (!
|
|
1511
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1512
1512
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1513
1513
|
return cloneNodePatched.call(this, deep);
|
|
1514
1514
|
}
|
|
@@ -3808,7 +3808,7 @@ function lastElementChildGetterPatched() {
|
|
|
3808
3808
|
defineProperties(Element.prototype, {
|
|
3809
3809
|
innerHTML: {
|
|
3810
3810
|
get() {
|
|
3811
|
-
if (!
|
|
3811
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3812
3812
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3813
3813
|
return innerHTMLGetterPatched.call(this);
|
|
3814
3814
|
}
|
|
@@ -3833,7 +3833,7 @@ defineProperties(Element.prototype, {
|
|
|
3833
3833
|
},
|
|
3834
3834
|
outerHTML: {
|
|
3835
3835
|
get() {
|
|
3836
|
-
if (!
|
|
3836
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3837
3837
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3838
3838
|
return outerHTMLGetterPatched.call(this);
|
|
3839
3839
|
}
|
|
@@ -3961,7 +3961,7 @@ function querySelectorPatched() {
|
|
|
3961
3961
|
const elm = ArrayFind.call(nodeList, elm => getNodeNearestOwnerKey(elm) === ownerKey);
|
|
3962
3962
|
return isUndefined(elm) ? null : elm;
|
|
3963
3963
|
} else {
|
|
3964
|
-
if (!
|
|
3964
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3965
3965
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
3966
3966
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
3967
3967
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -3973,7 +3973,7 @@ function querySelectorPatched() {
|
|
|
3973
3973
|
return isUndefined(elm) ? null : elm;
|
|
3974
3974
|
}
|
|
3975
3975
|
} else {
|
|
3976
|
-
if (!
|
|
3976
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3977
3977
|
if (!(this instanceof HTMLBodyElement)) {
|
|
3978
3978
|
const elm = nodeList[0];
|
|
3979
3979
|
return isUndefined(elm) ? null : elm;
|
|
@@ -4056,7 +4056,7 @@ defineProperties(Element.prototype, {
|
|
|
4056
4056
|
value() {
|
|
4057
4057
|
const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4058
4058
|
|
|
4059
|
-
if (!
|
|
4059
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4060
4060
|
const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
4061
4061
|
/* ShadowDomSemantic.Disabled */
|
|
4062
4062
|
);
|
|
@@ -4080,7 +4080,7 @@ if (process.env.NODE_ENV !== 'test') {
|
|
|
4080
4080
|
value() {
|
|
4081
4081
|
const elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
4082
4082
|
|
|
4083
|
-
if (!
|
|
4083
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4084
4084
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4085
4085
|
}
|
|
4086
4086
|
|
|
@@ -4098,7 +4098,7 @@ if (process.env.NODE_ENV !== 'test') {
|
|
|
4098
4098
|
value() {
|
|
4099
4099
|
const elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
4100
4100
|
|
|
4101
|
-
if (!
|
|
4101
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4102
4102
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4103
4103
|
}
|
|
4104
4104
|
|
|
@@ -4116,7 +4116,7 @@ if (process.env.NODE_ENV !== 'test') {
|
|
|
4116
4116
|
value() {
|
|
4117
4117
|
const elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
4118
4118
|
|
|
4119
|
-
if (!
|
|
4119
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4120
4120
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4121
4121
|
}
|
|
4122
4122
|
|
|
@@ -4848,11 +4848,11 @@ defineProperties(HTMLElement.prototype, {
|
|
|
4848
4848
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
4849
4849
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
4850
4850
|
get() {
|
|
4851
|
-
if (!
|
|
4851
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4852
4852
|
return innerTextGetter.call(this);
|
|
4853
4853
|
}
|
|
4854
4854
|
|
|
4855
|
-
if (!
|
|
4855
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4856
4856
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4857
4857
|
return getInnerText(this);
|
|
4858
4858
|
}
|
|
@@ -4884,11 +4884,11 @@ if (outerTextGetter !== null && outerTextSetter !== null) {
|
|
|
4884
4884
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
4885
4885
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
4886
4886
|
get() {
|
|
4887
|
-
if (!
|
|
4887
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4888
4888
|
return outerTextGetter.call(this);
|
|
4889
4889
|
}
|
|
4890
4890
|
|
|
4891
|
-
if (!
|
|
4891
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4892
4892
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4893
4893
|
return getInnerText(this);
|
|
4894
4894
|
}
|
|
@@ -5102,7 +5102,7 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
|
|
|
5102
5102
|
window.addEventListener('test-dummy-flag', () => {
|
|
5103
5103
|
let hasFlag = false;
|
|
5104
5104
|
|
|
5105
|
-
if (
|
|
5105
|
+
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
|
5106
5106
|
hasFlag = true;
|
|
5107
5107
|
}
|
|
5108
5108
|
|
|
@@ -5114,4 +5114,4 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
|
|
|
5114
5114
|
}));
|
|
5115
5115
|
});
|
|
5116
5116
|
}
|
|
5117
|
-
/** version: 2.23.
|
|
5117
|
+
/** version: 2.23.3 */
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
|
152
152
|
// we can't use typeof since it will fail when transpiling.
|
|
153
153
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
154
|
-
/** version: 2.23.
|
|
154
|
+
/** version: 2.23.3 */
|
|
155
155
|
|
|
156
156
|
/*
|
|
157
157
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1126,8 +1126,8 @@
|
|
|
1126
1126
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
1127
1127
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1128
1128
|
}
|
|
1129
|
-
const
|
|
1130
|
-
/** version: 2.23.
|
|
1129
|
+
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1130
|
+
/** version: 2.23.3 */
|
|
1131
1131
|
|
|
1132
1132
|
/*
|
|
1133
1133
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1378,7 +1378,7 @@
|
|
|
1378
1378
|
},
|
|
1379
1379
|
textContent: {
|
|
1380
1380
|
get() {
|
|
1381
|
-
if (!
|
|
1381
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1382
1382
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1383
1383
|
return textContentGetterPatched.call(this);
|
|
1384
1384
|
}
|
|
@@ -1485,7 +1485,7 @@
|
|
|
1485
1485
|
return true;
|
|
1486
1486
|
}
|
|
1487
1487
|
|
|
1488
|
-
if (!
|
|
1488
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1489
1489
|
if (otherNode == null) {
|
|
1490
1490
|
return false;
|
|
1491
1491
|
}
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
},
|
|
1512
1512
|
cloneNode: {
|
|
1513
1513
|
value(deep) {
|
|
1514
|
-
if (!
|
|
1514
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1515
1515
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1516
1516
|
return cloneNodePatched.call(this, deep);
|
|
1517
1517
|
}
|
|
@@ -3811,7 +3811,7 @@
|
|
|
3811
3811
|
defineProperties(Element.prototype, {
|
|
3812
3812
|
innerHTML: {
|
|
3813
3813
|
get() {
|
|
3814
|
-
if (!
|
|
3814
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3815
3815
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3816
3816
|
return innerHTMLGetterPatched.call(this);
|
|
3817
3817
|
}
|
|
@@ -3836,7 +3836,7 @@
|
|
|
3836
3836
|
},
|
|
3837
3837
|
outerHTML: {
|
|
3838
3838
|
get() {
|
|
3839
|
-
if (!
|
|
3839
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3840
3840
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3841
3841
|
return outerHTMLGetterPatched.call(this);
|
|
3842
3842
|
}
|
|
@@ -3964,7 +3964,7 @@
|
|
|
3964
3964
|
const elm = ArrayFind.call(nodeList, elm => getNodeNearestOwnerKey(elm) === ownerKey);
|
|
3965
3965
|
return isUndefined(elm) ? null : elm;
|
|
3966
3966
|
} else {
|
|
3967
|
-
if (!
|
|
3967
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3968
3968
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
3969
3969
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
3970
3970
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -3976,7 +3976,7 @@
|
|
|
3976
3976
|
return isUndefined(elm) ? null : elm;
|
|
3977
3977
|
}
|
|
3978
3978
|
} else {
|
|
3979
|
-
if (!
|
|
3979
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3980
3980
|
if (!(this instanceof HTMLBodyElement)) {
|
|
3981
3981
|
const elm = nodeList[0];
|
|
3982
3982
|
return isUndefined(elm) ? null : elm;
|
|
@@ -4059,7 +4059,7 @@
|
|
|
4059
4059
|
value() {
|
|
4060
4060
|
const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4061
4061
|
|
|
4062
|
-
if (!
|
|
4062
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4063
4063
|
const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
4064
4064
|
/* ShadowDomSemantic.Disabled */
|
|
4065
4065
|
);
|
|
@@ -4083,7 +4083,7 @@
|
|
|
4083
4083
|
value() {
|
|
4084
4084
|
const elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
4085
4085
|
|
|
4086
|
-
if (!
|
|
4086
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4087
4087
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4088
4088
|
}
|
|
4089
4089
|
|
|
@@ -4101,7 +4101,7 @@
|
|
|
4101
4101
|
value() {
|
|
4102
4102
|
const elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
4103
4103
|
|
|
4104
|
-
if (!
|
|
4104
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4105
4105
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4106
4106
|
}
|
|
4107
4107
|
|
|
@@ -4119,7 +4119,7 @@
|
|
|
4119
4119
|
value() {
|
|
4120
4120
|
const elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
4121
4121
|
|
|
4122
|
-
if (!
|
|
4122
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4123
4123
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4124
4124
|
}
|
|
4125
4125
|
|
|
@@ -4851,11 +4851,11 @@
|
|
|
4851
4851
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
4852
4852
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
4853
4853
|
get() {
|
|
4854
|
-
if (!
|
|
4854
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4855
4855
|
return innerTextGetter.call(this);
|
|
4856
4856
|
}
|
|
4857
4857
|
|
|
4858
|
-
if (!
|
|
4858
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4859
4859
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4860
4860
|
return getInnerText(this);
|
|
4861
4861
|
}
|
|
@@ -4887,11 +4887,11 @@
|
|
|
4887
4887
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
4888
4888
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
4889
4889
|
get() {
|
|
4890
|
-
if (!
|
|
4890
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4891
4891
|
return outerTextGetter.call(this);
|
|
4892
4892
|
}
|
|
4893
4893
|
|
|
4894
|
-
if (!
|
|
4894
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4895
4895
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4896
4896
|
return getInnerText(this);
|
|
4897
4897
|
}
|
|
@@ -5105,7 +5105,7 @@
|
|
|
5105
5105
|
window.addEventListener('test-dummy-flag', () => {
|
|
5106
5106
|
let hasFlag = false;
|
|
5107
5107
|
|
|
5108
|
-
if (
|
|
5108
|
+
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
|
5109
5109
|
hasFlag = true;
|
|
5110
5110
|
}
|
|
5111
5111
|
|
|
@@ -5117,6 +5117,6 @@
|
|
|
5117
5117
|
}));
|
|
5118
5118
|
});
|
|
5119
5119
|
}
|
|
5120
|
-
/** version: 2.23.
|
|
5120
|
+
/** version: 2.23.3 */
|
|
5121
5121
|
|
|
5122
5122
|
})();
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
const KEY__SHADOW_TOKEN = '$shadowToken$';
|
|
88
88
|
const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
89
89
|
const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
90
|
-
/** version: 2.23.
|
|
90
|
+
/** version: 2.23.3 */
|
|
91
91
|
|
|
92
92
|
/*
|
|
93
93
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1048,8 +1048,8 @@
|
|
|
1048
1048
|
if (!_globalThis.lwcRuntimeFlags) {
|
|
1049
1049
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1052
|
-
/** version: 2.23.
|
|
1051
|
+
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1052
|
+
/** version: 2.23.3 */
|
|
1053
1053
|
|
|
1054
1054
|
/*
|
|
1055
1055
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1292,7 +1292,7 @@
|
|
|
1292
1292
|
},
|
|
1293
1293
|
textContent: {
|
|
1294
1294
|
get() {
|
|
1295
|
-
if (!
|
|
1295
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1296
1296
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1297
1297
|
return textContentGetterPatched.call(this);
|
|
1298
1298
|
}
|
|
@@ -1399,7 +1399,7 @@
|
|
|
1399
1399
|
return true;
|
|
1400
1400
|
}
|
|
1401
1401
|
|
|
1402
|
-
if (!
|
|
1402
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1403
1403
|
if (otherNode == null) {
|
|
1404
1404
|
return false;
|
|
1405
1405
|
}
|
|
@@ -1425,7 +1425,7 @@
|
|
|
1425
1425
|
},
|
|
1426
1426
|
cloneNode: {
|
|
1427
1427
|
value(deep) {
|
|
1428
|
-
if (!
|
|
1428
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1429
1429
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1430
1430
|
return cloneNodePatched.call(this, deep);
|
|
1431
1431
|
}
|
|
@@ -3642,7 +3642,7 @@
|
|
|
3642
3642
|
defineProperties(Element.prototype, {
|
|
3643
3643
|
innerHTML: {
|
|
3644
3644
|
get() {
|
|
3645
|
-
if (!
|
|
3645
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3646
3646
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3647
3647
|
return innerHTMLGetterPatched.call(this);
|
|
3648
3648
|
}
|
|
@@ -3667,7 +3667,7 @@
|
|
|
3667
3667
|
},
|
|
3668
3668
|
outerHTML: {
|
|
3669
3669
|
get() {
|
|
3670
|
-
if (!
|
|
3670
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
3671
3671
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
3672
3672
|
return outerHTMLGetterPatched.call(this);
|
|
3673
3673
|
}
|
|
@@ -3795,7 +3795,7 @@
|
|
|
3795
3795
|
const elm = ArrayFind.call(nodeList, elm => getNodeNearestOwnerKey(elm) === ownerKey);
|
|
3796
3796
|
return isUndefined(elm) ? null : elm;
|
|
3797
3797
|
} else {
|
|
3798
|
-
if (!
|
|
3798
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3799
3799
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
3800
3800
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
3801
3801
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -3807,7 +3807,7 @@
|
|
|
3807
3807
|
return isUndefined(elm) ? null : elm;
|
|
3808
3808
|
}
|
|
3809
3809
|
} else {
|
|
3810
|
-
if (!
|
|
3810
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3811
3811
|
if (!(this instanceof HTMLBodyElement)) {
|
|
3812
3812
|
const elm = nodeList[0];
|
|
3813
3813
|
return isUndefined(elm) ? null : elm;
|
|
@@ -3890,7 +3890,7 @@
|
|
|
3890
3890
|
value() {
|
|
3891
3891
|
const nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
3892
3892
|
|
|
3893
|
-
if (!
|
|
3893
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
3894
3894
|
const filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
3895
3895
|
/* ShadowDomSemantic.Disabled */
|
|
3896
3896
|
);
|
|
@@ -3914,7 +3914,7 @@
|
|
|
3914
3914
|
value() {
|
|
3915
3915
|
const elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
3916
3916
|
|
|
3917
|
-
if (!
|
|
3917
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
3918
3918
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
3919
3919
|
}
|
|
3920
3920
|
|
|
@@ -3932,7 +3932,7 @@
|
|
|
3932
3932
|
value() {
|
|
3933
3933
|
const elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
3934
3934
|
|
|
3935
|
-
if (!
|
|
3935
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
3936
3936
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
3937
3937
|
}
|
|
3938
3938
|
|
|
@@ -3950,7 +3950,7 @@
|
|
|
3950
3950
|
value() {
|
|
3951
3951
|
const elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
3952
3952
|
|
|
3953
|
-
if (!
|
|
3953
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
3954
3954
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
3955
3955
|
}
|
|
3956
3956
|
|
|
@@ -4673,11 +4673,11 @@
|
|
|
4673
4673
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
4674
4674
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
4675
4675
|
get() {
|
|
4676
|
-
if (!
|
|
4676
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4677
4677
|
return innerTextGetter.call(this);
|
|
4678
4678
|
}
|
|
4679
4679
|
|
|
4680
|
-
if (!
|
|
4680
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4681
4681
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4682
4682
|
return getInnerText(this);
|
|
4683
4683
|
}
|
|
@@ -4709,11 +4709,11 @@
|
|
|
4709
4709
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
4710
4710
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
4711
4711
|
get() {
|
|
4712
|
-
if (!
|
|
4712
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
4713
4713
|
return outerTextGetter.call(this);
|
|
4714
4714
|
}
|
|
4715
4715
|
|
|
4716
|
-
if (!
|
|
4716
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4717
4717
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4718
4718
|
return getInnerText(this);
|
|
4719
4719
|
}
|
|
@@ -4914,6 +4914,6 @@
|
|
|
4914
4914
|
},
|
|
4915
4915
|
configurable: true,
|
|
4916
4916
|
});
|
|
4917
|
-
/** version: 2.23.
|
|
4917
|
+
/** version: 2.23.3 */
|
|
4918
4918
|
|
|
4919
4919
|
})();
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
var hasNativeSymbolSupport = /*@__PURE__*/function () {
|
|
200
200
|
return Symbol('x').toString() === 'Symbol(x)';
|
|
201
201
|
}();
|
|
202
|
-
/** version: 2.23.
|
|
202
|
+
/** version: 2.23.3 */
|
|
203
203
|
|
|
204
204
|
/*
|
|
205
205
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1298,8 +1298,8 @@
|
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
|
-
var
|
|
1302
|
-
/** version: 2.23.
|
|
1301
|
+
var lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
|
1302
|
+
/** version: 2.23.3 */
|
|
1303
1303
|
|
|
1304
1304
|
/*
|
|
1305
1305
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -1549,7 +1549,7 @@
|
|
|
1549
1549
|
},
|
|
1550
1550
|
textContent: {
|
|
1551
1551
|
get: function get() {
|
|
1552
|
-
if (!
|
|
1552
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1553
1553
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1554
1554
|
return textContentGetterPatched.call(this);
|
|
1555
1555
|
}
|
|
@@ -1650,7 +1650,7 @@
|
|
|
1650
1650
|
return true;
|
|
1651
1651
|
}
|
|
1652
1652
|
|
|
1653
|
-
if (!
|
|
1653
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1654
1654
|
if (otherNode == null) {
|
|
1655
1655
|
return false;
|
|
1656
1656
|
}
|
|
@@ -1675,7 +1675,7 @@
|
|
|
1675
1675
|
},
|
|
1676
1676
|
cloneNode: {
|
|
1677
1677
|
value: function value(deep) {
|
|
1678
|
-
if (!
|
|
1678
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_PATCH) {
|
|
1679
1679
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
1680
1680
|
return cloneNodePatched.call(this, deep);
|
|
1681
1681
|
}
|
|
@@ -4225,7 +4225,7 @@
|
|
|
4225
4225
|
defineProperties(Element.prototype, {
|
|
4226
4226
|
innerHTML: {
|
|
4227
4227
|
get: function get() {
|
|
4228
|
-
if (!
|
|
4228
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4229
4229
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4230
4230
|
return innerHTMLGetterPatched.call(this);
|
|
4231
4231
|
}
|
|
@@ -4248,7 +4248,7 @@
|
|
|
4248
4248
|
},
|
|
4249
4249
|
outerHTML: {
|
|
4250
4250
|
get: function get() {
|
|
4251
|
-
if (!
|
|
4251
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
4252
4252
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
4253
4253
|
return outerHTMLGetterPatched.call(this);
|
|
4254
4254
|
}
|
|
@@ -4374,7 +4374,7 @@
|
|
|
4374
4374
|
});
|
|
4375
4375
|
return isUndefined(elm) ? null : elm;
|
|
4376
4376
|
} else {
|
|
4377
|
-
if (!
|
|
4377
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4378
4378
|
// `this` is a manually inserted element inside a shadowRoot, return the first element.
|
|
4379
4379
|
return nodeList.length === 0 ? null : nodeList[0];
|
|
4380
4380
|
} // Element is inside a shadow but we dont know which one. Use the
|
|
@@ -4390,7 +4390,7 @@
|
|
|
4390
4390
|
return isUndefined(_elm) ? null : _elm;
|
|
4391
4391
|
}
|
|
4392
4392
|
} else {
|
|
4393
|
-
if (!
|
|
4393
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4394
4394
|
if (!(this instanceof HTMLBodyElement)) {
|
|
4395
4395
|
var _elm3 = nodeList[0];
|
|
4396
4396
|
return isUndefined(_elm3) ? null : _elm3;
|
|
@@ -4482,7 +4482,7 @@
|
|
|
4482
4482
|
value: function value() {
|
|
4483
4483
|
var nodeList = arrayFromCollection(querySelectorAll$1.apply(this, ArraySlice.call(arguments)));
|
|
4484
4484
|
|
|
4485
|
-
if (!
|
|
4485
|
+
if (!lwcRuntimeFlags.ENABLE_NODE_LIST_PATCH) {
|
|
4486
4486
|
var filteredResults = getFilteredArrayOfNodes(this, nodeList, 0
|
|
4487
4487
|
/* ShadowDomSemantic.Disabled */
|
|
4488
4488
|
);
|
|
@@ -4505,7 +4505,7 @@
|
|
|
4505
4505
|
value: function value() {
|
|
4506
4506
|
var elements = arrayFromCollection(getElementsByClassName$1.apply(this, ArraySlice.call(arguments)));
|
|
4507
4507
|
|
|
4508
|
-
if (!
|
|
4508
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4509
4509
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4510
4510
|
}
|
|
4511
4511
|
|
|
@@ -4522,7 +4522,7 @@
|
|
|
4522
4522
|
value: function value() {
|
|
4523
4523
|
var elements = arrayFromCollection(getElementsByTagName$1.apply(this, ArraySlice.call(arguments)));
|
|
4524
4524
|
|
|
4525
|
-
if (!
|
|
4525
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4526
4526
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4527
4527
|
}
|
|
4528
4528
|
|
|
@@ -4539,7 +4539,7 @@
|
|
|
4539
4539
|
value: function value() {
|
|
4540
4540
|
var elements = arrayFromCollection(getElementsByTagNameNS$1.apply(this, ArraySlice.call(arguments)));
|
|
4541
4541
|
|
|
4542
|
-
if (!
|
|
4542
|
+
if (!lwcRuntimeFlags.ENABLE_HTML_COLLECTIONS_PATCH) {
|
|
4543
4543
|
return createStaticHTMLCollection(getNonPatchedFilteredArrayOfNodes(this, elements));
|
|
4544
4544
|
}
|
|
4545
4545
|
|
|
@@ -5370,11 +5370,11 @@
|
|
|
5370
5370
|
if (innerTextGetter !== null && innerTextSetter !== null) {
|
|
5371
5371
|
defineProperty(HTMLElement.prototype, 'innerText', {
|
|
5372
5372
|
get: function get() {
|
|
5373
|
-
if (!
|
|
5373
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
5374
5374
|
return innerTextGetter.call(this);
|
|
5375
5375
|
}
|
|
5376
5376
|
|
|
5377
|
-
if (!
|
|
5377
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5378
5378
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5379
5379
|
return getInnerText(this);
|
|
5380
5380
|
}
|
|
@@ -5404,11 +5404,11 @@
|
|
|
5404
5404
|
// As a setter, it removes the current node and replaces it with the given text.
|
|
5405
5405
|
defineProperty(HTMLElement.prototype, 'outerText', {
|
|
5406
5406
|
get: function get() {
|
|
5407
|
-
if (!
|
|
5407
|
+
if (!lwcRuntimeFlags.ENABLE_INNER_OUTER_TEXT_PATCH) {
|
|
5408
5408
|
return outerTextGetter.call(this);
|
|
5409
5409
|
}
|
|
5410
5410
|
|
|
5411
|
-
if (!
|
|
5411
|
+
if (!lwcRuntimeFlags.ENABLE_ELEMENT_PATCH) {
|
|
5412
5412
|
if (isNodeShadowed(this) || isSyntheticShadowHost(this)) {
|
|
5413
5413
|
return getInnerText(this);
|
|
5414
5414
|
}
|
|
@@ -5650,7 +5650,7 @@
|
|
|
5650
5650
|
window.addEventListener('test-dummy-flag', function () {
|
|
5651
5651
|
var hasFlag = false;
|
|
5652
5652
|
|
|
5653
|
-
if (
|
|
5653
|
+
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
|
5654
5654
|
hasFlag = true;
|
|
5655
5655
|
}
|
|
5656
5656
|
|
|
@@ -5662,6 +5662,6 @@
|
|
|
5662
5662
|
}));
|
|
5663
5663
|
});
|
|
5664
5664
|
}
|
|
5665
|
-
/** version: 2.23.
|
|
5665
|
+
/** version: 2.23.3 */
|
|
5666
5666
|
|
|
5667
5667
|
})();
|