@lvce-editor/constants 2.2.0 → 2.4.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
CHANGED
|
@@ -304,6 +304,58 @@ declare const Replace = "replace";
|
|
|
304
304
|
declare const ReplaceAll = "replaceAll";
|
|
305
305
|
declare const ToggleBlockComment = "toggleBlockComment";
|
|
306
306
|
declare const Unknown$1 = "unknown";
|
|
307
|
+
declare const Undo = "undo";
|
|
308
|
+
declare const Redo = "redo";
|
|
309
|
+
declare const Cut = "cut";
|
|
310
|
+
declare const Copy = "copy";
|
|
311
|
+
declare const Paste = "paste";
|
|
312
|
+
declare const PasteAndMatchStyle = "pasteAndMatchStyle";
|
|
313
|
+
declare const Delete$1 = "delete";
|
|
314
|
+
declare const SelectAll = "selectAll";
|
|
315
|
+
declare const Reload = "reload";
|
|
316
|
+
declare const ForceReload = "forceReload";
|
|
317
|
+
declare const ToggleDevTools = "toggleDevTools";
|
|
318
|
+
declare const ResetZoom = "resetZoom";
|
|
319
|
+
declare const ZoomIn = "zoomIn";
|
|
320
|
+
declare const ZoomOut = "zoomOut";
|
|
321
|
+
declare const ToggleSpellChecker = "toggleSpellChecker";
|
|
322
|
+
declare const Togglefullscreen = "togglefullscreen";
|
|
323
|
+
declare const Window = "window";
|
|
324
|
+
declare const Minimize = "minimize";
|
|
325
|
+
declare const Close = "close";
|
|
326
|
+
declare const Help = "help";
|
|
327
|
+
declare const About = "about";
|
|
328
|
+
declare const Services = "services";
|
|
329
|
+
declare const Hide = "hide";
|
|
330
|
+
declare const HideOthers = "hideOthers";
|
|
331
|
+
declare const Unhide = "unhide";
|
|
332
|
+
declare const Quit = "quit";
|
|
333
|
+
declare const ShowSubstitutions = "showSubstitutions";
|
|
334
|
+
declare const ToggleSmartQuotes = "toggleSmartQuotes";
|
|
335
|
+
declare const ToggleSmartDashes = "toggleSmartDashes";
|
|
336
|
+
declare const ToggleTextReplacement = "toggleTextReplacement";
|
|
337
|
+
declare const StartSpeaking = "startSpeaking";
|
|
338
|
+
declare const StopSpeaking = "stopSpeaking";
|
|
339
|
+
declare const Zoom = "zoom";
|
|
340
|
+
declare const Front = "front";
|
|
341
|
+
declare const AppMenu = "appMenu";
|
|
342
|
+
declare const FileMenu = "fileMenu";
|
|
343
|
+
declare const EditMenu = "editMenu";
|
|
344
|
+
declare const ViewMenu = "viewMenu";
|
|
345
|
+
declare const ShareMenu = "shareMenu";
|
|
346
|
+
declare const RecentDocuments = "recentDocuments";
|
|
347
|
+
declare const ToggleTabBar = "toggleTabBar";
|
|
348
|
+
declare const SelectNextTab = "selectNextTab";
|
|
349
|
+
declare const SelectPreviousTab = "selectPreviousTab";
|
|
350
|
+
declare const MergeAllWindows = "mergeAllWindows";
|
|
351
|
+
declare const ClearRecentDocuments = "clearRecentDocuments";
|
|
352
|
+
declare const MoveTabToNewWindow = "moveTabToNewWindow";
|
|
353
|
+
declare const WindowMenu = "windowMenu";
|
|
354
|
+
declare const Normal$1 = "normal";
|
|
355
|
+
declare const Separator$1 = "separator";
|
|
356
|
+
declare const SubMenu = "submenu";
|
|
357
|
+
declare const Checkbox = "checkbox";
|
|
358
|
+
declare const Radio = "radio";
|
|
307
359
|
declare const getElementTag: (type: number) => string;
|
|
308
360
|
declare const Audio = "audio";
|
|
309
361
|
declare const Button$3 = "button";
|
|
@@ -388,7 +440,7 @@ declare const CreateFolder = 2;
|
|
|
388
440
|
declare const Rename$1 = 3;
|
|
389
441
|
declare const CreateFolder$1 = 1;
|
|
390
442
|
declare const CreateFile$1 = 2;
|
|
391
|
-
declare const Copy = 3;
|
|
443
|
+
declare const Copy$1 = 3;
|
|
392
444
|
declare const Rename$2 = 4;
|
|
393
445
|
declare const Remove = 5;
|
|
394
446
|
declare const getKeyCode: (key: string) => number;
|
|
@@ -435,7 +487,7 @@ declare const UpArrow = 14;
|
|
|
435
487
|
declare const RightArrow = 15;
|
|
436
488
|
declare const DownArrow = 16;
|
|
437
489
|
declare const Insert = 17;
|
|
438
|
-
declare const Delete$
|
|
490
|
+
declare const Delete$2 = 18;
|
|
439
491
|
declare const Digit0 = 19;
|
|
440
492
|
declare const Digit1 = 20;
|
|
441
493
|
declare const Digit2 = 21;
|
|
@@ -565,7 +617,7 @@ declare const UpArrow$1 = "UpArrow";
|
|
|
565
617
|
declare const RightArrow$1 = "RightArrow";
|
|
566
618
|
declare const DownArrow$1 = "DownArrow";
|
|
567
619
|
declare const Insert$1 = "Insert";
|
|
568
|
-
declare const Delete$
|
|
620
|
+
declare const Delete$3 = "Delete";
|
|
569
621
|
declare const Digit0$1 = "0";
|
|
570
622
|
declare const Digit1$1 = "1";
|
|
571
623
|
declare const Digit2$1 = "2";
|
|
@@ -625,7 +677,7 @@ declare const Editor = 3;
|
|
|
625
677
|
declare const Explorer = 4;
|
|
626
678
|
declare const File$1 = 5;
|
|
627
679
|
declare const Go = 6;
|
|
628
|
-
declare const Help = 7;
|
|
680
|
+
declare const Help$1 = 7;
|
|
629
681
|
declare const ManageExtension = 8;
|
|
630
682
|
declare const OpenRecent = 9;
|
|
631
683
|
declare const Run = 10;
|
|
@@ -650,9 +702,10 @@ declare const ExtensionDetailIconContextMenu = 4091;
|
|
|
650
702
|
declare const TitleBarContextMenu = 90;
|
|
651
703
|
declare const InputContextMenu = 91;
|
|
652
704
|
declare const SearchMatchContextMenu = 93;
|
|
653
|
-
declare const
|
|
705
|
+
declare const SettingsFilter = 94;
|
|
706
|
+
declare const Separator$2 = 1;
|
|
654
707
|
declare const None$2 = 0;
|
|
655
|
-
declare const SubMenu = 4;
|
|
708
|
+
declare const SubMenu$1 = 4;
|
|
656
709
|
declare const Checked = 2;
|
|
657
710
|
declare const Unchecked = 3;
|
|
658
711
|
declare const Disabled = 5;
|
|
@@ -685,7 +738,7 @@ declare const Commands = 1;
|
|
|
685
738
|
declare const Custom = 2;
|
|
686
739
|
declare const File$2 = 3;
|
|
687
740
|
declare const GoToLine = 4;
|
|
688
|
-
declare const Help$
|
|
741
|
+
declare const Help$2 = 5;
|
|
689
742
|
declare const Recent = 6;
|
|
690
743
|
declare const Symbol$1 = 7;
|
|
691
744
|
declare const View$1 = 8;
|
|
@@ -698,7 +751,7 @@ declare const WorkspaceSymbol$1 = "#";
|
|
|
698
751
|
declare const GoToLine$1 = ":";
|
|
699
752
|
declare const View$2 = "view ";
|
|
700
753
|
declare const None$3 = "";
|
|
701
|
-
declare const Help$
|
|
754
|
+
declare const Help$3 = "?";
|
|
702
755
|
declare const GoToColumn = "::";
|
|
703
756
|
declare const ClipBoardProcess = 3401;
|
|
704
757
|
declare const ClipBoardWorker = 3400;
|
|
@@ -919,6 +972,12 @@ declare namespace DirentType {
|
|
|
919
972
|
declare namespace EditOrigin {
|
|
920
973
|
export { CompositionUpdate, ContentEditableInput, Delete, DeleteHorizontalRight, DeleteLeft, EditorCut, EditorPasteText, EditorSnippet, EditorType, EditorTypeWithAutoClosing, Format, IndentLess, IndentMore, InsertLineBreak, LineComment, Rename, Replace, ReplaceAll, ToggleBlockComment, Unknown$1 as Unknown };
|
|
921
974
|
}
|
|
975
|
+
declare namespace ElectronMenuItemRole {
|
|
976
|
+
export { About, AppMenu, ClearRecentDocuments, Close, Copy, Cut, Delete$1 as Delete, EditMenu, FileMenu, ForceReload, Front, Help, Hide, HideOthers, MergeAllWindows, Minimize, MoveTabToNewWindow, Paste, PasteAndMatchStyle, Quit, RecentDocuments, Redo, Reload, ResetZoom, SelectAll, SelectNextTab, SelectPreviousTab, Services, ShareMenu, ShowSubstitutions, StartSpeaking, StopSpeaking, ToggleDevTools, ToggleSmartDashes, ToggleSmartQuotes, ToggleSpellChecker, ToggleTabBar, ToggleTextReplacement, Togglefullscreen, Undo, Unhide, ViewMenu, Window, WindowMenu, Zoom, ZoomIn, ZoomOut };
|
|
977
|
+
}
|
|
978
|
+
declare namespace ElectronMenuItemType {
|
|
979
|
+
export { Checkbox, Normal$1 as Normal, Radio, Separator$1 as Separator, SubMenu };
|
|
980
|
+
}
|
|
922
981
|
declare namespace ElementTagMap {
|
|
923
982
|
export { getElementTag };
|
|
924
983
|
}
|
|
@@ -935,7 +994,7 @@ declare namespace ExplorerEditingType {
|
|
|
935
994
|
export { CreateFile, CreateFolder, None$1 as None, Rename$1 as Rename };
|
|
936
995
|
}
|
|
937
996
|
declare namespace FileOperationType {
|
|
938
|
-
export { Copy, CreateFile$1 as CreateFile, CreateFolder$1 as CreateFolder, Remove, Rename$2 as Rename };
|
|
997
|
+
export { Copy$1 as Copy, CreateFile$1 as CreateFile, CreateFolder$1 as CreateFolder, Remove, Rename$2 as Rename };
|
|
939
998
|
}
|
|
940
999
|
declare namespace GetKeyCode {
|
|
941
1000
|
export { getKeyCode };
|
|
@@ -959,19 +1018,19 @@ declare namespace InputSource {
|
|
|
959
1018
|
export { Script, User };
|
|
960
1019
|
}
|
|
961
1020
|
declare namespace KeyCode {
|
|
962
|
-
export { ABNT_C1, ABNT_C2, Alt, AudioVolumeDown, AudioVolumeMute, AudioVolumeUp, Backquote, Backslash, Backspace, BracketLeft, BracketRight, BrowserBack, BrowserForward, BrowserHome, BrowserSearch, CapsLock, Clear, Comma, ContextMenu, Ctrl, Delete$
|
|
1021
|
+
export { ABNT_C1, ABNT_C2, Alt, AudioVolumeDown, AudioVolumeMute, AudioVolumeUp, Backquote, Backslash, Backspace, BracketLeft, BracketRight, BrowserBack, BrowserForward, BrowserHome, BrowserSearch, CapsLock, Clear, Comma, ContextMenu, Ctrl, Delete$2 as Delete, Digit0, Digit1, Digit2, Digit3, Digit4, Digit5, Digit6, Digit7, Digit8, Digit9, DownArrow, End, Enter, Equal, Escape, F1, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F2, F20, F21, F22, F23, F24, F3, F4, F5, F6, F7, F8, F9, Home, Insert, IntlBackslash, KeyA, KeyB, KeyC, KeyD, KeyE, KeyF, KeyG, KeyH, KeyI, KeyInComposition, KeyJ, KeyK, KeyL, KeyM, KeyN, KeyO, KeyP, KeyQ, KeyR, KeyS, KeyT, KeyU, KeyV, KeyW, KeyX, KeyY, KeyZ, LaunchApp2, LaunchMail, LaunchMediaPlayer, LeftArrow, MaxValue, MediaPlayPause, MediaStop, MediaTrackNext, MediaTrackPrevious, Meta, Minus, NumLock, Numpad0, Numpad1, Numpad2, Numpad3, Numpad4, Numpad5, Numpad6, Numpad7, Numpad8, Numpad9, NumpadAdd, NumpadDecimal, NumpadDivide, NumpadMultiply, NumpadSeparator, NumpadSubtract, OEM_8, PageDown, PageUp, PauseBreak, Period, Plus, Quote, RightArrow, ScrollLock, SemiColon, Slash, Space, Star, Tab$2 as Tab, Unknown$2 as Unknown, UpArrow };
|
|
963
1022
|
}
|
|
964
1023
|
declare namespace KeyCodeString {
|
|
965
|
-
export { Backquote$1 as Backquote, Backslash$1 as Backslash, Backspace$1 as Backspace, Comma$1 as Comma, Delete$
|
|
1024
|
+
export { Backquote$1 as Backquote, Backslash$1 as Backslash, Backspace$1 as Backspace, Comma$1 as Comma, Delete$3 as Delete, Digit0$1 as Digit0, Digit1$1 as Digit1, Digit2$1 as Digit2, Digit3$1 as Digit3, Digit4$1 as Digit4, Digit5$1 as Digit5, Digit6$1 as Digit6, Digit7$1 as Digit7, Digit8$1 as Digit8, Digit9$1 as Digit9, DownArrow$1 as DownArrow, End$1 as End, Enter$1 as Enter, Equal$1 as Equal, Escape$1 as Escape, F1$1 as F1, F2$1 as F2, F3$1 as F3, F4$1 as F4, F5$1 as F5, F6$1 as F6, Home$1 as Home, Insert$1 as Insert, KeyA$1 as KeyA, KeyB$1 as KeyB, KeyC$1 as KeyC, KeyD$1 as KeyD, KeyE$1 as KeyE, KeyF$1 as KeyF, KeyG$1 as KeyG, KeyH$1 as KeyH, KeyI$1 as KeyI, KeyJ$1 as KeyJ, KeyK$1 as KeyK, KeyL$1 as KeyL, KeyM$1 as KeyM, KeyN$1 as KeyN, KeyO$1 as KeyO, KeyP$1 as KeyP, KeyQ$1 as KeyQ, KeyR$1 as KeyR, KeyS$1 as KeyS, KeyT$1 as KeyT, KeyU$1 as KeyU, KeyV$1 as KeyV, KeyW$1 as KeyW, KeyX$1 as KeyX, KeyY$1 as KeyY, KeyZ$1 as KeyZ, LeftArrow$1 as LeftArrow, Minus$1 as Minus, PageDown$1 as PageDown, PageUp$1 as PageUp, Plus$1 as Plus, RightArrow$1 as RightArrow, Space$1 as Space, Star$1 as Star, Tab$3 as Tab, Unknown$3 as Unknown, UpArrow$1 as UpArrow };
|
|
966
1025
|
}
|
|
967
1026
|
declare namespace KeyModifier {
|
|
968
1027
|
export { Alt$1 as Alt, CtrlCmd, Shift, WinCtrl };
|
|
969
1028
|
}
|
|
970
1029
|
declare namespace MenuEntryId {
|
|
971
|
-
export { ActivityBar, ActivityBarAdditionalViews, E2eTests, Edit, Editor, EditorImage, Explorer, ExtensionDetailIconContextMenu, ExtensionDetailReadme, File$1 as File, Go, Help, InputContextMenu, KeyBindingsTable, Main, ManageExtension, OpenRecent, Problems$1 as Problems, ProblemsFilter, Run, Search$2 as Search, SearchMatchContextMenu, Selection, Settings, SimpleBrowser, SourceControl, Tab$4 as Tab, Terminal, TitleBar, TitleBarContextMenu, View };
|
|
1030
|
+
export { ActivityBar, ActivityBarAdditionalViews, E2eTests, Edit, Editor, EditorImage, Explorer, ExtensionDetailIconContextMenu, ExtensionDetailReadme, File$1 as File, Go, Help$1 as Help, InputContextMenu, KeyBindingsTable, Main, ManageExtension, OpenRecent, Problems$1 as Problems, ProblemsFilter, Run, Search$2 as Search, SearchMatchContextMenu, Selection, Settings, SettingsFilter, SimpleBrowser, SourceControl, Tab$4 as Tab, Terminal, TitleBar, TitleBarContextMenu, View };
|
|
972
1031
|
}
|
|
973
1032
|
declare namespace MenuItemFlags {
|
|
974
|
-
export { Checked, Disabled, Ignore, None$2 as None, RestoreFocus, Separator$
|
|
1033
|
+
export { Checked, Disabled, Ignore, None$2 as None, RestoreFocus, Separator$2 as Separator, SubMenu$1 as SubMenu, Unchecked };
|
|
975
1034
|
}
|
|
976
1035
|
declare namespace MouseEventType {
|
|
977
1036
|
export { Keyboard, LeftClick };
|
|
@@ -986,10 +1045,10 @@ declare namespace PlatformType {
|
|
|
986
1045
|
export { Electron, Remote, Test, Web };
|
|
987
1046
|
}
|
|
988
1047
|
declare namespace QuickPickEntryId {
|
|
989
|
-
export { ColorTheme, Commands, Custom, EveryThing, File$2 as File, GoToLine, Help$
|
|
1048
|
+
export { ColorTheme, Commands, Custom, EveryThing, File$2 as File, GoToLine, Help$2 as Help, Noop, Recent, Symbol$1 as Symbol, View$1 as View, WorkspaceSymbol };
|
|
990
1049
|
}
|
|
991
1050
|
declare namespace QuickPickPrefix {
|
|
992
|
-
export { Command, GoToColumn, GoToLine$1 as GoToLine, Help$
|
|
1051
|
+
export { Command, GoToColumn, GoToLine$1 as GoToLine, Help$3 as Help, None$3 as None, Symbol$1 as Symbol, View$2 as View, WorkspaceSymbol$1 as WorkspaceSymbol };
|
|
993
1052
|
}
|
|
994
1053
|
declare namespace RpcId {
|
|
995
1054
|
export { ClipBoardProcess, ClipBoardWorker, ColorPickerWorker, CompletionWorker, DebugWorker, EditorWorker, EmbedsProcess, EmbedsWorker, ErrorWorker, ExtensionDetailWorker, ExtensionHostWorker, ExtensionManagementWorker, FileSystemProcess, FileSystemWorker, FindWidgetWorker, HoverWorker, IconThemeWorker, IframeWorker, MainProcess, MarkdownWorker, OutputWorker, ProblemsWorker, RenameWorker, RendererProcess, RendererWorker, SearchProcess, SearchProcessElectron, SharedProcess, SourceActionWorker, SourceControlWorker, StatusBarWorker, SyntaxHighlightingWorker, TestWithPlaywrightCli, TestWithPlaywrightWorker, TestWorker, TextMeasurementWorker, TextSearchWorker };
|
|
@@ -1031,6 +1090,8 @@ export {
|
|
|
1031
1090
|
ClassNames,
|
|
1032
1091
|
DirentType,
|
|
1033
1092
|
EditOrigin,
|
|
1093
|
+
ElectronMenuItemRole,
|
|
1094
|
+
ElectronMenuItemType,
|
|
1034
1095
|
ElementTagMap,
|
|
1035
1096
|
ElementTags,
|
|
1036
1097
|
ErrorCodes,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// based on https://www.electronjs.org/docs/latest/api/menu-item#new-menuitemoptions
|
|
2
|
+
export const Undo = 'undo';
|
|
3
|
+
export const Redo = 'redo';
|
|
4
|
+
export const Cut = 'cut';
|
|
5
|
+
export const Copy = 'copy';
|
|
6
|
+
export const Paste = 'paste';
|
|
7
|
+
export const PasteAndMatchStyle = 'pasteAndMatchStyle';
|
|
8
|
+
export const Delete = 'delete';
|
|
9
|
+
export const SelectAll = 'selectAll';
|
|
10
|
+
export const Reload = 'reload';
|
|
11
|
+
export const ForceReload = 'forceReload';
|
|
12
|
+
export const ToggleDevTools = 'toggleDevTools';
|
|
13
|
+
export const ResetZoom = 'resetZoom';
|
|
14
|
+
export const ZoomIn = 'zoomIn';
|
|
15
|
+
export const ZoomOut = 'zoomOut';
|
|
16
|
+
export const ToggleSpellChecker = 'toggleSpellChecker';
|
|
17
|
+
export const Togglefullscreen = 'togglefullscreen';
|
|
18
|
+
export const Window = 'window';
|
|
19
|
+
export const Minimize = 'minimize';
|
|
20
|
+
export const Close = 'close';
|
|
21
|
+
export const Help = 'help';
|
|
22
|
+
export const About = 'about';
|
|
23
|
+
export const Services = 'services';
|
|
24
|
+
export const Hide = 'hide';
|
|
25
|
+
export const HideOthers = 'hideOthers';
|
|
26
|
+
export const Unhide = 'unhide';
|
|
27
|
+
export const Quit = 'quit';
|
|
28
|
+
export const ShowSubstitutions = 'showSubstitutions';
|
|
29
|
+
export const ToggleSmartQuotes = 'toggleSmartQuotes';
|
|
30
|
+
export const ToggleSmartDashes = 'toggleSmartDashes';
|
|
31
|
+
export const ToggleTextReplacement = 'toggleTextReplacement';
|
|
32
|
+
export const StartSpeaking = 'startSpeaking';
|
|
33
|
+
export const StopSpeaking = 'stopSpeaking';
|
|
34
|
+
export const Zoom = 'zoom';
|
|
35
|
+
export const Front = 'front';
|
|
36
|
+
export const AppMenu = 'appMenu';
|
|
37
|
+
export const FileMenu = 'fileMenu';
|
|
38
|
+
export const EditMenu = 'editMenu';
|
|
39
|
+
export const ViewMenu = 'viewMenu';
|
|
40
|
+
export const ShareMenu = 'shareMenu';
|
|
41
|
+
export const RecentDocuments = 'recentDocuments';
|
|
42
|
+
export const ToggleTabBar = 'toggleTabBar';
|
|
43
|
+
export const SelectNextTab = 'selectNextTab';
|
|
44
|
+
export const SelectPreviousTab = 'selectPreviousTab';
|
|
45
|
+
export const MergeAllWindows = 'mergeAllWindows';
|
|
46
|
+
export const ClearRecentDocuments = 'clearRecentDocuments';
|
|
47
|
+
export const MoveTabToNewWindow = 'moveTabToNewWindow';
|
|
48
|
+
export const WindowMenu = 'windowMenu';
|
package/dist/parts/Main/Main.js
CHANGED
|
@@ -3,6 +3,8 @@ export * as AriaRoles from "../AriaRoles/AriaRoles.js";
|
|
|
3
3
|
export * as ClassNames from "../ClassNames/ClassNames.js";
|
|
4
4
|
export * as DirentType from "../DirentType/DirentType.js";
|
|
5
5
|
export * as EditOrigin from "../EditOrigin/EditOrigin.js";
|
|
6
|
+
export * as ElectronMenuItemRole from "../ElectronMenuItemRole/ElectronMenuItemRole.js";
|
|
7
|
+
export * as ElectronMenuItemType from "../ElectronMenuItemType/ElectronMenuItemType.js";
|
|
6
8
|
export * as ElementTagMap from "../ElementTagMap/ElementTagMap.js";
|
|
7
9
|
export * as ElementTags from "../ElementTags/ElementTags.js";
|
|
8
10
|
export * as ErrorCodes from "../ErrorCodes/ErrorCodes.js";
|