@lwrjs/everywhere 0.10.0-alpha.13 → 0.10.0-alpha.15

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.
Files changed (21) hide show
  1. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/d6f109a44ded5eafbd5d2f40c1f39f70/config.js +10 -0
  2. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/{0_10_0-alpha_13 → 0_10_0-alpha_15}/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js +4 -4
  3. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/{2_45_2/s/97b809a5745ddedba3acd0433f339b58 → 2_46_0/s/f20dbf3b47bd613f04c08e7e2af525a9}/lwc.js +103 -166
  4. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/{0_10_0-alpha_13 → 0_10_0-alpha_15}/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js +3 -3
  5. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/{0_10_0-alpha_13 → 0_10_0-alpha_15}/s/5e6db37af51f0d23be4893abe5eeb913/lwr_init.js +21 -21
  6. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_10_0-alpha_13/s/306caa2af665db6678fe4013e2f82aa1 → 0_10_0-alpha_15/s/5e8ef8ea7bf4d7ea0c36788fb0f61a80}/lwr_loader.js +3 -3
  7. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/{0_10_0-alpha_13 → 0_10_0-alpha_15}/s/7a802ee7a2430244c1f66bce2c2eafef/lwr_metrics.js +1 -1
  8. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/{0_10_0-alpha_13 → 0_10_0-alpha_15}/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js +1 -1
  9. package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/{0_10_0-alpha_13 → 0_10_0-alpha_15}/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +1 -1
  10. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_10_0-alpha_13 → 0_10_0-alpha_15}/lwr-error-shim.js +1 -1
  11. package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.bundle.js/v/{0_10_0-alpha_13 → 0_10_0-alpha_15}/lwr-loader-shim.bundle.js +6 -6
  12. package/build/assets/amd/lwr-everywhere-debug.js +8 -8
  13. package/build/assets/amd/lwr-everywhere-min.js +2 -2
  14. package/build/assets/amd/lwr-everywhere.js +8 -8
  15. package/build/assets/core/lwr-everywhere-debug.js +4 -4
  16. package/build/assets/core/lwr-everywhere.js +4 -4
  17. package/build/assets/esm/lwr-everywhere-debug.js +1 -1
  18. package/build/assets/esm/lwr-everywhere-min.js +1 -1
  19. package/build/assets/esm/lwr-everywhere.js +1 -1
  20. package/package.json +9 -9
  21. package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/5c2ba82d0f6a4680735c5f024b1d4f08/config.js +0 -10
@@ -0,0 +1,10 @@
1
+ /* This script is generated */
2
+ /* Client Bootstrap configuration */
3
+ globalThis.LWR = globalThis.LWR || {};
4
+ Object.assign(globalThis.LWR, {"appId":"amd-bootstrap","bootstrapModule":"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_10_0-alpha_15","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_10_0-alpha_15/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_10_0-alpha_15"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_10_0-alpha_15/s/5e6db37af51f0d23be4893abe5eeb913/lwr_init.js":["lwr/init/v/0_10_0-alpha_15"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_10_0-alpha_15/s/7a802ee7a2430244c1f66bce2c2eafef/lwr_metrics.js":["lwr/metrics/v/0_10_0-alpha_15"],"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_10_0-alpha_15/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js":["lwr/profiler/v/0_10_0-alpha_15"],"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F2_46_0/s/f20dbf3b47bd613f04c08e7e2af525a9/lwc.js":["lwc/v/2_46_0"],"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_10_0-alpha_15/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_10_0-alpha_15"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_10_0-alpha_15/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js":["lwr/vault/v/0_10_0-alpha_15"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_10_0-alpha_15":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_10_0-alpha_15/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/init/v/0_10_0-alpha_15":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_10_0-alpha_15/s/5e6db37af51f0d23be4893abe5eeb913/lwr_init.js","lwr/metrics/v/0_10_0-alpha_15":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_10_0-alpha_15/s/7a802ee7a2430244c1f66bce2c2eafef/lwr_metrics.js","lwr/profiler/v/0_10_0-alpha_15":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_10_0-alpha_15/s/a152b8d35f12ca1b5147c5cd1ee155fb/lwr_profiler.js","lwc/v/2_46_0":"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F2_46_0/s/f20dbf3b47bd613f04c08e7e2af525a9/lwc.js","lwr/everywhereAmd/v/0_10_0-alpha_15":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_10_0-alpha_15/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js","lwr/vault/v/0_10_0-alpha_15":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_10_0-alpha_15/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_10_0-alpha_15"],"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_10_0-alpha_15"],"preloadModules":["lwr/init/v/0_10_0-alpha_15","lwr/metrics/v/0_10_0-alpha_15","lwc/v/2_46_0","lwr/everywhereAmd/v/0_10_0-alpha_15"],"endpoints":{"uris":{"mapping":"/1/mapping/amd/1/l/en-US/mp/"}}});
5
+ globalThis.process = { env: { NODE_ENV: "compat", SSR: false } };
6
+ // Appended by Static Site Generator
7
+ if (!globalThis.LWR.imports) { globalThis.LWR.imports = {}; }
8
+ Object.assign(globalThis.LWR.imports, {"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_10_0-alpha_15/s/5e8ef8ea7bf4d7ea0c36788fb0f61a80/lwr_loader.js":["lwr/loader/v/0_10_0-alpha_15"]})
9
+ if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
10
+ Object.assign(globalThis.LWR.index, {"lwr/loader/v/0_10_0-alpha_15":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_10_0-alpha_15/s/5e8ef8ea7bf4d7ea0c36788fb0f61a80/lwr_loader.js"})
@@ -1,13 +1,13 @@
1
- LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_10_0-alpha_13', ['lwr/loader/v/0_10_0-alpha_13', 'lwr/init/v/0_10_0-alpha_13'], (function (_0_10_0Alpha_13$1, _0_10_0Alpha_13) { 'use strict';
1
+ LWR.define('@lwrjs/app-service/amd-bootstrap/module/amd/v/0_10_0-alpha_15', ['lwr/loader/v/0_10_0-alpha_15', 'lwr/init/v/0_10_0-alpha_15'], (function (_0_10_0Alpha_15$1, _0_10_0Alpha_15) { 'use strict';
2
2
 
3
3
  const clientBootstrapConfig = globalThis.LWR;
4
4
 
5
5
  // initialize additional non-configured root components
6
6
  const { rootComponents, ssrProps } = clientBootstrapConfig;
7
7
  Promise.all(rootComponents.map(async (rootSpecifier) => {
8
- const element = _0_10_0Alpha_13.toKebabCase(rootSpecifier);
9
- return _0_10_0Alpha_13$1.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_10_0-alpha_13').then(({default: Ctor}) => {
10
- _0_10_0Alpha_13.init([[element, Ctor]], ssrProps);
8
+ const element = _0_10_0Alpha_15.toKebabCase(rootSpecifier);
9
+ return _0_10_0Alpha_15$1.load(rootSpecifier, '@lwrjs/app-service/amd-bootstrap/module/amd/v/0_10_0-alpha_15').then(({default: Ctor}) => {
10
+ _0_10_0Alpha_15.init([[element, Ctor]], ssrProps);
11
11
  });
12
12
  }));
13
13
 
@@ -1,8 +1,12 @@
1
- LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
1
+ LWR.define('lwc/v/2_46_0', ['exports'], (function (exports) { 'use strict';
2
2
 
3
3
  /* proxy-compat-disable */
4
4
  /**
5
- * Copyright (C) 2018 salesforce.com, inc.
5
+ * Copyright (C) 2023 salesforce.com, inc.
6
+ */
7
+ /* proxy-compat-disable */
8
+ /**
9
+ * Copyright (C) 2023 salesforce.com, inc.
6
10
  */
7
11
  /*
8
12
  * Copyright (c) 2018, salesforce.com, inc.
@@ -197,7 +201,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
197
201
  })();
198
202
  // These attributes take either an ID or a list of IDs as values.
199
203
  // This includes aria-* attributes as well as the special non-ARIA "for" attribute
200
- const ID_REFERENCING_ATTRIBUTES_SET = new Set(['aria-activedescendant', 'aria-controls', 'aria-describedby', 'aria-details', 'aria-errormessage', 'aria-flowto', 'aria-labelledby', 'aria-owns', 'for']);
204
+ const ID_REFERENCING_ATTRIBUTES_SET = /*@__PURE__*/new Set(['aria-activedescendant', 'aria-controls', 'aria-describedby', 'aria-details', 'aria-errormessage', 'aria-flowto', 'aria-labelledby', 'aria-owns', 'for']);
201
205
 
202
206
  /*
203
207
  * Copyright (c) 2018, salesforce.com, inc.
@@ -236,40 +240,18 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
236
240
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
237
241
  */
238
242
  const CAMEL_REGEX = /-([a-z])/g;
239
- // Convoluted map generation so that @lwc/shared remains fully tree-shakable (verify-treeshakable)
240
- const {
241
- NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING,
242
- NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING
243
- } = /*#__PURE__*/(() => {
244
- /**
245
- * Map composed of properties to attributes not following the HTML property to attribute mapping
246
- * convention.
247
- */
248
- const NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING = new Map([['accessKey', 'accesskey'], ['readOnly', 'readonly'], ['tabIndex', 'tabindex'], ['bgColor', 'bgcolor'], ['colSpan', 'colspan'], ['rowSpan', 'rowspan'], ['contentEditable', 'contenteditable'], ['crossOrigin', 'crossorigin'], ['dateTime', 'datetime'], ['formAction', 'formaction'], ['isMap', 'ismap'], ['maxLength', 'maxlength'], ['minLength', 'minlength'], ['noValidate', 'novalidate'], ['useMap', 'usemap'], ['htmlFor', 'for']]);
249
- /**
250
- * Inverted map with attribute name key and property name value.
251
- */
252
- const NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING = new Map();
253
- NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING.forEach((value, key) => NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING.set(value, key));
254
- return {
255
- NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING,
256
- NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING
257
- };
258
- })();
243
+ // These are HTML standard prop/attribute IDL mappings, but are not predictable based on camel/kebab-case conversion
244
+ const SPECIAL_PROPERTY_ATTRIBUTE_MAPPING = /*@__PURE__@*/new Map([['accessKey', 'accesskey'], ['readOnly', 'readonly'], ['tabIndex', 'tabindex'], ['bgColor', 'bgcolor'], ['colSpan', 'colspan'], ['rowSpan', 'rowspan'], ['contentEditable', 'contenteditable'], ['crossOrigin', 'crossorigin'], ['dateTime', 'datetime'], ['formAction', 'formaction'], ['isMap', 'ismap'], ['maxLength', 'maxlength'], ['minLength', 'minlength'], ['noValidate', 'novalidate'], ['useMap', 'usemap'], ['htmlFor', 'for']]);
259
245
  /**
260
246
  * Map associating previously transformed HTML property into HTML attribute.
261
247
  */
262
- const CACHED_PROPERTY_ATTRIBUTE_MAPPING = new Map();
263
- /**
264
- * Map associating previously transformed HTML attribute into HTML property.
265
- */
266
- const CACHED_ATTRIBUTE_PROPERTY_MAPPING = new Map();
248
+ const CACHED_PROPERTY_ATTRIBUTE_MAPPING = /*@__PURE__@*/new Map();
267
249
  function htmlPropertyToAttribute(propName) {
268
250
  const ariaAttributeName = AriaPropNameToAttrNameMap[propName];
269
251
  if (!isUndefined$1(ariaAttributeName)) {
270
252
  return ariaAttributeName;
271
253
  }
272
- const specialAttributeName = NO_STANDARD_PROPERTY_ATTRIBUTE_MAPPING.get(propName);
254
+ const specialAttributeName = SPECIAL_PROPERTY_ATTRIBUTE_MAPPING.get(propName);
273
255
  if (!isUndefined$1(specialAttributeName)) {
274
256
  return specialAttributeName;
275
257
  }
@@ -292,22 +274,17 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
292
274
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
293
275
  return attributeName;
294
276
  }
295
- function htmlAttributeToProperty(attrName) {
296
- const ariaPropertyName = AriaAttrNameToPropNameMap[attrName];
297
- if (!isUndefined$1(ariaPropertyName)) {
298
- return ariaPropertyName;
299
- }
300
- const specialPropertyName = NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING.get(attrName);
301
- if (!isUndefined$1(specialPropertyName)) {
302
- return specialPropertyName;
303
- }
304
- const cachedPropertyName = CACHED_ATTRIBUTE_PROPERTY_MAPPING.get(attrName);
305
- if (!isUndefined$1(cachedPropertyName)) {
306
- return cachedPropertyName;
277
+ /**
278
+ * Map associating previously transformed kabab-case attributes into camel-case props.
279
+ */
280
+ const CACHED_KEBAB_CAMEL_MAPPING = /*@__PURE__@*/new Map();
281
+ function kebabCaseToCamelCase(attrName) {
282
+ let result = CACHED_KEBAB_CAMEL_MAPPING.get(attrName);
283
+ if (isUndefined$1(result)) {
284
+ result = StringReplace.call(attrName, CAMEL_REGEX, g => g[1].toUpperCase());
285
+ CACHED_KEBAB_CAMEL_MAPPING.set(attrName, result);
307
286
  }
308
- const propertyName = StringReplace.call(attrName, CAMEL_REGEX, g => g[1].toUpperCase());
309
- CACHED_ATTRIBUTE_PROPERTY_MAPPING.set(attrName, propertyName);
310
- return propertyName;
287
+ return result;
311
288
  }
312
289
 
313
290
  /*
@@ -317,12 +294,13 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
317
294
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
318
295
  */
319
296
  // Increment whenever the LWC template compiler changes
320
- const LWC_VERSION = "2.45.2";
297
+ const LWC_VERSION = "2.46.0";
321
298
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
322
- /** version: 2.45.2 */
299
+ /** version: 2.46.0 */
323
300
 
301
+ /* proxy-compat-disable */
324
302
  /**
325
- * Copyright (C) 2018 salesforce.com, inc.
303
+ * Copyright (C) 2023 salesforce.com, inc.
326
304
  */
327
305
 
328
306
  /*
@@ -397,10 +375,11 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
397
375
  setFeatureFlag(name, value);
398
376
  }
399
377
  }
400
- /** version: 2.45.2 */
378
+ /** version: 2.46.0 */
401
379
 
380
+ /* proxy-compat-disable */
402
381
  /**
403
- * Copyright (C) 2018 salesforce.com, inc.
382
+ * Copyright (C) 2023 salesforce.com, inc.
404
383
  */
405
384
 
406
385
  /*
@@ -460,7 +439,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
460
439
  }
461
440
  }
462
441
  }
463
- /** version: 2.45.2 */
442
+ /** version: 2.46.0 */
464
443
 
465
444
  /*
466
445
  * Copyright (c) 2018, salesforce.com, inc.
@@ -475,6 +454,9 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
475
454
  }
476
455
 
477
456
  /* proxy-compat-disable */
457
+ /**
458
+ * Copyright (C) 2023 salesforce.com, inc.
459
+ */
478
460
 
479
461
  /*
480
462
  * Copyright (c) 2018, salesforce.com, inc.
@@ -888,19 +870,6 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
888
870
  */
889
871
  // These properties get added to LWCElement.prototype publicProps automatically
890
872
  const defaultDefHTMLPropertyNames = ['accessKey', 'dir', 'draggable', 'hidden', 'id', 'lang', 'spellcheck', 'tabIndex', 'title'];
891
- let controlledElement = null;
892
- let controlledAttributeName;
893
- function isAttributeLocked(elm, attrName) {
894
- return elm !== controlledElement || attrName !== controlledAttributeName;
895
- }
896
- function lockAttribute(_elm, _key) {
897
- controlledElement = null;
898
- controlledAttributeName = undefined;
899
- }
900
- function unlockAttribute(elm, key) {
901
- controlledElement = elm;
902
- controlledAttributeName = key;
903
- }
904
873
 
905
874
  /*
906
875
  * Copyright (c) 2018, salesforce.com, inc.
@@ -939,6 +908,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
939
908
  * SPDX-License-Identifier: MIT
940
909
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
941
910
  */
911
+ /* eslint @lwc/lwc-internal/no-production-assert: "off" */
942
912
  function generateDataDescriptor(options) {
943
913
  return assign({
944
914
  configurable: true,
@@ -1552,7 +1522,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
1552
1522
  valueMutated(originalTarget, key);
1553
1523
  return true;
1554
1524
  }
1555
- /*LWC compiler v2.45.3*/
1525
+ /*LWC compiler v2.46.0*/
1556
1526
  }
1557
1527
  const getterMap = new WeakMap();
1558
1528
  const setterMap = new WeakMap();
@@ -1645,7 +1615,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
1645
1615
  /* istanbul ignore next */
1646
1616
  return false;
1647
1617
  }
1648
- /*LWC compiler v2.45.3*/
1618
+ /*LWC compiler v2.46.0*/
1649
1619
  }
1650
1620
  function extract(objectOrArray) {
1651
1621
  if (isArray(objectOrArray)) {
@@ -1859,6 +1829,14 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
1859
1829
  * SPDX-License-Identifier: MIT
1860
1830
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1861
1831
  */
1832
+ /**
1833
+ * This module is responsible for producing the ComponentDef object that is always
1834
+ * accessible via `vm.def`. This is lazily created during the creation of the first
1835
+ * instance of a component class, and shared across all instances.
1836
+ *
1837
+ * This structure can be used to synthetically create proxies, and understand the
1838
+ * shape of a component. It is also used internally to apply extra optimizations.
1839
+ */
1862
1840
  /**
1863
1841
  * This operation is called with a descriptor of an standard html property
1864
1842
  * that a Custom Element can support (including AOM properties), which
@@ -2077,9 +2055,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
2077
2055
  removeAttribute
2078
2056
  }
2079
2057
  } = vm;
2080
- unlockAttribute(elm, name);
2081
2058
  removeAttribute(elm, name);
2082
- lockAttribute();
2083
2059
  },
2084
2060
  removeAttributeNS(namespace, name) {
2085
2061
  const {
@@ -2088,9 +2064,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
2088
2064
  removeAttribute
2089
2065
  }
2090
2066
  } = getAssociatedVM(this);
2091
- unlockAttribute(elm, name);
2092
2067
  removeAttribute(elm, name, namespace);
2093
- lockAttribute();
2094
2068
  },
2095
2069
  getAttribute(name) {
2096
2070
  const vm = getAssociatedVM(this);
@@ -2125,9 +2099,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
2125
2099
  logError(`Failed to construct '${getComponentTag(vm)}': The result must not have attributes.`);
2126
2100
  }
2127
2101
  }
2128
- unlockAttribute(elm, name);
2129
2102
  setAttribute(elm, name, value);
2130
- lockAttribute();
2131
2103
  },
2132
2104
  setAttributeNS(namespace, name, value) {
2133
2105
  const vm = getAssociatedVM(this);
@@ -2142,9 +2114,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
2142
2114
  logError(`Failed to construct '${getComponentTag(vm)}': The result must not have attributes.`);
2143
2115
  }
2144
2116
  }
2145
- unlockAttribute(elm, name);
2146
2117
  setAttribute(elm, name, value, namespace);
2147
- lockAttribute();
2148
2118
  },
2149
2119
  getBoundingClientRect() {
2150
2120
  const vm = getAssociatedVM(this);
@@ -2558,7 +2528,9 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
2558
2528
  });
2559
2529
  runWithBoundaryProtection(vm, vm, noop, () => {
2560
2530
  // job
2561
- connector = new adapter(dataCallback);
2531
+ connector = new adapter(dataCallback, {
2532
+ tagName: vm.tagName
2533
+ });
2562
2534
  }, noop);
2563
2535
  const updateConnectorConfig = config => {
2564
2536
  // every time the config is recomputed due to tracking,
@@ -3151,6 +3123,10 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
3151
3123
  * SPDX-License-Identifier: MIT
3152
3124
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
3153
3125
  */
3126
+ /**
3127
+ * This module is responsible for creating the base bridge class BaseBridgeElement
3128
+ * that represents the HTMLElement extension used for any LWC inserted in the DOM.
3129
+ */
3154
3130
  // A bridge descriptor is a descriptor whose job is just to get the component instance
3155
3131
  // from the element instance, and get the value or set a new value on the component.
3156
3132
  // This means that across different elements, similar names can get the exact same
@@ -3211,14 +3187,6 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
3211
3187
  }
3212
3188
  return;
3213
3189
  }
3214
- if (!isAttributeLocked(this, attrName)) {
3215
- // Ignore changes triggered by the engine itself during:
3216
- // * diffing when public props are attempting to reflect to the DOM
3217
- // * component via `this.setAttribute()`, should never update the prop
3218
- // Both cases, the setAttribute call is always wrapped by the unlocking of the
3219
- // attribute to be changed
3220
- return;
3221
- }
3222
3190
  // Reflect attribute change to the corresponding property when changed from outside.
3223
3191
  this[propName] = newValue;
3224
3192
  };
@@ -3236,7 +3204,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
3236
3204
  */
3237
3205
  if (isFunction$1(SuperClass)) {
3238
3206
  HTMLBridgeElement = class extends SuperClass {
3239
- /*LWC compiler v2.45.3*/
3207
+ /*LWC compiler v2.46.0*/
3240
3208
  };
3241
3209
  } else {
3242
3210
  HTMLBridgeElement = function () {
@@ -3567,6 +3535,14 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
3567
3535
  * SPDX-License-Identifier: MIT
3568
3536
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
3569
3537
  */
3538
+ /**
3539
+ * This module is responsible for producing the ComponentDef object that is always
3540
+ * accessible via `vm.def`. This is lazily created during the creation of the first
3541
+ * instance of a component class, and shared across all instances.
3542
+ *
3543
+ * This structure can be used to synthetically create proxies, and understand the
3544
+ * shape of a component. It is also used internally to apply extra optimizations.
3545
+ */
3570
3546
  const CtorToDefMap = new WeakMap();
3571
3547
  function getCtorProto(Ctor) {
3572
3548
  let proto = getPrototypeOf$1(Ctor);
@@ -4045,15 +4021,17 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
4045
4021
  * SPDX-License-Identifier: MIT
4046
4022
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
4047
4023
  */
4048
- const ColonCharCode$1 = 58;
4024
+ const ColonCharCode = 58;
4049
4025
  function patchAttributes(oldVnode, vnode, renderer) {
4050
4026
  const {
4051
- attrs
4027
+ attrs,
4028
+ external
4052
4029
  } = vnode.data;
4053
4030
  if (isUndefined$1(attrs)) {
4054
4031
  return;
4055
4032
  }
4056
4033
  const oldAttrs = isNull(oldVnode) ? EmptyObject : oldVnode.data.attrs;
4034
+ // Attrs may be the same due to the static content optimization, so we can skip diffing
4057
4035
  if (oldAttrs === attrs) {
4058
4036
  return;
4059
4037
  }
@@ -4062,17 +4040,23 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
4062
4040
  } = vnode;
4063
4041
  const {
4064
4042
  setAttribute,
4065
- removeAttribute
4043
+ removeAttribute,
4044
+ setProperty
4066
4045
  } = renderer;
4067
4046
  for (const key in attrs) {
4068
4047
  const cur = attrs[key];
4069
4048
  const old = oldAttrs[key];
4070
4049
  if (old !== cur) {
4071
- unlockAttribute(elm, key);
4072
- if (StringCharCodeAt.call(key, 3) === ColonCharCode$1) {
4050
+ let propName;
4051
+ // For external custom elements, sniff to see if the attr should be considered a prop.
4052
+ // Use kebabCaseToCamelCase directly because we don't want to set props like `ariaLabel` or `tabIndex`
4053
+ // on a custom element versus just using the more reliable attribute format.
4054
+ if (external && (propName = kebabCaseToCamelCase(key)) in elm) {
4055
+ setProperty(elm, propName, cur);
4056
+ } else if (StringCharCodeAt.call(key, 3) === ColonCharCode) {
4073
4057
  // Assume xml namespace
4074
4058
  setAttribute(elm, key, cur, XML_NAMESPACE);
4075
- } else if (StringCharCodeAt.call(key, 5) === ColonCharCode$1) {
4059
+ } else if (StringCharCodeAt.call(key, 5) === ColonCharCode) {
4076
4060
  // Assume xlink namespace
4077
4061
  setAttribute(elm, key, cur, XLINK_NAMESPACE);
4078
4062
  } else if (isNull(cur) || isUndefined$1(cur)) {
@@ -4080,52 +4064,6 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
4080
4064
  } else {
4081
4065
  setAttribute(elm, key, cur);
4082
4066
  }
4083
- lockAttribute();
4084
- }
4085
- }
4086
- }
4087
-
4088
- /*
4089
- * Copyright (c) 2018, salesforce.com, inc.
4090
- * All rights reserved.
4091
- * SPDX-License-Identifier: MIT
4092
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
4093
- */
4094
- const ColonCharCode = 58;
4095
- function patchAttrUnlessProp(oldVnode, vnode, renderer) {
4096
- const {
4097
- data: {
4098
- attrs
4099
- },
4100
- elm
4101
- } = vnode;
4102
- if (isUndefined$1(attrs)) {
4103
- return;
4104
- }
4105
- const {
4106
- removeAttribute,
4107
- setAttribute,
4108
- setProperty
4109
- } = renderer;
4110
- const oldAttrs = isNull(oldVnode) ? EmptyObject : oldVnode.data.attrs;
4111
- for (const name in attrs) {
4112
- const cur = attrs[name];
4113
- const old = oldAttrs[name];
4114
- if (old !== cur) {
4115
- const propName = htmlAttributeToProperty(name);
4116
- if (propName in elm) {
4117
- setProperty(elm, name, cur);
4118
- } else if (StringCharCodeAt.call(name, 3) === ColonCharCode) {
4119
- // Assume xml namespace
4120
- setAttribute(elm, name, cur, XML_NAMESPACE);
4121
- } else if (StringCharCodeAt.call(name, 5) === ColonCharCode) {
4122
- // Assume xlink namespace
4123
- setAttribute(elm, name, cur, XLINK_NAMESPACE);
4124
- } else if (isNull(cur) || isUndefined$1(cur)) {
4125
- removeAttribute(elm, name);
4126
- } else {
4127
- setAttribute(elm, name, cur);
4128
- }
4129
4067
  }
4130
4068
  }
4131
4069
  }
@@ -4155,6 +4093,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
4155
4093
  if (!isNull(oldVnode)) {
4156
4094
  oldProps = oldVnode.data.props;
4157
4095
  const oldSpread = oldVnode.data.spread;
4096
+ // Props may be the same due to the static content optimization, so we can skip diffing
4158
4097
  if (oldProps === props && oldSpread === spread) {
4159
4098
  return;
4160
4099
  }
@@ -4303,12 +4242,11 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
4303
4242
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
4304
4243
  */
4305
4244
  function applyEventListeners(vnode, renderer) {
4245
+ var _a;
4306
4246
  const {
4307
- elm,
4308
- data: {
4309
- on
4310
- }
4247
+ elm
4311
4248
  } = vnode;
4249
+ const on = (_a = vnode.data) === null || _a === void 0 ? void 0 : _a.on;
4312
4250
  if (isUndefined$1(on)) {
4313
4251
  return;
4314
4252
  }
@@ -4566,6 +4504,8 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
4566
4504
  }
4567
4505
  }
4568
4506
  insertNode(elm, parent, anchor, renderer);
4507
+ // Event listeners are only applied once when mounting, so they are allowed for static vnodes
4508
+ applyEventListeners(vnode, renderer);
4569
4509
  }
4570
4510
  function mountCustomElement(vnode, parent, anchor, renderer) {
4571
4511
  const {
@@ -4815,11 +4755,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
4815
4755
  // value is set before type=radio.
4816
4756
  patchClassAttribute(oldVnode, vnode, renderer);
4817
4757
  patchStyleAttribute(oldVnode, vnode, renderer);
4818
- if (vnode.data.external) {
4819
- patchAttrUnlessProp(oldVnode, vnode, renderer);
4820
- } else {
4821
- patchAttributes(oldVnode, vnode, renderer);
4822
- }
4758
+ patchAttributes(oldVnode, vnode, renderer);
4823
4759
  patchProps(oldVnode, vnode, renderer);
4824
4760
  }
4825
4761
  function applyStyleScoping(elm, owner, renderer) {
@@ -5225,14 +5161,15 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
5225
5161
  };
5226
5162
  }
5227
5163
  // [st]atic node
5228
- function st(fragment, key) {
5164
+ function st(fragment, key, data) {
5229
5165
  return {
5230
5166
  type: 4 /* VNodeType.Static */,
5231
5167
  sel: undefined,
5232
5168
  key,
5233
5169
  elm: undefined,
5234
5170
  fragment,
5235
- owner: getVMBeingRendered()
5171
+ owner: getVMBeingRendered(),
5172
+ data
5236
5173
  };
5237
5174
  }
5238
5175
  // [fr]agment node
@@ -5335,7 +5272,14 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
5335
5272
  // undefined is for root components, but root components cannot accept slotted content
5336
5273
  setVMBeingRendered(slotset.owner);
5337
5274
  try {
5338
- ArrayPush$1.call(newChildren, vnode.factory(data.slotData, data.key));
5275
+ // The factory function is a template snippet from the slot set owner's template,
5276
+ // hence switch over to the slot set owner's template reactive observer
5277
+ const {
5278
+ tro
5279
+ } = slotset.owner;
5280
+ tro.observe(() => {
5281
+ ArrayPush$1.call(newChildren, vnode.factory(data.slotData, data.key));
5282
+ });
5339
5283
  } finally {
5340
5284
  setVMBeingRendered(vmBeingRenderedInception);
5341
5285
  }
@@ -7214,6 +7158,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
7214
7158
  return handleMismatch(elm, vnode, renderer);
7215
7159
  }
7216
7160
  vnode.elm = elm;
7161
+ applyEventListeners(vnode, renderer);
7217
7162
  return elm;
7218
7163
  }
7219
7164
  function hydrateFragment(elm, vnode, renderer) {
@@ -7321,7 +7266,6 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
7321
7266
  function hydrateChildren(node, children, parentNode, owner) {
7322
7267
  let hasWarned = false;
7323
7268
  let nextNode = node;
7324
- let anchor = null;
7325
7269
  const {
7326
7270
  renderer
7327
7271
  } = owner;
@@ -7330,7 +7274,6 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
7330
7274
  if (!isNull(childVnode)) {
7331
7275
  if (nextNode) {
7332
7276
  nextNode = hydrateNode(nextNode, childVnode, renderer);
7333
- anchor = childVnode.elm;
7334
7277
  } else {
7335
7278
  hasMismatch = true;
7336
7279
  if (process.env.NODE_ENV !== 'production') {
@@ -7339,8 +7282,8 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
7339
7282
  logError(`Hydration mismatch: incorrect number of rendered nodes. Client produced more nodes than the server.`, owner);
7340
7283
  }
7341
7284
  }
7342
- mount(childVnode, parentNode, renderer, anchor);
7343
- anchor = childVnode.elm;
7285
+ mount(childVnode, parentNode, renderer, nextNode);
7286
+ nextNode = renderer.nextSibling(childVnode.elm);
7344
7287
  }
7345
7288
  }
7346
7289
  }
@@ -7867,7 +7810,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
7867
7810
  }
7868
7811
  return getReadOnlyProxy(obj);
7869
7812
  }
7870
- /* version: 2.45.2 */
7813
+ /** version: 2.46.0 */
7871
7814
 
7872
7815
  /*
7873
7816
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8112,7 +8055,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
8112
8055
  // invokes the DOM api with an .apply() or .call() to initialize any DOM api sub-classing,
8113
8056
  // which are not equipped to be initialized that way.
8114
8057
  class clazz extends HTMLElementAlias {
8115
- /*LWC compiler v2.45.3*/
8058
+ /*LWC compiler v2.46.0*/
8116
8059
  }
8117
8060
  customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
8118
8061
  new clazz();
@@ -8122,13 +8065,6 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
8122
8065
  }
8123
8066
  }
8124
8067
  const hasCustomElements = isCustomElementRegistryAvailable();
8125
-
8126
- /*
8127
- * Copyright (c) 2018, salesforce.com, inc.
8128
- * All rights reserved.
8129
- * SPDX-License-Identifier: MIT
8130
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
8131
- */
8132
8068
  // Creates a custom element for compat (legacy) browser environments
8133
8069
  const createCustomElementCompat = (tagName, upgradeCallback) => {
8134
8070
  const elm = document.createElement(tagName);
@@ -8170,7 +8106,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
8170
8106
  // Do we want to support this? Throw an error? Currently for backwards compat it's a no-op.
8171
8107
  }
8172
8108
  }
8173
- /*LWC compiler v2.45.3*/
8109
+ /*LWC compiler v2.46.0*/
8174
8110
  }
8175
8111
  // Do not unnecessarily add a connectedCallback/disconnectedCallback, as it introduces perf overhead
8176
8112
  // See: https://github.com/salesforce/lwc/pull/3162#issuecomment-1311851174
@@ -8251,8 +8187,9 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
8251
8187
  */
8252
8188
  function rendererFactory(baseRenderer) {
8253
8189
  const renderer = function (exports) {
8190
+ /* proxy-compat-disable */
8254
8191
  /**
8255
- * Copyright (C) 2018 salesforce.com, inc.
8192
+ * Copyright (C) 2023 salesforce.com, inc.
8256
8193
  */
8257
8194
  /*
8258
8195
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8291,7 +8228,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
8291
8228
  function isNull(obj) {
8292
8229
  return obj === null;
8293
8230
  }
8294
- /** version: 2.45.2 */
8231
+ /** version: 2.46.0 */
8295
8232
 
8296
8233
  /*
8297
8234
  * Copyright (c) 2023, salesforce.com, inc.
@@ -8311,7 +8248,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
8311
8248
  this.setNewContext = setNewContext;
8312
8249
  this.setDisconnectedCallback = setDisconnectedCallback;
8313
8250
  }
8314
- /*LWC compiler v2.45.3*/
8251
+ /*LWC compiler v2.46.0*/
8315
8252
  }
8316
8253
  function registerContextConsumer(elm, adapterContextToken, subscriptionPayload) {
8317
8254
  dispatchEvent(elm, new WireContextSubscriptionEvent(adapterContextToken, subscriptionPayload));
@@ -8701,7 +8638,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
8701
8638
  attributeChangedCallback(name, oldValue, newValue) {
8702
8639
  attributeChangedCallback.call(this, name, oldValue, newValue);
8703
8640
  }
8704
- /*LWC compiler v2.45.3*/
8641
+ /*LWC compiler v2.46.0*/
8705
8642
  }, _a.observedAttributes = observedAttributes, _a;
8706
8643
  }
8707
8644
 
@@ -8915,7 +8852,7 @@ LWR.define('lwc/v/2_45_2', ['exports'], (function (exports) { 'use strict';
8915
8852
  });
8916
8853
  });
8917
8854
  }
8918
- /* version: 2.45.2 */
8855
+ /** version: 2.46.0 */
8919
8856
 
8920
8857
  exports.LightningElement = LightningElement;
8921
8858
  exports.__unstable__ProfilerControl = profilerControl;
@@ -1,10 +1,10 @@
1
- LWR.define('lwr/everywhereAmd/v/0_10_0-alpha_13', ['exports', 'lwr/vault/v/0_10_0-alpha_13'], (function (exports, _0_10_0Alpha_13) { 'use strict';
1
+ LWR.define('lwr/everywhereAmd/v/0_10_0-alpha_15', ['exports', 'lwr/vault/v/0_10_0-alpha_15'], (function (exports, _0_10_0Alpha_15) { 'use strict';
2
2
 
3
3
  // IMPORTANT: Do not add any static imports to this file that are not bundled with the amd-client
4
4
 
5
5
  // Do an OAuthed fetch
6
6
  async function authFetch(url, accept = 'javascript') {
7
- const authInfo = _0_10_0Alpha_13.getAuthInfo();
7
+ const authInfo = _0_10_0Alpha_15.getAuthInfo();
8
8
  if (authInfo) {
9
9
  return fetch(url, {
10
10
  headers: {
@@ -54,7 +54,7 @@ LWR.define('lwr/everywhereAmd/v/0_10_0-alpha_13', ['exports', 'lwr/vault/v/0_10_
54
54
  function authenticate(authInfo) {
55
55
  // Put OAuth info into the vault
56
56
  if (authInfo) {
57
- _0_10_0Alpha_13.setAuthInfo(authInfo);
57
+ _0_10_0Alpha_15.setAuthInfo(authInfo);
58
58
  }
59
59
  }
60
60