lwc 2.45.2 → 2.45.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 +45 -52
- package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom.js +45 -52
- package/dist/engine-dom/iife/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +51 -50
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/iife/es5/engine-dom.js +51 -56
- package/dist/engine-dom/iife/es5/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +57 -54
- package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom.js +45 -52
- package/dist/engine-dom/umd/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +51 -50
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/umd/es5/engine-dom.js +51 -56
- package/dist/engine-dom/umd/es5/engine-dom.js.map +1 -1
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +57 -54
- package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -1
- package/dist/engine-server/commonjs/es2017/engine-server.js +7795 -91
- package/dist/engine-server/commonjs/es2017/engine-server.js.map +1 -1
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +7794 -71
- package/dist/engine-server/esm/es2017/engine-server.js.map +1 -1
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +71 -12
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +71 -12
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +39 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +55 -5
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +71 -12
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +39 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +43 -4
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +71 -12
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +39 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +55 -5
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +71 -12
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +39 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +43 -4
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -1
- package/dist/wire-service/esm/es2017/wire-service.js +10 -4
- package/dist/wire-service/esm/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es2017/wire-service.js +10 -4
- package/dist/wire-service/iife/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es2017/wire-service_debug.js +10 -4
- package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -1
- package/dist/wire-service/iife/es5/wire-service.js +10 -4
- package/dist/wire-service/iife/es5/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +10 -4
- package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -1
- package/dist/wire-service/umd/es2017/wire-service.js +10 -4
- package/dist/wire-service/umd/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/umd/es2017/wire-service_debug.js +10 -4
- package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -1
- package/dist/wire-service/umd/es5/wire-service.js +10 -4
- package/dist/wire-service/umd/es5/wire-service.js.map +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +10 -4
- package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -1
- package/package.json +7 -7
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.LWC = {}));
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
-
/* proxy-compat-disable */
|
|
8
7
|
/**
|
|
9
|
-
* Copyright (C)
|
|
8
|
+
* Copyright (C) 2023 salesforce.com, inc.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Copyright (C) 2023 salesforce.com, inc.
|
|
10
12
|
*/
|
|
11
13
|
/*
|
|
12
14
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -199,7 +201,7 @@
|
|
|
199
201
|
})();
|
|
200
202
|
// These attributes take either an ID or a list of IDs as values.
|
|
201
203
|
// This includes aria-* attributes as well as the special non-ARIA "for" attribute
|
|
202
|
-
const ID_REFERENCING_ATTRIBUTES_SET = new Set([
|
|
204
|
+
const ID_REFERENCING_ATTRIBUTES_SET = /*@__PURE__*/ new Set([
|
|
203
205
|
'aria-activedescendant',
|
|
204
206
|
'aria-controls',
|
|
205
207
|
'aria-describedby',
|
|
@@ -286,11 +288,11 @@
|
|
|
286
288
|
/**
|
|
287
289
|
* Map associating previously transformed HTML property into HTML attribute.
|
|
288
290
|
*/
|
|
289
|
-
const CACHED_PROPERTY_ATTRIBUTE_MAPPING = new Map();
|
|
291
|
+
const CACHED_PROPERTY_ATTRIBUTE_MAPPING = /*@__PURE__@*/ new Map();
|
|
290
292
|
/**
|
|
291
293
|
* Map associating previously transformed HTML attribute into HTML property.
|
|
292
294
|
*/
|
|
293
|
-
const CACHED_ATTRIBUTE_PROPERTY_MAPPING = new Map();
|
|
295
|
+
const CACHED_ATTRIBUTE_PROPERTY_MAPPING = /*@__PURE__@*/ new Map();
|
|
294
296
|
function htmlPropertyToAttribute(propName) {
|
|
295
297
|
const ariaAttributeName = AriaPropNameToAttrNameMap[propName];
|
|
296
298
|
if (!isUndefined$1(ariaAttributeName)) {
|
|
@@ -344,12 +346,12 @@
|
|
|
344
346
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
345
347
|
*/
|
|
346
348
|
// Increment whenever the LWC template compiler changes
|
|
347
|
-
const LWC_VERSION = "2.45.
|
|
349
|
+
const LWC_VERSION = "2.45.3";
|
|
348
350
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
349
|
-
/** version: 2.45.
|
|
351
|
+
/** version: 2.45.3 */
|
|
350
352
|
|
|
351
353
|
/**
|
|
352
|
-
* Copyright (C)
|
|
354
|
+
* Copyright (C) 2023 salesforce.com, inc.
|
|
353
355
|
*/
|
|
354
356
|
|
|
355
357
|
/*
|
|
@@ -424,10 +426,10 @@
|
|
|
424
426
|
setFeatureFlag(name, value);
|
|
425
427
|
}
|
|
426
428
|
}
|
|
427
|
-
/** version: 2.45.
|
|
429
|
+
/** version: 2.45.3 */
|
|
428
430
|
|
|
429
431
|
/**
|
|
430
|
-
* Copyright (C)
|
|
432
|
+
* Copyright (C) 2023 salesforce.com, inc.
|
|
431
433
|
*/
|
|
432
434
|
|
|
433
435
|
/*
|
|
@@ -488,7 +490,7 @@
|
|
|
488
490
|
}
|
|
489
491
|
}
|
|
490
492
|
}
|
|
491
|
-
/** version: 2.45.
|
|
493
|
+
/** version: 2.45.3 */
|
|
492
494
|
|
|
493
495
|
/*
|
|
494
496
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -502,7 +504,9 @@
|
|
|
502
504
|
applyAriaReflection();
|
|
503
505
|
}
|
|
504
506
|
|
|
505
|
-
|
|
507
|
+
/**
|
|
508
|
+
* Copyright (C) 2023 salesforce.com, inc.
|
|
509
|
+
*/
|
|
506
510
|
|
|
507
511
|
/*
|
|
508
512
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -931,19 +935,6 @@
|
|
|
931
935
|
'tabIndex',
|
|
932
936
|
'title',
|
|
933
937
|
];
|
|
934
|
-
let controlledElement = null;
|
|
935
|
-
let controlledAttributeName;
|
|
936
|
-
function isAttributeLocked(elm, attrName) {
|
|
937
|
-
return elm !== controlledElement || attrName !== controlledAttributeName;
|
|
938
|
-
}
|
|
939
|
-
function lockAttribute(_elm, _key) {
|
|
940
|
-
controlledElement = null;
|
|
941
|
-
controlledAttributeName = undefined;
|
|
942
|
-
}
|
|
943
|
-
function unlockAttribute(elm, key) {
|
|
944
|
-
controlledElement = elm;
|
|
945
|
-
controlledAttributeName = key;
|
|
946
|
-
}
|
|
947
938
|
|
|
948
939
|
/*
|
|
949
940
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -982,6 +973,7 @@
|
|
|
982
973
|
* SPDX-License-Identifier: MIT
|
|
983
974
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
984
975
|
*/
|
|
976
|
+
/* eslint @lwc/lwc-internal/no-production-assert: "off" */
|
|
985
977
|
function generateDataDescriptor(options) {
|
|
986
978
|
return assign({
|
|
987
979
|
configurable: true,
|
|
@@ -1811,6 +1803,14 @@
|
|
|
1811
1803
|
* SPDX-License-Identifier: MIT
|
|
1812
1804
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
1813
1805
|
*/
|
|
1806
|
+
/**
|
|
1807
|
+
* This module is responsible for producing the ComponentDef object that is always
|
|
1808
|
+
* accessible via `vm.def`. This is lazily created during the creation of the first
|
|
1809
|
+
* instance of a component class, and shared across all instances.
|
|
1810
|
+
*
|
|
1811
|
+
* This structure can be used to synthetically create proxies, and understand the
|
|
1812
|
+
* shape of a component. It is also used internally to apply extra optimizations.
|
|
1813
|
+
*/
|
|
1814
1814
|
/**
|
|
1815
1815
|
* This operation is called with a descriptor of an standard html property
|
|
1816
1816
|
* that a Custom Element can support (including AOM properties), which
|
|
@@ -1974,15 +1974,11 @@
|
|
|
1974
1974
|
removeAttribute(name) {
|
|
1975
1975
|
const vm = getAssociatedVM(this);
|
|
1976
1976
|
const { elm, renderer: { removeAttribute }, } = vm;
|
|
1977
|
-
unlockAttribute(elm, name);
|
|
1978
1977
|
removeAttribute(elm, name);
|
|
1979
|
-
lockAttribute();
|
|
1980
1978
|
},
|
|
1981
1979
|
removeAttributeNS(namespace, name) {
|
|
1982
1980
|
const { elm, renderer: { removeAttribute }, } = getAssociatedVM(this);
|
|
1983
|
-
unlockAttribute(elm, name);
|
|
1984
1981
|
removeAttribute(elm, name, namespace);
|
|
1985
|
-
lockAttribute();
|
|
1986
1982
|
},
|
|
1987
1983
|
getAttribute(name) {
|
|
1988
1984
|
const vm = getAssociatedVM(this);
|
|
@@ -2004,9 +2000,7 @@
|
|
|
2004
2000
|
logError(`Failed to construct '${getComponentTag(vm)}': The result must not have attributes.`);
|
|
2005
2001
|
}
|
|
2006
2002
|
}
|
|
2007
|
-
unlockAttribute(elm, name);
|
|
2008
2003
|
setAttribute(elm, name, value);
|
|
2009
|
-
lockAttribute();
|
|
2010
2004
|
},
|
|
2011
2005
|
setAttributeNS(namespace, name, value) {
|
|
2012
2006
|
const vm = getAssociatedVM(this);
|
|
@@ -2016,9 +2010,7 @@
|
|
|
2016
2010
|
logError(`Failed to construct '${getComponentTag(vm)}': The result must not have attributes.`);
|
|
2017
2011
|
}
|
|
2018
2012
|
}
|
|
2019
|
-
unlockAttribute(elm, name);
|
|
2020
2013
|
setAttribute(elm, name, value, namespace);
|
|
2021
|
-
lockAttribute();
|
|
2022
2014
|
},
|
|
2023
2015
|
getBoundingClientRect() {
|
|
2024
2016
|
const vm = getAssociatedVM(this);
|
|
@@ -2400,7 +2392,7 @@
|
|
|
2400
2392
|
});
|
|
2401
2393
|
runWithBoundaryProtection(vm, vm, noop, () => {
|
|
2402
2394
|
// job
|
|
2403
|
-
connector = new adapter(dataCallback);
|
|
2395
|
+
connector = new adapter(dataCallback, { tagName: vm.tagName });
|
|
2404
2396
|
}, noop);
|
|
2405
2397
|
const updateConnectorConfig = (config) => {
|
|
2406
2398
|
// every time the config is recomputed due to tracking,
|
|
@@ -2968,6 +2960,10 @@
|
|
|
2968
2960
|
* SPDX-License-Identifier: MIT
|
|
2969
2961
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
2970
2962
|
*/
|
|
2963
|
+
/**
|
|
2964
|
+
* This module is responsible for creating the base bridge class BaseBridgeElement
|
|
2965
|
+
* that represents the HTMLElement extension used for any LWC inserted in the DOM.
|
|
2966
|
+
*/
|
|
2971
2967
|
// A bridge descriptor is a descriptor whose job is just to get the component instance
|
|
2972
2968
|
// from the element instance, and get the value or set a new value on the component.
|
|
2973
2969
|
// This means that across different elements, similar names can get the exact same
|
|
@@ -3021,14 +3017,6 @@
|
|
|
3021
3017
|
}
|
|
3022
3018
|
return;
|
|
3023
3019
|
}
|
|
3024
|
-
if (!isAttributeLocked(this, attrName)) {
|
|
3025
|
-
// Ignore changes triggered by the engine itself during:
|
|
3026
|
-
// * diffing when public props are attempting to reflect to the DOM
|
|
3027
|
-
// * component via `this.setAttribute()`, should never update the prop
|
|
3028
|
-
// Both cases, the setAttribute call is always wrapped by the unlocking of the
|
|
3029
|
-
// attribute to be changed
|
|
3030
|
-
return;
|
|
3031
|
-
}
|
|
3032
3020
|
// Reflect attribute change to the corresponding property when changed from outside.
|
|
3033
3021
|
this[propName] = newValue;
|
|
3034
3022
|
};
|
|
@@ -3373,6 +3361,14 @@
|
|
|
3373
3361
|
* SPDX-License-Identifier: MIT
|
|
3374
3362
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
3375
3363
|
*/
|
|
3364
|
+
/**
|
|
3365
|
+
* This module is responsible for producing the ComponentDef object that is always
|
|
3366
|
+
* accessible via `vm.def`. This is lazily created during the creation of the first
|
|
3367
|
+
* instance of a component class, and shared across all instances.
|
|
3368
|
+
*
|
|
3369
|
+
* This structure can be used to synthetically create proxies, and understand the
|
|
3370
|
+
* shape of a component. It is also used internally to apply extra optimizations.
|
|
3371
|
+
*/
|
|
3376
3372
|
const CtorToDefMap = new WeakMap();
|
|
3377
3373
|
function getCtorProto(Ctor) {
|
|
3378
3374
|
let proto = getPrototypeOf$1(Ctor);
|
|
@@ -3814,7 +3810,6 @@
|
|
|
3814
3810
|
const cur = attrs[key];
|
|
3815
3811
|
const old = oldAttrs[key];
|
|
3816
3812
|
if (old !== cur) {
|
|
3817
|
-
unlockAttribute(elm, key);
|
|
3818
3813
|
if (StringCharCodeAt.call(key, 3) === ColonCharCode$1) {
|
|
3819
3814
|
// Assume xml namespace
|
|
3820
3815
|
setAttribute(elm, key, cur, XML_NAMESPACE);
|
|
@@ -3829,7 +3824,6 @@
|
|
|
3829
3824
|
else {
|
|
3830
3825
|
setAttribute(elm, key, cur);
|
|
3831
3826
|
}
|
|
3832
|
-
lockAttribute();
|
|
3833
3827
|
}
|
|
3834
3828
|
}
|
|
3835
3829
|
}
|
|
@@ -6859,14 +6853,12 @@
|
|
|
6859
6853
|
function hydrateChildren(node, children, parentNode, owner) {
|
|
6860
6854
|
let hasWarned = false;
|
|
6861
6855
|
let nextNode = node;
|
|
6862
|
-
let anchor = null;
|
|
6863
6856
|
const { renderer } = owner;
|
|
6864
6857
|
for (let i = 0; i < children.length; i++) {
|
|
6865
6858
|
const childVnode = children[i];
|
|
6866
6859
|
if (!isNull(childVnode)) {
|
|
6867
6860
|
if (nextNode) {
|
|
6868
6861
|
nextNode = hydrateNode(nextNode, childVnode, renderer);
|
|
6869
|
-
anchor = childVnode.elm;
|
|
6870
6862
|
}
|
|
6871
6863
|
else {
|
|
6872
6864
|
hasMismatch = true;
|
|
@@ -6876,8 +6868,8 @@
|
|
|
6876
6868
|
logError(`Hydration mismatch: incorrect number of rendered nodes. Client produced more nodes than the server.`, owner);
|
|
6877
6869
|
}
|
|
6878
6870
|
}
|
|
6879
|
-
mount(childVnode, parentNode, renderer,
|
|
6880
|
-
|
|
6871
|
+
mount(childVnode, parentNode, renderer, nextNode);
|
|
6872
|
+
nextNode = renderer.nextSibling(childVnode.elm);
|
|
6881
6873
|
}
|
|
6882
6874
|
}
|
|
6883
6875
|
}
|
|
@@ -7384,7 +7376,7 @@
|
|
|
7384
7376
|
}
|
|
7385
7377
|
return getReadOnlyProxy(obj);
|
|
7386
7378
|
}
|
|
7387
|
-
|
|
7379
|
+
/** version: 2.45.3 */
|
|
7388
7380
|
|
|
7389
7381
|
/*
|
|
7390
7382
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7646,6 +7638,7 @@
|
|
|
7646
7638
|
* SPDX-License-Identifier: MIT
|
|
7647
7639
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
7648
7640
|
*/
|
|
7641
|
+
new WeakMap();
|
|
7649
7642
|
// Creates a custom element for compat (legacy) browser environments
|
|
7650
7643
|
const createCustomElementCompat = (tagName, upgradeCallback) => {
|
|
7651
7644
|
const elm = document.createElement(tagName);
|
|
@@ -7772,7 +7765,7 @@
|
|
|
7772
7765
|
const renderer = (function (exports) {
|
|
7773
7766
|
|
|
7774
7767
|
/**
|
|
7775
|
-
* Copyright (C)
|
|
7768
|
+
* Copyright (C) 2023 salesforce.com, inc.
|
|
7776
7769
|
*/
|
|
7777
7770
|
/*
|
|
7778
7771
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7812,7 +7805,7 @@
|
|
|
7812
7805
|
function isNull(obj) {
|
|
7813
7806
|
return obj === null;
|
|
7814
7807
|
}
|
|
7815
|
-
/** version: 2.45.
|
|
7808
|
+
/** version: 2.45.3 */
|
|
7816
7809
|
|
|
7817
7810
|
/*
|
|
7818
7811
|
* Copyright (c) 2023, salesforce.com, inc.
|
|
@@ -8431,7 +8424,7 @@
|
|
|
8431
8424
|
});
|
|
8432
8425
|
}));
|
|
8433
8426
|
}
|
|
8434
|
-
|
|
8427
|
+
/** version: 2.45.3 */
|
|
8435
8428
|
|
|
8436
8429
|
exports.LightningElement = LightningElement;
|
|
8437
8430
|
exports.__unstable__ProfilerControl = profilerControl;
|