@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
|
@@ -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 {};
|
|
@@ -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
|
|
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
|
|
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`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import {
|
|
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,
|
|
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';
|
package/es/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,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 {
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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/es/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,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
|
|
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';
|
package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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
|
|
5
|
-
import {
|
|
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
|
-
|
|
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;
|
|
@@ -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,
|
|
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
|
-
|
|
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.
|
|
39
|
-
|
|
40
|
-
|
|
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,
|
|
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
|
|
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;
|