@elice/material-exercise 1.260305.0 → 1.260430.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/components/material-exercise/MaterialExercise.js +113 -17
- package/cjs/components/material-exercise/context/ExerciseProvider.d.ts +3 -1
- package/cjs/components/material-exercise/context/index.js +0 -7
- package/cjs/components/material-exercise/context/recoil.d.ts +0 -44
- package/cjs/components/material-exercise/context/recoil.js +0 -108
- package/cjs/components/material-exercise/context/recoilTypes.d.ts +0 -7
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +52 -7
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +1 -1
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.js +1 -18
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.js +2 -4
- package/cjs/components/material-exercise/exercise-menu/locales/en.json.js +1 -1
- package/cjs/components/material-exercise/exercise-menu/locales/ko.json.js +1 -1
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.js +27 -57
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerController.js +34 -7
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.d.ts +1 -1
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +13 -219
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.d.ts +2 -2
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionCancel.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionCancel.js +44 -0
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionGrade.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionGrade.js +58 -0
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionRun.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionRun.js +44 -0
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionSyncRequest.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionSyncRequest.js +44 -0
- package/cjs/components/material-exercise/exercise-runner/action/index.d.ts +5 -0
- package/cjs/components/material-exercise/exercise-runner/action/index.js +15 -0
- package/cjs/components/material-exercise/exercise-runner/action/useControllerActionCancel.d.ts +14 -0
- package/cjs/components/material-exercise/exercise-runner/action/useControllerActionCancel.js +52 -0
- package/cjs/components/material-exercise/exercise-runner/action/useControllerActionGrade.d.ts +16 -0
- package/cjs/components/material-exercise/exercise-runner/action/useControllerActionGrade.js +74 -0
- package/cjs/components/material-exercise/exercise-runner/action/useControllerActionRun.d.ts +14 -0
- package/cjs/components/material-exercise/exercise-runner/action/useControllerActionRun.js +65 -0
- package/cjs/components/material-exercise/exercise-runner/action/useControllerActionSyncRequest.d.ts +15 -0
- package/cjs/components/material-exercise/exercise-runner/action/useControllerActionSyncRequest.js +68 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialog.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialog.js +163 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogNativeMock.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogNativeMock.js +188 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogSteps.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogSteps.js +128 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionCompile.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionCompile.js +78 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionUpload.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionUpload.js +98 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerButtonGroup.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerButtonGroup.js +24 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerStatusMessage.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerStatusMessage.js +201 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoErrorDialog.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoErrorDialog.js +125 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialog.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialog.js +179 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogButton.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogButton.js +29 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogChecklist.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogChecklist.js +94 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoProvider.d.ts +16 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoProvider.js +105 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoProviderApiBinder.d.ts +12 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoProviderApiBinder.js +94 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoProviderFlashWriter.d.ts +7 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoProviderFlashWriter.js +95 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoProviderSessionWriter.d.ts +7 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoProviderSessionWriter.js +70 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/_context.d.ts +35 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/_context.js +18 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/index.d.ts +6 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/index.js +13 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/useArduinoRunIntent.d.ts +9 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/useArduinoRunIntent.js +38 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/useArduinoTerminalWriter.d.ts +10 -0
- package/cjs/components/material-exercise/exercise-runner/arduino/useArduinoTerminalWriter.js +33 -0
- package/cjs/components/material-exercise/exercise-runner/locales/en.json.js +1 -1
- package/cjs/components/material-exercise/exercise-runner/locales/ja.json.js +1 -1
- package/cjs/components/material-exercise/exercise-runner/locales/ko.json.js +1 -1
- package/cjs/components/material-exercise/exercise-runner/locales/th.json.js +1 -1
- package/cjs/components/shared/exercise-version-list/ExerciseVersionList.js +18 -2
- package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.d.ts +1 -0
- package/cjs/components/shared/file-tabs/FileTab.js +70 -8
- package/cjs/components/shared/file-tabs/FileTabs.js +24 -3
- package/cjs/components/shared/file-tree/FileTreeListItemContent.js +103 -14
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.js +24 -3
- package/cjs/components/shared/file-tree/FileTreeListItems.js +28 -3
- package/cjs/components/shared/file-tree/file-tree-toolbar/FileTreeToolbar.js +7 -2
- package/cjs/components/shared/material-modal/MaterialModal.d.ts +1 -0
- package/cjs/components/shared/material-modal/MaterialModal.js +34 -6
- package/cjs/components/shared/monaco-editor/utils/prettier/config.d.ts +1 -1
- package/cjs/components/shared/monaco-editor/utils/prettier/config.js +1 -1
- package/cjs/hooks/index.d.ts +0 -1
- package/cjs/hooks/index.js +0 -2
- package/es/components/material-exercise/MaterialExercise.js +97 -2
- package/es/components/material-exercise/context/ExerciseProvider.d.ts +3 -1
- package/es/components/material-exercise/context/index.js +1 -1
- package/es/components/material-exercise/context/recoil.d.ts +0 -44
- package/es/components/material-exercise/context/recoil.js +1 -102
- package/es/components/material-exercise/context/recoilTypes.d.ts +0 -7
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +46 -2
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +1 -1
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.js +2 -18
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.js +3 -3
- package/es/components/material-exercise/exercise-menu/locales/en.json.js +1 -1
- package/es/components/material-exercise/exercise-menu/locales/ko.json.js +1 -1
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.js +28 -58
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerController.js +34 -7
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.d.ts +1 -1
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +13 -214
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.d.ts +2 -2
- package/es/components/material-exercise/exercise-runner/action/ControllerActionCancel.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/action/ControllerActionCancel.js +40 -0
- package/es/components/material-exercise/exercise-runner/action/ControllerActionGrade.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/action/ControllerActionGrade.js +54 -0
- package/es/components/material-exercise/exercise-runner/action/ControllerActionRun.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/action/ControllerActionRun.js +40 -0
- package/es/components/material-exercise/exercise-runner/action/ControllerActionSyncRequest.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/action/ControllerActionSyncRequest.js +40 -0
- package/es/components/material-exercise/exercise-runner/action/index.d.ts +5 -0
- package/es/components/material-exercise/exercise-runner/action/index.js +5 -0
- package/es/components/material-exercise/exercise-runner/action/useControllerActionCancel.d.ts +14 -0
- package/es/components/material-exercise/exercise-runner/action/useControllerActionCancel.js +46 -0
- package/es/components/material-exercise/exercise-runner/action/useControllerActionGrade.d.ts +16 -0
- package/es/components/material-exercise/exercise-runner/action/useControllerActionGrade.js +68 -0
- package/es/components/material-exercise/exercise-runner/action/useControllerActionRun.d.ts +14 -0
- package/es/components/material-exercise/exercise-runner/action/useControllerActionRun.js +59 -0
- package/es/components/material-exercise/exercise-runner/action/useControllerActionSyncRequest.d.ts +15 -0
- package/es/components/material-exercise/exercise-runner/action/useControllerActionSyncRequest.js +62 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialog.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialog.js +148 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogNativeMock.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogNativeMock.js +177 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogSteps.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionGuideDialogSteps.js +118 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionCompile.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionCompile.js +70 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionUpload.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionUpload.js +90 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerButtonGroup.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerButtonGroup.js +20 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerStatusMessage.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerStatusMessage.js +197 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoErrorDialog.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoErrorDialog.js +112 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialog.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialog.js +161 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogButton.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogButton.js +25 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogChecklist.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogChecklist.js +84 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoProvider.d.ts +16 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoProvider.js +97 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoProviderApiBinder.d.ts +12 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoProviderApiBinder.js +86 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoProviderFlashWriter.d.ts +7 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoProviderFlashWriter.js +87 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoProviderSessionWriter.d.ts +7 -0
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoProviderSessionWriter.js +62 -0
- package/es/components/material-exercise/exercise-runner/arduino/_context.d.ts +35 -0
- package/es/components/material-exercise/exercise-runner/arduino/_context.js +15 -0
- package/es/components/material-exercise/exercise-runner/arduino/index.d.ts +6 -0
- package/es/components/material-exercise/exercise-runner/arduino/index.js +4 -0
- package/es/components/material-exercise/exercise-runner/arduino/useArduinoRunIntent.d.ts +9 -0
- package/es/components/material-exercise/exercise-runner/arduino/useArduinoRunIntent.js +32 -0
- package/es/components/material-exercise/exercise-runner/arduino/useArduinoTerminalWriter.d.ts +10 -0
- package/es/components/material-exercise/exercise-runner/arduino/useArduinoTerminalWriter.js +27 -0
- package/es/components/material-exercise/exercise-runner/locales/en.json.js +1 -1
- package/es/components/material-exercise/exercise-runner/locales/ja.json.js +1 -1
- package/es/components/material-exercise/exercise-runner/locales/ko.json.js +1 -1
- package/es/components/material-exercise/exercise-runner/locales/th.json.js +1 -1
- package/es/components/shared/exercise-version-list/ExerciseVersionList.js +13 -1
- package/es/components/shared/exercise-version-list/ExerciseVersionListItem.d.ts +1 -0
- package/es/components/shared/file-tabs/FileTab.js +62 -1
- package/es/components/shared/file-tabs/FileTabs.js +21 -1
- package/es/components/shared/file-tree/FileTreeListItemContent.js +90 -2
- package/es/components/shared/file-tree/FileTreeListItemContentInput.js +21 -1
- package/es/components/shared/file-tree/FileTreeListItems.js +22 -1
- package/es/components/shared/file-tree/file-tree-toolbar/FileTreeToolbar.js +5 -1
- package/es/components/shared/material-modal/MaterialModal.d.ts +1 -0
- package/es/components/shared/material-modal/MaterialModal.js +26 -2
- package/es/components/shared/monaco-editor/utils/prettier/config.d.ts +1 -1
- package/es/components/shared/monaco-editor/utils/prettier/config.js +1 -1
- package/es/hooks/index.d.ts +0 -1
- package/es/hooks/index.js +0 -1
- package/package.json +34 -21
- package/cjs/components/material-exercise/MaterialExercise.styled.d.ts +0 -66
- package/cjs/components/material-exercise/MaterialExercise.styled.js +0 -119
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.d.ts +0 -24
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.js +0 -62
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.d.ts +0 -3
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +0 -33
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.d.ts +0 -3
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +0 -178
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.d.ts +0 -3
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +0 -169
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.d.ts +0 -3
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +0 -120
- package/cjs/components/shared/exercise-version-list/ExerciseVersionList.styled.d.ts +0 -5
- package/cjs/components/shared/exercise-version-list/ExerciseVersionList.styled.js +0 -22
- package/cjs/components/shared/file-tabs/FileTab.styled.d.ts +0 -33
- package/cjs/components/shared/file-tabs/FileTab.styled.js +0 -77
- package/cjs/components/shared/file-tabs/FileTabs.styled.d.ts +0 -12
- package/cjs/components/shared/file-tabs/FileTabs.styled.js +0 -31
- package/cjs/components/shared/file-tree/FileTreeListItemContent.styled.d.ts +0 -62
- package/cjs/components/shared/file-tree/FileTreeListItemContent.styled.js +0 -108
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.styled.d.ts +0 -7
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.styled.js +0 -31
- package/cjs/components/shared/file-tree/FileTreeListItems.styled.d.ts +0 -8
- package/cjs/components/shared/file-tree/FileTreeListItems.styled.js +0 -32
- package/cjs/components/shared/file-tree/FileTreeToolbar.styled.d.ts +0 -4
- package/cjs/components/shared/file-tree/FileTreeToolbar.styled.js +0 -14
- package/cjs/components/shared/material-modal/MaterialModal.styled.d.ts +0 -20
- package/cjs/components/shared/material-modal/MaterialModal.styled.js +0 -39
- package/cjs/constants/arduino.d.ts +0 -35
- package/cjs/constants/arduino.js +0 -73
- package/cjs/hooks/useArduino.d.ts +0 -14
- package/cjs/hooks/useArduino.js +0 -589
- package/cjs/typings/arduino.d.ts +0 -77
- package/cjs/utils/arduino.d.ts +0 -43
- package/cjs/utils/arduino.js +0 -82
- package/es/components/material-exercise/MaterialExercise.styled.d.ts +0 -66
- package/es/components/material-exercise/MaterialExercise.styled.js +0 -100
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.d.ts +0 -24
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.js +0 -49
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.d.ts +0 -3
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +0 -29
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.d.ts +0 -3
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +0 -170
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.d.ts +0 -3
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +0 -161
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.d.ts +0 -3
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +0 -112
- package/es/components/shared/exercise-version-list/ExerciseVersionList.styled.d.ts +0 -5
- package/es/components/shared/exercise-version-list/ExerciseVersionList.styled.js +0 -16
- package/es/components/shared/file-tabs/FileTab.styled.d.ts +0 -33
- package/es/components/shared/file-tabs/FileTab.styled.js +0 -65
- package/es/components/shared/file-tabs/FileTabs.styled.d.ts +0 -12
- package/es/components/shared/file-tabs/FileTabs.styled.js +0 -24
- package/es/components/shared/file-tree/FileTreeListItemContent.styled.d.ts +0 -62
- package/es/components/shared/file-tree/FileTreeListItemContent.styled.js +0 -94
- package/es/components/shared/file-tree/FileTreeListItemContentInput.styled.d.ts +0 -7
- package/es/components/shared/file-tree/FileTreeListItemContentInput.styled.js +0 -24
- package/es/components/shared/file-tree/FileTreeListItems.styled.d.ts +0 -8
- package/es/components/shared/file-tree/FileTreeListItems.styled.js +0 -25
- package/es/components/shared/file-tree/FileTreeToolbar.styled.d.ts +0 -4
- package/es/components/shared/file-tree/FileTreeToolbar.styled.js +0 -8
- package/es/components/shared/material-modal/MaterialModal.styled.d.ts +0 -20
- package/es/components/shared/material-modal/MaterialModal.styled.js +0 -29
- package/es/constants/arduino.d.ts +0 -35
- package/es/constants/arduino.js +0 -62
- package/es/hooks/useArduino.d.ts +0 -14
- package/es/hooks/useArduino.js +0 -583
- package/es/typings/arduino.d.ts +0 -77
- package/es/utils/arduino.d.ts +0 -43
- package/es/utils/arduino.js +0 -75
package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { Modal, Vspace, Text, Flex, Button, Icon, Hspace } from '@elice/blocks';
|
|
5
|
-
import { eisWindows, eisMac, eilArrowRightwardsBasic } from '@elice/icons';
|
|
6
|
-
import { useRawEliceIntl } from '@elice/intl';
|
|
7
|
-
import { useRecoilState } from 'recoil';
|
|
8
|
-
import { exerciseArduinoAgentModalState } from '../context/recoil.js';
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
var ELICE_MATERIAL_EXERCISE_ARDUINO_AGENT_MODAL_KEY = 'elice-material-exercise-arduino-agent-modal-closed';
|
|
14
|
-
var ELICE_MATERIAL_EXERCISE_ARDUINO_AGENT_MODAL_VALUE = 'true';
|
|
15
|
-
var ARDUINO_AGENT_MANUAL_URL = 'https://eli.so/arduino-faq';
|
|
16
|
-
var ARDUINO_AGENT_MAC_DOWNLOAD_META = Object.freeze({
|
|
17
|
-
mac: {
|
|
18
|
-
filename: 'EliceArdunioAgent-mac.pkg',
|
|
19
|
-
url: 'https://eli.so/arduino-agent-mac'
|
|
20
|
-
},
|
|
21
|
-
win: {
|
|
22
|
-
filename: 'EliceArdunioAgent-win.exe',
|
|
23
|
-
url: 'https://eli.so/arduino-agent-win'
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
//
|
|
27
|
-
//
|
|
28
|
-
//
|
|
29
|
-
var ExerciseRunnerControllerArduinoAgentModal = function ExerciseRunnerControllerArduinoAgentModal() {
|
|
30
|
-
var intl = useRawEliceIntl();
|
|
31
|
-
var _useRecoilState = useRecoilState(exerciseArduinoAgentModalState),
|
|
32
|
-
_useRecoilState2 = _slicedToArray(_useRecoilState, 2),
|
|
33
|
-
open = _useRecoilState2[0],
|
|
34
|
-
setOpen = _useRecoilState2[1];
|
|
35
|
-
var downloadAgent = function downloadAgent(os) {
|
|
36
|
-
var a = document.createElement('a');
|
|
37
|
-
a.href = ARDUINO_AGENT_MAC_DOWNLOAD_META[os].url;
|
|
38
|
-
a.download = ARDUINO_AGENT_MAC_DOWNLOAD_META[os].filename;
|
|
39
|
-
a.click();
|
|
40
|
-
};
|
|
41
|
-
var handleClose = function handleClose() {
|
|
42
|
-
setOpen(false);
|
|
43
|
-
localStorage.setItem(ELICE_MATERIAL_EXERCISE_ARDUINO_AGENT_MODAL_KEY, ELICE_MATERIAL_EXERCISE_ARDUINO_AGENT_MODAL_VALUE);
|
|
44
|
-
};
|
|
45
|
-
React.useEffect(function () {
|
|
46
|
-
var isConfirmed = localStorage.getItem(ELICE_MATERIAL_EXERCISE_ARDUINO_AGENT_MODAL_KEY) === ELICE_MATERIAL_EXERCISE_ARDUINO_AGENT_MODAL_VALUE;
|
|
47
|
-
if (!isConfirmed) {
|
|
48
|
-
setOpen(true);
|
|
49
|
-
}
|
|
50
|
-
}, [setOpen]);
|
|
51
|
-
var renderAgentInstallInstruction = function renderAgentInstallInstruction() {
|
|
52
|
-
return jsxs(Fragment, {
|
|
53
|
-
children: [jsx(Text, {
|
|
54
|
-
bold: true,
|
|
55
|
-
role: "gray0",
|
|
56
|
-
children: intl.formatMessage({
|
|
57
|
-
id: 'exerciseRunner.controller.arduino.agent.instruction.install'
|
|
58
|
-
})
|
|
59
|
-
}), jsx(Vspace, {
|
|
60
|
-
height: 0.25
|
|
61
|
-
}), jsx(Text, {
|
|
62
|
-
role: "navy",
|
|
63
|
-
size: "small",
|
|
64
|
-
children: intl.formatMessage({
|
|
65
|
-
id: 'exerciseRunner.controller.arduino.agent.instruction.install.detail'
|
|
66
|
-
})
|
|
67
|
-
}), jsx(Vspace, {
|
|
68
|
-
height: 0.75
|
|
69
|
-
}), jsxs(Flex, {
|
|
70
|
-
children: [jsx(Button, {
|
|
71
|
-
size: "tiny",
|
|
72
|
-
role: "gray1",
|
|
73
|
-
icon: jsx(Icon, {
|
|
74
|
-
icon: eisWindows,
|
|
75
|
-
size: "huge"
|
|
76
|
-
}),
|
|
77
|
-
iconAlign: "left",
|
|
78
|
-
onClick: function onClick() {
|
|
79
|
-
return downloadAgent('win');
|
|
80
|
-
},
|
|
81
|
-
children: intl.formatMessage({
|
|
82
|
-
id: 'exerciseRunner.controller.arduino.agent.instruction.install.window'
|
|
83
|
-
})
|
|
84
|
-
}), jsx(Hspace, {
|
|
85
|
-
width: 0.75
|
|
86
|
-
}), jsx(Button, {
|
|
87
|
-
size: "tiny",
|
|
88
|
-
role: "gray1",
|
|
89
|
-
icon: jsx(Icon, {
|
|
90
|
-
icon: eisMac
|
|
91
|
-
}),
|
|
92
|
-
iconAlign: "left",
|
|
93
|
-
onClick: function onClick() {
|
|
94
|
-
return downloadAgent('mac');
|
|
95
|
-
},
|
|
96
|
-
children: intl.formatMessage({
|
|
97
|
-
id: 'exerciseRunner.controller.arduino.agent.instruction.install.mac'
|
|
98
|
-
})
|
|
99
|
-
})]
|
|
100
|
-
})]
|
|
101
|
-
});
|
|
102
|
-
};
|
|
103
|
-
var renderAgentConnectionInstruction = function renderAgentConnectionInstruction() {
|
|
104
|
-
return jsxs(Fragment, {
|
|
105
|
-
children: [jsx(Text, {
|
|
106
|
-
bold: true,
|
|
107
|
-
role: "gray0",
|
|
108
|
-
children: intl.formatMessage({
|
|
109
|
-
id: 'exerciseRunner.controller.arduino.agent.instruction.connect'
|
|
110
|
-
})
|
|
111
|
-
}), jsx(Vspace, {
|
|
112
|
-
height: 0.25
|
|
113
|
-
}), jsx(Text, {
|
|
114
|
-
role: "navy",
|
|
115
|
-
size: "small",
|
|
116
|
-
lineHeight: 1.6,
|
|
117
|
-
children: intl.formatMessage({
|
|
118
|
-
id: 'exerciseRunner.controller.arduino.agent.instruction.connect.detail'
|
|
119
|
-
})
|
|
120
|
-
}), jsx(Vspace, {
|
|
121
|
-
height: 0.75
|
|
122
|
-
}), jsx(Button, {
|
|
123
|
-
icon: jsx(Icon, {
|
|
124
|
-
icon: eilArrowRightwardsBasic
|
|
125
|
-
}),
|
|
126
|
-
iconAlign: "right",
|
|
127
|
-
size: "tiny",
|
|
128
|
-
role: "secondary",
|
|
129
|
-
onClick: function onClick() {
|
|
130
|
-
return window.open(ARDUINO_AGENT_MANUAL_URL);
|
|
131
|
-
},
|
|
132
|
-
children: intl.formatMessage({
|
|
133
|
-
id: 'exerciseRunner.controller.arduino.agent.instruction.connect.button'
|
|
134
|
-
})
|
|
135
|
-
})]
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
if (!open) {
|
|
139
|
-
return null;
|
|
140
|
-
}
|
|
141
|
-
return jsx(Modal, {
|
|
142
|
-
theme: 'dark',
|
|
143
|
-
title: intl.formatMessage({
|
|
144
|
-
id: 'exerciseRunner.controller.arduino.agent.title'
|
|
145
|
-
}),
|
|
146
|
-
footerButtons: [{
|
|
147
|
-
label: intl.formatMessage({
|
|
148
|
-
id: 'exerciseRunner.controller.arduino.agent.instruction.close'
|
|
149
|
-
}),
|
|
150
|
-
onClick: handleClose
|
|
151
|
-
}],
|
|
152
|
-
onHide: handleClose,
|
|
153
|
-
children: jsxs(Fragment, {
|
|
154
|
-
children: [renderAgentInstallInstruction(), jsx(Vspace, {
|
|
155
|
-
height: 1.5
|
|
156
|
-
}), renderAgentConnectionInstruction()]
|
|
157
|
-
})
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
export { ExerciseRunnerControllerArduinoAgentModal as default };
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import _styled from '@emotion/styled/base';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { useState, useEffect } from 'react';
|
|
5
|
-
import { Flex, Text } from '@elice/blocks';
|
|
6
|
-
import { useRawEliceIntl } from '@elice/intl';
|
|
7
|
-
import { useRecoilValue } from 'recoil';
|
|
8
|
-
import { getPortFromName, getDisplayName } from '../../../utils/arduino.js';
|
|
9
|
-
import ExerciseRunnerControllerStatusIndicator from './ExerciseRunnerControllerStatusIndicator.js';
|
|
10
|
-
import { exerciseArduinoPortsState, exerciseArduinoOpenedPortNameState, exerciseArduinoUploadProgressState, exerciseArduinoAgentConnectionState } from '../context/recoil.js';
|
|
11
|
-
|
|
12
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
13
|
-
var StyledMessageWrapper = /*#__PURE__*/_styled(Flex, {
|
|
14
|
-
target: "e1o0k0400"
|
|
15
|
-
})("production" === "production" ? {
|
|
16
|
-
name: "1f87p0t",
|
|
17
|
-
styles: "height:1rem"
|
|
18
|
-
} : {
|
|
19
|
-
name: "1f87p0t",
|
|
20
|
-
styles: "height:1rem",
|
|
21
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
22
|
-
});
|
|
23
|
-
var ExerciseRunnerControllerArduinoStatusMessage = function ExerciseRunnerControllerArduinoStatusMessage() {
|
|
24
|
-
var intl = useRawEliceIntl();
|
|
25
|
-
var ports = useRecoilValue(exerciseArduinoPortsState);
|
|
26
|
-
var _useState = useState(''),
|
|
27
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
-
message = _useState2[0],
|
|
29
|
-
setMessage = _useState2[1];
|
|
30
|
-
var _useState3 = useState('error'),
|
|
31
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
32
|
-
status = _useState4[0],
|
|
33
|
-
setStatus = _useState4[1];
|
|
34
|
-
var arduinoOpenedPort = useRecoilValue(exerciseArduinoOpenedPortNameState);
|
|
35
|
-
var arduinoUploadProgress = useRecoilValue(exerciseArduinoUploadProgressState);
|
|
36
|
-
var arduinoAgentConnectionStatus = useRecoilValue(exerciseArduinoAgentConnectionState);
|
|
37
|
-
useEffect(function () {
|
|
38
|
-
if (arduinoAgentConnectionStatus === 'disconnected') {
|
|
39
|
-
setStatus('error');
|
|
40
|
-
setMessage(intl.formatMessage({
|
|
41
|
-
id: 'exerciseRunner.controller.arduino.connectionStatus.disconnected'
|
|
42
|
-
}));
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
if (arduinoAgentConnectionStatus === 'connecting') {
|
|
46
|
-
setStatus('warning');
|
|
47
|
-
setMessage(intl.formatMessage({
|
|
48
|
-
id: 'exerciseRunner.controller.arduino.connectionStatus.connecting'
|
|
49
|
-
}));
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
if (arduinoAgentConnectionStatus === 'reconnecting') {
|
|
53
|
-
setStatus('warning');
|
|
54
|
-
setMessage(intl.formatMessage({
|
|
55
|
-
id: 'exerciseRunner.controller.arduino.connectionStatus.reconnecting'
|
|
56
|
-
}));
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
// Arduino agent is connected.
|
|
60
|
-
if (arduinoOpenedPort === '' && arduinoUploadProgress === 'ready') {
|
|
61
|
-
setStatus('error');
|
|
62
|
-
setMessage(intl.formatMessage({
|
|
63
|
-
id: 'exerciseRunner.controller.arduino.connectionStatus.noDevice'
|
|
64
|
-
}));
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
setStatus('success');
|
|
68
|
-
switch (arduinoUploadProgress) {
|
|
69
|
-
case 'receivedHex':
|
|
70
|
-
case 'starting':
|
|
71
|
-
case 'busy':
|
|
72
|
-
setMessage(intl.formatMessage({
|
|
73
|
-
id: 'exerciseRunner.controller.arduino.connectionStatus.uploading'
|
|
74
|
-
}));
|
|
75
|
-
return;
|
|
76
|
-
case 'ready':
|
|
77
|
-
case 'error':
|
|
78
|
-
case 'done':
|
|
79
|
-
default:
|
|
80
|
-
{
|
|
81
|
-
var device = getPortFromName(ports, arduinoOpenedPort);
|
|
82
|
-
if (device) {
|
|
83
|
-
setMessage(intl.formatMessage({
|
|
84
|
-
id: 'exerciseRunner.controller.arduino.connectionStatus.connectedDevice'
|
|
85
|
-
}, {
|
|
86
|
-
device: getDisplayName(device)
|
|
87
|
-
}));
|
|
88
|
-
} else {
|
|
89
|
-
setMessage(intl.formatMessage({
|
|
90
|
-
id: 'exerciseRunner.controller.arduino.connectionStatus.connected'
|
|
91
|
-
}));
|
|
92
|
-
}
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}, [intl, arduinoOpenedPort, arduinoUploadProgress, arduinoAgentConnectionStatus, ports]);
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
//
|
|
100
|
-
return jsxs(StyledMessageWrapper, {
|
|
101
|
-
align: "center",
|
|
102
|
-
children: [jsx(ExerciseRunnerControllerStatusIndicator, {
|
|
103
|
-
status: status
|
|
104
|
-
}), jsx(Text, {
|
|
105
|
-
role: "gray3",
|
|
106
|
-
size: "tiny",
|
|
107
|
-
children: message
|
|
108
|
-
})]
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export { ExerciseRunnerControllerArduinoStatusMessage as default };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { List } from '@elice/blocks';
|
|
3
|
-
|
|
4
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
5
|
-
var StyledVersionList = /*#__PURE__*/_styled(List, {
|
|
6
|
-
target: "e1kcjofl0"
|
|
7
|
-
})("production" === "production" ? {
|
|
8
|
-
name: "1uke1dw",
|
|
9
|
-
styles: "height:100%;padding:0;overflow:scroll;background-color:transparent;&>last-of-type{border:none;}"
|
|
10
|
-
} : {
|
|
11
|
-
name: "1uke1dw",
|
|
12
|
-
styles: "height:100%;padding:0;overflow:scroll;background-color:transparent;&>last-of-type{border:none;}",
|
|
13
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export { StyledVersionList };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Text } from '@elice/blocks';
|
|
2
|
-
import type { FileTabProps } from './FileTab';
|
|
3
|
-
type StyledTabContentProps = Pick<FileTabProps, 'active' | 'hovered'>;
|
|
4
|
-
export declare const StyledTabLabel: import("@emotion/styled").StyledComponent<{
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?: React.ElementType;
|
|
7
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
-
export declare const StyledTabLabelFilename: import("@emotion/styled").StyledComponent<Pick<import("@elice/blocks").TextProps, never> & Partial<Pick<import("@elice/blocks").TextProps, keyof import("@elice/blocks").TextProps>> & Partial<Pick<import("@elice/blocks").TextProps, never>> & {
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
|
-
}, {}, {
|
|
11
|
-
ref?: import("react").Ref<Text> | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const StyledTabLabelDirname: import("@emotion/styled").StyledComponent<Pick<import("@elice/blocks").TextProps, never> & Partial<Pick<import("@elice/blocks").TextProps, keyof import("@elice/blocks").TextProps>> & Partial<Pick<import("@elice/blocks").TextProps, never>> & {
|
|
14
|
-
theme?: import("@emotion/react").Theme;
|
|
15
|
-
}, {}, {
|
|
16
|
-
ref?: import("react").Ref<Text> | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const StyledTabCloseButton: import("@emotion/styled").StyledComponent<import("@elice/blocks").IconButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
19
|
-
theme?: import("@emotion/react").Theme;
|
|
20
|
-
}, {}, {}>;
|
|
21
|
-
export declare const StyledTabContent: import("@emotion/styled").StyledComponent<{
|
|
22
|
-
theme?: import("@emotion/react").Theme;
|
|
23
|
-
as?: React.ElementType;
|
|
24
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
25
|
-
export declare const StyledTabActiveBorder: import("@emotion/styled").StyledComponent<{
|
|
26
|
-
theme?: import("@emotion/react").Theme;
|
|
27
|
-
as?: React.ElementType;
|
|
28
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
|
-
export declare const StyledTab: import("@emotion/styled").StyledComponent<{
|
|
30
|
-
theme?: import("@emotion/react").Theme;
|
|
31
|
-
as?: React.ElementType;
|
|
32
|
-
} & StyledTabContentProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
33
|
-
export {};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Text, IconButton } from '@elice/blocks';
|
|
3
|
-
import { base } from '@elice/design-tokens';
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
-
|
|
6
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
7
|
-
var TAB_MIN_WIDTH = '7rem';
|
|
8
|
-
var TAB_VERTICAL_BORDER_WIDTH = '1.5px';
|
|
9
|
-
var TAB_BACKGROUND_COLOR = base.color.navy8;
|
|
10
|
-
var TAB_ACTIVE_BACKGROUND_COLOR = base.color.navy9;
|
|
11
|
-
var TAB_HOVERED_BACKGROUND_COLOR = base.color.navy7;
|
|
12
|
-
// ========== Tab label ==========
|
|
13
|
-
var StyledTabLabel = /*#__PURE__*/_styled("div", {
|
|
14
|
-
target: "egie1c86"
|
|
15
|
-
})("production" === "production" ? {
|
|
16
|
-
name: "1v2fhdm",
|
|
17
|
-
styles: "flex:1;display:flex;align-items:center;overflow:hidden;pointer-events:none;user-select:none;&>*{margin-right:0.5rem;}"
|
|
18
|
-
} : {
|
|
19
|
-
name: "1v2fhdm",
|
|
20
|
-
styles: "flex:1;display:flex;align-items:center;overflow:hidden;pointer-events:none;user-select:none;&>*{margin-right:0.5rem;}",
|
|
21
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
22
|
-
});
|
|
23
|
-
var StyledTabLabelFilename = /*#__PURE__*/_styled(Text, {
|
|
24
|
-
target: "egie1c85"
|
|
25
|
-
})("color:", base.color.gray4, ";font-weight:500;");
|
|
26
|
-
var StyledTabLabelDirname = /*#__PURE__*/_styled(Text, {
|
|
27
|
-
target: "egie1c84"
|
|
28
|
-
})("production" === "production" ? {
|
|
29
|
-
name: "f3vz0n",
|
|
30
|
-
styles: "font-weight:500"
|
|
31
|
-
} : {
|
|
32
|
-
name: "f3vz0n",
|
|
33
|
-
styles: "font-weight:500",
|
|
34
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
35
|
-
});
|
|
36
|
-
var StyledTabCloseButton = /*#__PURE__*/_styled(IconButton, {
|
|
37
|
-
target: "egie1c83"
|
|
38
|
-
})("production" === "production" ? {
|
|
39
|
-
name: "19zzndm",
|
|
40
|
-
styles: "flex:0 0 auto;margin-right:0.25rem!important;opacity:0;transition:opacity 150ms ease-in-out"
|
|
41
|
-
} : {
|
|
42
|
-
name: "19zzndm",
|
|
43
|
-
styles: "flex:0 0 auto;margin-right:0.25rem!important;opacity:0;transition:opacity 150ms ease-in-out",
|
|
44
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
45
|
-
});
|
|
46
|
-
// ========== Tab content ==========
|
|
47
|
-
var StyledTabContent = /*#__PURE__*/_styled("div", {
|
|
48
|
-
target: "egie1c82"
|
|
49
|
-
})("display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:0.5rem;height:calc(100% - ", TAB_VERTICAL_BORDER_WIDTH, ");&:hover{", StyledTabLabelFilename, "{color:", base.color.gray3, ";}", StyledTabCloseButton, "{opacity:1;}}");
|
|
50
|
-
// ========== Tab active border ==========
|
|
51
|
-
var StyledTabActiveBorder = /*#__PURE__*/_styled("div", {
|
|
52
|
-
target: "egie1c81"
|
|
53
|
-
})("height:", TAB_VERTICAL_BORDER_WIDTH, ";background-color:", base.color.primary5, ";opacity:0;");
|
|
54
|
-
// ========== Tab ==========
|
|
55
|
-
var cssTabActive = /*#__PURE__*/css("background-color:", TAB_ACTIVE_BACKGROUND_COLOR, ";", StyledTabLabelFilename, "{color:", base.color.gray3, ";}", StyledTabCloseButton, "{opacity:1;}", StyledTabActiveBorder, "{opacity:1;}");
|
|
56
|
-
var cssTabHovered = /*#__PURE__*/css("background-color:", TAB_HOVERED_BACKGROUND_COLOR, ";", StyledTabLabelFilename, "{color:", base.color.gray3, ";}");
|
|
57
|
-
var StyledTab = /*#__PURE__*/_styled("div", {
|
|
58
|
-
target: "egie1c80"
|
|
59
|
-
})("padding-top:", TAB_VERTICAL_BORDER_WIDTH, ";width:", TAB_MIN_WIDTH, ";min-width:fit-content;height:100%;background-color:", TAB_BACKGROUND_COLOR, ";border-right:1px solid ", base.color.navy7, ";cursor:pointer;", function (props) {
|
|
60
|
-
return props.active && cssTabActive;
|
|
61
|
-
}, " ", function (props) {
|
|
62
|
-
return props.hovered && cssTabHovered;
|
|
63
|
-
}, ";");
|
|
64
|
-
|
|
65
|
-
export { StyledTab, StyledTabActiveBorder, StyledTabCloseButton, StyledTabContent, StyledTabLabel, StyledTabLabelDirname, StyledTabLabelFilename };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface StyledTabsDropZoneProps {
|
|
2
|
-
hovered?: boolean;
|
|
3
|
-
}
|
|
4
|
-
export declare const StyledTabs: import("@emotion/styled").StyledComponent<{
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?: React.ElementType;
|
|
7
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
-
export declare const StyledTabsDropZone: import("@emotion/styled").StyledComponent<{
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
|
-
as?: React.ElementType;
|
|
11
|
-
} & StyledTabsDropZoneProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { base } from '@elice/design-tokens';
|
|
3
|
-
import { getMaterialScrollBarCss } from '../../../constants/stylesheets.js';
|
|
4
|
-
|
|
5
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
6
|
-
var StyledTabs = /*#__PURE__*/_styled("div", {
|
|
7
|
-
target: "euy0u931"
|
|
8
|
-
})("display:flex;align-items:flex-end;box-sizing:border-box;flex-direction:row;height:2.25rem;font-family:inherit;background:", base.color.navy8, ";overflow-x:overlay;overflow-y:hidden;scrollbar-width:none;", getMaterialScrollBarCss({
|
|
9
|
-
height: '2px',
|
|
10
|
-
borderRadius: '2px',
|
|
11
|
-
hideable: true
|
|
12
|
-
}), ";");
|
|
13
|
-
var StyledTabsDropZone = /*#__PURE__*/_styled("div", {
|
|
14
|
-
target: "euy0u930"
|
|
15
|
-
})("production" === "production" ? {
|
|
16
|
-
name: "uysyag",
|
|
17
|
-
styles: "flex:1;height:100%;background-color:transparent"
|
|
18
|
-
} : {
|
|
19
|
-
name: "uysyag",
|
|
20
|
-
styles: "flex:1;height:100%;background-color:transparent",
|
|
21
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export { StyledTabs, StyledTabsDropZone };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Text } from '@elice/blocks';
|
|
2
|
-
interface StyledContentProps {
|
|
3
|
-
active?: boolean;
|
|
4
|
-
isDragging?: boolean;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* indent
|
|
8
|
-
*/
|
|
9
|
-
export declare const StyledContentIndents: import("@emotion/styled").StyledComponent<{
|
|
10
|
-
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?: React.ElementType;
|
|
12
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
-
export declare const StyledContentIndentGuide: import("@emotion/styled").StyledComponent<{
|
|
14
|
-
theme?: import("@emotion/react").Theme;
|
|
15
|
-
as?: React.ElementType;
|
|
16
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
-
/**
|
|
18
|
-
* label
|
|
19
|
-
*/
|
|
20
|
-
export declare const StyledContentLabel: import("@emotion/styled").StyledComponent<{
|
|
21
|
-
theme?: import("@emotion/react").Theme;
|
|
22
|
-
as?: React.ElementType;
|
|
23
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
24
|
-
/**
|
|
25
|
-
* label > dir arrow
|
|
26
|
-
*/
|
|
27
|
-
export declare const StyledContentLabelDirArrowWrap: import("@emotion/styled").StyledComponent<{
|
|
28
|
-
theme?: import("@emotion/react").Theme;
|
|
29
|
-
as?: React.ElementType;
|
|
30
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
31
|
-
/**
|
|
32
|
-
* label > icon
|
|
33
|
-
*/
|
|
34
|
-
export declare const StyledContentLabelIconWrap: import("@emotion/styled").StyledComponent<{
|
|
35
|
-
theme?: import("@emotion/react").Theme;
|
|
36
|
-
as?: React.ElementType;
|
|
37
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
38
|
-
/**
|
|
39
|
-
* label > filename
|
|
40
|
-
*/
|
|
41
|
-
export declare const StyledContentLabelFilename: import("@emotion/styled").StyledComponent<Pick<import("@elice/blocks").TextProps, never> & Partial<Pick<import("@elice/blocks").TextProps, keyof import("@elice/blocks").TextProps>> & Partial<Pick<import("@elice/blocks").TextProps, never>> & {
|
|
42
|
-
theme?: import("@emotion/react").Theme;
|
|
43
|
-
}, {}, {
|
|
44
|
-
ref?: import("react").Ref<Text> | undefined;
|
|
45
|
-
}>;
|
|
46
|
-
/**
|
|
47
|
-
* label > status icon
|
|
48
|
-
*/
|
|
49
|
-
export declare const StyledContentLabelStatusIcon: import("@emotion/styled").StyledComponent<import("@elice/blocks").IconProps & import("react").RefAttributes<SVGSVGElement> & {
|
|
50
|
-
theme?: import("@emotion/react").Theme;
|
|
51
|
-
}, {}, {}>;
|
|
52
|
-
/**
|
|
53
|
-
* label > menu button
|
|
54
|
-
*/
|
|
55
|
-
export declare const StyledContentLabelMenuButton: import("@emotion/styled").StyledComponent<import("@elice/blocks").IconButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
56
|
-
theme?: import("@emotion/react").Theme;
|
|
57
|
-
}, {}, {}>;
|
|
58
|
-
export declare const StyledContent: import("@emotion/styled").StyledComponent<{
|
|
59
|
-
theme?: import("@emotion/react").Theme;
|
|
60
|
-
as?: React.ElementType;
|
|
61
|
-
} & StyledContentProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
62
|
-
export {};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Text, IconButton, Icon } from '@elice/blocks';
|
|
3
|
-
import { base } from '@elice/design-tokens';
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
-
|
|
6
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
var CONTENT_MIN_HEIGHT = 28; // 1.75rem
|
|
11
|
-
var CONTENT_LEFT_BORDER_WIDTH = 3; // 0.1875rem
|
|
12
|
-
var CONTENT_RIGHT_PADDING = 12; // 0.75rem
|
|
13
|
-
var CONTENT_LABEL_VERTICAL_PADDING = 4; // 0.25rem
|
|
14
|
-
var CONTENT_LABEL_ICON_SIZE = 16; // 1rem
|
|
15
|
-
var CONTENT_LABEL_ICON_AFTER_MARGIN = 4; // 1rem
|
|
16
|
-
var CONTENT_LABEL_DIR_ARROW_PADDING = 4; // 0.25rem
|
|
17
|
-
var CONTENT_LABEL_DIR_ARROW_SIZE = 12; // 0.75rem
|
|
18
|
-
var CONTENT_LABEL_MENU_BUTTON_SIZE = CONTENT_MIN_HEIGHT - CONTENT_LABEL_VERTICAL_PADDING * 2;
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
/**
|
|
23
|
-
* indent
|
|
24
|
-
*/
|
|
25
|
-
var StyledContentIndents = /*#__PURE__*/_styled("div", {
|
|
26
|
-
target: "e10wdzkp8"
|
|
27
|
-
})();
|
|
28
|
-
var StyledContentIndentGuide = /*#__PURE__*/_styled("div", {
|
|
29
|
-
target: "e10wdzkp7"
|
|
30
|
-
})("display:inline-block;height:100%;border-right:0.5px solid ", base.color.gray7, ";");
|
|
31
|
-
/**
|
|
32
|
-
* label
|
|
33
|
-
*/
|
|
34
|
-
var StyledContentLabel = /*#__PURE__*/_styled("div", {
|
|
35
|
-
target: "e10wdzkp6"
|
|
36
|
-
})("flex:1;display:flex;align-items:center;padding-top:", CONTENT_LABEL_VERTICAL_PADDING, "px;padding-bottom:", CONTENT_LABEL_VERTICAL_PADDING, "px;overflow:hidden;");
|
|
37
|
-
/**
|
|
38
|
-
* label > dir arrow
|
|
39
|
-
*/
|
|
40
|
-
var StyledContentLabelDirArrowWrap = /*#__PURE__*/_styled("div", {
|
|
41
|
-
target: "e10wdzkp5"
|
|
42
|
-
})("flex:0 0 ", CONTENT_LABEL_DIR_ARROW_SIZE + CONTENT_LABEL_DIR_ARROW_PADDING * 2, "px;display:flex;justify-content:center;align-items:center;padding:", CONTENT_LABEL_DIR_ARROW_PADDING, ";height:", CONTENT_LABEL_DIR_ARROW_SIZE, "px;");
|
|
43
|
-
/**
|
|
44
|
-
* label > icon
|
|
45
|
-
*/
|
|
46
|
-
var StyledContentLabelIconWrap = /*#__PURE__*/_styled("div", {
|
|
47
|
-
target: "e10wdzkp4"
|
|
48
|
-
})("flex:0 0 ", CONTENT_LABEL_ICON_SIZE + CONTENT_LABEL_ICON_AFTER_MARGIN, "px;display:flex;margin-right:", CONTENT_LABEL_ICON_AFTER_MARGIN, "px;height:", CONTENT_LABEL_ICON_SIZE, "px;");
|
|
49
|
-
/**
|
|
50
|
-
* label > filename
|
|
51
|
-
*/
|
|
52
|
-
var StyledContentLabelFilename = /*#__PURE__*/_styled(Text, {
|
|
53
|
-
target: "e10wdzkp3"
|
|
54
|
-
})("flex:1;margin-right:0.125rem;color:", base.color.gray4, ";font-weight:500;");
|
|
55
|
-
/**
|
|
56
|
-
* label > status icon
|
|
57
|
-
*/
|
|
58
|
-
var StyledContentLabelStatusIcon = /*#__PURE__*/_styled(Icon, {
|
|
59
|
-
target: "e10wdzkp2"
|
|
60
|
-
})("production" === "production" ? {
|
|
61
|
-
name: "129lf1x",
|
|
62
|
-
styles: "margin-left:0.25rem;margin-right:0;&:last-of-type{margin-right:0.25rem;}"
|
|
63
|
-
} : {
|
|
64
|
-
name: "129lf1x",
|
|
65
|
-
styles: "margin-left:0.25rem;margin-right:0;&:last-of-type{margin-right:0.25rem;}",
|
|
66
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
67
|
-
});
|
|
68
|
-
/**
|
|
69
|
-
* label > menu button
|
|
70
|
-
*/
|
|
71
|
-
var StyledContentLabelMenuButton = /*#__PURE__*/_styled(IconButton, {
|
|
72
|
-
target: "e10wdzkp1"
|
|
73
|
-
})("flex:0 0 ", CONTENT_LABEL_MENU_BUTTON_SIZE, "px;width:", CONTENT_LABEL_MENU_BUTTON_SIZE, "px!important;height:", CONTENT_LABEL_MENU_BUTTON_SIZE, "px!important;opacity:0;transition:opacity 150ms ease-in-out;");
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
var cssStyledContentActive = /*#__PURE__*/css("border-left-color:", base.color.primary4, ";background-color:", base.color.navy7, ";", StyledContentLabelFilename, "{color:", base.color.gray3, ";}");
|
|
78
|
-
var cssStyledContentDragging = "production" === "production" ? {
|
|
79
|
-
name: "1ym7stk",
|
|
80
|
-
styles: "border-left-color:transparent!important;background-color:transparent!important"
|
|
81
|
-
} : {
|
|
82
|
-
name: "1ym7stk",
|
|
83
|
-
styles: "border-left-color:transparent!important;background-color:transparent!important",
|
|
84
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
85
|
-
};
|
|
86
|
-
var StyledContent = /*#__PURE__*/_styled("div", {
|
|
87
|
-
target: "e10wdzkp0"
|
|
88
|
-
})("display:flex;padding-right:", CONTENT_RIGHT_PADDING, "px;width:100%;min-width:0;min-height:", CONTENT_MIN_HEIGHT, "px;border-left-width:", CONTENT_LEFT_BORDER_WIDTH, "px;border-left-style:solid;border-left-color:transparent;user-select:none;", function (props) {
|
|
89
|
-
return props.active && cssStyledContentActive;
|
|
90
|
-
}, " ", function (props) {
|
|
91
|
-
return props.isDragging && cssStyledContentDragging;
|
|
92
|
-
}, " &:hover{background-color:", base.color.navy8, ";", StyledContentLabelFilename, "{color:", base.color.gray3, ";}", StyledContentLabelMenuButton, "{opacity:1;}}");
|
|
93
|
-
|
|
94
|
-
export { StyledContent, StyledContentIndentGuide, StyledContentIndents, StyledContentLabel, StyledContentLabelDirArrowWrap, StyledContentLabelFilename, StyledContentLabelIconWrap, StyledContentLabelMenuButton, StyledContentLabelStatusIcon };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const StyledInputForm: import("@emotion/styled").StyledComponent<{
|
|
2
|
-
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?: React.ElementType;
|
|
4
|
-
}, import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}>;
|
|
5
|
-
export declare const StyledInput: import("@emotion/styled").StyledComponent<import("@elice/blocks").InputProps & import("react").RefAttributes<HTMLInputElement> & {
|
|
6
|
-
theme?: import("@emotion/react").Theme;
|
|
7
|
-
}, {}, {}>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Input } from '@elice/blocks';
|
|
3
|
-
import { base } from '@elice/design-tokens';
|
|
4
|
-
|
|
5
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
6
|
-
var INPUT_HEIGHT = '1.25rem';
|
|
7
|
-
var INPUT_FONT_SIZE = '0.75rem';
|
|
8
|
-
var INPUT_INNER_LEFT_PADDING = '0.125rem';
|
|
9
|
-
var INPUT_INNER_RIGHT_PADDING = '0.25rem';
|
|
10
|
-
var StyledInputForm = /*#__PURE__*/_styled("form", {
|
|
11
|
-
target: "e14adbux1"
|
|
12
|
-
})("production" === "production" ? {
|
|
13
|
-
name: "y3klfd",
|
|
14
|
-
styles: "flex:1;display:flex"
|
|
15
|
-
} : {
|
|
16
|
-
name: "y3klfd",
|
|
17
|
-
styles: "flex:1;display:flex",
|
|
18
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
19
|
-
});
|
|
20
|
-
var StyledInput = /*#__PURE__*/_styled(Input, {
|
|
21
|
-
target: "e14adbux0"
|
|
22
|
-
})("min-height:", INPUT_HEIGHT, ";>div{background:transparent!important;>div{&:nth-child(1){padding:", INPUT_INNER_LEFT_PADDING, ";}&:nth-child(3){padding:", INPUT_INNER_RIGHT_PADDING, ";}}.eb-icon{width:0.875em;height:0.875em;font-size:0.875em;}}& input{padding-top:0!important;padding-bottom:0!important;height:", INPUT_HEIGHT, "!important;color:", base.color.gray0, "!important;font-size:", INPUT_FONT_SIZE, "!important;}");
|
|
23
|
-
|
|
24
|
-
export { StyledInput, StyledInputForm };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const StyledTreeItems: import("@emotion/styled").StyledComponent<{
|
|
2
|
-
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?: React.ElementType;
|
|
4
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
5
|
-
export declare const StyledTreeItem: import("@emotion/styled").StyledComponent<{
|
|
6
|
-
theme?: import("@emotion/react").Theme;
|
|
7
|
-
as?: React.ElementType;
|
|
8
|
-
}, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|