lwc 2.45.1 → 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 +101 -60
  2. package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
  3. package/dist/engine-dom/iife/es2017/engine-dom.js +101 -60
  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 +110 -58
  7. package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -1
  8. package/dist/engine-dom/iife/es5/engine-dom.js +114 -62
  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 +123 -60
  12. package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
  13. package/dist/engine-dom/umd/es2017/engine-dom.js +101 -60
  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 +110 -58
  17. package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -1
  18. package/dist/engine-dom/umd/es5/engine-dom.js +114 -62
  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 +123 -60
  22. package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -1
  23. package/dist/engine-server/commonjs/es2017/engine-server.js +7796 -92
  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 +7795 -72
  27. package/dist/engine-server/esm/es2017/engine-server.js.map +1 -1
  28. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +72 -13
  29. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -1
  30. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +72 -13
  31. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -1
  32. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +40 -2
  33. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +56 -6
  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 +72 -13
  41. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -1
  42. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +40 -2
  43. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +56 -6
  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
@@ -1,9 +1,11 @@
1
1
  (function () {
2
2
  'use strict';
3
3
 
4
- /* proxy-compat-disable */
5
4
  /**
6
- * Copyright (C) 2018 salesforce.com, inc.
5
+ * Copyright (C) 2023 salesforce.com, inc.
6
+ */
7
+ /**
8
+ * Copyright (C) 2023 salesforce.com, inc.
7
9
  */
8
10
  /*
9
11
  * Copyright (c) 2018, salesforce.com, inc.
@@ -46,7 +48,7 @@
46
48
  */
47
49
  const { assign, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isFrozen, keys, seal, setPrototypeOf, } = Object;
48
50
  const { isArray } = Array;
49
- const { concat: ArrayConcat, copyWithin: ArrayCopyWithin, fill: ArrayFill, filter: ArrayFilter, find: ArrayFind, findIndex: ArrayFindIndex, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, pop: ArrayPop, push: ArrayPush, reduce: ArrayReduce, reverse: ArrayReverse, shift: ArrayShift, slice: ArraySlice, some: ArraySome, sort: ArraySort, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
51
+ const { concat: ArrayConcat, copyWithin: ArrayCopyWithin, every: ArrayEvery, fill: ArrayFill, filter: ArrayFilter, find: ArrayFind, findIndex: ArrayFindIndex, includes: ArrayIncludes, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, pop: ArrayPop, push: ArrayPush, reduce: ArrayReduce, reverse: ArrayReverse, shift: ArrayShift, slice: ArraySlice, some: ArraySome, sort: ArraySort, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
50
52
  const { charCodeAt: StringCharCodeAt, replace: StringReplace, split: StringSplit, slice: StringSlice, toLowerCase: StringToLowerCase, } = String.prototype;
51
53
  function isUndefined(obj) {
52
54
  return obj === undefined;
@@ -123,16 +125,16 @@
123
125
  // We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
124
126
  // we can't use typeof since it will fail when transpiling.
125
127
  const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
126
- /** version: 2.45.1 */
128
+ /** version: 2.45.3 */
127
129
 
128
130
  /**
129
- * Copyright (C) 2018 salesforce.com, inc.
131
+ * Copyright (C) 2023 salesforce.com, inc.
130
132
  */
131
133
  // eslint-disable-next-line no-restricted-properties
132
134
  if (!_globalThis.lwcRuntimeFlags) {
133
135
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
134
136
  }
135
- /** version: 2.45.1 */
137
+ /** version: 2.45.3 */
136
138
 
137
139
  /*
138
140
  * Copyright (c) 2018, salesforce.com, inc.
@@ -516,9 +518,18 @@
516
518
  }
517
519
  function isNodeSlotted(host, node) {
518
520
  if (process.env.NODE_ENV !== 'production') {
519
- assert.invariant(host instanceof HTMLElement, `isNodeSlotted() should be called with a host as the first argument instead of ${host}`);
520
- assert.invariant(node instanceof _Node, `isNodeSlotted() should be called with a node as the second argument instead of ${node}`);
521
- assert.invariant(compareDocumentPosition.call(node, host) & DOCUMENT_POSITION_CONTAINS, `isNodeSlotted() should never be called with a node that is not a child node of ${host}`);
521
+ if (!(host instanceof HTMLElement)) {
522
+ // eslint-disable-next-line no-console
523
+ console.error(`isNodeSlotted() should be called with a host as the first argument`);
524
+ }
525
+ if (!(node instanceof _Node)) {
526
+ // eslint-disable-next-line no-console
527
+ console.error(`isNodeSlotted() should be called with a node as the second argument`);
528
+ }
529
+ if (!(compareDocumentPosition.call(node, host) & DOCUMENT_POSITION_CONTAINS)) {
530
+ // eslint-disable-next-line no-console
531
+ console.error(`isNodeSlotted() should never be called with a node that is not a child node of the given host`);
532
+ }
522
533
  }
523
534
  const hostKey = getNodeKey(host);
524
535
  // this routine assumes that the node is coming from a different shadow (it is not owned by the host)
@@ -604,9 +615,18 @@
604
615
  }
605
616
  function isNodeOwnedBy(owner, node) {
606
617
  if (process.env.NODE_ENV !== 'production') {
607
- assert.invariant(owner instanceof HTMLElement, `isNodeOwnedBy() should be called with an element as the first argument instead of ${owner}`);
608
- assert.invariant(node instanceof _Node, `isNodeOwnedBy() should be called with a node as the second argument instead of ${node}`);
609
- assert.invariant(compareDocumentPosition.call(node, owner) & DOCUMENT_POSITION_CONTAINS, `isNodeOwnedBy() should never be called with a node that is not a child node of ${owner}`);
618
+ if (!(owner instanceof HTMLElement)) {
619
+ // eslint-disable-next-line no-console
620
+ console.error(`isNodeOwnedBy() should be called with an element as the first argument`);
621
+ }
622
+ if (!(node instanceof _Node)) {
623
+ // eslint-disable-next-line no-console
624
+ console.error(`isNodeOwnedBy() should be called with a node as the second argument`);
625
+ }
626
+ if (!(compareDocumentPosition.call(node, owner) & DOCUMENT_POSITION_CONTAINS)) {
627
+ // eslint-disable-next-line no-console
628
+ console.error(`isNodeOwnedBy() should never be called with a node that is not a child node of of the given owner`);
629
+ }
610
630
  }
611
631
  const ownerKey = getNodeNearestOwnerKey(node);
612
632
  if (isUndefined(ownerKey)) {
@@ -716,6 +736,16 @@
716
736
  * SPDX-License-Identifier: MIT
717
737
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
718
738
  */
739
+ /**
740
+ @license
741
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
742
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
743
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
744
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
745
+ Code distributed by Google as part of the polymer project is also
746
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
747
+ */
748
+ // This code is inspired by Polymer ShadyDOM Polyfill
719
749
  function getInnerHTML(node) {
720
750
  let s = '';
721
751
  const childNodes = getFilteredChildNodes(node);
@@ -731,6 +761,16 @@
731
761
  * SPDX-License-Identifier: MIT
732
762
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
733
763
  */
764
+ /**
765
+ @license
766
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
767
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
768
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
769
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
770
+ Code distributed by Google as part of the polymer project is also
771
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
772
+ */
773
+ // This code is inspired by Polymer ShadyDOM Polyfill
734
774
  // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#escapingString
735
775
  const escapeAttrRegExp = /[&\u00A0"]/g;
736
776
  const escapeDataRegExp = /[&\u00A0<>]/g;
@@ -833,6 +873,16 @@
833
873
  * SPDX-License-Identifier: MIT
834
874
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
835
875
  */
876
+ /**
877
+ @license
878
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
879
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
880
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
881
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
882
+ Code distributed by Google as part of the polymer project is also
883
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
884
+ */
885
+ // This code is inspired by Polymer ShadyDOM Polyfill
836
886
  function getTextContent(node) {
837
887
  switch (node.nodeType) {
838
888
  case ELEMENT_NODE: {
@@ -2340,6 +2390,15 @@
2340
2390
  * SPDX-License-Identifier: MIT
2341
2391
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2342
2392
  */
2393
+ /**
2394
+ @license
2395
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
2396
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2397
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2398
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2399
+ Code distributed by Google as part of the polymer project is also
2400
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2401
+ */
2343
2402
  function pathComposer(startNode, composed) {
2344
2403
  const composedPath = [];
2345
2404
  let startRoot;
@@ -4694,7 +4753,7 @@
4694
4753
  },
4695
4754
  configurable: true,
4696
4755
  });
4697
- /** version: 2.45.1 */
4756
+ /** version: 2.45.3 */
4698
4757
 
4699
4758
  })();
4700
4759
  //# sourceMappingURL=synthetic-shadow.js.map