@lvce-editor/virtual-dom-worker 9.9.0 → 9.11.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/index.d.ts +1 -0
- package/dist/parts/AddPatch/AddPatch.d.ts +5 -0
- package/dist/parts/ApplyPendingPatches/ApplyPendingPatches.d.ts +2 -0
- package/dist/parts/AriaLive/AriaLive.d.ts +1 -0
- package/dist/parts/AttributePatch/AttributePatch.d.ts +5 -0
- package/dist/parts/DomEventListener/DomEventListener.d.ts +6 -0
- package/dist/parts/GetKeys/GetKeys.d.ts +2 -0
- package/dist/parts/GetTotalChildCount/GetTotalChildCount.d.ts +2 -0
- package/dist/parts/InputEventType/InputEventType.d.ts +8 -0
- package/dist/parts/IsKey/IsKey.d.ts +1 -0
- package/dist/parts/Main/Main.d.ts +9 -0
- package/dist/parts/MergeClassNames/MergeClassNames.d.ts +1 -0
- package/dist/parts/MouseEventType/MouseEventType.d.ts +2 -0
- package/dist/parts/NavigateChildPatch/NavigateChildPatch.d.ts +4 -0
- package/dist/parts/NavigateParentPatch/NavigateParentPatch.d.ts +3 -0
- package/dist/parts/NavigateSiblingPatch/NavigateSiblingPatch.d.ts +4 -0
- package/dist/parts/Patch/Patch.d.ts +12 -0
- package/dist/parts/PatchType/PatchType.d.ts +11 -0
- package/dist/parts/Px/Px.d.ts +2 -0
- package/dist/parts/RemoveAttributePatch/RemoveAttributePatch.d.ts +4 -0
- package/dist/parts/RemoveChildPatch/RemoveChildPatch.d.ts +4 -0
- package/dist/parts/RemovePatch/RemovePatch.d.ts +4 -0
- package/dist/parts/ReplacePatch/ReplacePatch.d.ts +5 -0
- package/dist/parts/SetReferenceNodeUidPatch/SetReferenceNodeUidPatch.d.ts +4 -0
- package/dist/parts/Text/Text.d.ts +2 -0
- package/dist/parts/TextPatch/TextPatch.d.ts +4 -0
- package/dist/parts/VirtualDomDiff/VirtualDomDiff.d.ts +3 -0
- package/dist/parts/VirtualDomDiffTree/AddNavigationPatches.d.ts +2 -0
- package/dist/parts/VirtualDomDiffTree/CompareNodes.d.ts +3 -0
- package/dist/parts/VirtualDomDiffTree/DiffTrees.d.ts +3 -0
- package/dist/parts/VirtualDomDiffTree/RemoveTrailingNavigationPatches.d.ts +2 -0
- package/dist/parts/VirtualDomDiffTree/TreeToArray.d.ts +3 -0
- package/dist/parts/VirtualDomDiffTree/VirtualDomDiffTree.d.ts +3 -0
- package/dist/parts/VirtualDomNode/VirtualDomNode.d.ts +4 -0
- package/dist/parts/VirtualDomTree/VirtualDomTree.d.ts +6 -0
- package/dist/parts/WhenExpression/WhenExpression.d.ts +54 -0
- package/package.json +2 -2
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './parts/Main/Main.ts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Polite = "polite";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const InsertText = "insertText";
|
|
2
|
+
export declare const DeleteContentBackward = "deleteContentBackward";
|
|
3
|
+
export declare const DeleteContentForward = "deleteContentForward";
|
|
4
|
+
export declare const DeleteWordForward = "deleteWordForward";
|
|
5
|
+
export declare const DeleteWordBackward = "deleteWordBackward";
|
|
6
|
+
export declare const InsertLineBreak = "insertLineBreak";
|
|
7
|
+
export declare const InsertCompositionText = "insertCompositionText";
|
|
8
|
+
export declare const InsertFromPaste = "insertFromPaste";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isKey: (key: string) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeClassNames: (...classNames: readonly string[]) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,3 @@
|
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
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[];
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const Empty = 0;
|
|
2
|
+
export declare const BrowserChromium = 1;
|
|
3
|
+
export declare const BrowserElectron = 2;
|
|
4
|
+
export declare const BrowserFirefox = 3;
|
|
5
|
+
export declare const FocusAbout = 4;
|
|
6
|
+
export declare const FocusActivityBar = 5;
|
|
7
|
+
export declare const FocusDebugInput = 6;
|
|
8
|
+
export declare const FocusDialog = 7;
|
|
9
|
+
export declare const FocusEditor = 12;
|
|
10
|
+
export declare const FocusEditorCompletions = 9;
|
|
11
|
+
export declare const FocusEditorImage = 10;
|
|
12
|
+
export declare const FocusEditorRename = 11;
|
|
13
|
+
export declare const FocusEditorText = 12;
|
|
14
|
+
export declare const FocusExplorer = 13;
|
|
15
|
+
export declare const FocusExplorerEditBox = 14;
|
|
16
|
+
export declare const FocusExtensions = 15;
|
|
17
|
+
export declare const FocusFindWidget = 16;
|
|
18
|
+
export declare const FocusLocationList = 17;
|
|
19
|
+
export declare const FocusMenu = 18;
|
|
20
|
+
export declare const FocusProblems = 19;
|
|
21
|
+
export declare const FocusQuickPickInput = 20;
|
|
22
|
+
export declare const FocusSearchInput = 21;
|
|
23
|
+
export declare const FocusSearchResults = 22;
|
|
24
|
+
export declare const FocusSimpleBrowserInput = 23;
|
|
25
|
+
export declare const FocusSourceControlInput = 24;
|
|
26
|
+
export declare const FocusTerminal = 25;
|
|
27
|
+
export declare const FocusTitleBarMenuBar = 26;
|
|
28
|
+
export declare const FocusViewletList = 27;
|
|
29
|
+
export declare const FocusOutput = 28;
|
|
30
|
+
export declare const FocusDebugConsoleInput = 29;
|
|
31
|
+
export declare const FocusDebugScope = 30;
|
|
32
|
+
export declare const FocusSearchReplaceInput = 31;
|
|
33
|
+
export declare const FocusSearchMatchCase = 32;
|
|
34
|
+
export declare const FocusSearchRegex = 33;
|
|
35
|
+
export declare const FocusSearchWholeWord = 34;
|
|
36
|
+
export declare const FocusSearchReplaceAll = 35;
|
|
37
|
+
export declare const FocusSearchPreserveCase = 36;
|
|
38
|
+
export declare const FocusSimpleBrowser = 37;
|
|
39
|
+
export declare const FocusSourceActions = 38;
|
|
40
|
+
export declare const FocusKeyBindingsTable = 39;
|
|
41
|
+
export declare const FocusConfirm = 40;
|
|
42
|
+
export declare const FocusColorPicker = 41;
|
|
43
|
+
export declare const FocusFindWidgetToggleReplace = 42;
|
|
44
|
+
export declare const FocusFindWidgetReplace = 43;
|
|
45
|
+
export declare const FocusFindWidgetRegex = 44;
|
|
46
|
+
export declare const FocusFindWidgetMatchCase = 45;
|
|
47
|
+
export declare const FocusFindWidgetReplaceButton = 46;
|
|
48
|
+
export declare const FocusFindWidgetReplaceAllButton = 47;
|
|
49
|
+
export declare const FocusFindWidgetCloseButton = 48;
|
|
50
|
+
export declare const FocusFindWidgetNextMatchButton = 49;
|
|
51
|
+
export declare const FocusFindWidgetPreviousMatchButton = 50;
|
|
52
|
+
export declare const FocusEditorHover = 51;
|
|
53
|
+
export declare const FocusEditorCodeGenerator = 52;
|
|
54
|
+
export declare const FocusKeyBindingsWhenExpression = 53;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/virtual-dom-worker",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.11.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.12.0"
|
|
13
13
|
},
|
|
14
14
|
"exports": "./dist/index.js",
|
|
15
15
|
"types": "dist/index.d.ts"
|