@salilvnair/dui 1.0.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/LICENSE +21 -0
- package/README.md +185 -0
- package/dist/chunks/EditorView.shell-BGH2VhWM.js +460 -0
- package/dist/chunks/EditorView.shell-BGH2VhWM.js.map +1 -0
- package/dist/chunks/daakia-icons-DxWnX_IQ.js +1726 -0
- package/dist/chunks/daakia-icons-DxWnX_IQ.js.map +1 -0
- package/dist/icons/daakia-icons.d.ts +304 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +17032 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/components/button/AIButtonView.d.ts +20 -0
- package/dist/lib/components/button/ButtonView.d.ts +28 -0
- package/dist/lib/components/button/DropDownButtonView.d.ts +19 -0
- package/dist/lib/components/button/IconButtonView.d.ts +22 -0
- package/dist/lib/components/button/SegmentedView.d.ts +17 -0
- package/dist/lib/components/button/SplitButtonView.d.ts +23 -0
- package/dist/lib/components/chips/ChipView.d.ts +21 -0
- package/dist/lib/components/display/CodeBlockView.d.ts +11 -0
- package/dist/lib/components/display/ColoredTextView.d.ts +18 -0
- package/dist/lib/components/display/CopyButtonView.d.ts +11 -0
- package/dist/lib/components/display/DataTableView.d.ts +27 -0
- package/dist/lib/components/display/DottedCardView.d.ts +10 -0
- package/dist/lib/components/display/EmptyStateView.d.ts +14 -0
- package/dist/lib/components/display/ExpandableLogEntryView.d.ts +14 -0
- package/dist/lib/components/display/FeatureCategoryView.d.ts +18 -0
- package/dist/lib/components/display/HudView.d.ts +25 -0
- package/dist/lib/components/display/JsonTreeView.d.ts +11 -0
- package/dist/lib/components/display/LiveColorCustomizer.d.ts +21 -0
- package/dist/lib/components/display/LoaderView.d.ts +12 -0
- package/dist/lib/components/display/MarkdownView.d.ts +19 -0
- package/dist/lib/components/display/PromptCardView.d.ts +33 -0
- package/dist/lib/components/display/PromptLibraryEditorView.d.ts +32 -0
- package/dist/lib/components/display/PromptLibraryListView.d.ts +30 -0
- package/dist/lib/components/display/StageView.d.ts +26 -0
- package/dist/lib/components/display/StatsCardView.d.ts +15 -0
- package/dist/lib/components/display/StatusIndicatorView.d.ts +14 -0
- package/dist/lib/components/display/ToastView.d.ts +19 -0
- package/dist/lib/components/display/YamlKeyChip.d.ts +15 -0
- package/dist/lib/components/input/CheckboxView.d.ts +15 -0
- package/dist/lib/components/input/DebugEditorView.d.ts +26 -0
- package/dist/lib/components/input/DiffEditorView.d.ts +18 -0
- package/dist/lib/components/input/DiffEditorView.fallback.d.ts +2 -0
- package/dist/lib/components/input/DiffEditorView.monaco.d.ts +2 -0
- package/dist/lib/components/input/DurationInputView.d.ts +15 -0
- package/dist/lib/components/input/EditorView.d.ts +222 -0
- package/dist/lib/components/input/EditorView.fallback.d.ts +10 -0
- package/dist/lib/components/input/EditorView.monaco.d.ts +2 -0
- package/dist/lib/components/input/EditorView.shell.d.ts +13 -0
- package/dist/lib/components/input/FormDataTableView.d.ts +22 -0
- package/dist/lib/components/input/HiddenKeyValueItemView.d.ts +22 -0
- package/dist/lib/components/input/HighlightedInputView.d.ts +26 -0
- package/dist/lib/components/input/KeyValueTableRowView.d.ts +31 -0
- package/dist/lib/components/input/KeyValueTableView.d.ts +59 -0
- package/dist/lib/components/input/MergedInputView.d.ts +43 -0
- package/dist/lib/components/input/MultilineInputView.d.ts +15 -0
- package/dist/lib/components/input/SearchInputView.d.ts +17 -0
- package/dist/lib/components/input/SegmentedControlView.d.ts +23 -0
- package/dist/lib/components/input/SelectInputView.d.ts +31 -0
- package/dist/lib/components/input/SelectTextInputView.d.ts +44 -0
- package/dist/lib/components/input/SliderView.d.ts +15 -0
- package/dist/lib/components/input/TabView.d.ts +28 -0
- package/dist/lib/components/input/TagInputView.d.ts +10 -0
- package/dist/lib/components/input/TextInputView.d.ts +36 -0
- package/dist/lib/components/input/ThemeCardSelectorView.d.ts +18 -0
- package/dist/lib/components/input/ToggleSwitchView.d.ts +19 -0
- package/dist/lib/components/layout/BottomPanelView.d.ts +16 -0
- package/dist/lib/components/layout/CollapsibleSectionView.d.ts +14 -0
- package/dist/lib/components/layout/DebugView.d.ts +63 -0
- package/dist/lib/components/layout/FolderView.d.ts +85 -0
- package/dist/lib/components/layout/ResizablePanelView.d.ts +10 -0
- package/dist/lib/components/layout/SettingsNavView.d.ts +29 -0
- package/dist/lib/components/layout/SideNavView.d.ts +39 -0
- package/dist/lib/components/layout/SpacerView.d.ts +7 -0
- package/dist/lib/components/layout/SplitPanelView.d.ts +33 -0
- package/dist/lib/components/modal/ContextMenuView.d.ts +28 -0
- package/dist/lib/components/modal/InfoPopupView.d.ts +17 -0
- package/dist/lib/components/modal/ModalView.d.ts +41 -0
- package/dist/lib/components/rearrange/RearrangeView.d.ts +34 -0
- package/dist/lib/components/tabs/PilledTabView.d.ts +19 -0
- package/dist/lib/components/tabs/TabBarView.d.ts +28 -0
- package/dist/lib/components/tabs/TabView.d.ts +34 -0
- package/dist/lib/core/ButtonBase.d.ts +28 -0
- package/dist/lib/core/CardBase.d.ts +21 -0
- package/dist/lib/core/ChipBase.d.ts +21 -0
- package/dist/lib/core/DisplayBase.d.ts +21 -0
- package/dist/lib/core/DuiContext.d.ts +53 -0
- package/dist/lib/core/DuiTokens.d.ts +115 -0
- package/dist/lib/core/DuiTypes.d.ts +29 -0
- package/dist/lib/core/EditorBase.d.ts +13 -0
- package/dist/lib/core/InputBase.d.ts +25 -0
- package/dist/lib/core/MenuBase.d.ts +23 -0
- package/dist/lib/core/NavBase.d.ts +26 -0
- package/dist/lib/core/OverlayBase.d.ts +20 -0
- package/dist/lib/core/SelectBase.d.ts +22 -0
- package/dist/lib/core/TabBase.d.ts +25 -0
- package/dist/lib/core/TableBase.d.ts +19 -0
- package/dist/lib/core/ToggleBase.d.ts +19 -0
- package/dist/lib/core/index.d.ts +25 -0
- package/dist/lib/index.d.ts +159 -0
- package/dist/lib/monaco-runtime.d.ts +29 -0
- package/dist/lib/theme/core.d.ts +8 -0
- package/dist/lib/theme/editor.d.ts +11 -0
- package/dist/lib/theme/utils.d.ts +6 -0
- package/dist/monaco-setup.d.ts +4 -0
- package/dist/monaco-setup.js +883 -0
- package/dist/monaco-setup.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/style.js +2 -0
- package/dist/style.js.map +1 -0
- package/dist/theme/core.js +191 -0
- package/dist/theme/core.js.map +1 -0
- package/dist/theme/editor.js +104 -0
- package/dist/theme/editor.js.map +1 -0
- package/dist/theme/utils.js +67 -0
- package/dist/theme/utils.js.map +1 -0
- package/package.json +81 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
export type { DuiSize, DuiRadius, DuiWidth, DuiFontStyle, DuiConfig } from './core/DuiTypes';
|
|
2
|
+
export { DUI_HEIGHT, DUI_CHIP_HEIGHT, DUI_TOGGLE, DUI_CHECKBOX, DUI_ICON_SIZE, DUI_FONT_SIZE, DUI_EDITOR_FONT_SIZE, DUI_PADDING_X, DUI_GAP, DUI_RADIUS_MAP, DUI_DEFAULT_RADIUS, DUI_WIDTH_MAP, DUI_SELECT_ITEM_PY } from './core/DuiTokens';
|
|
3
|
+
export { DuiProvider, useDui, useDuiStyle, resolveBorderRadius, resolveWidth } from './core/DuiContext';
|
|
4
|
+
export type { InputBaseConfig, InputContainerProps } from './core/InputBase';
|
|
5
|
+
export { useInputBase } from './core/InputBase';
|
|
6
|
+
export type { ButtonBaseConfig, ButtonContainerProps } from './core/ButtonBase';
|
|
7
|
+
export { useButtonBase } from './core/ButtonBase';
|
|
8
|
+
export type { NavBaseConfig, NavContainerProps } from './core/NavBase';
|
|
9
|
+
export { useNavBase } from './core/NavBase';
|
|
10
|
+
export type { ChipBaseConfig, ChipContainerProps } from './core/ChipBase';
|
|
11
|
+
export { useChipBase } from './core/ChipBase';
|
|
12
|
+
export type { ToggleBaseConfig, ToggleContainerProps } from './core/ToggleBase';
|
|
13
|
+
export { useToggleBase } from './core/ToggleBase';
|
|
14
|
+
export type { MenuBaseConfig, MenuContainerProps } from './core/MenuBase';
|
|
15
|
+
export { useMenuBase } from './core/MenuBase';
|
|
16
|
+
export type { TabBaseConfig, TabContainerProps } from './core/TabBase';
|
|
17
|
+
export { useTabBase } from './core/TabBase';
|
|
18
|
+
export type { TableBaseConfig, TableContainerProps } from './core/TableBase';
|
|
19
|
+
export { useTableBase } from './core/TableBase';
|
|
20
|
+
export type { DisplayBaseConfig, DisplayContainerProps } from './core/DisplayBase';
|
|
21
|
+
export { useDisplayBase } from './core/DisplayBase';
|
|
22
|
+
export type { OverlayBaseConfig, OverlayContainerProps } from './core/OverlayBase';
|
|
23
|
+
export { useOverlayBase } from './core/OverlayBase';
|
|
24
|
+
export type { CardBaseConfig, CardContainerProps } from './core/CardBase';
|
|
25
|
+
export { useCardBase } from './core/CardBase';
|
|
26
|
+
export type { EditorBaseConfig, EditorContainerProps } from './core/EditorBase';
|
|
27
|
+
export { useEditorBase } from './core/EditorBase';
|
|
28
|
+
export type { SelectBaseConfig, SelectContainerProps } from './core/SelectBase';
|
|
29
|
+
export { useSelectBase } from './core/SelectBase';
|
|
30
|
+
export { ChipView } from './components/chips/ChipView';
|
|
31
|
+
export type { ChipViewProps, ChipViewSize } from './components/chips/ChipView';
|
|
32
|
+
export { ButtonView } from './components/button/ButtonView';
|
|
33
|
+
export type { ButtonViewProps, ButtonVariant, ButtonSize } from './components/button/ButtonView';
|
|
34
|
+
export { SegmentedView } from './components/button/SegmentedView';
|
|
35
|
+
export type { SegmentedViewProps, SegmentedOption } from './components/button/SegmentedView';
|
|
36
|
+
export { IconButtonView } from './components/button/IconButtonView';
|
|
37
|
+
export type { IconButtonViewProps, IconButtonSize, IconButtonVariant } from './components/button/IconButtonView';
|
|
38
|
+
export { DropDownButtonView } from './components/button/DropDownButtonView';
|
|
39
|
+
export type { DropDownButtonViewProps } from './components/button/DropDownButtonView';
|
|
40
|
+
export { TextInputView } from './components/input/TextInputView';
|
|
41
|
+
export type { TextInputViewProps, TextInputSize } from './components/input/TextInputView';
|
|
42
|
+
export { MultilineInputView } from './components/input/MultilineInputView';
|
|
43
|
+
export type { MultilineInputViewProps } from './components/input/MultilineInputView';
|
|
44
|
+
export { SelectInputView } from './components/input/SelectInputView';
|
|
45
|
+
export type { SelectInputViewProps, SelectOption, SelectInputSize } from './components/input/SelectInputView';
|
|
46
|
+
export { SelectTextInputView } from './components/input/SelectTextInputView';
|
|
47
|
+
export type { SelectTextInputViewProps, SelectTextOption, MockServerSuggestion } from './components/input/SelectTextInputView';
|
|
48
|
+
export { SegmentedControlView } from './components/input/SegmentedControlView';
|
|
49
|
+
export type { SegmentedControlViewProps, SegmentedControlOption } from './components/input/SegmentedControlView';
|
|
50
|
+
export { HiddenKeyValueItemView } from './components/input/HiddenKeyValueItemView';
|
|
51
|
+
export type { HiddenKeyValueItemViewProps } from './components/input/HiddenKeyValueItemView';
|
|
52
|
+
export { TabView } from './components/input/TabView';
|
|
53
|
+
export type { TabViewProps, TabItem, TabVariant } from './components/input/TabView';
|
|
54
|
+
export { EditorView, EditorLineNumbers, EditorWordWrap, EditorCursorStyle, EditorCursorBlinking, EditorRenderWhitespace, EditorFoldingControls, EditorMatchBrackets, EditorAutoIndent, EditorAcceptSuggestion } from './components/input/EditorView';
|
|
55
|
+
export type { EditorViewProps, EditorLanguage, EditorContextMenuMode, EditorOptions } from './components/input/EditorView';
|
|
56
|
+
export { DebugEditorView } from './components/input/DebugEditorView';
|
|
57
|
+
export type { DebugEditorViewProps, DebugEditorAdapter } from './components/input/DebugEditorView';
|
|
58
|
+
export { DiffEditorView } from './components/input/DiffEditorView';
|
|
59
|
+
export type { DiffEditorViewProps } from './components/input/DiffEditorView';
|
|
60
|
+
export { ContextMenuView } from './components/modal/ContextMenuView';
|
|
61
|
+
export type { ContextMenuViewProps, ContextMenuItem, ContextMenuWidth } from './components/modal/ContextMenuView';
|
|
62
|
+
export { TabBarView } from './components/tabs/TabBarView';
|
|
63
|
+
export type { TabBarViewProps, TabBarTab, TabBarProtocol, TabBarTabType, RealtimeProtocol } from './components/tabs/TabBarView';
|
|
64
|
+
export { PilledTabView } from './components/tabs/PilledTabView';
|
|
65
|
+
export type { PilledTabViewProps, PilledTab } from './components/tabs/PilledTabView';
|
|
66
|
+
export { ToggleSwitchView } from './components/input/ToggleSwitchView';
|
|
67
|
+
export type { ToggleSwitchViewProps } from './components/input/ToggleSwitchView';
|
|
68
|
+
export { CheckboxView } from './components/input/CheckboxView';
|
|
69
|
+
export type { CheckboxViewProps, CheckboxSize } from './components/input/CheckboxView';
|
|
70
|
+
export { RearrangeView } from './components/rearrange/RearrangeView';
|
|
71
|
+
export type { RearrangeViewProps, RearrangeItem } from './components/rearrange/RearrangeView';
|
|
72
|
+
export { SliderView } from './components/input/SliderView';
|
|
73
|
+
export type { SliderViewProps } from './components/input/SliderView';
|
|
74
|
+
export { ModalView } from './components/modal/ModalView';
|
|
75
|
+
export type { ModalViewProps, ModalSize, ModalMode } from './components/modal/ModalView';
|
|
76
|
+
export { LoaderView } from './components/display/LoaderView';
|
|
77
|
+
export type { LoaderViewProps, LoaderVariant } from './components/display/LoaderView';
|
|
78
|
+
export { EmptyStateView } from './components/display/EmptyStateView';
|
|
79
|
+
export type { EmptyStateViewProps } from './components/display/EmptyStateView';
|
|
80
|
+
export { StatusIndicatorView } from './components/display/StatusIndicatorView';
|
|
81
|
+
export type { StatusIndicatorViewProps, StatusState, StatusSize } from './components/display/StatusIndicatorView';
|
|
82
|
+
export { InfoPopupView } from './components/modal/InfoPopupView';
|
|
83
|
+
export type { InfoPopupViewProps } from './components/modal/InfoPopupView';
|
|
84
|
+
export { SplitPanelView } from './components/layout/SplitPanelView';
|
|
85
|
+
export type { SplitPanelViewProps, SplitDirection } from './components/layout/SplitPanelView';
|
|
86
|
+
export { ResizablePanelView } from './components/layout/ResizablePanelView';
|
|
87
|
+
export type { ResizablePanelViewProps } from './components/layout/ResizablePanelView';
|
|
88
|
+
export { DottedCardView } from './components/display/DottedCardView';
|
|
89
|
+
export type { DottedCardViewProps } from './components/display/DottedCardView';
|
|
90
|
+
export { ColoredTextView } from './components/display/ColoredTextView';
|
|
91
|
+
export type { ColoredTextViewProps, ColorToken } from './components/display/ColoredTextView';
|
|
92
|
+
export { StatsCardView } from './components/display/StatsCardView';
|
|
93
|
+
export type { StatsCardViewProps } from './components/display/StatsCardView';
|
|
94
|
+
export { DataTableView } from './components/display/DataTableView';
|
|
95
|
+
export type { DataTableViewProps, DataTableColumn } from './components/display/DataTableView';
|
|
96
|
+
export { CodeBlockView } from './components/display/CodeBlockView';
|
|
97
|
+
export type { CodeBlockViewProps } from './components/display/CodeBlockView';
|
|
98
|
+
export { AIButtonView } from './components/button/AIButtonView';
|
|
99
|
+
export type { AIButtonViewProps, AIButtonAction } from './components/button/AIButtonView';
|
|
100
|
+
export { SideNavView, filterItems, countLeaves } from './components/layout/SideNavView';
|
|
101
|
+
export type { SideNavViewProps, SideNavItem } from './components/layout/SideNavView';
|
|
102
|
+
export { FolderView } from './components/layout/FolderView';
|
|
103
|
+
export type { FolderViewProps, FolderNode, FolderAction, FolderRunnerTab, FolderRunnerConfig, DropPosition, MoveSummaryEntry } from './components/layout/FolderView';
|
|
104
|
+
export { DebugView } from './components/layout/DebugView';
|
|
105
|
+
export type { DebugViewProps, DebugSession, DebugActions, DebugVariable, DebugCallFrame, DebugBreakpoint } from './components/layout/DebugView';
|
|
106
|
+
export { SettingsNavView } from './components/layout/SettingsNavView';
|
|
107
|
+
export type { SettingsNavViewProps, SettingsNavGroup, SettingsNavItem } from './components/layout/SettingsNavView';
|
|
108
|
+
export { ThemeCardSelectorView } from './components/input/ThemeCardSelectorView';
|
|
109
|
+
export type { ThemeCardSelectorViewProps, ThemeOption } from './components/input/ThemeCardSelectorView';
|
|
110
|
+
export { FeatureCategoryView } from './components/display/FeatureCategoryView';
|
|
111
|
+
export type { FeatureCategoryViewProps, FeatureItem } from './components/display/FeatureCategoryView';
|
|
112
|
+
export { TagInputView } from './components/input/TagInputView';
|
|
113
|
+
export type { TagInputViewProps } from './components/input/TagInputView';
|
|
114
|
+
export { BottomPanelView } from './components/layout/BottomPanelView';
|
|
115
|
+
export type { BottomPanelViewProps, BottomPanelTab } from './components/layout/BottomPanelView';
|
|
116
|
+
export { ToastView, useToast } from './components/display/ToastView';
|
|
117
|
+
export type { ToastViewProps, Toast, ToastVariant } from './components/display/ToastView';
|
|
118
|
+
export { PromptCardView } from './components/display/PromptCardView';
|
|
119
|
+
export type { PromptCardViewProps } from './components/display/PromptCardView';
|
|
120
|
+
export { PromptLibraryListView } from './components/display/PromptLibraryListView';
|
|
121
|
+
export type { PromptLibraryListViewProps, PromptLibraryItem, PromptLibraryCategory, PromptLibrarySection } from './components/display/PromptLibraryListView';
|
|
122
|
+
export { PromptLibraryEditorView } from './components/display/PromptLibraryEditorView';
|
|
123
|
+
export type { PromptLibraryEditorViewProps, PromptLibraryVariable, PromptLibraryEditorTab } from './components/display/PromptLibraryEditorView';
|
|
124
|
+
export { StageCheck, StageSpin, StagePulse } from './components/display/StageView';
|
|
125
|
+
export type { StageViewBaseProps } from './components/display/StageView';
|
|
126
|
+
export { YamlKeyChip } from './components/display/YamlKeyChip';
|
|
127
|
+
export type { YamlKeyChipProps } from './components/display/YamlKeyChip';
|
|
128
|
+
export { LiveColorCustomizer } from './components/display/LiveColorCustomizer';
|
|
129
|
+
export type { LiveColorCustomizerProps, LiveColorVar } from './components/display/LiveColorCustomizer';
|
|
130
|
+
export { SearchInputView } from './components/input/SearchInputView';
|
|
131
|
+
export type { SearchInputViewProps } from './components/input/SearchInputView';
|
|
132
|
+
export { DurationInputView } from './components/input/DurationInputView';
|
|
133
|
+
export type { DurationInputViewProps, DurationUnit } from './components/input/DurationInputView';
|
|
134
|
+
export { SplitButtonView } from './components/button/SplitButtonView';
|
|
135
|
+
export type { SplitButtonViewProps, SplitButtonViewItem, SplitButtonViewVariant } from './components/button/SplitButtonView';
|
|
136
|
+
export { HighlightedInputView } from './components/input/HighlightedInputView';
|
|
137
|
+
export type { HighlightedInputViewProps } from './components/input/HighlightedInputView';
|
|
138
|
+
export { KeyValueTableView } from './components/input/KeyValueTableView';
|
|
139
|
+
export type { KeyValueTableViewProps, KeyValueTableRow, PinnedKeyValueRow } from './components/input/KeyValueTableView';
|
|
140
|
+
export { KeyValueTableRowView } from './components/input/KeyValueTableRowView';
|
|
141
|
+
export type { KeyValueTableRowViewProps } from './components/input/KeyValueTableRowView';
|
|
142
|
+
export { MergedInputView, MergeDivider } from './components/input/MergedInputView';
|
|
143
|
+
export type { MergedInputViewProps, MergedInputSegment, MergedSelectOption, MergedInputSize } from './components/input/MergedInputView';
|
|
144
|
+
export { HudView } from './components/display/HudView';
|
|
145
|
+
export type { HudViewProps, HudItem } from './components/display/HudView';
|
|
146
|
+
export { CollapsibleSectionView } from './components/layout/CollapsibleSectionView';
|
|
147
|
+
export type { CollapsibleSectionViewProps } from './components/layout/CollapsibleSectionView';
|
|
148
|
+
export { JsonTreeView } from './components/display/JsonTreeView';
|
|
149
|
+
export type { JsonTreeViewProps } from './components/display/JsonTreeView';
|
|
150
|
+
export { ExpandableLogEntryView } from './components/display/ExpandableLogEntryView';
|
|
151
|
+
export type { ExpandableLogEntryViewProps } from './components/display/ExpandableLogEntryView';
|
|
152
|
+
export { CopyButtonView } from './components/display/CopyButtonView';
|
|
153
|
+
export type { CopyButtonViewProps } from './components/display/CopyButtonView';
|
|
154
|
+
export { MarkdownView, registerMarkdownLanguage } from './components/display/MarkdownView';
|
|
155
|
+
export type { MarkdownViewProps } from './components/display/MarkdownView';
|
|
156
|
+
export { FormDataTableView } from './components/input/FormDataTableView';
|
|
157
|
+
export type { FormDataTableViewProps, FormDataRow } from './components/input/FormDataTableView';
|
|
158
|
+
export { SpacerView } from './components/layout/SpacerView';
|
|
159
|
+
export type { SpacerViewProps } from './components/layout/SpacerView';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Shared registry Monaco-backed components register into.
|
|
4
|
+
*
|
|
5
|
+
* The main package entry never references '@monaco-editor/react' or
|
|
6
|
+
* 'monaco-editor' — not even via lazy()/dynamic import, since bundlers still
|
|
7
|
+
* resolve every module reachable from an always-loaded entry point regardless
|
|
8
|
+
* of runtime conditionals (verified empirically; a computed dynamic-import
|
|
9
|
+
* specifier avoids that resolution but then can't be turned into a loadable
|
|
10
|
+
* chunk URL either, and fails at runtime with "Failed to resolve module
|
|
11
|
+
* specifier" in the browser).
|
|
12
|
+
*
|
|
13
|
+
* Instead, '@salilvnair/dui/monaco-setup' — a separate subpath only reached
|
|
14
|
+
* when a consumer explicitly imports it — statically imports the real
|
|
15
|
+
* Monaco-backed implementations (safe: importing that subpath is already an
|
|
16
|
+
* explicit opt-in requiring Monaco to be installed) and registers them here.
|
|
17
|
+
* EditorView/DiffEditorView read from this registry and fall back to their
|
|
18
|
+
* lightweight implementation until something has registered.
|
|
19
|
+
*/
|
|
20
|
+
type MonacoRuntimeStatus = 'idle' | 'ready' | 'unavailable';
|
|
21
|
+
export declare function getMonacoRuntimeStatus(): MonacoRuntimeStatus;
|
|
22
|
+
export declare function registerMonacoEditorImpl(impl: ComponentType<any>): void;
|
|
23
|
+
export declare function registerMonacoDiffEditorImpl(impl: ComponentType<any>): void;
|
|
24
|
+
export declare function getMonacoEditorImpl(): ComponentType<any> | null;
|
|
25
|
+
export declare function getMonacoDiffEditorImpl(): ComponentType<any> | null;
|
|
26
|
+
export declare function markMonacoReady(): void;
|
|
27
|
+
export declare function markMonacoUnavailable(): void;
|
|
28
|
+
export declare function useMonacoRuntimeStatus(): MonacoRuntimeStatus;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ThemeSchemaEntry } from './core';
|
|
2
|
+
interface ColorEditorProps {
|
|
3
|
+
entry: Pick<ThemeSchemaEntry, 'cssVar' | 'key' | 'comment'>;
|
|
4
|
+
currentValue: string;
|
|
5
|
+
isOverridden: boolean;
|
|
6
|
+
onApply: (v: string) => void;
|
|
7
|
+
onReset: () => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function ColorEditor({ entry, currentValue, isOverridden, onApply, onReset, onClose }: ColorEditorProps): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function generateYaml(): string;
|
|
2
|
+
export declare function parseThemeYaml(text: string): Record<string, string>;
|
|
3
|
+
export declare function applyThemeVars(cssVarMap: Record<string, string>): void;
|
|
4
|
+
export declare function resetThemeVars(): void;
|
|
5
|
+
export declare function readCurrentColors(): Record<string, string>;
|
|
6
|
+
export declare function toHexSafe(val: string): string;
|