@lwc/engine-core 6.5.1 → 6.5.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.
@@ -14,7 +14,7 @@ declare function i(iterable: Iterable<any>, factory: (value: any, index: number,
14
14
  * [f]lattening
15
15
  * @param items
16
16
  */
17
- declare function f(items: Readonly<Array<Readonly<Array<VNodes>> | VNodes>>): VNodes;
17
+ declare function f(items: ReadonlyArray<VNodes> | VNodes): VNodes;
18
18
  declare function t(text: string): VText;
19
19
  declare function co(text: string): VComment;
20
20
  declare function d(value: any): string;
@@ -40,7 +40,7 @@ export interface RendererAPI {
40
40
  getLastElementChild: (element: E) => E | null;
41
41
  getTagName: (element: E) => string;
42
42
  isConnected: (node: N) => boolean;
43
- insertStylesheet: (content: string, target?: ShadowRoot) => void;
43
+ insertStylesheet: (content: string, target: ShadowRoot | undefined, signal: AbortSignal | undefined) => void;
44
44
  assertInstanceOfHTMLElement: (elm: any, msg: string) => void;
45
45
  createCustomElement: (tagName: string, upgradeCallback: LifecycleCallback, useNativeLifecycle: boolean, isFormAssociated: boolean) => E;
46
46
  defineCustomElement: (tagName: string, isFormAssociated: boolean) => void;
@@ -31,3 +31,4 @@ export declare function getScopeTokenClass(owner: VM, legacy: boolean): string |
31
31
  */
32
32
  export declare function getStylesheetTokenHost(vnode: VCustomElement): string | null;
33
33
  export declare function createStylesheet(vm: VM, stylesheets: string[]): VNode[] | null;
34
+ export declare function unrenderStylesheet(stylesheet: StylesheetFactory): void;
@@ -15,7 +15,12 @@ export declare const enum VStaticPartType {
15
15
  Element = 1
16
16
  }
17
17
  export type VNode = VText | VComment | VElement | VCustomElement | VStatic | VFragment | VScopedSlotFragment;
18
- export type VNodes = Readonly<Array<VNode | null>>;
18
+ export type VNodes = ReadonlyArray<VNode | null>;
19
+ /**
20
+ * Mutable version of {@link VNodes}. It should only be used inside functions to build an array;
21
+ * it should never be used as a parameter or return type.
22
+ */
23
+ export type MutableVNodes = Array<VNode | null>;
19
24
  export interface BaseVParent {
20
25
  children: VNodes;
21
26
  }
@@ -100,7 +105,7 @@ export interface VNodeData {
100
105
  readonly className?: string;
101
106
  readonly style?: string;
102
107
  readonly classMap?: Readonly<Record<string, boolean>>;
103
- readonly styleDecls?: Readonly<Array<[string, string, boolean]>>;
108
+ readonly styleDecls?: ReadonlyArray<[string, string, boolean]>;
104
109
  readonly context?: Readonly<Record<string, Readonly<Record<string, any>>>>;
105
110
  readonly on?: Readonly<Record<string, (event: Event) => any>>;
106
111
  readonly svg?: boolean;