lwc 2.13.3 → 2.13.4

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 (43) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +309 -113
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +309 -112
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +155 -107
  5. package/dist/engine-dom/iife/es5/engine-dom.js +7556 -5772
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +5938 -4597
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +309 -112
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +155 -107
  11. package/dist/engine-dom/umd/es5/engine-dom.js +7556 -5772
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +5938 -4597
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +146 -36
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +146 -37
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +29 -4
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +29 -4
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +10 -13
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +4 -4
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +4601 -3603
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +10 -1
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +4424 -3481
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +29 -4
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +10 -13
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +4 -4
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +4601 -3603
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +10 -1
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +4424 -3481
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service.min.js +1 -1
  33. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  34. package/dist/wire-service/iife/es5/wire-service.js +243 -258
  35. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  36. package/dist/wire-service/iife/es5/wire-service_debug.js +243 -258
  37. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  38. package/dist/wire-service/umd/es2017/wire-service.min.js +1 -1
  39. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  40. package/dist/wire-service/umd/es5/wire-service.js +243 -258
  41. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  42. package/dist/wire-service/umd/es5/wire-service_debug.js +243 -258
  43. package/package.json +7 -7
@@ -43,7 +43,7 @@ var assert = /*#__PURE__*/Object.freeze({
43
43
  */
44
44
  const { assign, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor: getOwnPropertyDescriptor$1, getOwnPropertyNames: getOwnPropertyNames$1, getPrototypeOf: getPrototypeOf$1, hasOwnProperty: hasOwnProperty$1, isFrozen, keys, seal, setPrototypeOf, } = Object;
45
45
  const { isArray: isArray$1 } = Array;
46
- const { filter: ArrayFilter, find: ArrayFind, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, push: ArrayPush$1, reduce: ArrayReduce, reverse: ArrayReverse, slice: ArraySlice, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
46
+ const { copyWithin: ArrayCopyWithin, fill: ArrayFill, filter: ArrayFilter, find: ArrayFind, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, pop: ArrayPop, push: ArrayPush$1, reduce: ArrayReduce, reverse: ArrayReverse, shift: ArrayShift, slice: ArraySlice, sort: ArraySort, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
47
47
  const { fromCharCode: StringFromCharCode } = String;
48
48
  const { charCodeAt: StringCharCodeAt, replace: StringReplace, slice: StringSlice, toLowerCase: StringToLowerCase, } = String.prototype;
49
49
  function isUndefined$1(obj) {
@@ -417,9 +417,9 @@ const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
417
417
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
418
418
  */
419
419
  // Increment whenever the LWC template compiler changes
420
- const LWC_VERSION = "2.13.3";
420
+ const LWC_VERSION = "2.13.4";
421
421
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
422
- /** version: 2.13.3 */
422
+ /** version: 2.13.4 */
423
423
 
424
424
  /*
425
425
  * Copyright (c) 2020, salesforce.com, inc.
@@ -464,6 +464,7 @@ if (typeof CustomEvent !== 'function') {
464
464
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
465
465
  */
466
466
  const features = {
467
+ DUMMY_TEST_FLAG: null,
467
468
  ENABLE_ELEMENT_PATCH: null,
468
469
  ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST: null,
469
470
  ENABLE_HMR: null,
@@ -527,10 +528,35 @@ function setFeatureFlagForTest(name, value) {
527
528
  setFeatureFlag(name, value);
528
529
  }
529
530
  }
530
- /** version: 2.13.3 */
531
+ /** version: 2.13.4 */
531
532
 
532
533
  /* proxy-compat-disable */
533
534
 
535
+ /*
536
+ * Copyright (c) 2018, salesforce.com, inc.
537
+ * All rights reserved.
538
+ * SPDX-License-Identifier: MIT
539
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
540
+ */
541
+ // @ts-ignore
542
+
543
+ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
544
+ window.addEventListener('test-dummy-flag', () => {
545
+ let hasFlag = false;
546
+
547
+ if (runtimeFlags.DUMMY_TEST_FLAG) {
548
+ hasFlag = true;
549
+ }
550
+
551
+ window.dispatchEvent(new CustomEvent('has-dummy-flag', {
552
+ detail: {
553
+ package: '@lwc/engine-core',
554
+ hasFlag
555
+ }
556
+ }));
557
+ });
558
+ }
559
+
534
560
  /*
535
561
  * Copyright (c) 2018, salesforce.com, inc.
536
562
  * All rights reserved.
@@ -604,10 +630,6 @@ let HTMLElementExported$1;
604
630
  function setHTMLElement(HTMLElementImpl) {
605
631
  HTMLElementExported$1 = HTMLElementImpl;
606
632
  }
607
- let isHydrating$1;
608
- function setIsHydrating(isHydratingImpl) {
609
- isHydrating$1 = isHydratingImpl;
610
- }
611
633
  let insert$1;
612
634
  function setInsert(insertImpl) {
613
635
  insert$1 = insertImpl;
@@ -728,10 +750,6 @@ let isConnected$1;
728
750
  function setIsConnected(isConnectedImpl) {
729
751
  isConnected$1 = isConnectedImpl;
730
752
  }
731
- let insertGlobalStylesheet$1;
732
- function setInsertGlobalStylesheet(insertGlobalStylesheetImpl) {
733
- insertGlobalStylesheet$1 = insertGlobalStylesheetImpl;
734
- }
735
753
  let insertStylesheet$1;
736
754
  function setInsertStylesheet(insertStylesheetImpl) {
737
755
  insertStylesheet$1 = insertStylesheetImpl;
@@ -2844,6 +2862,8 @@ function registerTemplate(tpl) {
2844
2862
  // on top of stylesheetToken for anyone who is accessing the old internal API.
2845
2863
  // Details: https://salesforce.quip.com/v1rmAFu2cKAr
2846
2864
  defineProperty(tpl, 'stylesheetTokens', {
2865
+ enumerable: true,
2866
+ configurable: true,
2847
2867
  get() {
2848
2868
  const { stylesheetToken } = this;
2849
2869
  if (isUndefined$1(stylesheetToken)) {
@@ -3806,15 +3826,16 @@ function mountVNodes(vnodes, parent, anchor, start = 0, end = vnodes.length) {
3806
3826
  }
3807
3827
  }
3808
3828
  function unmount(vnode, parent, doRemove = false) {
3809
- const { type, elm } = vnode;
3829
+ const { type, elm, sel } = vnode;
3810
3830
  // When unmounting a VNode subtree not all the elements have to removed from the DOM. The
3811
3831
  // subtree root, is the only element worth unmounting from the subtree.
3812
3832
  if (doRemove) {
3813
3833
  removeNode(elm, parent);
3814
3834
  }
3835
+ const removeChildren = sel === 'slot'; // slot content is removed to trigger slotchange event when removing slot
3815
3836
  switch (type) {
3816
3837
  case 2 /* Element */:
3817
- unmountVNodes(vnode.children, elm);
3838
+ unmountVNodes(vnode.children, elm, removeChildren);
3818
3839
  break;
3819
3840
  case 3 /* CustomElement */: {
3820
3841
  const { vm } = vnode;
@@ -4732,10 +4753,10 @@ function createStylesheet(vm, stylesheets) {
4732
4753
  const { renderMode, shadowMode } = vm;
4733
4754
  if (renderMode === 1 /* Shadow */ && shadowMode === 1 /* Synthetic */) {
4734
4755
  for (let i = 0; i < stylesheets.length; i++) {
4735
- insertGlobalStylesheet$1(stylesheets[i]);
4756
+ insertStylesheet$1(stylesheets[i]);
4736
4757
  }
4737
4758
  }
4738
- else if (ssr$1 || isHydrating$1()) {
4759
+ else if (ssr$1 || vm.hydrated) {
4739
4760
  // Note: We need to ensure that during hydration, the stylesheets method is the same as those in ssr.
4740
4761
  // This works in the client, because the stylesheets are created, and cached in the VM
4741
4762
  // the first time the VM renders.
@@ -4746,15 +4767,10 @@ function createStylesheet(vm, stylesheets) {
4746
4767
  else {
4747
4768
  // native shadow or light DOM, DOM renderer
4748
4769
  const root = getNearestNativeShadowComponent(vm);
4749
- const isGlobal = isNull(root);
4770
+ // null root means a global style
4771
+ const target = isNull(root) ? undefined : root.shadowRoot;
4750
4772
  for (let i = 0; i < stylesheets.length; i++) {
4751
- if (isGlobal) {
4752
- insertGlobalStylesheet$1(stylesheets[i]);
4753
- }
4754
- else {
4755
- // local level
4756
- insertStylesheet$1(stylesheets[i], root.shadowRoot);
4757
- }
4773
+ insertStylesheet$1(stylesheets[i], target);
4758
4774
  }
4759
4775
  }
4760
4776
  return null;
@@ -5268,7 +5284,8 @@ function createVM(elm, ctor, options) {
5268
5284
  const {
5269
5285
  mode,
5270
5286
  owner,
5271
- tagName
5287
+ tagName,
5288
+ hydrated
5272
5289
  } = options;
5273
5290
  const def = getComponentInternalDef(ctor);
5274
5291
  const vm = {
@@ -5291,6 +5308,7 @@ function createVM(elm, ctor, options) {
5291
5308
  cmpSlots: create(null),
5292
5309
  oar: create(null),
5293
5310
  cmpTemplate: null,
5311
+ hydrated: Boolean(hydrated),
5294
5312
  renderMode: def.renderMode,
5295
5313
  shadowMode: computeShadowMode(def, owner),
5296
5314
  nearestShadowMode: (owner === null || owner === void 0 ? void 0 : owner.shadowRoot) ? owner.shadowMode : (_a = owner === null || owner === void 0 ? void 0 : owner.nearestShadowMode) !== null && _a !== void 0 ? _a : null,
@@ -6149,7 +6167,106 @@ function setHooks(hooks) {
6149
6167
  hooksAreSet = true;
6150
6168
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
6151
6169
  }
6152
- /* version: 2.13.3 */
6170
+
6171
+ /*
6172
+ * Copyright (c) 2018, salesforce.com, inc.
6173
+ * All rights reserved.
6174
+ * SPDX-License-Identifier: MIT
6175
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6176
+ */
6177
+ // See @lwc/engine-core/src/framework/template.ts
6178
+ const TEMPLATE_PROPS = ['slots', 'stylesheetToken', 'stylesheets', 'renderMode'];
6179
+ // Via https://www.npmjs.com/package/object-observer
6180
+ const ARRAY_MUTATION_METHODS = [
6181
+ 'pop',
6182
+ 'push',
6183
+ 'shift',
6184
+ 'unshift',
6185
+ 'reverse',
6186
+ 'sort',
6187
+ 'fill',
6188
+ 'splice',
6189
+ 'copyWithin',
6190
+ ];
6191
+ function getOriginalArrayMethod(prop) {
6192
+ switch (prop) {
6193
+ case 'pop':
6194
+ return ArrayPop;
6195
+ case 'push':
6196
+ return ArrayPush$1;
6197
+ case 'shift':
6198
+ return ArrayShift;
6199
+ case 'unshift':
6200
+ return ArrayUnshift;
6201
+ case 'reverse':
6202
+ return ArrayReverse;
6203
+ case 'sort':
6204
+ return ArraySort;
6205
+ case 'fill':
6206
+ return ArrayFill;
6207
+ case 'splice':
6208
+ return ArraySplice;
6209
+ case 'copyWithin':
6210
+ return ArrayCopyWithin;
6211
+ }
6212
+ }
6213
+ let mutationWarningsSilenced = false;
6214
+ // Warn if the user tries to mutate tmpl.stylesheets, e.g.:
6215
+ // `tmpl.stylesheets.push(someStylesheetFunction)`
6216
+ function warnOnArrayMutation(stylesheets) {
6217
+ // We can't handle users calling Array.prototype.slice.call(tmpl.stylesheets), but
6218
+ // we can at least warn when they use the most common mutation methods.
6219
+ for (const prop of ARRAY_MUTATION_METHODS) {
6220
+ const originalArrayMethod = getOriginalArrayMethod(prop);
6221
+ stylesheets[prop] = function arrayMutationWarningWrapper() {
6222
+ logError(`Mutating the "stylesheets" array on a template function ` +
6223
+ `is deprecated and may be removed in a future version of LWC.`);
6224
+ // @ts-ignore
6225
+ return originalArrayMethod.apply(this, arguments);
6226
+ };
6227
+ }
6228
+ }
6229
+ // TODO [#2782]: eventually freezeTemplate() will _actually_ freeze the tmpl object. Today it
6230
+ // just warns on mutation.
6231
+ function freezeTemplate(tmpl) {
6232
+ if (process.env.NODE_ENV !== 'production') {
6233
+ if (!isUndefined$1(tmpl.stylesheets)) {
6234
+ warnOnArrayMutation(tmpl.stylesheets);
6235
+ }
6236
+ for (const prop of TEMPLATE_PROPS) {
6237
+ let value = tmpl[prop];
6238
+ defineProperty(tmpl, prop, {
6239
+ enumerable: true,
6240
+ configurable: true,
6241
+ get() {
6242
+ return value;
6243
+ },
6244
+ set(newValue) {
6245
+ if (!mutationWarningsSilenced) {
6246
+ logError(`Dynamically setting the "${prop}" property on a template function ` +
6247
+ `is deprecated and may be removed in a future version of LWC.`);
6248
+ }
6249
+ value = newValue;
6250
+ },
6251
+ });
6252
+ }
6253
+ const originalDescriptor = getOwnPropertyDescriptor$1(tmpl, 'stylesheetTokens');
6254
+ defineProperty(tmpl, 'stylesheetTokens', {
6255
+ enumerable: true,
6256
+ configurable: true,
6257
+ get: originalDescriptor.get,
6258
+ set(value) {
6259
+ logError(`Dynamically setting the "stylesheetTokens" property on a template function ` +
6260
+ `is deprecated and may be removed in a future version of LWC.`);
6261
+ // Avoid logging twice (for both stylesheetToken and stylesheetTokens)
6262
+ mutationWarningsSilenced = true;
6263
+ originalDescriptor.set.call(this, value);
6264
+ mutationWarningsSilenced = false;
6265
+ },
6266
+ });
6267
+ }
6268
+ }
6269
+ /* version: 2.13.4 */
6153
6270
 
6154
6271
  /*
6155
6272
  * Copyright (c) 2020, salesforce.com, inc.
@@ -6222,9 +6339,6 @@ class HTMLElementImpl {
6222
6339
  }
6223
6340
  }
6224
6341
  const ssr = true;
6225
- function isHydrating() {
6226
- return false;
6227
- }
6228
6342
  const isNativeShadowDefined = false;
6229
6343
  const isSyntheticShadowDefined = false;
6230
6344
  function insert(node, parent, anchor) {
@@ -6425,9 +6539,6 @@ function isConnected(node) {
6425
6539
  }
6426
6540
  // Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
6427
6541
  // synthetic shadow.
6428
- const insertGlobalStylesheet = noop;
6429
- // Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
6430
- // synthetic shadow.
6431
6542
  const insertStylesheet = noop;
6432
6543
  // Noop on SSR.
6433
6544
  const addEventListener = noop;
@@ -6483,10 +6594,7 @@ setGetLastElementChild(getLastElementChild);
6483
6594
  setGetProperty(getProperty);
6484
6595
  setHTMLElement(HTMLElementExported);
6485
6596
  setInsert(insert);
6486
- setInsertGlobalStylesheet(insertGlobalStylesheet);
6487
- setInsertStylesheet(insertStylesheet);
6488
6597
  setIsConnected(isConnected);
6489
- setIsHydrating(isHydrating);
6490
6598
  setIsNativeShadowDefined(isNativeShadowDefined);
6491
6599
  setIsSyntheticShadowDefined(isSyntheticShadowDefined);
6492
6600
  setNextSibling(nextSibling);
@@ -6501,6 +6609,7 @@ setSetProperty(setProperty);
6501
6609
  setSetText(setText);
6502
6610
  setSsr(ssr);
6503
6611
  setAddEventListener(addEventListener);
6612
+ setInsertStylesheet(insertStylesheet);
6504
6613
 
6505
6614
  /*
6506
6615
  * Copyright (c) 2020, salesforce.com, inc.
@@ -6616,6 +6725,6 @@ function renderComponent(tagName, Ctor, props = {}) {
6616
6725
  */
6617
6726
  freeze(LightningElement);
6618
6727
  seal(LightningElement.prototype);
6619
- /* version: 2.13.3 */
6728
+ /* version: 2.13.4 */
6620
6729
 
6621
- export { LightningElement, api$1 as api, createContextProvider, getComponentDef, isComponentConstructor, readonly, register, registerComponent, registerDecorators, registerTemplate, renderComponent, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, track, unwrap, wire };
6730
+ export { LightningElement, api$1 as api, createContextProvider, freezeTemplate, getComponentDef, isComponentConstructor, readonly, register, registerComponent, registerDecorators, registerTemplate, renderComponent, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, track, unwrap, wire };
@@ -43,7 +43,7 @@ var assert = /*#__PURE__*/Object.freeze({
43
43
  */
44
44
  const { assign, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isFrozen, keys, seal, setPrototypeOf, } = Object;
45
45
  const { isArray } = Array;
46
- const { filter: ArrayFilter, find: ArrayFind, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, push: ArrayPush, reduce: ArrayReduce, reverse: ArrayReverse, slice: ArraySlice, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
46
+ const { copyWithin: ArrayCopyWithin, fill: ArrayFill, filter: ArrayFilter, find: ArrayFind, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, pop: ArrayPop, push: ArrayPush, reduce: ArrayReduce, reverse: ArrayReverse, shift: ArrayShift, slice: ArraySlice, sort: ArraySort, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
47
47
  const { charCodeAt: StringCharCodeAt, replace: StringReplace, slice: StringSlice, toLowerCase: StringToLowerCase, } = String.prototype;
48
48
  function isUndefined(obj) {
49
49
  return obj === undefined;
@@ -146,7 +146,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
146
146
  // We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
147
147
  // we can't use typeof since it will fail when transpiling.
148
148
  const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
149
- /** version: 2.13.3 */
149
+ /** version: 2.13.4 */
150
150
 
151
151
  /*
152
152
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1122,7 +1122,7 @@ if (!_globalThis.lwcRuntimeFlags) {
1122
1122
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1123
1123
  }
1124
1124
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1125
- /** version: 2.13.3 */
1125
+ /** version: 2.13.4 */
1126
1126
 
1127
1127
  /*
1128
1128
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5066,4 +5066,29 @@ defineProperty(Element.prototype, '$domManual$', {
5066
5066
  },
5067
5067
  configurable: true,
5068
5068
  });
5069
- /** version: 2.13.3 */
5069
+
5070
+ /*
5071
+ * Copyright (c) 2018, salesforce.com, inc.
5072
+ * All rights reserved.
5073
+ * SPDX-License-Identifier: MIT
5074
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
5075
+ */
5076
+ // @ts-ignore
5077
+
5078
+ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
5079
+ window.addEventListener('test-dummy-flag', () => {
5080
+ let hasFlag = false;
5081
+
5082
+ if (runtimeFlags.DUMMY_TEST_FLAG) {
5083
+ hasFlag = true;
5084
+ }
5085
+
5086
+ window.dispatchEvent(new CustomEvent('has-dummy-flag', {
5087
+ detail: {
5088
+ package: '@lwc/synthetic-shadow',
5089
+ hasFlag
5090
+ }
5091
+ }));
5092
+ });
5093
+ }
5094
+ /** version: 2.13.4 */
@@ -46,7 +46,7 @@
46
46
  */
47
47
  const { assign, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isFrozen, keys, seal, setPrototypeOf, } = Object;
48
48
  const { isArray } = Array;
49
- const { filter: ArrayFilter, find: ArrayFind, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, push: ArrayPush, reduce: ArrayReduce, reverse: ArrayReverse, slice: ArraySlice, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
49
+ const { copyWithin: ArrayCopyWithin, fill: ArrayFill, filter: ArrayFilter, find: ArrayFind, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, pop: ArrayPop, push: ArrayPush, reduce: ArrayReduce, reverse: ArrayReverse, shift: ArrayShift, slice: ArraySlice, sort: ArraySort, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
50
50
  const { charCodeAt: StringCharCodeAt, replace: StringReplace, slice: StringSlice, toLowerCase: StringToLowerCase, } = String.prototype;
51
51
  function isUndefined(obj) {
52
52
  return obj === undefined;
@@ -149,7 +149,7 @@
149
149
  // We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
150
150
  // we can't use typeof since it will fail when transpiling.
151
151
  const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
152
- /** version: 2.13.3 */
152
+ /** version: 2.13.4 */
153
153
 
154
154
  /*
155
155
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1125,7 +1125,7 @@
1125
1125
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1126
1126
  }
1127
1127
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1128
- /** version: 2.13.3 */
1128
+ /** version: 2.13.4 */
1129
1129
 
1130
1130
  /*
1131
1131
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5069,6 +5069,31 @@
5069
5069
  },
5070
5070
  configurable: true,
5071
5071
  });
5072
- /** version: 2.13.3 */
5072
+
5073
+ /*
5074
+ * Copyright (c) 2018, salesforce.com, inc.
5075
+ * All rights reserved.
5076
+ * SPDX-License-Identifier: MIT
5077
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
5078
+ */
5079
+ // @ts-ignore
5080
+
5081
+ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
5082
+ window.addEventListener('test-dummy-flag', () => {
5083
+ let hasFlag = false;
5084
+
5085
+ if (runtimeFlags.DUMMY_TEST_FLAG) {
5086
+ hasFlag = true;
5087
+ }
5088
+
5089
+ window.dispatchEvent(new CustomEvent('has-dummy-flag', {
5090
+ detail: {
5091
+ package: '@lwc/synthetic-shadow',
5092
+ hasFlag
5093
+ }
5094
+ }));
5095
+ });
5096
+ }
5097
+ /** version: 2.13.4 */
5073
5098
 
5074
5099
  })();