lwc 2.7.1 → 2.7.2

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 (41) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +578 -379
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +578 -379
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -9
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +552 -359
  5. package/dist/engine-dom/iife/es5/engine-dom.js +630 -330
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -9
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +598 -310
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +578 -379
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -9
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +552 -359
  11. package/dist/engine-dom/umd/es5/engine-dom.js +630 -330
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -9
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +598 -310
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +647 -449
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -9
  16. package/dist/engine-server/esm/es2017/engine-server.js +647 -449
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +41 -6
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +41 -6
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +41 -6
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +41 -6
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +41 -6
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +41 -6
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +41 -6
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +41 -6
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +41 -6
  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_debug.js +2 -2
  33. package/dist/wire-service/iife/es5/wire-service.js +3 -3
  34. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  35. package/dist/wire-service/iife/es5/wire-service_debug.js +3 -3
  36. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  37. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service.js +3 -3
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +3 -3
  41. package/package.json +8 -8
@@ -339,7 +339,7 @@ function htmlPropertyToAttribute(propName) {
339
339
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
340
340
  return attributeName;
341
341
  }
342
- /** version: 2.7.1 */
342
+ /** version: 2.7.2 */
343
343
 
344
344
  /*
345
345
  * Copyright (c) 2020, salesforce.com, inc.
@@ -461,7 +461,7 @@ function setFeatureFlagForTest(name, value) {
461
461
  setFeatureFlag(name, value);
462
462
  }
463
463
  }
464
- /** version: 2.7.1 */
464
+ /** version: 2.7.2 */
465
465
 
466
466
  /* proxy-compat-disable */
467
467
 
@@ -535,6 +535,249 @@ function parseStyleText(cssText) {
535
535
  }
536
536
 
537
537
  return styleMap;
538
+ } //
539
+ // Primitives
540
+ //
541
+
542
+
543
+ let ssr$1;
544
+
545
+ function setSsr(ssrImpl) {
546
+ ssr$1 = ssrImpl;
547
+ }
548
+
549
+ let isNativeShadowDefined$1;
550
+
551
+ function setIsNativeShadowDefined(isNativeShadowDefinedImpl) {
552
+ isNativeShadowDefined$1 = isNativeShadowDefinedImpl;
553
+ }
554
+
555
+ let isSyntheticShadowDefined$1;
556
+
557
+ function setIsSyntheticShadowDefined(isSyntheticShadowDefinedImpl) {
558
+ isSyntheticShadowDefined$1 = isSyntheticShadowDefinedImpl;
559
+ }
560
+
561
+ let HTMLElementExported$1;
562
+
563
+ function setHTMLElement(HTMLElementImpl) {
564
+ HTMLElementExported$1 = HTMLElementImpl;
565
+ }
566
+
567
+ let isHydrating$1;
568
+
569
+ function setIsHydrating(isHydratingImpl) {
570
+ isHydrating$1 = isHydratingImpl;
571
+ }
572
+
573
+ let insert$1;
574
+
575
+ function setInsert(insertImpl) {
576
+ insert$1 = insertImpl;
577
+ }
578
+
579
+ let remove$1;
580
+
581
+ function setRemove(removeImpl) {
582
+ remove$1 = removeImpl;
583
+ }
584
+
585
+ let createElement$1;
586
+
587
+ function setCreateElement(createElementImpl) {
588
+ createElement$1 = createElementImpl;
589
+ }
590
+
591
+ let createText$1;
592
+
593
+ function setCreateText(createTextImpl) {
594
+ createText$1 = createTextImpl;
595
+ }
596
+
597
+ let createComment$1;
598
+
599
+ function setCreateComment(createCommentImpl) {
600
+ createComment$1 = createCommentImpl;
601
+ }
602
+
603
+ let nextSibling$1;
604
+
605
+ function setNextSibling(nextSiblingImpl) {
606
+ nextSibling$1 = nextSiblingImpl;
607
+ }
608
+
609
+ let attachShadow$1;
610
+
611
+ function setAttachShadow(attachShadowImpl) {
612
+ attachShadow$1 = attachShadowImpl;
613
+ }
614
+
615
+ let getProperty$1;
616
+
617
+ function setGetProperty(getPropertyImpl) {
618
+ getProperty$1 = getPropertyImpl;
619
+ }
620
+
621
+ let setProperty$1;
622
+
623
+ function setSetProperty(setPropertyImpl) {
624
+ setProperty$1 = setPropertyImpl;
625
+ }
626
+
627
+ let setText$1;
628
+
629
+ function setSetText(setTextImpl) {
630
+ setText$1 = setTextImpl;
631
+ }
632
+
633
+ let getAttribute$1;
634
+
635
+ function setGetAttribute(getAttributeImpl) {
636
+ getAttribute$1 = getAttributeImpl;
637
+ }
638
+
639
+ let setAttribute$1;
640
+
641
+ function setSetAttribute(setAttributeImpl) {
642
+ setAttribute$1 = setAttributeImpl;
643
+ }
644
+
645
+ let removeAttribute$1;
646
+
647
+ function setRemoveAttribute(removeAttributeImpl) {
648
+ removeAttribute$1 = removeAttributeImpl;
649
+ }
650
+
651
+ let addEventListener$1;
652
+
653
+ function setAddEventListener(addEventListenerImpl) {
654
+ addEventListener$1 = addEventListenerImpl;
655
+ }
656
+
657
+ let removeEventListener$1;
658
+
659
+ function setRemoveEventListener(removeEventListenerImpl) {
660
+ removeEventListener$1 = removeEventListenerImpl;
661
+ }
662
+
663
+ let dispatchEvent$1;
664
+
665
+ function setDispatchEvent(dispatchEventImpl) {
666
+ dispatchEvent$1 = dispatchEventImpl;
667
+ }
668
+
669
+ let getClassList$1;
670
+
671
+ function setGetClassList(getClassListImpl) {
672
+ getClassList$1 = getClassListImpl;
673
+ }
674
+
675
+ let setCSSStyleProperty$1;
676
+
677
+ function setSetCSSStyleProperty(setCSSStylePropertyImpl) {
678
+ setCSSStyleProperty$1 = setCSSStylePropertyImpl;
679
+ }
680
+
681
+ let getBoundingClientRect$1;
682
+
683
+ function setGetBoundingClientRect(getBoundingClientRectImpl) {
684
+ getBoundingClientRect$1 = getBoundingClientRectImpl;
685
+ }
686
+
687
+ let querySelector$1;
688
+
689
+ function setQuerySelector(querySelectorImpl) {
690
+ querySelector$1 = querySelectorImpl;
691
+ }
692
+
693
+ let querySelectorAll$1;
694
+
695
+ function setQuerySelectorAll(querySelectorAllImpl) {
696
+ querySelectorAll$1 = querySelectorAllImpl;
697
+ }
698
+
699
+ let getElementsByTagName$1;
700
+
701
+ function setGetElementsByTagName(getElementsByTagNameImpl) {
702
+ getElementsByTagName$1 = getElementsByTagNameImpl;
703
+ }
704
+
705
+ let getElementsByClassName$1;
706
+
707
+ function setGetElementsByClassName(getElementsByClassNameImpl) {
708
+ getElementsByClassName$1 = getElementsByClassNameImpl;
709
+ }
710
+
711
+ let getChildren$1;
712
+
713
+ function setGetChildren(getChildrenImpl) {
714
+ getChildren$1 = getChildrenImpl;
715
+ }
716
+
717
+ let getChildNodes$1;
718
+
719
+ function setGetChildNodes(getChildNodesImpl) {
720
+ getChildNodes$1 = getChildNodesImpl;
721
+ }
722
+
723
+ let getFirstChild$1;
724
+
725
+ function setGetFirstChild(getFirstChildImpl) {
726
+ getFirstChild$1 = getFirstChildImpl;
727
+ }
728
+
729
+ let getFirstElementChild$1;
730
+
731
+ function setGetFirstElementChild(getFirstElementChildImpl) {
732
+ getFirstElementChild$1 = getFirstElementChildImpl;
733
+ }
734
+
735
+ let getLastChild$1;
736
+
737
+ function setGetLastChild(getLastChildImpl) {
738
+ getLastChild$1 = getLastChildImpl;
739
+ }
740
+
741
+ let getLastElementChild$1;
742
+
743
+ function setGetLastElementChild(getLastElementChildImpl) {
744
+ getLastElementChild$1 = getLastElementChildImpl;
745
+ }
746
+
747
+ let isConnected$1;
748
+
749
+ function setIsConnected(isConnectedImpl) {
750
+ isConnected$1 = isConnectedImpl;
751
+ }
752
+
753
+ let insertGlobalStylesheet$1;
754
+
755
+ function setInsertGlobalStylesheet(insertGlobalStylesheetImpl) {
756
+ insertGlobalStylesheet$1 = insertGlobalStylesheetImpl;
757
+ }
758
+
759
+ let insertStylesheet$1;
760
+
761
+ function setInsertStylesheet(insertStylesheetImpl) {
762
+ insertStylesheet$1 = insertStylesheetImpl;
763
+ }
764
+
765
+ let assertInstanceOfHTMLElement$1;
766
+
767
+ function setAssertInstanceOfHTMLElement(assertInstanceOfHTMLElementImpl) {
768
+ assertInstanceOfHTMLElement$1 = assertInstanceOfHTMLElementImpl;
769
+ }
770
+
771
+ let defineCustomElement$1;
772
+
773
+ function setDefineCustomElement(defineCustomElementImpl) {
774
+ defineCustomElement$1 = defineCustomElementImpl;
775
+ }
776
+
777
+ let getCustomElement$1;
778
+
779
+ function setGetCustomElement(getCustomElementImpl) {
780
+ getCustomElement$1 = getCustomElementImpl;
538
781
  }
539
782
  /*
540
783
  * Copyright (c) 2019, salesforce.com, inc.
@@ -788,9 +1031,6 @@ function createAllEventListeners(vnode) {
788
1031
  elm,
789
1032
  data: {
790
1033
  on
791
- },
792
- owner: {
793
- renderer
794
1034
  }
795
1035
  } = vnode;
796
1036
 
@@ -803,7 +1043,7 @@ function createAllEventListeners(vnode) {
803
1043
  let name;
804
1044
 
805
1045
  for (name in on) {
806
- renderer.addEventListener(elm, name, listener);
1046
+ addEventListener$1(elm, name, listener);
807
1047
  }
808
1048
  }
809
1049
 
@@ -945,9 +1185,6 @@ function updateAttrs(oldVnode, vnode) {
945
1185
  const {
946
1186
  data: {
947
1187
  attrs
948
- },
949
- owner: {
950
- renderer
951
1188
  }
952
1189
  } = vnode;
953
1190
 
@@ -970,10 +1207,6 @@ function updateAttrs(oldVnode, vnode) {
970
1207
  }
971
1208
 
972
1209
  const elm = vnode.elm;
973
- const {
974
- setAttribute,
975
- removeAttribute
976
- } = renderer;
977
1210
  let key;
978
1211
  oldAttrs = isUndefined$1(oldAttrs) ? EmptyObject : oldAttrs; // update modified attributes, add new attributes
979
1212
  // this routine is only useful for data-* attributes in all kind of elements
@@ -988,14 +1221,14 @@ function updateAttrs(oldVnode, vnode) {
988
1221
 
989
1222
  if (StringCharCodeAt.call(key, 3) === ColonCharCode) {
990
1223
  // Assume xml namespace
991
- setAttribute(elm, key, cur, xmlNS);
1224
+ setAttribute$1(elm, key, cur, xmlNS);
992
1225
  } else if (StringCharCodeAt.call(key, 5) === ColonCharCode) {
993
1226
  // Assume xlink namespace
994
- setAttribute(elm, key, cur, xlinkNS);
995
- } else if (isNull(cur)) {
996
- removeAttribute(elm, key);
1227
+ setAttribute$1(elm, key, cur, xlinkNS);
1228
+ } else if (isNull(cur) || isUndefined$1(cur)) {
1229
+ removeAttribute$1(elm, key);
997
1230
  } else {
998
- setAttribute(elm, key, cur);
1231
+ setAttribute$1(elm, key, cur);
999
1232
  }
1000
1233
 
1001
1234
  lockAttribute();
@@ -1043,17 +1276,14 @@ function update(oldVnode, vnode) {
1043
1276
  const isFirstPatch = isUndefined$1(oldProps);
1044
1277
  const {
1045
1278
  elm,
1046
- sel,
1047
- owner: {
1048
- renderer
1049
- }
1279
+ sel
1050
1280
  } = vnode;
1051
1281
 
1052
1282
  for (const key in props) {
1053
1283
  const cur = props[key]; // if it is the first time this element is patched, or the current value is different to the previous value...
1054
1284
 
1055
- if (isFirstPatch || cur !== (isLiveBindingProp(sel, key) ? renderer.getProperty(elm, key) : oldProps[key])) {
1056
- renderer.setProperty(elm, key, cur);
1285
+ if (isFirstPatch || cur !== (isLiveBindingProp(sel, key) ? getProperty$1(elm, key) : oldProps[key])) {
1286
+ setProperty$1(elm, key, cur);
1057
1287
  }
1058
1288
  }
1059
1289
  }
@@ -1122,9 +1352,6 @@ function updateClassAttribute(oldVnode, vnode) {
1122
1352
  elm,
1123
1353
  data: {
1124
1354
  className: newClass
1125
- },
1126
- owner: {
1127
- renderer
1128
1355
  }
1129
1356
  } = vnode;
1130
1357
  const {
@@ -1137,7 +1364,7 @@ function updateClassAttribute(oldVnode, vnode) {
1137
1364
  return;
1138
1365
  }
1139
1366
 
1140
- const classList = renderer.getClassList(elm);
1367
+ const classList = getClassList$1(elm);
1141
1368
  const newClassMap = getMapFromClassName(newClass);
1142
1369
  const oldClassMap = getMapFromClassName(oldClass);
1143
1370
  let name;
@@ -1175,24 +1402,17 @@ function updateStyleAttribute(oldVnode, vnode) {
1175
1402
  elm,
1176
1403
  data: {
1177
1404
  style: newStyle
1178
- },
1179
- owner: {
1180
- renderer
1181
1405
  }
1182
1406
  } = vnode;
1183
- const {
1184
- setAttribute,
1185
- removeAttribute
1186
- } = renderer;
1187
1407
 
1188
1408
  if (oldVnode.data.style === newStyle) {
1189
1409
  return;
1190
1410
  }
1191
1411
 
1192
1412
  if (!isString(newStyle) || newStyle === '') {
1193
- removeAttribute(elm, 'style');
1413
+ removeAttribute$1(elm, 'style');
1194
1414
  } else {
1195
- setAttribute(elm, 'style', newStyle);
1415
+ setAttribute$1(elm, 'style', newStyle);
1196
1416
  }
1197
1417
  }
1198
1418
 
@@ -1217,9 +1437,6 @@ function createClassAttribute(vnode) {
1217
1437
  elm,
1218
1438
  data: {
1219
1439
  classMap
1220
- },
1221
- owner: {
1222
- renderer
1223
1440
  }
1224
1441
  } = vnode;
1225
1442
 
@@ -1227,7 +1444,7 @@ function createClassAttribute(vnode) {
1227
1444
  return;
1228
1445
  }
1229
1446
 
1230
- const classList = renderer.getClassList(elm);
1447
+ const classList = getClassList$1(elm);
1231
1448
 
1232
1449
  for (const name in classMap) {
1233
1450
  classList.add(name);
@@ -1251,9 +1468,6 @@ function createStyleAttribute(vnode) {
1251
1468
  elm,
1252
1469
  data: {
1253
1470
  styleDecls
1254
- },
1255
- owner: {
1256
- renderer
1257
1471
  }
1258
1472
  } = vnode;
1259
1473
 
@@ -1263,7 +1477,7 @@ function createStyleAttribute(vnode) {
1263
1477
 
1264
1478
  for (let i = 0; i < styleDecls.length; i++) {
1265
1479
  const [prop, value, important] = styleDecls[i];
1266
- renderer.setCSSStyleProperty(elm, prop, value, important);
1480
+ setCSSStyleProperty$1(elm, prop, value, important);
1267
1481
  }
1268
1482
  }
1269
1483
 
@@ -1277,15 +1491,6 @@ var modStaticStyle = {
1277
1491
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1278
1492
  */
1279
1493
 
1280
- /**
1281
- @license
1282
- Copyright (c) 2015 Simon Friis Vindum.
1283
- This code may only be used under the MIT License found at
1284
- https://github.com/snabbdom/snabbdom/blob/master/LICENSE
1285
- Code distributed by Snabbdom as part of the Snabbdom project at
1286
- https://github.com/snabbdom/snabbdom/
1287
- */
1288
-
1289
1494
  function isUndef(s) {
1290
1495
  return s === undefined;
1291
1496
  }
@@ -1373,7 +1578,7 @@ function updateDynamicChildren(parentElm, oldCh, newCh) {
1373
1578
  } else if (sameVnode(oldStartVnode, newEndVnode)) {
1374
1579
  // Vnode moved right
1375
1580
  patchVnode(oldStartVnode, newEndVnode);
1376
- newEndVnode.hook.move(oldStartVnode, parentElm, oldEndVnode.owner.renderer.nextSibling(oldEndVnode.elm));
1581
+ newEndVnode.hook.move(oldStartVnode, parentElm, nextSibling$1(oldEndVnode.elm));
1377
1582
  oldStartVnode = oldCh[++oldStartIdx];
1378
1583
  newEndVnode = newCh[--newEndIdx];
1379
1584
  } else if (sameVnode(oldEndVnode, newStartVnode)) {
@@ -1855,7 +2060,7 @@ function patchLightningElementPrototypeWithRestrictions(proto) {
1855
2060
  defineProperties(proto, getLightningElementPrototypeRestrictionsDescriptors(proto));
1856
2061
  }
1857
2062
  /*
1858
- * Copyright (c) 2020, salesforce.com, inc.
2063
+ * Copyright (c) 2018, salesforce.com, inc.
1859
2064
  * All rights reserved.
1860
2065
  * SPDX-License-Identifier: MIT
1861
2066
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -2775,9 +2980,7 @@ function createBridgeToElementDescriptor(propName, descriptor) {
2775
2980
 
2776
2981
 
2777
2982
  const LightningElement = function () {
2778
- var _a; // This should be as performant as possible, while any initialization should be done lazily
2779
-
2780
-
2983
+ // This should be as performant as possible, while any initialization should be done lazily
2781
2984
  if (isNull(vmBeingConstructed)) {
2782
2985
  throw new ReferenceError('Illegal constructor');
2783
2986
  }
@@ -2785,15 +2988,14 @@ const LightningElement = function () {
2785
2988
  const vm = vmBeingConstructed;
2786
2989
  const {
2787
2990
  def,
2788
- elm,
2789
- renderer
2991
+ elm
2790
2992
  } = vm;
2791
2993
  const {
2792
2994
  bridge
2793
2995
  } = def;
2794
2996
 
2795
2997
  if (process.env.NODE_ENV !== 'production') {
2796
- (_a = renderer.assertInstanceOfHTMLElement) === null || _a === void 0 ? void 0 : _a.call(renderer, vm.elm, `Component creation requires a DOM element to be associated to ${vm}.`);
2998
+ assertInstanceOfHTMLElement$1(vm.elm, `Component creation requires a DOM element to be associated to ${vm}.`);
2797
2999
  }
2798
3000
 
2799
3001
  const component = this;
@@ -2823,7 +3025,7 @@ const LightningElement = function () {
2823
3025
  if (vm.renderMode === 1
2824
3026
  /* Shadow */
2825
3027
  ) {
2826
- attachShadow(vm);
3028
+ doAttachShadow(vm);
2827
3029
  } // Adding extra guard rails in DEV mode.
2828
3030
 
2829
3031
 
@@ -2835,17 +3037,16 @@ const LightningElement = function () {
2835
3037
  return this;
2836
3038
  };
2837
3039
 
2838
- function attachShadow(vm) {
3040
+ function doAttachShadow(vm) {
2839
3041
  const {
2840
3042
  elm,
2841
3043
  mode,
2842
- renderer,
2843
3044
  shadowMode,
2844
3045
  def: {
2845
3046
  ctor
2846
3047
  }
2847
3048
  } = vm;
2848
- const cmpRoot = renderer.attachShadow(elm, {
3049
+ const cmpRoot = attachShadow$1(elm, {
2849
3050
  [KEY__SYNTHETIC_MODE]: shadowMode === 1
2850
3051
  /* Synthetic */
2851
3052
  ,
@@ -2872,21 +3073,15 @@ LightningElement.prototype = {
2872
3073
 
2873
3074
  dispatchEvent(event) {
2874
3075
  const {
2875
- elm,
2876
- renderer: {
2877
- dispatchEvent
2878
- }
3076
+ elm
2879
3077
  } = getAssociatedVM(this);
2880
- return dispatchEvent(elm, event);
3078
+ return dispatchEvent$1(elm, event);
2881
3079
  },
2882
3080
 
2883
3081
  addEventListener(type, listener, options) {
2884
3082
  const vm = getAssociatedVM(this);
2885
3083
  const {
2886
- elm,
2887
- renderer: {
2888
- addEventListener
2889
- }
3084
+ elm
2890
3085
  } = vm;
2891
3086
 
2892
3087
  if (process.env.NODE_ENV !== 'production') {
@@ -2897,92 +3092,68 @@ LightningElement.prototype = {
2897
3092
  }
2898
3093
 
2899
3094
  const wrappedListener = getWrappedComponentsListener(vm, listener);
2900
- addEventListener(elm, type, wrappedListener, options);
3095
+ addEventListener$1(elm, type, wrappedListener, options);
2901
3096
  },
2902
3097
 
2903
3098
  removeEventListener(type, listener, options) {
2904
3099
  const vm = getAssociatedVM(this);
2905
3100
  const {
2906
- elm,
2907
- renderer: {
2908
- removeEventListener
2909
- }
3101
+ elm
2910
3102
  } = vm;
2911
3103
  const wrappedListener = getWrappedComponentsListener(vm, listener);
2912
- removeEventListener(elm, type, wrappedListener, options);
3104
+ removeEventListener$1(elm, type, wrappedListener, options);
2913
3105
  },
2914
3106
 
2915
3107
  hasAttribute(name) {
2916
3108
  const {
2917
- elm,
2918
- renderer: {
2919
- getAttribute
2920
- }
3109
+ elm
2921
3110
  } = getAssociatedVM(this);
2922
- return !isNull(getAttribute(elm, name));
3111
+ return !isNull(getAttribute$1(elm, name));
2923
3112
  },
2924
3113
 
2925
3114
  hasAttributeNS(namespace, name) {
2926
3115
  const {
2927
- elm,
2928
- renderer: {
2929
- getAttribute
2930
- }
3116
+ elm
2931
3117
  } = getAssociatedVM(this);
2932
- return !isNull(getAttribute(elm, name, namespace));
3118
+ return !isNull(getAttribute$1(elm, name, namespace));
2933
3119
  },
2934
3120
 
2935
3121
  removeAttribute(name) {
2936
3122
  const {
2937
- elm,
2938
- renderer: {
2939
- removeAttribute
2940
- }
3123
+ elm
2941
3124
  } = getAssociatedVM(this);
2942
3125
  unlockAttribute(elm, name);
2943
- removeAttribute(elm, name);
3126
+ removeAttribute$1(elm, name);
2944
3127
  lockAttribute();
2945
3128
  },
2946
3129
 
2947
3130
  removeAttributeNS(namespace, name) {
2948
3131
  const {
2949
- elm,
2950
- renderer: {
2951
- removeAttribute
2952
- }
3132
+ elm
2953
3133
  } = getAssociatedVM(this);
2954
3134
  unlockAttribute(elm, name);
2955
- removeAttribute(elm, name, namespace);
3135
+ removeAttribute$1(elm, name, namespace);
2956
3136
  lockAttribute();
2957
3137
  },
2958
3138
 
2959
3139
  getAttribute(name) {
2960
3140
  const {
2961
- elm,
2962
- renderer: {
2963
- getAttribute
2964
- }
3141
+ elm
2965
3142
  } = getAssociatedVM(this);
2966
- return getAttribute(elm, name);
3143
+ return getAttribute$1(elm, name);
2967
3144
  },
2968
3145
 
2969
3146
  getAttributeNS(namespace, name) {
2970
3147
  const {
2971
- elm,
2972
- renderer: {
2973
- getAttribute
2974
- }
3148
+ elm
2975
3149
  } = getAssociatedVM(this);
2976
- return getAttribute(elm, name, namespace);
3150
+ return getAttribute$1(elm, name, namespace);
2977
3151
  },
2978
3152
 
2979
3153
  setAttribute(name, value) {
2980
3154
  const vm = getAssociatedVM(this);
2981
3155
  const {
2982
- elm,
2983
- renderer: {
2984
- setAttribute
2985
- }
3156
+ elm
2986
3157
  } = vm;
2987
3158
 
2988
3159
  if (process.env.NODE_ENV !== 'production') {
@@ -2990,17 +3161,14 @@ LightningElement.prototype = {
2990
3161
  }
2991
3162
 
2992
3163
  unlockAttribute(elm, name);
2993
- setAttribute(elm, name, value);
3164
+ setAttribute$1(elm, name, value);
2994
3165
  lockAttribute();
2995
3166
  },
2996
3167
 
2997
3168
  setAttributeNS(namespace, name, value) {
2998
3169
  const vm = getAssociatedVM(this);
2999
3170
  const {
3000
- elm,
3001
- renderer: {
3002
- setAttribute
3003
- }
3171
+ elm
3004
3172
  } = vm;
3005
3173
 
3006
3174
  if (process.env.NODE_ENV !== 'production') {
@@ -3008,43 +3176,34 @@ LightningElement.prototype = {
3008
3176
  }
3009
3177
 
3010
3178
  unlockAttribute(elm, name);
3011
- setAttribute(elm, name, value, namespace);
3179
+ setAttribute$1(elm, name, value, namespace);
3012
3180
  lockAttribute();
3013
3181
  },
3014
3182
 
3015
3183
  getBoundingClientRect() {
3016
3184
  const vm = getAssociatedVM(this);
3017
3185
  const {
3018
- elm,
3019
- renderer: {
3020
- getBoundingClientRect
3021
- }
3186
+ elm
3022
3187
  } = vm;
3023
3188
 
3024
3189
  if (process.env.NODE_ENV !== 'production') {
3025
3190
  warnIfInvokedDuringConstruction(vm, 'getBoundingClientRect()');
3026
3191
  }
3027
3192
 
3028
- return getBoundingClientRect(elm);
3193
+ return getBoundingClientRect$1(elm);
3029
3194
  },
3030
3195
 
3031
3196
  get isConnected() {
3032
3197
  const {
3033
- elm,
3034
- renderer: {
3035
- isConnected
3036
- }
3198
+ elm
3037
3199
  } = getAssociatedVM(this);
3038
- return isConnected(elm);
3200
+ return isConnected$1(elm);
3039
3201
  },
3040
3202
 
3041
3203
  get classList() {
3042
3204
  const vm = getAssociatedVM(this);
3043
3205
  const {
3044
- elm,
3045
- renderer: {
3046
- getClassList
3047
- }
3206
+ elm
3048
3207
  } = vm;
3049
3208
 
3050
3209
  if (process.env.NODE_ENV !== 'production') {
@@ -3053,7 +3212,7 @@ LightningElement.prototype = {
3053
3212
  assert.isFalse(isBeingConstructed(vm), `Failed to construct ${vm}: The result must not have attributes. Adding or tampering with classname in constructor is not allowed in a web component, use connectedCallback() instead.`);
3054
3213
  }
3055
3214
 
3056
- return getClassList(elm);
3215
+ return getClassList$1(elm);
3057
3216
  },
3058
3217
 
3059
3218
  get template() {
@@ -3087,23 +3246,48 @@ LightningElement.prototype = {
3087
3246
  }
3088
3247
 
3089
3248
  };
3090
- const queryAndChildGetterDescriptors = create(null);
3091
- const childGetters = [['children', 'getChildren'], ['childNodes', 'getChildNodes'], ['firstChild', 'getFirstChild'], ['firstElementChild', 'getFirstElementChild'], ['lastChild', 'getLastChild'], ['lastElementChild', 'getLastElementChild']]; // Generic passthrough for child getters on HTMLElement to the relevant Renderer APIs
3249
+ const queryAndChildGetterDescriptors = create(null); // The reason we don't just call `import * as renderer from '../renderer'` here is that the bundle size
3250
+ // is smaller if we reference each function individually. Otherwise Rollup will create one big frozen
3251
+ // object representing the renderer, with a lot of methods we don't actually need.
3252
+
3253
+ const childGetters = ['children', 'childNodes', 'firstChild', 'firstElementChild', 'lastChild', 'lastElementChild'];
3254
+
3255
+ function getChildGetter(methodName) {
3256
+ switch (methodName) {
3257
+ case 'children':
3258
+ return getChildren$1;
3259
+
3260
+ case 'childNodes':
3261
+ return getChildNodes$1;
3262
+
3263
+ case 'firstChild':
3264
+ return getFirstChild$1;
3265
+
3266
+ case 'firstElementChild':
3267
+ return getFirstElementChild$1;
3268
+
3269
+ case 'lastChild':
3270
+ return getLastChild$1;
3271
+
3272
+ case 'lastElementChild':
3273
+ return getLastElementChild$1;
3274
+ }
3275
+ } // Generic passthrough for child getters on HTMLElement to the relevant Renderer APIs
3276
+
3092
3277
 
3093
- for (const [elementProp, rendererMethod] of childGetters) {
3094
- queryAndChildGetterDescriptors[elementProp] = {
3278
+ for (const childGetter of childGetters) {
3279
+ queryAndChildGetterDescriptors[childGetter] = {
3095
3280
  get() {
3096
3281
  const vm = getAssociatedVM(this);
3097
3282
  const {
3098
- elm,
3099
- renderer
3283
+ elm
3100
3284
  } = vm;
3101
3285
 
3102
3286
  if (process.env.NODE_ENV !== 'production') {
3103
- warnIfInvokedDuringConstruction(vm, elementProp);
3287
+ warnIfInvokedDuringConstruction(vm, childGetter);
3104
3288
  }
3105
3289
 
3106
- return renderer[rendererMethod](elm);
3290
+ return getChildGetter(childGetter)(elm);
3107
3291
  },
3108
3292
 
3109
3293
  configurable: true,
@@ -3111,22 +3295,38 @@ for (const [elementProp, rendererMethod] of childGetters) {
3111
3295
  };
3112
3296
  }
3113
3297
 
3114
- const queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll']; // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
3298
+ const queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll'];
3299
+
3300
+ function getQueryMethod(methodName) {
3301
+ switch (methodName) {
3302
+ case 'getElementsByClassName':
3303
+ return getElementsByClassName$1;
3304
+
3305
+ case 'getElementsByTagName':
3306
+ return getElementsByTagName$1;
3307
+
3308
+ case 'querySelector':
3309
+ return querySelector$1;
3310
+
3311
+ case 'querySelectorAll':
3312
+ return querySelectorAll$1;
3313
+ }
3314
+ } // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
3315
+
3115
3316
 
3116
3317
  for (const queryMethod of queryMethods) {
3117
3318
  queryAndChildGetterDescriptors[queryMethod] = {
3118
3319
  value(arg) {
3119
3320
  const vm = getAssociatedVM(this);
3120
3321
  const {
3121
- elm,
3122
- renderer
3322
+ elm
3123
3323
  } = vm;
3124
3324
 
3125
3325
  if (process.env.NODE_ENV !== 'production') {
3126
3326
  warnIfInvokedDuringConstruction(vm, `${queryMethod}()`);
3127
3327
  }
3128
3328
 
3129
- return renderer[queryMethod](elm, arg);
3329
+ return getQueryMethod(queryMethod)(elm, arg);
3130
3330
  },
3131
3331
 
3132
3332
  configurable: true,
@@ -4405,17 +4605,14 @@ function setScopeTokenClassIfNecessary(elm, owner) {
4405
4605
  const token = cmpTemplate === null || cmpTemplate === void 0 ? void 0 : cmpTemplate.stylesheetToken;
4406
4606
 
4407
4607
  if (!isUndefined$1(token) && context.hasScopedStyles) {
4408
- owner.renderer.getClassList(elm).add(token);
4608
+ getClassList$1(elm).add(token);
4409
4609
  }
4410
4610
  }
4411
4611
 
4412
4612
  function updateNodeHook(oldVnode, vnode) {
4413
4613
  const {
4414
4614
  elm,
4415
- text,
4416
- owner: {
4417
- renderer
4418
- }
4615
+ text
4419
4616
  } = vnode;
4420
4617
 
4421
4618
  if (oldVnode.text !== text) {
@@ -4423,7 +4620,7 @@ function updateNodeHook(oldVnode, vnode) {
4423
4620
  unlockDomMutation();
4424
4621
  }
4425
4622
 
4426
- renderer.setText(elm, text);
4623
+ setText$1(elm, text);
4427
4624
 
4428
4625
  if (process.env.NODE_ENV !== 'production') {
4429
4626
  lockDomMutation();
@@ -4432,15 +4629,11 @@ function updateNodeHook(oldVnode, vnode) {
4432
4629
  }
4433
4630
 
4434
4631
  function insertNodeHook(vnode, parentNode, referenceNode) {
4435
- const {
4436
- renderer
4437
- } = vnode.owner;
4438
-
4439
4632
  if (process.env.NODE_ENV !== 'production') {
4440
4633
  unlockDomMutation();
4441
4634
  }
4442
4635
 
4443
- renderer.insert(vnode.elm, parentNode, referenceNode);
4636
+ insert$1(vnode.elm, parentNode, referenceNode);
4444
4637
 
4445
4638
  if (process.env.NODE_ENV !== 'production') {
4446
4639
  lockDomMutation();
@@ -4448,15 +4641,11 @@ function insertNodeHook(vnode, parentNode, referenceNode) {
4448
4641
  }
4449
4642
 
4450
4643
  function removeNodeHook(vnode, parentNode) {
4451
- const {
4452
- renderer
4453
- } = vnode.owner;
4454
-
4455
4644
  if (process.env.NODE_ENV !== 'production') {
4456
4645
  unlockDomMutation();
4457
4646
  }
4458
4647
 
4459
- renderer.remove(vnode.elm, parentNode);
4648
+ remove$1(vnode.elm, parentNode);
4460
4649
 
4461
4650
  if (process.env.NODE_ENV !== 'production') {
4462
4651
  lockDomMutation();
@@ -4622,8 +4811,7 @@ function createViewModelHook(elm, vnode) {
4622
4811
  createVM(elm, def, {
4623
4812
  mode,
4624
4813
  owner,
4625
- tagName: sel,
4626
- renderer: owner.renderer
4814
+ tagName: sel
4627
4815
  });
4628
4816
 
4629
4817
  if (process.env.NODE_ENV !== 'production') {
@@ -4669,16 +4857,13 @@ function vnodesAndElementHaveCompatibleAttrs(vnode, elm) {
4669
4857
  const {
4670
4858
  data: {
4671
4859
  attrs = {}
4672
- },
4673
- owner: {
4674
- renderer
4675
4860
  }
4676
4861
  } = vnode;
4677
4862
  let nodesAreCompatible = true; // Validate attributes, though we could always recovery from those by running the update mods.
4678
4863
  // Note: intentionally ONLY matching vnodes.attrs to elm.attrs, in case SSR is adding extra attributes.
4679
4864
 
4680
4865
  for (const [attrName, attrValue] of Object.entries(attrs)) {
4681
- const elmAttrValue = renderer.getAttribute(elm, attrName);
4866
+ const elmAttrValue = getAttribute$1(elm, attrName);
4682
4867
 
4683
4868
  if (String(attrValue) !== elmAttrValue) {
4684
4869
  logError(`Mismatch hydrating element <${elm.tagName.toLowerCase()}>: attribute "${attrName}" has different values, expected "${attrValue}" but found "${elmAttrValue}"`, vnode.owner);
@@ -4694,9 +4879,6 @@ function vnodesAndElementHaveCompatibleClass(vnode, elm) {
4694
4879
  data: {
4695
4880
  className,
4696
4881
  classMap
4697
- },
4698
- owner: {
4699
- renderer
4700
4882
  }
4701
4883
  } = vnode;
4702
4884
  let nodesAreCompatible = true;
@@ -4708,7 +4890,7 @@ function vnodesAndElementHaveCompatibleClass(vnode, elm) {
4708
4890
  vnodeClassName = className;
4709
4891
  } else if (!isUndefined$1(classMap)) {
4710
4892
  // classMap is used when class is set to static value.
4711
- const classList = renderer.getClassList(elm);
4893
+ const classList = getClassList$1(elm);
4712
4894
  let computedClassName = ''; // all classes from the vnode should be in the element.classList
4713
4895
 
4714
4896
  for (const name in classMap) {
@@ -4738,12 +4920,9 @@ function vnodesAndElementHaveCompatibleStyle(vnode, elm) {
4738
4920
  data: {
4739
4921
  style,
4740
4922
  styleDecls
4741
- },
4742
- owner: {
4743
- renderer
4744
4923
  }
4745
4924
  } = vnode;
4746
- const elmStyle = renderer.getAttribute(elm, 'style') || '';
4925
+ const elmStyle = getAttribute$1(elm, 'style') || '';
4747
4926
  let vnodeStyle;
4748
4927
  let nodesAreCompatible = true;
4749
4928
 
@@ -4880,12 +5059,12 @@ function hasDynamicChildren(children) {
4880
5059
  */
4881
5060
 
4882
5061
 
4883
- function getUpgradableConstructor(tagName, renderer) {
5062
+ function getUpgradableConstructor(tagName) {
4884
5063
  // Should never get a tag with upper case letter at this point, the compiler should
4885
5064
  // produce only tags with lowercase letters
4886
5065
  // But, for backwards compatibility, we will lower case the tagName
4887
5066
  tagName = tagName.toLowerCase();
4888
- let CE = renderer.getCustomElement(tagName);
5067
+ let CE = getCustomElement$1(tagName);
4889
5068
 
4890
5069
  if (!isUndefined$1(CE)) {
4891
5070
  return CE;
@@ -4896,7 +5075,7 @@ function getUpgradableConstructor(tagName, renderer) {
4896
5075
  */
4897
5076
 
4898
5077
 
4899
- CE = class LWCUpgradableElement extends renderer.HTMLElement {
5078
+ CE = class LWCUpgradableElement extends HTMLElementExported$1 {
4900
5079
  constructor(upgradeCallback) {
4901
5080
  super();
4902
5081
 
@@ -4906,7 +5085,7 @@ function getUpgradableConstructor(tagName, renderer) {
4906
5085
  }
4907
5086
 
4908
5087
  };
4909
- renderer.defineCustomElement(tagName, CE);
5088
+ defineCustomElement$1(tagName, CE);
4910
5089
  return CE;
4911
5090
  }
4912
5091
  /*
@@ -4924,10 +5103,7 @@ const TextHook = {
4924
5103
  const {
4925
5104
  owner
4926
5105
  } = vnode;
4927
- const {
4928
- renderer
4929
- } = owner;
4930
- const elm = renderer.createText(vnode.text);
5106
+ const elm = createText$1(vnode.text);
4931
5107
  linkNodeToShadow(elm, owner);
4932
5108
  vnode.elm = elm;
4933
5109
  },
@@ -4961,10 +5137,7 @@ const CommentHook = {
4961
5137
  owner,
4962
5138
  text
4963
5139
  } = vnode;
4964
- const {
4965
- renderer
4966
- } = owner;
4967
- const elm = renderer.createComment(text);
5140
+ const elm = createComment$1(text);
4968
5141
  linkNodeToShadow(elm, owner);
4969
5142
  vnode.elm = elm;
4970
5143
  },
@@ -5006,11 +5179,8 @@ const ElementHook = {
5006
5179
  svg
5007
5180
  }
5008
5181
  } = vnode;
5009
- const {
5010
- renderer
5011
- } = owner;
5012
5182
  const namespace = isTrue(svg) ? SVG_NAMESPACE : undefined;
5013
- const elm = renderer.createElement(sel, namespace);
5183
+ const elm = createElement$1(sel, namespace);
5014
5184
  linkNodeToShadow(elm, owner);
5015
5185
  fallbackElmHook(elm, vnode);
5016
5186
  vnode.elm = elm;
@@ -5070,10 +5240,7 @@ const CustomElementHook = {
5070
5240
  sel,
5071
5241
  owner
5072
5242
  } = vnode;
5073
- const {
5074
- renderer
5075
- } = owner;
5076
- const UpgradableConstructor = getUpgradableConstructor(sel, renderer);
5243
+ const UpgradableConstructor = getUpgradableConstructor(sel);
5077
5244
  /**
5078
5245
  * Note: if the upgradable constructor does not expect, or throw when we new it
5079
5246
  * with a callback as the first argument, we could implement a more advanced
@@ -5166,8 +5333,7 @@ const CustomElementHook = {
5166
5333
  createVM(elm, def, {
5167
5334
  mode,
5168
5335
  owner,
5169
- tagName: sel,
5170
- renderer: owner.renderer
5336
+ tagName: sel
5171
5337
  });
5172
5338
  vnode.elm = elm;
5173
5339
  const vm = getAssociatedVM(elm);
@@ -5196,12 +5362,11 @@ const CustomElementHook = {
5196
5362
 
5197
5363
  function linkNodeToShadow(elm, owner) {
5198
5364
  const {
5199
- renderer,
5200
5365
  renderMode,
5201
5366
  shadowMode
5202
5367
  } = owner; // TODO [#1164]: this should eventually be done by the polyfill directly
5203
5368
 
5204
- if (renderer.isSyntheticShadowDefined) {
5369
+ if (isSyntheticShadowDefined$1) {
5205
5370
  if (shadowMode === 1
5206
5371
  /* Synthetic */
5207
5372
  || renderMode === 0
@@ -5733,7 +5898,6 @@ function updateStylesheetToken(vm, template) {
5733
5898
  const {
5734
5899
  elm,
5735
5900
  context,
5736
- renderer,
5737
5901
  renderMode,
5738
5902
  shadowMode
5739
5903
  } = vm;
@@ -5760,11 +5924,11 @@ function updateStylesheetToken(vm, template) {
5760
5924
  } = context;
5761
5925
 
5762
5926
  if (oldHasTokenInClass) {
5763
- renderer.getClassList(elm).remove(makeHostToken(oldToken));
5927
+ getClassList$1(elm).remove(makeHostToken(oldToken));
5764
5928
  }
5765
5929
 
5766
5930
  if (oldHasTokenInAttribute) {
5767
- renderer.removeAttribute(elm, makeHostToken(oldToken));
5931
+ removeAttribute$1(elm, makeHostToken(oldToken));
5768
5932
  } // Apply the new template styling token to the host element, if the new template has any
5769
5933
  // associated stylesheets. In the case of light DOM, also ensure there is at least one scoped stylesheet.
5770
5934
 
@@ -5776,12 +5940,12 @@ function updateStylesheetToken(vm, template) {
5776
5940
 
5777
5941
  if (!isUndefined$1(newToken)) {
5778
5942
  if (hasScopedStyles) {
5779
- renderer.getClassList(elm).add(makeHostToken(newToken));
5943
+ getClassList$1(elm).add(makeHostToken(newToken));
5780
5944
  newHasTokenInClass = true;
5781
5945
  }
5782
5946
 
5783
5947
  if (isSyntheticShadow) {
5784
- renderer.setAttribute(elm, makeHostToken(newToken), '');
5948
+ setAttribute$1(elm, makeHostToken(newToken), '');
5785
5949
  newHasTokenInAttribute = true;
5786
5950
  }
5787
5951
  } // Update the styling tokens present on the context object.
@@ -5902,7 +6066,6 @@ function getNearestNativeShadowComponent(vm) {
5902
6066
 
5903
6067
  function createStylesheet(vm, stylesheets) {
5904
6068
  const {
5905
- renderer,
5906
6069
  renderMode,
5907
6070
  shadowMode
5908
6071
  } = vm;
@@ -5913,9 +6076,9 @@ function createStylesheet(vm, stylesheets) {
5913
6076
  /* Synthetic */
5914
6077
  ) {
5915
6078
  for (let i = 0; i < stylesheets.length; i++) {
5916
- renderer.insertGlobalStylesheet(stylesheets[i]);
6079
+ insertGlobalStylesheet$1(stylesheets[i]);
5917
6080
  }
5918
- } else if (renderer.ssr || renderer.isHydrating()) {
6081
+ } else if (ssr$1 || isHydrating$1()) {
5919
6082
  // Note: We need to ensure that during hydration, the stylesheets method is the same as those in ssr.
5920
6083
  // This works in the client, because the stylesheets are created, and cached in the VM
5921
6084
  // the first time the VM renders.
@@ -5929,10 +6092,10 @@ function createStylesheet(vm, stylesheets) {
5929
6092
 
5930
6093
  for (let i = 0; i < stylesheets.length; i++) {
5931
6094
  if (isGlobal) {
5932
- renderer.insertGlobalStylesheet(stylesheets[i]);
6095
+ insertGlobalStylesheet$1(stylesheets[i]);
5933
6096
  } else {
5934
6097
  // local level
5935
- renderer.insertStylesheet(stylesheets[i], root.cmpRoot);
6098
+ insertStylesheet$1(stylesheets[i], root.cmpRoot);
5936
6099
  }
5937
6100
  }
5938
6101
  }
@@ -6566,7 +6729,6 @@ function createVM(elm, def, options) {
6566
6729
  const {
6567
6730
  mode,
6568
6731
  owner,
6569
- renderer,
6570
6732
  tagName
6571
6733
  } = options;
6572
6734
  const vm = {
@@ -6581,7 +6743,6 @@ function createVM(elm, def, options) {
6581
6743
  tagName,
6582
6744
  mode,
6583
6745
  owner,
6584
- renderer,
6585
6746
  children: EmptyArray,
6586
6747
  aChildren: EmptyArray,
6587
6748
  velements: EmptyArray,
@@ -6636,16 +6797,11 @@ function createVM(elm, def, options) {
6636
6797
 
6637
6798
  function computeShadowMode(vm) {
6638
6799
  const {
6639
- def,
6640
- renderer
6800
+ def
6641
6801
  } = vm;
6642
- const {
6643
- isNativeShadowDefined,
6644
- isSyntheticShadowDefined
6645
- } = renderer;
6646
6802
  let shadowMode;
6647
6803
 
6648
- if (isSyntheticShadowDefined) {
6804
+ if (isSyntheticShadowDefined$1) {
6649
6805
  if (def.renderMode === 0
6650
6806
  /* Light */
6651
6807
  ) {
@@ -6654,7 +6810,7 @@ function computeShadowMode(vm) {
6654
6810
  shadowMode = 0
6655
6811
  /* Native */
6656
6812
  ;
6657
- } else if (isNativeShadowDefined) {
6813
+ } else if (isNativeShadowDefined$1) {
6658
6814
  if (def.shadowSupportMode === "any"
6659
6815
  /* Any */
6660
6816
  ) {
@@ -6794,13 +6950,12 @@ function patchShadowRoot(vm, newCh) {
6794
6950
 
6795
6951
  function runRenderedCallback(vm) {
6796
6952
  const {
6797
- renderer,
6798
6953
  def: {
6799
6954
  renderedCallback
6800
6955
  }
6801
6956
  } = vm;
6802
6957
 
6803
- if (isTrue(renderer.ssr)) {
6958
+ if (isTrue(ssr$1)) {
6804
6959
  return;
6805
6960
  }
6806
6961
 
@@ -7026,8 +7181,7 @@ function recursivelyDisconnectChildren(vnodes) {
7026
7181
 
7027
7182
  function resetComponentRoot(vm) {
7028
7183
  const {
7029
- children,
7030
- renderer
7184
+ children
7031
7185
  } = vm;
7032
7186
  const rootNode = getRenderRoot(vm);
7033
7187
 
@@ -7035,7 +7189,7 @@ function resetComponentRoot(vm) {
7035
7189
  const child = children[i];
7036
7190
 
7037
7191
  if (!isNull(child) && !isUndefined$1(child.elm)) {
7038
- renderer.remove(child.elm, rootNode);
7192
+ remove$1(child.elm, rootNode);
7039
7193
  }
7040
7194
  }
7041
7195
 
@@ -7045,7 +7199,7 @@ function resetComponentRoot(vm) {
7045
7199
  }
7046
7200
 
7047
7201
  function scheduleRehydration(vm) {
7048
- if (isTrue(vm.renderer.ssr) || isTrue(vm.isScheduled)) {
7202
+ if (isTrue(ssr$1) || isTrue(vm.isScheduled)) {
7049
7203
  return;
7050
7204
  }
7051
7205
 
@@ -7272,7 +7426,6 @@ function createContextWatcher(vm, wireDef, callbackWhenContextIsReady) {
7272
7426
 
7273
7427
  const {
7274
7428
  elm,
7275
- renderer,
7276
7429
  context: {
7277
7430
  wiredConnecting,
7278
7431
  wiredDisconnecting
@@ -7299,7 +7452,7 @@ function createContextWatcher(vm, wireDef, callbackWhenContextIsReady) {
7299
7452
  }
7300
7453
 
7301
7454
  });
7302
- renderer.dispatchEvent(elm, contextRegistrationEvent);
7455
+ dispatchEvent$1(elm, contextRegistrationEvent);
7303
7456
  });
7304
7457
  }
7305
7458
 
@@ -7564,7 +7717,7 @@ function setHooks(hooks) {
7564
7717
  hooksAreSet = true;
7565
7718
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7566
7719
  }
7567
- /* version: 2.7.1 */
7720
+ /* version: 2.7.2 */
7568
7721
 
7569
7722
  /*
7570
7723
  * Copyright (c) 2020, salesforce.com, inc.
@@ -7638,7 +7791,7 @@ function registerCustomElement(name, ctor) {
7638
7791
  reverseRegistry.set(ctor, name);
7639
7792
  }
7640
7793
 
7641
- class HTMLElement$1 {
7794
+ class HTMLElementImpl {
7642
7795
  constructor() {
7643
7796
  const {
7644
7797
  constructor
@@ -7654,275 +7807,321 @@ class HTMLElement$1 {
7654
7807
 
7655
7808
  }
7656
7809
 
7657
- const renderer = {
7658
- ssr: true,
7659
-
7660
- isHydrating() {
7661
- return false;
7662
- },
7810
+ const ssr = true;
7663
7811
 
7664
- isNativeShadowDefined: false,
7665
- isSyntheticShadowDefined: false,
7812
+ function isHydrating() {
7813
+ return false;
7814
+ }
7666
7815
 
7667
- insert(node, parent, anchor) {
7668
- if (node.parent !== null && node.parent !== parent) {
7669
- const nodeIndex = node.parent.children.indexOf(node);
7670
- node.parent.children.splice(nodeIndex, 1);
7671
- }
7816
+ const isNativeShadowDefined = false;
7817
+ const isSyntheticShadowDefined = false;
7672
7818
 
7673
- node.parent = parent;
7674
- const anchorIndex = isNull(anchor) ? -1 : parent.children.indexOf(anchor);
7819
+ function insert(node, parent, anchor) {
7820
+ if (node.parent !== null && node.parent !== parent) {
7821
+ const nodeIndex = node.parent.children.indexOf(node);
7822
+ node.parent.children.splice(nodeIndex, 1);
7823
+ }
7675
7824
 
7676
- if (anchorIndex === -1) {
7677
- parent.children.push(node);
7678
- } else {
7679
- parent.children.splice(anchorIndex, 0, node);
7680
- }
7681
- },
7825
+ node.parent = parent;
7826
+ const anchorIndex = isNull(anchor) ? -1 : parent.children.indexOf(anchor);
7682
7827
 
7683
- remove(node, parent) {
7684
- const nodeIndex = parent.children.indexOf(node);
7685
- parent.children.splice(nodeIndex, 1);
7686
- },
7828
+ if (anchorIndex === -1) {
7829
+ parent.children.push(node);
7830
+ } else {
7831
+ parent.children.splice(anchorIndex, 0, node);
7832
+ }
7833
+ }
7687
7834
 
7688
- createElement,
7835
+ function remove(node, parent) {
7836
+ const nodeIndex = parent.children.indexOf(node);
7837
+ parent.children.splice(nodeIndex, 1);
7838
+ }
7689
7839
 
7690
- createText(content) {
7691
- return {
7692
- type: HostNodeType.Text,
7693
- value: String(content),
7694
- parent: null
7695
- };
7696
- },
7840
+ function createText(content) {
7841
+ return {
7842
+ type: HostNodeType.Text,
7843
+ value: String(content),
7844
+ parent: null
7845
+ };
7846
+ }
7697
7847
 
7698
- createComment(content) {
7699
- return {
7700
- type: HostNodeType.Comment,
7701
- value: content,
7702
- parent: null
7703
- };
7704
- },
7848
+ function createComment(content) {
7849
+ return {
7850
+ type: HostNodeType.Comment,
7851
+ value: content,
7852
+ parent: null
7853
+ };
7854
+ }
7705
7855
 
7706
- nextSibling(node) {
7707
- const {
7708
- parent
7709
- } = node;
7856
+ function nextSibling(node) {
7857
+ const {
7858
+ parent
7859
+ } = node;
7710
7860
 
7711
- if (isNull(parent)) {
7712
- return null;
7713
- }
7861
+ if (isNull(parent)) {
7862
+ return null;
7863
+ }
7714
7864
 
7715
- const nodeIndex = parent.children.indexOf(node);
7716
- return parent.children[nodeIndex + 1] || null;
7717
- },
7865
+ const nodeIndex = parent.children.indexOf(node);
7866
+ return parent.children[nodeIndex + 1] || null;
7867
+ }
7718
7868
 
7719
- attachShadow(element, config) {
7720
- element.shadowRoot = {
7721
- type: HostNodeType.ShadowRoot,
7722
- children: [],
7723
- mode: config.mode,
7724
- delegatesFocus: !!config.delegatesFocus
7725
- };
7726
- return element.shadowRoot;
7727
- },
7869
+ function attachShadow(element, config) {
7870
+ element.shadowRoot = {
7871
+ type: HostNodeType.ShadowRoot,
7872
+ children: [],
7873
+ mode: config.mode,
7874
+ delegatesFocus: !!config.delegatesFocus
7875
+ };
7876
+ return element.shadowRoot;
7877
+ }
7728
7878
 
7729
- getProperty(node, key) {
7730
- var _a, _b;
7879
+ function getProperty(node, key) {
7880
+ var _a, _b;
7731
7881
 
7732
- if (key in node) {
7733
- return node[key];
7734
- }
7882
+ if (key in node) {
7883
+ return node[key];
7884
+ }
7735
7885
 
7736
- if (node.type === HostNodeType.Element) {
7737
- const attrName = htmlPropertyToAttribute(key); // Handle all the boolean properties.
7886
+ if (node.type === HostNodeType.Element) {
7887
+ const attrName = htmlPropertyToAttribute(key); // Handle all the boolean properties.
7738
7888
 
7739
- if (isBooleanAttribute(attrName, node.name)) {
7740
- return (_a = this.getAttribute(node, attrName)) !== null && _a !== void 0 ? _a : false;
7741
- } // Handle global html attributes and AOM.
7889
+ if (isBooleanAttribute(attrName, node.name)) {
7890
+ return (_a = getAttribute(node, attrName)) !== null && _a !== void 0 ? _a : false;
7891
+ } // Handle global html attributes and AOM.
7742
7892
 
7743
7893
 
7744
- if (isGlobalHtmlAttribute(attrName) || isAriaAttribute(attrName)) {
7745
- return this.getAttribute(node, attrName);
7746
- } // Handle special elements live bindings. The checked property is already handled above
7747
- // in the boolean case.
7894
+ if (isGlobalHtmlAttribute(attrName) || isAriaAttribute(attrName)) {
7895
+ return getAttribute(node, attrName);
7896
+ } // Handle special elements live bindings. The checked property is already handled above
7897
+ // in the boolean case.
7748
7898
 
7749
7899
 
7750
- if (node.name === 'input' && key === 'value') {
7751
- return (_b = this.getAttribute(node, 'value')) !== null && _b !== void 0 ? _b : '';
7752
- }
7900
+ if (node.name === 'input' && key === 'value') {
7901
+ return (_b = getAttribute(node, 'value')) !== null && _b !== void 0 ? _b : '';
7753
7902
  }
7903
+ }
7754
7904
 
7755
- if (process.env.NODE_ENV !== 'production') {
7756
- // eslint-disable-next-line no-console
7757
- console.error(`Unexpected "${key}" property access from the renderer`);
7758
- }
7759
- },
7905
+ if (process.env.NODE_ENV !== 'production') {
7906
+ // eslint-disable-next-line no-console
7907
+ console.error(`Unexpected "${key}" property access from the renderer`);
7908
+ }
7909
+ }
7760
7910
 
7761
- setProperty(node, key, value) {
7762
- if (key in node) {
7763
- return node[key] = value;
7764
- }
7911
+ function setProperty(node, key, value) {
7912
+ if (key in node) {
7913
+ return node[key] = value;
7914
+ }
7765
7915
 
7766
- if (node.type === HostNodeType.Element) {
7767
- const attrName = htmlPropertyToAttribute(key);
7916
+ if (node.type === HostNodeType.Element) {
7917
+ const attrName = htmlPropertyToAttribute(key);
7768
7918
 
7769
- if (key === 'innerHTML') {
7770
- node.children = [{
7771
- type: HostNodeType.Raw,
7772
- parent: node,
7773
- value
7774
- }];
7775
- return;
7776
- } // Handle all the boolean properties.
7919
+ if (key === 'innerHTML') {
7920
+ node.children = [{
7921
+ type: HostNodeType.Raw,
7922
+ parent: node,
7923
+ value
7924
+ }];
7925
+ return;
7926
+ } // Handle all the boolean properties.
7777
7927
 
7778
7928
 
7779
- if (isBooleanAttribute(attrName, node.name)) {
7780
- return value === true ? this.setAttribute(node, attrName, '') : this.removeAttribute(node, attrName);
7781
- } // Handle global html attributes and AOM.
7929
+ if (isBooleanAttribute(attrName, node.name)) {
7930
+ return value === true ? setAttribute(node, attrName, '') : removeAttribute(node, attrName);
7931
+ } // Handle global html attributes and AOM.
7782
7932
 
7783
7933
 
7784
- if (isGlobalHtmlAttribute(attrName) || isAriaAttribute(attrName)) {
7785
- return this.setAttribute(node, attrName, value);
7786
- } // Handle special elements live bindings. The checked property is already handled above
7787
- // in the boolean case.
7934
+ if (isGlobalHtmlAttribute(attrName) || isAriaAttribute(attrName)) {
7935
+ return setAttribute(node, attrName, value);
7936
+ } // Handle special elements live bindings. The checked property is already handled above
7937
+ // in the boolean case.
7788
7938
 
7789
7939
 
7790
- if (node.name === 'input' && attrName === 'value') {
7791
- return isNull(value) || isUndefined$1(value) ? this.removeAttribute(node, 'value') : this.setAttribute(node, 'value', value);
7792
- }
7940
+ if (node.name === 'input' && attrName === 'value') {
7941
+ return isNull(value) || isUndefined$1(value) ? removeAttribute(node, 'value') : setAttribute(node, 'value', value);
7793
7942
  }
7943
+ }
7794
7944
 
7795
- if (process.env.NODE_ENV !== 'production') {
7796
- // eslint-disable-next-line no-console
7797
- console.error(`Unexpected attempt to set "${key}=${value}" property from the renderer`);
7798
- }
7799
- },
7945
+ if (process.env.NODE_ENV !== 'production') {
7946
+ // eslint-disable-next-line no-console
7947
+ console.error(`Unexpected attempt to set "${key}=${value}" property from the renderer`);
7948
+ }
7949
+ }
7800
7950
 
7801
- setText(node, content) {
7802
- if (node.type === HostNodeType.Text) {
7803
- node.value = content;
7804
- } else if (node.type === HostNodeType.Element) {
7805
- node.children = [{
7806
- type: HostNodeType.Text,
7807
- parent: node,
7808
- value: content
7809
- }];
7810
- }
7811
- },
7951
+ function setText(node, content) {
7952
+ if (node.type === HostNodeType.Text) {
7953
+ node.value = content;
7954
+ } else if (node.type === HostNodeType.Element) {
7955
+ node.children = [{
7956
+ type: HostNodeType.Text,
7957
+ parent: node,
7958
+ value: content
7959
+ }];
7960
+ }
7961
+ }
7812
7962
 
7813
- getAttribute(element, name, namespace = null) {
7814
- const attribute = element.attributes.find(attr => attr.name === name && attr.namespace === namespace);
7815
- return attribute ? attribute.value : null;
7816
- },
7963
+ function getAttribute(element, name, namespace = null) {
7964
+ const attribute = element.attributes.find(attr => attr.name === name && attr.namespace === namespace);
7965
+ return attribute ? attribute.value : null;
7966
+ }
7817
7967
 
7818
- setAttribute(element, name, value, namespace = null) {
7819
- const attribute = element.attributes.find(attr => attr.name === name && attr.namespace === namespace);
7968
+ function setAttribute(element, name, value, namespace = null) {
7969
+ const attribute = element.attributes.find(attr => attr.name === name && attr.namespace === namespace);
7820
7970
 
7821
- if (isUndefined$1(attribute)) {
7822
- element.attributes.push({
7823
- name,
7824
- namespace,
7825
- value: String(value)
7826
- });
7827
- } else {
7828
- attribute.value = value;
7971
+ if (isUndefined$1(namespace)) {
7972
+ namespace = null;
7973
+ }
7974
+
7975
+ if (isUndefined$1(attribute)) {
7976
+ element.attributes.push({
7977
+ name,
7978
+ namespace,
7979
+ value: String(value)
7980
+ });
7981
+ } else {
7982
+ attribute.value = value;
7983
+ }
7984
+ }
7985
+
7986
+ function removeAttribute(element, name, namespace) {
7987
+ element.attributes = element.attributes.filter(attr => attr.name !== name && attr.namespace !== namespace);
7988
+ }
7989
+
7990
+ function getClassList(element) {
7991
+ function getClassAttribute() {
7992
+ let classAttribute = element.attributes.find(attr => attr.name === 'class' && isNull(attr.namespace));
7993
+
7994
+ if (isUndefined$1(classAttribute)) {
7995
+ classAttribute = {
7996
+ name: 'class',
7997
+ namespace: null,
7998
+ value: ''
7999
+ };
8000
+ element.attributes.push(classAttribute);
7829
8001
  }
7830
- },
7831
8002
 
7832
- removeAttribute(element, name, namespace) {
7833
- element.attributes = element.attributes.filter(attr => attr.name !== name && attr.namespace !== namespace);
7834
- },
8003
+ return classAttribute;
8004
+ }
7835
8005
 
7836
- getClassList(element) {
7837
- function getClassAttribute() {
7838
- let classAttribute = element.attributes.find(attr => attr.name === 'class' && isNull(attr.namespace));
7839
-
7840
- if (isUndefined$1(classAttribute)) {
7841
- classAttribute = {
7842
- name: 'class',
7843
- namespace: null,
7844
- value: ''
7845
- };
7846
- element.attributes.push(classAttribute);
7847
- }
8006
+ return {
8007
+ add(...names) {
8008
+ const classAttribute = getClassAttribute();
8009
+ const tokenList = classNameToTokenList(classAttribute.value);
8010
+ names.forEach(name => tokenList.add(name));
8011
+ classAttribute.value = tokenListToClassName(tokenList);
8012
+ },
7848
8013
 
7849
- return classAttribute;
8014
+ remove(...names) {
8015
+ const classAttribute = getClassAttribute();
8016
+ const tokenList = classNameToTokenList(classAttribute.value);
8017
+ names.forEach(name => tokenList.delete(name));
8018
+ classAttribute.value = tokenListToClassName(tokenList);
7850
8019
  }
7851
8020
 
7852
- return {
7853
- add(...names) {
7854
- const classAttribute = getClassAttribute();
7855
- const tokenList = classNameToTokenList(classAttribute.value);
7856
- names.forEach(name => tokenList.add(name));
7857
- classAttribute.value = tokenListToClassName(tokenList);
7858
- },
8021
+ };
8022
+ }
7859
8023
 
7860
- remove(...names) {
7861
- const classAttribute = getClassAttribute();
7862
- const tokenList = classNameToTokenList(classAttribute.value);
7863
- names.forEach(name => tokenList.delete(name));
7864
- classAttribute.value = tokenListToClassName(tokenList);
7865
- }
8024
+ function setCSSStyleProperty(element, name, value, important) {
8025
+ const styleAttribute = element.attributes.find(attr => attr.name === 'style' && isNull(attr.namespace));
8026
+ const serializedProperty = `${name}: ${value}${important ? ' !important' : ''}`;
7866
8027
 
7867
- };
7868
- },
8028
+ if (isUndefined$1(styleAttribute)) {
8029
+ element.attributes.push({
8030
+ name: 'style',
8031
+ namespace: null,
8032
+ value: serializedProperty
8033
+ });
8034
+ } else {
8035
+ styleAttribute.value += `; ${serializedProperty}`;
8036
+ }
8037
+ }
7869
8038
 
7870
- setCSSStyleProperty(element, name, value, important) {
7871
- const styleAttribute = element.attributes.find(attr => attr.name === 'style' && isNull(attr.namespace));
7872
- const serializedProperty = `${name}: ${value}${important ? ' !important' : ''}`;
8039
+ function isConnected(node) {
8040
+ return !isNull(node.parent);
8041
+ } // Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
8042
+ // synthetic shadow.
7873
8043
 
7874
- if (isUndefined$1(styleAttribute)) {
7875
- element.attributes.push({
7876
- name: 'style',
7877
- namespace: null,
7878
- value: serializedProperty
7879
- });
7880
- } else {
7881
- styleAttribute.value += `; ${serializedProperty}`;
7882
- }
7883
- },
7884
8044
 
7885
- isConnected(node) {
7886
- return !isNull(node.parent);
7887
- },
8045
+ const insertGlobalStylesheet = noop; // Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
8046
+ // synthetic shadow.
7888
8047
 
7889
- insertGlobalStylesheet() {// Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
7890
- // synthetic shadow.
7891
- },
8048
+ const insertStylesheet = noop; // Noop on SSR.
7892
8049
 
7893
- insertStylesheet() {// Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
7894
- // synthetic shadow.
7895
- },
8050
+ const addEventListener = noop; // Noop on SSR.
7896
8051
 
7897
- addEventListener() {// Noop on SSR.
7898
- },
8052
+ const removeEventListener = noop;
8053
+ const dispatchEvent = unsupportedMethod('dispatchEvent');
8054
+ const getBoundingClientRect = unsupportedMethod('getBoundingClientRect');
8055
+ const querySelector = unsupportedMethod('querySelector');
8056
+ const querySelectorAll = unsupportedMethod('querySelectorAll');
8057
+ const getElementsByTagName = unsupportedMethod('getElementsByTagName');
8058
+ const getElementsByClassName = unsupportedMethod('getElementsByClassName');
8059
+ const getChildren = unsupportedMethod('getChildren');
8060
+ const getChildNodes = unsupportedMethod('getChildNodes');
8061
+ const getFirstChild = unsupportedMethod('getFirstChild');
8062
+ const getFirstElementChild = unsupportedMethod('getFirstElementChild');
8063
+ const getLastChild = unsupportedMethod('getLastChild');
8064
+ const getLastElementChild = unsupportedMethod('getLastElementChild');
7899
8065
 
7900
- removeEventListener() {// Noop on SSR.
7901
- },
8066
+ function defineCustomElement(name, constructor, _options) {
8067
+ registerCustomElement(name, constructor);
8068
+ }
7902
8069
 
7903
- dispatchEvent: unsupportedMethod('dispatchEvent'),
7904
- getBoundingClientRect: unsupportedMethod('getBoundingClientRect'),
7905
- querySelector: unsupportedMethod('querySelector'),
7906
- querySelectorAll: unsupportedMethod('querySelectorAll'),
7907
- getElementsByTagName: unsupportedMethod('getElementsByTagName'),
7908
- getElementsByClassName: unsupportedMethod('getElementsByClassName'),
7909
- getChildren: unsupportedMethod('getChildren'),
7910
- getChildNodes: unsupportedMethod('getChildNodes'),
7911
- getFirstChild: unsupportedMethod('getFirstChild'),
7912
- getFirstElementChild: unsupportedMethod('getFirstElementChild'),
7913
- getLastChild: unsupportedMethod('getLastChild'),
7914
- getLastElementChild: unsupportedMethod('getLastElementChild'),
7915
-
7916
- defineCustomElement(name, constructor, _options) {
7917
- registerCustomElement(name, constructor);
7918
- },
8070
+ function getCustomElement(name) {
8071
+ return registry[name];
8072
+ }
7919
8073
 
7920
- getCustomElement(name) {
7921
- return registry[name];
7922
- },
8074
+ const HTMLElementExported = HTMLElementImpl;
8075
+ /* noop */
7923
8076
 
7924
- HTMLElement: HTMLElement$1
7925
- };
8077
+ const assertInstanceOfHTMLElement = noop;
8078
+ /*
8079
+ * Copyright (c) 2020, salesforce.com, inc.
8080
+ * All rights reserved.
8081
+ * SPDX-License-Identifier: MIT
8082
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
8083
+ */
8084
+
8085
+ setAssertInstanceOfHTMLElement(assertInstanceOfHTMLElement);
8086
+ setAttachShadow(attachShadow);
8087
+ setCreateComment(createComment);
8088
+ setCreateElement(createElement);
8089
+ setCreateText(createText);
8090
+ setDefineCustomElement(defineCustomElement);
8091
+ setDispatchEvent(dispatchEvent);
8092
+ setGetAttribute(getAttribute);
8093
+ setGetBoundingClientRect(getBoundingClientRect);
8094
+ setGetChildNodes(getChildNodes);
8095
+ setGetChildren(getChildren);
8096
+ setGetClassList(getClassList);
8097
+ setGetCustomElement(getCustomElement);
8098
+ setGetElementsByClassName(getElementsByClassName);
8099
+ setGetElementsByTagName(getElementsByTagName);
8100
+ setGetFirstChild(getFirstChild);
8101
+ setGetFirstElementChild(getFirstElementChild);
8102
+ setGetLastChild(getLastChild);
8103
+ setGetLastElementChild(getLastElementChild);
8104
+ setGetProperty(getProperty);
8105
+ setHTMLElement(HTMLElementExported);
8106
+ setInsert(insert);
8107
+ setInsertGlobalStylesheet(insertGlobalStylesheet);
8108
+ setInsertStylesheet(insertStylesheet);
8109
+ setIsConnected(isConnected);
8110
+ setIsHydrating(isHydrating);
8111
+ setIsNativeShadowDefined(isNativeShadowDefined);
8112
+ setIsSyntheticShadowDefined(isSyntheticShadowDefined);
8113
+ setNextSibling(nextSibling);
8114
+ setQuerySelector(querySelector);
8115
+ setQuerySelectorAll(querySelectorAll);
8116
+ setRemove(remove);
8117
+ setRemoveAttribute(removeAttribute);
8118
+ setRemoveEventListener(removeEventListener);
8119
+ setSetAttribute(setAttribute);
8120
+ setSetCSSStyleProperty(setCSSStyleProperty);
8121
+ setSetProperty(setProperty);
8122
+ setSetText(setText);
8123
+ setSsr(ssr);
8124
+ setAddEventListener(addEventListener);
7926
8125
  /*
7927
8126
  * Copyright (c) 2020, salesforce.com, inc.
7928
8127
  * All rights reserved.
@@ -8033,12 +8232,11 @@ function renderComponent(tagName, Ctor, props = {}) {
8033
8232
  throw new TypeError(`"renderComponent" expects an object as the third parameter but instead received ${props}.`);
8034
8233
  }
8035
8234
 
8036
- const element = renderer.createElement(tagName);
8235
+ const element = createElement(tagName);
8037
8236
  const def = getComponentInternalDef(Ctor);
8038
8237
  createVM(element, def, {
8039
8238
  mode: 'open',
8040
8239
  owner: null,
8041
- renderer,
8042
8240
  tagName
8043
8241
  });
8044
8242
 
@@ -8060,7 +8258,7 @@ function renderComponent(tagName, Ctor, props = {}) {
8060
8258
 
8061
8259
  freeze(LightningElement);
8062
8260
  seal(LightningElement.prototype);
8063
- /* version: 2.7.1 */
8261
+ /* version: 2.7.2 */
8064
8262
 
8065
8263
  exports.LightningElement = LightningElement;
8066
8264
  exports.api = api$1;