@lwc/engine-core 6.2.0 → 6.2.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.
@@ -12,6 +12,7 @@ declare function c(sel: string, Ctor: LightningElementConstructor, data: VElemen
12
12
  declare function i(iterable: Iterable<any>, factory: (value: any, index: number, first: boolean, last: boolean) => VNodes | VNode): VNodes;
13
13
  /**
14
14
  * [f]lattening
15
+ * @param items
15
16
  */
16
17
  declare function f(items: Readonly<Array<Readonly<Array<VNodes>> | VNodes>>): VNodes;
17
18
  declare function t(text: string): VText;
@@ -25,15 +26,23 @@ declare function fid(url: string | undefined | null): string | null | undefined;
25
26
  * [ddc] - create a (deprecated) dynamic component via `<x-foo lwc:dynamic={Ctor}>`
26
27
  *
27
28
  * TODO [#3331]: remove usage of lwc:dynamic in 246
29
+ * @param sel
30
+ * @param Ctor
31
+ * @param data
32
+ * @param children
28
33
  */
29
34
  declare function ddc(sel: string, Ctor: LightningElementConstructor | null | undefined, data: VElementData, children?: VNodes): VCustomElement | null;
30
35
  /**
31
36
  * [dc] - create a dynamic component via `<lwc:component lwc:is={Ctor}>`
37
+ * @param Ctor
38
+ * @param data
39
+ * @param children
32
40
  */
33
41
  declare function dc(Ctor: LightningElementConstructor | null | undefined, data: VElementData, children?: VNodes): VCustomElement | null;
34
42
  export type SanitizeHtmlContentHook = (content: unknown) => string;
35
43
  /**
36
44
  * Sets the sanitizeHtmlContentHook.
45
+ * @param newHookImpl
37
46
  */
38
47
  export declare function setSanitizeHtmlContentHook(newHookImpl: SanitizeHtmlContentHook): void;
39
48
  declare function shc(content: unknown): string;
@@ -43,7 +43,7 @@ export interface LightningElement extends HTMLElementTheGoodParts, AccessibleEle
43
43
  /**
44
44
  * This class is the base class for any LWC element.
45
45
  * Some elements directly extends this class, others implement it via inheritance.
46
- **/
46
+ */
47
47
  export declare const LightningElement: LightningElementConstructor;
48
48
  export declare const lightningBasedDescriptors: PropertyDescriptorMap;
49
49
  export {};
@@ -5,6 +5,8 @@ import { LightningElementConstructor } from './base-lightning-element';
5
5
  * Validate a template, stylesheet, or component to make sure that its compiled version matches
6
6
  * the version used by the LWC engine at runtime. Note that this only works in dev mode because
7
7
  * it relies on code comments, which are stripped in production due to minification.
8
+ * @param func
9
+ * @param type
8
10
  */
9
11
  export declare function checkVersionMismatch(func: Template, type: 'template'): void;
10
12
  export declare function checkVersionMismatch(func: StylesheetFactory, type: 'stylesheet'): void;
@@ -12,6 +12,8 @@ type ComponentConstructorMetadata = {
12
12
  /**
13
13
  * INTERNAL: This function can only be invoked by compiled code. The compiler
14
14
  * will prevent this function from being imported by userland code.
15
+ * @param Ctor
16
+ * @param metadata
15
17
  */
16
18
  export declare function registerComponent(Ctor: any, metadata: ComponentConstructorMetadata): any;
17
19
  export declare function getComponentRegisteredTemplate(Ctor: LightningElementConstructor): Template | undefined;
@@ -1,7 +1,10 @@
1
1
  /**
2
- * @api decorator to mark public fields and public methods in
2
+ * The @api decorator marks public fields and public methods in
3
3
  * LWC Components. This function implements the internals of this
4
4
  * decorator.
5
+ * @param target
6
+ * @param propertyKey
7
+ * @param descriptor
5
8
  */
6
9
  export default function api(target: any, propertyKey: string, descriptor: PropertyDescriptor): void;
7
10
  export declare function createPublicPropertyDescriptor(key: string): PropertyDescriptor;
@@ -30,6 +30,8 @@ interface RegisterDecoratorMeta {
30
30
  /**
31
31
  * INTERNAL: This function can only be invoked by compiled code. The compiler
32
32
  * will prevent this function from being imported by user-land code.
33
+ * @param Ctor
34
+ * @param meta
33
35
  */
34
36
  export declare function registerDecorators(Ctor: LightningElementConstructor, meta: RegisterDecoratorMeta): LightningElementConstructor;
35
37
  interface DecoratorMeta {
@@ -1,7 +1,10 @@
1
1
  /**
2
- * @track decorator function to mark field value as reactive in
2
+ * The @track decorator function marks field values as reactive in
3
3
  * LWC Components. This function can also be invoked directly
4
4
  * with any value to obtain the trackable version of the value.
5
+ * @param target
6
+ * @param propertyKey
7
+ * @param descriptor
5
8
  */
6
9
  export default function track(target: any, propertyKey: string, descriptor: PropertyDescriptor): any;
7
10
  export declare function internalTrackDecorator(key: string): PropertyDescriptor;
@@ -1,8 +1,10 @@
1
1
  import { WireAdapterConstructor } from '../wiring';
2
2
  /**
3
- * @wire decorator to wire fields and methods to a wire adapter in
3
+ * The @wire decorator wires fields and methods to a wire adapter in
4
4
  * LWC Components. This function implements the internals of this
5
5
  * decorator.
6
+ * @param _adapter
7
+ * @param _config
6
8
  */
7
9
  export default function wire(_adapter: WireAdapterConstructor, _config?: Record<string, any>): PropertyDecorator | MethodDecorator;
8
10
  export declare function internalWireFieldDecorator(key: string): PropertyDescriptor;
@@ -36,6 +36,7 @@ export interface ComponentDef {
36
36
  /**
37
37
  * EXPERIMENTAL: This function allows for the identification of LWC constructors. This API is
38
38
  * subject to change or being removed.
39
+ * @param ctor
39
40
  */
40
41
  export declare function isComponentConstructor(ctor: unknown): ctor is LightningElementConstructor;
41
42
  export declare function getComponentInternalDef(Ctor: unknown): ComponentDef;
@@ -58,6 +59,7 @@ interface PublicComponentDef {
58
59
  /**
59
60
  * EXPERIMENTAL: This function allows for the collection of internal component metadata. This API is
60
61
  * subject to change or being removed.
62
+ * @param Ctor
61
63
  */
62
64
  export declare function getComponentDef(Ctor: any): PublicComponentDef;
63
65
  export {};
@@ -2,5 +2,6 @@ import { LightningElement } from './base-lightning-element';
2
2
  /**
3
3
  * EXPERIMENTAL: This function provides access to the component constructor, given an HTMLElement.
4
4
  * This API is subject to change or being removed.
5
+ * @param elm
5
6
  */
6
7
  export declare function getComponentConstructor(elm: HTMLElement): typeof LightningElement | null;
@@ -2,6 +2,7 @@
2
2
  * EXPERIMENTAL: This function implements an unwrap mechanism that
3
3
  * works for observable membrane objects. This API is subject to
4
4
  * change or being removed.
5
+ * @param value
5
6
  */
6
7
  export declare function unwrap(value: any): any;
7
8
  export declare function getReadOnlyProxy(value: any): any;
@@ -2,17 +2,14 @@ import { VStatic } from '../vnodes';
2
2
  import { RendererAPI } from '../renderer';
3
3
  /**
4
4
  * Given an array of static parts, do all the mounting required for these parts.
5
- *
6
- * @param root - the root element
7
- * @param vnode - the parent VStatic
8
- * @param renderer - the renderer to use
9
- * @param mount - true this is a first (mount) render as opposed to a subsequent (patch) render
5
+ * @param root the root element
6
+ * @param vnode the parent VStatic
7
+ * @param renderer the renderer to use
10
8
  */
11
9
  export declare function mountStaticParts(root: Element, vnode: VStatic, renderer: RendererAPI): void;
12
10
  /**
13
11
  * Mounts elements to the newly generated VStatic node
14
- *
15
- * @param n1 - the previous VStatic vnode
16
- * @param n2 - the current VStatic vnode
12
+ * @param n1 the previous VStatic vnode
13
+ * @param n2 the current VStatic vnode
17
14
  */
18
15
  export declare function patchStaticParts(n1: VStatic, n2: VStatic): void;
@@ -2,5 +2,6 @@
2
2
  * EXPERIMENTAL: This function allows you to create a reactive readonly
3
3
  * membrane around any object value. This API is subject to change or
4
4
  * being removed.
5
+ * @param obj
5
6
  */
6
7
  export declare function readonly(obj: any): any;
@@ -49,13 +49,12 @@ export type ReportingPayloadMapping = {
49
49
  [ReportingEventId.ShadowSupportModeUsage]: ShadowSupportModeUsagePayload;
50
50
  };
51
51
  export type ReportingDispatcher<T extends ReportingEventId = ReportingEventId> = (reportingEventId: T, payload: ReportingPayloadMapping[T]) => void;
52
- /** Callbacks to invoke when reporting is enabled **/
52
+ /** Callbacks to invoke when reporting is enabled */
53
53
  type OnReportingEnabledCallback = () => void;
54
54
  export declare const reportingControl: {
55
55
  /**
56
56
  * Attach a new reporting control (aka dispatcher).
57
- *
58
- * @param dispatcher - reporting control
57
+ * @param dispatcher reporting control
59
58
  */
60
59
  attachDispatcher(dispatcher: ReportingDispatcher): void;
61
60
  /**
@@ -72,7 +71,7 @@ export declare function onReportingEnabled(callback: OnReportingEnabledCallback)
72
71
  /**
73
72
  * Report to the current dispatcher, if there is one.
74
73
  * @param reportingEventId
75
- * @param payload - data to report
74
+ * @param payload data to report
76
75
  */
77
76
  export declare function report<T extends ReportingEventId>(reportingEventId: T, payload: ReportingPayloadMapping[T]): void;
78
77
  /**
@@ -4,10 +4,15 @@ export declare function isTemplateRegistered(tpl: Template): boolean;
4
4
  /**
5
5
  * INTERNAL: This function can only be invoked by compiled code. The compiler
6
6
  * will prevent this function from being imported by userland code.
7
+ * @param tpl
7
8
  */
8
9
  export declare function registerTemplate(tpl: Template): Template;
9
10
  /**
10
11
  * EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
11
12
  * libraries to sanitize vulnerable attributes.
13
+ * @param tagName
14
+ * @param namespaceUri
15
+ * @param attrName
16
+ * @param attrValue
12
17
  */
13
18
  export declare function sanitizeAttribute(tagName: string, namespaceUri: string, attrName: string, attrValue: any): string;
@@ -8,8 +8,8 @@ import { VCustomElement, VNode } from './vnodes';
8
8
  export type StylesheetFactory = (stylesheetToken: string | undefined, useActualHostSelector: boolean, useNativeDirPseudoclass: boolean) => string;
9
9
  /**
10
10
  * The list of stylesheets associated with a template. Each entry is either a StylesheetFactory or a
11
- * TemplateStylesheetFactory a given stylesheet depends on other external stylesheets (via the
12
- * @import CSS declaration).
11
+ * TemplateStylesheetFactory a given stylesheet depends on other external stylesheets (via
12
+ * the @import CSS declaration).
13
13
  */
14
14
  export type TemplateStylesheetFactories = Array<StylesheetFactory | TemplateStylesheetFactories>;
15
15
  export declare function updateStylesheetToken(vm: VM, template: Template, legacy: boolean): void;
@@ -18,6 +18,8 @@ export declare function getStylesheetsContent(vm: VM, template: Template): strin
18
18
  * If the component that is currently being rendered uses scoped styles,
19
19
  * this returns the unique token for that scoped stylesheet. Otherwise
20
20
  * it returns null.
21
+ * @param owner
22
+ * @param legacy
21
23
  */
22
24
  export declare function getScopeTokenClass(owner: VM, legacy: boolean): string | null;
23
25
  /**
@@ -25,6 +27,7 @@ export declare function getScopeTokenClass(owner: VM, legacy: boolean): string |
25
27
  * exists. Otherwise it returns null.
26
28
  *
27
29
  * A host style token is applied to the component if scoped styles are used.
30
+ * @param vnode
28
31
  */
29
32
  export declare function getStylesheetTokenHost(vnode: VCustomElement): string | null;
30
33
  export declare function createStylesheet(vm: VM, stylesheets: string[]): VNode[] | null;
@@ -54,8 +54,10 @@ export interface Context {
54
54
  hasScopedStyles: boolean | undefined;
55
55
  /** The VNodes injected in all the shadow trees to apply the associated component stylesheets. */
56
56
  styleVNodes: VNode[] | null;
57
- /** Object used by the template function to store information that can be reused between
58
- * different render cycle of the same template. */
57
+ /**
58
+ * Object used by the template function to store information that can be reused between
59
+ * different render cycle of the same template.
60
+ */
59
61
  tplCache: TemplateCache;
60
62
  /** List of wire hooks that are invoked when the component gets connected. */
61
63
  wiredConnecting: Array<() => void>;
@@ -94,16 +96,20 @@ export interface VM<N = HostNode, E = HostElement> {
94
96
  children: VNodes;
95
97
  /** The list of adopted children VNodes. */
96
98
  aChildren: VNodes;
97
- /** The list of custom elements VNodes currently rendered in the shadow tree. We keep track of
99
+ /**
100
+ * The list of custom elements VNodes currently rendered in the shadow tree. We keep track of
98
101
  * those elements to efficiently unmount them when the parent component is disconnected without
99
- * having to traverse the VNode tree. */
102
+ * having to traverse the VNode tree.
103
+ */
100
104
  velements: VCustomElement[];
101
105
  /** The component public properties. */
102
106
  cmpProps: {
103
107
  [name: string]: any;
104
108
  };
105
- /** Contains information about the mapping between the slot names and the slotted VNodes, and
106
- * the owner of the slot content. */
109
+ /**
110
+ * Contains information about the mapping between the slot names and the slotted VNodes, and
111
+ * the owner of the slot content.
112
+ */
107
113
  cmpSlots: SlotSet;
108
114
  /** The component internal reactive properties. */
109
115
  cmpFields: {
@@ -121,28 +127,39 @@ export interface VM<N = HostNode, E = HostElement> {
121
127
  component: LightningElement;
122
128
  /** The custom element shadow root. */
123
129
  shadowRoot: ShadowRoot | null;
124
- /** The component render root. If the component is a shadow DOM component, it is its shadow
125
- * root. If the component is a light DOM component it the element itself. */
130
+ /**
131
+ * The component render root. If the component is a shadow DOM component, it is its shadow
132
+ * root. If the component is a light DOM component it the element itself.
133
+ */
126
134
  renderRoot: ShadowRoot | HostElement;
127
135
  /** The template reactive observer. */
128
136
  tro: ReactiveObserver;
129
- /** Hook invoked whenever a property is accessed on the host element. This hook is used by
130
- * Locker only. */
137
+ /**
138
+ * Hook invoked whenever a property is accessed on the host element. This hook is used by
139
+ * Locker only.
140
+ */
131
141
  setHook: (cmp: LightningElement, prop: PropertyKey, newValue: any) => void;
132
- /** Hook invoked whenever a property is set on the host element. This hook is used by Locker
133
- * only. */
142
+ /**
143
+ * Hook invoked whenever a property is set on the host element. This hook is used by Locker
144
+ * only.
145
+ */
134
146
  getHook: (cmp: LightningElement, prop: PropertyKey) => any;
135
- /** Hook invoked whenever a method is called on the component (life-cycle hooks, public
136
- * properties and event handlers). This hook is used by Locker. */
147
+ /**
148
+ * Hook invoked whenever a method is called on the component (life-cycle hooks, public
149
+ * properties and event handlers). This hook is used by Locker.
150
+ */
137
151
  callHook: (cmp: LightningElement | undefined, fn: (...args: any[]) => any, args?: any[]) => any;
138
152
  /**
139
- * Renderer API */
153
+ * Renderer API
154
+ */
140
155
  renderer: RendererAPI;
141
156
  /**
142
- * Debug info bag. Stores useful debug information about the component. */
157
+ * Debug info bag. Stores useful debug information about the component.
158
+ */
143
159
  debugInfo?: Record<string, any>;
144
160
  /**
145
- * Any stylesheets associated with the component */
161
+ * Any stylesheets associated with the component
162
+ */
146
163
  stylesheets: TemplateStylesheetFactories | null;
147
164
  /**
148
165
  * API version associated with this VM
package/dist/index.cjs.js CHANGED
@@ -27,8 +27,7 @@ let enabled$1 = false;
27
27
  const reportingControl = {
28
28
  /**
29
29
  * Attach a new reporting control (aka dispatcher).
30
- *
31
- * @param dispatcher - reporting control
30
+ * @param dispatcher reporting control
32
31
  */
33
32
  attachDispatcher(dispatcher) {
34
33
  enabled$1 = true;
@@ -71,7 +70,7 @@ function onReportingEnabled(callback) {
71
70
  /**
72
71
  * Report to the current dispatcher, if there is one.
73
72
  * @param reportingEventId
74
- * @param payload - data to report
73
+ * @param payload data to report
75
74
  */
76
75
  function report(reportingEventId, payload) {
77
76
  if (enabled$1) {
@@ -1434,6 +1433,7 @@ const reactiveMembrane = new ObservableMembrane({
1434
1433
  * EXPERIMENTAL: This function implements an unwrap mechanism that
1435
1434
  * works for observable membrane objects. This API is subject to
1436
1435
  * change or being removed.
1436
+ * @param value
1437
1437
  */
1438
1438
  function unwrap(value) {
1439
1439
  // On the server side, we don't need mutation tracking. Skipping it improves performance.
@@ -1547,6 +1547,8 @@ function applyShadowMigrateMode(shadowRoot) {
1547
1547
  * that a Custom Element can support (including AOM properties), which
1548
1548
  * determines what kind of capabilities the Base Lightning Element should support. When producing the new descriptors
1549
1549
  * for the Base Lightning Element, it also include the reactivity bit, so the standard property is reactive.
1550
+ * @param propName
1551
+ * @param descriptor
1550
1552
  */
1551
1553
  function createBridgeToElementDescriptor(propName, descriptor) {
1552
1554
  const { get, set, enumerable, configurable } = descriptor;
@@ -1596,7 +1598,7 @@ const refsCache = new WeakMap();
1596
1598
  /**
1597
1599
  * This class is the base class for any LWC element.
1598
1600
  * Some elements directly extends this class, others implement it via inheritance.
1599
- **/
1601
+ */
1600
1602
  // @ts-ignore
1601
1603
  const LightningElement = function () {
1602
1604
  // This should be as performant as possible, while any initialization should be done lazily
@@ -2465,9 +2467,11 @@ function internalTrackDecorator(key) {
2465
2467
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2466
2468
  */
2467
2469
  /**
2468
- * @wire decorator to wire fields and methods to a wire adapter in
2470
+ * The @wire decorator wires fields and methods to a wire adapter in
2469
2471
  * LWC Components. This function implements the internals of this
2470
2472
  * decorator.
2473
+ * @param _adapter
2474
+ * @param _config
2471
2475
  */
2472
2476
  function wire(_adapter, _config) {
2473
2477
  if (process.env.NODE_ENV !== 'production') {
@@ -2578,6 +2582,8 @@ function validateMethodDecoratedWithApi(Ctor, methodName, descriptor) {
2578
2582
  /**
2579
2583
  * INTERNAL: This function can only be invoked by compiled code. The compiler
2580
2584
  * will prevent this function from being imported by user-land code.
2585
+ * @param Ctor
2586
+ * @param meta
2581
2587
  */
2582
2588
  function registerDecorators(Ctor, meta) {
2583
2589
  const proto = Ctor.prototype;
@@ -2766,6 +2772,7 @@ function isTemplateRegistered(tpl) {
2766
2772
  /**
2767
2773
  * INTERNAL: This function can only be invoked by compiled code. The compiler
2768
2774
  * will prevent this function from being imported by userland code.
2775
+ * @param tpl
2769
2776
  */
2770
2777
  function registerTemplate(tpl) {
2771
2778
  if (process.env.NODE_ENV !== 'production') {
@@ -2779,6 +2786,10 @@ function registerTemplate(tpl) {
2779
2786
  /**
2780
2787
  * EXPERIMENTAL: This function acts like a hook for Lightning Locker Service and other similar
2781
2788
  * libraries to sanitize vulnerable attributes.
2789
+ * @param tagName
2790
+ * @param namespaceUri
2791
+ * @param attrName
2792
+ * @param attrValue
2782
2793
  */
2783
2794
  function sanitizeAttribute(tagName, namespaceUri, attrName, attrValue) {
2784
2795
  // locker-service patches this function during runtime to sanitize vulnerable attributes. When
@@ -3364,6 +3375,7 @@ function createComponentDef(Ctor) {
3364
3375
  /**
3365
3376
  * EXPERIMENTAL: This function allows for the identification of LWC constructors. This API is
3366
3377
  * subject to change or being removed.
3378
+ * @param ctor
3367
3379
  */
3368
3380
  function isComponentConstructor(ctor) {
3369
3381
  if (!shared.isFunction(ctor)) {
@@ -3437,6 +3449,7 @@ const lightingElementDef = {
3437
3449
  /**
3438
3450
  * EXPERIMENTAL: This function allows for the collection of internal component metadata. This API is
3439
3451
  * subject to change or being removed.
3452
+ * @param Ctor
3440
3453
  */
3441
3454
  function getComponentDef(Ctor) {
3442
3455
  const def = getComponentInternalDef(Ctor);
@@ -3633,6 +3646,8 @@ function getNearestShadowComponent(vm) {
3633
3646
  * If the component that is currently being rendered uses scoped styles,
3634
3647
  * this returns the unique token for that scoped stylesheet. Otherwise
3635
3648
  * it returns null.
3649
+ * @param owner
3650
+ * @param legacy
3636
3651
  */
3637
3652
  // TODO [#3733]: remove support for legacy scope tokens
3638
3653
  function getScopeTokenClass(owner, legacy) {
@@ -3646,6 +3661,7 @@ function getScopeTokenClass(owner, legacy) {
3646
3661
  * exists. Otherwise it returns null.
3647
3662
  *
3648
3663
  * A host style token is applied to the component if scoped styles are used.
3664
+ * @param vnode
3649
3665
  */
3650
3666
  function getStylesheetTokenHost(vnode) {
3651
3667
  const { template } = getComponentInternalDef(vnode.ctor);
@@ -4054,11 +4070,9 @@ function traverseAndSetElements(root, parts, renderer) {
4054
4070
  }
4055
4071
  /**
4056
4072
  * Given an array of static parts, do all the mounting required for these parts.
4057
- *
4058
- * @param root - the root element
4059
- * @param vnode - the parent VStatic
4060
- * @param renderer - the renderer to use
4061
- * @param mount - true this is a first (mount) render as opposed to a subsequent (patch) render
4073
+ * @param root the root element
4074
+ * @param vnode the parent VStatic
4075
+ * @param renderer the renderer to use
4062
4076
  */
4063
4077
  function mountStaticParts(root, vnode, renderer) {
4064
4078
  // On the server, we don't support ref (because it relies on renderedCallback), nor do we
@@ -4083,9 +4097,8 @@ function mountStaticParts(root, vnode, renderer) {
4083
4097
  }
4084
4098
  /**
4085
4099
  * Mounts elements to the newly generated VStatic node
4086
- *
4087
- * @param n1 - the previous VStatic vnode
4088
- * @param n2 - the current VStatic vnode
4100
+ * @param n1 the previous VStatic vnode
4101
+ * @param n2 the current VStatic vnode
4089
4102
  */
4090
4103
  function patchStaticParts(n1, n2) {
4091
4104
  // On the server, we don't support ref (because it relies on renderedCallback), nor do we
@@ -4600,6 +4613,7 @@ function allocateChildren(vnode, vm) {
4600
4613
  * With the delimiters removed, the contents are marked dynamic so they are diffed correctly.
4601
4614
  *
4602
4615
  * This function is used for slotted VFragments to avoid the text delimiters interfering with slotting functionality.
4616
+ * @param children
4603
4617
  */
4604
4618
  function flattenFragmentsInChildren(children) {
4605
4619
  const flattenedChildren = [];
@@ -5213,6 +5227,7 @@ function i(iterable, factory) {
5213
5227
  }
5214
5228
  /**
5215
5229
  * [f]lattening
5230
+ * @param items
5216
5231
  */
5217
5232
  function f(items) {
5218
5233
  if (process.env.NODE_ENV !== 'production') {
@@ -5329,6 +5344,10 @@ function fid(url) {
5329
5344
  * [ddc] - create a (deprecated) dynamic component via `<x-foo lwc:dynamic={Ctor}>`
5330
5345
  *
5331
5346
  * TODO [#3331]: remove usage of lwc:dynamic in 246
5347
+ * @param sel
5348
+ * @param Ctor
5349
+ * @param data
5350
+ * @param children
5332
5351
  */
5333
5352
  function ddc(sel, Ctor, data, children = EmptyArray) {
5334
5353
  if (process.env.NODE_ENV !== 'production') {
@@ -5347,6 +5366,9 @@ function ddc(sel, Ctor, data, children = EmptyArray) {
5347
5366
  }
5348
5367
  /**
5349
5368
  * [dc] - create a dynamic component via `<lwc:component lwc:is={Ctor}>`
5369
+ * @param Ctor
5370
+ * @param data
5371
+ * @param children
5350
5372
  */
5351
5373
  function dc(Ctor, data, children = EmptyArray) {
5352
5374
  if (process.env.NODE_ENV !== 'production') {
@@ -5374,13 +5396,13 @@ function dc(Ctor, data, children = EmptyArray) {
5374
5396
  * to the engine that a particular collection of children must be diffed using the slow
5375
5397
  * algo based on keys due to the nature of the list. E.g.:
5376
5398
  *
5377
- * - slot element's children: the content of the slot has to be dynamic when in synthetic
5378
- * shadow mode because the `vnode.children` might be the slotted
5379
- * content vs default content, in which case the size and the
5380
- * keys are not matching.
5381
- * - children that contain dynamic components
5382
- * - children that are produced by iteration
5383
- *
5399
+ * - slot element's children: the content of the slot has to be dynamic when in synthetic
5400
+ * shadow mode because the `vnode.children` might be the slotted
5401
+ * content vs default content, in which case the size and the
5402
+ * keys are not matching.
5403
+ * - children that contain dynamic components
5404
+ * - children that are produced by iteration
5405
+ * @param vnodes
5384
5406
  */
5385
5407
  function sc(vnodes) {
5386
5408
  if (process.env.NODE_ENV !== 'production') {
@@ -5404,6 +5426,7 @@ let sanitizeHtmlContentHook = () => {
5404
5426
  };
5405
5427
  /**
5406
5428
  * Sets the sanitizeHtmlContentHook.
5429
+ * @param newHookImpl
5407
5430
  */
5408
5431
  function setSanitizeHtmlContentHook(newHookImpl) {
5409
5432
  sanitizeHtmlContentHook = newHookImpl;
@@ -5845,6 +5868,8 @@ const registeredComponentMap = new Map();
5845
5868
  /**
5846
5869
  * INTERNAL: This function can only be invoked by compiled code. The compiler
5847
5870
  * will prevent this function from being imported by userland code.
5871
+ * @param Ctor
5872
+ * @param metadata
5848
5873
  */
5849
5874
  function registerComponent(
5850
5875
  // We typically expect a LightningElementConstructor, but technically you can call this with anything
@@ -6202,7 +6227,7 @@ function computeShadowMode(def, owner, renderer, hydrated) {
6202
6227
  return shadowMode;
6203
6228
  }
6204
6229
  function assertIsVM(obj) {
6205
- if (shared.isNull(obj) || !shared.isObject(obj) || !('renderRoot' in obj)) {
6230
+ if (!shared.isObject(obj) || shared.isNull(obj) || !('renderRoot' in obj)) {
6206
6231
  throw new TypeError(`${obj} is not a VM.`);
6207
6232
  }
6208
6233
  }
@@ -6395,6 +6420,7 @@ function runLightChildNodesDisconnectedCallback(vm) {
6395
6420
  * need to continue into its children because by attempting to disconnect the
6396
6421
  * custom element itself will trigger the removal of anything slotted or anything
6397
6422
  * defined on its shadow.
6423
+ * @param vnodes
6398
6424
  */
6399
6425
  function recursivelyDisconnectChildren(vnodes) {
6400
6426
  for (let i = 0, len = vnodes.length; i < len; i += 1) {
@@ -7550,6 +7576,7 @@ function freezeTemplate(tmpl) {
7550
7576
  /**
7551
7577
  * EXPERIMENTAL: This function provides access to the component constructor, given an HTMLElement.
7552
7578
  * This API is subject to change or being removed.
7579
+ * @param elm
7553
7580
  */
7554
7581
  function getComponentConstructor(elm) {
7555
7582
  let ctor = null;
@@ -7574,6 +7601,7 @@ function getComponentConstructor(elm) {
7574
7601
  * EXPERIMENTAL: This function allows you to create a reactive readonly
7575
7602
  * membrane around any object value. This API is subject to change or
7576
7603
  * being removed.
7604
+ * @param obj
7577
7605
  */
7578
7606
  function readonly(obj) {
7579
7607
  if (process.env.NODE_ENV !== 'production') {
@@ -7628,5 +7656,5 @@ exports.swapTemplate = swapTemplate;
7628
7656
  exports.track = track;
7629
7657
  exports.unwrap = unwrap;
7630
7658
  exports.wire = wire;
7631
- /** version: 6.2.0 */
7659
+ /** version: 6.2.1 */
7632
7660
  //# sourceMappingURL=index.cjs.js.map