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
@@ -335,7 +335,7 @@ function htmlPropertyToAttribute(propName) {
335
335
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
336
336
  return attributeName;
337
337
  }
338
- /** version: 2.7.1 */
338
+ /** version: 2.7.2 */
339
339
 
340
340
  /*
341
341
  * Copyright (c) 2020, salesforce.com, inc.
@@ -457,7 +457,7 @@ function setFeatureFlagForTest(name, value) {
457
457
  setFeatureFlag(name, value);
458
458
  }
459
459
  }
460
- /** version: 2.7.1 */
460
+ /** version: 2.7.2 */
461
461
 
462
462
  /* proxy-compat-disable */
463
463
 
@@ -531,6 +531,249 @@ function parseStyleText(cssText) {
531
531
  }
532
532
 
533
533
  return styleMap;
534
+ } //
535
+ // Primitives
536
+ //
537
+
538
+
539
+ let ssr$1;
540
+
541
+ function setSsr(ssrImpl) {
542
+ ssr$1 = ssrImpl;
543
+ }
544
+
545
+ let isNativeShadowDefined$1;
546
+
547
+ function setIsNativeShadowDefined(isNativeShadowDefinedImpl) {
548
+ isNativeShadowDefined$1 = isNativeShadowDefinedImpl;
549
+ }
550
+
551
+ let isSyntheticShadowDefined$1;
552
+
553
+ function setIsSyntheticShadowDefined(isSyntheticShadowDefinedImpl) {
554
+ isSyntheticShadowDefined$1 = isSyntheticShadowDefinedImpl;
555
+ }
556
+
557
+ let HTMLElementExported$1;
558
+
559
+ function setHTMLElement(HTMLElementImpl) {
560
+ HTMLElementExported$1 = HTMLElementImpl;
561
+ }
562
+
563
+ let isHydrating$1;
564
+
565
+ function setIsHydrating(isHydratingImpl) {
566
+ isHydrating$1 = isHydratingImpl;
567
+ }
568
+
569
+ let insert$1;
570
+
571
+ function setInsert(insertImpl) {
572
+ insert$1 = insertImpl;
573
+ }
574
+
575
+ let remove$1;
576
+
577
+ function setRemove(removeImpl) {
578
+ remove$1 = removeImpl;
579
+ }
580
+
581
+ let createElement$1;
582
+
583
+ function setCreateElement(createElementImpl) {
584
+ createElement$1 = createElementImpl;
585
+ }
586
+
587
+ let createText$1;
588
+
589
+ function setCreateText(createTextImpl) {
590
+ createText$1 = createTextImpl;
591
+ }
592
+
593
+ let createComment$1;
594
+
595
+ function setCreateComment(createCommentImpl) {
596
+ createComment$1 = createCommentImpl;
597
+ }
598
+
599
+ let nextSibling$1;
600
+
601
+ function setNextSibling(nextSiblingImpl) {
602
+ nextSibling$1 = nextSiblingImpl;
603
+ }
604
+
605
+ let attachShadow$1;
606
+
607
+ function setAttachShadow(attachShadowImpl) {
608
+ attachShadow$1 = attachShadowImpl;
609
+ }
610
+
611
+ let getProperty$1;
612
+
613
+ function setGetProperty(getPropertyImpl) {
614
+ getProperty$1 = getPropertyImpl;
615
+ }
616
+
617
+ let setProperty$1;
618
+
619
+ function setSetProperty(setPropertyImpl) {
620
+ setProperty$1 = setPropertyImpl;
621
+ }
622
+
623
+ let setText$1;
624
+
625
+ function setSetText(setTextImpl) {
626
+ setText$1 = setTextImpl;
627
+ }
628
+
629
+ let getAttribute$1;
630
+
631
+ function setGetAttribute(getAttributeImpl) {
632
+ getAttribute$1 = getAttributeImpl;
633
+ }
634
+
635
+ let setAttribute$1;
636
+
637
+ function setSetAttribute(setAttributeImpl) {
638
+ setAttribute$1 = setAttributeImpl;
639
+ }
640
+
641
+ let removeAttribute$1;
642
+
643
+ function setRemoveAttribute(removeAttributeImpl) {
644
+ removeAttribute$1 = removeAttributeImpl;
645
+ }
646
+
647
+ let addEventListener$1;
648
+
649
+ function setAddEventListener(addEventListenerImpl) {
650
+ addEventListener$1 = addEventListenerImpl;
651
+ }
652
+
653
+ let removeEventListener$1;
654
+
655
+ function setRemoveEventListener(removeEventListenerImpl) {
656
+ removeEventListener$1 = removeEventListenerImpl;
657
+ }
658
+
659
+ let dispatchEvent$1;
660
+
661
+ function setDispatchEvent(dispatchEventImpl) {
662
+ dispatchEvent$1 = dispatchEventImpl;
663
+ }
664
+
665
+ let getClassList$1;
666
+
667
+ function setGetClassList(getClassListImpl) {
668
+ getClassList$1 = getClassListImpl;
669
+ }
670
+
671
+ let setCSSStyleProperty$1;
672
+
673
+ function setSetCSSStyleProperty(setCSSStylePropertyImpl) {
674
+ setCSSStyleProperty$1 = setCSSStylePropertyImpl;
675
+ }
676
+
677
+ let getBoundingClientRect$1;
678
+
679
+ function setGetBoundingClientRect(getBoundingClientRectImpl) {
680
+ getBoundingClientRect$1 = getBoundingClientRectImpl;
681
+ }
682
+
683
+ let querySelector$1;
684
+
685
+ function setQuerySelector(querySelectorImpl) {
686
+ querySelector$1 = querySelectorImpl;
687
+ }
688
+
689
+ let querySelectorAll$1;
690
+
691
+ function setQuerySelectorAll(querySelectorAllImpl) {
692
+ querySelectorAll$1 = querySelectorAllImpl;
693
+ }
694
+
695
+ let getElementsByTagName$1;
696
+
697
+ function setGetElementsByTagName(getElementsByTagNameImpl) {
698
+ getElementsByTagName$1 = getElementsByTagNameImpl;
699
+ }
700
+
701
+ let getElementsByClassName$1;
702
+
703
+ function setGetElementsByClassName(getElementsByClassNameImpl) {
704
+ getElementsByClassName$1 = getElementsByClassNameImpl;
705
+ }
706
+
707
+ let getChildren$1;
708
+
709
+ function setGetChildren(getChildrenImpl) {
710
+ getChildren$1 = getChildrenImpl;
711
+ }
712
+
713
+ let getChildNodes$1;
714
+
715
+ function setGetChildNodes(getChildNodesImpl) {
716
+ getChildNodes$1 = getChildNodesImpl;
717
+ }
718
+
719
+ let getFirstChild$1;
720
+
721
+ function setGetFirstChild(getFirstChildImpl) {
722
+ getFirstChild$1 = getFirstChildImpl;
723
+ }
724
+
725
+ let getFirstElementChild$1;
726
+
727
+ function setGetFirstElementChild(getFirstElementChildImpl) {
728
+ getFirstElementChild$1 = getFirstElementChildImpl;
729
+ }
730
+
731
+ let getLastChild$1;
732
+
733
+ function setGetLastChild(getLastChildImpl) {
734
+ getLastChild$1 = getLastChildImpl;
735
+ }
736
+
737
+ let getLastElementChild$1;
738
+
739
+ function setGetLastElementChild(getLastElementChildImpl) {
740
+ getLastElementChild$1 = getLastElementChildImpl;
741
+ }
742
+
743
+ let isConnected$1;
744
+
745
+ function setIsConnected(isConnectedImpl) {
746
+ isConnected$1 = isConnectedImpl;
747
+ }
748
+
749
+ let insertGlobalStylesheet$1;
750
+
751
+ function setInsertGlobalStylesheet(insertGlobalStylesheetImpl) {
752
+ insertGlobalStylesheet$1 = insertGlobalStylesheetImpl;
753
+ }
754
+
755
+ let insertStylesheet$1;
756
+
757
+ function setInsertStylesheet(insertStylesheetImpl) {
758
+ insertStylesheet$1 = insertStylesheetImpl;
759
+ }
760
+
761
+ let assertInstanceOfHTMLElement$1;
762
+
763
+ function setAssertInstanceOfHTMLElement(assertInstanceOfHTMLElementImpl) {
764
+ assertInstanceOfHTMLElement$1 = assertInstanceOfHTMLElementImpl;
765
+ }
766
+
767
+ let defineCustomElement$1;
768
+
769
+ function setDefineCustomElement(defineCustomElementImpl) {
770
+ defineCustomElement$1 = defineCustomElementImpl;
771
+ }
772
+
773
+ let getCustomElement$1;
774
+
775
+ function setGetCustomElement(getCustomElementImpl) {
776
+ getCustomElement$1 = getCustomElementImpl;
534
777
  }
535
778
  /*
536
779
  * Copyright (c) 2019, salesforce.com, inc.
@@ -784,9 +1027,6 @@ function createAllEventListeners(vnode) {
784
1027
  elm,
785
1028
  data: {
786
1029
  on
787
- },
788
- owner: {
789
- renderer
790
1030
  }
791
1031
  } = vnode;
792
1032
 
@@ -799,7 +1039,7 @@ function createAllEventListeners(vnode) {
799
1039
  let name;
800
1040
 
801
1041
  for (name in on) {
802
- renderer.addEventListener(elm, name, listener);
1042
+ addEventListener$1(elm, name, listener);
803
1043
  }
804
1044
  }
805
1045
 
@@ -941,9 +1181,6 @@ function updateAttrs(oldVnode, vnode) {
941
1181
  const {
942
1182
  data: {
943
1183
  attrs
944
- },
945
- owner: {
946
- renderer
947
1184
  }
948
1185
  } = vnode;
949
1186
 
@@ -966,10 +1203,6 @@ function updateAttrs(oldVnode, vnode) {
966
1203
  }
967
1204
 
968
1205
  const elm = vnode.elm;
969
- const {
970
- setAttribute,
971
- removeAttribute
972
- } = renderer;
973
1206
  let key;
974
1207
  oldAttrs = isUndefined$1(oldAttrs) ? EmptyObject : oldAttrs; // update modified attributes, add new attributes
975
1208
  // this routine is only useful for data-* attributes in all kind of elements
@@ -984,14 +1217,14 @@ function updateAttrs(oldVnode, vnode) {
984
1217
 
985
1218
  if (StringCharCodeAt.call(key, 3) === ColonCharCode) {
986
1219
  // Assume xml namespace
987
- setAttribute(elm, key, cur, xmlNS);
1220
+ setAttribute$1(elm, key, cur, xmlNS);
988
1221
  } else if (StringCharCodeAt.call(key, 5) === ColonCharCode) {
989
1222
  // Assume xlink namespace
990
- setAttribute(elm, key, cur, xlinkNS);
991
- } else if (isNull(cur)) {
992
- removeAttribute(elm, key);
1223
+ setAttribute$1(elm, key, cur, xlinkNS);
1224
+ } else if (isNull(cur) || isUndefined$1(cur)) {
1225
+ removeAttribute$1(elm, key);
993
1226
  } else {
994
- setAttribute(elm, key, cur);
1227
+ setAttribute$1(elm, key, cur);
995
1228
  }
996
1229
 
997
1230
  lockAttribute();
@@ -1039,17 +1272,14 @@ function update(oldVnode, vnode) {
1039
1272
  const isFirstPatch = isUndefined$1(oldProps);
1040
1273
  const {
1041
1274
  elm,
1042
- sel,
1043
- owner: {
1044
- renderer
1045
- }
1275
+ sel
1046
1276
  } = vnode;
1047
1277
 
1048
1278
  for (const key in props) {
1049
1279
  const cur = props[key]; // if it is the first time this element is patched, or the current value is different to the previous value...
1050
1280
 
1051
- if (isFirstPatch || cur !== (isLiveBindingProp(sel, key) ? renderer.getProperty(elm, key) : oldProps[key])) {
1052
- renderer.setProperty(elm, key, cur);
1281
+ if (isFirstPatch || cur !== (isLiveBindingProp(sel, key) ? getProperty$1(elm, key) : oldProps[key])) {
1282
+ setProperty$1(elm, key, cur);
1053
1283
  }
1054
1284
  }
1055
1285
  }
@@ -1118,9 +1348,6 @@ function updateClassAttribute(oldVnode, vnode) {
1118
1348
  elm,
1119
1349
  data: {
1120
1350
  className: newClass
1121
- },
1122
- owner: {
1123
- renderer
1124
1351
  }
1125
1352
  } = vnode;
1126
1353
  const {
@@ -1133,7 +1360,7 @@ function updateClassAttribute(oldVnode, vnode) {
1133
1360
  return;
1134
1361
  }
1135
1362
 
1136
- const classList = renderer.getClassList(elm);
1363
+ const classList = getClassList$1(elm);
1137
1364
  const newClassMap = getMapFromClassName(newClass);
1138
1365
  const oldClassMap = getMapFromClassName(oldClass);
1139
1366
  let name;
@@ -1171,24 +1398,17 @@ function updateStyleAttribute(oldVnode, vnode) {
1171
1398
  elm,
1172
1399
  data: {
1173
1400
  style: newStyle
1174
- },
1175
- owner: {
1176
- renderer
1177
1401
  }
1178
1402
  } = vnode;
1179
- const {
1180
- setAttribute,
1181
- removeAttribute
1182
- } = renderer;
1183
1403
 
1184
1404
  if (oldVnode.data.style === newStyle) {
1185
1405
  return;
1186
1406
  }
1187
1407
 
1188
1408
  if (!isString(newStyle) || newStyle === '') {
1189
- removeAttribute(elm, 'style');
1409
+ removeAttribute$1(elm, 'style');
1190
1410
  } else {
1191
- setAttribute(elm, 'style', newStyle);
1411
+ setAttribute$1(elm, 'style', newStyle);
1192
1412
  }
1193
1413
  }
1194
1414
 
@@ -1213,9 +1433,6 @@ function createClassAttribute(vnode) {
1213
1433
  elm,
1214
1434
  data: {
1215
1435
  classMap
1216
- },
1217
- owner: {
1218
- renderer
1219
1436
  }
1220
1437
  } = vnode;
1221
1438
 
@@ -1223,7 +1440,7 @@ function createClassAttribute(vnode) {
1223
1440
  return;
1224
1441
  }
1225
1442
 
1226
- const classList = renderer.getClassList(elm);
1443
+ const classList = getClassList$1(elm);
1227
1444
 
1228
1445
  for (const name in classMap) {
1229
1446
  classList.add(name);
@@ -1247,9 +1464,6 @@ function createStyleAttribute(vnode) {
1247
1464
  elm,
1248
1465
  data: {
1249
1466
  styleDecls
1250
- },
1251
- owner: {
1252
- renderer
1253
1467
  }
1254
1468
  } = vnode;
1255
1469
 
@@ -1259,7 +1473,7 @@ function createStyleAttribute(vnode) {
1259
1473
 
1260
1474
  for (let i = 0; i < styleDecls.length; i++) {
1261
1475
  const [prop, value, important] = styleDecls[i];
1262
- renderer.setCSSStyleProperty(elm, prop, value, important);
1476
+ setCSSStyleProperty$1(elm, prop, value, important);
1263
1477
  }
1264
1478
  }
1265
1479
 
@@ -1273,15 +1487,6 @@ var modStaticStyle = {
1273
1487
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1274
1488
  */
1275
1489
 
1276
- /**
1277
- @license
1278
- Copyright (c) 2015 Simon Friis Vindum.
1279
- This code may only be used under the MIT License found at
1280
- https://github.com/snabbdom/snabbdom/blob/master/LICENSE
1281
- Code distributed by Snabbdom as part of the Snabbdom project at
1282
- https://github.com/snabbdom/snabbdom/
1283
- */
1284
-
1285
1490
  function isUndef(s) {
1286
1491
  return s === undefined;
1287
1492
  }
@@ -1369,7 +1574,7 @@ function updateDynamicChildren(parentElm, oldCh, newCh) {
1369
1574
  } else if (sameVnode(oldStartVnode, newEndVnode)) {
1370
1575
  // Vnode moved right
1371
1576
  patchVnode(oldStartVnode, newEndVnode);
1372
- newEndVnode.hook.move(oldStartVnode, parentElm, oldEndVnode.owner.renderer.nextSibling(oldEndVnode.elm));
1577
+ newEndVnode.hook.move(oldStartVnode, parentElm, nextSibling$1(oldEndVnode.elm));
1373
1578
  oldStartVnode = oldCh[++oldStartIdx];
1374
1579
  newEndVnode = newCh[--newEndIdx];
1375
1580
  } else if (sameVnode(oldEndVnode, newStartVnode)) {
@@ -1851,7 +2056,7 @@ function patchLightningElementPrototypeWithRestrictions(proto) {
1851
2056
  defineProperties(proto, getLightningElementPrototypeRestrictionsDescriptors(proto));
1852
2057
  }
1853
2058
  /*
1854
- * Copyright (c) 2020, salesforce.com, inc.
2059
+ * Copyright (c) 2018, salesforce.com, inc.
1855
2060
  * All rights reserved.
1856
2061
  * SPDX-License-Identifier: MIT
1857
2062
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -2771,9 +2976,7 @@ function createBridgeToElementDescriptor(propName, descriptor) {
2771
2976
 
2772
2977
 
2773
2978
  const LightningElement = function () {
2774
- var _a; // This should be as performant as possible, while any initialization should be done lazily
2775
-
2776
-
2979
+ // This should be as performant as possible, while any initialization should be done lazily
2777
2980
  if (isNull(vmBeingConstructed)) {
2778
2981
  throw new ReferenceError('Illegal constructor');
2779
2982
  }
@@ -2781,15 +2984,14 @@ const LightningElement = function () {
2781
2984
  const vm = vmBeingConstructed;
2782
2985
  const {
2783
2986
  def,
2784
- elm,
2785
- renderer
2987
+ elm
2786
2988
  } = vm;
2787
2989
  const {
2788
2990
  bridge
2789
2991
  } = def;
2790
2992
 
2791
2993
  if (process.env.NODE_ENV !== 'production') {
2792
- (_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}.`);
2994
+ assertInstanceOfHTMLElement$1(vm.elm, `Component creation requires a DOM element to be associated to ${vm}.`);
2793
2995
  }
2794
2996
 
2795
2997
  const component = this;
@@ -2819,7 +3021,7 @@ const LightningElement = function () {
2819
3021
  if (vm.renderMode === 1
2820
3022
  /* Shadow */
2821
3023
  ) {
2822
- attachShadow(vm);
3024
+ doAttachShadow(vm);
2823
3025
  } // Adding extra guard rails in DEV mode.
2824
3026
 
2825
3027
 
@@ -2831,17 +3033,16 @@ const LightningElement = function () {
2831
3033
  return this;
2832
3034
  };
2833
3035
 
2834
- function attachShadow(vm) {
3036
+ function doAttachShadow(vm) {
2835
3037
  const {
2836
3038
  elm,
2837
3039
  mode,
2838
- renderer,
2839
3040
  shadowMode,
2840
3041
  def: {
2841
3042
  ctor
2842
3043
  }
2843
3044
  } = vm;
2844
- const cmpRoot = renderer.attachShadow(elm, {
3045
+ const cmpRoot = attachShadow$1(elm, {
2845
3046
  [KEY__SYNTHETIC_MODE]: shadowMode === 1
2846
3047
  /* Synthetic */
2847
3048
  ,
@@ -2868,21 +3069,15 @@ LightningElement.prototype = {
2868
3069
 
2869
3070
  dispatchEvent(event) {
2870
3071
  const {
2871
- elm,
2872
- renderer: {
2873
- dispatchEvent
2874
- }
3072
+ elm
2875
3073
  } = getAssociatedVM(this);
2876
- return dispatchEvent(elm, event);
3074
+ return dispatchEvent$1(elm, event);
2877
3075
  },
2878
3076
 
2879
3077
  addEventListener(type, listener, options) {
2880
3078
  const vm = getAssociatedVM(this);
2881
3079
  const {
2882
- elm,
2883
- renderer: {
2884
- addEventListener
2885
- }
3080
+ elm
2886
3081
  } = vm;
2887
3082
 
2888
3083
  if (process.env.NODE_ENV !== 'production') {
@@ -2893,92 +3088,68 @@ LightningElement.prototype = {
2893
3088
  }
2894
3089
 
2895
3090
  const wrappedListener = getWrappedComponentsListener(vm, listener);
2896
- addEventListener(elm, type, wrappedListener, options);
3091
+ addEventListener$1(elm, type, wrappedListener, options);
2897
3092
  },
2898
3093
 
2899
3094
  removeEventListener(type, listener, options) {
2900
3095
  const vm = getAssociatedVM(this);
2901
3096
  const {
2902
- elm,
2903
- renderer: {
2904
- removeEventListener
2905
- }
3097
+ elm
2906
3098
  } = vm;
2907
3099
  const wrappedListener = getWrappedComponentsListener(vm, listener);
2908
- removeEventListener(elm, type, wrappedListener, options);
3100
+ removeEventListener$1(elm, type, wrappedListener, options);
2909
3101
  },
2910
3102
 
2911
3103
  hasAttribute(name) {
2912
3104
  const {
2913
- elm,
2914
- renderer: {
2915
- getAttribute
2916
- }
3105
+ elm
2917
3106
  } = getAssociatedVM(this);
2918
- return !isNull(getAttribute(elm, name));
3107
+ return !isNull(getAttribute$1(elm, name));
2919
3108
  },
2920
3109
 
2921
3110
  hasAttributeNS(namespace, name) {
2922
3111
  const {
2923
- elm,
2924
- renderer: {
2925
- getAttribute
2926
- }
3112
+ elm
2927
3113
  } = getAssociatedVM(this);
2928
- return !isNull(getAttribute(elm, name, namespace));
3114
+ return !isNull(getAttribute$1(elm, name, namespace));
2929
3115
  },
2930
3116
 
2931
3117
  removeAttribute(name) {
2932
3118
  const {
2933
- elm,
2934
- renderer: {
2935
- removeAttribute
2936
- }
3119
+ elm
2937
3120
  } = getAssociatedVM(this);
2938
3121
  unlockAttribute(elm, name);
2939
- removeAttribute(elm, name);
3122
+ removeAttribute$1(elm, name);
2940
3123
  lockAttribute();
2941
3124
  },
2942
3125
 
2943
3126
  removeAttributeNS(namespace, name) {
2944
3127
  const {
2945
- elm,
2946
- renderer: {
2947
- removeAttribute
2948
- }
3128
+ elm
2949
3129
  } = getAssociatedVM(this);
2950
3130
  unlockAttribute(elm, name);
2951
- removeAttribute(elm, name, namespace);
3131
+ removeAttribute$1(elm, name, namespace);
2952
3132
  lockAttribute();
2953
3133
  },
2954
3134
 
2955
3135
  getAttribute(name) {
2956
3136
  const {
2957
- elm,
2958
- renderer: {
2959
- getAttribute
2960
- }
3137
+ elm
2961
3138
  } = getAssociatedVM(this);
2962
- return getAttribute(elm, name);
3139
+ return getAttribute$1(elm, name);
2963
3140
  },
2964
3141
 
2965
3142
  getAttributeNS(namespace, name) {
2966
3143
  const {
2967
- elm,
2968
- renderer: {
2969
- getAttribute
2970
- }
3144
+ elm
2971
3145
  } = getAssociatedVM(this);
2972
- return getAttribute(elm, name, namespace);
3146
+ return getAttribute$1(elm, name, namespace);
2973
3147
  },
2974
3148
 
2975
3149
  setAttribute(name, value) {
2976
3150
  const vm = getAssociatedVM(this);
2977
3151
  const {
2978
- elm,
2979
- renderer: {
2980
- setAttribute
2981
- }
3152
+ elm
2982
3153
  } = vm;
2983
3154
 
2984
3155
  if (process.env.NODE_ENV !== 'production') {
@@ -2986,17 +3157,14 @@ LightningElement.prototype = {
2986
3157
  }
2987
3158
 
2988
3159
  unlockAttribute(elm, name);
2989
- setAttribute(elm, name, value);
3160
+ setAttribute$1(elm, name, value);
2990
3161
  lockAttribute();
2991
3162
  },
2992
3163
 
2993
3164
  setAttributeNS(namespace, name, value) {
2994
3165
  const vm = getAssociatedVM(this);
2995
3166
  const {
2996
- elm,
2997
- renderer: {
2998
- setAttribute
2999
- }
3167
+ elm
3000
3168
  } = vm;
3001
3169
 
3002
3170
  if (process.env.NODE_ENV !== 'production') {
@@ -3004,43 +3172,34 @@ LightningElement.prototype = {
3004
3172
  }
3005
3173
 
3006
3174
  unlockAttribute(elm, name);
3007
- setAttribute(elm, name, value, namespace);
3175
+ setAttribute$1(elm, name, value, namespace);
3008
3176
  lockAttribute();
3009
3177
  },
3010
3178
 
3011
3179
  getBoundingClientRect() {
3012
3180
  const vm = getAssociatedVM(this);
3013
3181
  const {
3014
- elm,
3015
- renderer: {
3016
- getBoundingClientRect
3017
- }
3182
+ elm
3018
3183
  } = vm;
3019
3184
 
3020
3185
  if (process.env.NODE_ENV !== 'production') {
3021
3186
  warnIfInvokedDuringConstruction(vm, 'getBoundingClientRect()');
3022
3187
  }
3023
3188
 
3024
- return getBoundingClientRect(elm);
3189
+ return getBoundingClientRect$1(elm);
3025
3190
  },
3026
3191
 
3027
3192
  get isConnected() {
3028
3193
  const {
3029
- elm,
3030
- renderer: {
3031
- isConnected
3032
- }
3194
+ elm
3033
3195
  } = getAssociatedVM(this);
3034
- return isConnected(elm);
3196
+ return isConnected$1(elm);
3035
3197
  },
3036
3198
 
3037
3199
  get classList() {
3038
3200
  const vm = getAssociatedVM(this);
3039
3201
  const {
3040
- elm,
3041
- renderer: {
3042
- getClassList
3043
- }
3202
+ elm
3044
3203
  } = vm;
3045
3204
 
3046
3205
  if (process.env.NODE_ENV !== 'production') {
@@ -3049,7 +3208,7 @@ LightningElement.prototype = {
3049
3208
  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.`);
3050
3209
  }
3051
3210
 
3052
- return getClassList(elm);
3211
+ return getClassList$1(elm);
3053
3212
  },
3054
3213
 
3055
3214
  get template() {
@@ -3083,23 +3242,48 @@ LightningElement.prototype = {
3083
3242
  }
3084
3243
 
3085
3244
  };
3086
- const queryAndChildGetterDescriptors = create(null);
3087
- 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
3245
+ const queryAndChildGetterDescriptors = create(null); // The reason we don't just call `import * as renderer from '../renderer'` here is that the bundle size
3246
+ // is smaller if we reference each function individually. Otherwise Rollup will create one big frozen
3247
+ // object representing the renderer, with a lot of methods we don't actually need.
3248
+
3249
+ const childGetters = ['children', 'childNodes', 'firstChild', 'firstElementChild', 'lastChild', 'lastElementChild'];
3250
+
3251
+ function getChildGetter(methodName) {
3252
+ switch (methodName) {
3253
+ case 'children':
3254
+ return getChildren$1;
3255
+
3256
+ case 'childNodes':
3257
+ return getChildNodes$1;
3258
+
3259
+ case 'firstChild':
3260
+ return getFirstChild$1;
3261
+
3262
+ case 'firstElementChild':
3263
+ return getFirstElementChild$1;
3264
+
3265
+ case 'lastChild':
3266
+ return getLastChild$1;
3267
+
3268
+ case 'lastElementChild':
3269
+ return getLastElementChild$1;
3270
+ }
3271
+ } // Generic passthrough for child getters on HTMLElement to the relevant Renderer APIs
3272
+
3088
3273
 
3089
- for (const [elementProp, rendererMethod] of childGetters) {
3090
- queryAndChildGetterDescriptors[elementProp] = {
3274
+ for (const childGetter of childGetters) {
3275
+ queryAndChildGetterDescriptors[childGetter] = {
3091
3276
  get() {
3092
3277
  const vm = getAssociatedVM(this);
3093
3278
  const {
3094
- elm,
3095
- renderer
3279
+ elm
3096
3280
  } = vm;
3097
3281
 
3098
3282
  if (process.env.NODE_ENV !== 'production') {
3099
- warnIfInvokedDuringConstruction(vm, elementProp);
3283
+ warnIfInvokedDuringConstruction(vm, childGetter);
3100
3284
  }
3101
3285
 
3102
- return renderer[rendererMethod](elm);
3286
+ return getChildGetter(childGetter)(elm);
3103
3287
  },
3104
3288
 
3105
3289
  configurable: true,
@@ -3107,22 +3291,38 @@ for (const [elementProp, rendererMethod] of childGetters) {
3107
3291
  };
3108
3292
  }
3109
3293
 
3110
- const queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll']; // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
3294
+ const queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll'];
3295
+
3296
+ function getQueryMethod(methodName) {
3297
+ switch (methodName) {
3298
+ case 'getElementsByClassName':
3299
+ return getElementsByClassName$1;
3300
+
3301
+ case 'getElementsByTagName':
3302
+ return getElementsByTagName$1;
3303
+
3304
+ case 'querySelector':
3305
+ return querySelector$1;
3306
+
3307
+ case 'querySelectorAll':
3308
+ return querySelectorAll$1;
3309
+ }
3310
+ } // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
3311
+
3111
3312
 
3112
3313
  for (const queryMethod of queryMethods) {
3113
3314
  queryAndChildGetterDescriptors[queryMethod] = {
3114
3315
  value(arg) {
3115
3316
  const vm = getAssociatedVM(this);
3116
3317
  const {
3117
- elm,
3118
- renderer
3318
+ elm
3119
3319
  } = vm;
3120
3320
 
3121
3321
  if (process.env.NODE_ENV !== 'production') {
3122
3322
  warnIfInvokedDuringConstruction(vm, `${queryMethod}()`);
3123
3323
  }
3124
3324
 
3125
- return renderer[queryMethod](elm, arg);
3325
+ return getQueryMethod(queryMethod)(elm, arg);
3126
3326
  },
3127
3327
 
3128
3328
  configurable: true,
@@ -4401,17 +4601,14 @@ function setScopeTokenClassIfNecessary(elm, owner) {
4401
4601
  const token = cmpTemplate === null || cmpTemplate === void 0 ? void 0 : cmpTemplate.stylesheetToken;
4402
4602
 
4403
4603
  if (!isUndefined$1(token) && context.hasScopedStyles) {
4404
- owner.renderer.getClassList(elm).add(token);
4604
+ getClassList$1(elm).add(token);
4405
4605
  }
4406
4606
  }
4407
4607
 
4408
4608
  function updateNodeHook(oldVnode, vnode) {
4409
4609
  const {
4410
4610
  elm,
4411
- text,
4412
- owner: {
4413
- renderer
4414
- }
4611
+ text
4415
4612
  } = vnode;
4416
4613
 
4417
4614
  if (oldVnode.text !== text) {
@@ -4419,7 +4616,7 @@ function updateNodeHook(oldVnode, vnode) {
4419
4616
  unlockDomMutation();
4420
4617
  }
4421
4618
 
4422
- renderer.setText(elm, text);
4619
+ setText$1(elm, text);
4423
4620
 
4424
4621
  if (process.env.NODE_ENV !== 'production') {
4425
4622
  lockDomMutation();
@@ -4428,15 +4625,11 @@ function updateNodeHook(oldVnode, vnode) {
4428
4625
  }
4429
4626
 
4430
4627
  function insertNodeHook(vnode, parentNode, referenceNode) {
4431
- const {
4432
- renderer
4433
- } = vnode.owner;
4434
-
4435
4628
  if (process.env.NODE_ENV !== 'production') {
4436
4629
  unlockDomMutation();
4437
4630
  }
4438
4631
 
4439
- renderer.insert(vnode.elm, parentNode, referenceNode);
4632
+ insert$1(vnode.elm, parentNode, referenceNode);
4440
4633
 
4441
4634
  if (process.env.NODE_ENV !== 'production') {
4442
4635
  lockDomMutation();
@@ -4444,15 +4637,11 @@ function insertNodeHook(vnode, parentNode, referenceNode) {
4444
4637
  }
4445
4638
 
4446
4639
  function removeNodeHook(vnode, parentNode) {
4447
- const {
4448
- renderer
4449
- } = vnode.owner;
4450
-
4451
4640
  if (process.env.NODE_ENV !== 'production') {
4452
4641
  unlockDomMutation();
4453
4642
  }
4454
4643
 
4455
- renderer.remove(vnode.elm, parentNode);
4644
+ remove$1(vnode.elm, parentNode);
4456
4645
 
4457
4646
  if (process.env.NODE_ENV !== 'production') {
4458
4647
  lockDomMutation();
@@ -4618,8 +4807,7 @@ function createViewModelHook(elm, vnode) {
4618
4807
  createVM(elm, def, {
4619
4808
  mode,
4620
4809
  owner,
4621
- tagName: sel,
4622
- renderer: owner.renderer
4810
+ tagName: sel
4623
4811
  });
4624
4812
 
4625
4813
  if (process.env.NODE_ENV !== 'production') {
@@ -4665,16 +4853,13 @@ function vnodesAndElementHaveCompatibleAttrs(vnode, elm) {
4665
4853
  const {
4666
4854
  data: {
4667
4855
  attrs = {}
4668
- },
4669
- owner: {
4670
- renderer
4671
4856
  }
4672
4857
  } = vnode;
4673
4858
  let nodesAreCompatible = true; // Validate attributes, though we could always recovery from those by running the update mods.
4674
4859
  // Note: intentionally ONLY matching vnodes.attrs to elm.attrs, in case SSR is adding extra attributes.
4675
4860
 
4676
4861
  for (const [attrName, attrValue] of Object.entries(attrs)) {
4677
- const elmAttrValue = renderer.getAttribute(elm, attrName);
4862
+ const elmAttrValue = getAttribute$1(elm, attrName);
4678
4863
 
4679
4864
  if (String(attrValue) !== elmAttrValue) {
4680
4865
  logError(`Mismatch hydrating element <${elm.tagName.toLowerCase()}>: attribute "${attrName}" has different values, expected "${attrValue}" but found "${elmAttrValue}"`, vnode.owner);
@@ -4690,9 +4875,6 @@ function vnodesAndElementHaveCompatibleClass(vnode, elm) {
4690
4875
  data: {
4691
4876
  className,
4692
4877
  classMap
4693
- },
4694
- owner: {
4695
- renderer
4696
4878
  }
4697
4879
  } = vnode;
4698
4880
  let nodesAreCompatible = true;
@@ -4704,7 +4886,7 @@ function vnodesAndElementHaveCompatibleClass(vnode, elm) {
4704
4886
  vnodeClassName = className;
4705
4887
  } else if (!isUndefined$1(classMap)) {
4706
4888
  // classMap is used when class is set to static value.
4707
- const classList = renderer.getClassList(elm);
4889
+ const classList = getClassList$1(elm);
4708
4890
  let computedClassName = ''; // all classes from the vnode should be in the element.classList
4709
4891
 
4710
4892
  for (const name in classMap) {
@@ -4734,12 +4916,9 @@ function vnodesAndElementHaveCompatibleStyle(vnode, elm) {
4734
4916
  data: {
4735
4917
  style,
4736
4918
  styleDecls
4737
- },
4738
- owner: {
4739
- renderer
4740
4919
  }
4741
4920
  } = vnode;
4742
- const elmStyle = renderer.getAttribute(elm, 'style') || '';
4921
+ const elmStyle = getAttribute$1(elm, 'style') || '';
4743
4922
  let vnodeStyle;
4744
4923
  let nodesAreCompatible = true;
4745
4924
 
@@ -4876,12 +5055,12 @@ function hasDynamicChildren(children) {
4876
5055
  */
4877
5056
 
4878
5057
 
4879
- function getUpgradableConstructor(tagName, renderer) {
5058
+ function getUpgradableConstructor(tagName) {
4880
5059
  // Should never get a tag with upper case letter at this point, the compiler should
4881
5060
  // produce only tags with lowercase letters
4882
5061
  // But, for backwards compatibility, we will lower case the tagName
4883
5062
  tagName = tagName.toLowerCase();
4884
- let CE = renderer.getCustomElement(tagName);
5063
+ let CE = getCustomElement$1(tagName);
4885
5064
 
4886
5065
  if (!isUndefined$1(CE)) {
4887
5066
  return CE;
@@ -4892,7 +5071,7 @@ function getUpgradableConstructor(tagName, renderer) {
4892
5071
  */
4893
5072
 
4894
5073
 
4895
- CE = class LWCUpgradableElement extends renderer.HTMLElement {
5074
+ CE = class LWCUpgradableElement extends HTMLElementExported$1 {
4896
5075
  constructor(upgradeCallback) {
4897
5076
  super();
4898
5077
 
@@ -4902,7 +5081,7 @@ function getUpgradableConstructor(tagName, renderer) {
4902
5081
  }
4903
5082
 
4904
5083
  };
4905
- renderer.defineCustomElement(tagName, CE);
5084
+ defineCustomElement$1(tagName, CE);
4906
5085
  return CE;
4907
5086
  }
4908
5087
  /*
@@ -4920,10 +5099,7 @@ const TextHook = {
4920
5099
  const {
4921
5100
  owner
4922
5101
  } = vnode;
4923
- const {
4924
- renderer
4925
- } = owner;
4926
- const elm = renderer.createText(vnode.text);
5102
+ const elm = createText$1(vnode.text);
4927
5103
  linkNodeToShadow(elm, owner);
4928
5104
  vnode.elm = elm;
4929
5105
  },
@@ -4957,10 +5133,7 @@ const CommentHook = {
4957
5133
  owner,
4958
5134
  text
4959
5135
  } = vnode;
4960
- const {
4961
- renderer
4962
- } = owner;
4963
- const elm = renderer.createComment(text);
5136
+ const elm = createComment$1(text);
4964
5137
  linkNodeToShadow(elm, owner);
4965
5138
  vnode.elm = elm;
4966
5139
  },
@@ -5002,11 +5175,8 @@ const ElementHook = {
5002
5175
  svg
5003
5176
  }
5004
5177
  } = vnode;
5005
- const {
5006
- renderer
5007
- } = owner;
5008
5178
  const namespace = isTrue(svg) ? SVG_NAMESPACE : undefined;
5009
- const elm = renderer.createElement(sel, namespace);
5179
+ const elm = createElement$1(sel, namespace);
5010
5180
  linkNodeToShadow(elm, owner);
5011
5181
  fallbackElmHook(elm, vnode);
5012
5182
  vnode.elm = elm;
@@ -5066,10 +5236,7 @@ const CustomElementHook = {
5066
5236
  sel,
5067
5237
  owner
5068
5238
  } = vnode;
5069
- const {
5070
- renderer
5071
- } = owner;
5072
- const UpgradableConstructor = getUpgradableConstructor(sel, renderer);
5239
+ const UpgradableConstructor = getUpgradableConstructor(sel);
5073
5240
  /**
5074
5241
  * Note: if the upgradable constructor does not expect, or throw when we new it
5075
5242
  * with a callback as the first argument, we could implement a more advanced
@@ -5162,8 +5329,7 @@ const CustomElementHook = {
5162
5329
  createVM(elm, def, {
5163
5330
  mode,
5164
5331
  owner,
5165
- tagName: sel,
5166
- renderer: owner.renderer
5332
+ tagName: sel
5167
5333
  });
5168
5334
  vnode.elm = elm;
5169
5335
  const vm = getAssociatedVM(elm);
@@ -5192,12 +5358,11 @@ const CustomElementHook = {
5192
5358
 
5193
5359
  function linkNodeToShadow(elm, owner) {
5194
5360
  const {
5195
- renderer,
5196
5361
  renderMode,
5197
5362
  shadowMode
5198
5363
  } = owner; // TODO [#1164]: this should eventually be done by the polyfill directly
5199
5364
 
5200
- if (renderer.isSyntheticShadowDefined) {
5365
+ if (isSyntheticShadowDefined$1) {
5201
5366
  if (shadowMode === 1
5202
5367
  /* Synthetic */
5203
5368
  || renderMode === 0
@@ -5729,7 +5894,6 @@ function updateStylesheetToken(vm, template) {
5729
5894
  const {
5730
5895
  elm,
5731
5896
  context,
5732
- renderer,
5733
5897
  renderMode,
5734
5898
  shadowMode
5735
5899
  } = vm;
@@ -5756,11 +5920,11 @@ function updateStylesheetToken(vm, template) {
5756
5920
  } = context;
5757
5921
 
5758
5922
  if (oldHasTokenInClass) {
5759
- renderer.getClassList(elm).remove(makeHostToken(oldToken));
5923
+ getClassList$1(elm).remove(makeHostToken(oldToken));
5760
5924
  }
5761
5925
 
5762
5926
  if (oldHasTokenInAttribute) {
5763
- renderer.removeAttribute(elm, makeHostToken(oldToken));
5927
+ removeAttribute$1(elm, makeHostToken(oldToken));
5764
5928
  } // Apply the new template styling token to the host element, if the new template has any
5765
5929
  // associated stylesheets. In the case of light DOM, also ensure there is at least one scoped stylesheet.
5766
5930
 
@@ -5772,12 +5936,12 @@ function updateStylesheetToken(vm, template) {
5772
5936
 
5773
5937
  if (!isUndefined$1(newToken)) {
5774
5938
  if (hasScopedStyles) {
5775
- renderer.getClassList(elm).add(makeHostToken(newToken));
5939
+ getClassList$1(elm).add(makeHostToken(newToken));
5776
5940
  newHasTokenInClass = true;
5777
5941
  }
5778
5942
 
5779
5943
  if (isSyntheticShadow) {
5780
- renderer.setAttribute(elm, makeHostToken(newToken), '');
5944
+ setAttribute$1(elm, makeHostToken(newToken), '');
5781
5945
  newHasTokenInAttribute = true;
5782
5946
  }
5783
5947
  } // Update the styling tokens present on the context object.
@@ -5898,7 +6062,6 @@ function getNearestNativeShadowComponent(vm) {
5898
6062
 
5899
6063
  function createStylesheet(vm, stylesheets) {
5900
6064
  const {
5901
- renderer,
5902
6065
  renderMode,
5903
6066
  shadowMode
5904
6067
  } = vm;
@@ -5909,9 +6072,9 @@ function createStylesheet(vm, stylesheets) {
5909
6072
  /* Synthetic */
5910
6073
  ) {
5911
6074
  for (let i = 0; i < stylesheets.length; i++) {
5912
- renderer.insertGlobalStylesheet(stylesheets[i]);
6075
+ insertGlobalStylesheet$1(stylesheets[i]);
5913
6076
  }
5914
- } else if (renderer.ssr || renderer.isHydrating()) {
6077
+ } else if (ssr$1 || isHydrating$1()) {
5915
6078
  // Note: We need to ensure that during hydration, the stylesheets method is the same as those in ssr.
5916
6079
  // This works in the client, because the stylesheets are created, and cached in the VM
5917
6080
  // the first time the VM renders.
@@ -5925,10 +6088,10 @@ function createStylesheet(vm, stylesheets) {
5925
6088
 
5926
6089
  for (let i = 0; i < stylesheets.length; i++) {
5927
6090
  if (isGlobal) {
5928
- renderer.insertGlobalStylesheet(stylesheets[i]);
6091
+ insertGlobalStylesheet$1(stylesheets[i]);
5929
6092
  } else {
5930
6093
  // local level
5931
- renderer.insertStylesheet(stylesheets[i], root.cmpRoot);
6094
+ insertStylesheet$1(stylesheets[i], root.cmpRoot);
5932
6095
  }
5933
6096
  }
5934
6097
  }
@@ -6562,7 +6725,6 @@ function createVM(elm, def, options) {
6562
6725
  const {
6563
6726
  mode,
6564
6727
  owner,
6565
- renderer,
6566
6728
  tagName
6567
6729
  } = options;
6568
6730
  const vm = {
@@ -6577,7 +6739,6 @@ function createVM(elm, def, options) {
6577
6739
  tagName,
6578
6740
  mode,
6579
6741
  owner,
6580
- renderer,
6581
6742
  children: EmptyArray,
6582
6743
  aChildren: EmptyArray,
6583
6744
  velements: EmptyArray,
@@ -6632,16 +6793,11 @@ function createVM(elm, def, options) {
6632
6793
 
6633
6794
  function computeShadowMode(vm) {
6634
6795
  const {
6635
- def,
6636
- renderer
6796
+ def
6637
6797
  } = vm;
6638
- const {
6639
- isNativeShadowDefined,
6640
- isSyntheticShadowDefined
6641
- } = renderer;
6642
6798
  let shadowMode;
6643
6799
 
6644
- if (isSyntheticShadowDefined) {
6800
+ if (isSyntheticShadowDefined$1) {
6645
6801
  if (def.renderMode === 0
6646
6802
  /* Light */
6647
6803
  ) {
@@ -6650,7 +6806,7 @@ function computeShadowMode(vm) {
6650
6806
  shadowMode = 0
6651
6807
  /* Native */
6652
6808
  ;
6653
- } else if (isNativeShadowDefined) {
6809
+ } else if (isNativeShadowDefined$1) {
6654
6810
  if (def.shadowSupportMode === "any"
6655
6811
  /* Any */
6656
6812
  ) {
@@ -6790,13 +6946,12 @@ function patchShadowRoot(vm, newCh) {
6790
6946
 
6791
6947
  function runRenderedCallback(vm) {
6792
6948
  const {
6793
- renderer,
6794
6949
  def: {
6795
6950
  renderedCallback
6796
6951
  }
6797
6952
  } = vm;
6798
6953
 
6799
- if (isTrue(renderer.ssr)) {
6954
+ if (isTrue(ssr$1)) {
6800
6955
  return;
6801
6956
  }
6802
6957
 
@@ -7022,8 +7177,7 @@ function recursivelyDisconnectChildren(vnodes) {
7022
7177
 
7023
7178
  function resetComponentRoot(vm) {
7024
7179
  const {
7025
- children,
7026
- renderer
7180
+ children
7027
7181
  } = vm;
7028
7182
  const rootNode = getRenderRoot(vm);
7029
7183
 
@@ -7031,7 +7185,7 @@ function resetComponentRoot(vm) {
7031
7185
  const child = children[i];
7032
7186
 
7033
7187
  if (!isNull(child) && !isUndefined$1(child.elm)) {
7034
- renderer.remove(child.elm, rootNode);
7188
+ remove$1(child.elm, rootNode);
7035
7189
  }
7036
7190
  }
7037
7191
 
@@ -7041,7 +7195,7 @@ function resetComponentRoot(vm) {
7041
7195
  }
7042
7196
 
7043
7197
  function scheduleRehydration(vm) {
7044
- if (isTrue(vm.renderer.ssr) || isTrue(vm.isScheduled)) {
7198
+ if (isTrue(ssr$1) || isTrue(vm.isScheduled)) {
7045
7199
  return;
7046
7200
  }
7047
7201
 
@@ -7268,7 +7422,6 @@ function createContextWatcher(vm, wireDef, callbackWhenContextIsReady) {
7268
7422
 
7269
7423
  const {
7270
7424
  elm,
7271
- renderer,
7272
7425
  context: {
7273
7426
  wiredConnecting,
7274
7427
  wiredDisconnecting
@@ -7295,7 +7448,7 @@ function createContextWatcher(vm, wireDef, callbackWhenContextIsReady) {
7295
7448
  }
7296
7449
 
7297
7450
  });
7298
- renderer.dispatchEvent(elm, contextRegistrationEvent);
7451
+ dispatchEvent$1(elm, contextRegistrationEvent);
7299
7452
  });
7300
7453
  }
7301
7454
 
@@ -7560,7 +7713,7 @@ function setHooks(hooks) {
7560
7713
  hooksAreSet = true;
7561
7714
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7562
7715
  }
7563
- /* version: 2.7.1 */
7716
+ /* version: 2.7.2 */
7564
7717
 
7565
7718
  /*
7566
7719
  * Copyright (c) 2020, salesforce.com, inc.
@@ -7634,7 +7787,7 @@ function registerCustomElement(name, ctor) {
7634
7787
  reverseRegistry.set(ctor, name);
7635
7788
  }
7636
7789
 
7637
- class HTMLElement$1 {
7790
+ class HTMLElementImpl {
7638
7791
  constructor() {
7639
7792
  const {
7640
7793
  constructor
@@ -7650,275 +7803,321 @@ class HTMLElement$1 {
7650
7803
 
7651
7804
  }
7652
7805
 
7653
- const renderer = {
7654
- ssr: true,
7655
-
7656
- isHydrating() {
7657
- return false;
7658
- },
7806
+ const ssr = true;
7659
7807
 
7660
- isNativeShadowDefined: false,
7661
- isSyntheticShadowDefined: false,
7808
+ function isHydrating() {
7809
+ return false;
7810
+ }
7662
7811
 
7663
- insert(node, parent, anchor) {
7664
- if (node.parent !== null && node.parent !== parent) {
7665
- const nodeIndex = node.parent.children.indexOf(node);
7666
- node.parent.children.splice(nodeIndex, 1);
7667
- }
7812
+ const isNativeShadowDefined = false;
7813
+ const isSyntheticShadowDefined = false;
7668
7814
 
7669
- node.parent = parent;
7670
- const anchorIndex = isNull(anchor) ? -1 : parent.children.indexOf(anchor);
7815
+ function insert(node, parent, anchor) {
7816
+ if (node.parent !== null && node.parent !== parent) {
7817
+ const nodeIndex = node.parent.children.indexOf(node);
7818
+ node.parent.children.splice(nodeIndex, 1);
7819
+ }
7671
7820
 
7672
- if (anchorIndex === -1) {
7673
- parent.children.push(node);
7674
- } else {
7675
- parent.children.splice(anchorIndex, 0, node);
7676
- }
7677
- },
7821
+ node.parent = parent;
7822
+ const anchorIndex = isNull(anchor) ? -1 : parent.children.indexOf(anchor);
7678
7823
 
7679
- remove(node, parent) {
7680
- const nodeIndex = parent.children.indexOf(node);
7681
- parent.children.splice(nodeIndex, 1);
7682
- },
7824
+ if (anchorIndex === -1) {
7825
+ parent.children.push(node);
7826
+ } else {
7827
+ parent.children.splice(anchorIndex, 0, node);
7828
+ }
7829
+ }
7683
7830
 
7684
- createElement,
7831
+ function remove(node, parent) {
7832
+ const nodeIndex = parent.children.indexOf(node);
7833
+ parent.children.splice(nodeIndex, 1);
7834
+ }
7685
7835
 
7686
- createText(content) {
7687
- return {
7688
- type: HostNodeType.Text,
7689
- value: String(content),
7690
- parent: null
7691
- };
7692
- },
7836
+ function createText(content) {
7837
+ return {
7838
+ type: HostNodeType.Text,
7839
+ value: String(content),
7840
+ parent: null
7841
+ };
7842
+ }
7693
7843
 
7694
- createComment(content) {
7695
- return {
7696
- type: HostNodeType.Comment,
7697
- value: content,
7698
- parent: null
7699
- };
7700
- },
7844
+ function createComment(content) {
7845
+ return {
7846
+ type: HostNodeType.Comment,
7847
+ value: content,
7848
+ parent: null
7849
+ };
7850
+ }
7701
7851
 
7702
- nextSibling(node) {
7703
- const {
7704
- parent
7705
- } = node;
7852
+ function nextSibling(node) {
7853
+ const {
7854
+ parent
7855
+ } = node;
7706
7856
 
7707
- if (isNull(parent)) {
7708
- return null;
7709
- }
7857
+ if (isNull(parent)) {
7858
+ return null;
7859
+ }
7710
7860
 
7711
- const nodeIndex = parent.children.indexOf(node);
7712
- return parent.children[nodeIndex + 1] || null;
7713
- },
7861
+ const nodeIndex = parent.children.indexOf(node);
7862
+ return parent.children[nodeIndex + 1] || null;
7863
+ }
7714
7864
 
7715
- attachShadow(element, config) {
7716
- element.shadowRoot = {
7717
- type: HostNodeType.ShadowRoot,
7718
- children: [],
7719
- mode: config.mode,
7720
- delegatesFocus: !!config.delegatesFocus
7721
- };
7722
- return element.shadowRoot;
7723
- },
7865
+ function attachShadow(element, config) {
7866
+ element.shadowRoot = {
7867
+ type: HostNodeType.ShadowRoot,
7868
+ children: [],
7869
+ mode: config.mode,
7870
+ delegatesFocus: !!config.delegatesFocus
7871
+ };
7872
+ return element.shadowRoot;
7873
+ }
7724
7874
 
7725
- getProperty(node, key) {
7726
- var _a, _b;
7875
+ function getProperty(node, key) {
7876
+ var _a, _b;
7727
7877
 
7728
- if (key in node) {
7729
- return node[key];
7730
- }
7878
+ if (key in node) {
7879
+ return node[key];
7880
+ }
7731
7881
 
7732
- if (node.type === HostNodeType.Element) {
7733
- const attrName = htmlPropertyToAttribute(key); // Handle all the boolean properties.
7882
+ if (node.type === HostNodeType.Element) {
7883
+ const attrName = htmlPropertyToAttribute(key); // Handle all the boolean properties.
7734
7884
 
7735
- if (isBooleanAttribute(attrName, node.name)) {
7736
- return (_a = this.getAttribute(node, attrName)) !== null && _a !== void 0 ? _a : false;
7737
- } // Handle global html attributes and AOM.
7885
+ if (isBooleanAttribute(attrName, node.name)) {
7886
+ return (_a = getAttribute(node, attrName)) !== null && _a !== void 0 ? _a : false;
7887
+ } // Handle global html attributes and AOM.
7738
7888
 
7739
7889
 
7740
- if (isGlobalHtmlAttribute(attrName) || isAriaAttribute(attrName)) {
7741
- return this.getAttribute(node, attrName);
7742
- } // Handle special elements live bindings. The checked property is already handled above
7743
- // in the boolean case.
7890
+ if (isGlobalHtmlAttribute(attrName) || isAriaAttribute(attrName)) {
7891
+ return getAttribute(node, attrName);
7892
+ } // Handle special elements live bindings. The checked property is already handled above
7893
+ // in the boolean case.
7744
7894
 
7745
7895
 
7746
- if (node.name === 'input' && key === 'value') {
7747
- return (_b = this.getAttribute(node, 'value')) !== null && _b !== void 0 ? _b : '';
7748
- }
7896
+ if (node.name === 'input' && key === 'value') {
7897
+ return (_b = getAttribute(node, 'value')) !== null && _b !== void 0 ? _b : '';
7749
7898
  }
7899
+ }
7750
7900
 
7751
- if (process.env.NODE_ENV !== 'production') {
7752
- // eslint-disable-next-line no-console
7753
- console.error(`Unexpected "${key}" property access from the renderer`);
7754
- }
7755
- },
7901
+ if (process.env.NODE_ENV !== 'production') {
7902
+ // eslint-disable-next-line no-console
7903
+ console.error(`Unexpected "${key}" property access from the renderer`);
7904
+ }
7905
+ }
7756
7906
 
7757
- setProperty(node, key, value) {
7758
- if (key in node) {
7759
- return node[key] = value;
7760
- }
7907
+ function setProperty(node, key, value) {
7908
+ if (key in node) {
7909
+ return node[key] = value;
7910
+ }
7761
7911
 
7762
- if (node.type === HostNodeType.Element) {
7763
- const attrName = htmlPropertyToAttribute(key);
7912
+ if (node.type === HostNodeType.Element) {
7913
+ const attrName = htmlPropertyToAttribute(key);
7764
7914
 
7765
- if (key === 'innerHTML') {
7766
- node.children = [{
7767
- type: HostNodeType.Raw,
7768
- parent: node,
7769
- value
7770
- }];
7771
- return;
7772
- } // Handle all the boolean properties.
7915
+ if (key === 'innerHTML') {
7916
+ node.children = [{
7917
+ type: HostNodeType.Raw,
7918
+ parent: node,
7919
+ value
7920
+ }];
7921
+ return;
7922
+ } // Handle all the boolean properties.
7773
7923
 
7774
7924
 
7775
- if (isBooleanAttribute(attrName, node.name)) {
7776
- return value === true ? this.setAttribute(node, attrName, '') : this.removeAttribute(node, attrName);
7777
- } // Handle global html attributes and AOM.
7925
+ if (isBooleanAttribute(attrName, node.name)) {
7926
+ return value === true ? setAttribute(node, attrName, '') : removeAttribute(node, attrName);
7927
+ } // Handle global html attributes and AOM.
7778
7928
 
7779
7929
 
7780
- if (isGlobalHtmlAttribute(attrName) || isAriaAttribute(attrName)) {
7781
- return this.setAttribute(node, attrName, value);
7782
- } // Handle special elements live bindings. The checked property is already handled above
7783
- // in the boolean case.
7930
+ if (isGlobalHtmlAttribute(attrName) || isAriaAttribute(attrName)) {
7931
+ return setAttribute(node, attrName, value);
7932
+ } // Handle special elements live bindings. The checked property is already handled above
7933
+ // in the boolean case.
7784
7934
 
7785
7935
 
7786
- if (node.name === 'input' && attrName === 'value') {
7787
- return isNull(value) || isUndefined$1(value) ? this.removeAttribute(node, 'value') : this.setAttribute(node, 'value', value);
7788
- }
7936
+ if (node.name === 'input' && attrName === 'value') {
7937
+ return isNull(value) || isUndefined$1(value) ? removeAttribute(node, 'value') : setAttribute(node, 'value', value);
7789
7938
  }
7939
+ }
7790
7940
 
7791
- if (process.env.NODE_ENV !== 'production') {
7792
- // eslint-disable-next-line no-console
7793
- console.error(`Unexpected attempt to set "${key}=${value}" property from the renderer`);
7794
- }
7795
- },
7941
+ if (process.env.NODE_ENV !== 'production') {
7942
+ // eslint-disable-next-line no-console
7943
+ console.error(`Unexpected attempt to set "${key}=${value}" property from the renderer`);
7944
+ }
7945
+ }
7796
7946
 
7797
- setText(node, content) {
7798
- if (node.type === HostNodeType.Text) {
7799
- node.value = content;
7800
- } else if (node.type === HostNodeType.Element) {
7801
- node.children = [{
7802
- type: HostNodeType.Text,
7803
- parent: node,
7804
- value: content
7805
- }];
7806
- }
7807
- },
7947
+ function setText(node, content) {
7948
+ if (node.type === HostNodeType.Text) {
7949
+ node.value = content;
7950
+ } else if (node.type === HostNodeType.Element) {
7951
+ node.children = [{
7952
+ type: HostNodeType.Text,
7953
+ parent: node,
7954
+ value: content
7955
+ }];
7956
+ }
7957
+ }
7808
7958
 
7809
- getAttribute(element, name, namespace = null) {
7810
- const attribute = element.attributes.find(attr => attr.name === name && attr.namespace === namespace);
7811
- return attribute ? attribute.value : null;
7812
- },
7959
+ function getAttribute(element, name, namespace = null) {
7960
+ const attribute = element.attributes.find(attr => attr.name === name && attr.namespace === namespace);
7961
+ return attribute ? attribute.value : null;
7962
+ }
7813
7963
 
7814
- setAttribute(element, name, value, namespace = null) {
7815
- const attribute = element.attributes.find(attr => attr.name === name && attr.namespace === namespace);
7964
+ function setAttribute(element, name, value, namespace = null) {
7965
+ const attribute = element.attributes.find(attr => attr.name === name && attr.namespace === namespace);
7816
7966
 
7817
- if (isUndefined$1(attribute)) {
7818
- element.attributes.push({
7819
- name,
7820
- namespace,
7821
- value: String(value)
7822
- });
7823
- } else {
7824
- attribute.value = value;
7967
+ if (isUndefined$1(namespace)) {
7968
+ namespace = null;
7969
+ }
7970
+
7971
+ if (isUndefined$1(attribute)) {
7972
+ element.attributes.push({
7973
+ name,
7974
+ namespace,
7975
+ value: String(value)
7976
+ });
7977
+ } else {
7978
+ attribute.value = value;
7979
+ }
7980
+ }
7981
+
7982
+ function removeAttribute(element, name, namespace) {
7983
+ element.attributes = element.attributes.filter(attr => attr.name !== name && attr.namespace !== namespace);
7984
+ }
7985
+
7986
+ function getClassList(element) {
7987
+ function getClassAttribute() {
7988
+ let classAttribute = element.attributes.find(attr => attr.name === 'class' && isNull(attr.namespace));
7989
+
7990
+ if (isUndefined$1(classAttribute)) {
7991
+ classAttribute = {
7992
+ name: 'class',
7993
+ namespace: null,
7994
+ value: ''
7995
+ };
7996
+ element.attributes.push(classAttribute);
7825
7997
  }
7826
- },
7827
7998
 
7828
- removeAttribute(element, name, namespace) {
7829
- element.attributes = element.attributes.filter(attr => attr.name !== name && attr.namespace !== namespace);
7830
- },
7999
+ return classAttribute;
8000
+ }
7831
8001
 
7832
- getClassList(element) {
7833
- function getClassAttribute() {
7834
- let classAttribute = element.attributes.find(attr => attr.name === 'class' && isNull(attr.namespace));
7835
-
7836
- if (isUndefined$1(classAttribute)) {
7837
- classAttribute = {
7838
- name: 'class',
7839
- namespace: null,
7840
- value: ''
7841
- };
7842
- element.attributes.push(classAttribute);
7843
- }
8002
+ return {
8003
+ add(...names) {
8004
+ const classAttribute = getClassAttribute();
8005
+ const tokenList = classNameToTokenList(classAttribute.value);
8006
+ names.forEach(name => tokenList.add(name));
8007
+ classAttribute.value = tokenListToClassName(tokenList);
8008
+ },
7844
8009
 
7845
- return classAttribute;
8010
+ remove(...names) {
8011
+ const classAttribute = getClassAttribute();
8012
+ const tokenList = classNameToTokenList(classAttribute.value);
8013
+ names.forEach(name => tokenList.delete(name));
8014
+ classAttribute.value = tokenListToClassName(tokenList);
7846
8015
  }
7847
8016
 
7848
- return {
7849
- add(...names) {
7850
- const classAttribute = getClassAttribute();
7851
- const tokenList = classNameToTokenList(classAttribute.value);
7852
- names.forEach(name => tokenList.add(name));
7853
- classAttribute.value = tokenListToClassName(tokenList);
7854
- },
8017
+ };
8018
+ }
7855
8019
 
7856
- remove(...names) {
7857
- const classAttribute = getClassAttribute();
7858
- const tokenList = classNameToTokenList(classAttribute.value);
7859
- names.forEach(name => tokenList.delete(name));
7860
- classAttribute.value = tokenListToClassName(tokenList);
7861
- }
8020
+ function setCSSStyleProperty(element, name, value, important) {
8021
+ const styleAttribute = element.attributes.find(attr => attr.name === 'style' && isNull(attr.namespace));
8022
+ const serializedProperty = `${name}: ${value}${important ? ' !important' : ''}`;
7862
8023
 
7863
- };
7864
- },
8024
+ if (isUndefined$1(styleAttribute)) {
8025
+ element.attributes.push({
8026
+ name: 'style',
8027
+ namespace: null,
8028
+ value: serializedProperty
8029
+ });
8030
+ } else {
8031
+ styleAttribute.value += `; ${serializedProperty}`;
8032
+ }
8033
+ }
7865
8034
 
7866
- setCSSStyleProperty(element, name, value, important) {
7867
- const styleAttribute = element.attributes.find(attr => attr.name === 'style' && isNull(attr.namespace));
7868
- const serializedProperty = `${name}: ${value}${important ? ' !important' : ''}`;
8035
+ function isConnected(node) {
8036
+ return !isNull(node.parent);
8037
+ } // Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
8038
+ // synthetic shadow.
7869
8039
 
7870
- if (isUndefined$1(styleAttribute)) {
7871
- element.attributes.push({
7872
- name: 'style',
7873
- namespace: null,
7874
- value: serializedProperty
7875
- });
7876
- } else {
7877
- styleAttribute.value += `; ${serializedProperty}`;
7878
- }
7879
- },
7880
8040
 
7881
- isConnected(node) {
7882
- return !isNull(node.parent);
7883
- },
8041
+ const insertGlobalStylesheet = noop; // Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
8042
+ // synthetic shadow.
7884
8043
 
7885
- insertGlobalStylesheet() {// Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
7886
- // synthetic shadow.
7887
- },
8044
+ const insertStylesheet = noop; // Noop on SSR.
7888
8045
 
7889
- insertStylesheet() {// Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
7890
- // synthetic shadow.
7891
- },
8046
+ const addEventListener = noop; // Noop on SSR.
7892
8047
 
7893
- addEventListener() {// Noop on SSR.
7894
- },
8048
+ const removeEventListener = noop;
8049
+ const dispatchEvent = unsupportedMethod('dispatchEvent');
8050
+ const getBoundingClientRect = unsupportedMethod('getBoundingClientRect');
8051
+ const querySelector = unsupportedMethod('querySelector');
8052
+ const querySelectorAll = unsupportedMethod('querySelectorAll');
8053
+ const getElementsByTagName = unsupportedMethod('getElementsByTagName');
8054
+ const getElementsByClassName = unsupportedMethod('getElementsByClassName');
8055
+ const getChildren = unsupportedMethod('getChildren');
8056
+ const getChildNodes = unsupportedMethod('getChildNodes');
8057
+ const getFirstChild = unsupportedMethod('getFirstChild');
8058
+ const getFirstElementChild = unsupportedMethod('getFirstElementChild');
8059
+ const getLastChild = unsupportedMethod('getLastChild');
8060
+ const getLastElementChild = unsupportedMethod('getLastElementChild');
7895
8061
 
7896
- removeEventListener() {// Noop on SSR.
7897
- },
8062
+ function defineCustomElement(name, constructor, _options) {
8063
+ registerCustomElement(name, constructor);
8064
+ }
7898
8065
 
7899
- dispatchEvent: unsupportedMethod('dispatchEvent'),
7900
- getBoundingClientRect: unsupportedMethod('getBoundingClientRect'),
7901
- querySelector: unsupportedMethod('querySelector'),
7902
- querySelectorAll: unsupportedMethod('querySelectorAll'),
7903
- getElementsByTagName: unsupportedMethod('getElementsByTagName'),
7904
- getElementsByClassName: unsupportedMethod('getElementsByClassName'),
7905
- getChildren: unsupportedMethod('getChildren'),
7906
- getChildNodes: unsupportedMethod('getChildNodes'),
7907
- getFirstChild: unsupportedMethod('getFirstChild'),
7908
- getFirstElementChild: unsupportedMethod('getFirstElementChild'),
7909
- getLastChild: unsupportedMethod('getLastChild'),
7910
- getLastElementChild: unsupportedMethod('getLastElementChild'),
7911
-
7912
- defineCustomElement(name, constructor, _options) {
7913
- registerCustomElement(name, constructor);
7914
- },
8066
+ function getCustomElement(name) {
8067
+ return registry[name];
8068
+ }
7915
8069
 
7916
- getCustomElement(name) {
7917
- return registry[name];
7918
- },
8070
+ const HTMLElementExported = HTMLElementImpl;
8071
+ /* noop */
7919
8072
 
7920
- HTMLElement: HTMLElement$1
7921
- };
8073
+ const assertInstanceOfHTMLElement = noop;
8074
+ /*
8075
+ * Copyright (c) 2020, salesforce.com, inc.
8076
+ * All rights reserved.
8077
+ * SPDX-License-Identifier: MIT
8078
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
8079
+ */
8080
+
8081
+ setAssertInstanceOfHTMLElement(assertInstanceOfHTMLElement);
8082
+ setAttachShadow(attachShadow);
8083
+ setCreateComment(createComment);
8084
+ setCreateElement(createElement);
8085
+ setCreateText(createText);
8086
+ setDefineCustomElement(defineCustomElement);
8087
+ setDispatchEvent(dispatchEvent);
8088
+ setGetAttribute(getAttribute);
8089
+ setGetBoundingClientRect(getBoundingClientRect);
8090
+ setGetChildNodes(getChildNodes);
8091
+ setGetChildren(getChildren);
8092
+ setGetClassList(getClassList);
8093
+ setGetCustomElement(getCustomElement);
8094
+ setGetElementsByClassName(getElementsByClassName);
8095
+ setGetElementsByTagName(getElementsByTagName);
8096
+ setGetFirstChild(getFirstChild);
8097
+ setGetFirstElementChild(getFirstElementChild);
8098
+ setGetLastChild(getLastChild);
8099
+ setGetLastElementChild(getLastElementChild);
8100
+ setGetProperty(getProperty);
8101
+ setHTMLElement(HTMLElementExported);
8102
+ setInsert(insert);
8103
+ setInsertGlobalStylesheet(insertGlobalStylesheet);
8104
+ setInsertStylesheet(insertStylesheet);
8105
+ setIsConnected(isConnected);
8106
+ setIsHydrating(isHydrating);
8107
+ setIsNativeShadowDefined(isNativeShadowDefined);
8108
+ setIsSyntheticShadowDefined(isSyntheticShadowDefined);
8109
+ setNextSibling(nextSibling);
8110
+ setQuerySelector(querySelector);
8111
+ setQuerySelectorAll(querySelectorAll);
8112
+ setRemove(remove);
8113
+ setRemoveAttribute(removeAttribute);
8114
+ setRemoveEventListener(removeEventListener);
8115
+ setSetAttribute(setAttribute);
8116
+ setSetCSSStyleProperty(setCSSStyleProperty);
8117
+ setSetProperty(setProperty);
8118
+ setSetText(setText);
8119
+ setSsr(ssr);
8120
+ setAddEventListener(addEventListener);
7922
8121
  /*
7923
8122
  * Copyright (c) 2020, salesforce.com, inc.
7924
8123
  * All rights reserved.
@@ -8029,12 +8228,11 @@ function renderComponent(tagName, Ctor, props = {}) {
8029
8228
  throw new TypeError(`"renderComponent" expects an object as the third parameter but instead received ${props}.`);
8030
8229
  }
8031
8230
 
8032
- const element = renderer.createElement(tagName);
8231
+ const element = createElement(tagName);
8033
8232
  const def = getComponentInternalDef(Ctor);
8034
8233
  createVM(element, def, {
8035
8234
  mode: 'open',
8036
8235
  owner: null,
8037
- renderer,
8038
8236
  tagName
8039
8237
  });
8040
8238
 
@@ -8056,6 +8254,6 @@ function renderComponent(tagName, Ctor, props = {}) {
8056
8254
 
8057
8255
  freeze(LightningElement);
8058
8256
  seal(LightningElement.prototype);
8059
- /* version: 2.7.1 */
8257
+ /* version: 2.7.2 */
8060
8258
 
8061
8259
  export { LightningElement, api$1 as api, createContextProvider, getComponentDef, isComponentConstructor, readonly, register, registerComponent, registerDecorators, registerTemplate, renderComponent, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, track, unwrap, wire };