lwc 2.35.1 → 2.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine-dom/esm/es2017/engine-dom.js +20 -20
- package/dist/engine-dom/iife/es2017/engine-dom.js +20 -20
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +18 -18
- package/dist/engine-dom/iife/es5/engine-dom.js +208 -215
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +182 -189
- package/dist/engine-dom/umd/es2017/engine-dom.js +20 -20
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +18 -18
- package/dist/engine-dom/umd/es5/engine-dom.js +208 -215
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +182 -189
- package/dist/engine-server/commonjs/es2017/engine-server.js +8 -8
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +8 -8
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +5 -5
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +5 -5
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +9 -9
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +7 -7
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +5 -5
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +9 -9
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +7 -7
- 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
|
@@ -32,10 +32,10 @@ var LWC = (function (exports) {
|
|
|
32
32
|
|
|
33
33
|
var assert = /*#__PURE__*/Object.freeze({
|
|
34
34
|
__proto__: null,
|
|
35
|
+
fail: fail,
|
|
35
36
|
invariant: invariant,
|
|
36
|
-
isTrue: isTrue$1,
|
|
37
37
|
isFalse: isFalse$1,
|
|
38
|
-
|
|
38
|
+
isTrue: isTrue$1
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/*
|
|
@@ -321,7 +321,7 @@ var LWC = (function (exports) {
|
|
|
321
321
|
CACHED_ATTRIBUTE_PROPERTY_MAPPING.set(attrName, propertyName);
|
|
322
322
|
return propertyName;
|
|
323
323
|
}
|
|
324
|
-
/** version: 2.35.
|
|
324
|
+
/** version: 2.35.2 */
|
|
325
325
|
|
|
326
326
|
/**
|
|
327
327
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -389,7 +389,7 @@ var LWC = (function (exports) {
|
|
|
389
389
|
*/
|
|
390
390
|
function setFeatureFlagForTest(name, value) {
|
|
391
391
|
}
|
|
392
|
-
/** version: 2.35.
|
|
392
|
+
/** version: 2.35.2 */
|
|
393
393
|
|
|
394
394
|
/**
|
|
395
395
|
* Copyright (C) 2018 salesforce.com, inc.
|
|
@@ -453,7 +453,7 @@ var LWC = (function (exports) {
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
/** version: 2.35.
|
|
456
|
+
/** version: 2.35.2 */
|
|
457
457
|
|
|
458
458
|
/*
|
|
459
459
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -5976,7 +5976,7 @@ var LWC = (function (exports) {
|
|
|
5976
5976
|
const cachedConstructors = new Map();
|
|
5977
5977
|
const elementsUpgradedOutsideLWC = new WeakSet();
|
|
5978
5978
|
let elementBeingUpgradedByLWC = false;
|
|
5979
|
-
// Creates a constructor that is intended to be used as a
|
|
5979
|
+
// Creates a constructor that is intended to be used directly as a custom element, except that the upgradeCallback is
|
|
5980
5980
|
// passed in to the constructor so LWC can reuse the same custom element constructor for multiple components.
|
|
5981
5981
|
// Another benefit is that only LWC can create components that actually do anything – if you do
|
|
5982
5982
|
// `customElements.define('x-foo')`, then you don't have access to the upgradeCallback, so it's a dummy custom element.
|
|
@@ -6021,7 +6021,7 @@ var LWC = (function (exports) {
|
|
|
6021
6021
|
}
|
|
6022
6022
|
return UpgradableConstructor;
|
|
6023
6023
|
};
|
|
6024
|
-
const
|
|
6024
|
+
const createCustomElementUsingUpgradableConstructor = (tagName, upgradeCallback, connectedCallback, disconnectedCallback) => {
|
|
6025
6025
|
// use global custom elements registry
|
|
6026
6026
|
let UpgradableConstructor = cachedConstructors.get(tagName);
|
|
6027
6027
|
if (isUndefined$1(UpgradableConstructor)) {
|
|
@@ -6049,7 +6049,7 @@ var LWC = (function (exports) {
|
|
|
6049
6049
|
*/
|
|
6050
6050
|
/**
|
|
6051
6051
|
* Create a scoped registry, i.e. a function that can create custom elements whose tag names
|
|
6052
|
-
* do not conflict with
|
|
6052
|
+
* do not conflict with third-party custom elements having the same tag name.
|
|
6053
6053
|
*/
|
|
6054
6054
|
function createScopedRegistry() {
|
|
6055
6055
|
if (!hasCustomElements) {
|
|
@@ -6590,10 +6590,10 @@ var LWC = (function (exports) {
|
|
|
6590
6590
|
* We have three modes for creating custom elements:
|
|
6591
6591
|
*
|
|
6592
6592
|
* 1. Compat (legacy) browser support (e.g. IE11). Totally custom, doesn't rely on native browser APIs.
|
|
6593
|
-
* 2. "
|
|
6594
|
-
*
|
|
6595
|
-
*
|
|
6596
|
-
* constructor, which allows us to have completely customized functionality for different components.
|
|
6593
|
+
* 2. "Upgradable constructor" custom element. This allows us to have two LWC components with the same tag name,
|
|
6594
|
+
* via a trick: every custom element constructor we define in the registry is basically the same. It's essentially
|
|
6595
|
+
* a dummy `class extends HTMLElement` that accepts an `upgradeCallback` in its constructor ("upgradable
|
|
6596
|
+
* constructor"), which allows us to have completely customized functionality for different components.
|
|
6597
6597
|
* 3. "Scoped" (or "pivot") custom elements. This relies on a sophisticated system that emulates the "scoped custom
|
|
6598
6598
|
* elements registry" proposal, with support for avoiding conflicts in tag names both between LWC components and
|
|
6599
6599
|
* between LWC components and third-party elements. This uses a similar trick to #2, but is much more complex
|
|
@@ -6604,8 +6604,8 @@ var LWC = (function (exports) {
|
|
|
6604
6604
|
if (lwcRuntimeFlags.ENABLE_SCOPED_CUSTOM_ELEMENT_REGISTRY) {
|
|
6605
6605
|
createCustomElement = createCustomElementScoped;
|
|
6606
6606
|
} else {
|
|
6607
|
-
// use global
|
|
6608
|
-
createCustomElement =
|
|
6607
|
+
// use the global registry, with an upgradable constructor for the defined custom element
|
|
6608
|
+
createCustomElement = createCustomElementUsingUpgradableConstructor;
|
|
6609
6609
|
}
|
|
6610
6610
|
} else {
|
|
6611
6611
|
// no registry available here
|
|
@@ -6661,10 +6661,10 @@ var LWC = (function (exports) {
|
|
|
6661
6661
|
|
|
6662
6662
|
var assert = /*#__PURE__*/Object.freeze({
|
|
6663
6663
|
__proto__: null,
|
|
6664
|
+
fail: fail,
|
|
6664
6665
|
invariant: invariant,
|
|
6665
|
-
isTrue: isTrue$1,
|
|
6666
6666
|
isFalse: isFalse$1,
|
|
6667
|
-
|
|
6667
|
+
isTrue: isTrue$1
|
|
6668
6668
|
});
|
|
6669
6669
|
function isUndefined(obj) {
|
|
6670
6670
|
return obj === undefined;
|
|
@@ -6672,7 +6672,7 @@ var LWC = (function (exports) {
|
|
|
6672
6672
|
function isNull(obj) {
|
|
6673
6673
|
return obj === null;
|
|
6674
6674
|
}
|
|
6675
|
-
/** version: 2.35.
|
|
6675
|
+
/** version: 2.35.2 */
|
|
6676
6676
|
|
|
6677
6677
|
/*
|
|
6678
6678
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7225,7 +7225,7 @@ var LWC = (function (exports) {
|
|
|
7225
7225
|
});
|
|
7226
7226
|
freeze(LightningElement);
|
|
7227
7227
|
seal(LightningElement.prototype);
|
|
7228
|
-
/* version: 2.35.
|
|
7228
|
+
/* version: 2.35.2 */
|
|
7229
7229
|
|
|
7230
7230
|
exports.LightningElement = LightningElement;
|
|
7231
7231
|
exports.__unstable__ProfilerControl = profilerControl;
|