lwc 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +578 -384
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +578 -384
  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 -360
  5. package/dist/engine-dom/iife/es5/engine-dom.js +630 -335
  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 -311
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +578 -384
  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 -360
  11. package/dist/engine-dom/umd/es5/engine-dom.js +630 -335
  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 -311
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +647 -454
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -9
  16. package/dist/engine-server/esm/es2017/engine-server.js +647 -454
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +115 -13
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +115 -13
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +115 -13
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +119 -13
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +119 -13
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +115 -13
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +115 -13
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +119 -13
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +119 -13
  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.6.2 */
338
+ /** version: 2.6.3 */
339
339
 
340
340
  /*
341
341
  * Copyright (c) 2020, salesforce.com, inc.
@@ -393,7 +393,6 @@ const features = {
393
393
  ENABLE_NODE_LIST_PATCH: null,
394
394
  ENABLE_HTML_COLLECTIONS_PATCH: null,
395
395
  ENABLE_NODE_PATCH: null,
396
- ENABLE_MIXED_SHADOW_MODE: null,
397
396
  ENABLE_WIRE_SYNC_EMIT: null
398
397
  };
399
398
 
@@ -458,7 +457,7 @@ function setFeatureFlagForTest(name, value) {
458
457
  setFeatureFlag(name, value);
459
458
  }
460
459
  }
461
- /** version: 2.6.2 */
460
+ /** version: 2.6.3 */
462
461
 
463
462
  /* proxy-compat-disable */
464
463
 
@@ -532,6 +531,249 @@ function parseStyleText(cssText) {
532
531
  }
533
532
 
534
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;
535
777
  }
536
778
  /*
537
779
  * Copyright (c) 2019, salesforce.com, inc.
@@ -785,9 +1027,6 @@ function createAllEventListeners(vnode) {
785
1027
  elm,
786
1028
  data: {
787
1029
  on
788
- },
789
- owner: {
790
- renderer
791
1030
  }
792
1031
  } = vnode;
793
1032
 
@@ -800,7 +1039,7 @@ function createAllEventListeners(vnode) {
800
1039
  let name;
801
1040
 
802
1041
  for (name in on) {
803
- renderer.addEventListener(elm, name, listener);
1042
+ addEventListener$1(elm, name, listener);
804
1043
  }
805
1044
  }
806
1045
 
@@ -942,9 +1181,6 @@ function updateAttrs(oldVnode, vnode) {
942
1181
  const {
943
1182
  data: {
944
1183
  attrs
945
- },
946
- owner: {
947
- renderer
948
1184
  }
949
1185
  } = vnode;
950
1186
 
@@ -967,10 +1203,6 @@ function updateAttrs(oldVnode, vnode) {
967
1203
  }
968
1204
 
969
1205
  const elm = vnode.elm;
970
- const {
971
- setAttribute,
972
- removeAttribute
973
- } = renderer;
974
1206
  let key;
975
1207
  oldAttrs = isUndefined$1(oldAttrs) ? EmptyObject : oldAttrs; // update modified attributes, add new attributes
976
1208
  // this routine is only useful for data-* attributes in all kind of elements
@@ -985,14 +1217,14 @@ function updateAttrs(oldVnode, vnode) {
985
1217
 
986
1218
  if (StringCharCodeAt.call(key, 3) === ColonCharCode) {
987
1219
  // Assume xml namespace
988
- setAttribute(elm, key, cur, xmlNS);
1220
+ setAttribute$1(elm, key, cur, xmlNS);
989
1221
  } else if (StringCharCodeAt.call(key, 5) === ColonCharCode) {
990
1222
  // Assume xlink namespace
991
- setAttribute(elm, key, cur, xlinkNS);
992
- } else if (isNull(cur)) {
993
- removeAttribute(elm, key);
1223
+ setAttribute$1(elm, key, cur, xlinkNS);
1224
+ } else if (isNull(cur) || isUndefined$1(cur)) {
1225
+ removeAttribute$1(elm, key);
994
1226
  } else {
995
- setAttribute(elm, key, cur);
1227
+ setAttribute$1(elm, key, cur);
996
1228
  }
997
1229
 
998
1230
  lockAttribute();
@@ -1040,17 +1272,14 @@ function update(oldVnode, vnode) {
1040
1272
  const isFirstPatch = isUndefined$1(oldProps);
1041
1273
  const {
1042
1274
  elm,
1043
- sel,
1044
- owner: {
1045
- renderer
1046
- }
1275
+ sel
1047
1276
  } = vnode;
1048
1277
 
1049
1278
  for (const key in props) {
1050
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...
1051
1280
 
1052
- if (isFirstPatch || cur !== (isLiveBindingProp(sel, key) ? renderer.getProperty(elm, key) : oldProps[key])) {
1053
- renderer.setProperty(elm, key, cur);
1281
+ if (isFirstPatch || cur !== (isLiveBindingProp(sel, key) ? getProperty$1(elm, key) : oldProps[key])) {
1282
+ setProperty$1(elm, key, cur);
1054
1283
  }
1055
1284
  }
1056
1285
  }
@@ -1119,9 +1348,6 @@ function updateClassAttribute(oldVnode, vnode) {
1119
1348
  elm,
1120
1349
  data: {
1121
1350
  className: newClass
1122
- },
1123
- owner: {
1124
- renderer
1125
1351
  }
1126
1352
  } = vnode;
1127
1353
  const {
@@ -1134,7 +1360,7 @@ function updateClassAttribute(oldVnode, vnode) {
1134
1360
  return;
1135
1361
  }
1136
1362
 
1137
- const classList = renderer.getClassList(elm);
1363
+ const classList = getClassList$1(elm);
1138
1364
  const newClassMap = getMapFromClassName(newClass);
1139
1365
  const oldClassMap = getMapFromClassName(oldClass);
1140
1366
  let name;
@@ -1172,24 +1398,17 @@ function updateStyleAttribute(oldVnode, vnode) {
1172
1398
  elm,
1173
1399
  data: {
1174
1400
  style: newStyle
1175
- },
1176
- owner: {
1177
- renderer
1178
1401
  }
1179
1402
  } = vnode;
1180
- const {
1181
- setAttribute,
1182
- removeAttribute
1183
- } = renderer;
1184
1403
 
1185
1404
  if (oldVnode.data.style === newStyle) {
1186
1405
  return;
1187
1406
  }
1188
1407
 
1189
1408
  if (!isString(newStyle) || newStyle === '') {
1190
- removeAttribute(elm, 'style');
1409
+ removeAttribute$1(elm, 'style');
1191
1410
  } else {
1192
- setAttribute(elm, 'style', newStyle);
1411
+ setAttribute$1(elm, 'style', newStyle);
1193
1412
  }
1194
1413
  }
1195
1414
 
@@ -1214,9 +1433,6 @@ function createClassAttribute(vnode) {
1214
1433
  elm,
1215
1434
  data: {
1216
1435
  classMap
1217
- },
1218
- owner: {
1219
- renderer
1220
1436
  }
1221
1437
  } = vnode;
1222
1438
 
@@ -1224,7 +1440,7 @@ function createClassAttribute(vnode) {
1224
1440
  return;
1225
1441
  }
1226
1442
 
1227
- const classList = renderer.getClassList(elm);
1443
+ const classList = getClassList$1(elm);
1228
1444
 
1229
1445
  for (const name in classMap) {
1230
1446
  classList.add(name);
@@ -1248,9 +1464,6 @@ function createStyleAttribute(vnode) {
1248
1464
  elm,
1249
1465
  data: {
1250
1466
  styleDecls
1251
- },
1252
- owner: {
1253
- renderer
1254
1467
  }
1255
1468
  } = vnode;
1256
1469
 
@@ -1260,7 +1473,7 @@ function createStyleAttribute(vnode) {
1260
1473
 
1261
1474
  for (let i = 0; i < styleDecls.length; i++) {
1262
1475
  const [prop, value, important] = styleDecls[i];
1263
- renderer.setCSSStyleProperty(elm, prop, value, important);
1476
+ setCSSStyleProperty$1(elm, prop, value, important);
1264
1477
  }
1265
1478
  }
1266
1479
 
@@ -1274,15 +1487,6 @@ var modStaticStyle = {
1274
1487
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1275
1488
  */
1276
1489
 
1277
- /**
1278
- @license
1279
- Copyright (c) 2015 Simon Friis Vindum.
1280
- This code may only be used under the MIT License found at
1281
- https://github.com/snabbdom/snabbdom/blob/master/LICENSE
1282
- Code distributed by Snabbdom as part of the Snabbdom project at
1283
- https://github.com/snabbdom/snabbdom/
1284
- */
1285
-
1286
1490
  function isUndef(s) {
1287
1491
  return s === undefined;
1288
1492
  }
@@ -1370,7 +1574,7 @@ function updateDynamicChildren(parentElm, oldCh, newCh) {
1370
1574
  } else if (sameVnode(oldStartVnode, newEndVnode)) {
1371
1575
  // Vnode moved right
1372
1576
  patchVnode(oldStartVnode, newEndVnode);
1373
- newEndVnode.hook.move(oldStartVnode, parentElm, oldEndVnode.owner.renderer.nextSibling(oldEndVnode.elm));
1577
+ newEndVnode.hook.move(oldStartVnode, parentElm, nextSibling$1(oldEndVnode.elm));
1374
1578
  oldStartVnode = oldCh[++oldStartIdx];
1375
1579
  newEndVnode = newCh[--newEndIdx];
1376
1580
  } else if (sameVnode(oldEndVnode, newStartVnode)) {
@@ -1852,7 +2056,7 @@ function patchLightningElementPrototypeWithRestrictions(proto) {
1852
2056
  defineProperties(proto, getLightningElementPrototypeRestrictionsDescriptors(proto));
1853
2057
  }
1854
2058
  /*
1855
- * Copyright (c) 2020, salesforce.com, inc.
2059
+ * Copyright (c) 2018, salesforce.com, inc.
1856
2060
  * All rights reserved.
1857
2061
  * SPDX-License-Identifier: MIT
1858
2062
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -2772,9 +2976,7 @@ function createBridgeToElementDescriptor(propName, descriptor) {
2772
2976
 
2773
2977
 
2774
2978
  const LightningElement = function () {
2775
- var _a; // This should be as performant as possible, while any initialization should be done lazily
2776
-
2777
-
2979
+ // This should be as performant as possible, while any initialization should be done lazily
2778
2980
  if (isNull(vmBeingConstructed)) {
2779
2981
  throw new ReferenceError('Illegal constructor');
2780
2982
  }
@@ -2782,15 +2984,14 @@ const LightningElement = function () {
2782
2984
  const vm = vmBeingConstructed;
2783
2985
  const {
2784
2986
  def,
2785
- elm,
2786
- renderer
2987
+ elm
2787
2988
  } = vm;
2788
2989
  const {
2789
2990
  bridge
2790
2991
  } = def;
2791
2992
 
2792
2993
  if (process.env.NODE_ENV !== 'production') {
2793
- (_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}.`);
2794
2995
  }
2795
2996
 
2796
2997
  const component = this;
@@ -2820,7 +3021,7 @@ const LightningElement = function () {
2820
3021
  if (vm.renderMode === 1
2821
3022
  /* Shadow */
2822
3023
  ) {
2823
- attachShadow(vm);
3024
+ doAttachShadow(vm);
2824
3025
  } // Adding extra guard rails in DEV mode.
2825
3026
 
2826
3027
 
@@ -2832,17 +3033,16 @@ const LightningElement = function () {
2832
3033
  return this;
2833
3034
  };
2834
3035
 
2835
- function attachShadow(vm) {
3036
+ function doAttachShadow(vm) {
2836
3037
  const {
2837
3038
  elm,
2838
3039
  mode,
2839
- renderer,
2840
3040
  shadowMode,
2841
3041
  def: {
2842
3042
  ctor
2843
3043
  }
2844
3044
  } = vm;
2845
- const cmpRoot = renderer.attachShadow(elm, {
3045
+ const cmpRoot = attachShadow$1(elm, {
2846
3046
  [KEY__SYNTHETIC_MODE]: shadowMode === 1
2847
3047
  /* Synthetic */
2848
3048
  ,
@@ -2869,21 +3069,15 @@ LightningElement.prototype = {
2869
3069
 
2870
3070
  dispatchEvent(event) {
2871
3071
  const {
2872
- elm,
2873
- renderer: {
2874
- dispatchEvent
2875
- }
3072
+ elm
2876
3073
  } = getAssociatedVM(this);
2877
- return dispatchEvent(elm, event);
3074
+ return dispatchEvent$1(elm, event);
2878
3075
  },
2879
3076
 
2880
3077
  addEventListener(type, listener, options) {
2881
3078
  const vm = getAssociatedVM(this);
2882
3079
  const {
2883
- elm,
2884
- renderer: {
2885
- addEventListener
2886
- }
3080
+ elm
2887
3081
  } = vm;
2888
3082
 
2889
3083
  if (process.env.NODE_ENV !== 'production') {
@@ -2894,92 +3088,68 @@ LightningElement.prototype = {
2894
3088
  }
2895
3089
 
2896
3090
  const wrappedListener = getWrappedComponentsListener(vm, listener);
2897
- addEventListener(elm, type, wrappedListener, options);
3091
+ addEventListener$1(elm, type, wrappedListener, options);
2898
3092
  },
2899
3093
 
2900
3094
  removeEventListener(type, listener, options) {
2901
3095
  const vm = getAssociatedVM(this);
2902
3096
  const {
2903
- elm,
2904
- renderer: {
2905
- removeEventListener
2906
- }
3097
+ elm
2907
3098
  } = vm;
2908
3099
  const wrappedListener = getWrappedComponentsListener(vm, listener);
2909
- removeEventListener(elm, type, wrappedListener, options);
3100
+ removeEventListener$1(elm, type, wrappedListener, options);
2910
3101
  },
2911
3102
 
2912
3103
  hasAttribute(name) {
2913
3104
  const {
2914
- elm,
2915
- renderer: {
2916
- getAttribute
2917
- }
3105
+ elm
2918
3106
  } = getAssociatedVM(this);
2919
- return !isNull(getAttribute(elm, name));
3107
+ return !isNull(getAttribute$1(elm, name));
2920
3108
  },
2921
3109
 
2922
3110
  hasAttributeNS(namespace, name) {
2923
3111
  const {
2924
- elm,
2925
- renderer: {
2926
- getAttribute
2927
- }
3112
+ elm
2928
3113
  } = getAssociatedVM(this);
2929
- return !isNull(getAttribute(elm, name, namespace));
3114
+ return !isNull(getAttribute$1(elm, name, namespace));
2930
3115
  },
2931
3116
 
2932
3117
  removeAttribute(name) {
2933
3118
  const {
2934
- elm,
2935
- renderer: {
2936
- removeAttribute
2937
- }
3119
+ elm
2938
3120
  } = getAssociatedVM(this);
2939
3121
  unlockAttribute(elm, name);
2940
- removeAttribute(elm, name);
3122
+ removeAttribute$1(elm, name);
2941
3123
  lockAttribute();
2942
3124
  },
2943
3125
 
2944
3126
  removeAttributeNS(namespace, name) {
2945
3127
  const {
2946
- elm,
2947
- renderer: {
2948
- removeAttribute
2949
- }
3128
+ elm
2950
3129
  } = getAssociatedVM(this);
2951
3130
  unlockAttribute(elm, name);
2952
- removeAttribute(elm, name, namespace);
3131
+ removeAttribute$1(elm, name, namespace);
2953
3132
  lockAttribute();
2954
3133
  },
2955
3134
 
2956
3135
  getAttribute(name) {
2957
3136
  const {
2958
- elm,
2959
- renderer: {
2960
- getAttribute
2961
- }
3137
+ elm
2962
3138
  } = getAssociatedVM(this);
2963
- return getAttribute(elm, name);
3139
+ return getAttribute$1(elm, name);
2964
3140
  },
2965
3141
 
2966
3142
  getAttributeNS(namespace, name) {
2967
3143
  const {
2968
- elm,
2969
- renderer: {
2970
- getAttribute
2971
- }
3144
+ elm
2972
3145
  } = getAssociatedVM(this);
2973
- return getAttribute(elm, name, namespace);
3146
+ return getAttribute$1(elm, name, namespace);
2974
3147
  },
2975
3148
 
2976
3149
  setAttribute(name, value) {
2977
3150
  const vm = getAssociatedVM(this);
2978
3151
  const {
2979
- elm,
2980
- renderer: {
2981
- setAttribute
2982
- }
3152
+ elm
2983
3153
  } = vm;
2984
3154
 
2985
3155
  if (process.env.NODE_ENV !== 'production') {
@@ -2987,17 +3157,14 @@ LightningElement.prototype = {
2987
3157
  }
2988
3158
 
2989
3159
  unlockAttribute(elm, name);
2990
- setAttribute(elm, name, value);
3160
+ setAttribute$1(elm, name, value);
2991
3161
  lockAttribute();
2992
3162
  },
2993
3163
 
2994
3164
  setAttributeNS(namespace, name, value) {
2995
3165
  const vm = getAssociatedVM(this);
2996
3166
  const {
2997
- elm,
2998
- renderer: {
2999
- setAttribute
3000
- }
3167
+ elm
3001
3168
  } = vm;
3002
3169
 
3003
3170
  if (process.env.NODE_ENV !== 'production') {
@@ -3005,43 +3172,34 @@ LightningElement.prototype = {
3005
3172
  }
3006
3173
 
3007
3174
  unlockAttribute(elm, name);
3008
- setAttribute(elm, name, value, namespace);
3175
+ setAttribute$1(elm, name, value, namespace);
3009
3176
  lockAttribute();
3010
3177
  },
3011
3178
 
3012
3179
  getBoundingClientRect() {
3013
3180
  const vm = getAssociatedVM(this);
3014
3181
  const {
3015
- elm,
3016
- renderer: {
3017
- getBoundingClientRect
3018
- }
3182
+ elm
3019
3183
  } = vm;
3020
3184
 
3021
3185
  if (process.env.NODE_ENV !== 'production') {
3022
3186
  warnIfInvokedDuringConstruction(vm, 'getBoundingClientRect()');
3023
3187
  }
3024
3188
 
3025
- return getBoundingClientRect(elm);
3189
+ return getBoundingClientRect$1(elm);
3026
3190
  },
3027
3191
 
3028
3192
  get isConnected() {
3029
3193
  const {
3030
- elm,
3031
- renderer: {
3032
- isConnected
3033
- }
3194
+ elm
3034
3195
  } = getAssociatedVM(this);
3035
- return isConnected(elm);
3196
+ return isConnected$1(elm);
3036
3197
  },
3037
3198
 
3038
3199
  get classList() {
3039
3200
  const vm = getAssociatedVM(this);
3040
3201
  const {
3041
- elm,
3042
- renderer: {
3043
- getClassList
3044
- }
3202
+ elm
3045
3203
  } = vm;
3046
3204
 
3047
3205
  if (process.env.NODE_ENV !== 'production') {
@@ -3050,7 +3208,7 @@ LightningElement.prototype = {
3050
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.`);
3051
3209
  }
3052
3210
 
3053
- return getClassList(elm);
3211
+ return getClassList$1(elm);
3054
3212
  },
3055
3213
 
3056
3214
  get template() {
@@ -3084,23 +3242,48 @@ LightningElement.prototype = {
3084
3242
  }
3085
3243
 
3086
3244
  };
3087
- const queryAndChildGetterDescriptors = create(null);
3088
- 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;
3089
3264
 
3090
- for (const [elementProp, rendererMethod] of childGetters) {
3091
- queryAndChildGetterDescriptors[elementProp] = {
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
+
3273
+
3274
+ for (const childGetter of childGetters) {
3275
+ queryAndChildGetterDescriptors[childGetter] = {
3092
3276
  get() {
3093
3277
  const vm = getAssociatedVM(this);
3094
3278
  const {
3095
- elm,
3096
- renderer
3279
+ elm
3097
3280
  } = vm;
3098
3281
 
3099
3282
  if (process.env.NODE_ENV !== 'production') {
3100
- warnIfInvokedDuringConstruction(vm, elementProp);
3283
+ warnIfInvokedDuringConstruction(vm, childGetter);
3101
3284
  }
3102
3285
 
3103
- return renderer[rendererMethod](elm);
3286
+ return getChildGetter(childGetter)(elm);
3104
3287
  },
3105
3288
 
3106
3289
  configurable: true,
@@ -3108,22 +3291,38 @@ for (const [elementProp, rendererMethod] of childGetters) {
3108
3291
  };
3109
3292
  }
3110
3293
 
3111
- 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
+
3112
3312
 
3113
3313
  for (const queryMethod of queryMethods) {
3114
3314
  queryAndChildGetterDescriptors[queryMethod] = {
3115
3315
  value(arg) {
3116
3316
  const vm = getAssociatedVM(this);
3117
3317
  const {
3118
- elm,
3119
- renderer
3318
+ elm
3120
3319
  } = vm;
3121
3320
 
3122
3321
  if (process.env.NODE_ENV !== 'production') {
3123
3322
  warnIfInvokedDuringConstruction(vm, `${queryMethod}()`);
3124
3323
  }
3125
3324
 
3126
- return renderer[queryMethod](elm, arg);
3325
+ return getQueryMethod(queryMethod)(elm, arg);
3127
3326
  },
3128
3327
 
3129
3328
  configurable: true,
@@ -4159,10 +4358,6 @@ function createComponentDef(Ctor) {
4159
4358
 
4160
4359
  assert.isTrue(Ctor.constructor, `Missing ${ctorName}.constructor, ${ctorName} should have a "constructor" property.`);
4161
4360
 
4162
- if (!runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
4163
- assert.isFalse('shadowSupportMode' in Ctor, `${ctorName || 'Anonymous class'} is an invalid LWC component. The shadowSupportMode static property is not available in this environment.`);
4164
- }
4165
-
4166
4361
  if (!isUndefined$1(ctorShadowSupportMode)) {
4167
4362
  assert.invariant(ctorShadowSupportMode === "any"
4168
4363
  /* Any */
@@ -4406,17 +4601,14 @@ function setScopeTokenClassIfNecessary(elm, owner) {
4406
4601
  const token = cmpTemplate === null || cmpTemplate === void 0 ? void 0 : cmpTemplate.stylesheetToken;
4407
4602
 
4408
4603
  if (!isUndefined$1(token) && context.hasScopedStyles) {
4409
- owner.renderer.getClassList(elm).add(token);
4604
+ getClassList$1(elm).add(token);
4410
4605
  }
4411
4606
  }
4412
4607
 
4413
4608
  function updateNodeHook(oldVnode, vnode) {
4414
4609
  const {
4415
4610
  elm,
4416
- text,
4417
- owner: {
4418
- renderer
4419
- }
4611
+ text
4420
4612
  } = vnode;
4421
4613
 
4422
4614
  if (oldVnode.text !== text) {
@@ -4424,7 +4616,7 @@ function updateNodeHook(oldVnode, vnode) {
4424
4616
  unlockDomMutation();
4425
4617
  }
4426
4618
 
4427
- renderer.setText(elm, text);
4619
+ setText$1(elm, text);
4428
4620
 
4429
4621
  if (process.env.NODE_ENV !== 'production') {
4430
4622
  lockDomMutation();
@@ -4433,15 +4625,11 @@ function updateNodeHook(oldVnode, vnode) {
4433
4625
  }
4434
4626
 
4435
4627
  function insertNodeHook(vnode, parentNode, referenceNode) {
4436
- const {
4437
- renderer
4438
- } = vnode.owner;
4439
-
4440
4628
  if (process.env.NODE_ENV !== 'production') {
4441
4629
  unlockDomMutation();
4442
4630
  }
4443
4631
 
4444
- renderer.insert(vnode.elm, parentNode, referenceNode);
4632
+ insert$1(vnode.elm, parentNode, referenceNode);
4445
4633
 
4446
4634
  if (process.env.NODE_ENV !== 'production') {
4447
4635
  lockDomMutation();
@@ -4449,15 +4637,11 @@ function insertNodeHook(vnode, parentNode, referenceNode) {
4449
4637
  }
4450
4638
 
4451
4639
  function removeNodeHook(vnode, parentNode) {
4452
- const {
4453
- renderer
4454
- } = vnode.owner;
4455
-
4456
4640
  if (process.env.NODE_ENV !== 'production') {
4457
4641
  unlockDomMutation();
4458
4642
  }
4459
4643
 
4460
- renderer.remove(vnode.elm, parentNode);
4644
+ remove$1(vnode.elm, parentNode);
4461
4645
 
4462
4646
  if (process.env.NODE_ENV !== 'production') {
4463
4647
  lockDomMutation();
@@ -4623,8 +4807,7 @@ function createViewModelHook(elm, vnode) {
4623
4807
  createVM(elm, def, {
4624
4808
  mode,
4625
4809
  owner,
4626
- tagName: sel,
4627
- renderer: owner.renderer
4810
+ tagName: sel
4628
4811
  });
4629
4812
 
4630
4813
  if (process.env.NODE_ENV !== 'production') {
@@ -4670,16 +4853,13 @@ function vnodesAndElementHaveCompatibleAttrs(vnode, elm) {
4670
4853
  const {
4671
4854
  data: {
4672
4855
  attrs = {}
4673
- },
4674
- owner: {
4675
- renderer
4676
4856
  }
4677
4857
  } = vnode;
4678
4858
  let nodesAreCompatible = true; // Validate attributes, though we could always recovery from those by running the update mods.
4679
4859
  // Note: intentionally ONLY matching vnodes.attrs to elm.attrs, in case SSR is adding extra attributes.
4680
4860
 
4681
4861
  for (const [attrName, attrValue] of Object.entries(attrs)) {
4682
- const elmAttrValue = renderer.getAttribute(elm, attrName);
4862
+ const elmAttrValue = getAttribute$1(elm, attrName);
4683
4863
 
4684
4864
  if (String(attrValue) !== elmAttrValue) {
4685
4865
  logError(`Mismatch hydrating element <${elm.tagName.toLowerCase()}>: attribute "${attrName}" has different values, expected "${attrValue}" but found "${elmAttrValue}"`, vnode.owner);
@@ -4695,9 +4875,6 @@ function vnodesAndElementHaveCompatibleClass(vnode, elm) {
4695
4875
  data: {
4696
4876
  className,
4697
4877
  classMap
4698
- },
4699
- owner: {
4700
- renderer
4701
4878
  }
4702
4879
  } = vnode;
4703
4880
  let nodesAreCompatible = true;
@@ -4709,7 +4886,7 @@ function vnodesAndElementHaveCompatibleClass(vnode, elm) {
4709
4886
  vnodeClassName = className;
4710
4887
  } else if (!isUndefined$1(classMap)) {
4711
4888
  // classMap is used when class is set to static value.
4712
- const classList = renderer.getClassList(elm);
4889
+ const classList = getClassList$1(elm);
4713
4890
  let computedClassName = ''; // all classes from the vnode should be in the element.classList
4714
4891
 
4715
4892
  for (const name in classMap) {
@@ -4739,12 +4916,9 @@ function vnodesAndElementHaveCompatibleStyle(vnode, elm) {
4739
4916
  data: {
4740
4917
  style,
4741
4918
  styleDecls
4742
- },
4743
- owner: {
4744
- renderer
4745
4919
  }
4746
4920
  } = vnode;
4747
- const elmStyle = renderer.getAttribute(elm, 'style') || '';
4921
+ const elmStyle = getAttribute$1(elm, 'style') || '';
4748
4922
  let vnodeStyle;
4749
4923
  let nodesAreCompatible = true;
4750
4924
 
@@ -4881,12 +5055,12 @@ function hasDynamicChildren(children) {
4881
5055
  */
4882
5056
 
4883
5057
 
4884
- function getUpgradableConstructor(tagName, renderer) {
5058
+ function getUpgradableConstructor(tagName) {
4885
5059
  // Should never get a tag with upper case letter at this point, the compiler should
4886
5060
  // produce only tags with lowercase letters
4887
5061
  // But, for backwards compatibility, we will lower case the tagName
4888
5062
  tagName = tagName.toLowerCase();
4889
- let CE = renderer.getCustomElement(tagName);
5063
+ let CE = getCustomElement$1(tagName);
4890
5064
 
4891
5065
  if (!isUndefined$1(CE)) {
4892
5066
  return CE;
@@ -4897,7 +5071,7 @@ function getUpgradableConstructor(tagName, renderer) {
4897
5071
  */
4898
5072
 
4899
5073
 
4900
- CE = class LWCUpgradableElement extends renderer.HTMLElement {
5074
+ CE = class LWCUpgradableElement extends HTMLElementExported$1 {
4901
5075
  constructor(upgradeCallback) {
4902
5076
  super();
4903
5077
 
@@ -4907,7 +5081,7 @@ function getUpgradableConstructor(tagName, renderer) {
4907
5081
  }
4908
5082
 
4909
5083
  };
4910
- renderer.defineCustomElement(tagName, CE);
5084
+ defineCustomElement$1(tagName, CE);
4911
5085
  return CE;
4912
5086
  }
4913
5087
  /*
@@ -4925,10 +5099,7 @@ const TextHook = {
4925
5099
  const {
4926
5100
  owner
4927
5101
  } = vnode;
4928
- const {
4929
- renderer
4930
- } = owner;
4931
- const elm = renderer.createText(vnode.text);
5102
+ const elm = createText$1(vnode.text);
4932
5103
  linkNodeToShadow(elm, owner);
4933
5104
  vnode.elm = elm;
4934
5105
  },
@@ -4962,10 +5133,7 @@ const CommentHook = {
4962
5133
  owner,
4963
5134
  text
4964
5135
  } = vnode;
4965
- const {
4966
- renderer
4967
- } = owner;
4968
- const elm = renderer.createComment(text);
5136
+ const elm = createComment$1(text);
4969
5137
  linkNodeToShadow(elm, owner);
4970
5138
  vnode.elm = elm;
4971
5139
  },
@@ -5007,11 +5175,8 @@ const ElementHook = {
5007
5175
  svg
5008
5176
  }
5009
5177
  } = vnode;
5010
- const {
5011
- renderer
5012
- } = owner;
5013
5178
  const namespace = isTrue(svg) ? SVG_NAMESPACE : undefined;
5014
- const elm = renderer.createElement(sel, namespace);
5179
+ const elm = createElement$1(sel, namespace);
5015
5180
  linkNodeToShadow(elm, owner);
5016
5181
  fallbackElmHook(elm, vnode);
5017
5182
  vnode.elm = elm;
@@ -5071,10 +5236,7 @@ const CustomElementHook = {
5071
5236
  sel,
5072
5237
  owner
5073
5238
  } = vnode;
5074
- const {
5075
- renderer
5076
- } = owner;
5077
- const UpgradableConstructor = getUpgradableConstructor(sel, renderer);
5239
+ const UpgradableConstructor = getUpgradableConstructor(sel);
5078
5240
  /**
5079
5241
  * Note: if the upgradable constructor does not expect, or throw when we new it
5080
5242
  * with a callback as the first argument, we could implement a more advanced
@@ -5167,8 +5329,7 @@ const CustomElementHook = {
5167
5329
  createVM(elm, def, {
5168
5330
  mode,
5169
5331
  owner,
5170
- tagName: sel,
5171
- renderer: owner.renderer
5332
+ tagName: sel
5172
5333
  });
5173
5334
  vnode.elm = elm;
5174
5335
  const vm = getAssociatedVM(elm);
@@ -5197,12 +5358,11 @@ const CustomElementHook = {
5197
5358
 
5198
5359
  function linkNodeToShadow(elm, owner) {
5199
5360
  const {
5200
- renderer,
5201
5361
  renderMode,
5202
5362
  shadowMode
5203
5363
  } = owner; // TODO [#1164]: this should eventually be done by the polyfill directly
5204
5364
 
5205
- if (renderer.isSyntheticShadowDefined) {
5365
+ if (isSyntheticShadowDefined$1) {
5206
5366
  if (shadowMode === 1
5207
5367
  /* Synthetic */
5208
5368
  || renderMode === 0
@@ -5734,7 +5894,6 @@ function updateStylesheetToken(vm, template) {
5734
5894
  const {
5735
5895
  elm,
5736
5896
  context,
5737
- renderer,
5738
5897
  renderMode,
5739
5898
  shadowMode
5740
5899
  } = vm;
@@ -5761,11 +5920,11 @@ function updateStylesheetToken(vm, template) {
5761
5920
  } = context;
5762
5921
 
5763
5922
  if (oldHasTokenInClass) {
5764
- renderer.getClassList(elm).remove(makeHostToken(oldToken));
5923
+ getClassList$1(elm).remove(makeHostToken(oldToken));
5765
5924
  }
5766
5925
 
5767
5926
  if (oldHasTokenInAttribute) {
5768
- renderer.removeAttribute(elm, makeHostToken(oldToken));
5927
+ removeAttribute$1(elm, makeHostToken(oldToken));
5769
5928
  } // Apply the new template styling token to the host element, if the new template has any
5770
5929
  // associated stylesheets. In the case of light DOM, also ensure there is at least one scoped stylesheet.
5771
5930
 
@@ -5777,12 +5936,12 @@ function updateStylesheetToken(vm, template) {
5777
5936
 
5778
5937
  if (!isUndefined$1(newToken)) {
5779
5938
  if (hasScopedStyles) {
5780
- renderer.getClassList(elm).add(makeHostToken(newToken));
5939
+ getClassList$1(elm).add(makeHostToken(newToken));
5781
5940
  newHasTokenInClass = true;
5782
5941
  }
5783
5942
 
5784
5943
  if (isSyntheticShadow) {
5785
- renderer.setAttribute(elm, makeHostToken(newToken), '');
5944
+ setAttribute$1(elm, makeHostToken(newToken), '');
5786
5945
  newHasTokenInAttribute = true;
5787
5946
  }
5788
5947
  } // Update the styling tokens present on the context object.
@@ -5903,7 +6062,6 @@ function getNearestNativeShadowComponent(vm) {
5903
6062
 
5904
6063
  function createStylesheet(vm, stylesheets) {
5905
6064
  const {
5906
- renderer,
5907
6065
  renderMode,
5908
6066
  shadowMode
5909
6067
  } = vm;
@@ -5914,9 +6072,9 @@ function createStylesheet(vm, stylesheets) {
5914
6072
  /* Synthetic */
5915
6073
  ) {
5916
6074
  for (let i = 0; i < stylesheets.length; i++) {
5917
- renderer.insertGlobalStylesheet(stylesheets[i]);
6075
+ insertGlobalStylesheet$1(stylesheets[i]);
5918
6076
  }
5919
- } else if (renderer.ssr || renderer.isHydrating()) {
6077
+ } else if (ssr$1 || isHydrating$1()) {
5920
6078
  // Note: We need to ensure that during hydration, the stylesheets method is the same as those in ssr.
5921
6079
  // This works in the client, because the stylesheets are created, and cached in the VM
5922
6080
  // the first time the VM renders.
@@ -5930,10 +6088,10 @@ function createStylesheet(vm, stylesheets) {
5930
6088
 
5931
6089
  for (let i = 0; i < stylesheets.length; i++) {
5932
6090
  if (isGlobal) {
5933
- renderer.insertGlobalStylesheet(stylesheets[i]);
6091
+ insertGlobalStylesheet$1(stylesheets[i]);
5934
6092
  } else {
5935
6093
  // local level
5936
- renderer.insertStylesheet(stylesheets[i], root.cmpRoot);
6094
+ insertStylesheet$1(stylesheets[i], root.cmpRoot);
5937
6095
  }
5938
6096
  }
5939
6097
  }
@@ -6567,7 +6725,6 @@ function createVM(elm, def, options) {
6567
6725
  const {
6568
6726
  mode,
6569
6727
  owner,
6570
- renderer,
6571
6728
  tagName
6572
6729
  } = options;
6573
6730
  const vm = {
@@ -6582,7 +6739,6 @@ function createVM(elm, def, options) {
6582
6739
  tagName,
6583
6740
  mode,
6584
6741
  owner,
6585
- renderer,
6586
6742
  children: EmptyArray,
6587
6743
  aChildren: EmptyArray,
6588
6744
  velements: EmptyArray,
@@ -6637,16 +6793,11 @@ function createVM(elm, def, options) {
6637
6793
 
6638
6794
  function computeShadowMode(vm) {
6639
6795
  const {
6640
- def,
6641
- renderer
6796
+ def
6642
6797
  } = vm;
6643
- const {
6644
- isNativeShadowDefined,
6645
- isSyntheticShadowDefined
6646
- } = renderer;
6647
6798
  let shadowMode;
6648
6799
 
6649
- if (isSyntheticShadowDefined) {
6800
+ if (isSyntheticShadowDefined$1) {
6650
6801
  if (def.renderMode === 0
6651
6802
  /* Light */
6652
6803
  ) {
@@ -6655,7 +6806,7 @@ function computeShadowMode(vm) {
6655
6806
  shadowMode = 0
6656
6807
  /* Native */
6657
6808
  ;
6658
- } else if (isNativeShadowDefined) {
6809
+ } else if (isNativeShadowDefined$1) {
6659
6810
  if (def.shadowSupportMode === "any"
6660
6811
  /* Any */
6661
6812
  ) {
@@ -6795,13 +6946,12 @@ function patchShadowRoot(vm, newCh) {
6795
6946
 
6796
6947
  function runRenderedCallback(vm) {
6797
6948
  const {
6798
- renderer,
6799
6949
  def: {
6800
6950
  renderedCallback
6801
6951
  }
6802
6952
  } = vm;
6803
6953
 
6804
- if (isTrue(renderer.ssr)) {
6954
+ if (isTrue(ssr$1)) {
6805
6955
  return;
6806
6956
  }
6807
6957
 
@@ -7027,8 +7177,7 @@ function recursivelyDisconnectChildren(vnodes) {
7027
7177
 
7028
7178
  function resetComponentRoot(vm) {
7029
7179
  const {
7030
- children,
7031
- renderer
7180
+ children
7032
7181
  } = vm;
7033
7182
  const rootNode = getRenderRoot(vm);
7034
7183
 
@@ -7036,7 +7185,7 @@ function resetComponentRoot(vm) {
7036
7185
  const child = children[i];
7037
7186
 
7038
7187
  if (!isNull(child) && !isUndefined$1(child.elm)) {
7039
- renderer.remove(child.elm, rootNode);
7188
+ remove$1(child.elm, rootNode);
7040
7189
  }
7041
7190
  }
7042
7191
 
@@ -7046,7 +7195,7 @@ function resetComponentRoot(vm) {
7046
7195
  }
7047
7196
 
7048
7197
  function scheduleRehydration(vm) {
7049
- if (isTrue(vm.renderer.ssr) || isTrue(vm.isScheduled)) {
7198
+ if (isTrue(ssr$1) || isTrue(vm.isScheduled)) {
7050
7199
  return;
7051
7200
  }
7052
7201
 
@@ -7273,7 +7422,6 @@ function createContextWatcher(vm, wireDef, callbackWhenContextIsReady) {
7273
7422
 
7274
7423
  const {
7275
7424
  elm,
7276
- renderer,
7277
7425
  context: {
7278
7426
  wiredConnecting,
7279
7427
  wiredDisconnecting
@@ -7300,7 +7448,7 @@ function createContextWatcher(vm, wireDef, callbackWhenContextIsReady) {
7300
7448
  }
7301
7449
 
7302
7450
  });
7303
- renderer.dispatchEvent(elm, contextRegistrationEvent);
7451
+ dispatchEvent$1(elm, contextRegistrationEvent);
7304
7452
  });
7305
7453
  }
7306
7454
 
@@ -7565,7 +7713,7 @@ function setHooks(hooks) {
7565
7713
  hooksAreSet = true;
7566
7714
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7567
7715
  }
7568
- /* version: 2.6.2 */
7716
+ /* version: 2.6.3 */
7569
7717
 
7570
7718
  /*
7571
7719
  * Copyright (c) 2020, salesforce.com, inc.
@@ -7639,7 +7787,7 @@ function registerCustomElement(name, ctor) {
7639
7787
  reverseRegistry.set(ctor, name);
7640
7788
  }
7641
7789
 
7642
- class HTMLElement$1 {
7790
+ class HTMLElementImpl {
7643
7791
  constructor() {
7644
7792
  const {
7645
7793
  constructor
@@ -7655,275 +7803,321 @@ class HTMLElement$1 {
7655
7803
 
7656
7804
  }
7657
7805
 
7658
- const renderer = {
7659
- ssr: true,
7806
+ const ssr = true;
7660
7807
 
7661
- isHydrating() {
7662
- return false;
7663
- },
7808
+ function isHydrating() {
7809
+ return false;
7810
+ }
7664
7811
 
7665
- isNativeShadowDefined: false,
7666
- isSyntheticShadowDefined: false,
7812
+ const isNativeShadowDefined = false;
7813
+ const isSyntheticShadowDefined = false;
7667
7814
 
7668
- insert(node, parent, anchor) {
7669
- if (node.parent !== null && node.parent !== parent) {
7670
- const nodeIndex = node.parent.children.indexOf(node);
7671
- node.parent.children.splice(nodeIndex, 1);
7672
- }
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
+ }
7673
7820
 
7674
- node.parent = parent;
7675
- const anchorIndex = isNull(anchor) ? -1 : parent.children.indexOf(anchor);
7821
+ node.parent = parent;
7822
+ const anchorIndex = isNull(anchor) ? -1 : parent.children.indexOf(anchor);
7676
7823
 
7677
- if (anchorIndex === -1) {
7678
- parent.children.push(node);
7679
- } else {
7680
- parent.children.splice(anchorIndex, 0, node);
7681
- }
7682
- },
7683
-
7684
- remove(node, parent) {
7685
- const nodeIndex = parent.children.indexOf(node);
7686
- parent.children.splice(nodeIndex, 1);
7687
- },
7824
+ if (anchorIndex === -1) {
7825
+ parent.children.push(node);
7826
+ } else {
7827
+ parent.children.splice(anchorIndex, 0, node);
7828
+ }
7829
+ }
7688
7830
 
7689
- createElement,
7831
+ function remove(node, parent) {
7832
+ const nodeIndex = parent.children.indexOf(node);
7833
+ parent.children.splice(nodeIndex, 1);
7834
+ }
7690
7835
 
7691
- createText(content) {
7692
- return {
7693
- type: HostNodeType.Text,
7694
- value: String(content),
7695
- parent: null
7696
- };
7697
- },
7836
+ function createText(content) {
7837
+ return {
7838
+ type: HostNodeType.Text,
7839
+ value: String(content),
7840
+ parent: null
7841
+ };
7842
+ }
7698
7843
 
7699
- createComment(content) {
7700
- return {
7701
- type: HostNodeType.Comment,
7702
- value: content,
7703
- parent: null
7704
- };
7705
- },
7844
+ function createComment(content) {
7845
+ return {
7846
+ type: HostNodeType.Comment,
7847
+ value: content,
7848
+ parent: null
7849
+ };
7850
+ }
7706
7851
 
7707
- nextSibling(node) {
7708
- const {
7709
- parent
7710
- } = node;
7852
+ function nextSibling(node) {
7853
+ const {
7854
+ parent
7855
+ } = node;
7711
7856
 
7712
- if (isNull(parent)) {
7713
- return null;
7714
- }
7857
+ if (isNull(parent)) {
7858
+ return null;
7859
+ }
7715
7860
 
7716
- const nodeIndex = parent.children.indexOf(node);
7717
- return parent.children[nodeIndex + 1] || null;
7718
- },
7861
+ const nodeIndex = parent.children.indexOf(node);
7862
+ return parent.children[nodeIndex + 1] || null;
7863
+ }
7719
7864
 
7720
- attachShadow(element, config) {
7721
- element.shadowRoot = {
7722
- type: HostNodeType.ShadowRoot,
7723
- children: [],
7724
- mode: config.mode,
7725
- delegatesFocus: !!config.delegatesFocus
7726
- };
7727
- return element.shadowRoot;
7728
- },
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
+ }
7729
7874
 
7730
- getProperty(node, key) {
7731
- var _a, _b;
7875
+ function getProperty(node, key) {
7876
+ var _a, _b;
7732
7877
 
7733
- if (key in node) {
7734
- return node[key];
7735
- }
7878
+ if (key in node) {
7879
+ return node[key];
7880
+ }
7736
7881
 
7737
- if (node.type === HostNodeType.Element) {
7738
- 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.
7739
7884
 
7740
- if (isBooleanAttribute(attrName, node.name)) {
7741
- return (_a = this.getAttribute(node, attrName)) !== null && _a !== void 0 ? _a : false;
7742
- } // 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.
7743
7888
 
7744
7889
 
7745
- if (isGlobalHtmlAttribute(attrName) || isAriaAttribute(attrName)) {
7746
- return this.getAttribute(node, attrName);
7747
- } // Handle special elements live bindings. The checked property is already handled above
7748
- // 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.
7749
7894
 
7750
7895
 
7751
- if (node.name === 'input' && key === 'value') {
7752
- return (_b = this.getAttribute(node, 'value')) !== null && _b !== void 0 ? _b : '';
7753
- }
7896
+ if (node.name === 'input' && key === 'value') {
7897
+ return (_b = getAttribute(node, 'value')) !== null && _b !== void 0 ? _b : '';
7754
7898
  }
7899
+ }
7755
7900
 
7756
- if (process.env.NODE_ENV !== 'production') {
7757
- // eslint-disable-next-line no-console
7758
- console.error(`Unexpected "${key}" property access from the renderer`);
7759
- }
7760
- },
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
+ }
7761
7906
 
7762
- setProperty(node, key, value) {
7763
- if (key in node) {
7764
- return node[key] = value;
7765
- }
7907
+ function setProperty(node, key, value) {
7908
+ if (key in node) {
7909
+ return node[key] = value;
7910
+ }
7766
7911
 
7767
- if (node.type === HostNodeType.Element) {
7768
- const attrName = htmlPropertyToAttribute(key);
7912
+ if (node.type === HostNodeType.Element) {
7913
+ const attrName = htmlPropertyToAttribute(key);
7769
7914
 
7770
- if (key === 'innerHTML') {
7771
- node.children = [{
7772
- type: HostNodeType.Raw,
7773
- parent: node,
7774
- value
7775
- }];
7776
- return;
7777
- } // 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.
7778
7923
 
7779
7924
 
7780
- if (isBooleanAttribute(attrName, node.name)) {
7781
- return value === true ? this.setAttribute(node, attrName, '') : this.removeAttribute(node, attrName);
7782
- } // 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.
7783
7928
 
7784
7929
 
7785
- if (isGlobalHtmlAttribute(attrName) || isAriaAttribute(attrName)) {
7786
- return this.setAttribute(node, attrName, value);
7787
- } // Handle special elements live bindings. The checked property is already handled above
7788
- // 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.
7789
7934
 
7790
7935
 
7791
- if (node.name === 'input' && attrName === 'value') {
7792
- return isNull(value) || isUndefined$1(value) ? this.removeAttribute(node, 'value') : this.setAttribute(node, 'value', value);
7793
- }
7936
+ if (node.name === 'input' && attrName === 'value') {
7937
+ return isNull(value) || isUndefined$1(value) ? removeAttribute(node, 'value') : setAttribute(node, 'value', value);
7794
7938
  }
7939
+ }
7795
7940
 
7796
- if (process.env.NODE_ENV !== 'production') {
7797
- // eslint-disable-next-line no-console
7798
- console.error(`Unexpected attempt to set "${key}=${value}" property from the renderer`);
7799
- }
7800
- },
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
+ }
7801
7946
 
7802
- setText(node, content) {
7803
- if (node.type === HostNodeType.Text) {
7804
- node.value = content;
7805
- } else if (node.type === HostNodeType.Element) {
7806
- node.children = [{
7807
- type: HostNodeType.Text,
7808
- parent: node,
7809
- value: content
7810
- }];
7811
- }
7812
- },
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
+ }
7813
7958
 
7814
- getAttribute(element, name, namespace = null) {
7815
- const attribute = element.attributes.find(attr => attr.name === name && attr.namespace === namespace);
7816
- return attribute ? attribute.value : null;
7817
- },
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
+ }
7818
7963
 
7819
- setAttribute(element, name, value, namespace = null) {
7820
- 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);
7821
7966
 
7822
- if (isUndefined$1(attribute)) {
7823
- element.attributes.push({
7824
- name,
7825
- namespace,
7826
- value: String(value)
7827
- });
7828
- } else {
7829
- 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);
7830
7997
  }
7831
- },
7832
7998
 
7833
- removeAttribute(element, name, namespace) {
7834
- element.attributes = element.attributes.filter(attr => attr.name !== name && attr.namespace !== namespace);
7835
- },
7999
+ return classAttribute;
8000
+ }
7836
8001
 
7837
- getClassList(element) {
7838
- function getClassAttribute() {
7839
- let classAttribute = element.attributes.find(attr => attr.name === 'class' && isNull(attr.namespace));
7840
-
7841
- if (isUndefined$1(classAttribute)) {
7842
- classAttribute = {
7843
- name: 'class',
7844
- namespace: null,
7845
- value: ''
7846
- };
7847
- element.attributes.push(classAttribute);
7848
- }
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
+ },
7849
8009
 
7850
- 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);
7851
8015
  }
7852
8016
 
7853
- return {
7854
- add(...names) {
7855
- const classAttribute = getClassAttribute();
7856
- const tokenList = classNameToTokenList(classAttribute.value);
7857
- names.forEach(name => tokenList.add(name));
7858
- classAttribute.value = tokenListToClassName(tokenList);
7859
- },
8017
+ };
8018
+ }
7860
8019
 
7861
- remove(...names) {
7862
- const classAttribute = getClassAttribute();
7863
- const tokenList = classNameToTokenList(classAttribute.value);
7864
- names.forEach(name => tokenList.delete(name));
7865
- classAttribute.value = tokenListToClassName(tokenList);
7866
- }
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' : ''}`;
7867
8023
 
7868
- };
7869
- },
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
+ }
7870
8034
 
7871
- setCSSStyleProperty(element, name, value, important) {
7872
- const styleAttribute = element.attributes.find(attr => attr.name === 'style' && isNull(attr.namespace));
7873
- 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.
7874
8039
 
7875
- if (isUndefined$1(styleAttribute)) {
7876
- element.attributes.push({
7877
- name: 'style',
7878
- namespace: null,
7879
- value: serializedProperty
7880
- });
7881
- } else {
7882
- styleAttribute.value += `; ${serializedProperty}`;
7883
- }
7884
- },
7885
8040
 
7886
- isConnected(node) {
7887
- return !isNull(node.parent);
7888
- },
8041
+ const insertGlobalStylesheet = noop; // Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
8042
+ // synthetic shadow.
7889
8043
 
7890
- insertGlobalStylesheet() {// Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
7891
- // synthetic shadow.
7892
- },
8044
+ const insertStylesheet = noop; // Noop on SSR.
7893
8045
 
7894
- insertStylesheet() {// Noop on SSR (for now). This need to be reevaluated whenever we will implement support for
7895
- // synthetic shadow.
7896
- },
8046
+ const addEventListener = noop; // Noop on SSR.
7897
8047
 
7898
- addEventListener() {// Noop on SSR.
7899
- },
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');
7900
8061
 
7901
- removeEventListener() {// Noop on SSR.
7902
- },
8062
+ function defineCustomElement(name, constructor, _options) {
8063
+ registerCustomElement(name, constructor);
8064
+ }
7903
8065
 
7904
- dispatchEvent: unsupportedMethod('dispatchEvent'),
7905
- getBoundingClientRect: unsupportedMethod('getBoundingClientRect'),
7906
- querySelector: unsupportedMethod('querySelector'),
7907
- querySelectorAll: unsupportedMethod('querySelectorAll'),
7908
- getElementsByTagName: unsupportedMethod('getElementsByTagName'),
7909
- getElementsByClassName: unsupportedMethod('getElementsByClassName'),
7910
- getChildren: unsupportedMethod('getChildren'),
7911
- getChildNodes: unsupportedMethod('getChildNodes'),
7912
- getFirstChild: unsupportedMethod('getFirstChild'),
7913
- getFirstElementChild: unsupportedMethod('getFirstElementChild'),
7914
- getLastChild: unsupportedMethod('getLastChild'),
7915
- getLastElementChild: unsupportedMethod('getLastElementChild'),
7916
-
7917
- defineCustomElement(name, constructor, _options) {
7918
- registerCustomElement(name, constructor);
7919
- },
8066
+ function getCustomElement(name) {
8067
+ return registry[name];
8068
+ }
7920
8069
 
7921
- getCustomElement(name) {
7922
- return registry[name];
7923
- },
8070
+ const HTMLElementExported = HTMLElementImpl;
8071
+ /* noop */
7924
8072
 
7925
- HTMLElement: HTMLElement$1
7926
- };
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);
7927
8121
  /*
7928
8122
  * Copyright (c) 2020, salesforce.com, inc.
7929
8123
  * All rights reserved.
@@ -8034,12 +8228,11 @@ function renderComponent(tagName, Ctor, props = {}) {
8034
8228
  throw new TypeError(`"renderComponent" expects an object as the third parameter but instead received ${props}.`);
8035
8229
  }
8036
8230
 
8037
- const element = renderer.createElement(tagName);
8231
+ const element = createElement(tagName);
8038
8232
  const def = getComponentInternalDef(Ctor);
8039
8233
  createVM(element, def, {
8040
8234
  mode: 'open',
8041
8235
  owner: null,
8042
- renderer,
8043
8236
  tagName
8044
8237
  });
8045
8238
 
@@ -8061,6 +8254,6 @@ function renderComponent(tagName, Ctor, props = {}) {
8061
8254
 
8062
8255
  freeze(LightningElement);
8063
8256
  seal(LightningElement.prototype);
8064
- /* version: 2.6.2 */
8257
+ /* version: 2.6.3 */
8065
8258
 
8066
8259
  export { LightningElement, api$1 as api, createContextProvider, getComponentDef, isComponentConstructor, readonly, register, registerComponent, registerDecorators, registerTemplate, renderComponent, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, track, unwrap, wire };