lwc 2.17.0 → 2.19.1

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 (34) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +137 -137
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +137 -137
  3. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +116 -116
  4. package/dist/engine-dom/iife/es5/engine-dom.js +148 -149
  5. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  6. package/dist/engine-dom/iife/es5/engine-dom_debug.js +127 -128
  7. package/dist/engine-dom/umd/es2017/engine-dom.js +137 -137
  8. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +116 -116
  9. package/dist/engine-dom/umd/es5/engine-dom.js +148 -149
  10. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  11. package/dist/engine-dom/umd/es5/engine-dom_debug.js +127 -128
  12. package/dist/engine-server/commonjs/es2017/engine-server.js +114 -114
  13. package/dist/engine-server/esm/es2017/engine-server.js +114 -114
  14. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +20 -20
  15. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +20 -20
  16. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +20 -20
  17. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +20 -20
  18. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +20 -20
  19. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +20 -20
  20. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +20 -20
  21. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +20 -20
  22. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +20 -20
  23. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  24. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  25. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  26. package/dist/wire-service/iife/es5/wire-service.js +4 -4
  27. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  28. package/dist/wire-service/iife/es5/wire-service_debug.js +4 -4
  29. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  30. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  31. package/dist/wire-service/umd/es5/wire-service.js +4 -4
  32. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  33. package/dist/wire-service/umd/es5/wire-service_debug.js +4 -4
  34. package/package.json +7 -7
@@ -299,9 +299,9 @@ const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
299
299
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
300
300
  */
301
301
  // Increment whenever the LWC template compiler changes
302
- const LWC_VERSION = "2.17.0";
302
+ const LWC_VERSION = "2.19.1";
303
303
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
304
- /** version: 2.17.0 */
304
+ /** version: 2.19.1 */
305
305
 
306
306
  /*
307
307
  * Copyright (c) 2018, salesforce.com, inc.
@@ -455,7 +455,7 @@ function setFeatureFlagForTest(name, value) {
455
455
  setFeatureFlag(name, value);
456
456
  }
457
457
  }
458
- /** version: 2.17.0 */
458
+ /** version: 2.19.1 */
459
459
 
460
460
  /*
461
461
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1915,7 +1915,7 @@ const LightningElement = function () {
1915
1915
  // Linking elm, shadow root and component with the VM.
1916
1916
  associateVM(component, vm);
1917
1917
  associateVM(elm, vm);
1918
- if (vm.renderMode === 1 /* Shadow */) {
1918
+ if (vm.renderMode === 1 /* RenderMode.Shadow */) {
1919
1919
  vm.renderRoot = doAttachShadow(vm);
1920
1920
  }
1921
1921
  else {
@@ -1931,7 +1931,7 @@ const LightningElement = function () {
1931
1931
  function doAttachShadow(vm) {
1932
1932
  const { elm, mode, shadowMode, def: { ctor }, renderer: { attachShadow }, } = vm;
1933
1933
  const shadowRoot = attachShadow(elm, {
1934
- [KEY__SYNTHETIC_MODE]: shadowMode === 1 /* Synthetic */,
1934
+ [KEY__SYNTHETIC_MODE]: shadowMode === 1 /* ShadowMode.Synthetic */,
1935
1935
  delegatesFocus: Boolean(ctor.delegatesFocus),
1936
1936
  mode,
1937
1937
  });
@@ -2054,7 +2054,7 @@ LightningElement.prototype = {
2054
2054
  get template() {
2055
2055
  const vm = getAssociatedVM(this);
2056
2056
  if (process.env.NODE_ENV !== 'production') {
2057
- if (vm.renderMode === 0 /* Light */) {
2057
+ if (vm.renderMode === 0 /* RenderMode.Light */) {
2058
2058
  logError('`this.template` returns null for light DOM components. Since there is no shadow, the rendered content can be accessed via `this` itself. e.g. instead of `this.template.querySelector`, use `this.querySelector`.');
2059
2059
  }
2060
2060
  }
@@ -2426,13 +2426,13 @@ function internalWireFieldDecorator(key) {
2426
2426
  */
2427
2427
  function getClassDescriptorType(descriptor) {
2428
2428
  if (isFunction$1(descriptor.value)) {
2429
- return "method" /* Method */;
2429
+ return "method" /* DescriptorType.Method */;
2430
2430
  }
2431
2431
  else if (isFunction$1(descriptor.set) || isFunction$1(descriptor.get)) {
2432
- return "accessor" /* Accessor */;
2432
+ return "accessor" /* DescriptorType.Accessor */;
2433
2433
  }
2434
2434
  else {
2435
- return "field" /* Field */;
2435
+ return "field" /* DescriptorType.Field */;
2436
2436
  }
2437
2437
  }
2438
2438
  function validateObservedField(Ctor, fieldName, descriptor) {
@@ -2441,7 +2441,7 @@ function validateObservedField(Ctor, fieldName, descriptor) {
2441
2441
  const message = `Invalid observed ${fieldName} field. Found a duplicate ${type} with the same name.`;
2442
2442
  // [W-9927596] Ideally we always throw an error when detecting duplicate observed field.
2443
2443
  // This branch is only here for backward compatibility reasons.
2444
- if (type === "accessor" /* Accessor */) {
2444
+ if (type === "accessor" /* DescriptorType.Accessor */) {
2445
2445
  logError(message);
2446
2446
  }
2447
2447
  else {
@@ -2472,7 +2472,7 @@ function validateFieldDecoratedWithApi(Ctor, fieldName, descriptor) {
2472
2472
  const message = `Invalid @api ${fieldName} field. Found a duplicate ${type} with the same name.`;
2473
2473
  // [W-9927596] Ideally we always throw an error when detecting duplicate public properties.
2474
2474
  // This branch is only here for backward compatibility reasons.
2475
- if (type === "accessor" /* Accessor */) {
2475
+ if (type === "accessor" /* DescriptorType.Accessor */) {
2476
2476
  logError(message);
2477
2477
  }
2478
2478
  else {
@@ -3194,8 +3194,8 @@ function createComponentDef(Ctor) {
3194
3194
  // assert.isTrue(ctorName && isString(ctorName), `${toString(Ctor)} should have a "name" property with string value, but found ${ctorName}.`);
3195
3195
  assert.isTrue(Ctor.constructor, `Missing ${ctorName}.constructor, ${ctorName} should have a "constructor" property.`);
3196
3196
  if (!isUndefined$1(ctorShadowSupportMode)) {
3197
- assert.invariant(ctorShadowSupportMode === "any" /* Any */ ||
3198
- ctorShadowSupportMode === "reset" /* Default */, `Invalid value for static property shadowSupportMode: '${ctorShadowSupportMode}'`);
3197
+ assert.invariant(ctorShadowSupportMode === "any" /* ShadowSupportMode.Any */ ||
3198
+ ctorShadowSupportMode === "reset" /* ShadowSupportMode.Default */, `Invalid value for static property shadowSupportMode: '${ctorShadowSupportMode}'`);
3199
3199
  }
3200
3200
  if (!isUndefined$1(ctorRenderMode)) {
3201
3201
  assert.invariant(ctorRenderMode === 'light' || ctorRenderMode === 'shadow', `Invalid value for static property renderMode: '${ctorRenderMode}'. renderMode must be either 'light' or 'shadow'.`);
@@ -3223,7 +3223,7 @@ function createComponentDef(Ctor) {
3223
3223
  }
3224
3224
  let renderMode = superDef.renderMode;
3225
3225
  if (!isUndefined$1(ctorRenderMode)) {
3226
- renderMode = ctorRenderMode === 'light' ? 0 /* Light */ : 1 /* Shadow */;
3226
+ renderMode = ctorRenderMode === 'light' ? 0 /* RenderMode.Light */ : 1 /* RenderMode.Shadow */;
3227
3227
  }
3228
3228
  const template = getComponentRegisteredTemplate(Ctor) || superDef.template;
3229
3229
  const name = Ctor.name || superDef.name;
@@ -3316,8 +3316,8 @@ const lightingElementDef = {
3316
3316
  props: lightningBasedDescriptors,
3317
3317
  propsConfig: EmptyObject,
3318
3318
  methods: EmptyObject,
3319
- renderMode: 1 /* Shadow */,
3320
- shadowSupportMode: "reset" /* Default */,
3319
+ renderMode: 1 /* RenderMode.Shadow */,
3320
+ shadowSupportMode: "reset" /* ShadowSupportMode.Default */,
3321
3321
  wire: EmptyObject,
3322
3322
  bridge: BaseBridgeElement,
3323
3323
  template: defaultEmptyTemplate,
@@ -3339,7 +3339,7 @@ function getComponentDef(Ctor) {
3339
3339
  // avoid leaking the reference to the public props descriptors
3340
3340
  publicProps[key] = {
3341
3341
  config: propsConfig[key] || 0,
3342
- type: "any" /* any */,
3342
+ type: "any" /* PropDefType.any */,
3343
3343
  attr: htmlPropertyToAttribute(key),
3344
3344
  };
3345
3345
  }
@@ -3396,7 +3396,7 @@ function getUpgradableConstructor(tagName, renderer) {
3396
3396
  */
3397
3397
  function isVBaseElement(vnode) {
3398
3398
  const { type } = vnode;
3399
- return type === 2 /* Element */ || type === 3 /* CustomElement */;
3399
+ return type === 2 /* VNodeType.Element */ || type === 3 /* VNodeType.CustomElement */;
3400
3400
  }
3401
3401
  function isSameVnode(vnode1, vnode2) {
3402
3402
  return vnode1.key === vnode2.key && vnode1.sel === vnode2.sel;
@@ -3652,21 +3652,21 @@ function patch(n1, n2, renderer) {
3652
3652
  }
3653
3653
  }
3654
3654
  switch (n2.type) {
3655
- case 0 /* Text */:
3655
+ case 0 /* VNodeType.Text */:
3656
3656
  // VText has no special capability, fallback to the owner's renderer
3657
3657
  patchText(n1, n2, renderer);
3658
3658
  break;
3659
- case 1 /* Comment */:
3659
+ case 1 /* VNodeType.Comment */:
3660
3660
  // VComment has no special capability, fallback to the owner's renderer
3661
3661
  patchComment(n1, n2, renderer);
3662
3662
  break;
3663
- case 4 /* Static */:
3663
+ case 4 /* VNodeType.Static */:
3664
3664
  n2.elm = n1.elm;
3665
3665
  break;
3666
- case 2 /* Element */:
3666
+ case 2 /* VNodeType.Element */:
3667
3667
  patchElement(n1, n2, (_a = n2.data.renderer) !== null && _a !== void 0 ? _a : renderer);
3668
3668
  break;
3669
- case 3 /* CustomElement */:
3669
+ case 3 /* VNodeType.CustomElement */:
3670
3670
  patchCustomElement(n1, n2, (_b = n2.data.renderer) !== null && _b !== void 0 ? _b : renderer);
3671
3671
  break;
3672
3672
  }
@@ -3674,23 +3674,23 @@ function patch(n1, n2, renderer) {
3674
3674
  function mount(node, parent, renderer, anchor) {
3675
3675
  var _a, _b;
3676
3676
  switch (node.type) {
3677
- case 0 /* Text */:
3677
+ case 0 /* VNodeType.Text */:
3678
3678
  // VText has no special capability, fallback to the owner's renderer
3679
3679
  mountText(node, parent, anchor, renderer);
3680
3680
  break;
3681
- case 1 /* Comment */:
3681
+ case 1 /* VNodeType.Comment */:
3682
3682
  // VComment has no special capability, fallback to the owner's renderer
3683
3683
  mountComment(node, parent, anchor, renderer);
3684
3684
  break;
3685
- case 4 /* Static */:
3685
+ case 4 /* VNodeType.Static */:
3686
3686
  // VStatic cannot have a custom renderer associated to them, using owner's renderer
3687
3687
  mountStatic(node, parent, anchor, renderer);
3688
3688
  break;
3689
- case 2 /* Element */:
3689
+ case 2 /* VNodeType.Element */:
3690
3690
  // If the vnode data has a renderer override use it, else fallback to owner's renderer
3691
3691
  mountElement(node, parent, anchor, (_a = node.data.renderer) !== null && _a !== void 0 ? _a : renderer);
3692
3692
  break;
3693
- case 3 /* CustomElement */:
3693
+ case 3 /* VNodeType.CustomElement */:
3694
3694
  // If the vnode data has a renderer override use it, else fallback to owner's renderer
3695
3695
  mountCustomElement(node, parent, anchor, (_b = node.data.renderer) !== null && _b !== void 0 ? _b : renderer);
3696
3696
  break;
@@ -3749,12 +3749,12 @@ function mountStatic(vnode, parent, anchor, renderer) {
3749
3749
  // Marks this node as Static to propagate the shadow resolver. must happen after elm is assigned to the proper shadow
3750
3750
  const { renderMode, shadowMode } = owner;
3751
3751
  if (isSyntheticShadowDefined) {
3752
- if (shadowMode === 1 /* Synthetic */ || renderMode === 0 /* Light */) {
3752
+ if (shadowMode === 1 /* ShadowMode.Synthetic */ || renderMode === 0 /* RenderMode.Light */) {
3753
3753
  elm[KEY__SHADOW_STATIC] = true;
3754
3754
  }
3755
3755
  }
3756
3756
  if (process.env.NODE_ENV !== 'production') {
3757
- const isLight = renderMode === 0 /* Light */;
3757
+ const isLight = renderMode === 0 /* RenderMode.Light */;
3758
3758
  patchElementWithRestrictions(elm, { isPortal: false, isLight });
3759
3759
  }
3760
3760
  insertNode(elm, parent, anchor, renderer);
@@ -3786,7 +3786,7 @@ function mountCustomElement(vnode, parent, anchor, renderer) {
3786
3786
  insertNode(elm, parent, anchor, renderer);
3787
3787
  if (vm) {
3788
3788
  if (process.env.NODE_ENV !== 'production') {
3789
- assert.isTrue(vm.state === 0 /* created */, `${vm} cannot be recycled.`);
3789
+ assert.isTrue(vm.state === 0 /* VMState.created */, `${vm} cannot be recycled.`);
3790
3790
  }
3791
3791
  runConnectedCallback(vm);
3792
3792
  }
@@ -3831,14 +3831,14 @@ function unmount(vnode, parent, renderer, doRemove = false) {
3831
3831
  removeNode(elm, parent, renderer);
3832
3832
  }
3833
3833
  switch (type) {
3834
- case 2 /* Element */: {
3834
+ case 2 /* VNodeType.Element */: {
3835
3835
  // Slot content is removed to trigger slotchange event when removing slot.
3836
3836
  // Only required for synthetic shadow.
3837
- const shouldRemoveChildren = sel === 'slot' && vnode.owner.shadowMode === 1 /* Synthetic */;
3837
+ const shouldRemoveChildren = sel === 'slot' && vnode.owner.shadowMode === 1 /* ShadowMode.Synthetic */;
3838
3838
  unmountVNodes(vnode.children, elm, renderer, shouldRemoveChildren);
3839
3839
  break;
3840
3840
  }
3841
- case 3 /* CustomElement */: {
3841
+ case 3 /* VNodeType.CustomElement */: {
3842
3842
  const { vm } = vnode;
3843
3843
  // No need to unmount the children here, `removeVM` will take care of removing the
3844
3844
  // children.
@@ -3881,7 +3881,7 @@ function linkNodeToShadow(elm, owner, renderer) {
3881
3881
  const { isSyntheticShadowDefined } = renderer;
3882
3882
  // TODO [#1164]: this should eventually be done by the polyfill directly
3883
3883
  if (isSyntheticShadowDefined) {
3884
- if (shadowMode === 1 /* Synthetic */ || renderMode === 0 /* Light */) {
3884
+ if (shadowMode === 1 /* ShadowMode.Synthetic */ || renderMode === 0 /* RenderMode.Light */) {
3885
3885
  elm[KEY__SHADOW_RESOLVER] = renderRoot[KEY__SHADOW_RESOLVER];
3886
3886
  }
3887
3887
  }
@@ -3931,12 +3931,12 @@ function patchElementPropsAndAttrs$1(oldVnode, vnode, renderer) {
3931
3931
  function fallbackElmHook(elm, vnode, renderer) {
3932
3932
  const { owner } = vnode;
3933
3933
  setScopeTokenClassIfNecessary(elm, owner, renderer);
3934
- if (owner.shadowMode === 1 /* Synthetic */) {
3934
+ if (owner.shadowMode === 1 /* ShadowMode.Synthetic */) {
3935
3935
  const { data: { context }, } = vnode;
3936
3936
  const { stylesheetToken } = owner.context;
3937
3937
  if (!isUndefined$1(context) &&
3938
3938
  !isUndefined$1(context.lwc) &&
3939
- context.lwc.dom === "manual" /* Manual */) {
3939
+ context.lwc.dom === "manual" /* LwcDomMode.Manual */) {
3940
3940
  // this element will now accept any manual content inserted into it
3941
3941
  observeElementChildNodes(elm);
3942
3942
  }
@@ -3950,8 +3950,8 @@ function fallbackElmHook(elm, vnode, renderer) {
3950
3950
  const { data: { context }, } = vnode;
3951
3951
  const isPortal = !isUndefined$1(context) &&
3952
3952
  !isUndefined$1(context.lwc) &&
3953
- context.lwc.dom === "manual" /* Manual */;
3954
- const isLight = owner.renderMode === 0 /* Light */;
3953
+ context.lwc.dom === "manual" /* LwcDomMode.Manual */;
3954
+ const isLight = owner.renderMode === 0 /* RenderMode.Light */;
3955
3955
  patchElementWithRestrictions(elm, { isPortal, isLight });
3956
3956
  }
3957
3957
  }
@@ -3969,7 +3969,7 @@ function allocateChildren(vnode, vm) {
3969
3969
  const children = vnode.aChildren || vnode.children;
3970
3970
  vm.aChildren = children;
3971
3971
  const { renderMode, shadowMode } = vm;
3972
- if (shadowMode === 1 /* Synthetic */ || renderMode === 0 /* Light */) {
3972
+ if (shadowMode === 1 /* ShadowMode.Synthetic */ || renderMode === 0 /* RenderMode.Light */) {
3973
3973
  // slow path
3974
3974
  allocateInSlot(vm, children);
3975
3975
  // save the allocated children in case this vnode is reused.
@@ -3988,7 +3988,7 @@ function createViewModelHook(elm, vnode, renderer) {
3988
3988
  }
3989
3989
  const { sel, mode, ctor, owner } = vnode;
3990
3990
  setScopeTokenClassIfNecessary(elm, owner, renderer);
3991
- if (owner.shadowMode === 1 /* Synthetic */) {
3991
+ if (owner.shadowMode === 1 /* ShadowMode.Synthetic */) {
3992
3992
  const { stylesheetToken } = owner.context;
3993
3993
  // when running in synthetic shadow mode, we need to set the shadowToken value
3994
3994
  // into each element from the template, so they can be styled accordingly.
@@ -4230,7 +4230,7 @@ function addVNodeToChildLWC(vnode) {
4230
4230
  // [st]atic node
4231
4231
  function st(fragment, key) {
4232
4232
  return {
4233
- type: 4 /* Static */,
4233
+ type: 4 /* VNodeType.Static */,
4234
4234
  sel: undefined,
4235
4235
  key,
4236
4236
  elm: undefined,
@@ -4264,7 +4264,7 @@ function h(sel, data, children = EmptyArray) {
4264
4264
  let elm;
4265
4265
  const { key } = data;
4266
4266
  return {
4267
- type: 2 /* Element */,
4267
+ type: 2 /* VNodeType.Element */,
4268
4268
  sel,
4269
4269
  data,
4270
4270
  children,
@@ -4301,11 +4301,11 @@ function s(slotName, data, children, slotset) {
4301
4301
  }
4302
4302
  const vmBeingRendered = getVMBeingRendered();
4303
4303
  const { renderMode, shadowMode } = vmBeingRendered;
4304
- if (renderMode === 0 /* Light */) {
4304
+ if (renderMode === 0 /* RenderMode.Light */) {
4305
4305
  sc(children);
4306
4306
  return children;
4307
4307
  }
4308
- if (shadowMode === 1 /* Synthetic */) {
4308
+ if (shadowMode === 1 /* ShadowMode.Synthetic */) {
4309
4309
  // TODO [#1276]: compiler should give us some sort of indicator when a vnodes collection is dynamic
4310
4310
  sc(children);
4311
4311
  }
@@ -4339,7 +4339,7 @@ function c(sel, Ctor, data, children = EmptyArray) {
4339
4339
  const { key } = data;
4340
4340
  let elm, aChildren, vm;
4341
4341
  const vnode = {
4342
- type: 3 /* CustomElement */,
4342
+ type: 3 /* VNodeType.CustomElement */,
4343
4343
  sel,
4344
4344
  data,
4345
4345
  children,
@@ -4447,7 +4447,7 @@ function f(items) {
4447
4447
  function t(text) {
4448
4448
  let sel, key, elm;
4449
4449
  return {
4450
- type: 0 /* Text */,
4450
+ type: 0 /* VNodeType.Text */,
4451
4451
  sel,
4452
4452
  text,
4453
4453
  elm,
@@ -4459,7 +4459,7 @@ function t(text) {
4459
4459
  function co(text) {
4460
4460
  let sel, key, elm;
4461
4461
  return {
4462
- type: 1 /* Comment */,
4462
+ type: 1 /* VNodeType.Comment */,
4463
4463
  sel,
4464
4464
  text,
4465
4465
  elm,
@@ -4508,7 +4508,7 @@ function gid(id) {
4508
4508
  return null;
4509
4509
  }
4510
4510
  const { idx, shadowMode } = vmBeingRendered;
4511
- if (shadowMode === 1 /* Synthetic */) {
4511
+ if (shadowMode === 1 /* ShadowMode.Synthetic */) {
4512
4512
  return StringReplace.call(id, /\S+/g, (id) => `${id}-${idx}`);
4513
4513
  }
4514
4514
  return id;
@@ -4530,7 +4530,7 @@ function fid(url) {
4530
4530
  }
4531
4531
  const { idx, shadowMode } = vmBeingRendered;
4532
4532
  // Apply transformation only for fragment-only-urls, and only in shadow DOM
4533
- if (shadowMode === 1 /* Synthetic */ && /^#/.test(url)) {
4533
+ if (shadowMode === 1 /* ShadowMode.Synthetic */ && /^#/.test(url)) {
4534
4534
  return `${url}-${idx}`;
4535
4535
  }
4536
4536
  return url;
@@ -4653,7 +4653,7 @@ function createInlineStyleVNode(content) {
4653
4653
  function updateStylesheetToken(vm, template) {
4654
4654
  const { elm, context, renderMode, shadowMode, renderer: { getClassList, removeAttribute, setAttribute }, } = vm;
4655
4655
  const { stylesheets: newStylesheets, stylesheetToken: newStylesheetToken } = template;
4656
- const isSyntheticShadow = renderMode === 1 /* Shadow */ && shadowMode === 1 /* Synthetic */;
4656
+ const isSyntheticShadow = renderMode === 1 /* RenderMode.Shadow */ && shadowMode === 1 /* ShadowMode.Synthetic */;
4657
4657
  const { hasScopedStyles } = context;
4658
4658
  let newToken;
4659
4659
  let newHasTokenInClass;
@@ -4709,19 +4709,19 @@ function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
4709
4709
  const isScopedCss = stylesheet[KEY__SCOPED_CSS];
4710
4710
  // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
4711
4711
  const scopeToken = isScopedCss ||
4712
- (vm.shadowMode === 1 /* Synthetic */ && vm.renderMode === 1 /* Shadow */)
4712
+ (vm.shadowMode === 1 /* ShadowMode.Synthetic */ && vm.renderMode === 1 /* RenderMode.Shadow */)
4713
4713
  ? stylesheetToken
4714
4714
  : undefined;
4715
4715
  // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
4716
4716
  // native shadow DOM. Synthetic shadow DOM never uses `:host`.
4717
- const useActualHostSelector = vm.renderMode === 0 /* Light */
4717
+ const useActualHostSelector = vm.renderMode === 0 /* RenderMode.Light */
4718
4718
  ? !isScopedCss
4719
- : vm.shadowMode === 0 /* Native */;
4719
+ : vm.shadowMode === 0 /* ShadowMode.Native */;
4720
4720
  // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
4721
4721
  // we use an attribute selector on the host to simulate :dir().
4722
4722
  let useNativeDirPseudoclass;
4723
- if (vm.renderMode === 1 /* Shadow */) {
4724
- useNativeDirPseudoclass = vm.shadowMode === 0 /* Native */;
4723
+ if (vm.renderMode === 1 /* RenderMode.Shadow */) {
4724
+ useNativeDirPseudoclass = vm.shadowMode === 0 /* ShadowMode.Native */;
4725
4725
  }
4726
4726
  else {
4727
4727
  // Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
@@ -4730,7 +4730,7 @@ function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
4730
4730
  // Only calculate the root once as necessary
4731
4731
  root = getNearestShadowComponent(vm);
4732
4732
  }
4733
- useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0 /* Native */;
4733
+ useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0 /* ShadowMode.Native */;
4734
4734
  }
4735
4735
  ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
4736
4736
  }
@@ -4751,7 +4751,7 @@ function getStylesheetsContent(vm, template) {
4751
4751
  function getNearestShadowComponent(vm) {
4752
4752
  let owner = vm;
4753
4753
  while (!isNull(owner)) {
4754
- if (owner.renderMode === 1 /* Shadow */) {
4754
+ if (owner.renderMode === 1 /* RenderMode.Shadow */) {
4755
4755
  return owner;
4756
4756
  }
4757
4757
  owner = owner.owner;
@@ -4760,7 +4760,7 @@ function getNearestShadowComponent(vm) {
4760
4760
  }
4761
4761
  function getNearestNativeShadowComponent(vm) {
4762
4762
  const owner = getNearestShadowComponent(vm);
4763
- if (!isNull(owner) && owner.shadowMode === 1 /* Synthetic */) {
4763
+ if (!isNull(owner) && owner.shadowMode === 1 /* ShadowMode.Synthetic */) {
4764
4764
  // Synthetic-within-native is impossible. So if the nearest shadow component is
4765
4765
  // synthetic, we know we won't find a native component if we go any further.
4766
4766
  return null;
@@ -4769,7 +4769,7 @@ function getNearestNativeShadowComponent(vm) {
4769
4769
  }
4770
4770
  function createStylesheet(vm, stylesheets) {
4771
4771
  const { renderMode, shadowMode, renderer: { ssr, insertStylesheet }, } = vm;
4772
- if (renderMode === 1 /* Shadow */ && shadowMode === 1 /* Synthetic */) {
4772
+ if (renderMode === 1 /* RenderMode.Shadow */ && shadowMode === 1 /* ShadowMode.Synthetic */) {
4773
4773
  for (let i = 0; i < stylesheets.length; i++) {
4774
4774
  insertStylesheet(stylesheets[i]);
4775
4775
  }
@@ -4872,7 +4872,7 @@ function logOperationStart(opId, vm) {
4872
4872
  start(markName);
4873
4873
  }
4874
4874
  if (isProfilerEnabled) {
4875
- currentDispatcher(opId, 0 /* Start */, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
4875
+ currentDispatcher(opId, 0 /* Phase.Start */, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
4876
4876
  }
4877
4877
  }
4878
4878
  function logOperationEnd(opId, vm) {
@@ -4882,7 +4882,7 @@ function logOperationEnd(opId, vm) {
4882
4882
  end(measureName, markName);
4883
4883
  }
4884
4884
  if (isProfilerEnabled) {
4885
- currentDispatcher(opId, 1 /* Stop */, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
4885
+ currentDispatcher(opId, 1 /* Phase.Stop */, vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
4886
4886
  }
4887
4887
  }
4888
4888
  function logGlobalOperationStart(opId, vm) {
@@ -4892,7 +4892,7 @@ function logGlobalOperationStart(opId, vm) {
4892
4892
  start(markName);
4893
4893
  }
4894
4894
  if (isProfilerEnabled) {
4895
- currentDispatcher(opId, 0 /* Start */, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
4895
+ currentDispatcher(opId, 0 /* Phase.Start */, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
4896
4896
  }
4897
4897
  }
4898
4898
  function logGlobalOperationEnd(opId, vm) {
@@ -4902,7 +4902,7 @@ function logGlobalOperationEnd(opId, vm) {
4902
4902
  end(opName, markName);
4903
4903
  }
4904
4904
  if (isProfilerEnabled) {
4905
- currentDispatcher(opId, 1 /* Stop */, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
4905
+ currentDispatcher(opId, 1 /* Phase.Stop */, vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
4906
4906
  }
4907
4907
  }
4908
4908
 
@@ -4928,11 +4928,11 @@ function validateSlots(vm, html) {
4928
4928
  const { cmpSlots } = vm;
4929
4929
  const { slots = EmptyArray } = html;
4930
4930
  for (const slotName in cmpSlots) {
4931
- // eslint-disable-next-line lwc-internal/no-production-assert
4931
+ // eslint-disable-next-line @lwc/lwc-internal/no-production-assert
4932
4932
  assert.isTrue(isArray$1(cmpSlots[slotName]), `Slots can only be set to an array, instead received ${toString$1(cmpSlots[slotName])} for slot "${slotName}" in ${vm}.`);
4933
4933
  if (slotName !== '' && ArrayIndexOf.call(slots, slotName) === -1) {
4934
4934
  // TODO [#1297]: this should never really happen because the compiler should always validate
4935
- // eslint-disable-next-line lwc-internal/no-production-assert
4935
+ // eslint-disable-next-line @lwc/lwc-internal/no-production-assert
4936
4936
  logError(`Ignoring unknown provided slot name "${slotName}" in ${vm}. Check for a typo on the slot attribute.`, vm);
4937
4937
  }
4938
4938
  }
@@ -4940,7 +4940,7 @@ function validateSlots(vm, html) {
4940
4940
  function validateLightDomTemplate(template, vm) {
4941
4941
  if (template === defaultEmptyTemplate)
4942
4942
  return;
4943
- if (vm.renderMode === 0 /* Light */) {
4943
+ if (vm.renderMode === 0 /* RenderMode.Light */) {
4944
4944
  assert.isTrue(template.renderMode === 'light', `Light DOM components can't render shadow DOM templates. Add an 'lwc:render-mode="light"' directive to the root template tag of ${getComponentTag(vm)}.`);
4945
4945
  }
4946
4946
  else {
@@ -4953,13 +4953,13 @@ function buildParseFragmentFn(createFragmentFn) {
4953
4953
  return function () {
4954
4954
  const { context: { hasScopedStyles, stylesheetToken }, shadowMode, renderer, } = getVMBeingRendered();
4955
4955
  const hasStyleToken = !isUndefined$1(stylesheetToken);
4956
- const isSyntheticShadow = shadowMode === 1 /* Synthetic */;
4956
+ const isSyntheticShadow = shadowMode === 1 /* ShadowMode.Synthetic */;
4957
4957
  let cacheKey = 0;
4958
4958
  if (hasStyleToken && hasScopedStyles) {
4959
- cacheKey |= 1 /* HAS_SCOPED_STYLE */;
4959
+ cacheKey |= 1 /* FragmentCache.HAS_SCOPED_STYLE */;
4960
4960
  }
4961
4961
  if (hasStyleToken && isSyntheticShadow) {
4962
- cacheKey |= 2 /* SHADOW_MODE_SYNTHETIC */;
4962
+ cacheKey |= 2 /* FragmentCache.SHADOW_MODE_SYNTHETIC */;
4963
4963
  }
4964
4964
  if (!isUndefined$1(cache[cacheKey])) {
4965
4965
  return cache[cacheKey];
@@ -5014,7 +5014,7 @@ function evaluateTemplate(vm, html) {
5014
5014
  runWithBoundaryProtection(vm, vm.owner, () => {
5015
5015
  // pre
5016
5016
  vmBeingRendered = vm;
5017
- logOperationStart(1 /* Render */, vm);
5017
+ logOperationStart(1 /* OperationId.Render */, vm);
5018
5018
  }, () => {
5019
5019
  // job
5020
5020
  const { component, context, cmpSlots, cmpTemplate, tro } = vm;
@@ -5072,7 +5072,7 @@ function evaluateTemplate(vm, html) {
5072
5072
  // post
5073
5073
  isUpdatingTemplate = isUpdatingTemplateInception;
5074
5074
  vmBeingRendered = vmOfTemplateBeingUpdatedInception;
5075
- logOperationEnd(1 /* Render */, vm);
5075
+ logOperationEnd(1 /* OperationId.Render */, vm);
5076
5076
  });
5077
5077
  if (process.env.NODE_ENV !== 'production') {
5078
5078
  assert.invariant(isArray$1(vnodes), `Compiler should produce html functions that always return an array.`);
@@ -5111,7 +5111,7 @@ function invokeComponentCallback(vm, fn, args) {
5111
5111
  function invokeComponentConstructor(vm, Ctor) {
5112
5112
  const vmBeingConstructedInception = vmBeingConstructed;
5113
5113
  let error;
5114
- logOperationStart(0 /* Constructor */, vm);
5114
+ logOperationStart(0 /* OperationId.Constructor */, vm);
5115
5115
  vmBeingConstructed = vm;
5116
5116
  /**
5117
5117
  * Constructors don't need to be wrapped with a boundary because for root elements
@@ -5133,7 +5133,7 @@ function invokeComponentConstructor(vm, Ctor) {
5133
5133
  error = Object(e);
5134
5134
  }
5135
5135
  finally {
5136
- logOperationEnd(0 /* Constructor */, vm);
5136
+ logOperationEnd(0 /* OperationId.Constructor */, vm);
5137
5137
  vmBeingConstructed = vmBeingConstructedInception;
5138
5138
  if (!isUndefined$1(error)) {
5139
5139
  addErrorComponentStack(vm, error);
@@ -5314,12 +5314,12 @@ function rerenderVM(vm) {
5314
5314
  function connectRootElement(elm) {
5315
5315
  const vm = getAssociatedVM(elm);
5316
5316
  logGlobalOperationStart(7
5317
- /* GlobalHydrate */
5317
+ /* OperationId.GlobalHydrate */
5318
5318
  , vm); // Usually means moving the element from one place to another, which is observable via
5319
5319
  // life-cycle hooks.
5320
5320
 
5321
5321
  if (vm.state === 1
5322
- /* connected */
5322
+ /* VMState.connected */
5323
5323
  ) {
5324
5324
  disconnectRootElement(elm);
5325
5325
  }
@@ -5327,7 +5327,7 @@ function connectRootElement(elm) {
5327
5327
  runConnectedCallback(vm);
5328
5328
  rehydrate(vm);
5329
5329
  logGlobalOperationEnd(7
5330
- /* GlobalHydrate */
5330
+ /* OperationId.GlobalHydrate */
5331
5331
  , vm);
5332
5332
  }
5333
5333
  function disconnectRootElement(elm) {
@@ -5345,7 +5345,7 @@ function resetComponentStateWhenRemoved(vm) {
5345
5345
  } = vm;
5346
5346
 
5347
5347
  if (state !== 2
5348
- /* disconnected */
5348
+ /* VMState.disconnected */
5349
5349
  ) {
5350
5350
  const {
5351
5351
  oar,
@@ -5374,9 +5374,9 @@ function resetComponentStateWhenRemoved(vm) {
5374
5374
  function removeVM(vm) {
5375
5375
  if (process.env.NODE_ENV !== 'production') {
5376
5376
  assert.isTrue(vm.state === 1
5377
- /* connected */
5377
+ /* VMState.connected */
5378
5378
  || vm.state === 2
5379
- /* disconnected */
5379
+ /* VMState.disconnected */
5380
5380
  , `${vm} must have been connected.`);
5381
5381
  }
5382
5382
 
@@ -5387,7 +5387,7 @@ function getNearestShadowAncestor(vm) {
5387
5387
  let ancestor = vm.owner;
5388
5388
 
5389
5389
  while (!isNull(ancestor) && ancestor.renderMode === 0
5390
- /* Light */
5390
+ /* RenderMode.Light */
5391
5391
  ) {
5392
5392
  ancestor = ancestor.owner;
5393
5393
  }
@@ -5408,7 +5408,7 @@ function createVM(elm, ctor, renderer, options) {
5408
5408
  def,
5409
5409
  idx: idx++,
5410
5410
  state: 0
5411
- /* created */
5411
+ /* VMState.created */
5412
5412
  ,
5413
5413
  isScheduled: false,
5414
5414
  isDirty: true,
@@ -5457,7 +5457,7 @@ function createVM(elm, ctor, renderer, options) {
5457
5457
 
5458
5458
  if (runtimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
5459
5459
  vm.shadowMode = 0
5460
- /* Native */
5460
+ /* ShadowMode.Native */
5461
5461
  ;
5462
5462
  }
5463
5463
  } // Create component instance associated to the vm and the element.
@@ -5484,57 +5484,57 @@ function computeShadowMode(vm, renderer) {
5484
5484
 
5485
5485
  if (isSyntheticShadowDefined) {
5486
5486
  if (def.renderMode === 0
5487
- /* Light */
5487
+ /* RenderMode.Light */
5488
5488
  ) {
5489
5489
  // ShadowMode.Native implies "not synthetic shadow" which is consistent with how
5490
5490
  // everything defaults to native when the synthetic shadow polyfill is unavailable.
5491
5491
  shadowMode = 0
5492
- /* Native */
5492
+ /* ShadowMode.Native */
5493
5493
  ;
5494
5494
  } else if (isNativeShadowDefined) {
5495
5495
  // Not combined with above condition because @lwc/features only supports identifiers in
5496
5496
  // the if-condition.
5497
5497
  if (runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
5498
5498
  if (def.shadowSupportMode === "any"
5499
- /* Any */
5499
+ /* ShadowSupportMode.Any */
5500
5500
  ) {
5501
5501
  shadowMode = 0
5502
- /* Native */
5502
+ /* ShadowMode.Native */
5503
5503
  ;
5504
5504
  } else {
5505
5505
  const shadowAncestor = getNearestShadowAncestor(vm);
5506
5506
 
5507
5507
  if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0
5508
- /* Native */
5508
+ /* ShadowMode.Native */
5509
5509
  ) {
5510
5510
  // Transitive support for native Shadow DOM. A component in native mode
5511
5511
  // transitively opts all of its descendants into native.
5512
5512
  shadowMode = 0
5513
- /* Native */
5513
+ /* ShadowMode.Native */
5514
5514
  ;
5515
5515
  } else {
5516
5516
  // Synthetic if neither this component nor any of its ancestors are configured
5517
5517
  // to be native.
5518
5518
  shadowMode = 1
5519
- /* Synthetic */
5519
+ /* ShadowMode.Synthetic */
5520
5520
  ;
5521
5521
  }
5522
5522
  }
5523
5523
  } else {
5524
5524
  shadowMode = 1
5525
- /* Synthetic */
5525
+ /* ShadowMode.Synthetic */
5526
5526
  ;
5527
5527
  }
5528
5528
  } else {
5529
5529
  // Synthetic if there is no native Shadow DOM support.
5530
5530
  shadowMode = 1
5531
- /* Synthetic */
5531
+ /* ShadowMode.Synthetic */
5532
5532
  ;
5533
5533
  }
5534
5534
  } else {
5535
5535
  // Native if the synthetic shadow polyfill is unavailable.
5536
5536
  shadowMode = 0
5537
- /* Native */
5537
+ /* ShadowMode.Native */
5538
5538
  ;
5539
5539
  }
5540
5540
 
@@ -5594,7 +5594,7 @@ function patchShadowRoot(vm, newCh) {
5594
5594
  runWithBoundaryProtection(vm, vm, () => {
5595
5595
  // pre
5596
5596
  logOperationStart(2
5597
- /* Patch */
5597
+ /* OperationId.Patch */
5598
5598
  , vm);
5599
5599
  }, () => {
5600
5600
  // job
@@ -5602,14 +5602,14 @@ function patchShadowRoot(vm, newCh) {
5602
5602
  }, () => {
5603
5603
  // post
5604
5604
  logOperationEnd(2
5605
- /* Patch */
5605
+ /* OperationId.Patch */
5606
5606
  , vm);
5607
5607
  });
5608
5608
  }
5609
5609
  }
5610
5610
 
5611
5611
  if (vm.state === 1
5612
- /* connected */
5612
+ /* VMState.connected */
5613
5613
  ) {
5614
5614
  // If the element is connected, that means connectedCallback was already issued, and
5615
5615
  // any successive rendering should finish with the call to renderedCallback, otherwise
@@ -5643,11 +5643,11 @@ function runRenderedCallback(vm) {
5643
5643
 
5644
5644
  if (!isUndefined$1(renderedCallback)) {
5645
5645
  logOperationStart(4
5646
- /* RenderedCallback */
5646
+ /* OperationId.RenderedCallback */
5647
5647
  , vm);
5648
5648
  invokeComponentCallback(vm, renderedCallback);
5649
5649
  logOperationEnd(4
5650
- /* RenderedCallback */
5650
+ /* OperationId.RenderedCallback */
5651
5651
  , vm);
5652
5652
  }
5653
5653
  }
@@ -5655,7 +5655,7 @@ let rehydrateQueue = [];
5655
5655
 
5656
5656
  function flushRehydrationQueue() {
5657
5657
  logGlobalOperationStart(8
5658
- /* GlobalRehydrate */
5658
+ /* OperationId.GlobalRehydrate */
5659
5659
  );
5660
5660
 
5661
5661
  if (process.env.NODE_ENV !== 'production') {
@@ -5682,7 +5682,7 @@ function flushRehydrationQueue() {
5682
5682
 
5683
5683
 
5684
5684
  logGlobalOperationEnd(8
5685
- /* GlobalRehydrate */
5685
+ /* OperationId.GlobalRehydrate */
5686
5686
  ); // re-throwing the original error will break the current tick, but since the next tick is
5687
5687
  // already scheduled, it should continue patching the rest.
5688
5688
 
@@ -5691,7 +5691,7 @@ function flushRehydrationQueue() {
5691
5691
  }
5692
5692
 
5693
5693
  logGlobalOperationEnd(8
5694
- /* GlobalRehydrate */
5694
+ /* OperationId.GlobalRehydrate */
5695
5695
  );
5696
5696
  }
5697
5697
 
@@ -5701,13 +5701,13 @@ function runConnectedCallback(vm) {
5701
5701
  } = vm;
5702
5702
 
5703
5703
  if (state === 1
5704
- /* connected */
5704
+ /* VMState.connected */
5705
5705
  ) {
5706
5706
  return; // nothing to do since it was already connected
5707
5707
  }
5708
5708
 
5709
5709
  vm.state = 1
5710
- /* connected */
5710
+ /* VMState.connected */
5711
5711
  ; // reporting connection
5712
5712
 
5713
5713
  const {
@@ -5728,11 +5728,11 @@ function runConnectedCallback(vm) {
5728
5728
 
5729
5729
  if (!isUndefined$1(connectedCallback)) {
5730
5730
  logOperationStart(3
5731
- /* ConnectedCallback */
5731
+ /* OperationId.ConnectedCallback */
5732
5732
  , vm);
5733
5733
  invokeComponentCallback(vm, connectedCallback);
5734
5734
  logOperationEnd(3
5735
- /* ConnectedCallback */
5735
+ /* OperationId.ConnectedCallback */
5736
5736
  , vm);
5737
5737
  }
5738
5738
  }
@@ -5744,7 +5744,7 @@ function hasWireAdapters(vm) {
5744
5744
  function runDisconnectedCallback(vm) {
5745
5745
  if (process.env.NODE_ENV !== 'production') {
5746
5746
  assert.isTrue(vm.state !== 2
5747
- /* disconnected */
5747
+ /* VMState.disconnected */
5748
5748
  , `${vm} must be inserted.`);
5749
5749
  }
5750
5750
 
@@ -5757,7 +5757,7 @@ function runDisconnectedCallback(vm) {
5757
5757
  }
5758
5758
 
5759
5759
  vm.state = 2
5760
- /* disconnected */
5760
+ /* VMState.disconnected */
5761
5761
  ; // reporting disconnection
5762
5762
 
5763
5763
  const {
@@ -5778,11 +5778,11 @@ function runDisconnectedCallback(vm) {
5778
5778
 
5779
5779
  if (!isUndefined$1(disconnectedCallback)) {
5780
5780
  logOperationStart(5
5781
- /* DisconnectedCallback */
5781
+ /* OperationId.DisconnectedCallback */
5782
5782
  , vm);
5783
5783
  invokeComponentCallback(vm, disconnectedCallback);
5784
5784
  logOperationEnd(5
5785
- /* DisconnectedCallback */
5785
+ /* OperationId.DisconnectedCallback */
5786
5786
  , vm);
5787
5787
  }
5788
5788
  }
@@ -5838,13 +5838,13 @@ function recursivelyDisconnectChildren(vnodes) {
5838
5838
  if (!isNull(vnode) && !isUndefined$1(vnode.elm)) {
5839
5839
  switch (vnode.type) {
5840
5840
  case 2
5841
- /* Element */
5841
+ /* VNodeType.Element */
5842
5842
  :
5843
5843
  recursivelyDisconnectChildren(vnode.children);
5844
5844
  break;
5845
5845
 
5846
5846
  case 3
5847
- /* CustomElement */
5847
+ /* VNodeType.CustomElement */
5848
5848
  :
5849
5849
  {
5850
5850
  const vm = getAssociatedVM(vnode.elm);
@@ -5935,13 +5935,13 @@ function runWithBoundaryProtection(vm, owner, pre, job, post) {
5935
5935
  resetComponentRoot(vm); // remove offenders
5936
5936
 
5937
5937
  logOperationStart(6
5938
- /* ErrorCallback */
5938
+ /* OperationId.ErrorCallback */
5939
5939
  , vm); // error boundaries must have an ErrorCallback
5940
5940
 
5941
5941
  const errorCallback = errorBoundaryVm.def.errorCallback;
5942
5942
  invokeComponentCallback(errorBoundaryVm, errorCallback, [error, error.wcStack]);
5943
5943
  logOperationEnd(6
5944
- /* ErrorCallback */
5944
+ /* OperationId.ErrorCallback */
5945
5945
  , vm);
5946
5946
  }
5947
5947
  }
@@ -6036,7 +6036,7 @@ function createConfigWatcher(component, configCallback, callbackWhenConfigIsRead
6036
6036
 
6037
6037
  const computeConfigAndUpdate = () => {
6038
6038
  let config;
6039
- ro.observe(() => config = configCallback(component)); // eslint-disable-next-line lwc-internal/no-invalid-todo
6039
+ ro.observe(() => config = configCallback(component)); // eslint-disable-next-line @lwc/lwc-internal/no-invalid-todo
6040
6040
  // TODO: dev-mode validation of config based on the adapter.configSchema
6041
6041
  // @ts-ignore it is assigned in the observe() callback
6042
6042
 
@@ -6078,7 +6078,7 @@ function createContextWatcher(vm, wireDef, callbackWhenContextIsReady) {
6078
6078
  // guarantee that the linkage can be forged.
6079
6079
  const contextRegistrationEvent = new WireContextRegistrationEvent(adapterContextToken, {
6080
6080
  setNewContext(newContext) {
6081
- // eslint-disable-next-line lwc-internal/no-invalid-todo
6081
+ // eslint-disable-next-line @lwc/lwc-internal/no-invalid-todo
6082
6082
  // TODO: dev-mode validation of config based on the adapter.contextSchema
6083
6083
  callbackWhenContextIsReady(newContext);
6084
6084
  },
@@ -6142,7 +6142,7 @@ function createConnector(vm, name, wireDef) {
6142
6142
  // (ever), while context can have identity
6143
6143
 
6144
6144
  if (vm.state === 1
6145
- /* connected */
6145
+ /* VMState.connected */
6146
6146
  ) {
6147
6147
  computeConfigAndUpdate();
6148
6148
  }
@@ -6346,22 +6346,22 @@ function hydrateNode(node, vnode, renderer) {
6346
6346
  var _a, _b;
6347
6347
  let hydratedNode;
6348
6348
  switch (vnode.type) {
6349
- case 0 /* Text */:
6349
+ case 0 /* VNodeType.Text */:
6350
6350
  // VText has no special capability, fallback to the owner's renderer
6351
6351
  hydratedNode = hydrateText(node, vnode, renderer);
6352
6352
  break;
6353
- case 1 /* Comment */:
6353
+ case 1 /* VNodeType.Comment */:
6354
6354
  // VComment has no special capability, fallback to the owner's renderer
6355
6355
  hydratedNode = hydrateComment(node, vnode, renderer);
6356
6356
  break;
6357
- case 4 /* Static */:
6357
+ case 4 /* VNodeType.Static */:
6358
6358
  // VStatic are cacheable and cannot have custom renderer associated to them
6359
6359
  hydratedNode = hydrateStaticElement(node, vnode, renderer);
6360
6360
  break;
6361
- case 2 /* Element */:
6361
+ case 2 /* VNodeType.Element */:
6362
6362
  hydratedNode = hydrateElement(node, vnode, (_a = vnode.data.renderer) !== null && _a !== void 0 ? _a : renderer);
6363
6363
  break;
6364
- case 3 /* CustomElement */:
6364
+ case 3 /* VNodeType.CustomElement */:
6365
6365
  hydratedNode = hydrateCustomElement(node, vnode, (_b = vnode.data.renderer) !== null && _b !== void 0 ? _b : renderer);
6366
6366
  break;
6367
6367
  }
@@ -6369,7 +6369,7 @@ function hydrateNode(node, vnode, renderer) {
6369
6369
  }
6370
6370
  function hydrateText(node, vnode, renderer) {
6371
6371
  var _a;
6372
- if (!hasCorrectNodeType(vnode, node, 3 /* TEXT */, renderer)) {
6372
+ if (!hasCorrectNodeType(vnode, node, 3 /* EnvNodeTypes.TEXT */, renderer)) {
6373
6373
  return handleMismatch(node, vnode, renderer);
6374
6374
  }
6375
6375
  if (process.env.NODE_ENV !== 'production') {
@@ -6386,7 +6386,7 @@ function hydrateText(node, vnode, renderer) {
6386
6386
  }
6387
6387
  function hydrateComment(node, vnode, renderer) {
6388
6388
  var _a;
6389
- if (!hasCorrectNodeType(vnode, node, 8 /* COMMENT */, renderer)) {
6389
+ if (!hasCorrectNodeType(vnode, node, 8 /* EnvNodeTypes.COMMENT */, renderer)) {
6390
6390
  return handleMismatch(node, vnode, renderer);
6391
6391
  }
6392
6392
  if (process.env.NODE_ENV !== 'production') {
@@ -6409,14 +6409,14 @@ function hydrateStaticElement(elm, vnode, renderer) {
6409
6409
  return elm;
6410
6410
  }
6411
6411
  function hydrateElement(elm, vnode, renderer) {
6412
- if (!hasCorrectNodeType(vnode, elm, 1 /* ELEMENT */, renderer) ||
6412
+ if (!hasCorrectNodeType(vnode, elm, 1 /* EnvNodeTypes.ELEMENT */, renderer) ||
6413
6413
  !isMatchingElement(vnode, elm, renderer)) {
6414
6414
  return handleMismatch(elm, vnode, renderer);
6415
6415
  }
6416
6416
  vnode.elm = elm;
6417
6417
  const { owner } = vnode;
6418
6418
  const { context } = vnode.data;
6419
- const isDomManual = Boolean(!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === "manual" /* Manual */);
6419
+ const isDomManual = Boolean(!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === "manual" /* LwcDomMode.Manual */);
6420
6420
  if (isDomManual) {
6421
6421
  // it may be that this element has lwc:inner-html, we need to diff and in case are the same,
6422
6422
  // remove the innerHTML from props so it reuses the existing dom elements.
@@ -6442,7 +6442,7 @@ function hydrateElement(elm, vnode, renderer) {
6442
6442
  return elm;
6443
6443
  }
6444
6444
  function hydrateCustomElement(elm, vnode, renderer) {
6445
- if (!hasCorrectNodeType(vnode, elm, 1 /* ELEMENT */, renderer) ||
6445
+ if (!hasCorrectNodeType(vnode, elm, 1 /* EnvNodeTypes.ELEMENT */, renderer) ||
6446
6446
  !isMatchingElement(vnode, elm, renderer)) {
6447
6447
  return handleMismatch(elm, vnode, renderer);
6448
6448
  }
@@ -6459,10 +6459,10 @@ function hydrateCustomElement(elm, vnode, renderer) {
6459
6459
  patchElementPropsAndAttrs(vnode, renderer);
6460
6460
  // Insert hook section:
6461
6461
  if (process.env.NODE_ENV !== 'production') {
6462
- assert.isTrue(vm.state === 0 /* created */, `${vm} cannot be recycled.`);
6462
+ assert.isTrue(vm.state === 0 /* VMState.created */, `${vm} cannot be recycled.`);
6463
6463
  }
6464
6464
  runConnectedCallback(vm);
6465
- if (vm.renderMode !== 0 /* Light */) {
6465
+ if (vm.renderMode !== 0 /* RenderMode.Light */) {
6466
6466
  const { getFirstChild } = renderer;
6467
6467
  // VM is not rendering in Light DOM, we can proceed and hydrate the slotted content.
6468
6468
  // Note: for Light DOM, this is handled while hydrating the VM
@@ -6645,19 +6645,19 @@ function validateStyleAttr(vnode, elm, renderer) {
6645
6645
  }
6646
6646
  function areCompatibleNodes(client, ssr, vnode, renderer) {
6647
6647
  const { getProperty, getAttribute } = renderer;
6648
- if (getProperty(client, 'nodeType') === 3 /* TEXT */) {
6649
- if (!hasCorrectNodeType(vnode, ssr, 3 /* TEXT */, renderer)) {
6648
+ if (getProperty(client, 'nodeType') === 3 /* EnvNodeTypes.TEXT */) {
6649
+ if (!hasCorrectNodeType(vnode, ssr, 3 /* EnvNodeTypes.TEXT */, renderer)) {
6650
6650
  return false;
6651
6651
  }
6652
6652
  return getProperty(client, 'nodeValue') === getProperty(ssr, 'nodeValue');
6653
6653
  }
6654
- if (getProperty(client, 'nodeType') === 8 /* COMMENT */) {
6655
- if (!hasCorrectNodeType(vnode, ssr, 8 /* COMMENT */, renderer)) {
6654
+ if (getProperty(client, 'nodeType') === 8 /* EnvNodeTypes.COMMENT */) {
6655
+ if (!hasCorrectNodeType(vnode, ssr, 8 /* EnvNodeTypes.COMMENT */, renderer)) {
6656
6656
  return false;
6657
6657
  }
6658
6658
  return getProperty(client, 'nodeValue') === getProperty(ssr, 'nodeValue');
6659
6659
  }
6660
- if (!hasCorrectNodeType(vnode, ssr, 1 /* ELEMENT */, renderer)) {
6660
+ if (!hasCorrectNodeType(vnode, ssr, 1 /* EnvNodeTypes.ELEMENT */, renderer)) {
6661
6661
  return false;
6662
6662
  }
6663
6663
  let isCompatibleElements = true;
@@ -6811,7 +6811,7 @@ function getComponentConstructor(elm) {
6811
6811
  }
6812
6812
  return ctor;
6813
6813
  }
6814
- /* version: 2.17.0 */
6814
+ /* version: 2.19.1 */
6815
6815
 
6816
6816
  /*
6817
6817
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7340,7 +7340,7 @@ function buildCustomElementConstructor(Ctor) {
7340
7340
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
7341
7341
  */
7342
7342
  // TODO [#2472]: Remove this workaround when appropriate.
7343
- // eslint-disable-next-line lwc-internal/no-global-node
7343
+ // eslint-disable-next-line @lwc/lwc-internal/no-global-node
7344
7344
  const _Node$1 = Node;
7345
7345
  const ConnectingSlot = new WeakMap();
7346
7346
  const DisconnectingSlot = new WeakMap();
@@ -7429,7 +7429,7 @@ function createElement(sel, options) {
7429
7429
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
7430
7430
  */
7431
7431
  // TODO [#2472]: Remove this workaround when appropriate.
7432
- // eslint-disable-next-line lwc-internal/no-global-node
7432
+ // eslint-disable-next-line @lwc/lwc-internal/no-global-node
7433
7433
  const _Node = Node;
7434
7434
  /**
7435
7435
  * EXPERIMENTAL: The purpose of this function is to detect shadowed nodes. THIS API WILL BE REMOVED
@@ -7490,6 +7490,6 @@ defineProperty(LightningElement, 'CustomElementConstructor', {
7490
7490
  });
7491
7491
  freeze(LightningElement);
7492
7492
  seal(LightningElement.prototype);
7493
- /* version: 2.17.0 */
7493
+ /* version: 2.19.1 */
7494
7494
 
7495
7495
  export { LightningElement, profilerControl as __unstable__ProfilerControl, api$1 as api, deprecatedBuildCustomElementConstructor as buildCustomElementConstructor, createContextProvider, createElement, freezeTemplate, getComponentConstructor, getComponentDef, hydrateComponent, isComponentConstructor, isNodeShadowed as isNodeFromTemplate, parseFragment, parseSVGFragment, readonly, register, registerComponent, registerDecorators, registerTemplate, renderer, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };