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