@lvce-editor/constants 1.24.0 → 1.26.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 +40 -4
- package/dist/parts/AriaRoles/AriaRoles.js +5 -0
- package/dist/parts/Main/Main.js +3 -0
- package/dist/parts/ParseKey/ParseKey.js +13 -0
- package/dist/parts/ParsedKey/ParsedKey.js +1 -0
- package/dist/parts/PatchType/PatchType.js +10 -0
- package/dist/parts/RpcId/RpcId.js +1 -0
- package/dist/parts/TextSearchResultType/TextSearchResultType.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,10 +8,15 @@ declare const Document = "document";
|
|
|
8
8
|
declare const Group = "group";
|
|
9
9
|
declare const ListBox = "listbox";
|
|
10
10
|
declare const Log = "log";
|
|
11
|
+
declare const Menu = "menu";
|
|
12
|
+
declare const MenuBar = "menubar";
|
|
13
|
+
declare const MenuItem = "menuitem";
|
|
14
|
+
declare const MenuItemCheckBox = "menuitemcheckbox";
|
|
11
15
|
declare const None = "none";
|
|
12
16
|
declare const Option = "option";
|
|
13
17
|
declare const Panel = "panel";
|
|
14
18
|
declare const ScrollBar = "scrollbar";
|
|
19
|
+
declare const Separator = "separator";
|
|
15
20
|
declare const Status = "status";
|
|
16
21
|
declare const Tab = "tab";
|
|
17
22
|
declare const TabList = "tablist";
|
|
@@ -628,7 +633,7 @@ declare const Main = 24;
|
|
|
628
633
|
declare const ProblemsFilter = 25;
|
|
629
634
|
declare const KeyBindingsTable = 26;
|
|
630
635
|
declare const E2eTests = 27;
|
|
631
|
-
declare const Separator = 1;
|
|
636
|
+
declare const Separator$1 = 1;
|
|
632
637
|
declare const None$2 = 0;
|
|
633
638
|
declare const SubMenu = 4;
|
|
634
639
|
declare const Checked = 2;
|
|
@@ -638,6 +643,22 @@ declare const RestoreFocus = 6;
|
|
|
638
643
|
declare const Ignore = 7;
|
|
639
644
|
declare const Keyboard = -1;
|
|
640
645
|
declare const LeftClick = 0;
|
|
646
|
+
export interface ParsedKey {
|
|
647
|
+
readonly key: string;
|
|
648
|
+
readonly isCtrl: boolean;
|
|
649
|
+
readonly isShift: boolean;
|
|
650
|
+
}
|
|
651
|
+
declare const parseKey: (rawKey: number) => ParsedKey;
|
|
652
|
+
declare const SetText = 1;
|
|
653
|
+
declare const Replace$1 = 2;
|
|
654
|
+
declare const SetAttribute = 3;
|
|
655
|
+
declare const RemoveAttribute = 4;
|
|
656
|
+
declare const Remove$1 = 5;
|
|
657
|
+
declare const Add = 6;
|
|
658
|
+
declare const NavigateChild = 7;
|
|
659
|
+
declare const NavigateParent = 8;
|
|
660
|
+
declare const RemoveChild = 9;
|
|
661
|
+
declare const NavigateSibling = 10;
|
|
641
662
|
declare const Web = 1;
|
|
642
663
|
declare const Electron = 2;
|
|
643
664
|
declare const Remote = 3;
|
|
@@ -674,6 +695,9 @@ declare const RenameWorker = 9004;
|
|
|
674
695
|
declare const TestWithPlaywrightCli = 6000;
|
|
675
696
|
declare const TestWithPlaywrightWorker = 6001;
|
|
676
697
|
declare const IconThemeWorker = 7009;
|
|
698
|
+
declare const TextSearchWorker = 7010;
|
|
699
|
+
declare const File$2 = 1;
|
|
700
|
+
declare const Match = 2;
|
|
677
701
|
declare const uidSymbol: unique symbol;
|
|
678
702
|
declare const FocusElementByName = "Viewlet.focusElementByName";
|
|
679
703
|
declare const FocusSelector = "Viewlet.focusSelector";
|
|
@@ -825,7 +849,7 @@ declare namespace WidgetName {
|
|
|
825
849
|
export { ColorPicker$2 as ColorPicker, EditorCodeGenerator, EditorCompletion, EditorCompletionDetails, EditorHover, EditorRename, EditorSourceActions$1 as EditorSourceActions, FindWidget$1 as FindWidget };
|
|
826
850
|
}
|
|
827
851
|
declare namespace AriaRoles {
|
|
828
|
-
export { Alert, Button, CheckBox, ComboBox, Document, Group, ListBox, Log, None, Option, Panel, ScrollBar, Status, Tab, TabList, ToolBar, Tree, TreeItem };
|
|
852
|
+
export { Alert, Button, CheckBox, ComboBox, Document, Group, ListBox, Log, Menu, MenuBar, MenuItem, MenuItemCheckBox, None, Option, Panel, ScrollBar, Separator, Status, Tab, TabList, ToolBar, Tree, TreeItem };
|
|
829
853
|
}
|
|
830
854
|
declare namespace ClassNames {
|
|
831
855
|
export { Actions, AdditionalDetails, AdditionalDetailsEntry, AdditionalDetailsTitle, Aside, Badge, Button$1 as Button, ButtonPrimary, CallStackArrow, CallStackDescription, CallStackLabel, Categories, Category, Changelog, Chevron, CloseMaskIcon, CodeGeneratorInput, CodeGeneratorMessage, CodeGeneratorWidget, ColorPicker, ColorPickerBackgroundColor, ColorPickerDark, ColorPickerLight, ColorPickerRectangle, ColorPickerSlider, ColorPickerSliderThumb, ColoredMaskIcon, CompletionDetailCloseButton, CompletionDetailContent, DebugButton, DebugButtons, DebugPausedMessage, DebugPropertyChevron, DebugPropertyKey, DebugRow, DebugRowCallStack, DebugRowCheckBox, DebugRowInputField, DebugSectionAction, DebugSectionActions, DebugSectionHeader, DebugValue, DebugValueBoolean, DebugValueFunction, DebugValueGetter, DebugValueNumber, DebugValueObject, DebugValueScopeName, DebugValueString, DebugValueSymbol, DebugValueUndefined, DefaultMarkdown, DefinitionListItem, DefinitionListItemHeading, DefinitionListItemValue, DeleteWatchExpression, Diagnostic, DiagnosticError, DiagnosticWarning, EditorCompletionItem, EditorCompletionItemDeprecated, EditorCompletionItemFocused, EditorCompletionItemHighlight, EditorCursor, EditorRow, EditorSelection, EditorSourceActions, EditorSourceActionsList, Empty, ExtensionActions, ExtensionActive, ExtensionDetail, ExtensionDetailDescription, ExtensionDetailHeader, ExtensionDetailHeaderActions, ExtensionDetailHeaderDetails, ExtensionDetailIcon, ExtensionDetailName, ExtensionDetailNameBadge, ExtensionDetailPanel, ExtensionDetailTab, ExtensionDetailTabSelected, ExtensionDetailTabs, ExtensionHeader, ExtensionListItem, ExtensionListItemAuthorName, ExtensionListItemDescription, ExtensionListItemDetail, ExtensionListItemFooter, ExtensionListItemIcon, ExtensionListItemName, Extensions, Feature, FeatureContent, FeatureWebView, Features, FeaturesList, FileIcon, Filter, FilterBadge, FindWidget, FindWidgetFind, FindWidgetMatchCount, FindWidgetMatchCountEmpty, FindWidgetReplace, FindWidgetRight, FocusOutline, Grow, Highlight, HighlightDeleted, HighlightInserted, HoverDisplayString, HoverDocumentation, HoverEditorRow, HoverProblem, HoverProblemDetail, HoverProblemMessage, IconButton, IconButtonDisabled, IconClose, InputBox, InputLabel, InputValidationError, Label, LabelCut, LabelDetail, Large, List, ListItems, Markdown, MaskIcon, MaskIconBook, MaskIconCaseSensitive, MaskIconChevronDown, MaskIconChevronRight, MaskIconEllipsis, MaskIconExclude, MaskIconPreserveCase, MaskIconRegex, MaskIconReplaceAll, MaskIconSymbolFile, MaskIconWholeWord, Message, MessageAction, MoreInfo, MoreInfoEntry, MoreInfoEntryKey, MoreInfoEntryOdd, MoreInfoEntryValue, MultilineInputBox, Normal, Problem, ProblemAt, ProblemBadge, ProblemSelected, Problems, ProblemsErrorIcon, ProblemsIcon, ProblemsList, ProblemsTable, ProblemsTableBody, ProblemsTableHeader, ProblemsTableRow, ProblemsTableRowItem, ProblemsTableRowOdd, ProblemsWarningIcon, QuickPick, QuickPickHeader, QuickPickHighlight, QuickPickItem, QuickPickItemActive, QuickPickItemDescription, QuickPickItemLabel, QuickPickItems, QuickPickMaskIcon, QuickPickScrollbar, QuickPickScrollbarSlider, QuickPickStatus, Resource, Resources, Sash, SashVertical, ScrollBar$1 as ScrollBar, ScrollBarSmall, ScrollBarThumb, ScrollBarThumbActive, ScrollBarVertical, Scrollbar, ScrollbarThumb, ScrollbarTrack, Search, SearchField, SearchFieldButton, SearchFieldButtonChecked, SearchFieldButtonDisabled, SearchFieldButtons, SearchFieldContainer, SearchFieldDisabled, SearchFieldError, SearchHeader, SearchHeaderDetails, SearchHeaderDetailsExpanded, SearchHeaderDetailsExpandedTop, SearchHeaderDetailsHeading, SearchHeaderTop, SearchHeaderTopRight, SearchInputError, SearchRemove, SearchToggleButton, SearchToggleButtonExpanded, SettingsButton, SettingsIcon, Small, SourceActionHeading, SourceActionIcon, SourceActionItem, SourceActionItemFocused, SourceControlBadge, Table, TableCell, TableHeading, ToggleDetails, Tree$1 as Tree, TreeItem$1 as TreeItem, TreeItemActive, TreeItems, Viewlet, ViewletFind, ViewletFindWidget, ViewletSearchMessage, ViewletSearchMessageIndented, Welcome, WelcomeMessage };
|
|
@@ -888,16 +912,25 @@ declare namespace MenuEntryId {
|
|
|
888
912
|
export { ActivityBar, ActivityBarAdditionalViews, E2eTests, Edit, Editor, EditorImage, Explorer, ExtensionDetailReadme, File$1 as File, Go, Help, KeyBindingsTable, Main, ManageExtension, OpenRecent, Problems$1 as Problems, ProblemsFilter, Run, Search$2 as Search, Selection, Settings, SimpleBrowser, SourceControl, Tab$3 as Tab, Terminal, TitleBar, View };
|
|
889
913
|
}
|
|
890
914
|
declare namespace MenuItemFlags {
|
|
891
|
-
export { Checked, Disabled, Ignore, None$2 as None, RestoreFocus, Separator, SubMenu, Unchecked };
|
|
915
|
+
export { Checked, Disabled, Ignore, None$2 as None, RestoreFocus, Separator$1 as Separator, SubMenu, Unchecked };
|
|
892
916
|
}
|
|
893
917
|
declare namespace MouseEventType {
|
|
894
918
|
export { Keyboard, LeftClick };
|
|
895
919
|
}
|
|
920
|
+
declare namespace ParseKey {
|
|
921
|
+
export { parseKey };
|
|
922
|
+
}
|
|
923
|
+
declare namespace PatchType {
|
|
924
|
+
export { Add, NavigateChild, NavigateParent, NavigateSibling, Remove$1 as Remove, RemoveAttribute, RemoveChild, Replace$1 as Replace, SetAttribute, SetText };
|
|
925
|
+
}
|
|
896
926
|
declare namespace PlatformType {
|
|
897
927
|
export { Electron, Remote, Test, Web };
|
|
898
928
|
}
|
|
899
929
|
declare namespace RpcId {
|
|
900
|
-
export { ClipBoardProcess, ClipBoardWorker, ColorPickerWorker, CompletionWorker, DebugWorker, EditorWorker, EmbedsProcess, EmbedsWorker, ErrorWorker, ExtensionDetailWorker, ExtensionHostWorker, FileSystemProcess, FileSystemWorker, FindWidgetWorker, HoverWorker, IconThemeWorker, MainProcess, MarkdownWorker, OutputWorker, ProblemsWorker, RenameWorker, RendererProcess, RendererWorker, SearchProcess, SearchProcessElectron, SharedProcess, SourceActionWorker, SourceControlWorker, SyntaxHighlightingWorker, TestWithPlaywrightCli, TestWithPlaywrightWorker, TestWorker };
|
|
930
|
+
export { ClipBoardProcess, ClipBoardWorker, ColorPickerWorker, CompletionWorker, DebugWorker, EditorWorker, EmbedsProcess, EmbedsWorker, ErrorWorker, ExtensionDetailWorker, ExtensionHostWorker, FileSystemProcess, FileSystemWorker, FindWidgetWorker, HoverWorker, IconThemeWorker, MainProcess, MarkdownWorker, OutputWorker, ProblemsWorker, RenameWorker, RendererProcess, RendererWorker, SearchProcess, SearchProcessElectron, SharedProcess, SourceActionWorker, SourceControlWorker, SyntaxHighlightingWorker, TestWithPlaywrightCli, TestWithPlaywrightWorker, TestWorker, TextSearchWorker };
|
|
931
|
+
}
|
|
932
|
+
declare namespace TextSearchResultType {
|
|
933
|
+
export { File$2 as File, Match };
|
|
901
934
|
}
|
|
902
935
|
declare namespace UidSymbol {
|
|
903
936
|
export { uidSymbol };
|
|
@@ -942,8 +975,11 @@ export {
|
|
|
942
975
|
MenuEntryId,
|
|
943
976
|
MenuItemFlags,
|
|
944
977
|
MouseEventType,
|
|
978
|
+
ParseKey,
|
|
979
|
+
PatchType,
|
|
945
980
|
PlatformType,
|
|
946
981
|
RpcId,
|
|
982
|
+
TextSearchResultType,
|
|
947
983
|
UidSymbol,
|
|
948
984
|
ViewMode,
|
|
949
985
|
ViewletCommand,
|
|
@@ -6,10 +6,15 @@ export const Document = 'document';
|
|
|
6
6
|
export const Group = 'group';
|
|
7
7
|
export const ListBox = 'listbox';
|
|
8
8
|
export const Log = 'log';
|
|
9
|
+
export const Menu = 'menu';
|
|
10
|
+
export const MenuBar = 'menubar';
|
|
11
|
+
export const MenuItem = 'menuitem';
|
|
12
|
+
export const MenuItemCheckBox = 'menuitemcheckbox';
|
|
9
13
|
export const None = 'none';
|
|
10
14
|
export const Option = 'option';
|
|
11
15
|
export const Panel = 'panel';
|
|
12
16
|
export const ScrollBar = 'scrollbar';
|
|
17
|
+
export const Separator = 'separator';
|
|
13
18
|
export const Status = 'status';
|
|
14
19
|
export const Tab = 'tab';
|
|
15
20
|
export const TabList = 'tablist';
|
package/dist/parts/Main/Main.js
CHANGED
|
@@ -21,8 +21,11 @@ export * as KeyModifier from "../KeyModifier/KeyModifier.js";
|
|
|
21
21
|
export * as MenuEntryId from "../MenuEntryId/MenuEntryId.js";
|
|
22
22
|
export * as MenuItemFlags from "../MenuItemFlags/MenuItemFlags.js";
|
|
23
23
|
export * as MouseEventType from "../MouseEventType/MouseEventType.js";
|
|
24
|
+
export * as ParseKey from "../ParseKey/ParseKey.js";
|
|
25
|
+
export * as PatchType from "../PatchType/PatchType.js";
|
|
24
26
|
export * as PlatformType from "../PlatformType/PlatformType.js";
|
|
25
27
|
export * as RpcId from "../RpcId/RpcId.js";
|
|
28
|
+
export * as TextSearchResultType from "../TextSearchResultType/TextSearchResultType.js";
|
|
26
29
|
export * as UidSymbol from "../UidSymbol/UidSymbol.js";
|
|
27
30
|
export * as ViewletCommand from "../ViewletCommand/ViewletCommand.js";
|
|
28
31
|
export * as ViewMode from "../ViewMode/ViewMode.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as GetKeyCodeString from "../GetKeyCodeString/GetKeyCodeString.js";
|
|
2
|
+
import * as KeyModifier from "../KeyModifier/KeyModifier.js";
|
|
3
|
+
export const parseKey = (rawKey) => {
|
|
4
|
+
const isCtrl = Boolean(rawKey & KeyModifier.CtrlCmd);
|
|
5
|
+
const isShift = Boolean(rawKey & KeyModifier.Shift);
|
|
6
|
+
const keyCode = rawKey & 0x00_00_00_ff;
|
|
7
|
+
const key = GetKeyCodeString.getKeyCodeString(keyCode);
|
|
8
|
+
return {
|
|
9
|
+
key,
|
|
10
|
+
isCtrl,
|
|
11
|
+
isShift,
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const SetText = 1;
|
|
2
|
+
export const Replace = 2;
|
|
3
|
+
export const SetAttribute = 3;
|
|
4
|
+
export const RemoveAttribute = 4;
|
|
5
|
+
export const Remove = 5;
|
|
6
|
+
export const Add = 6;
|
|
7
|
+
export const NavigateChild = 7;
|
|
8
|
+
export const NavigateParent = 8;
|
|
9
|
+
export const RemoveChild = 9;
|
|
10
|
+
export const NavigateSibling = 10;
|