@lvce-editor/constants 1.11.0 → 1.13.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
@@ -251,6 +251,26 @@ declare const ViewletSearchMessage = "ViewletSearchMessage";
251
251
  declare const ViewletSearchMessageIndented = "ViewletSearchMessageIndented";
252
252
  declare const Welcome = "Welcome";
253
253
  declare const WelcomeMessage = "WelcomeMessage";
254
+ declare const CompositionUpdate = "compositionUpdate";
255
+ declare const ContentEditableInput = "contentEditableInput";
256
+ declare const Delete = "delete";
257
+ declare const DeleteHorizontalRight = "deleteHorizontalRight";
258
+ declare const DeleteLeft = "deleteLeft";
259
+ declare const EditorCut = "editorCut";
260
+ declare const EditorPasteText = "editorPasteText";
261
+ declare const EditorSnippet = "editorSnippet";
262
+ declare const EditorType = "editorType";
263
+ declare const EditorTypeWithAutoClosing = "editorTypeWithAutoClosing";
264
+ declare const Format = "format";
265
+ declare const IndentLess = "indentLess";
266
+ declare const IndentMore = "indentMore";
267
+ declare const InsertLineBreak = "insertLineBreak";
268
+ declare const LineComment = "lineComment";
269
+ declare const Rename = "rename";
270
+ declare const Replace = "replace";
271
+ declare const ReplaceAll = "replaceAll";
272
+ declare const ToggleBlockComment = "toggleBlockComment";
273
+ declare const Unknown = "unknown";
254
274
  declare const getElementTag: (type: number) => string;
255
275
  declare const Audio = "audio";
256
276
  declare const Button$2 = "button";
@@ -321,6 +341,7 @@ declare const CtrlKey = "event.ctrlKey";
321
341
  declare const Key = "event.key";
322
342
  declare const getKeyCodeString: (keyCode: number) => string;
323
343
  declare const getWhenExpressionText: (whenExpression: number) => string;
344
+ declare const getWidgetName: (widgetId: number) => string;
324
345
  declare const Blank = "Blank";
325
346
  declare const Check = "Check";
326
347
  declare const ClearAll = "ClearAll";
@@ -337,12 +358,12 @@ declare const DeleteContentBackward = "deleteContentBackward";
337
358
  declare const DeleteContentForward = "deleteContentForward";
338
359
  declare const DeleteWordForward = "deleteWordForward";
339
360
  declare const DeleteWordBackward = "deleteWordBackward";
340
- declare const InsertLineBreak = "insertLineBreak";
361
+ declare const InsertLineBreak$1 = "insertLineBreak";
341
362
  declare const InsertCompositionText = "insertCompositionText";
342
363
  declare const InsertFromPaste = "insertFromPaste";
343
364
  declare const User = 1;
344
365
  declare const Script = 1;
345
- declare const Unknown = 0;
366
+ declare const Unknown$1 = 0;
346
367
  declare const Backspace = 1;
347
368
  declare const Tab$1 = 2;
348
369
  declare const Enter = 3;
@@ -361,7 +382,7 @@ declare const UpArrow = 14;
361
382
  declare const RightArrow = 15;
362
383
  declare const DownArrow = 16;
363
384
  declare const Insert = 17;
364
- declare const Delete = 18;
385
+ declare const Delete$1 = 18;
365
386
  declare const Digit0 = 19;
366
387
  declare const Digit1 = 20;
367
388
  declare const Digit2 = 21;
@@ -476,7 +497,7 @@ declare const Clear = 129;
476
497
  declare const MaxValue = 130;
477
498
  declare const Star = 131;
478
499
  declare const Plus = 132;
479
- declare const Unknown$1 = "Unknown";
500
+ declare const Unknown$2 = "Unknown";
480
501
  declare const Backspace$1 = "Backspace";
481
502
  declare const Tab$2 = "Tab";
482
503
  declare const Enter$1 = "Enter";
@@ -491,7 +512,7 @@ declare const UpArrow$1 = "UpArrow";
491
512
  declare const RightArrow$1 = "RightArrow";
492
513
  declare const DownArrow$1 = "DownArrow";
493
514
  declare const Insert$1 = "Insert";
494
- declare const Delete$1 = "Delete";
515
+ declare const Delete$2 = "Delete";
495
516
  declare const Digit0$1 = "0";
496
517
  declare const Digit1$1 = "1";
497
518
  declare const Digit2$1 = "2";
@@ -573,6 +594,9 @@ declare const SourceActionWorker = 303;
573
594
  declare const SourceControlWorker = 66;
574
595
  declare const SyntaxHighlightingWorker = 3309;
575
596
  declare const TestWorker = 9001;
597
+ declare const FindWidgetWorker = 9002;
598
+ declare const HoverWorker = 9003;
599
+ declare const RenameWorker = 9004;
576
600
  declare const uidSymbol: unique symbol;
577
601
  declare const FocusElementByName = "Viewlet.focusElementByName";
578
602
  declare const FocusSelector = "Viewlet.focusSelector";
@@ -700,7 +724,7 @@ declare const Completion = 3;
700
724
  declare const CompletionDetail = 4;
701
725
  declare const Find = 5;
702
726
  declare const Hover = 6;
703
- declare const Rename = 7;
727
+ declare const Rename$1 = 7;
704
728
  declare const SourceAction = 8;
705
729
  declare const EditorHover = "EditorHover";
706
730
  declare const EditorCodeGenerator = "EditorCodeGenerator";
@@ -709,9 +733,10 @@ declare const EditorCompletion = "EditorCompletion";
709
733
  declare const FindWidget$1 = "FindWidget";
710
734
  declare const EditorRename = "EditorRename";
711
735
  declare const EditorSourceActions$1 = "EditorSourceActions";
736
+ declare const ColorPicker$2 = "ColorPicker";
712
737
 
713
738
  declare namespace WidgetName {
714
- export { EditorCodeGenerator, EditorCompletion, EditorCompletionDetails, EditorHover, EditorRename, EditorSourceActions$1 as EditorSourceActions, FindWidget$1 as FindWidget };
739
+ export { ColorPicker$2 as ColorPicker, EditorCodeGenerator, EditorCompletion, EditorCompletionDetails, EditorHover, EditorRename, EditorSourceActions$1 as EditorSourceActions, FindWidget$1 as FindWidget };
715
740
  }
716
741
  declare namespace AriaRoles {
717
742
  export { Alert, Button, CheckBox, ComboBox, Document, Group, ListBox, Log, None, Option, Panel, ScrollBar, Status, Tab, TabList, ToolBar, Tree, TreeItem };
@@ -719,6 +744,9 @@ declare namespace AriaRoles {
719
744
  declare namespace ClassNames {
720
745
  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 };
721
746
  }
747
+ declare namespace EditOrigin {
748
+ export { CompositionUpdate, ContentEditableInput, Delete, DeleteHorizontalRight, DeleteLeft, EditorCut, EditorPasteText, EditorSnippet, EditorType, EditorTypeWithAutoClosing, Format, IndentLess, IndentMore, InsertLineBreak, LineComment, Rename, Replace, ReplaceAll, ToggleBlockComment, Unknown };
749
+ }
722
750
  declare namespace ElementTagMap {
723
751
  export { getElementTag };
724
752
  }
@@ -737,20 +765,23 @@ declare namespace GetKeyCodeString {
737
765
  declare namespace GetWhenExpressionText {
738
766
  export { getWhenExpressionText };
739
767
  }
768
+ declare namespace GetWidgetName {
769
+ export { getWidgetName };
770
+ }
740
771
  declare namespace Icons {
741
772
  export { Blank, Check, ClearAll, CollapseAll, DebugAlt2, Filter$1 as Filter, ListFlat, ListTree, NewFile, NewFolder, Refresh };
742
773
  }
743
774
  declare namespace InputEventType {
744
- export { DeleteContentBackward, DeleteContentForward, DeleteWordBackward, DeleteWordForward, InsertCompositionText, InsertFromPaste, InsertLineBreak, InsertText };
775
+ export { DeleteContentBackward, DeleteContentForward, DeleteWordBackward, DeleteWordForward, InsertCompositionText, InsertFromPaste, InsertLineBreak$1 as InsertLineBreak, InsertText };
745
776
  }
746
777
  declare namespace InputSource {
747
778
  export { Script, User };
748
779
  }
749
780
  declare namespace KeyCode {
750
- export { ABNT_C1, ABNT_C2, Alt, AudioVolumeDown, AudioVolumeMute, AudioVolumeUp, Backquote, Backslash, Backspace, BracketLeft, BracketRight, BrowserBack, BrowserForward, BrowserHome, BrowserSearch, CapsLock, Clear, Comma, ContextMenu, Ctrl, 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, UpArrow };
781
+ 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$1 as Unknown, UpArrow };
751
782
  }
752
783
  declare namespace KeyCodeString {
753
- export { Backquote$1 as Backquote, Backslash$1 as Backslash, Backspace$1 as Backspace, Comma$1 as Comma, Delete$1 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$1 as Unknown, UpArrow$1 as UpArrow };
784
+ 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$2 as Unknown, UpArrow$1 as UpArrow };
754
785
  }
755
786
  declare namespace KeyModifier {
756
787
  export { Alt$1 as Alt, CtrlCmd, Shift, WinCtrl };
@@ -759,7 +790,7 @@ declare namespace MouseEventType {
759
790
  export { Keyboard, LeftClick };
760
791
  }
761
792
  declare namespace RpcId {
762
- export { ClipBoardProcess, ClipBoardWorker, ColorPickerWorker, CompletionWorker, DebugWorker, EditorWorker, EmbedsProcess, EmbedsWorker, ErrorWorker, ExtensionDetailWorker, ExtensionHostWorker, FileSystemProcess, FileSystemWorker, MainProcess, MarkdownWorker, OutputWorker, ProblemsWorker, RendererProcess, RendererWorker, SearchProcess, SearchProcessElectron, SharedProcess, SourceActionWorker, SourceControlWorker, SyntaxHighlightingWorker, TestWorker };
793
+ export { ClipBoardProcess, ClipBoardWorker, ColorPickerWorker, CompletionWorker, DebugWorker, EditorWorker, EmbedsProcess, EmbedsWorker, ErrorWorker, ExtensionDetailWorker, ExtensionHostWorker, FileSystemProcess, FileSystemWorker, FindWidgetWorker, HoverWorker, MainProcess, MarkdownWorker, OutputWorker, ProblemsWorker, RenameWorker, RendererProcess, RendererWorker, SearchProcess, SearchProcessElectron, SharedProcess, SourceActionWorker, SourceControlWorker, SyntaxHighlightingWorker, TestWorker };
763
794
  }
764
795
  declare namespace UidSymbol {
765
796
  export { uidSymbol };
@@ -774,18 +805,20 @@ declare namespace WhenExpression {
774
805
  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, FocusKeyBindingsTable, FocusKeyBindingsWhenExpression, FocusLocationList, FocusMenu, FocusOutput, FocusProblems, FocusQuickPickInput, FocusSearchInput, FocusSearchMatchCase, FocusSearchPreserveCase, FocusSearchRegex, FocusSearchReplaceAll, FocusSearchReplaceInput, FocusSearchResults, FocusSearchWholeWord, FocusSimpleBrowser, FocusSimpleBrowserInput, FocusSourceActions, FocusSourceControlInput, FocusTerminal, FocusTitleBarMenuBar, FocusViewletList };
775
806
  }
776
807
  declare namespace WidgetId {
777
- export { CodeGenerator, ColorPicker$1 as ColorPicker, Completion, CompletionDetail, Find, Hover, Rename, SourceAction };
808
+ export { CodeGenerator, ColorPicker$1 as ColorPicker, Completion, CompletionDetail, Find, Hover, Rename$1 as Rename, SourceAction };
778
809
  }
779
810
 
780
811
  export {
781
812
  AriaRoles,
782
813
  ClassNames,
814
+ EditOrigin,
783
815
  ElementTagMap,
784
816
  ElementTags,
785
817
  ErrorCodes,
786
818
  EventExpression,
787
819
  GetKeyCodeString,
788
820
  GetWhenExpressionText,
821
+ GetWidgetName,
789
822
  Icons,
790
823
  InputEventType,
791
824
  InputSource,
@@ -0,0 +1,21 @@
1
+ // TODO use numeric enum
2
+ export const CompositionUpdate = 'compositionUpdate';
3
+ export const ContentEditableInput = 'contentEditableInput';
4
+ export const Delete = 'delete';
5
+ export const DeleteHorizontalRight = 'deleteHorizontalRight';
6
+ export const DeleteLeft = 'deleteLeft';
7
+ export const EditorCut = 'editorCut';
8
+ export const EditorPasteText = 'editorPasteText';
9
+ export const EditorSnippet = 'editorSnippet';
10
+ export const EditorType = 'editorType';
11
+ export const EditorTypeWithAutoClosing = 'editorTypeWithAutoClosing';
12
+ export const Format = 'format';
13
+ export const IndentLess = 'indentLess';
14
+ export const IndentMore = 'indentMore';
15
+ export const InsertLineBreak = 'insertLineBreak';
16
+ export const LineComment = 'lineComment';
17
+ export const Rename = 'rename';
18
+ export const Replace = 'replace';
19
+ export const ReplaceAll = 'replaceAll';
20
+ export const ToggleBlockComment = 'toggleBlockComment';
21
+ export const Unknown = 'unknown';
@@ -0,0 +1,16 @@
1
+ import * as WidgetId from "../WidgetId/WidgetId.js";
2
+ import * as WidgetName from "../WidgetName/WidgetName.js";
3
+ export const getWidgetName = (widgetId) => {
4
+ switch (widgetId) {
5
+ case WidgetId.Find:
6
+ return WidgetName.FindWidget;
7
+ case WidgetId.ColorPicker:
8
+ return WidgetName.ColorPicker;
9
+ case WidgetId.Completion:
10
+ return WidgetName.EditorCompletion;
11
+ case WidgetId.SourceAction:
12
+ return WidgetName.EditorSourceActions;
13
+ default:
14
+ return '';
15
+ }
16
+ };
@@ -1,11 +1,13 @@
1
1
  export * as AriaRoles from "../AriaRoles/AriaRoles.js";
2
2
  export * as ClassNames from "../ClassNames/ClassNames.js";
3
+ export * as EditOrigin from "../EditOrigin/EditOrigin.js";
3
4
  export * as ElementTagMap from "../ElementTagMap/ElementTagMap.js";
4
5
  export * as ElementTags from "../ElementTags/ElementTags.js";
5
6
  export * as ErrorCodes from "../ErrorCodes/ErrorCodes.js";
6
7
  export * as EventExpression from "../EventExpression/EventExpression.js";
7
8
  export * as GetKeyCodeString from "../GetKeyCodeString/GetKeyCodeString.js";
8
9
  export * as GetWhenExpressionText from "../GetWhenExpressionText/GetWhenExpressionText.js";
10
+ export * as GetWidgetName from "../GetWidgetName/GetWidgetName.js";
9
11
  export * as Icons from "../Icons/Icons.js";
10
12
  export * as InputEventType from "../InputEventType/InputEventType.js";
11
13
  export * as InputSource from "../InputSource/InputSource.js";
@@ -24,3 +24,6 @@ export const SourceActionWorker = 303;
24
24
  export const SourceControlWorker = 66;
25
25
  export const SyntaxHighlightingWorker = 3309;
26
26
  export const TestWorker = 9001;
27
+ export const FindWidgetWorker = 9002;
28
+ export const HoverWorker = 9003;
29
+ export const RenameWorker = 9004;
@@ -5,3 +5,4 @@ export const EditorCompletion = 'EditorCompletion';
5
5
  export const FindWidget = 'FindWidget';
6
6
  export const EditorRename = 'EditorRename';
7
7
  export const EditorSourceActions = 'EditorSourceActions';
8
+ export const ColorPicker = 'ColorPicker';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/constants",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "Constants",
5
5
  "license": "MIT",
6
6
  "author": "Lvce Editor",