@lwc/engine-core 2.11.0 → 2.11.4

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.
@@ -7,9 +7,9 @@ import { VNodes } from './vnodes';
7
7
  * INTERNAL: This function can only be invoked by compiled code. The compiler
8
8
  * will prevent this function from being imported by userland code.
9
9
  */
10
- export declare function registerComponent(Ctor: LightningElementConstructor, { tmpl }: {
10
+ export declare function registerComponent(Ctor: any, { tmpl }: {
11
11
  tmpl: Template;
12
- }): LightningElementConstructor;
12
+ }): any;
13
13
  export declare function getComponentRegisteredTemplate(Ctor: LightningElementConstructor): Template | undefined;
14
14
  export declare function getTemplateReactiveObserver(vm: VM): ReactiveObserver;
15
15
  export declare function renderComponent(vm: VM): VNodes;
@@ -1,3 +1,2 @@
1
1
  import { VM } from './vm';
2
- import { VNodes } from './vnodes';
3
- export declare function hydrateChildren(elmChildren: NodeList, children: VNodes, vm: VM): void;
2
+ export declare function hydrateRoot(vm: VM): void;
@@ -7,7 +7,8 @@ export { default as wire } from './decorators/wire';
7
7
  export { readonly } from './readonly';
8
8
  export { setFeatureFlag, setFeatureFlagForTest } from '@lwc/features';
9
9
  export { getComponentHtmlPrototype } from './def';
10
- export { createVM, connectRootElement, disconnectRootElement, getAssociatedVMIfPresent, hydrateRootElement, } from './vm';
10
+ export { createVM, connectRootElement, disconnectRootElement, getAssociatedVMIfPresent, } from './vm';
11
+ export { hydrateRoot } from './hydration';
11
12
  export { registerComponent } from './component';
12
13
  export { registerTemplate } from './secure-template';
13
14
  export { registerDecorators } from './decorators/register';
@@ -1,5 +1,7 @@
1
1
  import { VM } from './vm';
2
- import { VNodes, VCustomElement } from './vnodes';
2
+ import { VNode, VNodes, VCustomElement } from './vnodes';
3
3
  export declare function patchChildren(c1: VNodes, c2: VNodes, parent: ParentNode): void;
4
+ export declare function mount(node: VNode, parent: ParentNode, anchor: Node | null): void;
5
+ export declare function removeNode(node: Node, parent: ParentNode): void;
4
6
  export declare function allocateChildren(vnode: VCustomElement, vm: VM): void;
5
7
  export declare function markAsDynamicChildren(children: VNodes): void;
@@ -123,10 +123,8 @@ export interface VM<N = HostNode, E = HostElement> {
123
123
  declare type VMAssociable = HostNode | LightningElement;
124
124
  export declare function rerenderVM(vm: VM): void;
125
125
  export declare function connectRootElement(elm: any): void;
126
- export declare function hydrateRootElement(elm: any): void;
127
126
  export declare function disconnectRootElement(elm: any): void;
128
127
  export declare function appendVM(vm: VM): void;
129
- export declare function hydrateVM(vm: VM): void;
130
128
  export declare function removeVM(vm: VM): void;
131
129
  export declare function createVM<HostNode, HostElement>(elm: HostElement, ctor: LightningElementConstructor, options: {
132
130
  mode: ShadowRootMode;
@@ -136,6 +134,7 @@ export declare function createVM<HostNode, HostElement>(elm: HostElement, ctor:
136
134
  export declare function associateVM(obj: VMAssociable, vm: VM): void;
137
135
  export declare function getAssociatedVM(obj: VMAssociable): VM;
138
136
  export declare function getAssociatedVMIfPresent(obj: VMAssociable): VM | undefined;
137
+ export declare function runRenderedCallback(vm: VM): void;
139
138
  export declare function runConnectedCallback(vm: VM): void;
140
139
  export declare function resetComponentRoot(vm: VM): void;
141
140
  export declare function scheduleRehydration(vm: VM): void;