@elice/material-exercise 1.220803.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/README.md +41 -0
- package/cjs/components/index.d.ts +2 -0
- package/cjs/components/material-exercise/MaterialExercise.d.ts +6 -0
- package/cjs/components/material-exercise/MaterialExercise.js +170 -0
- package/cjs/components/material-exercise/MaterialExercise.styled.d.ts +36 -0
- package/cjs/components/material-exercise/MaterialExercise.styled.js +89 -0
- package/cjs/components/material-exercise/context/ExerciseIntlProvider.d.ts +12 -0
- package/cjs/components/material-exercise/context/ExerciseIntlProvider.js +52 -0
- package/cjs/components/material-exercise/context/ExerciseProvider.d.ts +11 -0
- package/cjs/components/material-exercise/context/ExerciseProvider.js +166 -0
- package/cjs/components/material-exercise/context/ExerciseProviderNoImage.d.ts +15 -0
- package/cjs/components/material-exercise/context/ExerciseProviderNoImage.js +62 -0
- package/cjs/components/material-exercise/context/context.d.ts +7 -0
- package/cjs/components/material-exercise/context/context.js +13 -0
- package/cjs/components/material-exercise/context/index.d.ts +7 -0
- package/cjs/components/material-exercise/context/locales/noImage.en.json.js +5 -0
- package/cjs/components/material-exercise/context/locales/noImage.ko.json.js +5 -0
- package/cjs/components/material-exercise/context/recoil.d.ts +144 -0
- package/cjs/components/material-exercise/context/recoil.js +637 -0
- package/cjs/components/material-exercise/context/recoilTypes.d.ts +95 -0
- package/cjs/components/material-exercise/context/recoilTypes.js +29 -0
- package/cjs/components/material-exercise/context/subjects.d.ts +13 -0
- package/cjs/components/material-exercise/context/subjects.js +25 -0
- package/cjs/components/material-exercise/context/types.d.ts +96 -0
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.d.ts +7 -0
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +150 -0
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.d.ts +10 -0
- package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.js +41 -0
- package/cjs/components/material-exercise/exercise-code-history/index.d.ts +2 -0
- package/cjs/components/material-exercise/exercise-file/ExerciseFile.d.ts +8 -0
- package/cjs/components/material-exercise/exercise-file/ExerciseFile.js +92 -0
- package/cjs/components/material-exercise/exercise-file/index.d.ts +1 -0
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileEditor.d.ts +6 -0
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +337 -0
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts +6 -0
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +43 -0
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseMobileFileEditor.d.ts +8 -0
- package/cjs/components/material-exercise/exercise-file-editor/index.d.ts +1 -0
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +79 -0
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +90 -0
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.js +21 -0
- package/cjs/components/material-exercise/exercise-file-tabs/index.d.ts +2 -0
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js +5 -0
- package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js +5 -0
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.d.ts +5 -0
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +381 -0
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.js +21 -0
- package/cjs/components/material-exercise/exercise-file-tree/index.d.ts +2 -0
- package/cjs/components/material-exercise/exercise-file-tree/locales/en.json.js +5 -0
- package/cjs/components/material-exercise/exercise-file-tree/locales/ko.json.js +5 -0
- package/cjs/components/material-exercise/exercise-file-viewer/ExerciseFileViewer.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-file-viewer/ExerciseFileViewer.js +50 -0
- package/cjs/components/material-exercise/exercise-file-viewer/index.d.ts +1 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.js +47 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +137 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuDropdown.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +120 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.js +98 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +231 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.d.ts +13 -0
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.js +61 -0
- package/cjs/components/material-exercise/exercise-menu/index.d.ts +1 -0
- package/cjs/components/material-exercise/exercise-menu/locales/en.json.js +5 -0
- package/cjs/components/material-exercise/exercise-menu/locales/ko.json.js +5 -0
- package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdown.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdown.js +48 -0
- package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.js +16 -0
- package/cjs/components/material-exercise/exercise-multilang-dropdown/index.d.ts +2 -0
- package/cjs/components/material-exercise/exercise-multilang-dropdown/types.d.ts +39 -0
- package/cjs/components/material-exercise/exercise-preview/ExercisePreview.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-preview/ExercisePreview.js +118 -0
- package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts +5 -0
- package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +47 -0
- package/cjs/components/material-exercise/exercise-preview/index.d.ts +1 -0
- package/cjs/components/material-exercise/exercise-preview/locales/en.json.js +5 -0
- package/cjs/components/material-exercise/exercise-preview/locales/ko.json.js +5 -0
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +5 -0
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +130 -0
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEditorPerference.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEditorPerference.js +31 -0
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +113 -0
- package/cjs/components/material-exercise/exercise-rightpane/index.d.ts +1 -0
- package/cjs/components/material-exercise/exercise-rightpane/locales/en.json.js +5 -0
- package/cjs/components/material-exercise/exercise-rightpane/locales/ko.json.js +5 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.d.ts +7 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.js +33 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.styled.d.ts +9 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoom.styled.js +44 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomDetail.d.ts +8 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomDetail.js +500 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomList.d.ts +7 -0
- package/cjs/components/material-exercise/exercise-room/ExerciseRoomList.js +195 -0
- package/cjs/components/material-exercise/exercise-room/helpers/exerciseRoomPermissionStringConvertor.d.ts +2 -0
- package/cjs/components/material-exercise/exercise-room/helpers/exerciseRoomPermissionStringConvertor.js +36 -0
- package/cjs/components/material-exercise/exercise-room/helpers/index.d.ts +1 -0
- package/cjs/components/material-exercise/exercise-room/index.d.ts +2 -0
- package/cjs/components/material-exercise/exercise-room/locales/en.json.js +5 -0
- package/cjs/components/material-exercise/exercise-room/locales/ko.json.js +5 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.d.ts +6 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.js +549 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerContext.d.ts +17 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerContext.js +13 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerController.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerController.js +46 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +112 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +269 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +187 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusIndicator.d.ts +5 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusIndicator.js +25 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +65 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.d.ts +3 -0
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +81 -0
- package/cjs/components/material-exercise/exercise-runner/index.d.ts +1 -0
- package/cjs/components/material-exercise/exercise-runner/locales/en.json.js +5 -0
- package/cjs/components/material-exercise/exercise-runner/locales/ko.json.js +5 -0
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.d.ts +6 -0
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +341 -0
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.styled.d.ts +9 -0
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.styled.js +45 -0
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistoryOutput.d.ts +6 -0
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistoryOutput.js +119 -0
- package/cjs/components/material-exercise/exercise-submit-history/index.d.ts +2 -0
- package/cjs/components/material-exercise/index.d.ts +3 -0
- package/cjs/components/shared/exercise-menu-button/ExerciseMenuButton.d.ts +10 -0
- package/cjs/components/shared/exercise-menu-button/ExerciseMenuButton.js +52 -0
- package/cjs/components/shared/exercise-menu-button/index.d.ts +2 -0
- package/cjs/components/shared/exercise-shimmer/ExerciseFileShimmer.d.ts +3 -0
- package/cjs/components/shared/exercise-shimmer/ExerciseFileShimmer.js +55 -0
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTabShimmer.d.ts +6 -0
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTabShimmer.js +37 -0
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTabsShimmer.d.ts +3 -0
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTabsShimmer.js +25 -0
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTreeListItemShimmer.d.ts +6 -0
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTreeListItemShimmer.js +40 -0
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTreeListShimmer.d.ts +3 -0
- package/cjs/components/shared/exercise-shimmer/ExerciseFileTreeListShimmer.js +31 -0
- package/cjs/components/shared/exercise-shimmer/index.d.ts +5 -0
- package/cjs/components/shared/exercise-version-list/ExerciseVersionList.d.ts +3 -0
- package/cjs/components/shared/exercise-version-list/ExerciseVersionList.js +16 -0
- package/cjs/components/shared/exercise-version-list/ExerciseVersionList.styled.d.ts +8 -0
- package/cjs/components/shared/exercise-version-list/ExerciseVersionList.styled.js +16 -0
- package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.d.ts +8 -0
- package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.js +23 -0
- package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.styled.d.ts +6 -0
- package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.styled.js +29 -0
- package/cjs/components/shared/exercise-version-list/index.d.ts +2 -0
- package/cjs/components/shared/file-icon/FileIcon.d.ts +10 -0
- package/cjs/components/shared/file-icon/FileIcon.js +47 -0
- package/cjs/components/shared/file-icon/index.d.ts +2 -0
- package/cjs/components/shared/file-tabs/FileTab.d.ts +10 -0
- package/cjs/components/shared/file-tabs/FileTab.js +125 -0
- package/cjs/components/shared/file-tabs/FileTab.styled.d.ts +12 -0
- package/cjs/components/shared/file-tabs/FileTab.styled.js +52 -0
- package/cjs/components/shared/file-tabs/FileTabs.d.ts +15 -0
- package/cjs/components/shared/file-tabs/FileTabs.js +113 -0
- package/cjs/components/shared/file-tabs/FileTabs.styled.d.ts +6 -0
- package/cjs/components/shared/file-tabs/FileTabs.styled.js +25 -0
- package/cjs/components/shared/file-tabs/index.d.ts +2 -0
- package/cjs/components/shared/file-tabs/util.d.ts +10 -0
- package/cjs/components/shared/file-tabs/util.js +32 -0
- package/cjs/components/shared/file-tree/FileTree.d.ts +69 -0
- package/cjs/components/shared/file-tree/FileTree.js +45 -0
- package/cjs/components/shared/file-tree/FileTreeConfig.d.ts +13 -0
- package/cjs/components/shared/file-tree/FileTreeConfig.js +64 -0
- package/cjs/components/shared/file-tree/FileTreeList.d.ts +13 -0
- package/cjs/components/shared/file-tree/FileTreeList.js +135 -0
- package/cjs/components/shared/file-tree/FileTreeListItemContent.d.ts +9 -0
- package/cjs/components/shared/file-tree/FileTreeListItemContent.js +250 -0
- package/cjs/components/shared/file-tree/FileTreeListItemContent.styled.d.ts +37 -0
- package/cjs/components/shared/file-tree/FileTreeListItemContent.styled.js +105 -0
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.d.ts +15 -0
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.js +303 -0
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.styled.d.ts +3 -0
- package/cjs/components/shared/file-tree/FileTreeListItemContentInput.styled.js +25 -0
- package/cjs/components/shared/file-tree/FileTreeListItemContentMenu.d.ts +10 -0
- package/cjs/components/shared/file-tree/FileTreeListItemContentMenu.js +309 -0
- package/cjs/components/shared/file-tree/FileTreeListItems.d.ts +8 -0
- package/cjs/components/shared/file-tree/FileTreeListItems.js +210 -0
- package/cjs/components/shared/file-tree/FileTreeListItems.styled.d.ts +2 -0
- package/cjs/components/shared/file-tree/FileTreeListItems.styled.js +19 -0
- package/cjs/components/shared/file-tree/FileTreeToolbar.d.ts +6 -0
- package/cjs/components/shared/file-tree/FileTreeToolbar.js +128 -0
- package/cjs/components/shared/file-tree/FileTreeToolbar.styled.d.ts +1 -0
- package/cjs/components/shared/file-tree/FileTreeToolbar.styled.js +16 -0
- package/cjs/components/shared/file-tree/context/FileTreeContext.d.ts +127 -0
- package/cjs/components/shared/file-tree/context/FileTreeContext.js +202 -0
- package/cjs/components/shared/file-tree/context/index.d.ts +1 -0
- package/cjs/components/shared/file-tree/index.d.ts +15 -0
- package/cjs/components/shared/file-tree/interface/index.d.ts +47 -0
- package/cjs/components/shared/file-tree/locales/en.json.js +5 -0
- package/cjs/components/shared/file-tree/locales/ko.json.js +5 -0
- package/cjs/components/shared/file-tree/utils/fileTreeFiles.d.ts +2 -0
- package/cjs/components/shared/file-tree/utils/fileTreeFiles.js +41 -0
- package/cjs/components/shared/file-tree/utils/fileTreeGenerator.d.ts +68 -0
- package/cjs/components/shared/file-tree/utils/fileTreeGenerator.js +250 -0
- package/cjs/components/shared/file-tree/utils/fileTreeInput.d.ts +4 -0
- package/cjs/components/shared/file-tree/utils/fileTreeInput.js +13 -0
- package/cjs/components/shared/file-tree/utils/fileTreeItem.d.ts +5 -0
- package/cjs/components/shared/file-tree/utils/fileTreeItem.js +14 -0
- package/cjs/components/shared/file-tree/utils/fileTreePath.d.ts +11 -0
- package/cjs/components/shared/file-tree/utils/fileTreePath.js +18 -0
- package/cjs/components/shared/file-tree/utils/index.d.ts +5 -0
- package/cjs/components/shared/file-viewer/FileViewer.d.ts +8 -0
- package/cjs/components/shared/file-viewer/FileViewer.js +169 -0
- package/cjs/components/shared/file-viewer/FileViewerCsv.d.ts +4 -0
- package/cjs/components/shared/file-viewer/FileViewerCsv.js +46 -0
- package/cjs/components/shared/file-viewer/FileViewerImage.d.ts +4 -0
- package/cjs/components/shared/file-viewer/FileViewerImage.js +39 -0
- package/cjs/components/shared/file-viewer/FileViewerIpynb.d.ts +4 -0
- package/cjs/components/shared/file-viewer/FileViewerIpynb.js +45 -0
- package/cjs/components/shared/file-viewer/FileViewerNonViewable.d.ts +7 -0
- package/cjs/components/shared/file-viewer/FileViewerNonViewable.js +132 -0
- package/cjs/components/shared/file-viewer/FileViewerText.d.ts +4 -0
- package/cjs/components/shared/file-viewer/FileViewerText.js +56 -0
- package/cjs/components/shared/file-viewer/index.d.ts +2 -0
- package/cjs/components/shared/file-viewer/locales/en.json.js +5 -0
- package/cjs/components/shared/file-viewer/locales/ko.json.js +5 -0
- package/cjs/components/shared/file-viewer/locales/nonViewable.en.json.js +5 -0
- package/cjs/components/shared/file-viewer/locales/nonViewable.ko.json.js +5 -0
- package/cjs/components/shared/material-modal/MaterialModal.d.ts +8 -0
- package/cjs/components/shared/material-modal/MaterialModal.js +41 -0
- package/cjs/components/shared/material-modal/MaterialModal.styled.d.ts +7 -0
- package/cjs/components/shared/material-modal/MaterialModal.styled.js +33 -0
- package/cjs/components/shared/material-modal/index.d.ts +1 -0
- package/cjs/components/shared/monaco-editor/MonacoEditor.d.ts +86 -0
- package/cjs/components/shared/monaco-editor/MonacoEditor.js +381 -0
- package/cjs/components/shared/monaco-editor/MonacoEditorLazy.d.ts +3 -0
- package/cjs/components/shared/monaco-editor/MonacoEditorLazy.js +25 -0
- package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +9 -0
- package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +311 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/JSON.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/MagicPython.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/TypeScriptReact.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/asp-vb-net.tmlanguage.json.js +14 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/c.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/cpp.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/csharp.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/css.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/dart.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/fsharp.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/go.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/html.tmLanguage.json.js +14 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/index.d.ts +10 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/index.js +163 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/java.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/lua.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/objective-c.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/php.tmLanguage.json.js +12 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/r.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/ruby.tmLanguage.json.js +14 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/rust.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/scss.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/sql.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/swift.tmLanguage.json.js +14 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/xml.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/grammars/yaml.tmLanguage.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/index.d.ts +2 -0
- package/cjs/components/shared/monaco-editor/constants/monaco/index.d.ts +1 -0
- package/cjs/components/shared/monaco-editor/constants/monaco/preferences.d.ts +29 -0
- package/cjs/components/shared/monaco-editor/constants/monaco/preferences.js +48 -0
- package/cjs/components/shared/monaco-editor/constants/themes/abyss.json.js +11 -0
- package/cjs/components/shared/monaco-editor/constants/themes/elice.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/themes/index.d.ts +7 -0
- package/cjs/components/shared/monaco-editor/constants/themes/index.js +87 -0
- package/cjs/components/shared/monaco-editor/constants/themes/kimbie-dark.json.js +12 -0
- package/cjs/components/shared/monaco-editor/constants/themes/monokai.json.js +11 -0
- package/cjs/components/shared/monaco-editor/constants/themes/quietlight.json.js +11 -0
- package/cjs/components/shared/monaco-editor/constants/themes/red.json.js +11 -0
- package/cjs/components/shared/monaco-editor/constants/themes/solarized-dark.json.js +11 -0
- package/cjs/components/shared/monaco-editor/constants/themes/solarized-light.json.js +11 -0
- package/cjs/components/shared/monaco-editor/constants/themes/tomorrow-night-blue.json.js +11 -0
- package/cjs/components/shared/monaco-editor/constants/themes/vs-dark-plus.json.js +12 -0
- package/cjs/components/shared/monaco-editor/constants/themes/vs-dark.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/themes/vs-hc-black.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/themes/vs-hc-light.json.js +10 -0
- package/cjs/components/shared/monaco-editor/constants/themes/vs-light-plus.json.js +13 -0
- package/cjs/components/shared/monaco-editor/constants/themes/vs-light.json.js +13 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/index.d.ts +6 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.d.ts +10 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.js +38 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.d.ts +12 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.js +46 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.d.ts +12 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.js +35 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.d.ts +20 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.js +179 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.d.ts +9 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +47 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoTheme.d.ts +6 -0
- package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoTheme.js +31 -0
- package/cjs/components/shared/monaco-editor/editor-languages/css/formatter.d.ts +3 -0
- package/cjs/components/shared/monaco-editor/editor-languages/css/formatter.js +37 -0
- package/cjs/components/shared/monaco-editor/editor-languages/css/index.d.ts +9 -0
- package/cjs/components/shared/monaco-editor/editor-languages/css/index.js +54 -0
- package/cjs/components/shared/monaco-editor/editor-languages/html/formatter.d.ts +3 -0
- package/cjs/components/shared/monaco-editor/editor-languages/html/formatter.js +37 -0
- package/cjs/components/shared/monaco-editor/editor-languages/html/index.d.ts +9 -0
- package/cjs/components/shared/monaco-editor/editor-languages/html/index.js +52 -0
- package/cjs/components/shared/monaco-editor/editor-languages/index.d.ts +1 -0
- package/cjs/components/shared/monaco-editor/editor-languages/index.js +13 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.d.ts +7 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.js +12 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/express.d.ts +5 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/express.js +14 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/index.d.ts +3 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/propTypes.d.ts +5 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/propTypes.js +14 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/react.d.ts +5 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/dts/react.js +14 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/formatter.d.ts +3 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/formatter.js +37 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/index.d.ts +25 -0
- package/cjs/components/shared/monaco-editor/editor-languages/typescript/index.js +123 -0
- package/cjs/components/shared/monaco-editor/hooks/index.d.ts +1 -0
- package/cjs/components/shared/monaco-editor/hooks/useEditorOptions.d.ts +8 -0
- package/cjs/components/shared/monaco-editor/hooks/useEditorOptions.js +86 -0
- package/cjs/components/shared/monaco-editor/index.d.ts +6 -0
- package/cjs/components/shared/monaco-editor/locales/en.json.js +5 -0
- package/cjs/components/shared/monaco-editor/locales/ko.json.js +5 -0
- package/cjs/components/shared/monaco-editor/utils/grammar/index.d.ts +4 -0
- package/cjs/components/shared/monaco-editor/utils/grammar/index.js +62 -0
- package/cjs/components/shared/monaco-editor/utils/grammar/onigasm.d.ts +4 -0
- package/cjs/components/shared/monaco-editor/utils/grammar/onigasm.js +19 -0
- package/cjs/components/shared/monaco-editor/utils/grammar/textmate.d.ts +9 -0
- package/cjs/components/shared/monaco-editor/utils/grammar/textmate.js +89 -0
- package/cjs/components/shared/monaco-editor/utils/index.d.ts +2 -0
- package/cjs/components/shared/monaco-editor/utils/monacoLanguage.d.ts +4 -0
- package/cjs/components/shared/monaco-editor/utils/monacoLanguage.js +77 -0
- package/cjs/components/shared/monaco-editor/utils/monacoPreference.d.ts +5 -0
- package/cjs/components/shared/monaco-editor/utils/monacoPreference.js +26 -0
- package/cjs/components/shared/monaco-editor/utils/prettier/config.d.ts +9 -0
- package/cjs/components/shared/monaco-editor/utils/prettier/config.js +26 -0
- package/cjs/components/shared/monaco-editor/utils/prettier/index.d.ts +17 -0
- package/cjs/components/shared/monaco-editor/utils/prettier/index.js +32 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/OnDisposed.d.ts +4 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/RemoteCursor.d.ts +49 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/RemoteCursor.js +97 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/RemoteCursorManager.d.ts +48 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/RemoteCursorManager.js +119 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/RemoteCursorWidget.d.ts +29 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/RemoteCursorWidget.js +181 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/RemoteSelection.d.ts +112 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/RemoteSelection.js +222 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/RemoteSelectionManager.d.ts +102 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/RemoteSelectionManager.js +154 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/index.d.ts +3 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/styles.d.ts +2 -0
- package/cjs/components/shared/monaco-editor/utils/remoteMarker/styles.js +19 -0
- package/cjs/components/shared/monaco-editor/utils/theme/convert.d.ts +22 -0
- package/cjs/components/shared/monaco-editor/utils/theme/convert.js +89 -0
- package/cjs/components/shared/monaco-editor/utils/theme/index.d.ts +4 -0
- package/cjs/components/shared/monaco-editor/utils/theme/index.js +18 -0
- package/cjs/components/shared/no-vnc/NoVnc.d.ts +19 -0
- package/cjs/components/shared/no-vnc/NoVnc.js +279 -0
- package/cjs/components/shared/no-vnc/NoVncLazy.d.ts +3 -0
- package/cjs/components/shared/no-vnc/NoVncLazy.js +20 -0
- package/cjs/components/shared/no-vnc/index.d.ts +1 -0
- package/cjs/components/shared/preview-container/PreviewContainer.d.ts +9 -0
- package/cjs/components/shared/preview-container/PreviewContainer.js +37 -0
- package/cjs/components/shared/preview-container/index.d.ts +2 -0
- package/cjs/components/shared/web-browser/WebBrowser.d.ts +11 -0
- package/cjs/components/shared/web-browser/WebBrowser.js +170 -0
- package/cjs/components/shared/web-browser/index.d.ts +1 -0
- package/cjs/components/shared/xterm/Xterm.d.ts +32 -0
- package/cjs/components/shared/xterm/Xterm.js +236 -0
- package/cjs/components/shared/xterm/XtermLazy.d.ts +3 -0
- package/cjs/components/shared/xterm/XtermLazy.js +20 -0
- package/cjs/components/shared/xterm/index.d.ts +1 -0
- package/cjs/components/shared/xterm/locales/en.json.js +5 -0
- package/cjs/components/shared/xterm/locales/ko.json.js +5 -0
- package/cjs/components/shared/xterm/utils/index.d.ts +5 -0
- package/cjs/components/shared/xterm/utils/index.js +14 -0
- package/cjs/constants/arduino.d.ts +35 -0
- package/cjs/constants/arduino.js +75 -0
- package/cjs/constants/index.d.ts +1 -0
- package/cjs/constants/shortcutKeyMap.d.ts +27 -0
- package/cjs/constants/shortcutKeyMap.js +76 -0
- package/cjs/constants/stylesheets.d.ts +29 -0
- package/cjs/constants/stylesheets.js +44 -0
- package/cjs/hooks/index.d.ts +7 -0
- package/cjs/hooks/useArduino.d.ts +14 -0
- package/cjs/hooks/useArduino.js +529 -0
- package/cjs/hooks/useExerciseFile.d.ts +8 -0
- package/cjs/hooks/useExerciseFile.js +48 -0
- package/cjs/hooks/useExericseShortcut.d.ts +5 -0
- package/cjs/hooks/useExericseShortcut.js +24 -0
- package/cjs/hooks/useMaterialExerciseFileUrl.d.ts +10 -0
- package/cjs/hooks/useMaterialExerciseFileUrl.js +61 -0
- package/cjs/hooks/useRunnerRoomWebSocket.d.ts +19 -0
- package/cjs/hooks/useRunnerRoomWebSocket.js +161 -0
- package/cjs/hooks/useStdioWebSocket.d.ts +35 -0
- package/cjs/hooks/useStdioWebSocket.js +217 -0
- package/cjs/hooks/useUsercodeEditWebSocket.d.ts +57 -0
- package/cjs/hooks/useUsercodeEditWebSocket.js +606 -0
- package/cjs/hooks/useUsercodeHistory.d.ts +9 -0
- package/cjs/hooks/useUsercodeHistory.js +133 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +25 -0
- package/cjs/typings/arduino.d.ts +77 -0
- package/cjs/utils/arduino.d.ts +46 -0
- package/cjs/utils/arduino.js +86 -0
- package/cjs/utils/exerciseFile.d.ts +14 -0
- package/cjs/utils/exerciseFile.js +65 -0
- package/cjs/utils/index.d.ts +1 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/material-exercise/MaterialExercise.d.ts +6 -0
- package/es/components/material-exercise/MaterialExercise.js +164 -0
- package/es/components/material-exercise/MaterialExercise.styled.d.ts +36 -0
- package/es/components/material-exercise/MaterialExercise.styled.js +68 -0
- package/es/components/material-exercise/context/ExerciseIntlProvider.d.ts +12 -0
- package/es/components/material-exercise/context/ExerciseIntlProvider.js +43 -0
- package/es/components/material-exercise/context/ExerciseProvider.d.ts +11 -0
- package/es/components/material-exercise/context/ExerciseProvider.js +159 -0
- package/es/components/material-exercise/context/ExerciseProviderNoImage.d.ts +15 -0
- package/es/components/material-exercise/context/ExerciseProviderNoImage.js +55 -0
- package/es/components/material-exercise/context/context.d.ts +7 -0
- package/es/components/material-exercise/context/context.js +5 -0
- package/es/components/material-exercise/context/index.d.ts +7 -0
- package/es/components/material-exercise/context/locales/noImage.en.json.js +3 -0
- package/es/components/material-exercise/context/locales/noImage.ko.json.js +3 -0
- package/es/components/material-exercise/context/recoil.d.ts +144 -0
- package/es/components/material-exercise/context/recoil.js +600 -0
- package/es/components/material-exercise/context/recoilTypes.d.ts +95 -0
- package/es/components/material-exercise/context/recoilTypes.js +27 -0
- package/es/components/material-exercise/context/subjects.d.ts +13 -0
- package/es/components/material-exercise/context/subjects.js +19 -0
- package/es/components/material-exercise/context/types.d.ts +96 -0
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.d.ts +7 -0
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +143 -0
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.d.ts +10 -0
- package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.js +26 -0
- package/es/components/material-exercise/exercise-code-history/index.d.ts +2 -0
- package/es/components/material-exercise/exercise-file/ExerciseFile.d.ts +8 -0
- package/es/components/material-exercise/exercise-file/ExerciseFile.js +85 -0
- package/es/components/material-exercise/exercise-file/index.d.ts +1 -0
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileEditor.d.ts +6 -0
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +331 -0
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts +6 -0
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +36 -0
- package/es/components/material-exercise/exercise-file-editor/ExerciseMobileFileEditor.d.ts +8 -0
- package/es/components/material-exercise/exercise-file-editor/index.d.ts +1 -0
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +70 -0
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +83 -0
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.js +15 -0
- package/es/components/material-exercise/exercise-file-tabs/index.d.ts +2 -0
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js +3 -0
- package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js +3 -0
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.d.ts +5 -0
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +372 -0
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.js +15 -0
- package/es/components/material-exercise/exercise-file-tree/index.d.ts +2 -0
- package/es/components/material-exercise/exercise-file-tree/locales/en.json.js +3 -0
- package/es/components/material-exercise/exercise-file-tree/locales/ko.json.js +3 -0
- package/es/components/material-exercise/exercise-file-viewer/ExerciseFileViewer.d.ts +3 -0
- package/es/components/material-exercise/exercise-file-viewer/ExerciseFileViewer.js +44 -0
- package/es/components/material-exercise/exercise-file-viewer/index.d.ts +1 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +3 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenu.js +40 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.d.ts +3 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +131 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenuDropdown.d.ts +3 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +114 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.d.ts +3 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.js +92 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.d.ts +3 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +225 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.d.ts +13 -0
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.js +42 -0
- package/es/components/material-exercise/exercise-menu/index.d.ts +1 -0
- package/es/components/material-exercise/exercise-menu/locales/en.json.js +3 -0
- package/es/components/material-exercise/exercise-menu/locales/ko.json.js +3 -0
- package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdown.d.ts +3 -0
- package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdown.js +42 -0
- package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +3 -0
- package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.js +10 -0
- package/es/components/material-exercise/exercise-multilang-dropdown/index.d.ts +2 -0
- package/es/components/material-exercise/exercise-multilang-dropdown/types.d.ts +39 -0
- package/es/components/material-exercise/exercise-preview/ExercisePreview.d.ts +3 -0
- package/es/components/material-exercise/exercise-preview/ExercisePreview.js +111 -0
- package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts +5 -0
- package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +41 -0
- package/es/components/material-exercise/exercise-preview/index.d.ts +1 -0
- package/es/components/material-exercise/exercise-preview/locales/en.json.js +3 -0
- package/es/components/material-exercise/exercise-preview/locales/ko.json.js +3 -0
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +5 -0
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +123 -0
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEditorPerference.d.ts +3 -0
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEditorPerference.js +25 -0
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.d.ts +3 -0
- package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +106 -0
- package/es/components/material-exercise/exercise-rightpane/index.d.ts +1 -0
- package/es/components/material-exercise/exercise-rightpane/locales/en.json.js +3 -0
- package/es/components/material-exercise/exercise-rightpane/locales/ko.json.js +3 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoom.d.ts +7 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoom.js +27 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoom.styled.d.ts +9 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoom.styled.js +30 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoomDetail.d.ts +8 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoomDetail.js +492 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoomList.d.ts +7 -0
- package/es/components/material-exercise/exercise-room/ExerciseRoomList.js +188 -0
- package/es/components/material-exercise/exercise-room/helpers/exerciseRoomPermissionStringConvertor.d.ts +2 -0
- package/es/components/material-exercise/exercise-room/helpers/exerciseRoomPermissionStringConvertor.js +32 -0
- package/es/components/material-exercise/exercise-room/helpers/index.d.ts +1 -0
- package/es/components/material-exercise/exercise-room/index.d.ts +2 -0
- package/es/components/material-exercise/exercise-room/locales/en.json.js +3 -0
- package/es/components/material-exercise/exercise-room/locales/ko.json.js +3 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.d.ts +6 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunner.js +542 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerContext.d.ts +17 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerContext.js +5 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerController.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerController.js +39 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +105 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +262 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +180 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusIndicator.d.ts +5 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusIndicator.js +19 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +58 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.d.ts +3 -0
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +74 -0
- package/es/components/material-exercise/exercise-runner/index.d.ts +1 -0
- package/es/components/material-exercise/exercise-runner/locales/en.json.js +3 -0
- package/es/components/material-exercise/exercise-runner/locales/ko.json.js +3 -0
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.d.ts +6 -0
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +332 -0
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.styled.d.ts +9 -0
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.styled.js +30 -0
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistoryOutput.d.ts +6 -0
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistoryOutput.js +112 -0
- package/es/components/material-exercise/exercise-submit-history/index.d.ts +2 -0
- package/es/components/material-exercise/index.d.ts +3 -0
- package/es/components/shared/exercise-menu-button/ExerciseMenuButton.d.ts +10 -0
- package/es/components/shared/exercise-menu-button/ExerciseMenuButton.js +45 -0
- package/es/components/shared/exercise-menu-button/index.d.ts +2 -0
- package/es/components/shared/exercise-shimmer/ExerciseFileShimmer.d.ts +3 -0
- package/es/components/shared/exercise-shimmer/ExerciseFileShimmer.js +48 -0
- package/es/components/shared/exercise-shimmer/ExerciseFileTabShimmer.d.ts +6 -0
- package/es/components/shared/exercise-shimmer/ExerciseFileTabShimmer.js +30 -0
- package/es/components/shared/exercise-shimmer/ExerciseFileTabsShimmer.d.ts +3 -0
- package/es/components/shared/exercise-shimmer/ExerciseFileTabsShimmer.js +18 -0
- package/es/components/shared/exercise-shimmer/ExerciseFileTreeListItemShimmer.d.ts +6 -0
- package/es/components/shared/exercise-shimmer/ExerciseFileTreeListItemShimmer.js +33 -0
- package/es/components/shared/exercise-shimmer/ExerciseFileTreeListShimmer.d.ts +3 -0
- package/es/components/shared/exercise-shimmer/ExerciseFileTreeListShimmer.js +24 -0
- package/es/components/shared/exercise-shimmer/index.d.ts +5 -0
- package/es/components/shared/exercise-version-list/ExerciseVersionList.d.ts +3 -0
- package/es/components/shared/exercise-version-list/ExerciseVersionList.js +10 -0
- package/es/components/shared/exercise-version-list/ExerciseVersionList.styled.d.ts +8 -0
- package/es/components/shared/exercise-version-list/ExerciseVersionList.styled.js +8 -0
- package/es/components/shared/exercise-version-list/ExerciseVersionListItem.d.ts +8 -0
- package/es/components/shared/exercise-version-list/ExerciseVersionListItem.js +17 -0
- package/es/components/shared/exercise-version-list/ExerciseVersionListItem.styled.d.ts +6 -0
- package/es/components/shared/exercise-version-list/ExerciseVersionListItem.styled.js +18 -0
- package/es/components/shared/exercise-version-list/index.d.ts +2 -0
- package/es/components/shared/file-icon/FileIcon.d.ts +10 -0
- package/es/components/shared/file-icon/FileIcon.js +41 -0
- package/es/components/shared/file-icon/index.d.ts +2 -0
- package/es/components/shared/file-tabs/FileTab.d.ts +10 -0
- package/es/components/shared/file-tabs/FileTab.js +119 -0
- package/es/components/shared/file-tabs/FileTab.styled.d.ts +12 -0
- package/es/components/shared/file-tabs/FileTab.styled.js +38 -0
- package/es/components/shared/file-tabs/FileTabs.d.ts +15 -0
- package/es/components/shared/file-tabs/FileTabs.js +106 -0
- package/es/components/shared/file-tabs/FileTabs.styled.d.ts +6 -0
- package/es/components/shared/file-tabs/FileTabs.styled.js +16 -0
- package/es/components/shared/file-tabs/index.d.ts +2 -0
- package/es/components/shared/file-tabs/util.d.ts +10 -0
- package/es/components/shared/file-tabs/util.js +28 -0
- package/es/components/shared/file-tree/FileTree.d.ts +69 -0
- package/es/components/shared/file-tree/FileTree.js +38 -0
- package/es/components/shared/file-tree/FileTreeConfig.d.ts +13 -0
- package/es/components/shared/file-tree/FileTreeConfig.js +56 -0
- package/es/components/shared/file-tree/FileTreeList.d.ts +13 -0
- package/es/components/shared/file-tree/FileTreeList.js +127 -0
- package/es/components/shared/file-tree/FileTreeListItemContent.d.ts +9 -0
- package/es/components/shared/file-tree/FileTreeListItemContent.js +244 -0
- package/es/components/shared/file-tree/FileTreeListItemContent.styled.d.ts +37 -0
- package/es/components/shared/file-tree/FileTreeListItemContent.styled.js +89 -0
- package/es/components/shared/file-tree/FileTreeListItemContentInput.d.ts +15 -0
- package/es/components/shared/file-tree/FileTreeListItemContentInput.js +297 -0
- package/es/components/shared/file-tree/FileTreeListItemContentInput.styled.d.ts +3 -0
- package/es/components/shared/file-tree/FileTreeListItemContentInput.styled.js +16 -0
- package/es/components/shared/file-tree/FileTreeListItemContentMenu.d.ts +10 -0
- package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +303 -0
- package/es/components/shared/file-tree/FileTreeListItems.d.ts +8 -0
- package/es/components/shared/file-tree/FileTreeListItems.js +204 -0
- package/es/components/shared/file-tree/FileTreeListItems.styled.d.ts +2 -0
- package/es/components/shared/file-tree/FileTreeListItems.styled.js +10 -0
- package/es/components/shared/file-tree/FileTreeToolbar.d.ts +6 -0
- package/es/components/shared/file-tree/FileTreeToolbar.js +122 -0
- package/es/components/shared/file-tree/FileTreeToolbar.styled.d.ts +1 -0
- package/es/components/shared/file-tree/FileTreeToolbar.styled.js +8 -0
- package/es/components/shared/file-tree/context/FileTreeContext.d.ts +127 -0
- package/es/components/shared/file-tree/context/FileTreeContext.js +192 -0
- package/es/components/shared/file-tree/context/index.d.ts +1 -0
- package/es/components/shared/file-tree/index.d.ts +15 -0
- package/es/components/shared/file-tree/interface/index.d.ts +47 -0
- package/es/components/shared/file-tree/locales/en.json.js +3 -0
- package/es/components/shared/file-tree/locales/ko.json.js +3 -0
- package/es/components/shared/file-tree/utils/fileTreeFiles.d.ts +2 -0
- package/es/components/shared/file-tree/utils/fileTreeFiles.js +32 -0
- package/es/components/shared/file-tree/utils/fileTreeGenerator.d.ts +68 -0
- package/es/components/shared/file-tree/utils/fileTreeGenerator.js +243 -0
- package/es/components/shared/file-tree/utils/fileTreeInput.d.ts +4 -0
- package/es/components/shared/file-tree/utils/fileTreeInput.js +9 -0
- package/es/components/shared/file-tree/utils/fileTreeItem.d.ts +5 -0
- package/es/components/shared/file-tree/utils/fileTreeItem.js +10 -0
- package/es/components/shared/file-tree/utils/fileTreePath.d.ts +11 -0
- package/es/components/shared/file-tree/utils/fileTreePath.js +14 -0
- package/es/components/shared/file-tree/utils/index.d.ts +5 -0
- package/es/components/shared/file-viewer/FileViewer.d.ts +8 -0
- package/es/components/shared/file-viewer/FileViewer.js +158 -0
- package/es/components/shared/file-viewer/FileViewerCsv.d.ts +4 -0
- package/es/components/shared/file-viewer/FileViewerCsv.js +39 -0
- package/es/components/shared/file-viewer/FileViewerImage.d.ts +4 -0
- package/es/components/shared/file-viewer/FileViewerImage.js +32 -0
- package/es/components/shared/file-viewer/FileViewerIpynb.d.ts +4 -0
- package/es/components/shared/file-viewer/FileViewerIpynb.js +37 -0
- package/es/components/shared/file-viewer/FileViewerNonViewable.d.ts +7 -0
- package/es/components/shared/file-viewer/FileViewerNonViewable.js +124 -0
- package/es/components/shared/file-viewer/FileViewerText.d.ts +4 -0
- package/es/components/shared/file-viewer/FileViewerText.js +50 -0
- package/es/components/shared/file-viewer/index.d.ts +2 -0
- package/es/components/shared/file-viewer/locales/en.json.js +3 -0
- package/es/components/shared/file-viewer/locales/ko.json.js +3 -0
- package/es/components/shared/file-viewer/locales/nonViewable.en.json.js +3 -0
- package/es/components/shared/file-viewer/locales/nonViewable.ko.json.js +3 -0
- package/es/components/shared/material-modal/MaterialModal.d.ts +8 -0
- package/es/components/shared/material-modal/MaterialModal.js +35 -0
- package/es/components/shared/material-modal/MaterialModal.styled.d.ts +7 -0
- package/es/components/shared/material-modal/MaterialModal.styled.js +21 -0
- package/es/components/shared/material-modal/index.d.ts +1 -0
- package/es/components/shared/monaco-editor/MonacoEditor.d.ts +86 -0
- package/es/components/shared/monaco-editor/MonacoEditor.js +355 -0
- package/es/components/shared/monaco-editor/MonacoEditorLazy.d.ts +3 -0
- package/es/components/shared/monaco-editor/MonacoEditorLazy.js +17 -0
- package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +9 -0
- package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +304 -0
- package/es/components/shared/monaco-editor/constants/grammars/JSON.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/MagicPython.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/TypeScriptReact.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/asp-vb-net.tmlanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/c.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/cpp.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/csharp.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/css.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/dart.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/fsharp.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/go.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/html.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/index.d.ts +10 -0
- package/es/components/shared/monaco-editor/constants/grammars/index.js +159 -0
- package/es/components/shared/monaco-editor/constants/grammars/java.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/lua.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/objective-c.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/php.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/r.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/ruby.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/rust.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/scss.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/sql.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/swift.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/xml.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/grammars/yaml.tmLanguage.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/index.d.ts +2 -0
- package/es/components/shared/monaco-editor/constants/monaco/index.d.ts +1 -0
- package/es/components/shared/monaco-editor/constants/monaco/preferences.d.ts +29 -0
- package/es/components/shared/monaco-editor/constants/monaco/preferences.js +40 -0
- package/es/components/shared/monaco-editor/constants/themes/abyss.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/elice.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/index.d.ts +7 -0
- package/es/components/shared/monaco-editor/constants/themes/index.js +83 -0
- package/es/components/shared/monaco-editor/constants/themes/kimbie-dark.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/monokai.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/quietlight.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/red.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/solarized-dark.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/solarized-light.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/tomorrow-night-blue.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/vs-dark-plus.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/vs-dark.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/vs-hc-black.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/vs-hc-light.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/vs-light-plus.json.js +3 -0
- package/es/components/shared/monaco-editor/constants/themes/vs-light.json.js +3 -0
- package/es/components/shared/monaco-editor/editor-hooks/index.d.ts +6 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.d.ts +10 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventChange.js +34 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.d.ts +12 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventCursor.js +42 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.d.ts +12 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoEventScroll.js +31 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.d.ts +20 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.js +175 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.d.ts +9 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +43 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoTheme.d.ts +6 -0
- package/es/components/shared/monaco-editor/editor-hooks/useMonacoTheme.js +27 -0
- package/es/components/shared/monaco-editor/editor-languages/css/formatter.d.ts +3 -0
- package/es/components/shared/monaco-editor/editor-languages/css/formatter.js +17 -0
- package/es/components/shared/monaco-editor/editor-languages/css/index.d.ts +9 -0
- package/es/components/shared/monaco-editor/editor-languages/css/index.js +28 -0
- package/es/components/shared/monaco-editor/editor-languages/html/formatter.d.ts +3 -0
- package/es/components/shared/monaco-editor/editor-languages/html/formatter.js +17 -0
- package/es/components/shared/monaco-editor/editor-languages/html/index.d.ts +9 -0
- package/es/components/shared/monaco-editor/editor-languages/html/index.js +26 -0
- package/es/components/shared/monaco-editor/editor-languages/index.d.ts +1 -0
- package/es/components/shared/monaco-editor/editor-languages/index.js +11 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.d.ts +7 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/_helper.js +8 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/express.d.ts +5 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/express.js +12 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/index.d.ts +3 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/propTypes.d.ts +5 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/propTypes.js +12 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/react.d.ts +5 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/dts/react.js +12 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/formatter.d.ts +3 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/formatter.js +17 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/index.d.ts +25 -0
- package/es/components/shared/monaco-editor/editor-languages/typescript/index.js +94 -0
- package/es/components/shared/monaco-editor/hooks/index.d.ts +1 -0
- package/es/components/shared/monaco-editor/hooks/useEditorOptions.d.ts +8 -0
- package/es/components/shared/monaco-editor/hooks/useEditorOptions.js +82 -0
- package/es/components/shared/monaco-editor/index.d.ts +6 -0
- package/es/components/shared/monaco-editor/locales/en.json.js +3 -0
- package/es/components/shared/monaco-editor/locales/ko.json.js +3 -0
- package/es/components/shared/monaco-editor/utils/grammar/index.d.ts +4 -0
- package/es/components/shared/monaco-editor/utils/grammar/index.js +60 -0
- package/es/components/shared/monaco-editor/utils/grammar/onigasm.d.ts +4 -0
- package/es/components/shared/monaco-editor/utils/grammar/onigasm.js +15 -0
- package/es/components/shared/monaco-editor/utils/grammar/textmate.d.ts +9 -0
- package/es/components/shared/monaco-editor/utils/grammar/textmate.js +65 -0
- package/es/components/shared/monaco-editor/utils/index.d.ts +2 -0
- package/es/components/shared/monaco-editor/utils/monacoLanguage.d.ts +4 -0
- package/es/components/shared/monaco-editor/utils/monacoLanguage.js +53 -0
- package/es/components/shared/monaco-editor/utils/monacoPreference.d.ts +5 -0
- package/es/components/shared/monaco-editor/utils/monacoPreference.js +22 -0
- package/es/components/shared/monaco-editor/utils/prettier/config.d.ts +9 -0
- package/es/components/shared/monaco-editor/utils/prettier/config.js +22 -0
- package/es/components/shared/monaco-editor/utils/prettier/index.d.ts +17 -0
- package/es/components/shared/monaco-editor/utils/prettier/index.js +12 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/OnDisposed.d.ts +4 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/RemoteCursor.d.ts +49 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/RemoteCursor.js +93 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/RemoteCursorManager.d.ts +48 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/RemoteCursorManager.js +115 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/RemoteCursorWidget.d.ts +29 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/RemoteCursorWidget.js +177 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/RemoteSelection.d.ts +112 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/RemoteSelection.js +198 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/RemoteSelectionManager.d.ts +102 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/RemoteSelectionManager.js +150 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/index.d.ts +3 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/styles.d.ts +2 -0
- package/es/components/shared/monaco-editor/utils/remoteMarker/styles.js +14 -0
- package/es/components/shared/monaco-editor/utils/theme/convert.d.ts +22 -0
- package/es/components/shared/monaco-editor/utils/theme/convert.js +81 -0
- package/es/components/shared/monaco-editor/utils/theme/index.d.ts +4 -0
- package/es/components/shared/monaco-editor/utils/theme/index.js +14 -0
- package/es/components/shared/no-vnc/NoVnc.d.ts +19 -0
- package/es/components/shared/no-vnc/NoVnc.js +265 -0
- package/es/components/shared/no-vnc/NoVncLazy.d.ts +3 -0
- package/es/components/shared/no-vnc/NoVncLazy.js +12 -0
- package/es/components/shared/no-vnc/index.d.ts +1 -0
- package/es/components/shared/preview-container/PreviewContainer.d.ts +9 -0
- package/es/components/shared/preview-container/PreviewContainer.js +26 -0
- package/es/components/shared/preview-container/index.d.ts +2 -0
- package/es/components/shared/web-browser/WebBrowser.d.ts +11 -0
- package/es/components/shared/web-browser/WebBrowser.js +163 -0
- package/es/components/shared/web-browser/index.d.ts +1 -0
- package/es/components/shared/xterm/Xterm.d.ts +32 -0
- package/es/components/shared/xterm/Xterm.js +229 -0
- package/es/components/shared/xterm/XtermLazy.d.ts +3 -0
- package/es/components/shared/xterm/XtermLazy.js +12 -0
- package/es/components/shared/xterm/index.d.ts +1 -0
- package/es/components/shared/xterm/locales/en.json.js +3 -0
- package/es/components/shared/xterm/locales/ko.json.js +3 -0
- package/es/components/shared/xterm/utils/index.d.ts +5 -0
- package/es/components/shared/xterm/utils/index.js +10 -0
- package/es/constants/arduino.d.ts +35 -0
- package/es/constants/arduino.js +62 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/shortcutKeyMap.d.ts +27 -0
- package/es/constants/shortcutKeyMap.js +74 -0
- package/es/constants/stylesheets.d.ts +29 -0
- package/es/constants/stylesheets.js +36 -0
- package/es/hooks/index.d.ts +7 -0
- package/es/hooks/useArduino.d.ts +14 -0
- package/es/hooks/useArduino.js +521 -0
- package/es/hooks/useExerciseFile.d.ts +8 -0
- package/es/hooks/useExerciseFile.js +43 -0
- package/es/hooks/useExericseShortcut.d.ts +5 -0
- package/es/hooks/useExericseShortcut.js +20 -0
- package/es/hooks/useMaterialExerciseFileUrl.d.ts +10 -0
- package/es/hooks/useMaterialExerciseFileUrl.js +53 -0
- package/es/hooks/useRunnerRoomWebSocket.d.ts +19 -0
- package/es/hooks/useRunnerRoomWebSocket.js +157 -0
- package/es/hooks/useStdioWebSocket.d.ts +35 -0
- package/es/hooks/useStdioWebSocket.js +213 -0
- package/es/hooks/useUsercodeEditWebSocket.d.ts +57 -0
- package/es/hooks/useUsercodeEditWebSocket.js +597 -0
- package/es/hooks/useUsercodeHistory.d.ts +9 -0
- package/es/hooks/useUsercodeHistory.js +129 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +7 -0
- package/es/typings/arduino.d.ts +77 -0
- package/es/utils/arduino.d.ts +46 -0
- package/es/utils/arduino.js +77 -0
- package/es/utils/exerciseFile.d.ts +14 -0
- package/es/utils/exerciseFile.js +60 -0
- package/es/utils/index.d.ts +1 -0
- package/package.json +142 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
require('filesize');
|
|
7
|
+
var fileTreeGenerator = require('../utils/fileTreeGenerator.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
+
|
|
13
|
+
const StateContext = React__default["default"].createContext(undefined);
|
|
14
|
+
const DispatchContext = React__default["default"].createContext(undefined);
|
|
15
|
+
StateContext.displayName = 'FileTreeStateContext';
|
|
16
|
+
DispatchContext.displayName = 'FileTreeDispatchContext';
|
|
17
|
+
|
|
18
|
+
function reducer(state, action) {
|
|
19
|
+
switch (action.type) {
|
|
20
|
+
case 'UPDATE_THEME':
|
|
21
|
+
return Object.assign(Object.assign({}, state), {
|
|
22
|
+
theme: action.theme
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
case 'TOGGLE_OPENED_DIRECTORY_LIST':
|
|
26
|
+
return Object.assign(Object.assign({}, state), {
|
|
27
|
+
openedDirectoryList: state.openedDirectoryList.includes(action.path) ? state.openedDirectoryList.filter(path => path !== action.path) : [...state.openedDirectoryList, action.path]
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
case 'ADD_OPENED_DIRECTORY_LIST':
|
|
31
|
+
return Object.assign(Object.assign({}, state), {
|
|
32
|
+
openedDirectoryList: [...new Set([...state.openedDirectoryList, action.path])]
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
case 'NEW_INPUT_OPEN':
|
|
36
|
+
return Object.assign(Object.assign({}, state), {
|
|
37
|
+
newInput: {
|
|
38
|
+
type: action.newInput.type,
|
|
39
|
+
path: action.newInput.path
|
|
40
|
+
},
|
|
41
|
+
openedDirectoryList: [...state.openedDirectoryList, action.newInput.path]
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
case 'NEW_INPUT_CLOSE':
|
|
45
|
+
return Object.assign(Object.assign({}, state), {
|
|
46
|
+
newInput: undefined
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
case 'UPDATE_FILE_TREE':
|
|
50
|
+
return Object.assign(Object.assign({}, state), {
|
|
51
|
+
fileTree: action.fileTree
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
case 'UPDATE_RENAME_INPUT_PATH':
|
|
55
|
+
return Object.assign(Object.assign({}, state), {
|
|
56
|
+
renameInputPath: action.path
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
case 'UPDATE_DRAGGED_PATH':
|
|
60
|
+
return Object.assign(Object.assign({}, state), {
|
|
61
|
+
draggedPath: action.path
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
case 'UPDATE_DROPZONE_PATH':
|
|
65
|
+
return Object.assign(Object.assign({}, state), {
|
|
66
|
+
dropzonePath: action.path
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
case 'UPDATE_MODE':
|
|
70
|
+
return Object.assign(Object.assign({}, state), {
|
|
71
|
+
mode: action.mode
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
case 'INITIAL_OPEN_FILELIST_UPDATE':
|
|
75
|
+
return Object.assign(Object.assign({}, state), {
|
|
76
|
+
initialOpenFileListTemp: [...action.initialOpenFilelist]
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
case 'INITIAL_OPEN_FILELIST_ADD':
|
|
80
|
+
return Object.assign(Object.assign({}, state), {
|
|
81
|
+
initialOpenFileListTemp: [...state.initialOpenFileListTemp, action.path]
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
case 'INITIAL_OPEN_FILELIST_REMOVE':
|
|
85
|
+
return Object.assign(Object.assign({}, state), {
|
|
86
|
+
initialOpenFileListTemp: state.initialOpenFileListTemp.filter(path => path !== action.path)
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
default:
|
|
90
|
+
return state;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const init = state => Object.assign({}, state);
|
|
95
|
+
|
|
96
|
+
function FileTreeProvider({
|
|
97
|
+
theme = 'dark',
|
|
98
|
+
collapsed = false,
|
|
99
|
+
activePath,
|
|
100
|
+
allowToggleReadonly = false,
|
|
101
|
+
allowToggleHidden = false,
|
|
102
|
+
onCollapse,
|
|
103
|
+
onActivePathChange,
|
|
104
|
+
maxFileUploadSize = 50,
|
|
105
|
+
onFilesUpload,
|
|
106
|
+
onFileAdd,
|
|
107
|
+
onDirectoryAdd,
|
|
108
|
+
onHiddenSet,
|
|
109
|
+
onReadOnlySet,
|
|
110
|
+
onFileDelete,
|
|
111
|
+
onDirectoryDelete,
|
|
112
|
+
onFileMove,
|
|
113
|
+
onDirectoryMove,
|
|
114
|
+
exerciseRoomFilelist,
|
|
115
|
+
imageFilelist,
|
|
116
|
+
readOnlyFilelist,
|
|
117
|
+
hiddenFilelist,
|
|
118
|
+
isHiddenFilelistVisible = false,
|
|
119
|
+
children
|
|
120
|
+
}) {
|
|
121
|
+
const [state, dispatch] = React__default["default"].useReducer(reducer, {
|
|
122
|
+
mode: 'default',
|
|
123
|
+
maxFileUploadSize,
|
|
124
|
+
draggedPath: null,
|
|
125
|
+
dropzonePath: null,
|
|
126
|
+
openedDirectoryList: [],
|
|
127
|
+
initialOpenFileListTemp: [],
|
|
128
|
+
theme,
|
|
129
|
+
fileTree: fileTreeGenerator.create({
|
|
130
|
+
exerciseRoomFilelist,
|
|
131
|
+
imageFilelist,
|
|
132
|
+
hiddenFilelist,
|
|
133
|
+
readOnlyFilelist,
|
|
134
|
+
openedDirectoryList: []
|
|
135
|
+
})
|
|
136
|
+
}, init);
|
|
137
|
+
React__default["default"].useEffect(() => {
|
|
138
|
+
dispatch({
|
|
139
|
+
type: 'UPDATE_FILE_TREE',
|
|
140
|
+
fileTree: fileTreeGenerator.create({
|
|
141
|
+
exerciseRoomFilelist,
|
|
142
|
+
imageFilelist,
|
|
143
|
+
hiddenFilelist,
|
|
144
|
+
readOnlyFilelist,
|
|
145
|
+
initialOpenFilelist: state.initialOpenFileListTemp,
|
|
146
|
+
openedDirectoryList: state.openedDirectoryList,
|
|
147
|
+
newInput: state.newInput,
|
|
148
|
+
renameInputPath: state.renameInputPath
|
|
149
|
+
})
|
|
150
|
+
});
|
|
151
|
+
}, [exerciseRoomFilelist, imageFilelist, hiddenFilelist, readOnlyFilelist, state.initialOpenFileListTemp, state.openedDirectoryList, state.newInput, state.renameInputPath]);
|
|
152
|
+
return (// StateContext and DispatchContext are seperated on purpose in order to optimize rendering performance.
|
|
153
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
154
|
+
value: Object.assign(Object.assign({}, state), {
|
|
155
|
+
collapsed,
|
|
156
|
+
activePath,
|
|
157
|
+
allowToggleReadonly,
|
|
158
|
+
allowToggleHidden,
|
|
159
|
+
isHiddenFilelistVisible
|
|
160
|
+
})
|
|
161
|
+
}, React__default["default"].createElement(DispatchContext.Provider, {
|
|
162
|
+
value: {
|
|
163
|
+
dispatch,
|
|
164
|
+
onCollapse,
|
|
165
|
+
onActivePathChange,
|
|
166
|
+
onFileAdd,
|
|
167
|
+
onDirectoryAdd,
|
|
168
|
+
onHiddenSet,
|
|
169
|
+
onReadOnlySet,
|
|
170
|
+
onFileDelete,
|
|
171
|
+
onDirectoryDelete,
|
|
172
|
+
onFileMove,
|
|
173
|
+
onDirectoryMove,
|
|
174
|
+
onFilesUpload
|
|
175
|
+
}
|
|
176
|
+
}, children))
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function useFileTreeState() {
|
|
181
|
+
const context = React__default["default"].useContext(StateContext);
|
|
182
|
+
|
|
183
|
+
if (context === undefined) {
|
|
184
|
+
throw new Error('useFileTreeState must be used within a FileTreeProvider');
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
return context;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function useFileTreeDispatch() {
|
|
191
|
+
const context = React__default["default"].useContext(DispatchContext);
|
|
192
|
+
|
|
193
|
+
if (context === undefined) {
|
|
194
|
+
throw new Error('useFileTreeDispatch must be used within a FileTreeProvider');
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return context;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
exports.FileTreeProvider = FileTreeProvider;
|
|
201
|
+
exports.useFileTreeDispatch = useFileTreeDispatch;
|
|
202
|
+
exports.useFileTreeState = useFileTreeState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FileTreeContext';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as FileTree } from './FileTree';
|
|
2
|
+
export type { FileTreeProps } from './FileTree';
|
|
3
|
+
export type { FileTreeToolbarProps } from './FileTreeToolbar';
|
|
4
|
+
export type { FileTreeListProps } from './FileTreeList';
|
|
5
|
+
export type { FileTreeConfigProps } from './FileTreeConfig';
|
|
6
|
+
export type { OnDirectoryAdd, OnDirectoryAddParams } from './interface';
|
|
7
|
+
export type { OnFileAdd, OnFileAddParams } from './interface';
|
|
8
|
+
export type { OnDirectoryDelete } from './interface';
|
|
9
|
+
export type { OnFileDelete } from './interface';
|
|
10
|
+
export type { OnFilesUpload, OnFilesUploadParams } from './interface';
|
|
11
|
+
export type { OnDirectoryMove, OnDirectoryMoveParams } from './interface';
|
|
12
|
+
export type { OnFileMove, OnFileMoveParams } from './interface';
|
|
13
|
+
export type { OnHiddenSet, OnHiddenSetParams } from './interface';
|
|
14
|
+
export type { OnInitialOpenFileSet, OnInitialOpenFileSetParams, } from './interface';
|
|
15
|
+
export type { OnReadOnlySet, OnReadOnlySetParams } from './interface';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare type OnFileAddParams = {
|
|
2
|
+
path: string;
|
|
3
|
+
userFile?: File;
|
|
4
|
+
emptyFileWithName?: string;
|
|
5
|
+
overwrite?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare type OnFileAdd = (params: OnFileAddParams) => Promise<any>;
|
|
8
|
+
export declare type OnDirectoryAddParams = {
|
|
9
|
+
path: string;
|
|
10
|
+
name: string;
|
|
11
|
+
overwrite?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare type OnDirectoryAdd = (params: OnDirectoryAddParams) => Promise<any>;
|
|
14
|
+
export declare type OnHiddenSetParams = {
|
|
15
|
+
path: string;
|
|
16
|
+
isHidden: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare type OnHiddenSet = (params: OnHiddenSetParams) => void;
|
|
19
|
+
export declare type OnReadOnlySetParams = {
|
|
20
|
+
path: string;
|
|
21
|
+
isReadOnly: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare type OnReadOnlySet = (params: OnReadOnlySetParams) => void;
|
|
24
|
+
export declare type OnFileDelete = (path: string) => Promise<any>;
|
|
25
|
+
export declare type OnDirectoryDelete = (path: string) => Promise<any>;
|
|
26
|
+
export declare type OnFileMoveParams = {
|
|
27
|
+
currentFilename: string;
|
|
28
|
+
newPath: string;
|
|
29
|
+
newName: string;
|
|
30
|
+
};
|
|
31
|
+
export declare type OnFileMove = (params: OnFileMoveParams) => Promise<any>;
|
|
32
|
+
export declare type OnDirectoryMoveParams = {
|
|
33
|
+
currentFilename: string;
|
|
34
|
+
newPath: string;
|
|
35
|
+
newName: string;
|
|
36
|
+
};
|
|
37
|
+
export declare type OnDirectoryMove = (params: OnDirectoryMoveParams) => Promise<any>;
|
|
38
|
+
export declare type OnInitialOpenFileSetParams = {
|
|
39
|
+
path: string;
|
|
40
|
+
isInitialOpen: boolean;
|
|
41
|
+
};
|
|
42
|
+
export declare type OnInitialOpenFileSet = (params: OnInitialOpenFileSetParams) => void;
|
|
43
|
+
export declare type OnFilesUploadParams = {
|
|
44
|
+
files: FileList;
|
|
45
|
+
path: string;
|
|
46
|
+
};
|
|
47
|
+
export declare type OnFilesUpload = (params: OnFilesUploadParams) => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var phrasesEn = {"fileTree.list.item.content.input.validation.error.filename.dot":"The filename can't be \".\" or \"..\".","fileTree.list.item.content.input.validation.error.filename.dotElice":"The filename can't be \".elice\".","fileTree.list.item.content.input.validation.error.filename.duplicated":"The file name is already used.","fileTree.list.item.content.input.validation.error.filename.slash":"The filename can't include slash or backslash.","fileTree.list.item.content.input.validation.error.maxLength":"The filename can't be more than {maxLength} characters long.","fileTree.list.item.content.input.validation.error.required":"Please enter a filename.","fileTree.list.item.content.menu.deleteConfirmDialog.body":"Are you sure you want to delete \"{title}\"?","fileTree.list.item.content.menu.deleteConfirmDialog.cancel":"Cancel","fileTree.list.item.content.menu.deleteConfirmDialog.confirm":"Delete","fileTree.list.item.content.menu.deleteConfirmDialog.title":"Confirm Delete","fileTree.list.item.content.menu.item.delete":"Delete","fileTree.list.item.content.menu.item.hiddenSet":"Set Hidden","fileTree.list.item.content.menu.item.hiddenUnset":"Unset Hidden","fileTree.list.item.content.menu.item.newDirectory":"New Directory","fileTree.list.item.content.menu.item.newFile":"New File","fileTree.list.item.content.menu.item.readOnlySet":"Set Read-only","fileTree.list.item.content.menu.item.readOnlyUnset":"Unset Read-only","fileTree.list.item.content.menu.item.rename":"Rename","fileTree.toolbar.newDirectory":"New Directory","fileTree.toolbar.newFile":"New File","fileTree.toolbar.upload":"Upload File"};
|
|
4
|
+
|
|
5
|
+
module.exports = phrasesEn;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var phrasesKo = {"fileTree.list.item.content.input.validation.error.filename.dot":"파일 이름은 \".\" 혹은 \"..\"을 사용할 수 없습니다.","fileTree.list.item.content.input.validation.error.filename.dotElice":"파일 이름은 \".elice\"를 사용할 수 없습니다.","fileTree.list.item.content.input.validation.error.filename.duplicated":"이미 존재하는 파일 이름입니다.","fileTree.list.item.content.input.validation.error.filename.slash":"파일 이름은 슬래시나 역슬래시를 포함할 수 없습니다.","fileTree.list.item.content.input.validation.error.maxLength":"파일 이름은 {maxLength}자를 초과할 수 없습니다..","fileTree.list.item.content.input.validation.error.required":"파일 이름을 입력해주세요.","fileTree.list.item.content.menu.deleteConfirmDialog.body":"\"{title}\" 파일을 삭제하시겠습니까?","fileTree.list.item.content.menu.deleteConfirmDialog.cancel":"취소","fileTree.list.item.content.menu.deleteConfirmDialog.confirm":"확인","fileTree.list.item.content.menu.deleteConfirmDialog.title":"파일 삭제","fileTree.list.item.content.menu.item.delete":"삭제","fileTree.list.item.content.menu.item.hiddenSet":"파일 숨기기","fileTree.list.item.content.menu.item.hiddenUnset":"파일 보이기","fileTree.list.item.content.menu.item.newDirectory":"새 폴더","fileTree.list.item.content.menu.item.newFile":"새 파일","fileTree.list.item.content.menu.item.readOnlySet":"읽기 전용","fileTree.list.item.content.menu.item.readOnlyUnset":"읽기 전용 해제","fileTree.list.item.content.menu.item.rename":"이름 바꾸기","fileTree.toolbar.newDirectory":"새 폴더 추가","fileTree.toolbar.newFile":"새 파일 추가","fileTree.toolbar.upload":"파일 업로드"};
|
|
4
|
+
|
|
5
|
+
module.exports = phrasesKo;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var filesize = require('filesize');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var filesize__default = /*#__PURE__*/_interopDefaultLegacy(filesize);
|
|
10
|
+
|
|
11
|
+
const validateFileSize = (file, maxFileUploadSize) => {
|
|
12
|
+
const {
|
|
13
|
+
value: currentSize,
|
|
14
|
+
unit: currentUnit
|
|
15
|
+
} = filesize__default["default"](file.size, {
|
|
16
|
+
output: 'object',
|
|
17
|
+
base: 10,
|
|
18
|
+
exponent: 2
|
|
19
|
+
});
|
|
20
|
+
const {
|
|
21
|
+
value: maxSize,
|
|
22
|
+
unit: maxUnit
|
|
23
|
+
} = filesize__default["default"](maxFileUploadSize * 1024 * 1024, {
|
|
24
|
+
output: 'object',
|
|
25
|
+
base: 10,
|
|
26
|
+
exponent: 2
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
if (currentSize > maxSize) {
|
|
30
|
+
alert(`The file size can be up to ${maxSize}${maxUnit}, but your file(${file.name}) size is ${currentSize}${currentUnit}.`);
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return true;
|
|
35
|
+
};
|
|
36
|
+
const validateFilesSize = (files, maxFileUploadSize) => {
|
|
37
|
+
return Array.from(files).every(file => validateFileSize(file, maxFileUploadSize));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
exports.validateFileSize = validateFileSize;
|
|
41
|
+
exports.validateFilesSize = validateFilesSize;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { NewInput } from '../context';
|
|
2
|
+
export declare class FileTreeRoot {
|
|
3
|
+
readonly root: FileTreeNode;
|
|
4
|
+
readonly directoryNodes: {
|
|
5
|
+
[key: string]: FileTreeNode;
|
|
6
|
+
};
|
|
7
|
+
imageFilelist: string[];
|
|
8
|
+
readOnlyFilelist: string[];
|
|
9
|
+
hiddenFilelist: string[];
|
|
10
|
+
openedDirectoryList: string[];
|
|
11
|
+
renameInputPath?: string;
|
|
12
|
+
initialOpenFilelist: string[];
|
|
13
|
+
constructor({ imageFilelist, readOnlyFilelist, hiddenFilelist, openedDirectoryList, renameInputPath, initialOpenFilelist, }: {
|
|
14
|
+
imageFilelist: string[];
|
|
15
|
+
readOnlyFilelist: string[];
|
|
16
|
+
hiddenFilelist: string[];
|
|
17
|
+
openedDirectoryList: string[];
|
|
18
|
+
newInputDirectoryPath?: string;
|
|
19
|
+
newInputFilePath?: string;
|
|
20
|
+
renameInputPath?: string;
|
|
21
|
+
initialOpenFilelist?: string[];
|
|
22
|
+
});
|
|
23
|
+
createDirectoryNode(path: string, parentPath: string): FileTreeNode;
|
|
24
|
+
createFileNode(path: string, parentPath: string): FileTreeNode;
|
|
25
|
+
getParentNode(path: string): FileTreeNode;
|
|
26
|
+
insert(path: string): void;
|
|
27
|
+
insertInputNode(path: string, inputType: 'directory' | 'file'): void;
|
|
28
|
+
_setDirectoriesRemovable(node: FileTreeNode): boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare class FileTreeNode {
|
|
31
|
+
readonly path: string;
|
|
32
|
+
readonly title: string;
|
|
33
|
+
readonly isDirectory: boolean;
|
|
34
|
+
readonly isEdit: boolean;
|
|
35
|
+
isReadonly: boolean;
|
|
36
|
+
isRemovable: boolean;
|
|
37
|
+
isHidden: boolean;
|
|
38
|
+
expanded: boolean;
|
|
39
|
+
isRenaming: boolean;
|
|
40
|
+
children: FileTreeNode[];
|
|
41
|
+
parentPath: string;
|
|
42
|
+
isInitialOpen: boolean;
|
|
43
|
+
constructor({ path, parentPath, title, isDirectory, isReadonly, isRemovable, isHidden, expanded, isEdit, isRenaming, isInitialOpen, }: {
|
|
44
|
+
path: string;
|
|
45
|
+
parentPath: string;
|
|
46
|
+
title?: string;
|
|
47
|
+
isDirectory?: boolean;
|
|
48
|
+
isReadonly?: boolean;
|
|
49
|
+
isRemovable?: boolean;
|
|
50
|
+
isHidden?: boolean;
|
|
51
|
+
expanded?: boolean;
|
|
52
|
+
isEdit?: boolean;
|
|
53
|
+
isRenaming?: boolean;
|
|
54
|
+
isInitialOpen?: boolean;
|
|
55
|
+
});
|
|
56
|
+
findTreeNode(path: string, depth?: number): FileTreeNode | undefined;
|
|
57
|
+
}
|
|
58
|
+
export declare function create({ imageFilelist, exerciseRoomFilelist, openedDirectoryList, hiddenFilelist, readOnlyFilelist, newInput, renameInputPath, initialOpenFilelist, }: {
|
|
59
|
+
imageFilelist: string[];
|
|
60
|
+
exerciseRoomFilelist: string[];
|
|
61
|
+
openedDirectoryList: string[];
|
|
62
|
+
hiddenFilelist?: string[];
|
|
63
|
+
readOnlyFilelist?: string[];
|
|
64
|
+
newInput?: NewInput;
|
|
65
|
+
renameInputPath?: string;
|
|
66
|
+
initialOpenFilelist?: string[];
|
|
67
|
+
}): FileTreeNode;
|
|
68
|
+
export declare function getParentPath(path: string): string;
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var fileTreeItem = require('./fileTreeItem.js');
|
|
6
|
+
|
|
7
|
+
class FileTreeRoot {
|
|
8
|
+
constructor({
|
|
9
|
+
imageFilelist = [],
|
|
10
|
+
readOnlyFilelist = [],
|
|
11
|
+
hiddenFilelist = [],
|
|
12
|
+
openedDirectoryList = [],
|
|
13
|
+
renameInputPath,
|
|
14
|
+
initialOpenFilelist = []
|
|
15
|
+
}) {
|
|
16
|
+
this.root = new FileTreeNode({
|
|
17
|
+
path: '',
|
|
18
|
+
expanded: true,
|
|
19
|
+
parentPath: ''
|
|
20
|
+
});
|
|
21
|
+
this.directoryNodes = {};
|
|
22
|
+
this.imageFilelist = imageFilelist;
|
|
23
|
+
this.readOnlyFilelist = readOnlyFilelist;
|
|
24
|
+
this.hiddenFilelist = hiddenFilelist;
|
|
25
|
+
this.openedDirectoryList = openedDirectoryList;
|
|
26
|
+
this.renameInputPath = renameInputPath;
|
|
27
|
+
this.initialOpenFilelist = initialOpenFilelist;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
createDirectoryNode(path, parentPath) {
|
|
31
|
+
return new FileTreeNode({
|
|
32
|
+
path,
|
|
33
|
+
expanded: this.openedDirectoryList.includes(path),
|
|
34
|
+
isDirectory: true,
|
|
35
|
+
isRenaming: path === this.renameInputPath,
|
|
36
|
+
parentPath
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
createFileNode(path, parentPath) {
|
|
41
|
+
return new FileTreeNode({
|
|
42
|
+
path,
|
|
43
|
+
isRenaming: path === this.renameInputPath,
|
|
44
|
+
parentPath,
|
|
45
|
+
isInitialOpen: this.initialOpenFilelist.includes(path)
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
getParentNode(path) {
|
|
50
|
+
const parentPath = getParentPath(path); // root scope
|
|
51
|
+
|
|
52
|
+
if (!parentPath) {
|
|
53
|
+
return this.root;
|
|
54
|
+
} else if (this.directoryNodes[parentPath]) {
|
|
55
|
+
return this.directoryNodes[parentPath];
|
|
56
|
+
} else {
|
|
57
|
+
const grandParentNode = this.getParentNode(parentPath);
|
|
58
|
+
const parentNode = this.createDirectoryNode(parentPath, grandParentNode.path);
|
|
59
|
+
grandParentNode.children.push(parentNode);
|
|
60
|
+
grandParentNode.children = arrangeFileAndDirectoryNameByPath(grandParentNode.children);
|
|
61
|
+
this.directoryNodes[parentPath] = parentNode;
|
|
62
|
+
return parentNode;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
insert(path) {
|
|
67
|
+
let parentNode = null;
|
|
68
|
+
let node = null; // folder
|
|
69
|
+
|
|
70
|
+
if (path.endsWith('/')) {
|
|
71
|
+
const cleanPath = path.slice(0, path.length - 1);
|
|
72
|
+
parentNode = this.getParentNode(cleanPath);
|
|
73
|
+
node = this.createDirectoryNode(cleanPath, parentNode.path); // if directory does not exist, add a new node
|
|
74
|
+
|
|
75
|
+
if (!this.directoryNodes[cleanPath]) {
|
|
76
|
+
this.directoryNodes[cleanPath] = node;
|
|
77
|
+
parentNode.children.push(node);
|
|
78
|
+
parentNode.children = arrangeFileAndDirectoryNameByPath(parentNode.children);
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
// file
|
|
82
|
+
parentNode = this.getParentNode(path);
|
|
83
|
+
node = this.createFileNode(path, parentNode.path);
|
|
84
|
+
|
|
85
|
+
if (this.imageFilelist.includes(path)) {
|
|
86
|
+
node.isRemovable = false;
|
|
87
|
+
node.isReadonly = this.readOnlyFilelist.includes(path);
|
|
88
|
+
node.isHidden = this.hiddenFilelist.includes(path);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
parentNode.children.push(node);
|
|
92
|
+
parentNode.children = arrangeFileAndDirectoryNameByPath(parentNode.children);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
insertInputNode(path, inputType) {
|
|
97
|
+
const isRoot = path === '';
|
|
98
|
+
const tree = new FileTreeNode({
|
|
99
|
+
path: isRoot ? '' : path + '/',
|
|
100
|
+
expanded: this.openedDirectoryList.includes(path),
|
|
101
|
+
isDirectory: inputType === 'directory',
|
|
102
|
+
isEdit: true,
|
|
103
|
+
title: '*',
|
|
104
|
+
parentPath: path
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
if (isRoot) {
|
|
108
|
+
this.root.children = [tree, ...this.root.children];
|
|
109
|
+
this.root.children = arrangeFileAndDirectoryNameByPath(this.root.children);
|
|
110
|
+
} else {
|
|
111
|
+
this.directoryNodes[path].expanded = true;
|
|
112
|
+
this.directoryNodes[path].children = [tree, ...this.directoryNodes[path].children];
|
|
113
|
+
this.directoryNodes[path].children = arrangeFileAndDirectoryNameByPath(this.directoryNodes[path].children);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
_setDirectoriesRemovable(node) {
|
|
118
|
+
for (const child of node.children) {
|
|
119
|
+
if (child.isDirectory) {
|
|
120
|
+
if (!this._setDirectoriesRemovable(child)) {
|
|
121
|
+
node.isRemovable = false;
|
|
122
|
+
}
|
|
123
|
+
} else if (!child.isRemovable) {
|
|
124
|
+
node.isRemovable = false;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (this.imageFilelist.includes(node.path + '/')) {
|
|
129
|
+
node.isRemovable = false;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
return node.isRemovable;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
}
|
|
136
|
+
class FileTreeNode {
|
|
137
|
+
constructor({
|
|
138
|
+
path,
|
|
139
|
+
parentPath,
|
|
140
|
+
title,
|
|
141
|
+
isDirectory = false,
|
|
142
|
+
isReadonly = false,
|
|
143
|
+
isRemovable = true,
|
|
144
|
+
isHidden = false,
|
|
145
|
+
expanded = false,
|
|
146
|
+
isEdit = false,
|
|
147
|
+
isRenaming = false,
|
|
148
|
+
isInitialOpen = false
|
|
149
|
+
}) {
|
|
150
|
+
const _title = title === undefined ? fileTreeItem.getTitle(path) : title;
|
|
151
|
+
|
|
152
|
+
this.path = path;
|
|
153
|
+
this.parentPath = parentPath;
|
|
154
|
+
this.title = _title;
|
|
155
|
+
this.isDirectory = isDirectory;
|
|
156
|
+
this.isReadonly = isReadonly;
|
|
157
|
+
this.isRemovable = isRemovable;
|
|
158
|
+
this.isHidden = isHidden;
|
|
159
|
+
this.expanded = expanded;
|
|
160
|
+
this.isEdit = isEdit;
|
|
161
|
+
this.isRenaming = isRenaming;
|
|
162
|
+
this.isInitialOpen = isInitialOpen;
|
|
163
|
+
this.children = [];
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
findTreeNode(path, depth = 0) {
|
|
167
|
+
if (this.path === path) {
|
|
168
|
+
return this;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
for (let i = 0; i < this.children.length; i++) {
|
|
172
|
+
if (path.split('/')[depth] === this.children[i].path.split('/')[depth]) {
|
|
173
|
+
return this.findTreeNode.call(this.children[i], path, depth + 1);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
}
|
|
181
|
+
function create({
|
|
182
|
+
imageFilelist,
|
|
183
|
+
exerciseRoomFilelist,
|
|
184
|
+
openedDirectoryList,
|
|
185
|
+
hiddenFilelist = [],
|
|
186
|
+
readOnlyFilelist = [],
|
|
187
|
+
newInput,
|
|
188
|
+
renameInputPath,
|
|
189
|
+
initialOpenFilelist
|
|
190
|
+
}) {
|
|
191
|
+
const tree = new FileTreeRoot({
|
|
192
|
+
imageFilelist,
|
|
193
|
+
hiddenFilelist,
|
|
194
|
+
openedDirectoryList,
|
|
195
|
+
readOnlyFilelist,
|
|
196
|
+
renameInputPath,
|
|
197
|
+
initialOpenFilelist
|
|
198
|
+
});
|
|
199
|
+
const allPathes = removeDuplicatedString([...exerciseRoomFilelist, ...imageFilelist]);
|
|
200
|
+
allPathes.forEach(path => tree.insert(path));
|
|
201
|
+
|
|
202
|
+
if (newInput) {
|
|
203
|
+
tree.insertInputNode(newInput.path, newInput.type);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
tree._setDirectoriesRemovable(tree.root);
|
|
207
|
+
|
|
208
|
+
return tree.root;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function removeDuplicatedString(array) {
|
|
212
|
+
return [...new Set(array)];
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function getParentPath(path) {
|
|
216
|
+
return path.includes('/') ? path.slice(0, path.lastIndexOf('/')) : '';
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function arrangeFileAndDirectoryNameByPath(fileTreeNodeList) {
|
|
220
|
+
return [...fileTreeNodeList.filter(({
|
|
221
|
+
isDirectory
|
|
222
|
+
}) => isDirectory).sort((a, b) => {
|
|
223
|
+
if (a.path < b.path) {
|
|
224
|
+
return -1;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (a.path > b.path) {
|
|
228
|
+
return 1;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
return 0;
|
|
232
|
+
}), ...fileTreeNodeList.filter(({
|
|
233
|
+
isDirectory
|
|
234
|
+
}) => !isDirectory).sort((a, b) => {
|
|
235
|
+
if (a.path < b.path) {
|
|
236
|
+
return -1;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (a.path > b.path) {
|
|
240
|
+
return 1;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
return 0;
|
|
244
|
+
})];
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
exports.FileTreeNode = FileTreeNode;
|
|
248
|
+
exports.FileTreeRoot = FileTreeRoot;
|
|
249
|
+
exports.create = create;
|
|
250
|
+
exports.getParentPath = getParentPath;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NewInput } from '../context';
|
|
2
|
+
import type { FileTreeNode } from './fileTreeGenerator';
|
|
3
|
+
export declare function getTargetDirectoryPath(fileTreeNode?: FileTreeNode): string;
|
|
4
|
+
export declare function getInputNodeIndex(fileTree: FileTreeNode, newInput?: NewInput): number | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
function getTargetDirectoryPath(fileTreeNode) {
|
|
6
|
+
if (!fileTreeNode) {
|
|
7
|
+
return '';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
return fileTreeNode.isDirectory ? fileTreeNode.path : fileTreeNode.parentPath;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.getTargetDirectoryPath = getTargetDirectoryPath;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Get title of tree item from path.
|
|
7
|
+
* @param path Path of tree item.
|
|
8
|
+
*/
|
|
9
|
+
function getTitle(path) {
|
|
10
|
+
const splitTitleArr = path.split('/');
|
|
11
|
+
return splitTitleArr[splitTitleArr.length - 1];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.getTitle = getTitle;
|