@lwc/engine-core 2.7.2 → 2.7.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.
- package/dist/engine-core.cjs.js +893 -1030
- package/dist/engine-core.js +894 -1031
- package/package.json +4 -4
- package/types/3rdparty/snabbdom/types.d.ts +1 -1
- package/types/framework/hooks.d.ts +2 -6
- package/types/framework/modules/attrs.d.ts +1 -6
- package/types/framework/modules/computed-class-attr.d.ts +1 -6
- package/types/framework/modules/computed-style-attr.d.ts +2 -7
- package/types/framework/modules/events.d.ts +2 -14
- package/types/framework/modules/props.d.ts +1 -6
- package/types/framework/modules/static-class-attr.d.ts +2 -6
- package/types/framework/modules/static-style-attr.d.ts +2 -6
- package/types/framework/vm.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lwc/engine-core",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"description": "Core LWC engine APIs.",
|
|
5
5
|
"homepage": "https://lwc.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"types/"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lwc/features": "2.7.
|
|
28
|
-
"@lwc/shared": "2.7.
|
|
27
|
+
"@lwc/features": "2.7.3",
|
|
28
|
+
"@lwc/shared": "2.7.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"observable-membrane": "2.0.0"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "392d6a92b3a15a24b686024f3c4d0c6bdabc2b8e"
|
|
37
37
|
}
|
|
@@ -54,7 +54,7 @@ export interface VNodeData {
|
|
|
54
54
|
classMap?: Record<string, boolean>;
|
|
55
55
|
styleDecls?: Array<[string, string, boolean]>;
|
|
56
56
|
context?: Record<string, Record<string, any>>;
|
|
57
|
-
on?: Record<string,
|
|
57
|
+
on?: Record<string, (event: Event) => any>;
|
|
58
58
|
svg?: boolean;
|
|
59
59
|
}
|
|
60
60
|
export interface VElementData extends VNodeData {
|
|
@@ -3,20 +3,16 @@ import { VNode, VCustomElement, VElement, VNodes } from '../3rdparty/snabbdom/ty
|
|
|
3
3
|
export declare function updateNodeHook(oldVnode: VNode, vnode: VNode): void;
|
|
4
4
|
export declare function insertNodeHook(vnode: VNode, parentNode: Node, referenceNode: Node | null): void;
|
|
5
5
|
export declare function removeNodeHook(vnode: VNode, parentNode: Node): void;
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function patchElementPropsAndAttrs(oldVnode: VElement | null, vnode: VElement): void;
|
|
7
7
|
export declare const enum LWCDOMMode {
|
|
8
8
|
manual = "manual"
|
|
9
9
|
}
|
|
10
10
|
export declare function hydrateElmHook(vnode: VElement): void;
|
|
11
11
|
export declare function fallbackElmHook(elm: Element, vnode: VElement): void;
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function updateChildrenHook(oldVnode: VElement, vnode: VElement): void;
|
|
12
|
+
export declare function patchChildren(parent: ParentNode, oldCh: VNodes, newCh: VNodes): void;
|
|
14
13
|
export declare function allocateChildrenHook(vnode: VCustomElement, vm: VM): void;
|
|
15
14
|
export declare function createViewModelHook(elm: HTMLElement, vnode: VCustomElement): void;
|
|
16
|
-
export declare function createCustomElmHook(vnode: VCustomElement): void;
|
|
17
15
|
export declare function createChildrenHook(vnode: VElement): void;
|
|
18
16
|
export declare function hydrateChildrenHook(elmChildren: NodeListOf<ChildNode>, children: VNodes, vm?: VM): void;
|
|
19
|
-
export declare function updateCustomElmHook(oldVnode: VCustomElement, vnode: VCustomElement): void;
|
|
20
17
|
export declare function removeElmHook(vnode: VElement): void;
|
|
21
18
|
export declare function markAsDynamicChildren(children: VNodes): void;
|
|
22
|
-
export declare function hasDynamicChildren(children: VNodes): boolean;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { VElement } from '../../3rdparty/snabbdom/types';
|
|
2
|
-
declare function
|
|
3
|
-
declare const _default: {
|
|
4
|
-
create: (vnode: VElement) => void;
|
|
5
|
-
update: typeof updateAttrs;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
2
|
+
export declare function patchAttributes(oldVnode: VElement | null, vnode: VElement): void;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { VElement } from '../../3rdparty/snabbdom/types';
|
|
2
|
-
declare function
|
|
3
|
-
declare const _default: {
|
|
4
|
-
create: (vnode: VElement) => void;
|
|
5
|
-
update: typeof updateClassAttribute;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
2
|
+
export declare function patchClassAttribute(oldVnode: VElement | null, vnode: VElement): void;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare function
|
|
3
|
-
declare const _default: {
|
|
4
|
-
create: (vnode: VNode) => void;
|
|
5
|
-
update: typeof updateStyleAttribute;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
1
|
+
import { VElement } from '../../3rdparty/snabbdom/types';
|
|
2
|
+
export declare function patchStyleAttribute(oldVnode: VElement | null, vnode: VElement): void;
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
vnode?: VNode;
|
|
4
|
-
}
|
|
5
|
-
interface InteractiveVNode extends VNode {
|
|
6
|
-
listener: VNodeEventListener | undefined;
|
|
7
|
-
}
|
|
8
|
-
declare function updateAllEventListeners(oldVnode: InteractiveVNode, vnode: InteractiveVNode): void;
|
|
9
|
-
declare function createAllEventListeners(vnode: VNode): void;
|
|
10
|
-
declare const _default: {
|
|
11
|
-
update: typeof updateAllEventListeners;
|
|
12
|
-
create: typeof createAllEventListeners;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
1
|
+
import { VElement } from '../../3rdparty/snabbdom/types';
|
|
2
|
+
export declare function applyEventListeners(vnode: VElement): void;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { VElement } from '../../3rdparty/snabbdom/types';
|
|
2
|
-
declare function
|
|
3
|
-
declare const _default: {
|
|
4
|
-
create: (vnode: VElement) => void;
|
|
5
|
-
update: typeof update;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
2
|
+
export declare function patchProps(oldVnode: VElement | null, vnode: VElement): void;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare function
|
|
3
|
-
declare const _default: {
|
|
4
|
-
create: typeof createClassAttribute;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
1
|
+
import { VElement } from '../../3rdparty/snabbdom/types';
|
|
2
|
+
export declare function applyStaticClassAttribute(vnode: VElement): void;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare function
|
|
3
|
-
declare const _default: {
|
|
4
|
-
create: typeof createStyleAttribute;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
1
|
+
import { VElement } from '../../3rdparty/snabbdom/types';
|
|
2
|
+
export declare function applyStaticStyleAttribute(vnode: VElement): void;
|
package/types/framework/vm.d.ts
CHANGED
|
@@ -133,7 +133,6 @@ export declare function getAssociatedVMIfPresent(obj: VMAssociable): VM | undefi
|
|
|
133
133
|
export declare function runConnectedCallback(vm: VM): void;
|
|
134
134
|
export declare function resetComponentRoot(vm: VM): void;
|
|
135
135
|
export declare function scheduleRehydration(vm: VM): void;
|
|
136
|
-
export declare function allocateInSlot(vm: VM, children: VNodes): void;
|
|
137
136
|
export declare function runWithBoundaryProtection(vm: VM, owner: VM | null, pre: () => void, job: () => void, post: () => void): void;
|
|
138
137
|
export declare function forceRehydration(vm: VM): void;
|
|
139
138
|
export declare function getRenderRoot(vm: VM): ShadowRoot | HostElement;
|