@lvce-editor/virtual-dom-worker 9.8.0 → 9.9.0
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/parts/VirtualDomDiffTree/DiffTrees.js +0 -1
- package/package.json +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/parts/AddPatch/AddPatch.d.ts +0 -5
- package/dist/parts/ApplyPendingPatches/ApplyPendingPatches.d.ts +0 -2
- package/dist/parts/AriaLive/AriaLive.d.ts +0 -1
- package/dist/parts/AttributePatch/AttributePatch.d.ts +0 -5
- package/dist/parts/DomEventListener/DomEventListener.d.ts +0 -6
- package/dist/parts/GetKeys/GetKeys.d.ts +0 -2
- package/dist/parts/GetTotalChildCount/GetTotalChildCount.d.ts +0 -2
- package/dist/parts/IsKey/IsKey.d.ts +0 -1
- package/dist/parts/Main/Main.d.ts +0 -9
- package/dist/parts/MergeClassNames/MergeClassNames.d.ts +0 -1
- package/dist/parts/NavigateChildPatch/NavigateChildPatch.d.ts +0 -4
- package/dist/parts/NavigateParentPatch/NavigateParentPatch.d.ts +0 -3
- package/dist/parts/NavigateSiblingPatch/NavigateSiblingPatch.d.ts +0 -4
- package/dist/parts/Patch/Patch.d.ts +0 -12
- package/dist/parts/PatchType/PatchType.d.ts +0 -11
- package/dist/parts/Px/Px.d.ts +0 -2
- package/dist/parts/RemoveAttributePatch/RemoveAttributePatch.d.ts +0 -4
- package/dist/parts/RemoveChildPatch/RemoveChildPatch.d.ts +0 -4
- package/dist/parts/RemovePatch/RemovePatch.d.ts +0 -4
- package/dist/parts/ReplacePatch/ReplacePatch.d.ts +0 -5
- package/dist/parts/SetReferenceNodeUidPatch/SetReferenceNodeUidPatch.d.ts +0 -4
- package/dist/parts/Text/Text.d.ts +0 -2
- package/dist/parts/TextPatch/TextPatch.d.ts +0 -4
- package/dist/parts/VirtualDomDiff/VirtualDomDiff.d.ts +0 -3
- package/dist/parts/VirtualDomDiffTree/CompareNodes.d.ts +0 -3
- package/dist/parts/VirtualDomDiffTree/DiffTrees.d.ts +0 -3
- package/dist/parts/VirtualDomDiffTree/RemoveTrailingNavigationPatches.d.ts +0 -2
- package/dist/parts/VirtualDomDiffTree/TreeToArray.d.ts +0 -3
- package/dist/parts/VirtualDomDiffTree/VirtualDomDiffTree.d.ts +0 -3
- package/dist/parts/VirtualDomNode/VirtualDomNode.d.ts +0 -4
- package/dist/parts/VirtualDomTree/VirtualDomTree.d.ts +0 -6
|
@@ -97,7 +97,6 @@ const diffChildren = (oldChildren, newChildren, patches) => {
|
|
|
97
97
|
patches.push({
|
|
98
98
|
type: PatchType.NavigateParent,
|
|
99
99
|
});
|
|
100
|
-
currentChildIndex = -1;
|
|
101
100
|
}
|
|
102
101
|
// Add remove patches in reverse order (highest index first)
|
|
103
102
|
// This ensures indices remain valid as we remove
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/virtual-dom-worker",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.9.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/lvce-editor/virtual-dom.git"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@lvce-editor/constants": "^5.
|
|
12
|
+
"@lvce-editor/constants": "^5.11.0"
|
|
13
13
|
},
|
|
14
14
|
"exports": "./dist/index.js",
|
|
15
15
|
"types": "dist/index.d.ts"
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './parts/Main/Main.ts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Polite = "polite";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isKey: (key: string) => boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { AriaRoles, ClassNames, InputEventType, KeyCode, KeyModifier, MouseEventType, VirtualDomElements, WhenExpression, } from '@lvce-editor/constants';
|
|
2
|
-
export * as AriaLive from '../AriaLive/AriaLive.ts';
|
|
3
|
-
export type * from '../DomEventListener/DomEventListener.ts';
|
|
4
|
-
export * from '../MergeClassNames/MergeClassNames.ts';
|
|
5
|
-
export * from '../Px/Px.ts';
|
|
6
|
-
export * from '../Text/Text.ts';
|
|
7
|
-
export { diff } from '../VirtualDomDiff/VirtualDomDiff.ts';
|
|
8
|
-
export { diffTree } from '../VirtualDomDiffTree/VirtualDomDiffTree.ts';
|
|
9
|
-
export type * from '../VirtualDomNode/VirtualDomNode.ts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mergeClassNames: (...classNames: readonly string[]) => string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AddPatch } from '../AddPatch/AddPatch.ts';
|
|
2
|
-
import type { AttributePatch } from '../AttributePatch/AttributePatch.ts';
|
|
3
|
-
import type { NavigateChildPatch } from '../NavigateChildPatch/NavigateChildPatch.ts';
|
|
4
|
-
import type { NavigateParentPatch } from '../NavigateParentPatch/NavigateParentPatch.ts';
|
|
5
|
-
import type { NavigateSiblingPatch } from '../NavigateSiblingPatch/NavigateSiblingPatch.ts';
|
|
6
|
-
import type { RemoveAttributePatch } from '../RemoveAttributePatch/RemoveAttributePatch.ts';
|
|
7
|
-
import type { RemoveChildPatch } from '../RemoveChildPatch/RemoveChildPatch.ts';
|
|
8
|
-
import type { RemovePatch } from '../RemovePatch/RemovePatch.ts';
|
|
9
|
-
import type { ReplacePatch } from '../ReplacePatch/ReplacePatch.ts';
|
|
10
|
-
import type { SetReferenceNodeUidPatch } from '../SetReferenceNodeUidPatch/SetReferenceNodeUidPatch.ts';
|
|
11
|
-
import type { TextPatch } from '../TextPatch/TextPatch.ts';
|
|
12
|
-
export type Patch = TextPatch | AttributePatch | ReplacePatch | RemoveAttributePatch | RemovePatch | AddPatch | NavigateChildPatch | NavigateParentPatch | RemoveChildPatch | NavigateSiblingPatch | SetReferenceNodeUidPatch;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const SetText = 1;
|
|
2
|
-
export declare const Replace = 2;
|
|
3
|
-
export declare const SetAttribute = 3;
|
|
4
|
-
export declare const RemoveAttribute = 4;
|
|
5
|
-
export declare const Remove = 5;
|
|
6
|
-
export declare const Add = 6;
|
|
7
|
-
export declare const NavigateChild = 7;
|
|
8
|
-
export declare const NavigateParent = 8;
|
|
9
|
-
export declare const RemoveChild = 9;
|
|
10
|
-
export declare const NavigateSibling = 10;
|
|
11
|
-
export declare const SetReferenceNodeUid = 11;
|
package/dist/parts/Px/Px.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Patch } from '../Patch/Patch.ts';
|
|
2
|
-
import type * as VirtualDomTree from '../VirtualDomTree/VirtualDomTree.ts';
|
|
3
|
-
export declare const diffTrees: (oldTree: readonly VirtualDomTree.VirtualDomTreeNode[], newTree: readonly VirtualDomTree.VirtualDomTreeNode[], patches: Patch[], path: number[]) => void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { VirtualDomNode } from '../VirtualDomNode/VirtualDomNode.ts';
|
|
2
|
-
export interface VirtualDomTreeNode {
|
|
3
|
-
readonly children: readonly VirtualDomTreeNode[];
|
|
4
|
-
readonly node: VirtualDomNode;
|
|
5
|
-
}
|
|
6
|
-
export declare const arrayToTree: (nodes: readonly VirtualDomNode[]) => readonly VirtualDomTreeNode[];
|