@lvce-editor/constants 1.19.0 → 1.21.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 +32 -11
- package/dist/parts/DeltaEditing/DeltaEditing.js +1 -0
- package/dist/parts/DirentType/DirentType.js +8 -0
- package/dist/parts/EventExpression/EventExpression.js +11 -5
- package/dist/parts/ExplorerEditingType/ExplorerEditingType.js +4 -0
- package/dist/parts/Main/Main.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -263,6 +263,13 @@ declare const Symlink = 9;
|
|
|
263
263
|
declare const SymLinkFile = 10;
|
|
264
264
|
declare const SymLinkFolder = 11;
|
|
265
265
|
declare const Unknown = 12;
|
|
266
|
+
declare const EditingFile: number;
|
|
267
|
+
declare const EditingFolder: number;
|
|
268
|
+
declare const EditingDirectoryExpanded: number;
|
|
269
|
+
declare const EditingUnknown: number;
|
|
270
|
+
declare const EditingSymLinkFile: number;
|
|
271
|
+
declare const EditingSymLinkFolder: number;
|
|
272
|
+
declare const EditingSymLinkUnknown: number;
|
|
266
273
|
declare const CompositionUpdate = "compositionUpdate";
|
|
267
274
|
declare const ContentEditableInput = "contentEditableInput";
|
|
268
275
|
declare const Delete = "delete";
|
|
@@ -341,16 +348,26 @@ declare const Label$1 = "label";
|
|
|
341
348
|
declare const Dt = "dt";
|
|
342
349
|
declare const ENOENT = "ENOENT";
|
|
343
350
|
declare const EXDEV = "EXDEV";
|
|
344
|
-
declare const
|
|
351
|
+
declare const AltKey = "event.altKey";
|
|
352
|
+
declare const Button$3 = "event.button";
|
|
345
353
|
declare const ClientX = "event.clientX";
|
|
346
354
|
declare const ClientY = "event.clientY";
|
|
347
|
-
declare const
|
|
355
|
+
declare const CtrlKey = "event.ctrlKey";
|
|
356
|
+
declare const ShiftKey = "event.shiftKey";
|
|
348
357
|
declare const DeltaMode = "event.deltaMode";
|
|
349
358
|
declare const DeltaY = "event.deltaY";
|
|
350
|
-
declare const
|
|
351
|
-
declare const
|
|
352
|
-
declare const CtrlKey = "event.ctrlKey";
|
|
359
|
+
declare const EventTargetClassName = "event.target.className";
|
|
360
|
+
declare const IsTrusted = "event.isTrusted";
|
|
353
361
|
declare const Key = "event.key";
|
|
362
|
+
declare const TargetName = "event.target.name";
|
|
363
|
+
declare const TargetValue = "event.target.value";
|
|
364
|
+
declare const DefaultPrevented = "event.defaultPrevented";
|
|
365
|
+
declare const DataTransferFiles2 = "event.dataTransfer.files2";
|
|
366
|
+
declare const DataTransferFiles = "event.dataTransfer.files";
|
|
367
|
+
declare const None$1 = 0;
|
|
368
|
+
declare const CreateFile = 1;
|
|
369
|
+
declare const CreateFolder = 2;
|
|
370
|
+
declare const Rename$1 = 3;
|
|
354
371
|
declare const getKeyCodeString: (keyCode: number) => string;
|
|
355
372
|
declare const getWhenExpressionText: (whenExpression: number) => string;
|
|
356
373
|
declare const getWidgetName: (widgetId: number) => string;
|
|
@@ -606,7 +623,7 @@ declare const ProblemsFilter = 25;
|
|
|
606
623
|
declare const KeyBindingsTable = 26;
|
|
607
624
|
declare const E2eTests = 27;
|
|
608
625
|
declare const Separator = 1;
|
|
609
|
-
declare const None$
|
|
626
|
+
declare const None$2 = 0;
|
|
610
627
|
declare const SubMenu = 4;
|
|
611
628
|
declare const Checked = 2;
|
|
612
629
|
declare const Unchecked = 3;
|
|
@@ -787,7 +804,7 @@ declare const Completion = 3;
|
|
|
787
804
|
declare const CompletionDetail = 4;
|
|
788
805
|
declare const Find = 5;
|
|
789
806
|
declare const Hover = 6;
|
|
790
|
-
declare const Rename$
|
|
807
|
+
declare const Rename$2 = 7;
|
|
791
808
|
declare const SourceAction = 8;
|
|
792
809
|
declare const EditorHover = "EditorHover";
|
|
793
810
|
declare const EditorCodeGenerator = "EditorCodeGenerator";
|
|
@@ -808,7 +825,7 @@ declare namespace ClassNames {
|
|
|
808
825
|
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 };
|
|
809
826
|
}
|
|
810
827
|
declare namespace DirentType {
|
|
811
|
-
export { BlockDevice, CharacterDevice, Directory, DirectoryExpanded, DirectoryExpanding, Fifo, File, Socket, SymLinkFile, SymLinkFolder, Symlink, Unknown };
|
|
828
|
+
export { BlockDevice, CharacterDevice, Directory, DirectoryExpanded, DirectoryExpanding, EditingDirectoryExpanded, EditingFile, EditingFolder, EditingSymLinkFile, EditingSymLinkFolder, EditingSymLinkUnknown, EditingUnknown, Fifo, File, Socket, SymLinkFile, SymLinkFolder, Symlink, Unknown };
|
|
812
829
|
}
|
|
813
830
|
declare namespace EditOrigin {
|
|
814
831
|
export { CompositionUpdate, ContentEditableInput, Delete, DeleteHorizontalRight, DeleteLeft, EditorCut, EditorPasteText, EditorSnippet, EditorType, EditorTypeWithAutoClosing, Format, IndentLess, IndentMore, InsertLineBreak, LineComment, Rename, Replace, ReplaceAll, ToggleBlockComment, Unknown$1 as Unknown };
|
|
@@ -823,7 +840,10 @@ declare namespace ErrorCodes {
|
|
|
823
840
|
export { ENOENT, EXDEV };
|
|
824
841
|
}
|
|
825
842
|
declare namespace EventExpression {
|
|
826
|
-
export { AltKey, Button$3 as Button, ClientX, ClientY, CtrlKey, DeltaMode, DeltaY, Key, TargetName, TargetValue };
|
|
843
|
+
export { AltKey, Button$3 as Button, ClientX, ClientY, CtrlKey, DataTransferFiles, DataTransferFiles2, DefaultPrevented, DeltaMode, DeltaY, EventTargetClassName, IsTrusted, Key, ShiftKey, TargetName, TargetValue };
|
|
844
|
+
}
|
|
845
|
+
declare namespace ExplorerEditingType {
|
|
846
|
+
export { CreateFile, CreateFolder, None$1 as None, Rename$1 as Rename };
|
|
827
847
|
}
|
|
828
848
|
declare namespace GetKeyCodeString {
|
|
829
849
|
export { getKeyCodeString };
|
|
@@ -856,7 +876,7 @@ declare namespace MenuEntryId {
|
|
|
856
876
|
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 };
|
|
857
877
|
}
|
|
858
878
|
declare namespace MenuItemFlags {
|
|
859
|
-
export { Checked, Disabled, Ignore, None$
|
|
879
|
+
export { Checked, Disabled, Ignore, None$2 as None, RestoreFocus, Separator, SubMenu, Unchecked };
|
|
860
880
|
}
|
|
861
881
|
declare namespace MouseEventType {
|
|
862
882
|
export { Keyboard, LeftClick };
|
|
@@ -883,7 +903,7 @@ declare namespace WhenExpression {
|
|
|
883
903
|
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 };
|
|
884
904
|
}
|
|
885
905
|
declare namespace WidgetId {
|
|
886
|
-
export { CodeGenerator, ColorPicker$1 as ColorPicker, Completion, CompletionDetail, Find, Hover, Rename$
|
|
906
|
+
export { CodeGenerator, ColorPicker$1 as ColorPicker, Completion, CompletionDetail, Find, Hover, Rename$2 as Rename, SourceAction };
|
|
887
907
|
}
|
|
888
908
|
|
|
889
909
|
export {
|
|
@@ -895,6 +915,7 @@ export {
|
|
|
895
915
|
ElementTags,
|
|
896
916
|
ErrorCodes,
|
|
897
917
|
EventExpression,
|
|
918
|
+
ExplorerEditingType,
|
|
898
919
|
GetKeyCodeString,
|
|
899
920
|
GetWhenExpressionText,
|
|
900
921
|
GetWidgetName,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DELTA_EDITING = 100;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DELTA_EDITING } from "../DeltaEditing/DeltaEditing.js";
|
|
1
2
|
export const BlockDevice = 1;
|
|
2
3
|
export const CharacterDevice = 2;
|
|
3
4
|
export const Directory = 3;
|
|
@@ -10,3 +11,10 @@ export const Symlink = 9;
|
|
|
10
11
|
export const SymLinkFile = 10;
|
|
11
12
|
export const SymLinkFolder = 11;
|
|
12
13
|
export const Unknown = 12;
|
|
14
|
+
export const EditingFile = File + DELTA_EDITING;
|
|
15
|
+
export const EditingFolder = Directory + DELTA_EDITING;
|
|
16
|
+
export const EditingDirectoryExpanded = DirectoryExpanded + DELTA_EDITING;
|
|
17
|
+
export const EditingUnknown = Unknown + DELTA_EDITING;
|
|
18
|
+
export const EditingSymLinkFile = SymLinkFile + DELTA_EDITING;
|
|
19
|
+
export const EditingSymLinkFolder = SymLinkFolder + DELTA_EDITING;
|
|
20
|
+
export const EditingSymLinkUnknown = Symlink + DELTA_EDITING;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const AltKey = 'event.altKey';
|
|
2
|
+
export const Button = 'event.button';
|
|
2
3
|
export const ClientX = 'event.clientX';
|
|
3
4
|
export const ClientY = 'event.clientY';
|
|
4
|
-
export const
|
|
5
|
+
export const CtrlKey = 'event.ctrlKey';
|
|
6
|
+
export const ShiftKey = 'event.shiftKey';
|
|
5
7
|
export const DeltaMode = 'event.deltaMode';
|
|
6
8
|
export const DeltaY = 'event.deltaY';
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const CtrlKey = 'event.ctrlKey';
|
|
9
|
+
export const EventTargetClassName = 'event.target.className';
|
|
10
|
+
export const IsTrusted = 'event.isTrusted';
|
|
10
11
|
export const Key = 'event.key';
|
|
12
|
+
export const TargetName = 'event.target.name';
|
|
13
|
+
export const TargetValue = 'event.target.value';
|
|
14
|
+
export const DefaultPrevented = 'event.defaultPrevented';
|
|
15
|
+
export const DataTransferFiles2 = 'event.dataTransfer.files2';
|
|
16
|
+
export const DataTransferFiles = 'event.dataTransfer.files';
|
package/dist/parts/Main/Main.js
CHANGED
|
@@ -6,6 +6,7 @@ export * as ElementTagMap from "../ElementTagMap/ElementTagMap.js";
|
|
|
6
6
|
export * as ElementTags from "../ElementTags/ElementTags.js";
|
|
7
7
|
export * as ErrorCodes from "../ErrorCodes/ErrorCodes.js";
|
|
8
8
|
export * as EventExpression from "../EventExpression/EventExpression.js";
|
|
9
|
+
export * as ExplorerEditingType from "../ExplorerEditingType/ExplorerEditingType.js";
|
|
9
10
|
export * as GetKeyCodeString from "../GetKeyCodeString/GetKeyCodeString.js";
|
|
10
11
|
export * as GetWhenExpressionText from "../GetWhenExpressionText/GetWhenExpressionText.js";
|
|
11
12
|
export * as GetWidgetName from "../GetWidgetName/GetWidgetName.js";
|