@elice/material-exercise 1.230726.0 → 1.230817.1

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 (139) 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/MaterialExerciseMobile.d.ts +1 -1
  4. package/cjs/components/material-exercise/context/ExerciseIntlProvider.d.ts +1 -1
  5. package/cjs/components/material-exercise/context/ExerciseProvider.d.ts +1 -1
  6. package/cjs/components/material-exercise/context/ExerciseProviderNoImage.d.ts +1 -1
  7. package/cjs/components/material-exercise/context/context.d.ts +2 -2
  8. package/cjs/components/material-exercise/context/recoilTypes.d.ts +14 -14
  9. package/cjs/components/material-exercise/context/types.d.ts +12 -12
  10. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +1 -1
  11. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +2 -2
  12. package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +2 -2
  13. package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +2 -2
  14. package/cjs/components/material-exercise/exercise-multilang-dropdown/types.d.ts +2 -2
  15. package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts +1 -1
  16. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.d.ts +1 -1
  17. package/cjs/components/shared/exercise-menu-button/ExerciseMenuButton.d.ts +2 -2
  18. package/cjs/components/shared/file-icon/FileIcon.d.ts +1 -1
  19. package/cjs/components/shared/file-tabs/FileTab.d.ts +1 -1
  20. package/cjs/components/shared/file-tabs/FileTab.styled.d.ts +1 -1
  21. package/cjs/components/shared/file-tabs/FileTabs.js +6 -4
  22. package/cjs/components/shared/file-tree/FileTreeList.js +2 -2
  23. package/cjs/components/shared/file-tree/FileTreeListItems.js +2 -2
  24. package/cjs/components/shared/file-tree/context/FileTreeContext.d.ts +6 -6
  25. package/cjs/components/shared/file-tree/interface/index.d.ts +18 -18
  26. package/cjs/components/shared/file-viewer/FileViewer.d.ts +2 -2
  27. package/cjs/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -2
  28. package/cjs/components/shared/monaco-editor/MonacoEditor.d.ts +11 -11
  29. package/cjs/components/shared/monaco-editor/MonacoEditor.js +1 -1
  30. package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -2
  31. package/cjs/components/shared/monaco-editor/constants/monaco/preferences.d.ts +2 -2
  32. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.d.ts +4 -4
  33. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.d.ts +3 -3
  34. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.d.ts +3 -3
  35. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.d.ts +1 -1
  36. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.d.ts +1 -1
  37. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +3 -3
  38. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoTheme.d.ts +1 -1
  39. package/cjs/components/shared/monaco-editor/editor-languages/css/formatter.js +1 -1
  40. package/cjs/components/shared/monaco-editor/editor-languages/html/formatter.js +1 -1
  41. package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.d.ts +1 -1
  42. package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/express.d.ts +1 -1
  43. package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/propTypes.d.ts +1 -1
  44. package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/react.d.ts +1 -1
  45. package/cjs/components/shared/monaco-editor/editor-languages/typescript/formatter.js +12 -8
  46. package/cjs/components/shared/monaco-editor/hooks/useEditorOptions.d.ts +2 -2
  47. package/cjs/components/shared/monaco-editor/utils/prettier/index.d.ts +1 -1
  48. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/OnDisposed.d.ts +1 -1
  49. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelection.js +10 -10
  50. package/cjs/components/shared/monaco-editor/vendors/vscode-emmet-helper/emmetHelper.d.ts +5 -5
  51. package/cjs/components/shared/no-vnc/NoVnc.d.ts +1 -1
  52. package/cjs/constants/shortcutKeyMap.d.ts +1 -1
  53. package/cjs/hooks/useArduino.d.ts +1 -1
  54. package/cjs/hooks/useExericseShortcut.d.ts +2 -2
  55. package/cjs/hooks/useMaterialExerciseFileUrl.d.ts +1 -1
  56. package/cjs/hooks/useRunnerRoomWebSocket.d.ts +1 -1
  57. package/cjs/hooks/useStdioWebSocket.d.ts +3 -3
  58. package/cjs/hooks/useUsercodeEditWebSocket.d.ts +5 -5
  59. package/cjs/hooks/useUsercodeEditWebSocket.js +39 -33
  60. package/cjs/typings/arduino.d.ts +6 -6
  61. package/cjs/utils/exerciseFile.d.ts +1 -1
  62. package/cjs/utils/runner.d.ts +3 -3
  63. package/cjs/utils/runner.js +7 -7
  64. package/es/_virtual/_rollupPluginBabelHelpers.js +6 -11
  65. package/es/components/material-exercise/MaterialExercise.d.ts +2 -2
  66. package/es/components/material-exercise/MaterialExercise.js +1 -1
  67. package/es/components/material-exercise/MaterialExerciseMobile.d.ts +1 -1
  68. package/es/components/material-exercise/context/ExerciseIntlProvider.d.ts +1 -1
  69. package/es/components/material-exercise/context/ExerciseProvider.d.ts +1 -1
  70. package/es/components/material-exercise/context/ExerciseProviderNoImage.d.ts +1 -1
  71. package/es/components/material-exercise/context/context.d.ts +2 -2
  72. package/es/components/material-exercise/context/recoil.js +1 -1
  73. package/es/components/material-exercise/context/recoilTypes.d.ts +14 -14
  74. package/es/components/material-exercise/context/types.d.ts +12 -12
  75. package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +1 -1
  76. package/es/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +1 -1
  77. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +1 -1
  78. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +2 -2
  79. package/es/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +2 -2
  80. package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +1 -1
  81. package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +2 -2
  82. package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +2 -2
  83. package/es/components/material-exercise/exercise-multilang-dropdown/types.d.ts +2 -2
  84. package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts +1 -1
  85. package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +1 -1
  86. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +1 -1
  87. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.d.ts +1 -1
  88. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +2 -2
  89. package/es/components/shared/exercise-menu-button/ExerciseMenuButton.d.ts +2 -2
  90. package/es/components/shared/file-icon/FileIcon.d.ts +1 -1
  91. package/es/components/shared/file-tabs/FileTab.d.ts +1 -1
  92. package/es/components/shared/file-tabs/FileTab.js +1 -1
  93. package/es/components/shared/file-tabs/FileTab.styled.d.ts +1 -1
  94. package/es/components/shared/file-tabs/FileTabs.js +6 -4
  95. package/es/components/shared/file-tree/FileTreeList.js +2 -2
  96. package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +1 -1
  97. package/es/components/shared/file-tree/FileTreeListItems.js +2 -2
  98. package/es/components/shared/file-tree/context/FileTreeContext.d.ts +6 -6
  99. package/es/components/shared/file-tree/interface/index.d.ts +18 -18
  100. package/es/components/shared/file-viewer/FileViewer.d.ts +2 -2
  101. package/es/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -2
  102. package/es/components/shared/monaco-editor/MonacoEditor.d.ts +11 -11
  103. package/es/components/shared/monaco-editor/MonacoEditor.js +1 -1
  104. package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -2
  105. package/es/components/shared/monaco-editor/constants/monaco/preferences.d.ts +2 -2
  106. package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.d.ts +4 -4
  107. package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.d.ts +3 -3
  108. package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.d.ts +3 -3
  109. package/es/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.d.ts +1 -1
  110. package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.d.ts +1 -1
  111. package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +3 -3
  112. package/es/components/shared/monaco-editor/editor-hooks/useMonacoTheme.d.ts +1 -1
  113. package/es/components/shared/monaco-editor/editor-languages/css/formatter.js +1 -1
  114. package/es/components/shared/monaco-editor/editor-languages/html/formatter.js +1 -1
  115. package/es/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.d.ts +1 -1
  116. package/es/components/shared/monaco-editor/editor-languages/typescript/dts/express.d.ts +1 -1
  117. package/es/components/shared/monaco-editor/editor-languages/typescript/dts/propTypes.d.ts +1 -1
  118. package/es/components/shared/monaco-editor/editor-languages/typescript/dts/react.d.ts +1 -1
  119. package/es/components/shared/monaco-editor/editor-languages/typescript/formatter.js +12 -8
  120. package/es/components/shared/monaco-editor/hooks/useEditorOptions.d.ts +2 -2
  121. package/es/components/shared/monaco-editor/utils/prettier/index.d.ts +1 -1
  122. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/OnDisposed.d.ts +1 -1
  123. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelection.js +10 -10
  124. package/es/components/shared/monaco-editor/vendors/vscode-emmet-helper/emmetHelper.d.ts +5 -5
  125. package/es/components/shared/no-vnc/NoVnc.d.ts +1 -1
  126. package/es/constants/shortcutKeyMap.d.ts +1 -1
  127. package/es/hooks/useArduino.d.ts +1 -1
  128. package/es/hooks/useExerciseFile.js +1 -1
  129. package/es/hooks/useExericseShortcut.d.ts +2 -2
  130. package/es/hooks/useMaterialExerciseFileUrl.d.ts +1 -1
  131. package/es/hooks/useRunnerRoomWebSocket.d.ts +1 -1
  132. package/es/hooks/useStdioWebSocket.d.ts +3 -3
  133. package/es/hooks/useUsercodeEditWebSocket.d.ts +5 -5
  134. package/es/hooks/useUsercodeEditWebSocket.js +39 -33
  135. package/es/typings/arduino.d.ts +6 -6
  136. package/es/utils/exerciseFile.d.ts +1 -1
  137. package/es/utils/runner.d.ts +3 -3
  138. package/es/utils/runner.js +7 -7
  139. package/package.json +12 -16
@@ -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 {};
@@ -1,5 +1,5 @@
1
1
  import { defineProperty as _defineProperty, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime, slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import { postGlobalAccountPreferenceEdit, postOrgMaterialExerciseExerciseRoomUserFileAdd, getOrgMaterialExerciseGet, getOrgLecturePageResolve, getOrgMaterialExerciseExerciseRoomGet, getOrgUserGet, getGlobalAccountPreferenceGet, getOrgMaterialExerciseExerciseImageExerciseFileGet, getOrgMaterialExerciseExerciseRoomUserFileGet, getOrgLectureGet } from '@elice/api-client';
2
+ import { postGlobalAccountPreferenceEdit, postOrgMaterialExerciseExerciseRoomUserFileAdd, getOrgLectureGet, getOrgMaterialExerciseGet, getOrgLecturePageResolve, getOrgMaterialExerciseExerciseRoomGet, getOrgUserGet, getGlobalAccountPreferenceGet, getOrgMaterialExerciseExerciseImageExerciseFileGet, getOrgMaterialExerciseExerciseRoomUserFileGet } from '@elice/api-client';
3
3
  import { enums } from '@elice/types';
4
4
  import { EliceWebSocket } from '@elice/websocket';
5
5
  import { camelizeKeys } from 'humps';
@@ -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,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { Text, Button } from '@elice/blocks';
3
+ import { Button, Text } from '@elice/blocks';
4
4
  import dayjs from 'dayjs';
5
5
  import { useRecoilValue } from 'recoil';
6
6
  import ExerciseVersionList from '../../shared/exercise-version-list/ExerciseVersionList.js';
@@ -1,4 +1,4 @@
1
- import { slicedToArray as _slicedToArray, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime, createForOfIteratorHelper as _createForOfIteratorHelper, typeof as _typeof } from '../../../_virtual/_rollupPluginBabelHelpers.js';
1
+ import { slicedToArray as _slicedToArray, createForOfIteratorHelper as _createForOfIteratorHelper, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime, typeof as _typeof } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React from 'react';
3
3
  import { getOrgMaterialExerciseExerciseImageExerciseFileGet } from '@elice/api-client';
4
4
  import { Flex } from '@elice/blocks';
@@ -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,7 +1,7 @@
1
1
  import { slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React from 'react';
3
3
  import { Popover, Text, Flex, IconButton } from '@elice/blocks';
4
- import { eilMathsignMultiplyBasic, eilMaterialTypeArduino } from '@elice/icons';
4
+ import { eilMaterialTypeArduino, eilMathsignMultiplyBasic } from '@elice/icons';
5
5
  import { useRecoilValue, useRecoilState } from 'recoil';
6
6
  import ExerciseMenuButton from '../../shared/exercise-menu-button/ExerciseMenuButton.js';
7
7
  import { ARDUINO_BAUD_RATES } from '../../../constants/arduino.js';
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { useIntl, FormattedMessage } from 'react-intl';
4
4
  import { Popover, Flex, Text, Hspace, NotificationCount, IconButton, Icon, Vspace } from '@elice/blocks';
5
5
  import { base } from '@elice/design-tokens';
6
- import { eilMathsignMultiplyBasic, eilAttachment, eilFolder, eilDownload } from '@elice/icons';
6
+ import { eilAttachment, eilMathsignMultiplyBasic, eilDownload, eilFolder } from '@elice/icons';
7
7
  import { useRecoilValue } from 'recoil';
8
8
  import ExerciseMenuButton from '../../shared/exercise-menu-button/ExerciseMenuButton.js';
9
9
  import { exerciseRunnerStdioFilesState } from '../context/recoil.js';
@@ -11,7 +11,7 @@ import '../context/context.js';
11
11
  import '../context/recoilTypes.js';
12
12
  import '../context/subjects.js';
13
13
  import '../context/ExerciseProvider.js';
14
- import { StyledFilePopoverContent, StyledFilePopoverHeader, StyledFilePopoverBody, StyledMenuButtonFileCount, StyledFilePopoverBodyList, StyledFilePopoverBodyListItem, StyledFilePopoverBodyListItemContentFile, StyledFilePopoverBodyListItemDownloadButton, StyledFilePopoverBodyListItemContentImageWrap, StyledFilePopoverBodyListItemContentImage } from './ExerciseMenuStdioFileBrowser.styled.js';
14
+ import { StyledFilePopoverContent, StyledMenuButtonFileCount, StyledFilePopoverHeader, StyledFilePopoverBody, StyledFilePopoverBodyList, StyledFilePopoverBodyListItem, StyledFilePopoverBodyListItemContentImageWrap, StyledFilePopoverBodyListItemContentImage, StyledFilePopoverBodyListItemDownloadButton, StyledFilePopoverBodyListItemContentFile } from './ExerciseMenuStdioFileBrowser.styled.js';
15
15
 
16
16
  var IMAGE_NEW_WIN_IFRAME_STYLE = 'border:0; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%;';
17
17
  var ExerciseMenuStdioFileBrowser = function ExerciseMenuStdioFileBrowser() {
@@ -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,7 +1,7 @@
1
1
  import { slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React from 'react';
3
3
  import { FormattedMessage } from 'react-intl';
4
- import { IconButton, Flex, Text, Hr } from '@elice/blocks';
4
+ import { IconButton, Hr, Flex, Text } from '@elice/blocks';
5
5
  import { base } from '@elice/design-tokens';
6
6
  import { eilMathsignMultiplyBasic } from '@elice/icons';
7
7
  import { useRecoilState } from 'recoil';
@@ -1,7 +1,7 @@
1
1
  import { slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React from 'react';
3
3
  import { useIntl, FormattedMessage } from 'react-intl';
4
- import { Modal, Text, Vspace, Flex, Button, Icon, Hspace } from '@elice/blocks';
4
+ import { Modal, Vspace, Text, Flex, Button, Icon, Hspace } from '@elice/blocks';
5
5
  import { eisWindows, eisMac, eilArrowRightwardsBasic } from '@elice/icons';
6
6
  import FileSaver from 'file-saver';
7
7
  import { useRecoilState } from 'recoil';
@@ -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,8 +1,8 @@
1
1
  import { slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React from 'react';
3
3
  import { FormattedMessage } from 'react-intl';
4
- import { Button, Tooltip, Flex, BadgeNext, Text, Hspace, IconButton, Icon } from '@elice/blocks';
5
- import { eilMathsignMultiplyBasic, eilArrowRightwardsBasic } from '@elice/icons';
4
+ import { Button, Tooltip, Icon, Flex, BadgeNext, Text, Hspace, IconButton } from '@elice/blocks';
5
+ import { eilArrowRightwardsBasic, eilMathsignMultiplyBasic } from '@elice/icons';
6
6
  import { useRecoilValue } from 'recoil';
7
7
  import styled from 'styled-components';
8
8
  import { exerciseAibotInfoEnableState } from '../context/recoil.js';
@@ -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;
@@ -2,7 +2,7 @@ import { __rest } from 'tslib';
2
2
  import React from 'react';
3
3
  import { eilMathsignMultiplyBasic } from '@elice/icons';
4
4
  import FileIcon from '../file-icon/FileIcon.js';
5
- import { StyledTab, StyledTabContent, StyledTabLabel, StyledTabLabelFilename, StyledTabCloseButton, StyledTabActiveBorder, StyledTabLabelDirname } from './FileTab.styled.js';
5
+ import { StyledTab, StyledTabContent, StyledTabActiveBorder, StyledTabLabel, StyledTabCloseButton, StyledTabLabelFilename, StyledTabLabelDirname } from './FileTab.styled.js';
6
6
 
7
7
  var EMPTY_CHUNKS = [];
8
8
  var FileTab = function FileTab(_a) {
@@ -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>;
@@ -35,10 +35,12 @@ var FileTabs = function FileTabs(_ref) {
35
35
  /**
36
36
  * Throttled `setCurHoveredTabIndex`.
37
37
  */
38
- var setThrottledCurHoveredTabIndex = React.useCallback(throttle(setCurHoveredTabIndex, 100, {
39
- leading: true,
40
- trailing: false
41
- }), []);
38
+ var setThrottledCurHoveredTabIndex = React.useMemo(function () {
39
+ return throttle(setCurHoveredTabIndex, 100, {
40
+ leading: true,
41
+ trailing: false
42
+ });
43
+ }, []);
42
44
  /**
43
45
  * Handle tab drag start.
44
46
  */
@@ -94,13 +94,13 @@ var FileTreeList = forwardRef(function (_ref, ref) {
94
94
  }
95
95
  if (dragFileTreeNode) {
96
96
  if (dragFileTreeNode.isDirectory) {
97
- onDirectoryMove && onDirectoryMove({
97
+ onDirectoryMove && void onDirectoryMove({
98
98
  currentFilename: dragFileTreeNode.path,
99
99
  newPath: '',
100
100
  newName: dragFileTreeNode.title
101
101
  });
102
102
  } else {
103
- onFileMove && onFileMove({
103
+ onFileMove && void onFileMove({
104
104
  currentFilename: dragFileTreeNode.path,
105
105
  newPath: '',
106
106
  newName: dragFileTreeNode.title
@@ -1,7 +1,7 @@
1
1
  import { slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React from 'react';
3
3
  import { useIntl, FormattedMessage } from 'react-intl';
4
- import { Menu, List, Dialog } from '@elice/blocks';
4
+ import { Menu, Dialog, List } from '@elice/blocks';
5
5
  import { useFileTreeState, useFileTreeDispatch } from './context/FileTreeContext.js';
6
6
 
7
7
  var FileTreeListItemContentMenu = function FileTreeListItemContentMenu(_ref) {
@@ -140,13 +140,13 @@ var FileTreeListItems = function FileTreeListItems(_ref) {
140
140
  }
141
141
  if (dragFileTreeNode && dropzonePath !== null) {
142
142
  if (dragFileTreeNode.isDirectory) {
143
- onDirectoryMove && onDirectoryMove({
143
+ onDirectoryMove && void onDirectoryMove({
144
144
  currentFilename: dragFileTreeNode.path,
145
145
  newPath: dropzonePath,
146
146
  newName: dragFileTreeNode.title
147
147
  });
148
148
  } else {
149
- onFileMove && onFileMove({
149
+ onFileMove && void onFileMove({
150
150
  currentFilename: dragFileTreeNode.path,
151
151
  newPath: dropzonePath,
152
152
  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;