@elice/material-exercise 1.240401.0 → 1.240508.0-globalization.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.
- package/cjs/components/locales/en.json.js +7 -0
- package/cjs/components/locales/index.d.ts +3 -0
- package/cjs/components/locales/ko.json.js +7 -0
- package/cjs/components/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/MaterialExercise.d.ts +3 -1
- package/cjs/components/material-exercise/MaterialExercise.js +11 -14
- package/cjs/components/material-exercise/context/ExerciseProviderNoImage.d.ts +2 -1
- package/cjs/components/material-exercise/context/ExerciseProviderNoImage.js +7 -15
- package/cjs/components/material-exercise/context/locales/noImage.en.json.js +2 -2
- package/cjs/components/material-exercise/context/locales/noImage.ko.json.js +2 -2
- package/cjs/components/material-exercise/context/locales/noImage.th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +9 -12
- package/cjs/components/material-exercise/exercise-code-history/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-code-history/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-code-history/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-code-history/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts +3 -5
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +14 -5
- package/cjs/components/material-exercise/exercise-file-editor/locales/en.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-editor/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-editor/locales/ko.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-editor/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.d.ts +3 -2
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +17 -4
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +2 -2
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +5 -15
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-file-tabs/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.d.ts +2 -3
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +8 -10
- package/cjs/components/material-exercise/exercise-file-tree/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tree/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-tree/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-file-tree/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.js +9 -9
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +4 -3
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +13 -13
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +8 -8
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.js +10 -10
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +7 -7
- package/cjs/components/material-exercise/exercise-menu/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-menu/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-menu/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-menu/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-preview/ExercisePreview.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-preview/ExercisePreview.js +8 -8
- package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +4 -4
- package/cjs/components/material-exercise/exercise-preview/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-preview/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-preview/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-preview/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +2 -3
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +14 -15
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +18 -18
- package/cjs/components/material-exercise/exercise-rightpane/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-rightpane/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-rightpane/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-rightpane/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.js +9 -9
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomDetail.js +28 -28
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomList.js +15 -15
- package/cjs/components/material-exercise/exercise-room/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-room/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-room/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-room/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.js +26 -29
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +20 -18
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +10 -10
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +13 -13
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +6 -5
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +27 -30
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +8 -7
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +6 -6
- package/cjs/components/material-exercise/exercise-runner/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-runner/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-runner/locales/th.json.js +7 -0
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.d.ts +2 -1
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +13 -16
- package/cjs/components/material-exercise/exercise-submit-history/locales/en.json.js +2 -2
- package/cjs/components/material-exercise/exercise-submit-history/locales/index.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-submit-history/locales/ko.json.js +2 -2
- package/cjs/components/material-exercise/exercise-submit-history/locales/th.json.js +7 -0
- package/cjs/components/shared/file-tree/FileTree.d.ts +1 -5
- package/cjs/components/shared/file-tree/FileTree.js +11 -12
- package/cjs/components/shared/file-tree/FileTreeConfig.js +1 -2
- package/cjs/components/shared/file-tree/FileTreeList.js +1 -2
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.js +8 -8
- package/cjs/components/shared/file-tree/FileTreeListItemContentMenu.js +24 -24
- package/cjs/components/shared/file-tree/FileTreeToolbar.js +6 -7
- package/cjs/components/shared/file-tree/locales/en.json.js +2 -2
- package/cjs/components/shared/file-tree/locales/index.d.ts +3 -0
- package/cjs/components/shared/file-tree/locales/ko.json.js +2 -2
- package/cjs/components/shared/file-tree/locales/th.json.js +7 -0
- package/cjs/components/shared/file-viewer/FileViewer.d.ts +2 -1
- package/cjs/components/shared/file-viewer/FileViewer.js +8 -16
- package/cjs/components/shared/file-viewer/FileViewerCsv.js +8 -7
- package/cjs/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -1
- package/cjs/components/shared/file-viewer/FileViewerNonViewable.js +11 -18
- package/cjs/components/shared/file-viewer/locales/index.d.ts +6 -0
- package/cjs/components/shared/file-viewer/locales/nonViewable.en.json.js +2 -2
- package/cjs/components/shared/file-viewer/locales/nonViewable.ko.json.js +2 -2
- package/cjs/components/shared/file-viewer/locales/nonViewable.th.json.js +7 -0
- package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -1
- package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +29 -37
- package/cjs/components/shared/monaco-editor/locales/en.json.js +2 -2
- package/cjs/components/shared/monaco-editor/locales/index.d.ts +3 -0
- package/cjs/components/shared/monaco-editor/locales/ko.json.js +2 -2
- package/cjs/components/shared/monaco-editor/locales/th.json.js +7 -0
- package/cjs/components/shared/xterm/Xterm.d.ts +3 -1
- package/cjs/components/shared/xterm/Xterm.js +8 -18
- package/cjs/components/shared/xterm/locales/en.json.js +2 -2
- package/cjs/components/shared/xterm/locales/index.d.ts +3 -0
- package/cjs/components/shared/xterm/locales/ko.json.js +2 -2
- package/cjs/components/shared/xterm/locales/th.json.js +7 -0
- package/es/components/locales/en.json.js +3 -0
- package/es/components/locales/index.d.ts +3 -0
- package/es/components/locales/ko.json.js +3 -0
- package/es/components/locales/th.json.js +3 -0
- package/es/components/material-exercise/MaterialExercise.d.ts +3 -1
- package/es/components/material-exercise/MaterialExercise.js +11 -15
- package/es/components/material-exercise/context/ExerciseProviderNoImage.d.ts +2 -1
- package/es/components/material-exercise/context/ExerciseProviderNoImage.js +9 -17
- package/es/components/material-exercise/context/locales/noImage.en.json.js +2 -2
- package/es/components/material-exercise/context/locales/noImage.ko.json.js +2 -2
- package/es/components/material-exercise/context/locales/noImage.th.json.js +3 -0
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.d.ts +2 -1
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +11 -14
- package/es/components/material-exercise/exercise-code-history/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-code-history/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-code-history/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-code-history/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts +3 -5
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +14 -5
- package/es/components/material-exercise/exercise-file-editor/locales/en.json.js +3 -0
- package/es/components/material-exercise/exercise-file-editor/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-editor/locales/ko.json.js +3 -0
- package/es/components/material-exercise/exercise-file-editor/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.d.ts +3 -2
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +17 -4
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +2 -2
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +3 -13
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.th.json.js +3 -0
- package/es/components/material-exercise/exercise-file-tabs/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.d.ts +2 -3
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +10 -12
- package/es/components/material-exercise/exercise-file-tree/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tree/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-tree/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-file-tree/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +2 -1
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.js +9 -9
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +4 -3
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +12 -12
- package/es/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +2 -2
- package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.js +6 -6
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +6 -6
- package/es/components/material-exercise/exercise-menu/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-menu/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-menu/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-menu/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-preview/ExercisePreview.d.ts +2 -1
- package/es/components/material-exercise/exercise-preview/ExercisePreview.js +9 -9
- package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +2 -2
- package/es/components/material-exercise/exercise-preview/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-preview/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-preview/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-preview/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +2 -3
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +14 -15
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +2 -2
- package/es/components/material-exercise/exercise-rightpane/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-rightpane/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-rightpane/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-rightpane/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoom.d.ts +2 -1
- package/es/components/material-exercise/exercise-room/ExerciseRoom.js +9 -9
- package/es/components/material-exercise/exercise-room/ExerciseRoomDetail.js +4 -4
- package/es/components/material-exercise/exercise-room/ExerciseRoomList.js +2 -2
- package/es/components/material-exercise/exercise-room/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-room/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-room/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-room/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.d.ts +2 -1
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.js +26 -29
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +18 -16
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +2 -2
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +12 -12
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +6 -5
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +26 -29
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +8 -7
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +6 -6
- package/es/components/material-exercise/exercise-runner/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-runner/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-runner/locales/th.json.js +3 -0
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.d.ts +2 -1
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +14 -17
- package/es/components/material-exercise/exercise-submit-history/locales/en.json.js +2 -2
- package/es/components/material-exercise/exercise-submit-history/locales/index.d.ts +3 -0
- package/es/components/material-exercise/exercise-submit-history/locales/ko.json.js +2 -2
- package/es/components/material-exercise/exercise-submit-history/locales/th.json.js +3 -0
- package/es/components/shared/file-tree/FileTree.d.ts +1 -5
- package/es/components/shared/file-tree/FileTree.js +11 -12
- package/es/components/shared/file-tree/FileTreeConfig.js +1 -2
- package/es/components/shared/file-tree/FileTreeList.js +1 -2
- package/es/components/shared/file-tree/FileTreeListItemContentInput.js +2 -2
- package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +22 -22
- package/es/components/shared/file-tree/FileTreeToolbar.js +3 -4
- package/es/components/shared/file-tree/locales/en.json.js +2 -2
- package/es/components/shared/file-tree/locales/index.d.ts +3 -0
- package/es/components/shared/file-tree/locales/ko.json.js +2 -2
- package/es/components/shared/file-tree/locales/th.json.js +3 -0
- package/es/components/shared/file-viewer/FileViewer.d.ts +2 -1
- package/es/components/shared/file-viewer/FileViewer.js +8 -16
- package/es/components/shared/file-viewer/FileViewerCsv.js +8 -7
- package/es/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -1
- package/es/components/shared/file-viewer/FileViewerNonViewable.js +13 -20
- package/es/components/shared/file-viewer/locales/index.d.ts +6 -0
- package/es/components/shared/file-viewer/locales/nonViewable.en.json.js +2 -2
- package/es/components/shared/file-viewer/locales/nonViewable.ko.json.js +2 -2
- package/es/components/shared/file-viewer/locales/nonViewable.th.json.js +3 -0
- package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -1
- package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +30 -38
- package/es/components/shared/monaco-editor/locales/en.json.js +2 -2
- package/es/components/shared/monaco-editor/locales/index.d.ts +3 -0
- package/es/components/shared/monaco-editor/locales/ko.json.js +2 -2
- package/es/components/shared/monaco-editor/locales/th.json.js +3 -0
- package/es/components/shared/xterm/Xterm.d.ts +3 -1
- package/es/components/shared/xterm/Xterm.js +10 -20
- package/es/components/shared/xterm/locales/en.json.js +2 -2
- package/es/components/shared/xterm/locales/index.d.ts +3 -0
- package/es/components/shared/xterm/locales/ko.json.js +2 -2
- package/es/components/shared/xterm/locales/th.json.js +3 -0
- package/package.json +6 -6
- package/cjs/components/material-exercise/MaterialExercise.i18n.d.ts +0 -5
- package/cjs/components/material-exercise/MaterialExercise.i18n.js +0 -13
- package/cjs/components/material-exercise/context/ExerciseIntlProvider.d.ts +0 -12
- package/cjs/components/material-exercise/context/ExerciseIntlProvider.js +0 -44
- package/es/components/material-exercise/MaterialExercise.i18n.d.ts +0 -5
- package/es/components/material-exercise/MaterialExercise.i18n.js +0 -10
- package/es/components/material-exercise/context/ExerciseIntlProvider.d.ts +0 -12
- package/es/components/material-exercise/context/ExerciseIntlProvider.js +0 -41
|
@@ -4,5 +4,7 @@ export interface MaterialExerciseProps extends MaterialExerciseCommonProps {
|
|
|
4
4
|
locale?: string;
|
|
5
5
|
}
|
|
6
6
|
export type MaterialExerciseApis = MaterialExerciseCommonApis;
|
|
7
|
-
declare const _default: React.ForwardRefExoticComponent<Omit<
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<MaterialExerciseProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
|
|
8
|
+
__intl: import("@elice/intl").EliceIntlShape;
|
|
9
|
+
} & React.RefAttributes<MaterialExerciseCommonApis> & import("@elice/material-shared-utils").MaterialCommponentCommonProps, "ref"> & React.RefAttributes<MaterialExerciseCommonApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<MaterialExerciseCommonApis>>;
|
|
8
10
|
export default _default;
|
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var apiClient = require('@elice/api-client');
|
|
8
7
|
var blocks = require('@elice/blocks');
|
|
9
8
|
var icons = require('@elice/icons');
|
|
9
|
+
var intl = require('@elice/intl');
|
|
10
10
|
var materialSharedUtils = require('@elice/material-shared-utils');
|
|
11
11
|
var recoil = require('recoil');
|
|
12
12
|
var stylesheets = require('../../constants/stylesheets.js');
|
|
13
|
+
var en = require('../locales/en.json.js');
|
|
14
|
+
var ko = require('../locales/ko.json.js');
|
|
15
|
+
var th = require('../locales/th.json.js');
|
|
13
16
|
var ExerciseFileTabsFileTreeButton = require('./exercise-file-tabs/ExerciseFileTabsFileTreeButton.js');
|
|
14
17
|
var recoil$1 = require('./context/recoil.js');
|
|
15
18
|
var context = require('./context/context.js');
|
|
@@ -28,7 +31,6 @@ var ExercisePreview = require('./exercise-preview/ExercisePreview.js');
|
|
|
28
31
|
var ExerciseRightpane = require('./exercise-rightpane/ExerciseRightpane.js');
|
|
29
32
|
var ExerciseRunner = require('./exercise-runner/ExerciseRunner.js');
|
|
30
33
|
var MaterialExercise_styled = require('./MaterialExercise.styled.js');
|
|
31
|
-
var MaterialExercise_i18n = require('./MaterialExercise.i18n.js');
|
|
32
34
|
|
|
33
35
|
//
|
|
34
36
|
//
|
|
@@ -37,7 +39,9 @@ var MaterialExercise_i18n = require('./MaterialExercise.i18n.js');
|
|
|
37
39
|
* Material exercise.
|
|
38
40
|
*/
|
|
39
41
|
const MaterialExercise = React.forwardRef((props, ref) => {
|
|
40
|
-
const
|
|
42
|
+
const {
|
|
43
|
+
__intl
|
|
44
|
+
} = props;
|
|
41
45
|
const {
|
|
42
46
|
onReferenceDocsToggle
|
|
43
47
|
} = React.useContext(context.ExerciseContext);
|
|
@@ -92,7 +96,7 @@ const MaterialExercise = React.forwardRef((props, ref) => {
|
|
|
92
96
|
icon: icons.eilClassroom
|
|
93
97
|
}), React.createElement(blocks.Hspace, {
|
|
94
98
|
width: 0.25
|
|
95
|
-
}),
|
|
99
|
+
}), __intl.formatMessage({
|
|
96
100
|
id: 'materialExercise.button.referenceDocs'
|
|
97
101
|
})), React.createElement(blocks.Hspace, {
|
|
98
102
|
width: 0.5
|
|
@@ -169,19 +173,12 @@ const MaterialExercise = React.forwardRef((props, ref) => {
|
|
|
169
173
|
//
|
|
170
174
|
//
|
|
171
175
|
//
|
|
172
|
-
var MaterialExercise$1 = materialSharedUtils.withForwardRefMaterial(React.forwardRef((props, ref) => {
|
|
173
|
-
|
|
174
|
-
locale = 'en'
|
|
175
|
-
} = props;
|
|
176
|
-
return React.createElement(reactIntl.IntlProvider, {
|
|
177
|
-
locale: locale,
|
|
178
|
-
defaultLocale: "en",
|
|
179
|
-
messages: locale in MaterialExercise_i18n ? MaterialExercise_i18n[locale] : MaterialExercise_i18n.en
|
|
180
|
-
}, React.createElement(ExerciseProvider.default, Object.assign({}, props), React.createElement(MaterialExercise, Object.assign({}, props, {
|
|
176
|
+
var MaterialExercise$1 = new intl.IntlComponentBuilder(materialSharedUtils.withForwardRefMaterial(React.forwardRef((props, ref) => {
|
|
177
|
+
return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, props.__intl), React.createElement(ExerciseProvider.default, Object.assign({}, props), React.createElement(MaterialExercise, Object.assign({}, props, {
|
|
181
178
|
ref: ref
|
|
182
179
|
}))));
|
|
183
180
|
}), apiClient.config.init, {
|
|
184
181
|
overrideRecoilScope: true
|
|
185
|
-
});
|
|
182
|
+
})).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
186
183
|
|
|
187
184
|
exports.default = MaterialExercise$1;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { WithIntlComponentBuilderProps } from '@elice/intl';
|
|
2
3
|
export interface ExerciseProviderNoImageProps {
|
|
3
4
|
/** */
|
|
4
5
|
text?: React.ReactChild;
|
|
@@ -11,5 +12,5 @@ export interface ExerciseProviderNoImageProps {
|
|
|
11
12
|
/** */
|
|
12
13
|
locale?: string;
|
|
13
14
|
}
|
|
14
|
-
declare const _default: (
|
|
15
|
+
declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<ExerciseProviderNoImageProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
|
|
15
16
|
export default _default;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var designTokens = require('@elice/design-tokens');
|
|
9
|
-
var
|
|
8
|
+
var intl = require('@elice/intl');
|
|
10
9
|
var styled = require('styled-components');
|
|
11
10
|
var noImage_en = require('./locales/noImage.en.json.js');
|
|
12
11
|
var noImage_ko = require('./locales/noImage.ko.json.js');
|
|
12
|
+
var noImage_th = require('./locales/noImage.th.json.js');
|
|
13
13
|
|
|
14
14
|
const StyledProviderNoImage = styled.div.withConfig({
|
|
15
15
|
componentId: "sc-oaauqc-0"
|
|
@@ -18,9 +18,9 @@ const ExerciseProviderNoImage = ({
|
|
|
18
18
|
text,
|
|
19
19
|
imageSrc = '',
|
|
20
20
|
buttonText,
|
|
21
|
-
onButtonClick
|
|
21
|
+
onButtonClick,
|
|
22
|
+
__intl
|
|
22
23
|
}) => {
|
|
23
|
-
const intl = reactIntl.useIntl();
|
|
24
24
|
/**
|
|
25
25
|
* render action button
|
|
26
26
|
*/
|
|
@@ -30,7 +30,7 @@ const ExerciseProviderNoImage = ({
|
|
|
30
30
|
}
|
|
31
31
|
return React.createElement(blocks.Button, {
|
|
32
32
|
onClick: onButtonClick
|
|
33
|
-
}, buttonText ||
|
|
33
|
+
}, buttonText || __intl.formatMessage({
|
|
34
34
|
id: 'exerciseContext.provider.noImage.button'
|
|
35
35
|
}));
|
|
36
36
|
};
|
|
@@ -49,21 +49,13 @@ const ExerciseProviderNoImage = ({
|
|
|
49
49
|
paddingbottom: "2rem"
|
|
50
50
|
}, React.createElement(blocks.Text, {
|
|
51
51
|
role: "white"
|
|
52
|
-
}, text ||
|
|
52
|
+
}, text || __intl.formatMessage({
|
|
53
53
|
id: 'exerciseContext.provider.noImage.title'
|
|
54
54
|
}))), renderActionButton());
|
|
55
55
|
};
|
|
56
56
|
//
|
|
57
57
|
//
|
|
58
58
|
//
|
|
59
|
-
var MaterialExerciseNoImage = (
|
|
60
|
-
return React.createElement(materialSharedUtils.MaterialIntlProvider, {
|
|
61
|
-
locale: props.locale,
|
|
62
|
-
phrases: {
|
|
63
|
-
en: noImage_en.default,
|
|
64
|
-
ko: noImage_ko.default
|
|
65
|
-
}
|
|
66
|
-
}, React.createElement(ExerciseProviderNoImage, Object.assign({}, props)));
|
|
67
|
-
});
|
|
59
|
+
var MaterialExerciseNoImage = new intl.IntlComponentBuilder(ExerciseProviderNoImage).add('en', noImage_en.default).add('ko', noImage_ko.default).add('th', noImage_th.default).build();
|
|
68
60
|
|
|
69
61
|
exports.default = MaterialExerciseNoImage;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var noImageMessageEn = {"exerciseContext.provider.noImage.button":"Create a new image","exerciseContext.provider.noImage.title":"Exercise image is not ready yet."};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = noImageMessageEn;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var noImageMessageKo = {"exerciseContext.provider.noImage.button":"예제 작성","exerciseContext.provider.noImage.title":"실습 코드가 작성되지 않았습니다."};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = noImageMessageKo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var noImageMessageTh = {"exerciseContext.provider.noImage.button":"ตัวอย่างการเขียน","exerciseContext.provider.noImage.title":"ยังไม่มีโค้ดที่เขียนไว้ในการฝึกฝนครับ."};
|
|
6
|
+
|
|
7
|
+
exports.default = noImageMessageTh;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
|
|
2
3
|
export interface ExerciseCodeHistoryProps {
|
|
3
4
|
onHide?: () => void;
|
|
4
5
|
onLoadVersionButtonClick?: (doc: string) => void;
|
|
5
6
|
}
|
|
6
|
-
declare const _default: React.
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps<ExerciseCodeHistoryProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
|
|
7
8
|
export default _default;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
7
|
+
var intl = require('@elice/intl');
|
|
8
8
|
var dayjs = require('dayjs');
|
|
9
9
|
var recoil = require('recoil');
|
|
10
10
|
var ExerciseVersionList = require('../../shared/exercise-version-list/ExerciseVersionList.js');
|
|
@@ -30,16 +30,16 @@ require('lodash/debounce');
|
|
|
30
30
|
require('ot-text-unicode');
|
|
31
31
|
require('random-words');
|
|
32
32
|
require('unicount');
|
|
33
|
-
var ExerciseIntlProvider = require('../context/ExerciseIntlProvider.js');
|
|
34
33
|
var en = require('./locales/en.json.js');
|
|
35
34
|
var ko = require('./locales/ko.json.js');
|
|
35
|
+
var th = require('./locales/th.json.js');
|
|
36
36
|
var ExerciseCodeHistory_styled = require('./ExerciseCodeHistory.styled.js');
|
|
37
37
|
|
|
38
38
|
const ExerciseCodeHistory = ({
|
|
39
39
|
onHide,
|
|
40
|
-
onLoadVersionButtonClick
|
|
40
|
+
onLoadVersionButtonClick,
|
|
41
|
+
__intl
|
|
41
42
|
}) => {
|
|
42
|
-
const intl = reactIntl.useIntl();
|
|
43
43
|
const {
|
|
44
44
|
exerciseRoomId
|
|
45
45
|
} = React.useContext(context.ExerciseContext);
|
|
@@ -66,7 +66,7 @@ const ExerciseCodeHistory = ({
|
|
|
66
66
|
}, React.createElement(blocks.Text, {
|
|
67
67
|
role: "gray3",
|
|
68
68
|
size: "small"
|
|
69
|
-
},
|
|
69
|
+
}, __intl.formatMessage({
|
|
70
70
|
id: 'exerciseCodeHistory.op.version'
|
|
71
71
|
}, {
|
|
72
72
|
version: op.version,
|
|
@@ -79,7 +79,7 @@ const ExerciseCodeHistory = ({
|
|
|
79
79
|
}, React.createElement(blocks.Text, {
|
|
80
80
|
role: "white",
|
|
81
81
|
size: "small"
|
|
82
|
-
},
|
|
82
|
+
}, __intl.formatMessage({
|
|
83
83
|
id: 'exerciseCodeHistory.button.load.more'
|
|
84
84
|
}))) : null);
|
|
85
85
|
/**
|
|
@@ -130,7 +130,7 @@ const ExerciseCodeHistory = ({
|
|
|
130
130
|
onClick: () => {
|
|
131
131
|
onLoadVersionButtonClick(doc);
|
|
132
132
|
}
|
|
133
|
-
},
|
|
133
|
+
}, __intl.formatMessage({
|
|
134
134
|
id: 'exerciseCodeHistory.button.load.selectedVersions'
|
|
135
135
|
}));
|
|
136
136
|
};
|
|
@@ -138,7 +138,7 @@ const ExerciseCodeHistory = ({
|
|
|
138
138
|
//
|
|
139
139
|
//
|
|
140
140
|
return React.createElement(MaterialModal.default, {
|
|
141
|
-
title:
|
|
141
|
+
title: __intl.formatMessage({
|
|
142
142
|
id: 'exerciseCodeHistory.title'
|
|
143
143
|
}),
|
|
144
144
|
onHide: onHide,
|
|
@@ -148,9 +148,6 @@ const ExerciseCodeHistory = ({
|
|
|
148
148
|
//
|
|
149
149
|
//
|
|
150
150
|
//
|
|
151
|
-
var ExerciseCodeHistory$1 =
|
|
152
|
-
en: en.default,
|
|
153
|
-
ko: ko.default
|
|
154
|
-
});
|
|
151
|
+
var ExerciseCodeHistory$1 = new intl.IntlComponentBuilder(ExerciseCodeHistory).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
|
|
155
152
|
|
|
156
153
|
exports.default = ExerciseCodeHistory$1;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageEn = {"exerciseCodeHistory.button.load.more":"Load more","exerciseCodeHistory.button.load.selectedVersions":"Load selected versions","exerciseCodeHistory.op.version":"Version {version} {datetime}","exerciseCodeHistory.title":"Code revision history"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageEn;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageKo = {"exerciseCodeHistory.button.load.more":"더 불러오기","exerciseCodeHistory.button.load.selectedVersions":"선택 버전 불러오기","exerciseCodeHistory.op.version":"버전 {version} {datetime}","exerciseCodeHistory.title":"코드 수정 이력"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageKo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var messageTh = {"exerciseCodeHistory.button.load.more":"โหลดเพิ่มเติม","exerciseCodeHistory.button.load.selectedVersions":"โหลดเวอร์ชันที่เลือก","exerciseCodeHistory.op.version":"เวอร์ชัน {version} {datetime}","exerciseCodeHistory.title":"ประวัติการแก้ไขโค้ด"};
|
|
6
|
+
|
|
7
|
+
exports.default = messageTh;
|
package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const ExerciseFileReadOnlyBanner: React.FC;
|
|
6
|
-
export default ExerciseFileReadOnlyBanner;
|
|
2
|
+
import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<any>>;
|
|
4
|
+
export default _default;
|
|
@@ -3,15 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var blocks = require('@elice/blocks');
|
|
8
7
|
var designTokens = require('@elice/design-tokens');
|
|
8
|
+
var intl = require('@elice/intl');
|
|
9
9
|
var styled = require('styled-components');
|
|
10
10
|
require('../context/recoil.js');
|
|
11
11
|
var context = require('../context/context.js');
|
|
12
12
|
require('../context/recoilTypes.js');
|
|
13
13
|
require('../context/subjects.js');
|
|
14
14
|
require('../context/ExerciseProvider.js');
|
|
15
|
+
var en = require('./locales/en.json.js');
|
|
16
|
+
var ko = require('./locales/ko.json.js');
|
|
17
|
+
var th = require('./locales/th.json.js');
|
|
15
18
|
|
|
16
19
|
const StyledEditorReadOnlyBanner = styled.div.withConfig({
|
|
17
20
|
componentId: "sc-kh9iw2-0"
|
|
@@ -19,7 +22,9 @@ const StyledEditorReadOnlyBanner = styled.div.withConfig({
|
|
|
19
22
|
/**
|
|
20
23
|
* Banner for readonly exercise file.
|
|
21
24
|
*/
|
|
22
|
-
const ExerciseFileReadOnlyBanner = (
|
|
25
|
+
const ExerciseFileReadOnlyBanner = ({
|
|
26
|
+
__intl
|
|
27
|
+
}) => {
|
|
23
28
|
const {
|
|
24
29
|
readOnlyActiveFile
|
|
25
30
|
} = React.useContext(context.ExerciseContext);
|
|
@@ -29,9 +34,13 @@ const ExerciseFileReadOnlyBanner = () => {
|
|
|
29
34
|
return React.createElement(StyledEditorReadOnlyBanner, null, React.createElement(blocks.Text, {
|
|
30
35
|
size: "tiny",
|
|
31
36
|
role: "gray3"
|
|
32
|
-
},
|
|
33
|
-
id:
|
|
37
|
+
}, __intl.formatMessage({
|
|
38
|
+
id: 'materialExercise.text.readOnlyBanner'
|
|
34
39
|
})));
|
|
35
40
|
};
|
|
41
|
+
//
|
|
42
|
+
//
|
|
43
|
+
//
|
|
44
|
+
var ExerciseFileReadOnlyBanner$1 = new intl.IntlComponentBuilder(ExerciseFileReadOnlyBanner).add('ko', ko.default).add('en', en.default).add('th', th.default).build();
|
|
36
45
|
|
|
37
|
-
exports.default = ExerciseFileReadOnlyBanner;
|
|
46
|
+
exports.default = ExerciseFileReadOnlyBanner$1;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<any>>;
|
|
4
|
+
export default _default;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
+
var intl = require('@elice/intl');
|
|
6
7
|
var recoil = require('recoil');
|
|
7
8
|
var styled = require('styled-components');
|
|
8
9
|
require('../../shared/exercise-shimmer/ExerciseFileShimmer.js');
|
|
@@ -15,12 +16,23 @@ var context = require('../context/context.js');
|
|
|
15
16
|
require('../context/recoilTypes.js');
|
|
16
17
|
require('../context/subjects.js');
|
|
17
18
|
require('../context/ExerciseProvider.js');
|
|
19
|
+
var fileTreeButton_en = require('./locales/fileTreeButton.en.json.js');
|
|
20
|
+
var fileTreeButton_ko = require('./locales/fileTreeButton.ko.json.js');
|
|
21
|
+
var fileTreeButton_th = require('./locales/fileTreeButton.th.json.js');
|
|
18
22
|
|
|
23
|
+
//
|
|
24
|
+
//
|
|
25
|
+
//
|
|
19
26
|
const AsyncFileTabs = React.lazy(() => Promise.resolve().then(function () { return require('../../shared/file-tabs/FileTabs.js'); }));
|
|
20
27
|
const StyledFileTabsWrapper = styled.div.withConfig({
|
|
21
28
|
componentId: "sc-11fdoyl-0"
|
|
22
29
|
})(["flex:0 0 3rem;"]);
|
|
23
|
-
|
|
30
|
+
//
|
|
31
|
+
//
|
|
32
|
+
//
|
|
33
|
+
const ExerciseFileTabs = ({
|
|
34
|
+
__intl
|
|
35
|
+
}) => {
|
|
24
36
|
const {
|
|
25
37
|
exerciseRoomId,
|
|
26
38
|
materialExerciseId
|
|
@@ -52,7 +64,7 @@ const ExerciseFileTabs = () => {
|
|
|
52
64
|
}
|
|
53
65
|
setActiveFilename(path);
|
|
54
66
|
};
|
|
55
|
-
return React.createElement(StyledFileTabsWrapper, null, React.createElement(React.Suspense, {
|
|
67
|
+
return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(StyledFileTabsWrapper, null, React.createElement(React.Suspense, {
|
|
56
68
|
fallback: React.createElement(ExerciseFileTabsShimmer.default, null)
|
|
57
69
|
}, React.createElement(AsyncFileTabs, {
|
|
58
70
|
openedTabs: openedTabs,
|
|
@@ -60,7 +72,8 @@ const ExerciseFileTabs = () => {
|
|
|
60
72
|
onCloseTab: handleCloseTab,
|
|
61
73
|
onSelectTab: handleActivePathChange,
|
|
62
74
|
onTabOrderChange: handleTabOrderChange
|
|
63
|
-
})));
|
|
75
|
+
}))));
|
|
64
76
|
};
|
|
77
|
+
var ExerciseFileTabs$1 = new intl.IntlComponentBuilder(ExerciseFileTabs).add('en', fileTreeButton_en.default).add('ko', fileTreeButton_ko.default).add('th', fileTreeButton_th.default).build();
|
|
65
78
|
|
|
66
|
-
exports.default = ExerciseFileTabs;
|
|
79
|
+
exports.default = ExerciseFileTabs$1;
|
package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const ExerciseFileTabsFileTreeButton: React.ForwardRefExoticComponent<React.RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export default ExerciseFileTabsFileTreeButton;
|
package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var reactIntl = require('react-intl');
|
|
7
6
|
var reactUse = require('react-use');
|
|
8
7
|
var blocks = require('@elice/blocks');
|
|
9
8
|
var designTokens = require('@elice/design-tokens');
|
|
10
9
|
var icons = require('@elice/icons');
|
|
10
|
+
var intl = require('@elice/intl');
|
|
11
11
|
var types = require('@elice/types');
|
|
12
12
|
var utils = require('@elice/utils');
|
|
13
13
|
var recoil = require('recoil');
|
|
@@ -17,16 +17,13 @@ var context = require('../context/context.js');
|
|
|
17
17
|
require('../context/recoilTypes.js');
|
|
18
18
|
require('../context/subjects.js');
|
|
19
19
|
require('../context/ExerciseProvider.js');
|
|
20
|
-
var ExerciseIntlProvider = require('../context/ExerciseIntlProvider.js');
|
|
21
|
-
var fileTreeButton_en = require('./locales/fileTreeButton.en.json.js');
|
|
22
|
-
var fileTreeButton_ko = require('./locales/fileTreeButton.ko.json.js');
|
|
23
20
|
|
|
24
21
|
const ICON_BUTTON_SIZE = '2.25rem';
|
|
25
22
|
const StyledFileTreeButton = styled(blocks.IconButton).withConfig({
|
|
26
23
|
componentId: "sc-ohtsjn-0"
|
|
27
24
|
})(["width:", " !important;height:", " !important;border-right:1px solid ", " !important;background-color:", " !important;&:hover{background-color:", " !important;}"], ICON_BUTTON_SIZE, ICON_BUTTON_SIZE, designTokens.base.color.navy7, props => props.active ? designTokens.base.color.navy8 : designTokens.base.color.navy8, designTokens.base.color.navy9);
|
|
28
25
|
const ExerciseFileTabsFileTreeButton = React.forwardRef((_, ref) => {
|
|
29
|
-
const intl =
|
|
26
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
30
27
|
const {
|
|
31
28
|
materialExerciseId
|
|
32
29
|
} = React.useContext(context.ExerciseContext);
|
|
@@ -53,9 +50,9 @@ const ExerciseFileTabsFileTreeButton = React.forwardRef((_, ref) => {
|
|
|
53
50
|
//
|
|
54
51
|
const [el] = reactUse.useHover(isHovering => {
|
|
55
52
|
return React.createElement("div", null, React.createElement(blocks.Tooltip, {
|
|
56
|
-
title: exerciseFileTreeOpened ? intl.formatMessage({
|
|
53
|
+
title: exerciseFileTreeOpened ? intl$1.formatMessage({
|
|
57
54
|
id: 'exerciseFileTab.fileTreeButton.tooltip.close'
|
|
58
|
-
}) : intl.formatMessage({
|
|
55
|
+
}) : intl$1.formatMessage({
|
|
59
56
|
id: 'exerciseFileTab.fileTreeButton.tooltip.open'
|
|
60
57
|
}),
|
|
61
58
|
placement: "bottom-start"
|
|
@@ -74,12 +71,5 @@ const ExerciseFileTabsFileTreeButton = React.forwardRef((_, ref) => {
|
|
|
74
71
|
});
|
|
75
72
|
return (exercise === null || exercise === void 0 ? void 0 : exercise.uiConfig.editorFileTreeDefaultStatus) === types.enums.ExerciseUiConfigEditorFileTreeDefaultStatus.Hide ? null : el;
|
|
76
73
|
});
|
|
77
|
-
//
|
|
78
|
-
//
|
|
79
|
-
//
|
|
80
|
-
var ExerciseFileTabsFileTreeButton$1 = ExerciseIntlProvider.withForwardRefExerciseIntlProvider(ExerciseFileTabsFileTreeButton, {
|
|
81
|
-
en: fileTreeButton_en.default,
|
|
82
|
-
ko: fileTreeButton_ko.default
|
|
83
|
-
});
|
|
84
74
|
|
|
85
|
-
exports.default = ExerciseFileTabsFileTreeButton
|
|
75
|
+
exports.default = ExerciseFileTabsFileTreeButton;
|
package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageEn = {"exerciseFileTab.fileTreeButton.tooltip.close":"Close Filetree","exerciseFileTab.fileTreeButton.tooltip.open":"Open Filetree"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageEn;
|
package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var messageKo = {"exerciseFileTab.fileTreeButton.tooltip.close":"파일 트리 닫기","exerciseFileTab.fileTreeButton.tooltip.open":"파일 트리 열기"};
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = messageKo;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}>;
|
|
2
|
+
import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<any>>;
|
|
5
4
|
export default _default;
|