lwc 2.45.2 → 2.45.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +45 -52
  2. package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
  3. package/dist/engine-dom/iife/es2017/engine-dom.js +45 -52
  4. package/dist/engine-dom/iife/es2017/engine-dom.js.map +1 -1
  5. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  6. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +51 -50
  7. package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -1
  8. package/dist/engine-dom/iife/es5/engine-dom.js +51 -56
  9. package/dist/engine-dom/iife/es5/engine-dom.js.map +1 -1
  10. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  11. package/dist/engine-dom/iife/es5/engine-dom_debug.js +57 -54
  12. package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
  13. package/dist/engine-dom/umd/es2017/engine-dom.js +45 -52
  14. package/dist/engine-dom/umd/es2017/engine-dom.js.map +1 -1
  15. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  16. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +51 -50
  17. package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -1
  18. package/dist/engine-dom/umd/es5/engine-dom.js +51 -56
  19. package/dist/engine-dom/umd/es5/engine-dom.js.map +1 -1
  20. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  21. package/dist/engine-dom/umd/es5/engine-dom_debug.js +57 -54
  22. package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -1
  23. package/dist/engine-server/commonjs/es2017/engine-server.js +7795 -91
  24. package/dist/engine-server/commonjs/es2017/engine-server.js.map +1 -1
  25. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  26. package/dist/engine-server/esm/es2017/engine-server.js +7794 -71
  27. package/dist/engine-server/esm/es2017/engine-server.js.map +1 -1
  28. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +71 -12
  29. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -1
  30. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +71 -12
  31. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -1
  32. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +39 -1
  33. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +55 -5
  34. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -1
  35. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +71 -12
  36. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -1
  37. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +39 -1
  38. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +43 -4
  39. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -1
  40. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +71 -12
  41. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -1
  42. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +39 -1
  43. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +55 -5
  44. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -1
  45. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +71 -12
  46. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -1
  47. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +39 -1
  48. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +43 -4
  49. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -1
  50. package/dist/wire-service/esm/es2017/wire-service.js +10 -4
  51. package/dist/wire-service/esm/es2017/wire-service.js.map +1 -1
  52. package/dist/wire-service/iife/es2017/wire-service.js +10 -4
  53. package/dist/wire-service/iife/es2017/wire-service.js.map +1 -1
  54. package/dist/wire-service/iife/es2017/wire-service_debug.js +10 -4
  55. package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -1
  56. package/dist/wire-service/iife/es5/wire-service.js +10 -4
  57. package/dist/wire-service/iife/es5/wire-service.js.map +1 -1
  58. package/dist/wire-service/iife/es5/wire-service_debug.js +10 -4
  59. package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -1
  60. package/dist/wire-service/umd/es2017/wire-service.js +10 -4
  61. package/dist/wire-service/umd/es2017/wire-service.js.map +1 -1
  62. package/dist/wire-service/umd/es2017/wire-service_debug.js +10 -4
  63. package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -1
  64. package/dist/wire-service/umd/es5/wire-service.js +10 -4
  65. package/dist/wire-service/umd/es5/wire-service.js.map +1 -1
  66. package/dist/wire-service/umd/es5/wire-service_debug.js +10 -4
  67. package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -1
  68. package/package.json +7 -7
@@ -9,9 +9,11 @@
9
9
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
10
10
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
11
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
12
- /* proxy-compat-disable */
13
12
  /**
14
- * Copyright (C) 2018 salesforce.com, inc.
13
+ * Copyright (C) 2023 salesforce.com, inc.
14
+ */
15
+ /**
16
+ * Copyright (C) 2023 salesforce.com, inc.
15
17
  */
16
18
  /*
17
19
  * Copyright (c) 2018, salesforce.com, inc.
@@ -151,10 +153,10 @@
151
153
  var hasNativeSymbolSupport = /*@__PURE__*/function () {
152
154
  return Symbol('x').toString() === 'Symbol(x)';
153
155
  }();
154
- /** version: 2.45.2 */
156
+ /** version: 2.45.3 */
155
157
 
156
158
  /**
157
- * Copyright (C) 2018 salesforce.com, inc.
159
+ * Copyright (C) 2023 salesforce.com, inc.
158
160
  */
159
161
  // eslint-disable-next-line no-restricted-properties
160
162
  if (!_globalThis.lwcRuntimeFlags) {
@@ -162,7 +164,7 @@
162
164
  value: create(null)
163
165
  });
164
166
  }
165
- /** version: 2.45.2 */
167
+ /** version: 2.45.3 */
166
168
 
167
169
  /*
168
170
  * Copyright (c) 2018, salesforce.com, inc.
@@ -549,9 +551,18 @@
549
551
  }
550
552
  function isNodeSlotted(host, node) {
551
553
  if (process.env.NODE_ENV !== 'production') {
552
- assert.invariant(host instanceof HTMLElement, "isNodeSlotted() should be called with a host as the first argument instead of ".concat(host));
553
- assert.invariant(node instanceof _Node, "isNodeSlotted() should be called with a node as the second argument instead of ".concat(node));
554
- assert.invariant(compareDocumentPosition.call(node, host) & DOCUMENT_POSITION_CONTAINS, "isNodeSlotted() should never be called with a node that is not a child node of ".concat(host));
554
+ if (!(host instanceof HTMLElement)) {
555
+ // eslint-disable-next-line no-console
556
+ console.error("isNodeSlotted() should be called with a host as the first argument");
557
+ }
558
+ if (!(node instanceof _Node)) {
559
+ // eslint-disable-next-line no-console
560
+ console.error("isNodeSlotted() should be called with a node as the second argument");
561
+ }
562
+ if (!(compareDocumentPosition.call(node, host) & DOCUMENT_POSITION_CONTAINS)) {
563
+ // eslint-disable-next-line no-console
564
+ console.error("isNodeSlotted() should never be called with a node that is not a child node of the given host");
565
+ }
555
566
  }
556
567
  var hostKey = getNodeKey(host);
557
568
  // this routine assumes that the node is coming from a different shadow (it is not owned by the host)
@@ -632,9 +643,18 @@
632
643
  }
633
644
  function isNodeOwnedBy(owner, node) {
634
645
  if (process.env.NODE_ENV !== 'production') {
635
- assert.invariant(owner instanceof HTMLElement, "isNodeOwnedBy() should be called with an element as the first argument instead of ".concat(owner));
636
- assert.invariant(node instanceof _Node, "isNodeOwnedBy() should be called with a node as the second argument instead of ".concat(node));
637
- assert.invariant(compareDocumentPosition.call(node, owner) & DOCUMENT_POSITION_CONTAINS, "isNodeOwnedBy() should never be called with a node that is not a child node of ".concat(owner));
646
+ if (!(owner instanceof HTMLElement)) {
647
+ // eslint-disable-next-line no-console
648
+ console.error("isNodeOwnedBy() should be called with an element as the first argument");
649
+ }
650
+ if (!(node instanceof _Node)) {
651
+ // eslint-disable-next-line no-console
652
+ console.error("isNodeOwnedBy() should be called with a node as the second argument");
653
+ }
654
+ if (!(compareDocumentPosition.call(node, owner) & DOCUMENT_POSITION_CONTAINS)) {
655
+ // eslint-disable-next-line no-console
656
+ console.error("isNodeOwnedBy() should never be called with a node that is not a child node of of the given owner");
657
+ }
638
658
  }
639
659
  var ownerKey = getNodeNearestOwnerKey(node);
640
660
  if (isUndefined(ownerKey)) {
@@ -747,6 +767,16 @@
747
767
  * SPDX-License-Identifier: MIT
748
768
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
749
769
  */
770
+ /**
771
+ @license
772
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
773
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
774
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
775
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
776
+ Code distributed by Google as part of the polymer project is also
777
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
778
+ */
779
+ // This code is inspired by Polymer ShadyDOM Polyfill
750
780
  function getInnerHTML(node) {
751
781
  var s = '';
752
782
  var childNodes = getFilteredChildNodes(node);
@@ -762,6 +792,16 @@
762
792
  * SPDX-License-Identifier: MIT
763
793
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
764
794
  */
795
+ /**
796
+ @license
797
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
798
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
799
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
800
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
801
+ Code distributed by Google as part of the polymer project is also
802
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
803
+ */
804
+ // This code is inspired by Polymer ShadyDOM Polyfill
765
805
  // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#escapingString
766
806
  var escapeAttrRegExp = /[&\u00A0"]/g;
767
807
  var escapeDataRegExp = /[&\u00A0<>]/g;
@@ -846,6 +886,16 @@
846
886
  * SPDX-License-Identifier: MIT
847
887
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
848
888
  */
889
+ /**
890
+ @license
891
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
892
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
893
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
894
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
895
+ Code distributed by Google as part of the polymer project is also
896
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
897
+ */
898
+ // This code is inspired by Polymer ShadyDOM Polyfill
849
899
  function getTextContent(node) {
850
900
  switch (node.nodeType) {
851
901
  case ELEMENT_NODE:
@@ -2331,6 +2381,15 @@
2331
2381
  * SPDX-License-Identifier: MIT
2332
2382
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2333
2383
  */
2384
+ /**
2385
+ @license
2386
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
2387
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2388
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2389
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2390
+ Code distributed by Google as part of the polymer project is also
2391
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2392
+ */
2334
2393
  function pathComposer(startNode, composed) {
2335
2394
  var composedPath = [];
2336
2395
  var startRoot;
@@ -4669,7 +4728,7 @@
4669
4728
  },
4670
4729
  configurable: true
4671
4730
  });
4672
- /** version: 2.45.2 */
4731
+ /** version: 2.45.3 */
4673
4732
 
4674
4733
  })();
4675
4734
  //# sourceMappingURL=synthetic-shadow.js.map