@elice/material-exercise 1.230726.0 → 1.230817.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/cjs/_virtual/_rollupPluginBabelHelpers.js +6 -11
- package/cjs/components/material-exercise/MaterialExercise.d.ts +2 -2
- package/cjs/components/material-exercise/MaterialExerciseMobile.d.ts +1 -1
- package/cjs/components/material-exercise/context/ExerciseIntlProvider.d.ts +1 -1
- package/cjs/components/material-exercise/context/ExerciseProvider.d.ts +1 -1
- package/cjs/components/material-exercise/context/ExerciseProviderNoImage.d.ts +1 -1
- package/cjs/components/material-exercise/context/context.d.ts +2 -2
- package/cjs/components/material-exercise/context/recoilTypes.d.ts +14 -14
- package/cjs/components/material-exercise/context/types.d.ts +12 -12
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +1 -1
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +2 -2
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +2 -2
- package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +2 -2
- package/cjs/components/material-exercise/exercise-multilang-dropdown/types.d.ts +2 -2
- package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts +1 -1
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.d.ts +1 -1
- package/cjs/components/shared/exercise-menu-button/ExerciseMenuButton.d.ts +2 -2
- package/cjs/components/shared/file-icon/FileIcon.d.ts +1 -1
- package/cjs/components/shared/file-tabs/FileTab.d.ts +1 -1
- package/cjs/components/shared/file-tabs/FileTab.styled.d.ts +1 -1
- package/cjs/components/shared/file-tabs/FileTabs.js +6 -4
- package/cjs/components/shared/file-tree/FileTreeList.js +2 -2
- package/cjs/components/shared/file-tree/FileTreeListItems.js +2 -2
- package/cjs/components/shared/file-tree/context/FileTreeContext.d.ts +6 -6
- package/cjs/components/shared/file-tree/interface/index.d.ts +18 -18
- package/cjs/components/shared/file-viewer/FileViewer.d.ts +2 -2
- package/cjs/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -2
- package/cjs/components/shared/monaco-editor/MonacoEditor.d.ts +11 -11
- package/cjs/components/shared/monaco-editor/MonacoEditor.js +1 -1
- package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -2
- package/cjs/components/shared/monaco-editor/constants/monaco/preferences.d.ts +2 -2
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.d.ts +4 -4
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.d.ts +3 -3
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.d.ts +3 -3
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.d.ts +1 -1
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.d.ts +1 -1
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +3 -3
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoTheme.d.ts +1 -1
- package/cjs/components/shared/monaco-editor/editor-languages/css/formatter.js +1 -1
- package/cjs/components/shared/monaco-editor/editor-languages/html/formatter.js +1 -1
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.d.ts +1 -1
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/express.d.ts +1 -1
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/propTypes.d.ts +1 -1
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/react.d.ts +1 -1
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/formatter.js +12 -8
- package/cjs/components/shared/monaco-editor/hooks/useEditorOptions.d.ts +2 -2
- package/cjs/components/shared/monaco-editor/utils/prettier/index.d.ts +1 -1
- package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/OnDisposed.d.ts +1 -1
- package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelection.js +10 -10
- package/cjs/components/shared/monaco-editor/vendors/vscode-emmet-helper/emmetHelper.d.ts +5 -5
- package/cjs/components/shared/no-vnc/NoVnc.d.ts +1 -1
- package/cjs/constants/shortcutKeyMap.d.ts +1 -1
- package/cjs/hooks/useArduino.d.ts +1 -1
- package/cjs/hooks/useExericseShortcut.d.ts +2 -2
- package/cjs/hooks/useMaterialExerciseFileUrl.d.ts +1 -1
- package/cjs/hooks/useRunnerRoomWebSocket.d.ts +1 -1
- package/cjs/hooks/useStdioWebSocket.d.ts +3 -3
- package/cjs/hooks/useUsercodeEditWebSocket.d.ts +5 -5
- package/cjs/hooks/useUsercodeEditWebSocket.js +39 -33
- package/cjs/typings/arduino.d.ts +6 -6
- package/cjs/utils/exerciseFile.d.ts +1 -1
- package/cjs/utils/runner.d.ts +3 -3
- package/cjs/utils/runner.js +7 -7
- package/es/_virtual/_rollupPluginBabelHelpers.js +6 -11
- package/es/components/material-exercise/MaterialExercise.d.ts +2 -2
- package/es/components/material-exercise/MaterialExercise.js +1 -1
- package/es/components/material-exercise/MaterialExerciseMobile.d.ts +1 -1
- package/es/components/material-exercise/context/ExerciseIntlProvider.d.ts +1 -1
- package/es/components/material-exercise/context/ExerciseProvider.d.ts +1 -1
- package/es/components/material-exercise/context/ExerciseProviderNoImage.d.ts +1 -1
- package/es/components/material-exercise/context/context.d.ts +2 -2
- package/es/components/material-exercise/context/recoil.js +1 -1
- package/es/components/material-exercise/context/recoilTypes.d.ts +14 -14
- package/es/components/material-exercise/context/types.d.ts +12 -12
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +1 -1
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +1 -1
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +1 -1
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +2 -2
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +2 -2
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +1 -1
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +2 -2
- package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +2 -2
- package/es/components/material-exercise/exercise-multilang-dropdown/types.d.ts +2 -2
- package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts +1 -1
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +1 -1
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +1 -1
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.d.ts +1 -1
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +2 -2
- package/es/components/shared/exercise-menu-button/ExerciseMenuButton.d.ts +2 -2
- package/es/components/shared/file-icon/FileIcon.d.ts +1 -1
- package/es/components/shared/file-tabs/FileTab.d.ts +1 -1
- package/es/components/shared/file-tabs/FileTab.js +1 -1
- package/es/components/shared/file-tabs/FileTab.styled.d.ts +1 -1
- package/es/components/shared/file-tabs/FileTabs.js +6 -4
- package/es/components/shared/file-tree/FileTreeList.js +2 -2
- package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +1 -1
- package/es/components/shared/file-tree/FileTreeListItems.js +2 -2
- package/es/components/shared/file-tree/context/FileTreeContext.d.ts +6 -6
- package/es/components/shared/file-tree/interface/index.d.ts +18 -18
- package/es/components/shared/file-viewer/FileViewer.d.ts +2 -2
- package/es/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -2
- package/es/components/shared/monaco-editor/MonacoEditor.d.ts +11 -11
- package/es/components/shared/monaco-editor/MonacoEditor.js +1 -1
- package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -2
- package/es/components/shared/monaco-editor/constants/monaco/preferences.d.ts +2 -2
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.d.ts +4 -4
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.d.ts +3 -3
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.d.ts +3 -3
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.d.ts +1 -1
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.d.ts +1 -1
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +3 -3
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoTheme.d.ts +1 -1
- package/es/components/shared/monaco-editor/editor-languages/css/formatter.js +1 -1
- package/es/components/shared/monaco-editor/editor-languages/html/formatter.js +1 -1
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.d.ts +1 -1
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/express.d.ts +1 -1
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/propTypes.d.ts +1 -1
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/react.d.ts +1 -1
- package/es/components/shared/monaco-editor/editor-languages/typescript/formatter.js +12 -8
- package/es/components/shared/monaco-editor/hooks/useEditorOptions.d.ts +2 -2
- package/es/components/shared/monaco-editor/utils/prettier/index.d.ts +1 -1
- package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/OnDisposed.d.ts +1 -1
- package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelection.js +10 -10
- package/es/components/shared/monaco-editor/vendors/vscode-emmet-helper/emmetHelper.d.ts +5 -5
- package/es/components/shared/no-vnc/NoVnc.d.ts +1 -1
- package/es/constants/shortcutKeyMap.d.ts +1 -1
- package/es/hooks/useArduino.d.ts +1 -1
- package/es/hooks/useExerciseFile.js +1 -1
- package/es/hooks/useExericseShortcut.d.ts +2 -2
- package/es/hooks/useMaterialExerciseFileUrl.d.ts +1 -1
- package/es/hooks/useRunnerRoomWebSocket.d.ts +1 -1
- package/es/hooks/useStdioWebSocket.d.ts +3 -3
- package/es/hooks/useUsercodeEditWebSocket.d.ts +5 -5
- package/es/hooks/useUsercodeEditWebSocket.js +39 -33
- package/es/typings/arduino.d.ts +6 -6
- package/es/utils/exerciseFile.d.ts +1 -1
- package/es/utils/runner.d.ts +3 -3
- package/es/utils/runner.js +7 -7
- package/package.json +12 -16
|
@@ -135,7 +135,10 @@ function _regeneratorRuntime() {
|
|
|
135
135
|
if ("executing" === state) throw new Error("Generator is already running");
|
|
136
136
|
if ("completed" === state) {
|
|
137
137
|
if ("throw" === method) throw arg;
|
|
138
|
-
return
|
|
138
|
+
return {
|
|
139
|
+
value: void 0,
|
|
140
|
+
done: !0
|
|
141
|
+
};
|
|
139
142
|
}
|
|
140
143
|
for (context.method = method, context.arg = arg;;) {
|
|
141
144
|
var delegate = context.delegate;
|
|
@@ -188,7 +191,7 @@ function _regeneratorRuntime() {
|
|
|
188
191
|
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
189
192
|
}
|
|
190
193
|
function values(iterable) {
|
|
191
|
-
if (iterable) {
|
|
194
|
+
if (iterable || "" === iterable) {
|
|
192
195
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
193
196
|
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
194
197
|
if ("function" == typeof iterable.next) return iterable;
|
|
@@ -201,15 +204,7 @@ function _regeneratorRuntime() {
|
|
|
201
204
|
return next.next = next;
|
|
202
205
|
}
|
|
203
206
|
}
|
|
204
|
-
|
|
205
|
-
next: doneResult
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
function doneResult() {
|
|
209
|
-
return {
|
|
210
|
-
value: undefined,
|
|
211
|
-
done: !0
|
|
212
|
-
};
|
|
207
|
+
throw new TypeError(typeof iterable + " is not iterable");
|
|
213
208
|
}
|
|
214
209
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
215
210
|
value: GeneratorFunctionPrototype,
|
|
@@ -3,6 +3,6 @@ import type { MaterialExerciseCommonApis, MaterialExerciseCommonProps } from './
|
|
|
3
3
|
export interface MaterialExerciseProps extends MaterialExerciseCommonProps {
|
|
4
4
|
locale?: string;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
6
|
+
export type MaterialExerciseApis = MaterialExerciseCommonApis;
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<MaterialExerciseProps & React.RefAttributes<MaterialExerciseCommonApis> & import("@elice/material-shared-utils").MaterialCommponentCommonProps, "ref"> & React.RefAttributes<MaterialExerciseCommonApis>>;
|
|
8
8
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MaterialExerciseCommonProps } from './context';
|
|
3
|
-
|
|
3
|
+
type PickedMaterialExerciseCommonProps = Pick<MaterialExerciseCommonProps, 'materialExerciseId' | 'exerciseRoomId' | 'readOnlyEditor' | 'onExerciseRoomIdChange' | 'onDefaultExerciseRoomIdSet' | 'onError'>;
|
|
4
4
|
export interface MaterialExerciseMobileProps extends PickedMaterialExerciseCommonProps {
|
|
5
5
|
filename: string;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ExerciseProviderDedicatedProps, MaterialExerciseCommonProps } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type ExerciseProviderProps = MaterialExerciseCommonProps & Omit<ExerciseProviderDedicatedProps, 'readOnlyActiveFile'>;
|
|
4
4
|
/**
|
|
5
5
|
* Provider for exercise, which...
|
|
6
6
|
* - wrapping with `ExerciseContext`
|
|
@@ -11,5 +11,5 @@ export interface ExerciseProviderNoImageProps {
|
|
|
11
11
|
/** */
|
|
12
12
|
locale?: string;
|
|
13
13
|
}
|
|
14
|
-
declare const _default: (props: ExerciseProviderNoImageProps) => JSX.Element;
|
|
14
|
+
declare const _default: (props: ExerciseProviderNoImageProps) => React.JSX.Element;
|
|
15
15
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SetRequired } from 'type-fest';
|
|
3
3
|
import type { ExerciseProviderDedicatedProps, MaterialExerciseCommonProps } from './types';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type MaterialExerciseCommonForContextProps = SetRequired<MaterialExerciseCommonProps, 'exerciseRoomId'>;
|
|
5
|
+
export type ExerciseContextValue = MaterialExerciseCommonForContextProps & ExerciseProviderDedicatedProps;
|
|
6
6
|
export declare const ExerciseContext: React.Context<ExerciseContextValue>;
|
|
7
7
|
export {};
|
|
@@ -6,11 +6,11 @@ import type { MultilangEnvironmentJson, MultilangLanguagesJson } from '../exerci
|
|
|
6
6
|
/**
|
|
7
7
|
* Lecture.
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type AtomLectureState = GetOrgLectureGetResponses['lecture'] | null;
|
|
10
10
|
/**
|
|
11
11
|
* Material exercise.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type AtomExerciseState = (GetOrgMaterialExerciseGetResponses['materialExercise'] & {
|
|
14
14
|
_courseId: number;
|
|
15
15
|
_lectureId: number;
|
|
16
16
|
_lecturePageId: number;
|
|
@@ -19,15 +19,15 @@ export declare type AtomExerciseState = (GetOrgMaterialExerciseGetResponses['mat
|
|
|
19
19
|
/**
|
|
20
20
|
* Material exercise room.
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export type AtomExerciseRoomState = GetOrgMaterialExerciseExerciseRoomGetResponses['exerciseRoom'] | null;
|
|
23
23
|
/**
|
|
24
24
|
* User.
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type AtomUserState = GetOrgUserGetResponses['user'] | null;
|
|
27
27
|
/**
|
|
28
28
|
* Editor preference.
|
|
29
29
|
*/
|
|
30
|
-
export
|
|
30
|
+
export type AtomEditorPreferenceState = Required<MonacoEditorPreference>;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
@@ -46,41 +46,41 @@ export declare enum ExercisePreviewDisplayMode {
|
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
|
-
export
|
|
49
|
+
export type AtomRunnerRunTypeState = enums.ExerciseRunType | null;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export type AtomRunnerRoomConnectionInfoState = RunnerRoomConnectionInfo | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
*/
|
|
57
|
-
export
|
|
57
|
+
export type AtomRunnerStdioFilesState = MaterialExerciseStdioFile[];
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
*/
|
|
61
|
-
export
|
|
61
|
+
export type AtomVisibilityState = null | 'environment' | 'preference';
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
*/
|
|
65
|
-
export
|
|
65
|
+
export type AtomWebSocketStateKey = 'runnerRoom' | 'stdio' | 'usercodeEdit';
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
*/
|
|
69
|
-
export
|
|
69
|
+
export type AtomWebSocketStates = Record<AtomWebSocketStateKey, WebSocket['readyState']>;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
|
-
export
|
|
73
|
+
export type AtomMultilangEnvironmentJson = MultilangEnvironmentJson | null;
|
|
74
74
|
/**
|
|
75
75
|
* - `undefined`: Not loaded.
|
|
76
76
|
* - `null`: Loaded, but languages list not found.
|
|
77
77
|
* - `MultilangLanguagesJson`: Ready.
|
|
78
78
|
*/
|
|
79
|
-
export
|
|
79
|
+
export type AtomMultilangEnvironmentState = MultilangLanguagesJson | undefined | null;
|
|
80
80
|
/**
|
|
81
81
|
* Arduino preference.
|
|
82
82
|
*/
|
|
83
|
-
export
|
|
83
|
+
export type AtomArduinoPreferenceState = Required<{
|
|
84
84
|
baudRate: number;
|
|
85
85
|
port: string;
|
|
86
86
|
}>;
|
|
@@ -8,9 +8,9 @@ import type { ExerciseProviderNoImageProps } from './ExerciseProviderNoImage';
|
|
|
8
8
|
* [External]
|
|
9
9
|
* Common component for material exercise.
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type MaterialExerciseCommonComponent<EP extends Record<string, unknown> = {}, // additional props
|
|
12
12
|
EA extends Record<string, unknown> = {}> = React.ForwardRefExoticComponent<EP & MaterialExerciseCommonProps & React.RefAttributes<EA & MaterialExerciseCommonApis>>;
|
|
13
|
-
export
|
|
13
|
+
export type MECC<EP extends Record<string, unknown> = {}, // additional props
|
|
14
14
|
EA extends Record<string, unknown> = {}> = MaterialExerciseCommonComponent<EP, EA>;
|
|
15
15
|
/**
|
|
16
16
|
* [External]
|
|
@@ -23,11 +23,11 @@ export interface MaterialExerciseCommonApis {
|
|
|
23
23
|
/**
|
|
24
24
|
* Send text to terminal.
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type MaterialExerciseCommonApiSendTextToTerminal = (text: string) => void;
|
|
27
27
|
/**
|
|
28
28
|
* Get monaco editor apis.
|
|
29
29
|
*/
|
|
30
|
-
export
|
|
30
|
+
export type MaterialExerciseCommonApiGetMonacoEditorApis = () => MonacoEditorApis | null;
|
|
31
31
|
/**
|
|
32
32
|
* [External]
|
|
33
33
|
* Common exposed props for `MaterialExercise*` components.
|
|
@@ -68,11 +68,11 @@ export interface MaterialExerciseCommonProps extends MaterialCommponentCommonPro
|
|
|
68
68
|
/**
|
|
69
69
|
* Empty options for exercise that `readyExerciseImage` is not set.
|
|
70
70
|
*/
|
|
71
|
-
export
|
|
71
|
+
export type MaterialExerciseCommonPropExerciseImageEmptyOptions = ExerciseProviderNoImageProps;
|
|
72
72
|
/**
|
|
73
73
|
* On code help button click.
|
|
74
74
|
*/
|
|
75
|
-
export
|
|
75
|
+
export type MaterialExerciseCommonPropOnCodeHelpRequest = (params: {
|
|
76
76
|
code: string;
|
|
77
77
|
error?: CodeHelperError;
|
|
78
78
|
payload?: any;
|
|
@@ -83,27 +83,27 @@ export declare type MaterialExerciseCommonPropOnCodeHelpRequest = (params: {
|
|
|
83
83
|
/**
|
|
84
84
|
* On multi language change.
|
|
85
85
|
*/
|
|
86
|
-
export
|
|
86
|
+
export type MaterialExerciseCommonPropOnMultiLangLanguageChange = (language: string) => void;
|
|
87
87
|
/**
|
|
88
88
|
* On default exercise room ID set.
|
|
89
89
|
*/
|
|
90
|
-
export
|
|
90
|
+
export type MaterialExerciseCommonPropOnDefaultExerciseRoomIdSet = (exerciseRoomId: number) => void;
|
|
91
91
|
/**
|
|
92
92
|
* On exercise room change.
|
|
93
93
|
*/
|
|
94
|
-
export
|
|
94
|
+
export type MaterialExerciseCommonPropOnExerciseRoomIdChange = (exerciseRoomId: number) => void;
|
|
95
95
|
/**
|
|
96
96
|
* On running finish callback.
|
|
97
97
|
*/
|
|
98
|
-
export
|
|
98
|
+
export type MaterialExerciseCommonPropOnRunningDone = (res: GetOrgMaterialExerciseExerciseRunningListResponses['exerciseRunnings'][number]) => void;
|
|
99
99
|
/**
|
|
100
100
|
* On submit callback.
|
|
101
101
|
*/
|
|
102
|
-
export
|
|
102
|
+
export type MaterialExerciseCommonPropOnSubmit = (res: Pick<PostOrgMaterialExerciseExerciseRunningSubmitResponses, 'exerciseRunningId' | 'runType'>) => void;
|
|
103
103
|
/**
|
|
104
104
|
* On any error occurred. (to collect error to "Sentry")
|
|
105
105
|
*/
|
|
106
|
-
export
|
|
106
|
+
export type MaterialExerciseCommonPropOnError = (error: any) => void;
|
|
107
107
|
/**
|
|
108
108
|
* [Internal]
|
|
109
109
|
* Dediacted internal props for `ExerciseProvider`.
|
package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ExerciseFileTabsLazy: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ExerciseFileTabsLazy: () => React.JSX.Element;
|
|
3
3
|
export default ExerciseFileTabsLazy;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ExerciseFileTreeLazy: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ExerciseFileTreeLazy: () => React.JSX.Element;
|
|
3
3
|
export default ExerciseFileTreeLazy;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ExerciseMultilangDropdownLazy: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ExerciseMultilangDropdownLazy: () => React.JSX.Element;
|
|
3
3
|
export default ExerciseMultilangDropdownLazy;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Languages that support from multi lang env.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type MultilangLanguage = string | 'c' | 'cpp' | 'java' | 'python3' | 'javascript' | 'rust' | 'go' | 'ruby' | 'swift' | 'kotlin' | 'csharp' | 'fsharp' | 'scala' | 'lua' | 'php';
|
|
5
5
|
/**
|
|
6
6
|
* Meta data of each language from `.languages.json`.
|
|
7
7
|
*/
|
|
@@ -30,7 +30,7 @@ export interface MultilangLanguagesJsonLangMeta {
|
|
|
30
30
|
/**
|
|
31
31
|
* Parsed `.languages.json`.
|
|
32
32
|
*/
|
|
33
|
-
export
|
|
33
|
+
export type MultilangLanguagesJson = Record<MultilangLanguage, MultilangLanguagesJsonLangMeta>;
|
|
34
34
|
/**
|
|
35
35
|
* Parsed `.environment.json`.
|
|
36
36
|
*/
|
package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ExerciseMenuButtonProps } from "../../shared/exercise-menu-button";
|
|
3
|
-
|
|
3
|
+
type ExercisePreviewDisplayModeButtonProps = Omit<ExerciseMenuButtonProps, 'icon' | 'onClick'>;
|
|
4
4
|
declare const ExercisePreviewDisplayModeButton: React.ForwardRefExoticComponent<ExercisePreviewDisplayModeButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
export default ExercisePreviewDisplayModeButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ButtonProps } from '@elice/blocks';
|
|
3
|
-
|
|
3
|
+
type OmittedButtonProps = Omit<ButtonProps, 'size' | 'role' | 'icon' | 'iconAlign'>;
|
|
4
4
|
declare const ExerciseRunnerControllerCodeHelpRequestButton: React.ForwardRefExoticComponent<OmittedButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
export default ExerciseRunnerControllerCodeHelpRequestButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IconButtonProps, TooltipProps } from '@elice/blocks';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type PickedIconButtonProps = Pick<IconButtonProps, 'icon' | 'disabled' | 'loading' | 'onClick' | 'style'>;
|
|
4
|
+
type PickedTooltipProps = Pick<TooltipProps, 'title' | 'placement'>;
|
|
5
5
|
export interface ExerciseMenuButtonProps extends PickedIconButtonProps, PickedTooltipProps {
|
|
6
6
|
children?: React.ReactChild;
|
|
7
7
|
active?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SafeImageProps } from '@elice/blocks';
|
|
3
|
-
|
|
3
|
+
type PickedSafeImageProps = Pick<SafeImageProps, 'className' | 'width' | 'height' | 'style'>;
|
|
4
4
|
export interface FileIconProps extends PickedSafeImageProps {
|
|
5
5
|
filename: string;
|
|
6
6
|
directory?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TabProps } from './util';
|
|
3
|
-
|
|
3
|
+
type PickedHTMLDivAttributesProps = Pick<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onDrag' | 'onDragEnter' | 'onDragOver' | 'onDragExit' | 'onDragLeave' | 'onDragStart' | 'onDragEnd' | 'onDrop'>;
|
|
4
4
|
export interface FileTabProps extends TabProps, PickedHTMLDivAttributesProps {
|
|
5
5
|
active?: boolean;
|
|
6
6
|
hovered?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Text } from '@elice/blocks';
|
|
3
3
|
import type { FileTabProps } from './FileTab';
|
|
4
|
-
|
|
4
|
+
type StyledTabContentProps = Pick<FileTabProps, 'active' | 'hovered'>;
|
|
5
5
|
export declare const StyledTabLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const StyledTabLabelFilename: import("styled-components").StyledComponent<typeof Text, any, {}, never>;
|
|
7
7
|
export declare const StyledTabLabelDirname: import("styled-components").StyledComponent<typeof Text, any, {}, never>;
|
|
@@ -44,10 +44,12 @@ var FileTabs = function FileTabs(_ref) {
|
|
|
44
44
|
/**
|
|
45
45
|
* Throttled `setCurHoveredTabIndex`.
|
|
46
46
|
*/
|
|
47
|
-
var setThrottledCurHoveredTabIndex = React__default["default"].
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
var setThrottledCurHoveredTabIndex = React__default["default"].useMemo(function () {
|
|
48
|
+
return throttle__default["default"](setCurHoveredTabIndex, 100, {
|
|
49
|
+
leading: true,
|
|
50
|
+
trailing: false
|
|
51
|
+
});
|
|
52
|
+
}, []);
|
|
51
53
|
/**
|
|
52
54
|
* Handle tab drag start.
|
|
53
55
|
*/
|
|
@@ -104,13 +104,13 @@ var FileTreeList = React.forwardRef(function (_ref, ref) {
|
|
|
104
104
|
}
|
|
105
105
|
if (dragFileTreeNode) {
|
|
106
106
|
if (dragFileTreeNode.isDirectory) {
|
|
107
|
-
onDirectoryMove && onDirectoryMove({
|
|
107
|
+
onDirectoryMove && void onDirectoryMove({
|
|
108
108
|
currentFilename: dragFileTreeNode.path,
|
|
109
109
|
newPath: '',
|
|
110
110
|
newName: dragFileTreeNode.title
|
|
111
111
|
});
|
|
112
112
|
} else {
|
|
113
|
-
onFileMove && onFileMove({
|
|
113
|
+
onFileMove && void onFileMove({
|
|
114
114
|
currentFilename: dragFileTreeNode.path,
|
|
115
115
|
newPath: '',
|
|
116
116
|
newName: dragFileTreeNode.title
|
|
@@ -148,13 +148,13 @@ var FileTreeListItems = function FileTreeListItems(_ref) {
|
|
|
148
148
|
}
|
|
149
149
|
if (dragFileTreeNode && dropzonePath !== null) {
|
|
150
150
|
if (dragFileTreeNode.isDirectory) {
|
|
151
|
-
onDirectoryMove && onDirectoryMove({
|
|
151
|
+
onDirectoryMove && void onDirectoryMove({
|
|
152
152
|
currentFilename: dragFileTreeNode.path,
|
|
153
153
|
newPath: dropzonePath,
|
|
154
154
|
newName: dragFileTreeNode.title
|
|
155
155
|
});
|
|
156
156
|
} else {
|
|
157
|
-
onFileMove && onFileMove({
|
|
157
|
+
onFileMove && void onFileMove({
|
|
158
158
|
currentFilename: dragFileTreeNode.path,
|
|
159
159
|
newPath: dropzonePath,
|
|
160
160
|
newName: dragFileTreeNode.title
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { OnDirectoryAdd, OnDirectoryDelete, OnDirectoryMove, OnFileAdd, OnFileDelete, OnFileMove, OnFilesUpload, OnHiddenSet, OnInitialOpenFileSet, OnReadOnlySet } from '../interface';
|
|
3
3
|
import type { FileTreeNode } from '../utils';
|
|
4
|
-
export
|
|
4
|
+
export type FileTreeTheme = 'dark' | 'white';
|
|
5
5
|
export interface FileTreeThemeOptions {
|
|
6
6
|
backgroundColor: string;
|
|
7
7
|
}
|
|
@@ -9,7 +9,7 @@ export interface NewInput {
|
|
|
9
9
|
type: 'file' | 'directory';
|
|
10
10
|
path: string;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type Mode = 'default' | 'checkbox';
|
|
13
13
|
export interface State {
|
|
14
14
|
mode: Mode;
|
|
15
15
|
maxFileUploadSize: number;
|
|
@@ -22,7 +22,7 @@ export interface State {
|
|
|
22
22
|
renameInputPath?: string;
|
|
23
23
|
initialOpenFileListTemp: string[];
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
type Action = {
|
|
26
26
|
type: 'UPDATE_THEME';
|
|
27
27
|
theme: State['theme'];
|
|
28
28
|
} | {
|
|
@@ -62,8 +62,8 @@ declare type Action = {
|
|
|
62
62
|
type: 'INITIAL_OPEN_FILELIST_REMOVE';
|
|
63
63
|
path: string;
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
type Dispatch = (action: Action) => void;
|
|
66
|
+
type FileTreeProviderProps = {
|
|
67
67
|
children: React.ReactNode;
|
|
68
68
|
theme?: FileTreeTheme;
|
|
69
69
|
collapsed?: boolean;
|
|
@@ -121,7 +121,7 @@ interface DispatchContextType {
|
|
|
121
121
|
onSetInitialOpenFile?: OnInitialOpenFileSet;
|
|
122
122
|
onFilesUpload?: OnFilesUpload;
|
|
123
123
|
}
|
|
124
|
-
declare function FileTreeProvider({ theme, collapsed, activePath, allowToggleReadonly, allowToggleHidden, onCollapse, onActivePathChange, maxFileUploadSize, onFilesUpload, onFileAdd, onDirectoryAdd, onHiddenSet, onReadOnlySet, onFileDelete, onDirectoryDelete, onFileMove, onDirectoryMove, exerciseRoomFilelist, imageFilelist, readOnlyFilelist, hiddenFilelist, isHiddenFilelistVisible, children, }: FileTreeProviderProps): JSX.Element;
|
|
124
|
+
declare function FileTreeProvider({ theme, collapsed, activePath, allowToggleReadonly, allowToggleHidden, onCollapse, onActivePathChange, maxFileUploadSize, onFilesUpload, onFileAdd, onDirectoryAdd, onHiddenSet, onReadOnlySet, onFileDelete, onDirectoryDelete, onFileMove, onDirectoryMove, exerciseRoomFilelist, imageFilelist, readOnlyFilelist, hiddenFilelist, isHiddenFilelistVisible, children, }: FileTreeProviderProps): React.JSX.Element;
|
|
125
125
|
declare function useFileTreeState(): StateContextType;
|
|
126
126
|
declare function useFileTreeDispatch(): DispatchContextType;
|
|
127
127
|
export { FileTreeProvider, useFileTreeState, useFileTreeDispatch };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type OnFileAddParams = {
|
|
2
2
|
path: string;
|
|
3
3
|
userFile?: File;
|
|
4
4
|
emptyFileWithName?: string;
|
|
5
5
|
overwrite?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type OnFileAdd = (params: OnFileAddParams) => Promise<any>;
|
|
8
|
+
export type OnDirectoryAddParams = {
|
|
9
9
|
path: string;
|
|
10
10
|
name: string;
|
|
11
11
|
overwrite?: boolean;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
13
|
+
export type OnDirectoryAdd = (params: OnDirectoryAddParams) => Promise<any>;
|
|
14
|
+
export type OnHiddenSetParams = {
|
|
15
15
|
path: string;
|
|
16
16
|
isHidden: boolean;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
18
|
+
export type OnHiddenSet = (params: OnHiddenSetParams) => void;
|
|
19
|
+
export type OnReadOnlySetParams = {
|
|
20
20
|
path: string;
|
|
21
21
|
isReadOnly: boolean;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
23
|
+
export type OnReadOnlySet = (params: OnReadOnlySetParams) => void;
|
|
24
|
+
export type OnFileDelete = (path: string) => Promise<any>;
|
|
25
|
+
export type OnDirectoryDelete = (path: string) => Promise<any>;
|
|
26
|
+
export type OnFileMoveParams = {
|
|
27
27
|
currentFilename: string;
|
|
28
28
|
newPath: string;
|
|
29
29
|
newName: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
32
|
-
export
|
|
31
|
+
export type OnFileMove = (params: OnFileMoveParams) => Promise<any>;
|
|
32
|
+
export type OnDirectoryMoveParams = {
|
|
33
33
|
currentFilename: string;
|
|
34
34
|
newPath: string;
|
|
35
35
|
newName: string;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
38
|
-
export
|
|
37
|
+
export type OnDirectoryMove = (params: OnDirectoryMoveParams) => Promise<any>;
|
|
38
|
+
export type OnInitialOpenFileSetParams = {
|
|
39
39
|
path: string;
|
|
40
40
|
isInitialOpen: boolean;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
43
|
-
export
|
|
42
|
+
export type OnInitialOpenFileSet = (params: OnInitialOpenFileSetParams) => void;
|
|
43
|
+
export type OnFilesUploadParams = {
|
|
44
44
|
files: FileList;
|
|
45
45
|
path: string;
|
|
46
46
|
};
|
|
47
|
-
export
|
|
47
|
+
export type OnFilesUpload = (params: OnFilesUploadParams) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface FileViewerBaseProps {
|
|
3
3
|
filename: string;
|
|
4
4
|
fileurl?: null | string;
|
|
5
5
|
locale?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: (props: FileViewerBaseProps) => JSX.Element;
|
|
7
|
+
declare const _default: (props: FileViewerBaseProps) => React.JSX.Element;
|
|
8
8
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { FileViewerBaseProps } from './FileViewer';
|
|
3
3
|
interface FileViewerNonViewableProps extends FileViewerBaseProps {
|
|
4
4
|
onTextViewerClick?: () => void;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: (props: FileViewerNonViewableProps) => JSX.Element;
|
|
6
|
+
declare const _default: (props: FileViewerNonViewableProps) => React.JSX.Element;
|
|
7
7
|
export default _default;
|
|
@@ -3,27 +3,27 @@ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
|
3
3
|
import type { MonacoEditorPreference } from './constants';
|
|
4
4
|
import type { MonacoEditorMarker } from './editor-hooks';
|
|
5
5
|
/** Has editor undo/redo history? */
|
|
6
|
-
|
|
6
|
+
type MonacoEditorApiHasHistory = () => boolean;
|
|
7
7
|
/** Get current monaco editor model. */
|
|
8
|
-
|
|
8
|
+
type MonacoEditorApiGetMonacoModel = () => monaco.editor.ITextModel | null;
|
|
9
9
|
/** Clear editor undo/redo history. */
|
|
10
|
-
|
|
10
|
+
type MonacoEditorApiClearHistory = () => void;
|
|
11
11
|
/** Get current value of editor. */
|
|
12
|
-
|
|
12
|
+
type MonacoEditorApiGetValue = () => string;
|
|
13
13
|
/** Get value in range of editor. */
|
|
14
|
-
|
|
14
|
+
type MonacoEditorApiGetValueInRange = (from: number, to: number) => string;
|
|
15
15
|
/** Set (overwrite) value to editor. */
|
|
16
|
-
|
|
16
|
+
type MonacoEditorApiSetValue = (value: string) => void;
|
|
17
17
|
/** Insert value at specific position. */
|
|
18
|
-
|
|
18
|
+
type MonacoEditorApiInsertValue = (offset: number, value: string) => void;
|
|
19
19
|
/** Remove value at specific range. */
|
|
20
|
-
|
|
20
|
+
type MonacoEditorApiRemoveValue = (from: number, to: number) => void;
|
|
21
21
|
/** Get offset of current cursor position. */
|
|
22
|
-
|
|
22
|
+
type MonacoEditorApiGetPositionOffset = () => number;
|
|
23
23
|
/** Set selection of editor with specific range. */
|
|
24
|
-
|
|
24
|
+
type MonacoEditorApiSetSelection = (from: number, to: number) => void;
|
|
25
25
|
/** Scroll editor to specific `scrollTop`. */
|
|
26
|
-
|
|
26
|
+
type MonacoEditorApiScrollTo = (scrollTop: number) => void;
|
|
27
27
|
/** API of CodeEditorNext. */
|
|
28
28
|
export interface MonacoEditorApis {
|
|
29
29
|
editor: monaco.editor.IStandaloneCodeEditor | null;
|
|
@@ -304,7 +304,7 @@ var MonacoEditor = React.forwardRef(function (_ref, ref) {
|
|
|
304
304
|
// add keyboard shortcut.
|
|
305
305
|
editor.current.addCommand(monaco__namespace.KeyMod.CtrlCmd | monaco__namespace.KeyCode.KeyS, function () {
|
|
306
306
|
var _a, _b, _c;
|
|
307
|
-
(_b = (_a = editor.current) === null || _a === void 0 ? void 0 : _a.getAction('editor.action.formatDocument')) === null || _b === void 0 ? void 0 : _b.run();
|
|
307
|
+
void ((_b = (_a = editor.current) === null || _a === void 0 ? void 0 : _a.getAction('editor.action.formatDocument')) === null || _b === void 0 ? void 0 : _b.run());
|
|
308
308
|
if (typeof onSave === 'function') {
|
|
309
309
|
var content = ((_c = getMonacoModel()) === null || _c === void 0 ? void 0 : _c.getValue()) || '';
|
|
310
310
|
onSave(content);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { MonacoEditorPreference } from './constants';
|
|
3
3
|
export interface PerferenceFormProps {
|
|
4
4
|
value: Partial<MonacoEditorPreference>;
|
|
5
5
|
locale?: string;
|
|
6
6
|
onChange?: (value: Required<MonacoEditorPreference>) => void;
|
|
7
7
|
}
|
|
8
|
-
declare const _default: (props: PerferenceFormProps) => JSX.Element;
|
|
8
|
+
declare const _default: (props: PerferenceFormProps) => React.JSX.Element;
|
|
9
9
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { editor } from 'monaco-editor/esm/vs/editor/editor.api';
|
|
2
|
-
|
|
2
|
+
type PickedMonacoStandaloneEditorOptions = Pick<editor.IStandaloneEditorConstructionOptions, 'autoClosingBrackets' | 'cursorSmoothCaretAnimation' | 'detectIndentation' | 'fontSize' | 'minimap' | 'readOnly' | 'renderWhitespace' | 'scrollBeyondLastLine' | 'tabSize' | 'theme' | 'wordWrap'>;
|
|
3
3
|
/**
|
|
4
4
|
* Monaco editor preferences for elice exercise.
|
|
5
5
|
*/
|
|
@@ -21,7 +21,7 @@ export declare const MONACO_EDITOR_PREFERENCE_OPTIONS_TAB_SIZES: readonly number
|
|
|
21
21
|
/**
|
|
22
22
|
* White space preference.
|
|
23
23
|
*/
|
|
24
|
-
export declare const MONACO_EDITOR_RENDER_WHITESPACE_OPTIONS: readonly ("none" | "
|
|
24
|
+
export declare const MONACO_EDITOR_RENDER_WHITESPACE_OPTIONS: readonly ("none" | "selection" | "boundary" | "trailing" | "all")[];
|
|
25
25
|
/**
|
|
26
26
|
* Font family.
|
|
27
27
|
*/
|