@elice/material-exercise 1.230712.0-matquiz.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.
Files changed (140) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +6 -11
  2. package/cjs/components/material-exercise/MaterialExercise.d.ts +2 -2
  3. package/cjs/components/material-exercise/MaterialExercise.js +3 -5
  4. package/cjs/components/material-exercise/MaterialExerciseMobile.d.ts +1 -1
  5. package/cjs/components/material-exercise/context/ExerciseIntlProvider.d.ts +1 -1
  6. package/cjs/components/material-exercise/context/ExerciseProvider.d.ts +1 -1
  7. package/cjs/components/material-exercise/context/ExerciseProviderNoImage.d.ts +1 -1
  8. package/cjs/components/material-exercise/context/context.d.ts +2 -2
  9. package/cjs/components/material-exercise/context/recoilTypes.d.ts +14 -14
  10. package/cjs/components/material-exercise/context/types.d.ts +12 -12
  11. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +1 -1
  12. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +2 -2
  13. package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +2 -2
  14. package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +2 -2
  15. package/cjs/components/material-exercise/exercise-multilang-dropdown/types.d.ts +2 -2
  16. package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts +1 -1
  17. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.d.ts +1 -1
  18. package/cjs/components/shared/exercise-menu-button/ExerciseMenuButton.d.ts +2 -2
  19. package/cjs/components/shared/file-icon/FileIcon.d.ts +1 -1
  20. package/cjs/components/shared/file-tabs/FileTab.d.ts +1 -1
  21. package/cjs/components/shared/file-tabs/FileTab.styled.d.ts +1 -1
  22. package/cjs/components/shared/file-tabs/FileTabs.js +6 -4
  23. package/cjs/components/shared/file-tree/FileTreeList.js +2 -2
  24. package/cjs/components/shared/file-tree/FileTreeListItems.js +2 -2
  25. package/cjs/components/shared/file-tree/context/FileTreeContext.d.ts +6 -6
  26. package/cjs/components/shared/file-tree/interface/index.d.ts +18 -18
  27. package/cjs/components/shared/file-viewer/FileViewer.d.ts +2 -2
  28. package/cjs/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -2
  29. package/cjs/components/shared/monaco-editor/MonacoEditor.d.ts +11 -11
  30. package/cjs/components/shared/monaco-editor/MonacoEditor.js +1 -1
  31. package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -2
  32. package/cjs/components/shared/monaco-editor/constants/monaco/preferences.d.ts +2 -2
  33. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.d.ts +4 -4
  34. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.d.ts +3 -3
  35. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.d.ts +3 -3
  36. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.d.ts +1 -1
  37. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.d.ts +1 -1
  38. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +3 -3
  39. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoTheme.d.ts +1 -1
  40. package/cjs/components/shared/monaco-editor/editor-languages/css/formatter.js +1 -1
  41. package/cjs/components/shared/monaco-editor/editor-languages/html/formatter.js +1 -1
  42. package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.d.ts +1 -1
  43. package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/express.d.ts +1 -1
  44. package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/propTypes.d.ts +1 -1
  45. package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/react.d.ts +1 -1
  46. package/cjs/components/shared/monaco-editor/editor-languages/typescript/formatter.js +12 -8
  47. package/cjs/components/shared/monaco-editor/hooks/useEditorOptions.d.ts +2 -2
  48. package/cjs/components/shared/monaco-editor/utils/prettier/index.d.ts +1 -1
  49. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/OnDisposed.d.ts +1 -1
  50. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelection.js +10 -10
  51. package/cjs/components/shared/monaco-editor/vendors/vscode-emmet-helper/emmetHelper.d.ts +5 -5
  52. package/cjs/components/shared/no-vnc/NoVnc.d.ts +1 -1
  53. package/cjs/constants/shortcutKeyMap.d.ts +1 -1
  54. package/cjs/hooks/useArduino.d.ts +1 -1
  55. package/cjs/hooks/useExericseShortcut.d.ts +2 -2
  56. package/cjs/hooks/useMaterialExerciseFileUrl.d.ts +1 -1
  57. package/cjs/hooks/useRunnerRoomWebSocket.d.ts +1 -1
  58. package/cjs/hooks/useStdioWebSocket.d.ts +3 -3
  59. package/cjs/hooks/useUsercodeEditWebSocket.d.ts +5 -5
  60. package/cjs/hooks/useUsercodeEditWebSocket.js +39 -33
  61. package/cjs/typings/arduino.d.ts +6 -6
  62. package/cjs/utils/exerciseFile.d.ts +1 -1
  63. package/cjs/utils/runner.d.ts +3 -3
  64. package/cjs/utils/runner.js +7 -7
  65. package/es/_virtual/_rollupPluginBabelHelpers.js +6 -11
  66. package/es/components/material-exercise/MaterialExercise.d.ts +2 -2
  67. package/es/components/material-exercise/MaterialExercise.js +4 -6
  68. package/es/components/material-exercise/MaterialExerciseMobile.d.ts +1 -1
  69. package/es/components/material-exercise/context/ExerciseIntlProvider.d.ts +1 -1
  70. package/es/components/material-exercise/context/ExerciseProvider.d.ts +1 -1
  71. package/es/components/material-exercise/context/ExerciseProviderNoImage.d.ts +1 -1
  72. package/es/components/material-exercise/context/context.d.ts +2 -2
  73. package/es/components/material-exercise/context/recoil.js +1 -1
  74. package/es/components/material-exercise/context/recoilTypes.d.ts +14 -14
  75. package/es/components/material-exercise/context/types.d.ts +12 -12
  76. package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +1 -1
  77. package/es/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +1 -1
  78. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +1 -1
  79. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +2 -2
  80. package/es/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +2 -2
  81. package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +1 -1
  82. package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +2 -2
  83. package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +2 -2
  84. package/es/components/material-exercise/exercise-multilang-dropdown/types.d.ts +2 -2
  85. package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts +1 -1
  86. package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +1 -1
  87. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +1 -1
  88. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.d.ts +1 -1
  89. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +2 -2
  90. package/es/components/shared/exercise-menu-button/ExerciseMenuButton.d.ts +2 -2
  91. package/es/components/shared/file-icon/FileIcon.d.ts +1 -1
  92. package/es/components/shared/file-tabs/FileTab.d.ts +1 -1
  93. package/es/components/shared/file-tabs/FileTab.js +1 -1
  94. package/es/components/shared/file-tabs/FileTab.styled.d.ts +1 -1
  95. package/es/components/shared/file-tabs/FileTabs.js +6 -4
  96. package/es/components/shared/file-tree/FileTreeList.js +2 -2
  97. package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +1 -1
  98. package/es/components/shared/file-tree/FileTreeListItems.js +2 -2
  99. package/es/components/shared/file-tree/context/FileTreeContext.d.ts +6 -6
  100. package/es/components/shared/file-tree/interface/index.d.ts +18 -18
  101. package/es/components/shared/file-viewer/FileViewer.d.ts +2 -2
  102. package/es/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -2
  103. package/es/components/shared/monaco-editor/MonacoEditor.d.ts +11 -11
  104. package/es/components/shared/monaco-editor/MonacoEditor.js +1 -1
  105. package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -2
  106. package/es/components/shared/monaco-editor/constants/monaco/preferences.d.ts +2 -2
  107. package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.d.ts +4 -4
  108. package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.d.ts +3 -3
  109. package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.d.ts +3 -3
  110. package/es/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.d.ts +1 -1
  111. package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.d.ts +1 -1
  112. package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +3 -3
  113. package/es/components/shared/monaco-editor/editor-hooks/useMonacoTheme.d.ts +1 -1
  114. package/es/components/shared/monaco-editor/editor-languages/css/formatter.js +1 -1
  115. package/es/components/shared/monaco-editor/editor-languages/html/formatter.js +1 -1
  116. package/es/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.d.ts +1 -1
  117. package/es/components/shared/monaco-editor/editor-languages/typescript/dts/express.d.ts +1 -1
  118. package/es/components/shared/monaco-editor/editor-languages/typescript/dts/propTypes.d.ts +1 -1
  119. package/es/components/shared/monaco-editor/editor-languages/typescript/dts/react.d.ts +1 -1
  120. package/es/components/shared/monaco-editor/editor-languages/typescript/formatter.js +12 -8
  121. package/es/components/shared/monaco-editor/hooks/useEditorOptions.d.ts +2 -2
  122. package/es/components/shared/monaco-editor/utils/prettier/index.d.ts +1 -1
  123. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/OnDisposed.d.ts +1 -1
  124. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelection.js +10 -10
  125. package/es/components/shared/monaco-editor/vendors/vscode-emmet-helper/emmetHelper.d.ts +5 -5
  126. package/es/components/shared/no-vnc/NoVnc.d.ts +1 -1
  127. package/es/constants/shortcutKeyMap.d.ts +1 -1
  128. package/es/hooks/useArduino.d.ts +1 -1
  129. package/es/hooks/useExerciseFile.js +1 -1
  130. package/es/hooks/useExericseShortcut.d.ts +2 -2
  131. package/es/hooks/useMaterialExerciseFileUrl.d.ts +1 -1
  132. package/es/hooks/useRunnerRoomWebSocket.d.ts +1 -1
  133. package/es/hooks/useStdioWebSocket.d.ts +3 -3
  134. package/es/hooks/useUsercodeEditWebSocket.d.ts +5 -5
  135. package/es/hooks/useUsercodeEditWebSocket.js +39 -33
  136. package/es/typings/arduino.d.ts +6 -6
  137. package/es/utils/exerciseFile.d.ts +1 -1
  138. package/es/utils/runner.d.ts +3 -3
  139. package/es/utils/runner.js +7 -7
  140. 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 doneResult();
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
- return {
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 declare type MaterialExerciseApis = MaterialExerciseCommonApis;
7
- declare const _default: React.ForwardRefExoticComponent<Pick<MaterialExerciseProps & React.RefAttributes<MaterialExerciseCommonApis> & import("@elice/material-shared-utils").MaterialCommponentCommonProps, "key" | keyof MaterialExerciseProps> & React.RefAttributes<MaterialExerciseCommonApis>>;
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;
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
5
  var React = require('react');
7
6
  var reactIntl = require('react-intl');
8
7
  var apiClient = require('@elice/api-client');
@@ -176,10 +175,9 @@ var MaterialExercise = React.forwardRef(function (props, ref) {
176
175
  //
177
176
  //
178
177
  //
179
- var MaterialExercise$1 = materialSharedUtils.withForwardRefMaterial(React.forwardRef(function (_a, ref) {
180
- var _a$locale = _a.locale,
181
- locale = _a$locale === void 0 ? 'en' : _a$locale,
182
- props = tslib.__rest(_a, ["locale"]);
178
+ var MaterialExercise$1 = materialSharedUtils.withForwardRefMaterial(React.forwardRef(function (props, ref) {
179
+ var _props$locale = props.locale,
180
+ locale = _props$locale === void 0 ? 'en' : _props$locale;
183
181
  return React__default["default"].createElement(reactIntl.IntlProvider, {
184
182
  locale: locale,
185
183
  defaultLocale: "en",
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { MaterialExerciseCommonProps } from './context';
3
- declare type PickedMaterialExerciseCommonProps = Pick<MaterialExerciseCommonProps, 'materialExerciseId' | 'exerciseRoomId' | 'readOnlyEditor' | 'onExerciseRoomIdChange' | 'onDefaultExerciseRoomIdSet' | 'onError'>;
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 { MaterialIntlProviderPhrases } from '@elice/material-shared-utils';
3
- declare type AnyObject = Record<string, any>;
3
+ type AnyObject = Record<string, any>;
4
4
  /**
5
5
  *
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { ExerciseProviderDedicatedProps, MaterialExerciseCommonProps } from './types';
3
- export declare type ExerciseProviderProps = MaterialExerciseCommonProps & Omit<ExerciseProviderDedicatedProps, 'readOnlyActiveFile'>;
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
- declare type MaterialExerciseCommonForContextProps = SetRequired<MaterialExerciseCommonProps, 'exerciseRoomId'>;
5
- export declare type ExerciseContextValue = MaterialExerciseCommonForContextProps & ExerciseProviderDedicatedProps;
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 declare type AtomLectureState = GetOrgLectureGetResponses['lecture'] | null;
9
+ export type AtomLectureState = GetOrgLectureGetResponses['lecture'] | null;
10
10
  /**
11
11
  * Material exercise.
12
12
  */
13
- export declare type AtomExerciseState = (GetOrgMaterialExerciseGetResponses['materialExercise'] & {
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 declare type AtomExerciseRoomState = GetOrgMaterialExerciseExerciseRoomGetResponses['exerciseRoom'] | null;
22
+ export type AtomExerciseRoomState = GetOrgMaterialExerciseExerciseRoomGetResponses['exerciseRoom'] | null;
23
23
  /**
24
24
  * User.
25
25
  */
26
- export declare type AtomUserState = GetOrgUserGetResponses['user'] | null;
26
+ export type AtomUserState = GetOrgUserGetResponses['user'] | null;
27
27
  /**
28
28
  * Editor preference.
29
29
  */
30
- export declare type AtomEditorPreferenceState = Required<MonacoEditorPreference>;
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 declare type AtomRunnerRunTypeState = enums.ExerciseRunType | null;
49
+ export type AtomRunnerRunTypeState = enums.ExerciseRunType | null;
50
50
  /**
51
51
  *
52
52
  */
53
- export declare type AtomRunnerRoomConnectionInfoState = RunnerRoomConnectionInfo | null;
53
+ export type AtomRunnerRoomConnectionInfoState = RunnerRoomConnectionInfo | null;
54
54
  /**
55
55
  *
56
56
  */
57
- export declare type AtomRunnerStdioFilesState = MaterialExerciseStdioFile[];
57
+ export type AtomRunnerStdioFilesState = MaterialExerciseStdioFile[];
58
58
  /**
59
59
  *
60
60
  */
61
- export declare type AtomVisibilityState = null | 'environment' | 'preference';
61
+ export type AtomVisibilityState = null | 'environment' | 'preference';
62
62
  /**
63
63
  *
64
64
  */
65
- export declare type AtomWebSocketStateKey = 'runnerRoom' | 'stdio' | 'usercodeEdit';
65
+ export type AtomWebSocketStateKey = 'runnerRoom' | 'stdio' | 'usercodeEdit';
66
66
  /**
67
67
  *
68
68
  */
69
- export declare type AtomWebSocketStates = Record<AtomWebSocketStateKey, WebSocket['readyState']>;
69
+ export type AtomWebSocketStates = Record<AtomWebSocketStateKey, WebSocket['readyState']>;
70
70
  /**
71
71
  *
72
72
  */
73
- export declare type AtomMultilangEnvironmentJson = MultilangEnvironmentJson | null;
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 declare type AtomMultilangEnvironmentState = MultilangLanguagesJson | undefined | null;
79
+ export type AtomMultilangEnvironmentState = MultilangLanguagesJson | undefined | null;
80
80
  /**
81
81
  * Arduino preference.
82
82
  */
83
- export declare type AtomArduinoPreferenceState = Required<{
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 declare type MaterialExerciseCommonComponent<EP extends Record<string, unknown> = {}, // additional props
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 declare type MECC<EP extends Record<string, unknown> = {}, // additional props
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 declare type MaterialExerciseCommonApiSendTextToTerminal = (text: string) => void;
26
+ export type MaterialExerciseCommonApiSendTextToTerminal = (text: string) => void;
27
27
  /**
28
28
  * Get monaco editor apis.
29
29
  */
30
- export declare type MaterialExerciseCommonApiGetMonacoEditorApis = () => MonacoEditorApis | null;
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 declare type MaterialExerciseCommonPropExerciseImageEmptyOptions = ExerciseProviderNoImageProps;
71
+ export type MaterialExerciseCommonPropExerciseImageEmptyOptions = ExerciseProviderNoImageProps;
72
72
  /**
73
73
  * On code help button click.
74
74
  */
75
- export declare type MaterialExerciseCommonPropOnCodeHelpRequest = (params: {
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 declare type MaterialExerciseCommonPropOnMultiLangLanguageChange = (language: string) => void;
86
+ export type MaterialExerciseCommonPropOnMultiLangLanguageChange = (language: string) => void;
87
87
  /**
88
88
  * On default exercise room ID set.
89
89
  */
90
- export declare type MaterialExerciseCommonPropOnDefaultExerciseRoomIdSet = (exerciseRoomId: number) => void;
90
+ export type MaterialExerciseCommonPropOnDefaultExerciseRoomIdSet = (exerciseRoomId: number) => void;
91
91
  /**
92
92
  * On exercise room change.
93
93
  */
94
- export declare type MaterialExerciseCommonPropOnExerciseRoomIdChange = (exerciseRoomId: number) => void;
94
+ export type MaterialExerciseCommonPropOnExerciseRoomIdChange = (exerciseRoomId: number) => void;
95
95
  /**
96
96
  * On running finish callback.
97
97
  */
98
- export declare type MaterialExerciseCommonPropOnRunningDone = (res: GetOrgMaterialExerciseExerciseRunningListResponses['exerciseRunnings'][number]) => void;
98
+ export type MaterialExerciseCommonPropOnRunningDone = (res: GetOrgMaterialExerciseExerciseRunningListResponses['exerciseRunnings'][number]) => void;
99
99
  /**
100
100
  * On submit callback.
101
101
  */
102
- export declare type MaterialExerciseCommonPropOnSubmit = (res: Pick<PostOrgMaterialExerciseExerciseRunningSubmitResponses, 'exerciseRunningId' | 'runType'>) => void;
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 declare type MaterialExerciseCommonPropOnError = (error: any) => void;
106
+ export type MaterialExerciseCommonPropOnError = (error: any) => void;
107
107
  /**
108
108
  * [Internal]
109
109
  * Dediacted internal props for `ExerciseProvider`.
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<React.RefAttributes<HTMLButtonElement>, "key"> & React.RefAttributes<HTMLButtonElement>>;
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
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
- /// <reference types="react" />
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
- /// <reference types="react" />
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 declare type MultilangLanguage = string | 'c' | 'cpp' | 'java' | 'python3' | 'javascript' | 'rust' | 'go' | 'ruby' | 'swift' | 'kotlin' | 'csharp' | 'fsharp' | 'scala' | 'lua' | 'php';
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 declare type MultilangLanguagesJson = Record<MultilangLanguage, MultilangLanguagesJsonLangMeta>;
33
+ export type MultilangLanguagesJson = Record<MultilangLanguage, MultilangLanguagesJsonLangMeta>;
34
34
  /**
35
35
  * Parsed `.environment.json`.
36
36
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { ExerciseMenuButtonProps } from "../../shared/exercise-menu-button";
3
- declare type ExercisePreviewDisplayModeButtonProps = Omit<ExerciseMenuButtonProps, 'icon' | 'onClick'>;
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
- declare type OmittedButtonProps = Omit<ButtonProps, 'size' | 'role' | 'icon' | 'iconAlign'>;
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
- declare type PickedIconButtonProps = Pick<IconButtonProps, 'icon' | 'disabled' | 'loading' | 'onClick' | 'style'>;
4
- declare type PickedTooltipProps = Pick<TooltipProps, 'title' | 'placement'>;
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
- declare type PickedSafeImageProps = Pick<SafeImageProps, 'className' | 'width' | 'height' | 'style'>;
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
- declare type PickedHTMLDivAttributesProps = Pick<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onDrag' | 'onDragEnter' | 'onDragOver' | 'onDragExit' | 'onDragLeave' | 'onDragStart' | 'onDragEnd' | 'onDrop'>;
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
- declare type StyledTabContentProps = Pick<FileTabProps, 'active' | 'hovered'>;
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"].useCallback(throttle__default["default"](setCurHoveredTabIndex, 100, {
48
- leading: true,
49
- trailing: false
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 declare type FileTreeTheme = 'dark' | 'white';
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 declare type Mode = 'default' | 'checkbox';
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
- declare type Action = {
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
- declare type Dispatch = (action: Action) => void;
66
- declare type FileTreeProviderProps = {
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 declare type OnFileAddParams = {
1
+ export type OnFileAddParams = {
2
2
  path: string;
3
3
  userFile?: File;
4
4
  emptyFileWithName?: string;
5
5
  overwrite?: boolean;
6
6
  };
7
- export declare type OnFileAdd = (params: OnFileAddParams) => Promise<any>;
8
- export declare type OnDirectoryAddParams = {
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 declare type OnDirectoryAdd = (params: OnDirectoryAddParams) => Promise<any>;
14
- export declare type OnHiddenSetParams = {
13
+ export type OnDirectoryAdd = (params: OnDirectoryAddParams) => Promise<any>;
14
+ export type OnHiddenSetParams = {
15
15
  path: string;
16
16
  isHidden: boolean;
17
17
  };
18
- export declare type OnHiddenSet = (params: OnHiddenSetParams) => void;
19
- export declare type OnReadOnlySetParams = {
18
+ export type OnHiddenSet = (params: OnHiddenSetParams) => void;
19
+ export type OnReadOnlySetParams = {
20
20
  path: string;
21
21
  isReadOnly: boolean;
22
22
  };
23
- export declare type OnReadOnlySet = (params: OnReadOnlySetParams) => void;
24
- export declare type OnFileDelete = (path: string) => Promise<any>;
25
- export declare type OnDirectoryDelete = (path: string) => Promise<any>;
26
- export declare type OnFileMoveParams = {
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 declare type OnFileMove = (params: OnFileMoveParams) => Promise<any>;
32
- export declare type OnDirectoryMoveParams = {
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 declare type OnDirectoryMove = (params: OnDirectoryMoveParams) => Promise<any>;
38
- export declare type OnInitialOpenFileSetParams = {
37
+ export type OnDirectoryMove = (params: OnDirectoryMoveParams) => Promise<any>;
38
+ export type OnInitialOpenFileSetParams = {
39
39
  path: string;
40
40
  isInitialOpen: boolean;
41
41
  };
42
- export declare type OnInitialOpenFileSet = (params: OnInitialOpenFileSetParams) => void;
43
- export declare type OnFilesUploadParams = {
42
+ export type OnInitialOpenFileSet = (params: OnInitialOpenFileSetParams) => void;
43
+ export type OnFilesUploadParams = {
44
44
  files: FileList;
45
45
  path: string;
46
46
  };
47
- export declare type OnFilesUpload = (params: OnFilesUploadParams) => void;
47
+ export type OnFilesUpload = (params: OnFilesUploadParams) => void;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
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
- /// <reference types="react" />
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
- declare type MonacoEditorApiHasHistory = () => boolean;
6
+ type MonacoEditorApiHasHistory = () => boolean;
7
7
  /** Get current monaco editor model. */
8
- declare type MonacoEditorApiGetMonacoModel = () => monaco.editor.ITextModel | null;
8
+ type MonacoEditorApiGetMonacoModel = () => monaco.editor.ITextModel | null;
9
9
  /** Clear editor undo/redo history. */
10
- declare type MonacoEditorApiClearHistory = () => void;
10
+ type MonacoEditorApiClearHistory = () => void;
11
11
  /** Get current value of editor. */
12
- declare type MonacoEditorApiGetValue = () => string;
12
+ type MonacoEditorApiGetValue = () => string;
13
13
  /** Get value in range of editor. */
14
- declare type MonacoEditorApiGetValueInRange = (from: number, to: number) => string;
14
+ type MonacoEditorApiGetValueInRange = (from: number, to: number) => string;
15
15
  /** Set (overwrite) value to editor. */
16
- declare type MonacoEditorApiSetValue = (value: string) => void;
16
+ type MonacoEditorApiSetValue = (value: string) => void;
17
17
  /** Insert value at specific position. */
18
- declare type MonacoEditorApiInsertValue = (offset: number, value: string) => void;
18
+ type MonacoEditorApiInsertValue = (offset: number, value: string) => void;
19
19
  /** Remove value at specific range. */
20
- declare type MonacoEditorApiRemoveValue = (from: number, to: number) => void;
20
+ type MonacoEditorApiRemoveValue = (from: number, to: number) => void;
21
21
  /** Get offset of current cursor position. */
22
- declare type MonacoEditorApiGetPositionOffset = () => number;
22
+ type MonacoEditorApiGetPositionOffset = () => number;
23
23
  /** Set selection of editor with specific range. */
24
- declare type MonacoEditorApiSetSelection = (from: number, to: number) => void;
24
+ type MonacoEditorApiSetSelection = (from: number, to: number) => void;
25
25
  /** Scroll editor to specific `scrollTop`. */
26
- declare type MonacoEditorApiScrollTo = (scrollTop: number) => void;
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
- /// <reference types="react" />
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;