@lvce-editor/constants 1.25.0 → 1.27.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
@@ -1,9 +1,17 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
+ declare const Tab = 1;
4
+ declare const Button: number;
5
+ declare const Progress: number;
6
+ declare const Enabled: number;
7
+ declare const Selected: number;
8
+ declare const Focused: number;
9
+ declare const MarginTop: number;
3
10
  declare const Alert = "alert";
4
- declare const Button = "button";
11
+ declare const Button$1 = "button";
5
12
  declare const CheckBox = "checkbox";
6
13
  declare const ComboBox = "combobox";
14
+ declare const ContentInfo = "contentinfo";
7
15
  declare const Document = "document";
8
16
  declare const Group = "group";
9
17
  declare const ListBox = "listbox";
@@ -18,7 +26,7 @@ declare const Panel = "panel";
18
26
  declare const ScrollBar = "scrollbar";
19
27
  declare const Separator = "separator";
20
28
  declare const Status = "status";
21
- declare const Tab = "tab";
29
+ declare const Tab$1 = "tab";
22
30
  declare const TabList = "tablist";
23
31
  declare const ToolBar = "toolbar";
24
32
  declare const Tree = "tree";
@@ -29,7 +37,7 @@ declare const AdditionalDetailsEntry = "AdditionalDetailsEntry";
29
37
  declare const AdditionalDetailsTitle = "AdditionalDetailsTitle";
30
38
  declare const Aside = "Aside";
31
39
  declare const Badge = "Badge";
32
- declare const Button$1 = "Button";
40
+ declare const Button$2 = "Button";
33
41
  declare const ButtonPrimary = "ButtonPrimary";
34
42
  declare const CallStackArrow = "CallStackArrow";
35
43
  declare const CallStackDescription = "CallStackDescription";
@@ -297,7 +305,7 @@ declare const ToggleBlockComment = "toggleBlockComment";
297
305
  declare const Unknown$1 = "unknown";
298
306
  declare const getElementTag: (type: number) => string;
299
307
  declare const Audio = "audio";
300
- declare const Button$2 = "button";
308
+ declare const Button$3 = "button";
301
309
  declare const Col = "col";
302
310
  declare const ColGroup = "colgroup";
303
311
  declare const Del = "del";
@@ -354,7 +362,7 @@ declare const Dt = "dt";
354
362
  declare const ENOENT = "ENOENT";
355
363
  declare const EXDEV = "EXDEV";
356
364
  declare const AltKey = "event.altKey";
357
- declare const Button$3 = "event.button";
365
+ declare const Button$4 = "event.button";
358
366
  declare const ClientX = "event.clientX";
359
367
  declare const ClientY = "event.clientY";
360
368
  declare const CtrlKey = "event.ctrlKey";
@@ -405,7 +413,7 @@ declare const User = 1;
405
413
  declare const Script = 2;
406
414
  declare const Unknown$2 = 0;
407
415
  declare const Backspace = 1;
408
- declare const Tab$1 = 2;
416
+ declare const Tab$2 = 2;
409
417
  declare const Enter = 3;
410
418
  declare const Ctrl = 4;
411
419
  declare const Alt = 5;
@@ -539,7 +547,7 @@ declare const Star = 131;
539
547
  declare const Plus = 132;
540
548
  declare const Unknown$3 = "Unknown";
541
549
  declare const Backspace$1 = "Backspace";
542
- declare const Tab$2 = "Tab";
550
+ declare const Tab$3 = "Tab";
543
551
  declare const Enter$1 = "Enter";
544
552
  declare const Escape$1 = "Escape";
545
553
  declare const Space$1 = "Space";
@@ -618,7 +626,7 @@ declare const OpenRecent = 9;
618
626
  declare const Run = 10;
619
627
  declare const Selection = 11;
620
628
  declare const Settings = 12;
621
- declare const Tab$3 = 13;
629
+ declare const Tab$4 = 13;
622
630
  declare const Terminal = 14;
623
631
  declare const TitleBar = 15;
624
632
  declare const View = 16;
@@ -643,6 +651,12 @@ declare const RestoreFocus = 6;
643
651
  declare const Ignore = 7;
644
652
  declare const Keyboard = -1;
645
653
  declare const LeftClick = 0;
654
+ export interface ParsedKey {
655
+ readonly key: string;
656
+ readonly isCtrl: boolean;
657
+ readonly isShift: boolean;
658
+ }
659
+ declare const parseKey: (rawKey: number) => ParsedKey;
646
660
  declare const SetText = 1;
647
661
  declare const Replace$1 = 2;
648
662
  declare const SetAttribute = 3;
@@ -705,7 +719,7 @@ declare const SetValueByName = "Viewlet.setValueByName";
705
719
  declare const List$1 = 1;
706
720
  declare const Tree$2 = 2;
707
721
  declare const Audio$1 = 0;
708
- declare const Button$4 = 1;
722
+ declare const Button$5 = 1;
709
723
  declare const Col$1 = 2;
710
724
  declare const ColGroup$1 = 3;
711
725
  declare const Div$1 = 4;
@@ -842,11 +856,14 @@ declare const ColorPicker$2 = "ColorPicker";
842
856
  declare namespace WidgetName {
843
857
  export { ColorPicker$2 as ColorPicker, EditorCodeGenerator, EditorCompletion, EditorCompletionDetails, EditorHover, EditorRename, EditorSourceActions$1 as EditorSourceActions, FindWidget$1 as FindWidget };
844
858
  }
859
+ declare namespace ActivityBarItemFlags {
860
+ export { Button, Enabled, Focused, MarginTop, Progress, Selected, Tab };
861
+ }
845
862
  declare namespace AriaRoles {
846
- export { Alert, Button, CheckBox, ComboBox, Document, Group, ListBox, Log, Menu, MenuBar, MenuItem, MenuItemCheckBox, None, Option, Panel, ScrollBar, Separator, Status, Tab, TabList, ToolBar, Tree, TreeItem };
863
+ export { Alert, Button$1 as Button, CheckBox, ComboBox, ContentInfo, Document, Group, ListBox, Log, Menu, MenuBar, MenuItem, MenuItemCheckBox, None, Option, Panel, ScrollBar, Separator, Status, Tab$1 as Tab, TabList, ToolBar, Tree, TreeItem };
847
864
  }
848
865
  declare namespace ClassNames {
849
- 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 };
866
+ export { Actions, AdditionalDetails, AdditionalDetailsEntry, AdditionalDetailsTitle, Aside, Badge, Button$2 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 };
850
867
  }
851
868
  declare namespace DirentType {
852
869
  export { BlockDevice, CharacterDevice, Directory, DirectoryExpanded, DirectoryExpanding, EditingDirectoryExpanded, EditingFile, EditingFolder, EditingSymLinkFile, EditingSymLinkFolder, EditingSymLinkUnknown, EditingUnknown, Fifo, File, Socket, SymLinkFile, SymLinkFolder, Symlink, Unknown };
@@ -858,13 +875,13 @@ declare namespace ElementTagMap {
858
875
  export { getElementTag };
859
876
  }
860
877
  declare namespace ElementTags {
861
- export { A, Abbr, Article, Aside$1 as Aside, Audio, Br, Button$2 as Button, Cite, Code, Col, ColGroup, Data, Dd, Del, Div, Dl, Dt, Figcaption, Figure, Footer, H1, H2, H3, H4, H5, H6, Header, Hr, I, Img, Input, Ins, Kbd, Label$1 as Label, Li, Nav, Ol, Option$1 as Option, P, Pre, Search$1 as Search, Section, Select, Span, TBody, THead, Table$1 as Table, Td, TextArea, Tfoot, Th, Time, Tr, Ul, Video };
878
+ export { A, Abbr, Article, Aside$1 as Aside, Audio, Br, Button$3 as Button, Cite, Code, Col, ColGroup, Data, Dd, Del, Div, Dl, Dt, Figcaption, Figure, Footer, H1, H2, H3, H4, H5, H6, Header, Hr, I, Img, Input, Ins, Kbd, Label$1 as Label, Li, Nav, Ol, Option$1 as Option, P, Pre, Search$1 as Search, Section, Select, Span, TBody, THead, Table$1 as Table, Td, TextArea, Tfoot, Th, Time, Tr, Ul, Video };
862
879
  }
863
880
  declare namespace ErrorCodes {
864
881
  export { ENOENT, EXDEV };
865
882
  }
866
883
  declare namespace EventExpression {
867
- export { AltKey, Button$3 as Button, ClientX, ClientY, CtrlKey, DataTransferFiles, DataTransferFiles2, DefaultPrevented, DeltaMode, DeltaY, EventTargetClassName, IsTrusted, Key, ShiftKey, TargetName, TargetValue };
884
+ export { AltKey, Button$4 as Button, ClientX, ClientY, CtrlKey, DataTransferFiles, DataTransferFiles2, DefaultPrevented, DeltaMode, DeltaY, EventTargetClassName, IsTrusted, Key, ShiftKey, TargetName, TargetValue };
868
885
  }
869
886
  declare namespace ExplorerEditingType {
870
887
  export { CreateFile, CreateFolder, None$1 as None, Rename$1 as Rename };
@@ -894,16 +911,16 @@ declare namespace InputSource {
894
911
  export { Script, User };
895
912
  }
896
913
  declare namespace KeyCode {
897
- export { ABNT_C1, ABNT_C2, Alt, AudioVolumeDown, AudioVolumeMute, AudioVolumeUp, Backquote, Backslash, Backspace, BracketLeft, BracketRight, BrowserBack, BrowserForward, BrowserHome, BrowserSearch, CapsLock, Clear, Comma, ContextMenu, Ctrl, Delete$1 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$1 as Tab, Unknown$2 as Unknown, UpArrow };
914
+ export { ABNT_C1, ABNT_C2, Alt, AudioVolumeDown, AudioVolumeMute, AudioVolumeUp, Backquote, Backslash, Backspace, BracketLeft, BracketRight, BrowserBack, BrowserForward, BrowserHome, BrowserSearch, CapsLock, Clear, Comma, ContextMenu, Ctrl, Delete$1 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 };
898
915
  }
899
916
  declare namespace KeyCodeString {
900
- export { Backquote$1 as Backquote, Backslash$1 as Backslash, Backspace$1 as Backspace, Comma$1 as Comma, Delete$2 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$2 as Tab, Unknown$3 as Unknown, UpArrow$1 as UpArrow };
917
+ export { Backquote$1 as Backquote, Backslash$1 as Backslash, Backspace$1 as Backspace, Comma$1 as Comma, Delete$2 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 };
901
918
  }
902
919
  declare namespace KeyModifier {
903
920
  export { Alt$1 as Alt, CtrlCmd, Shift, WinCtrl };
904
921
  }
905
922
  declare namespace MenuEntryId {
906
- 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 };
923
+ 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$4 as Tab, Terminal, TitleBar, View };
907
924
  }
908
925
  declare namespace MenuItemFlags {
909
926
  export { Checked, Disabled, Ignore, None$2 as None, RestoreFocus, Separator$1 as Separator, SubMenu, Unchecked };
@@ -911,6 +928,9 @@ declare namespace MenuItemFlags {
911
928
  declare namespace MouseEventType {
912
929
  export { Keyboard, LeftClick };
913
930
  }
931
+ declare namespace ParseKey {
932
+ export { parseKey };
933
+ }
914
934
  declare namespace PatchType {
915
935
  export { Add, NavigateChild, NavigateParent, NavigateSibling, Remove$1 as Remove, RemoveAttribute, RemoveChild, Replace$1 as Replace, SetAttribute, SetText };
916
936
  }
@@ -933,7 +953,7 @@ declare namespace ViewMode {
933
953
  export { List$1 as List, Tree$2 as Tree };
934
954
  }
935
955
  declare namespace VirtualDomElements {
936
- export { A$1 as A, Abbr$1 as Abbr, Article$1 as Article, Aside$2 as Aside, Audio$1 as Audio, Br$1 as Br, Button$4 as Button, Cite$1 as Cite, Code$1 as Code, Col$1 as Col, ColGroup$1 as ColGroup, Data$1 as Data, Dd$1 as Dd, Del$1 as Del, Div$1 as Div, Dl$1 as Dl, Dt$1 as Dt, Figcaption$1 as Figcaption, Figure$1 as Figure, Footer$1 as Footer, H1$1 as H1, H2$1 as H2, H3$1 as H3, H4$1 as H4, H5$1 as H5, H6$1 as H6, Header$1 as Header, Hr$1 as Hr, I$1 as I, Img$1 as Img, Input$1 as Input, Ins$1 as Ins, Kbd$1 as Kbd, Label$2 as Label, Li$1 as Li, Nav$1 as Nav, Ol$1 as Ol, Option$2 as Option, P$1 as P, Pre$1 as Pre, Root, Search$3 as Search, Section$1 as Section, Select$1 as Select, Span$1 as Span, TBody$1 as TBody, THead$1 as THead, Table$2 as Table, Td$1 as Td, Text, TextArea$1 as TextArea, Tfoot$1 as Tfoot, Th$1 as Th, Time$1 as Time, Tr$1 as Tr, Ul$1 as Ul, Video$1 as Video };
956
+ export { A$1 as A, Abbr$1 as Abbr, Article$1 as Article, Aside$2 as Aside, Audio$1 as Audio, Br$1 as Br, Button$5 as Button, Cite$1 as Cite, Code$1 as Code, Col$1 as Col, ColGroup$1 as ColGroup, Data$1 as Data, Dd$1 as Dd, Del$1 as Del, Div$1 as Div, Dl$1 as Dl, Dt$1 as Dt, Figcaption$1 as Figcaption, Figure$1 as Figure, Footer$1 as Footer, H1$1 as H1, H2$1 as H2, H3$1 as H3, H4$1 as H4, H5$1 as H5, H6$1 as H6, Header$1 as Header, Hr$1 as Hr, I$1 as I, Img$1 as Img, Input$1 as Input, Ins$1 as Ins, Kbd$1 as Kbd, Label$2 as Label, Li$1 as Li, Nav$1 as Nav, Ol$1 as Ol, Option$2 as Option, P$1 as P, Pre$1 as Pre, Root, Search$3 as Search, Section$1 as Section, Select$1 as Select, Span$1 as Span, TBody$1 as TBody, THead$1 as THead, Table$2 as Table, Td$1 as Td, Text, TextArea$1 as TextArea, Tfoot$1 as Tfoot, Th$1 as Th, Time$1 as Time, Tr$1 as Tr, Ul$1 as Ul, Video$1 as Video };
937
957
  }
938
958
  declare namespace WhenExpression {
939
959
  export { BrowserChromium, BrowserElectron, BrowserFirefox, Empty$1 as Empty, FocusAbout, FocusActivityBar, FocusColorPicker, FocusConfirm, FocusDebugConsoleInput, FocusDebugInput, FocusDebugScope, FocusDialog, FocusEditor, FocusEditorCodeGenerator, FocusEditorCompletions, FocusEditorHover, FocusEditorImage, FocusEditorRename, FocusEditorText, FocusExplorer, FocusExplorerEditBox, FocusExtensions, FocusFindWidget, FocusFindWidgetCloseButton, FocusFindWidgetMatchCase, FocusFindWidgetNextMatchButton, FocusFindWidgetPreviousMatchButton, FocusFindWidgetRegex, FocusFindWidgetReplace, FocusFindWidgetReplaceAllButton, FocusFindWidgetReplaceButton, FocusFindWidgetToggleReplace, FocusIgnoreFiles, FocusKeyBindingsTable, FocusKeyBindingsWhenExpression, FocusLocationList, FocusMenu, FocusOutput, FocusProblems, FocusQuickPickInput, FocusSearch, FocusSearchExcludeInput, FocusSearchIncludeInput, FocusSearchInput, FocusSearchMatchCase, FocusSearchOpenEditors, FocusSearchPreserveCase, FocusSearchRegex, FocusSearchReplaceAll, FocusSearchReplaceInput, FocusSearchResults, FocusSearchWholeWord, FocusSimpleBrowser, FocusSimpleBrowserInput, FocusSourceActions, FocusSourceControlInput, FocusTerminal, FocusTitleBarMenuBar, FocusToggleDetails, FocusToggleReplace, FocusViewletList };
@@ -943,6 +963,7 @@ declare namespace WidgetId {
943
963
  }
944
964
 
945
965
  export {
966
+ ActivityBarItemFlags,
946
967
  AriaRoles,
947
968
  ClassNames,
948
969
  DirentType,
@@ -966,6 +987,7 @@ export {
966
987
  MenuEntryId,
967
988
  MenuItemFlags,
968
989
  MouseEventType,
990
+ ParseKey,
969
991
  PatchType,
970
992
  PlatformType,
971
993
  RpcId,
@@ -0,0 +1,7 @@
1
+ export const Tab = 1;
2
+ export const Button = 1 << 1;
3
+ export const Progress = 1 << 2;
4
+ export const Enabled = 1 << 3;
5
+ export const Selected = 1 << 4;
6
+ export const Focused = 1 << 5;
7
+ export const MarginTop = 1 << 6;
@@ -2,6 +2,7 @@ export const Alert = 'alert';
2
2
  export const Button = 'button';
3
3
  export const CheckBox = 'checkbox';
4
4
  export const ComboBox = 'combobox';
5
+ export const ContentInfo = 'contentinfo';
5
6
  export const Document = 'document';
6
7
  export const Group = 'group';
7
8
  export const ListBox = 'listbox';
@@ -1,3 +1,4 @@
1
+ export * as ActivityBarItemFlags from "../ActivityBarItemFlags/ActivityBarItemFlags.js";
1
2
  export * as AriaRoles from "../AriaRoles/AriaRoles.js";
2
3
  export * as ClassNames from "../ClassNames/ClassNames.js";
3
4
  export * as DirentType from "../DirentType/DirentType.js";
@@ -21,6 +22,7 @@ export * as KeyModifier from "../KeyModifier/KeyModifier.js";
21
22
  export * as MenuEntryId from "../MenuEntryId/MenuEntryId.js";
22
23
  export * as MenuItemFlags from "../MenuItemFlags/MenuItemFlags.js";
23
24
  export * as MouseEventType from "../MouseEventType/MouseEventType.js";
25
+ export * as ParseKey from "../ParseKey/ParseKey.js";
24
26
  export * as PatchType from "../PatchType/PatchType.js";
25
27
  export * as PlatformType from "../PlatformType/PlatformType.js";
26
28
  export * as RpcId from "../RpcId/RpcId.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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/constants",
3
- "version": "1.25.0",
3
+ "version": "1.27.0",
4
4
  "description": "Constants",
5
5
  "license": "MIT",
6
6
  "author": "Lvce Editor",