@lwrjs/everywhere 0.12.0-alpha.16 → 0.12.0-alpha.18
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/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/521bc583cb94284201a80c65daad2264/config.js +12 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_12_0-alpha_18/s/8bce578258518655194bd71d1d72aad5/@lwrjs_app-service_amd-bootstrap_module_amd.js +14 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/{6_2_0/s/99eeb2c6eef76200d6f77e8a9895ea90 → 6_2_1/s/2670f5386c68fa67ae710174187505e9}/lwc.js +252 -53
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_12_0-alpha_16 → 0_12_0-alpha_18}/s/cb931ebef2b89dcf8ab51456e3a68864/lwr_everywhereAmd.js +3 -3
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/{0_12_0-alpha_16 → 0_12_0-alpha_18}/s/f30361ad8ff7af505bf4d465c8499181/lwr_init.js +21 -21
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_12_0-alpha_16/s/84acd1bff5776f584b8e922a13f7933c → 0_12_0-alpha_18/s/4d339c68d153d7a65ee9aeda30e5c3d9}/lwr_loader.js +4 -4
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_12_0-alpha_16 → 0_12_0-alpha_18}/s/274c8343f810353bbad085a79709395f/lwr_metrics.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/preInit/v/{0_12_0-alpha_16 → 0_12_0-alpha_18}/s/ec0fad0e38a96bb0b88c9f4553460347/lwr_preInit.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_12_0-alpha_16 → 0_12_0-alpha_18}/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js +1 -1
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/{0_12_0-alpha_16 → 0_12_0-alpha_18}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_12_0-alpha_16 → 0_12_0-alpha_18}/lwr-error-shim.js +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/{0_12_0-alpha_16 → 0_12_0-alpha_18}/lwr-loader-shim.bundle.js +7 -7
- package/build/assets/amd/lwr-everywhere-debug.js +9 -9
- package/build/assets/amd/lwr-everywhere-min.js +2 -2
- package/build/assets/amd/lwr-everywhere.js +9 -9
- package/build/assets/core/lwr-everywhere-debug.js +5 -5
- package/build/assets/core/lwr-everywhere-min.js +1 -1
- package/build/assets/core/lwr-everywhere.js +5 -5
- package/build/assets/esm/lwr-everywhere-debug.js +1 -1
- package/build/assets/esm/lwr-everywhere-min.js +1 -1
- package/build/assets/esm/lwr-everywhere.js +1 -1
- package/package.json +8 -8
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/59f6863ff21e50c52fb8a4acda63e8c8/config.js +0 -12
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_12_0-alpha_16/s/8bce578258518655194bd71d1d72aad5/@lwrjs_app-service_amd-bootstrap_module_amd.js +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LWR.define('lwc/v/
|
|
1
|
+
LWR.define('lwc/v/6_2_1', ['exports'], (function (exports) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) 2024 Salesforce, Inc.
|
|
@@ -12,21 +12,40 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
12
12
|
* SPDX-License-Identifier: MIT
|
|
13
13
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
14
14
|
*/
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param value
|
|
18
|
+
* @param msg
|
|
19
|
+
*/
|
|
15
20
|
function invariant(value, msg) {
|
|
16
21
|
if (!value) {
|
|
17
22
|
throw new Error(`Invariant Violation: ${msg}`);
|
|
18
23
|
}
|
|
19
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param value
|
|
28
|
+
* @param msg
|
|
29
|
+
*/
|
|
20
30
|
function isTrue$1(value, msg) {
|
|
21
31
|
if (!value) {
|
|
22
32
|
throw new Error(`Assert Violation: ${msg}`);
|
|
23
33
|
}
|
|
24
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param value
|
|
38
|
+
* @param msg
|
|
39
|
+
*/
|
|
25
40
|
function isFalse$1(value, msg) {
|
|
26
41
|
if (value) {
|
|
27
42
|
throw new Error(`Assert Violation: ${msg}`);
|
|
28
43
|
}
|
|
29
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param msg
|
|
48
|
+
*/
|
|
30
49
|
function fail(msg) {
|
|
31
50
|
throw new Error(msg);
|
|
32
51
|
}
|
|
@@ -39,31 +58,50 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
39
58
|
});
|
|
40
59
|
|
|
41
60
|
/*
|
|
42
|
-
* Copyright (c)
|
|
61
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
43
62
|
* All rights reserved.
|
|
44
63
|
* SPDX-License-Identifier: MIT
|
|
45
64
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
46
65
|
*/
|
|
47
66
|
const {
|
|
67
|
+
/** Detached {@linkcode Object.assign}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign MDN Reference}. */
|
|
48
68
|
assign,
|
|
69
|
+
/** Detached {@linkcode Object.create}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create MDN Reference}. */
|
|
49
70
|
create,
|
|
71
|
+
/** Detached {@linkcode Object.defineProperties}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties MDN Reference}. */
|
|
50
72
|
defineProperties,
|
|
73
|
+
/** Detached {@linkcode Object.defineProperty}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty MDN Reference}. */
|
|
51
74
|
defineProperty,
|
|
75
|
+
/** Detached {@linkcode Object.entries}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries MDN Reference}. */
|
|
52
76
|
entries,
|
|
77
|
+
/** Detached {@linkcode Object.freeze}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze MDN Reference}. */
|
|
53
78
|
freeze,
|
|
79
|
+
/** Detached {@linkcode Object.getOwnPropertyDescriptor}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor MDN Reference}. */
|
|
54
80
|
getOwnPropertyDescriptor: getOwnPropertyDescriptor$1,
|
|
81
|
+
/** Detached {@linkcode Object.getOwnPropertyDescriptors}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors MDN Reference}. */
|
|
55
82
|
getOwnPropertyDescriptors,
|
|
83
|
+
/** Detached {@linkcode Object.getOwnPropertyNames}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames MDN Reference}. */
|
|
56
84
|
getOwnPropertyNames: getOwnPropertyNames$1,
|
|
85
|
+
/** Detached {@linkcode Object.getPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf MDN Reference}. */
|
|
57
86
|
getPrototypeOf: getPrototypeOf$1,
|
|
87
|
+
/** Detached {@linkcode Object.hasOwnProperty}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty MDN Reference}. */
|
|
58
88
|
hasOwnProperty: hasOwnProperty$1,
|
|
89
|
+
/** Detached {@linkcode Object.isFrozen}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen MDN Reference}. */
|
|
59
90
|
isFrozen,
|
|
91
|
+
/** Detached {@linkcode Object.keys}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys MDN Reference}. */
|
|
60
92
|
keys,
|
|
93
|
+
/** Detached {@linkcode Object.seal}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal MDN Reference}. */
|
|
61
94
|
seal,
|
|
95
|
+
/** Detached {@linkcode Object.setPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf MDN Reference}. */
|
|
62
96
|
setPrototypeOf
|
|
63
97
|
} = Object;
|
|
98
|
+
/** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */
|
|
64
99
|
const {
|
|
65
100
|
isArray: isArray$1
|
|
66
101
|
} = Array;
|
|
102
|
+
// For some reason, JSDoc don't get picked up for multiple renamed destructured constants (even
|
|
103
|
+
// though it works fine for one, e.g. isArray), so comments for these are added to the export
|
|
104
|
+
// statement, rather than this declaration.
|
|
67
105
|
const {
|
|
68
106
|
concat: ArrayConcat$1,
|
|
69
107
|
copyWithin: ArrayCopyWithin,
|
|
@@ -86,7 +124,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
86
124
|
sort: ArraySort,
|
|
87
125
|
splice: ArraySplice,
|
|
88
126
|
unshift: ArrayUnshift,
|
|
89
|
-
forEach
|
|
127
|
+
forEach // Weird anomaly!
|
|
90
128
|
} = Array.prototype;
|
|
91
129
|
// The type of the return value of Array.prototype.every is `this is T[]`. However, once this
|
|
92
130
|
// Array method is pulled out of the prototype, the function is now referencing `this` where
|
|
@@ -94,12 +132,21 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
94
132
|
//
|
|
95
133
|
// Exposing this helper function is the closest we can get to preserving the usage patterns
|
|
96
134
|
// of Array.prototype methods used elsewhere in the codebase.
|
|
135
|
+
/**
|
|
136
|
+
* Wrapper for {@linkcode Array.prototype.every} that correctly preserves the type predicate in the
|
|
137
|
+
* return value; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every MDN Reference}.
|
|
138
|
+
* @param arr Array to test.
|
|
139
|
+
* @param predicate A function to execute for each element of the array.
|
|
140
|
+
* @returns Whether all elements in the array pass the test provided by the predicate.
|
|
141
|
+
*/
|
|
97
142
|
function arrayEvery(arr, predicate) {
|
|
98
143
|
return ArrayEvery.call(arr, predicate);
|
|
99
144
|
}
|
|
145
|
+
/** Detached {@linkcode String.fromCharCode}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode MDN Reference}. */
|
|
100
146
|
const {
|
|
101
147
|
fromCharCode: StringFromCharCode
|
|
102
148
|
} = String;
|
|
149
|
+
// No JSDocs here - see comment for Array.prototype
|
|
103
150
|
const {
|
|
104
151
|
charCodeAt: StringCharCodeAt,
|
|
105
152
|
replace: StringReplace,
|
|
@@ -107,54 +154,124 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
107
154
|
slice: StringSlice,
|
|
108
155
|
toLowerCase: StringToLowerCase
|
|
109
156
|
} = String.prototype;
|
|
157
|
+
/**
|
|
158
|
+
* Determines whether the argument is `undefined`.
|
|
159
|
+
* @param obj Value to test
|
|
160
|
+
* @returns `true` if the value is `undefined`.
|
|
161
|
+
*/
|
|
110
162
|
function isUndefined$1(obj) {
|
|
111
163
|
return obj === undefined;
|
|
112
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Determines whether the argument is `null`.
|
|
167
|
+
* @param obj Value to test
|
|
168
|
+
* @returns `true` if the value is `null`.
|
|
169
|
+
*/
|
|
113
170
|
function isNull(obj) {
|
|
114
171
|
return obj === null;
|
|
115
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* Determines whether the argument is `true`.
|
|
175
|
+
* @param obj Value to test
|
|
176
|
+
* @returns `true` if the value is `true`.
|
|
177
|
+
*/
|
|
116
178
|
function isTrue(obj) {
|
|
117
179
|
return obj === true;
|
|
118
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* Determines whether the argument is `false`.
|
|
183
|
+
* @param obj Value to test
|
|
184
|
+
* @returns `true` if the value is `false`.
|
|
185
|
+
*/
|
|
119
186
|
function isFalse(obj) {
|
|
120
187
|
return obj === false;
|
|
121
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* Determines whether the argument is a boolean.
|
|
191
|
+
* @param obj Value to test
|
|
192
|
+
* @returns `true` if the value is a boolean.
|
|
193
|
+
*/
|
|
122
194
|
function isBoolean(obj) {
|
|
123
195
|
return typeof obj === 'boolean';
|
|
124
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Determines whether the argument is a function.
|
|
199
|
+
* @param obj Value to test
|
|
200
|
+
* @returns `true` if the value is a function.
|
|
201
|
+
*/
|
|
125
202
|
// Replacing `Function` with a narrower type that works for all our use cases is tricky...
|
|
126
203
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
127
204
|
function isFunction$1(obj) {
|
|
128
205
|
return typeof obj === 'function';
|
|
129
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Determines whether the argument is an object or null.
|
|
209
|
+
* @param obj Value to test
|
|
210
|
+
* @returns `true` if the value is an object or null.
|
|
211
|
+
*/
|
|
130
212
|
function isObject(obj) {
|
|
131
213
|
return typeof obj === 'object';
|
|
132
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Determines whether the argument is a string.
|
|
217
|
+
* @param obj Value to test
|
|
218
|
+
* @returns `true` if the value is a string.
|
|
219
|
+
*/
|
|
133
220
|
function isString(obj) {
|
|
134
221
|
return typeof obj === 'string';
|
|
135
222
|
}
|
|
223
|
+
/**
|
|
224
|
+
* Determines whether the argument is a number.
|
|
225
|
+
* @param obj Value to test
|
|
226
|
+
* @returns `true` if the value is a number.
|
|
227
|
+
*/
|
|
136
228
|
function isNumber(obj) {
|
|
137
229
|
return typeof obj === 'number';
|
|
138
230
|
}
|
|
231
|
+
/** Does nothing! 🚀 */
|
|
139
232
|
function noop() {
|
|
140
233
|
/* Do nothing */
|
|
141
234
|
}
|
|
142
235
|
const OtS$1 = {}.toString;
|
|
236
|
+
/**
|
|
237
|
+
* Converts the argument to a string, safely accounting for objects with "null" prototype.
|
|
238
|
+
* Note that `toString(null)` returns `"[object Null]"` rather than `"null"`.
|
|
239
|
+
* @param obj Value to convert to a string.
|
|
240
|
+
* @returns String representation of the value.
|
|
241
|
+
*/
|
|
143
242
|
function toString$1(obj) {
|
|
144
|
-
if (obj
|
|
243
|
+
if (obj?.toString) {
|
|
145
244
|
// Arrays might hold objects with "null" prototype So using
|
|
146
245
|
// Array.prototype.toString directly will cause an error Iterate through
|
|
147
246
|
// all the items and handle individually.
|
|
148
247
|
if (isArray$1(obj)) {
|
|
248
|
+
// This behavior is slightly different from Array#toString:
|
|
249
|
+
// 1. Array#toString calls `this.join`, rather than Array#join
|
|
250
|
+
// Ex: arr = []; arr.join = () => 1; arr.toString() === 1; toString(arr) === ''
|
|
251
|
+
// 2. Array#toString delegates to Object#toString if `this.join` is not a function
|
|
252
|
+
// Ex: arr = []; arr.join = 'no'; arr.toString() === '[object Array]; toString(arr) = ''
|
|
253
|
+
// 3. Array#toString converts null/undefined to ''
|
|
254
|
+
// Ex: arr = [null, undefined]; arr.toString() === ','; toString(arr) === '[object Null],undefined'
|
|
255
|
+
// 4. Array#toString converts recursive references to arrays to ''
|
|
256
|
+
// Ex: arr = [1]; arr.push(arr, 2); arr.toString() === '1,,2'; toString(arr) throws
|
|
257
|
+
// Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString
|
|
149
258
|
return ArrayJoin.call(ArrayMap.call(obj, toString$1), ',');
|
|
150
259
|
}
|
|
151
260
|
return obj.toString();
|
|
152
261
|
} else if (typeof obj === 'object') {
|
|
262
|
+
// This catches null and returns "[object Null]". Weird, but kept for backwards compatibility.
|
|
153
263
|
return OtS$1.call(obj);
|
|
154
264
|
} else {
|
|
155
|
-
return obj
|
|
265
|
+
return String(obj);
|
|
156
266
|
}
|
|
157
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* Gets the property descriptor for the given object and property key. Similar to
|
|
270
|
+
* {@linkcode Object.getOwnPropertyDescriptor}, but looks up the prototype chain.
|
|
271
|
+
* @param o Value to get the property descriptor for
|
|
272
|
+
* @param p Property key to get the descriptor for
|
|
273
|
+
* @returns The property descriptor for the given object and property key.
|
|
274
|
+
*/
|
|
158
275
|
function getPropertyDescriptor(o, p) {
|
|
159
276
|
do {
|
|
160
277
|
const d = getOwnPropertyDescriptor$1(o, p);
|
|
@@ -175,6 +292,11 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
175
292
|
// It's a bit annoying to do have to do this manually, but this makes the file tree-shakeable,
|
|
176
293
|
// passing the `verify-treeshakeable.js` test.
|
|
177
294
|
const LOWEST_API_VERSION = 58 /* APIVersion.V58_244_SUMMER_23 */;
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @param apiVersionFeature
|
|
298
|
+
* @param apiVersion
|
|
299
|
+
*/
|
|
178
300
|
function isAPIFeatureEnabled(apiVersionFeature, apiVersion) {
|
|
179
301
|
switch (apiVersionFeature) {
|
|
180
302
|
case 0 /* APIFeature.LOWERCASE_SCOPE_TOKENS */:
|
|
@@ -261,6 +383,10 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
261
383
|
* Map associating previously transformed HTML property into HTML attribute.
|
|
262
384
|
*/
|
|
263
385
|
const CACHED_PROPERTY_ATTRIBUTE_MAPPING = /*@__PURE__@*/new Map();
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @param propName
|
|
389
|
+
*/
|
|
264
390
|
function htmlPropertyToAttribute(propName) {
|
|
265
391
|
const ariaAttributeName = AriaPropNameToAttrNameMap[propName];
|
|
266
392
|
if (!isUndefined$1(ariaAttributeName)) {
|
|
@@ -293,6 +419,10 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
293
419
|
* Map associating previously transformed kabab-case attributes into camel-case props.
|
|
294
420
|
*/
|
|
295
421
|
const CACHED_KEBAB_CAMEL_MAPPING = /*@__PURE__@*/new Map();
|
|
422
|
+
/**
|
|
423
|
+
*
|
|
424
|
+
* @param attrName
|
|
425
|
+
*/
|
|
296
426
|
function kebabCaseToCamelCase(attrName) {
|
|
297
427
|
let result = CACHED_KEBAB_CAMEL_MAPPING.get(attrName);
|
|
298
428
|
if (isUndefined$1(result)) {
|
|
@@ -309,16 +439,16 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
309
439
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
310
440
|
*/
|
|
311
441
|
// Increment whenever the LWC template compiler changes
|
|
312
|
-
const LWC_VERSION = "6.2.
|
|
442
|
+
const LWC_VERSION = "6.2.1";
|
|
313
443
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
314
|
-
/** version: 6.2.
|
|
444
|
+
/** version: 6.2.1 */
|
|
315
445
|
|
|
316
446
|
/**
|
|
317
447
|
* Copyright (c) 2024 Salesforce, Inc.
|
|
318
448
|
*/
|
|
319
449
|
|
|
320
450
|
/*
|
|
321
|
-
* Copyright (c)
|
|
451
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
322
452
|
* All rights reserved.
|
|
323
453
|
* SPDX-License-Identifier: MIT
|
|
324
454
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -346,6 +476,10 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
346
476
|
/**
|
|
347
477
|
* Set the value at runtime of a given feature flag. This method only be invoked once per feature
|
|
348
478
|
* flag. It is meant to be used during the app initialization.
|
|
479
|
+
* @param name Name of the feature flag to set
|
|
480
|
+
* @param value Whether the feature flag should be enabled
|
|
481
|
+
* @throws Will throw if a non-boolean value is provided when running in production.
|
|
482
|
+
* @example setFeatureFlag("DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE", true)
|
|
349
483
|
*/
|
|
350
484
|
function setFeatureFlag(name, value) {
|
|
351
485
|
if (!isBoolean(value)) {
|
|
@@ -383,6 +517,9 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
383
517
|
/**
|
|
384
518
|
* Set the value at runtime of a given feature flag. This method should only be used for testing
|
|
385
519
|
* purposes. It is a no-op when invoked in production mode.
|
|
520
|
+
* @param name Name of the feature flag to enable or disable
|
|
521
|
+
* @param value Whether the feature flag should be enabled
|
|
522
|
+
* @example setFeatureFlag("DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE", true)
|
|
386
523
|
*/
|
|
387
524
|
function setFeatureFlagForTest(name, value) {
|
|
388
525
|
// This may seem redundant, but `process.env.NODE_ENV === 'test-karma-lwc'` is replaced by Karma tests
|
|
@@ -390,7 +527,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
390
527
|
setFeatureFlag(name, value);
|
|
391
528
|
}
|
|
392
529
|
}
|
|
393
|
-
/** version: 6.2.
|
|
530
|
+
/** version: 6.2.1 */
|
|
394
531
|
|
|
395
532
|
/**
|
|
396
533
|
* Copyright (c) 2024 Salesforce, Inc.
|
|
@@ -415,8 +552,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
415
552
|
const reportingControl = {
|
|
416
553
|
/**
|
|
417
554
|
* Attach a new reporting control (aka dispatcher).
|
|
418
|
-
*
|
|
419
|
-
* @param dispatcher - reporting control
|
|
555
|
+
* @param dispatcher reporting control
|
|
420
556
|
*/
|
|
421
557
|
attachDispatcher(dispatcher) {
|
|
422
558
|
enabled$1 = true;
|
|
@@ -457,7 +593,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
457
593
|
/**
|
|
458
594
|
* Report to the current dispatcher, if there is one.
|
|
459
595
|
* @param reportingEventId
|
|
460
|
-
* @param payload
|
|
596
|
+
* @param payload data to report
|
|
461
597
|
*/
|
|
462
598
|
function report(reportingEventId, payload) {
|
|
463
599
|
if (enabled$1) {
|
|
@@ -1600,7 +1736,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
1600
1736
|
valueMutated(originalTarget, key);
|
|
1601
1737
|
return true;
|
|
1602
1738
|
}
|
|
1603
|
-
/*LWC compiler v6.2.
|
|
1739
|
+
/*LWC compiler v6.2.1*/
|
|
1604
1740
|
}
|
|
1605
1741
|
const getterMap = new WeakMap();
|
|
1606
1742
|
const setterMap = new WeakMap();
|
|
@@ -1693,7 +1829,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
1693
1829
|
/* istanbul ignore next */
|
|
1694
1830
|
return false;
|
|
1695
1831
|
}
|
|
1696
|
-
/*LWC compiler v6.2.
|
|
1832
|
+
/*LWC compiler v6.2.1*/
|
|
1697
1833
|
}
|
|
1698
1834
|
function extract(objectOrArray) {
|
|
1699
1835
|
if (isArray(objectOrArray)) {
|
|
@@ -1879,6 +2015,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
1879
2015
|
* EXPERIMENTAL: This function implements an unwrap mechanism that
|
|
1880
2016
|
* works for observable membrane objects. This API is subject to
|
|
1881
2017
|
* change or being removed.
|
|
2018
|
+
* @param value
|
|
1882
2019
|
*/
|
|
1883
2020
|
function unwrap(value) {
|
|
1884
2021
|
// On the server side, we don't need mutation tracking. Skipping it improves performance.
|
|
@@ -1992,6 +2129,8 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
1992
2129
|
* that a Custom Element can support (including AOM properties), which
|
|
1993
2130
|
* determines what kind of capabilities the Base Lightning Element should support. When producing the new descriptors
|
|
1994
2131
|
* for the Base Lightning Element, it also include the reactivity bit, so the standard property is reactive.
|
|
2132
|
+
* @param propName
|
|
2133
|
+
* @param descriptor
|
|
1995
2134
|
*/
|
|
1996
2135
|
function createBridgeToElementDescriptor(propName, descriptor) {
|
|
1997
2136
|
const {
|
|
@@ -2046,7 +2185,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
2046
2185
|
/**
|
|
2047
2186
|
* This class is the base class for any LWC element.
|
|
2048
2187
|
* Some elements directly extends this class, others implement it via inheritance.
|
|
2049
|
-
|
|
2188
|
+
*/
|
|
2050
2189
|
// @ts-ignore
|
|
2051
2190
|
const LightningElement = function () {
|
|
2052
2191
|
// This should be as performant as possible, while any initialization should be done lazily
|
|
@@ -3034,9 +3173,11 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
3034
3173
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
3035
3174
|
*/
|
|
3036
3175
|
/**
|
|
3037
|
-
* @wire decorator
|
|
3176
|
+
* The @wire decorator wires fields and methods to a wire adapter in
|
|
3038
3177
|
* LWC Components. This function implements the internals of this
|
|
3039
3178
|
* decorator.
|
|
3179
|
+
* @param _adapter
|
|
3180
|
+
* @param _config
|
|
3040
3181
|
*/
|
|
3041
3182
|
function wire(_adapter, _config) {
|
|
3042
3183
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3144,6 +3285,8 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
3144
3285
|
/**
|
|
3145
3286
|
* INTERNAL: This function can only be invoked by compiled code. The compiler
|
|
3146
3287
|
* will prevent this function from being imported by user-land code.
|
|
3288
|
+
* @param Ctor
|
|
3289
|
+
* @param meta
|
|
3147
3290
|
*/
|
|
3148
3291
|
function registerDecorators(Ctor, meta) {
|
|
3149
3292
|
const proto = Ctor.prototype;
|
|
@@ -3339,6 +3482,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
3339
3482
|
/**
|
|
3340
3483
|
* INTERNAL: This function can only be invoked by compiled code. The compiler
|
|
3341
3484
|
* will prevent this function from being imported by userland code.
|
|
3485
|
+
* @param tpl
|
|
3342
3486
|
*/
|
|
3343
3487
|
function registerTemplate(tpl) {
|
|
3344
3488
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3352,6 +3496,10 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
3352
3496
|
/**
|
|
3353
3497
|
* EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
|
|
3354
3498
|
* libraries to sanitize vulnerable attributes.
|
|
3499
|
+
* @param tagName
|
|
3500
|
+
* @param namespaceUri
|
|
3501
|
+
* @param attrName
|
|
3502
|
+
* @param attrValue
|
|
3355
3503
|
*/
|
|
3356
3504
|
function sanitizeAttribute(tagName, namespaceUri, attrName, attrValue) {
|
|
3357
3505
|
// locker-service patches this function during runtime to sanitize vulnerable attributes. When
|
|
@@ -3450,7 +3598,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
3450
3598
|
}
|
|
3451
3599
|
function HTMLBridgeElementFactory(SuperClass, publicProperties, methods, observedFields, proto, hasCustomSuperClass) {
|
|
3452
3600
|
const HTMLBridgeElement = class extends SuperClass {
|
|
3453
|
-
/*LWC compiler v6.2.
|
|
3601
|
+
/*LWC compiler v6.2.1*/
|
|
3454
3602
|
};
|
|
3455
3603
|
// generating the hash table for attributes to avoid duplicate fields and facilitate validation
|
|
3456
3604
|
// and false positives in case of inheritance.
|
|
@@ -3957,6 +4105,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
3957
4105
|
/**
|
|
3958
4106
|
* EXPERIMENTAL: This function allows for the identification of LWC constructors. This API is
|
|
3959
4107
|
* subject to change or being removed.
|
|
4108
|
+
* @param ctor
|
|
3960
4109
|
*/
|
|
3961
4110
|
function isComponentConstructor(ctor) {
|
|
3962
4111
|
if (!isFunction$1(ctor)) {
|
|
@@ -4030,6 +4179,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
4030
4179
|
/**
|
|
4031
4180
|
* EXPERIMENTAL: This function allows for the collection of internal component metadata. This API is
|
|
4032
4181
|
* subject to change or being removed.
|
|
4182
|
+
* @param Ctor
|
|
4033
4183
|
*/
|
|
4034
4184
|
function getComponentDef(Ctor) {
|
|
4035
4185
|
const def = getComponentInternalDef(Ctor);
|
|
@@ -4244,6 +4394,8 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
4244
4394
|
* If the component that is currently being rendered uses scoped styles,
|
|
4245
4395
|
* this returns the unique token for that scoped stylesheet. Otherwise
|
|
4246
4396
|
* it returns null.
|
|
4397
|
+
* @param owner
|
|
4398
|
+
* @param legacy
|
|
4247
4399
|
*/
|
|
4248
4400
|
// TODO [#3733]: remove support for legacy scope tokens
|
|
4249
4401
|
function getScopeTokenClass(owner, legacy) {
|
|
@@ -4258,6 +4410,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
4258
4410
|
* exists. Otherwise it returns null.
|
|
4259
4411
|
*
|
|
4260
4412
|
* A host style token is applied to the component if scoped styles are used.
|
|
4413
|
+
* @param vnode
|
|
4261
4414
|
*/
|
|
4262
4415
|
function getStylesheetTokenHost(vnode) {
|
|
4263
4416
|
const {
|
|
@@ -4732,11 +4885,9 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
4732
4885
|
}
|
|
4733
4886
|
/**
|
|
4734
4887
|
* Given an array of static parts, do all the mounting required for these parts.
|
|
4735
|
-
*
|
|
4736
|
-
* @param
|
|
4737
|
-
* @param
|
|
4738
|
-
* @param renderer - the renderer to use
|
|
4739
|
-
* @param mount - true this is a first (mount) render as opposed to a subsequent (patch) render
|
|
4888
|
+
* @param root the root element
|
|
4889
|
+
* @param vnode the parent VStatic
|
|
4890
|
+
* @param renderer the renderer to use
|
|
4740
4891
|
*/
|
|
4741
4892
|
function mountStaticParts(root, vnode, renderer) {
|
|
4742
4893
|
const {
|
|
@@ -4759,9 +4910,8 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
4759
4910
|
}
|
|
4760
4911
|
/**
|
|
4761
4912
|
* Mounts elements to the newly generated VStatic node
|
|
4762
|
-
*
|
|
4763
|
-
* @param
|
|
4764
|
-
* @param n2 - the current VStatic vnode
|
|
4913
|
+
* @param n1 the previous VStatic vnode
|
|
4914
|
+
* @param n2 the current VStatic vnode
|
|
4765
4915
|
*/
|
|
4766
4916
|
function patchStaticParts(n1, n2) {
|
|
4767
4917
|
const {
|
|
@@ -5337,6 +5487,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
5337
5487
|
* With the delimiters removed, the contents are marked dynamic so they are diffed correctly.
|
|
5338
5488
|
*
|
|
5339
5489
|
* This function is used for slotted VFragments to avoid the text delimiters interfering with slotting functionality.
|
|
5490
|
+
* @param children
|
|
5340
5491
|
*/
|
|
5341
5492
|
function flattenFragmentsInChildren(children) {
|
|
5342
5493
|
const flattenedChildren = [];
|
|
@@ -5951,6 +6102,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
5951
6102
|
}
|
|
5952
6103
|
/**
|
|
5953
6104
|
* [f]lattening
|
|
6105
|
+
* @param items
|
|
5954
6106
|
*/
|
|
5955
6107
|
function f(items) {
|
|
5956
6108
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6072,6 +6224,10 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
6072
6224
|
* [ddc] - create a (deprecated) dynamic component via `<x-foo lwc:dynamic={Ctor}>`
|
|
6073
6225
|
*
|
|
6074
6226
|
* TODO [#3331]: remove usage of lwc:dynamic in 246
|
|
6227
|
+
* @param sel
|
|
6228
|
+
* @param Ctor
|
|
6229
|
+
* @param data
|
|
6230
|
+
* @param children
|
|
6075
6231
|
*/
|
|
6076
6232
|
function ddc(sel, Ctor, data, children = EmptyArray) {
|
|
6077
6233
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6090,6 +6246,9 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
6090
6246
|
}
|
|
6091
6247
|
/**
|
|
6092
6248
|
* [dc] - create a dynamic component via `<lwc:component lwc:is={Ctor}>`
|
|
6249
|
+
* @param Ctor
|
|
6250
|
+
* @param data
|
|
6251
|
+
* @param children
|
|
6093
6252
|
*/
|
|
6094
6253
|
function dc(Ctor, data, children = EmptyArray) {
|
|
6095
6254
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6117,13 +6276,13 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
6117
6276
|
* to the engine that a particular collection of children must be diffed using the slow
|
|
6118
6277
|
* algo based on keys due to the nature of the list. E.g.:
|
|
6119
6278
|
*
|
|
6120
|
-
*
|
|
6121
|
-
*
|
|
6122
|
-
*
|
|
6123
|
-
*
|
|
6124
|
-
*
|
|
6125
|
-
*
|
|
6126
|
-
*
|
|
6279
|
+
* - slot element's children: the content of the slot has to be dynamic when in synthetic
|
|
6280
|
+
* shadow mode because the `vnode.children` might be the slotted
|
|
6281
|
+
* content vs default content, in which case the size and the
|
|
6282
|
+
* keys are not matching.
|
|
6283
|
+
* - children that contain dynamic components
|
|
6284
|
+
* - children that are produced by iteration
|
|
6285
|
+
* @param vnodes
|
|
6127
6286
|
*/
|
|
6128
6287
|
function sc(vnodes) {
|
|
6129
6288
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6147,6 +6306,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
6147
6306
|
};
|
|
6148
6307
|
/**
|
|
6149
6308
|
* Sets the sanitizeHtmlContentHook.
|
|
6309
|
+
* @param newHookImpl
|
|
6150
6310
|
*/
|
|
6151
6311
|
function setSanitizeHtmlContentHook(newHookImpl) {
|
|
6152
6312
|
sanitizeHtmlContentHook = newHookImpl;
|
|
@@ -6606,6 +6766,8 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
6606
6766
|
/**
|
|
6607
6767
|
* INTERNAL: This function can only be invoked by compiled code. The compiler
|
|
6608
6768
|
* will prevent this function from being imported by userland code.
|
|
6769
|
+
* @param Ctor
|
|
6770
|
+
* @param metadata
|
|
6609
6771
|
*/
|
|
6610
6772
|
function registerComponent(
|
|
6611
6773
|
// We typically expect a LightningElementConstructor, but technically you can call this with anything
|
|
@@ -6978,7 +7140,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
6978
7140
|
return shadowMode;
|
|
6979
7141
|
}
|
|
6980
7142
|
function assertIsVM(obj) {
|
|
6981
|
-
if (
|
|
7143
|
+
if (!isObject(obj) || isNull(obj) || !('renderRoot' in obj)) {
|
|
6982
7144
|
throw new TypeError(`${obj} is not a VM.`);
|
|
6983
7145
|
}
|
|
6984
7146
|
}
|
|
@@ -7181,6 +7343,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
7181
7343
|
* need to continue into its children because by attempting to disconnect the
|
|
7182
7344
|
* custom element itself will trigger the removal of anything slotted or anything
|
|
7183
7345
|
* defined on its shadow.
|
|
7346
|
+
* @param vnodes
|
|
7184
7347
|
*/
|
|
7185
7348
|
function recursivelyDisconnectChildren(vnodes) {
|
|
7186
7349
|
for (let i = 0, len = vnodes.length; i < len; i += 1) {
|
|
@@ -8404,6 +8567,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
8404
8567
|
/**
|
|
8405
8568
|
* EXPERIMENTAL: This function provides access to the component constructor, given an HTMLElement.
|
|
8406
8569
|
* This API is subject to change or being removed.
|
|
8570
|
+
* @param elm
|
|
8407
8571
|
*/
|
|
8408
8572
|
function getComponentConstructor(elm) {
|
|
8409
8573
|
let ctor = null;
|
|
@@ -8428,6 +8592,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
8428
8592
|
* EXPERIMENTAL: This function allows you to create a reactive readonly
|
|
8429
8593
|
* membrane around any object value. This API is subject to change or
|
|
8430
8594
|
* being removed.
|
|
8595
|
+
* @param obj
|
|
8431
8596
|
*/
|
|
8432
8597
|
function readonly(obj) {
|
|
8433
8598
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8438,7 +8603,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
8438
8603
|
}
|
|
8439
8604
|
return getReadOnlyProxy(obj);
|
|
8440
8605
|
}
|
|
8441
|
-
/** version: 6.2.
|
|
8606
|
+
/** version: 6.2.1 */
|
|
8442
8607
|
|
|
8443
8608
|
/*
|
|
8444
8609
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8448,8 +8613,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
8448
8613
|
*/
|
|
8449
8614
|
/**
|
|
8450
8615
|
* Displays the header for a custom element.
|
|
8451
|
-
*
|
|
8452
|
-
* @param ce the custom element
|
|
8616
|
+
* @param ce The custom element to get the header for.
|
|
8453
8617
|
* @param componentInstance component instance associated with the custom element.
|
|
8454
8618
|
*/
|
|
8455
8619
|
function getHeaderForCustomElement(ce, componentInstance) {
|
|
@@ -8690,7 +8854,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
8690
8854
|
// TODO [#2970]: LWC elements cannot be upgraded via new Ctor()
|
|
8691
8855
|
// Do we want to support this? Throw an error? Currently for backwards compat it's a no-op.
|
|
8692
8856
|
}
|
|
8693
|
-
/*LWC compiler v6.2.
|
|
8857
|
+
/*LWC compiler v6.2.1*/
|
|
8694
8858
|
}
|
|
8695
8859
|
for (const [propName, callback] of entries(LIFECYCLE_CALLBACKS)) {
|
|
8696
8860
|
UpgradableConstructor.prototype[propName] = function () {
|
|
@@ -8726,7 +8890,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
8726
8890
|
};
|
|
8727
8891
|
|
|
8728
8892
|
/*
|
|
8729
|
-
* Copyright (c)
|
|
8893
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
8730
8894
|
* All rights reserved.
|
|
8731
8895
|
* SPDX-License-Identifier: MIT
|
|
8732
8896
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -8738,7 +8902,6 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
8738
8902
|
* Example usage:
|
|
8739
8903
|
* import { renderer, rendererFactory } from 'lwc';
|
|
8740
8904
|
* const customRenderer = rendererFactory(renderer);
|
|
8741
|
-
*
|
|
8742
8905
|
* @param baseRenderer Either null or the base renderer imported from 'lwc'.
|
|
8743
8906
|
*/
|
|
8744
8907
|
function rendererFactory(baseRenderer) {
|
|
@@ -8752,21 +8915,40 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
8752
8915
|
* SPDX-License-Identifier: MIT
|
|
8753
8916
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
8754
8917
|
*/
|
|
8918
|
+
/**
|
|
8919
|
+
*
|
|
8920
|
+
* @param value
|
|
8921
|
+
* @param msg
|
|
8922
|
+
*/
|
|
8755
8923
|
function invariant(value, msg) {
|
|
8756
8924
|
if (!value) {
|
|
8757
8925
|
throw new Error(`Invariant Violation: ${msg}`);
|
|
8758
8926
|
}
|
|
8759
8927
|
}
|
|
8928
|
+
/**
|
|
8929
|
+
*
|
|
8930
|
+
* @param value
|
|
8931
|
+
* @param msg
|
|
8932
|
+
*/
|
|
8760
8933
|
function isTrue$1(value, msg) {
|
|
8761
8934
|
if (!value) {
|
|
8762
8935
|
throw new Error(`Assert Violation: ${msg}`);
|
|
8763
8936
|
}
|
|
8764
8937
|
}
|
|
8938
|
+
/**
|
|
8939
|
+
*
|
|
8940
|
+
* @param value
|
|
8941
|
+
* @param msg
|
|
8942
|
+
*/
|
|
8765
8943
|
function isFalse$1(value, msg) {
|
|
8766
8944
|
if (value) {
|
|
8767
8945
|
throw new Error(`Assert Violation: ${msg}`);
|
|
8768
8946
|
}
|
|
8769
8947
|
}
|
|
8948
|
+
/**
|
|
8949
|
+
*
|
|
8950
|
+
* @param msg
|
|
8951
|
+
*/
|
|
8770
8952
|
function fail(msg) {
|
|
8771
8953
|
throw new Error(msg);
|
|
8772
8954
|
}
|
|
@@ -8777,13 +8959,23 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
8777
8959
|
isFalse: isFalse$1,
|
|
8778
8960
|
isTrue: isTrue$1
|
|
8779
8961
|
});
|
|
8962
|
+
/**
|
|
8963
|
+
* Determines whether the argument is `undefined`.
|
|
8964
|
+
* @param obj Value to test
|
|
8965
|
+
* @returns `true` if the value is `undefined`.
|
|
8966
|
+
*/
|
|
8780
8967
|
function isUndefined(obj) {
|
|
8781
8968
|
return obj === undefined;
|
|
8782
8969
|
}
|
|
8970
|
+
/**
|
|
8971
|
+
* Determines whether the argument is `null`.
|
|
8972
|
+
* @param obj Value to test
|
|
8973
|
+
* @returns `true` if the value is `null`.
|
|
8974
|
+
*/
|
|
8783
8975
|
function isNull(obj) {
|
|
8784
8976
|
return obj === null;
|
|
8785
8977
|
}
|
|
8786
|
-
/** version: 6.2.
|
|
8978
|
+
/** version: 6.2.1 */
|
|
8787
8979
|
|
|
8788
8980
|
/*
|
|
8789
8981
|
* Copyright (c) 2023, salesforce.com, inc.
|
|
@@ -8803,7 +8995,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
8803
8995
|
this.setNewContext = setNewContext;
|
|
8804
8996
|
this.setDisconnectedCallback = setDisconnectedCallback;
|
|
8805
8997
|
}
|
|
8806
|
-
/*LWC compiler v6.2.
|
|
8998
|
+
/*LWC compiler v6.2.1*/
|
|
8807
8999
|
}
|
|
8808
9000
|
function registerContextConsumer(elm, adapterContextToken, subscriptionPayload) {
|
|
8809
9001
|
dispatchEvent(elm, new WireContextSubscriptionEvent(adapterContextToken, subscriptionPayload));
|
|
@@ -9107,9 +9299,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
9107
9299
|
/**
|
|
9108
9300
|
* This function builds a Web Component class from a LWC constructor so it can be
|
|
9109
9301
|
* registered as a new element via customElements.define() at any given time.
|
|
9110
|
-
*
|
|
9111
|
-
* @deprecated since version 1.3.11
|
|
9112
|
-
*
|
|
9302
|
+
* @param Ctor
|
|
9113
9303
|
* @example
|
|
9114
9304
|
* ```
|
|
9115
9305
|
* import { buildCustomElementConstructor } from 'lwc';
|
|
@@ -9118,6 +9308,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
9118
9308
|
* customElements.define('x-foo', WC);
|
|
9119
9309
|
* const elm = document.createElement('x-foo');
|
|
9120
9310
|
* ```
|
|
9311
|
+
* @deprecated since version 1.3.11
|
|
9121
9312
|
*/
|
|
9122
9313
|
function deprecatedBuildCustomElementConstructor(Ctor) {
|
|
9123
9314
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9183,7 +9374,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
9183
9374
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
9184
9375
|
attributeChangedCallback.call(this, name, oldValue, newValue);
|
|
9185
9376
|
}
|
|
9186
|
-
/*LWC compiler v6.2.
|
|
9377
|
+
/*LWC compiler v6.2.1*/
|
|
9187
9378
|
}, _a.observedAttributes = observedAttributes, _a;
|
|
9188
9379
|
}
|
|
9189
9380
|
|
|
@@ -9244,17 +9435,24 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
9244
9435
|
}
|
|
9245
9436
|
});
|
|
9246
9437
|
}
|
|
9438
|
+
// For some reason, JSDOC says "options.is" is a syntax error. And we can't disable the rule using
|
|
9439
|
+
// `eslint-disable-next-line` because that gets included in the JSDOC, so we need this workaround.
|
|
9440
|
+
/* eslint-disable jsdoc/valid-types */
|
|
9247
9441
|
/**
|
|
9248
9442
|
* EXPERIMENTAL: This function is almost identical to document.createElement with the slightly
|
|
9249
9443
|
* difference that in the options, you can pass the `is` property set to a Constructor instead of
|
|
9250
9444
|
* just a string value. The intent is to allow the creation of an element controlled by LWC without
|
|
9251
9445
|
* having to register the element as a custom element.
|
|
9252
|
-
*
|
|
9446
|
+
* @param sel
|
|
9447
|
+
* @param options
|
|
9448
|
+
* @param options.is description
|
|
9449
|
+
* @param options.mode
|
|
9253
9450
|
* @example
|
|
9254
9451
|
* ```
|
|
9255
9452
|
* const el = createElement('x-foo', { is: FooCtor });
|
|
9256
9453
|
* ```
|
|
9257
9454
|
*/
|
|
9455
|
+
/* eslint-enable jsdoc/valid-types */
|
|
9258
9456
|
function createElement(sel, options) {
|
|
9259
9457
|
if (!isObject(options) || isNull(options)) {
|
|
9260
9458
|
throw new TypeError(`"createElement" function expects an object as second parameter but received "${toString$1(options)}".`);
|
|
@@ -9280,6 +9478,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
9280
9478
|
* with a callback as the first argument, we could implement a more advanced
|
|
9281
9479
|
* mechanism that only passes that argument if the constructor is known to be
|
|
9282
9480
|
* an upgradable custom element.
|
|
9481
|
+
* @param elm
|
|
9283
9482
|
*/
|
|
9284
9483
|
const upgradeCallback = elm => {
|
|
9285
9484
|
createVM(elm, Ctor, renderer, {
|
|
@@ -9310,6 +9509,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
9310
9509
|
/**
|
|
9311
9510
|
* EXPERIMENTAL: The purpose of this function is to detect shadowed nodes. THIS API WILL BE REMOVED
|
|
9312
9511
|
* ONCE LOCKER V1 IS NO LONGER SUPPORTED.
|
|
9512
|
+
* @param node
|
|
9313
9513
|
*/
|
|
9314
9514
|
function isNodeShadowed(node) {
|
|
9315
9515
|
if (isFalse(node instanceof _Node)) {
|
|
@@ -9351,12 +9551,11 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
9351
9551
|
}
|
|
9352
9552
|
/**
|
|
9353
9553
|
* This static getter builds a Web Component class from a LWC constructor so it can be registered
|
|
9354
|
-
* as a new element via customElements.define() at any given time.
|
|
9355
|
-
*
|
|
9356
|
-
*
|
|
9357
|
-
*
|
|
9358
|
-
*
|
|
9359
|
-
*
|
|
9554
|
+
* as a new element via customElements.define() at any given time.
|
|
9555
|
+
* @example
|
|
9556
|
+
* import Foo from 'ns/foo';
|
|
9557
|
+
* customElements.define('x-foo', Foo.CustomElementConstructor);
|
|
9558
|
+
* const elm = document.createElement('x-foo');
|
|
9360
9559
|
*/
|
|
9361
9560
|
defineProperty(LightningElement, 'CustomElementConstructor', {
|
|
9362
9561
|
get() {
|
|
@@ -9398,7 +9597,7 @@ LWR.define('lwc/v/6_2_0', ['exports'], (function (exports) { 'use strict';
|
|
|
9398
9597
|
});
|
|
9399
9598
|
});
|
|
9400
9599
|
}
|
|
9401
|
-
/** version: 6.2.
|
|
9600
|
+
/** version: 6.2.1 */
|
|
9402
9601
|
|
|
9403
9602
|
exports.LightningElement = LightningElement;
|
|
9404
9603
|
exports.__unstable__ProfilerControl = profilerControl;
|