@elice/material-exercise 1.240401.0 → 1.240508.0-globalization.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.
Files changed (251) hide show
  1. package/cjs/components/locales/en.json.js +7 -0
  2. package/cjs/components/locales/index.d.ts +3 -0
  3. package/cjs/components/locales/ko.json.js +7 -0
  4. package/cjs/components/locales/th.json.js +7 -0
  5. package/cjs/components/material-exercise/MaterialExercise.d.ts +3 -1
  6. package/cjs/components/material-exercise/MaterialExercise.js +14 -13
  7. package/cjs/components/material-exercise/context/ExerciseProviderNoImage.d.ts +2 -1
  8. package/cjs/components/material-exercise/context/ExerciseProviderNoImage.js +7 -15
  9. package/cjs/components/material-exercise/context/locales/noImage.en.json.js +2 -2
  10. package/cjs/components/material-exercise/context/locales/noImage.ko.json.js +2 -2
  11. package/cjs/components/material-exercise/context/locales/noImage.th.json.js +7 -0
  12. package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.d.ts +2 -1
  13. package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +9 -12
  14. package/cjs/components/material-exercise/exercise-code-history/locales/en.json.js +2 -2
  15. package/cjs/components/material-exercise/exercise-code-history/locales/index.d.ts +3 -0
  16. package/cjs/components/material-exercise/exercise-code-history/locales/ko.json.js +2 -2
  17. package/cjs/components/material-exercise/exercise-code-history/locales/th.json.js +7 -0
  18. package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts +3 -5
  19. package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +14 -5
  20. package/cjs/components/material-exercise/exercise-file-editor/locales/en.json.js +7 -0
  21. package/cjs/components/material-exercise/exercise-file-editor/locales/index.d.ts +3 -0
  22. package/cjs/components/material-exercise/exercise-file-editor/locales/ko.json.js +7 -0
  23. package/cjs/components/material-exercise/exercise-file-editor/locales/th.json.js +7 -0
  24. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.d.ts +3 -2
  25. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +21 -4
  26. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +2 -2
  27. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +7 -15
  28. package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js +2 -2
  29. package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js +2 -2
  30. package/cjs/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.th.json.js +7 -0
  31. package/cjs/components/material-exercise/exercise-file-tabs/locales/index.d.ts +3 -0
  32. package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.d.ts +2 -3
  33. package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +8 -10
  34. package/cjs/components/material-exercise/exercise-file-tree/locales/en.json.js +2 -2
  35. package/cjs/components/material-exercise/exercise-file-tree/locales/index.d.ts +3 -0
  36. package/cjs/components/material-exercise/exercise-file-tree/locales/ko.json.js +2 -2
  37. package/cjs/components/material-exercise/exercise-file-tree/locales/th.json.js +7 -0
  38. package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +2 -1
  39. package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.js +13 -9
  40. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +6 -3
  41. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +15 -13
  42. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +10 -8
  43. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.js +12 -10
  44. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +9 -7
  45. package/cjs/components/material-exercise/exercise-menu/locales/en.json.js +2 -2
  46. package/cjs/components/material-exercise/exercise-menu/locales/index.d.ts +3 -0
  47. package/cjs/components/material-exercise/exercise-menu/locales/ko.json.js +2 -2
  48. package/cjs/components/material-exercise/exercise-menu/locales/th.json.js +7 -0
  49. package/cjs/components/material-exercise/exercise-preview/ExercisePreview.d.ts +2 -1
  50. package/cjs/components/material-exercise/exercise-preview/ExercisePreview.js +12 -8
  51. package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +6 -4
  52. package/cjs/components/material-exercise/exercise-preview/locales/en.json.js +2 -2
  53. package/cjs/components/material-exercise/exercise-preview/locales/index.d.ts +3 -0
  54. package/cjs/components/material-exercise/exercise-preview/locales/ko.json.js +2 -2
  55. package/cjs/components/material-exercise/exercise-preview/locales/th.json.js +7 -0
  56. package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +2 -3
  57. package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +18 -15
  58. package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +20 -18
  59. package/cjs/components/material-exercise/exercise-rightpane/locales/en.json.js +2 -2
  60. package/cjs/components/material-exercise/exercise-rightpane/locales/index.d.ts +3 -0
  61. package/cjs/components/material-exercise/exercise-rightpane/locales/ko.json.js +2 -2
  62. package/cjs/components/material-exercise/exercise-rightpane/locales/th.json.js +7 -0
  63. package/cjs/components/material-exercise/exercise-room/ExerciseRoom.d.ts +2 -1
  64. package/cjs/components/material-exercise/exercise-room/ExerciseRoom.js +13 -9
  65. package/cjs/components/material-exercise/exercise-room/ExerciseRoomDetail.js +30 -28
  66. package/cjs/components/material-exercise/exercise-room/ExerciseRoomList.js +17 -15
  67. package/cjs/components/material-exercise/exercise-room/locales/en.json.js +2 -2
  68. package/cjs/components/material-exercise/exercise-room/locales/index.d.ts +3 -0
  69. package/cjs/components/material-exercise/exercise-room/locales/ko.json.js +2 -2
  70. package/cjs/components/material-exercise/exercise-room/locales/th.json.js +7 -0
  71. package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.d.ts +2 -1
  72. package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.js +30 -29
  73. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +22 -18
  74. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +12 -10
  75. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +15 -13
  76. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +8 -5
  77. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +29 -30
  78. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +10 -7
  79. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +8 -6
  80. package/cjs/components/material-exercise/exercise-runner/locales/en.json.js +2 -2
  81. package/cjs/components/material-exercise/exercise-runner/locales/index.d.ts +3 -0
  82. package/cjs/components/material-exercise/exercise-runner/locales/ko.json.js +2 -2
  83. package/cjs/components/material-exercise/exercise-runner/locales/th.json.js +7 -0
  84. package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.d.ts +2 -1
  85. package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +17 -16
  86. package/cjs/components/material-exercise/exercise-submit-history/locales/en.json.js +2 -2
  87. package/cjs/components/material-exercise/exercise-submit-history/locales/index.d.ts +3 -0
  88. package/cjs/components/material-exercise/exercise-submit-history/locales/ko.json.js +2 -2
  89. package/cjs/components/material-exercise/exercise-submit-history/locales/th.json.js +7 -0
  90. package/cjs/components/shared/file-tree/FileTree.d.ts +1 -5
  91. package/cjs/components/shared/file-tree/FileTree.js +11 -12
  92. package/cjs/components/shared/file-tree/FileTreeConfig.js +1 -2
  93. package/cjs/components/shared/file-tree/FileTreeList.js +1 -2
  94. package/cjs/components/shared/file-tree/FileTreeListItemContentInput.js +10 -8
  95. package/cjs/components/shared/file-tree/FileTreeListItemContentMenu.js +26 -24
  96. package/cjs/components/shared/file-tree/FileTreeToolbar.js +8 -7
  97. package/cjs/components/shared/file-tree/locales/en.json.js +2 -2
  98. package/cjs/components/shared/file-tree/locales/index.d.ts +3 -0
  99. package/cjs/components/shared/file-tree/locales/ko.json.js +2 -2
  100. package/cjs/components/shared/file-tree/locales/th.json.js +7 -0
  101. package/cjs/components/shared/file-viewer/FileViewer.d.ts +2 -1
  102. package/cjs/components/shared/file-viewer/FileViewer.js +8 -16
  103. package/cjs/components/shared/file-viewer/FileViewerCsv.js +10 -7
  104. package/cjs/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -1
  105. package/cjs/components/shared/file-viewer/FileViewerNonViewable.js +11 -18
  106. package/cjs/components/shared/file-viewer/locales/index.d.ts +6 -0
  107. package/cjs/components/shared/file-viewer/locales/nonViewable.en.json.js +2 -2
  108. package/cjs/components/shared/file-viewer/locales/nonViewable.ko.json.js +2 -2
  109. package/cjs/components/shared/file-viewer/locales/nonViewable.th.json.js +7 -0
  110. package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -1
  111. package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +29 -37
  112. package/cjs/components/shared/monaco-editor/locales/en.json.js +2 -2
  113. package/cjs/components/shared/monaco-editor/locales/index.d.ts +3 -0
  114. package/cjs/components/shared/monaco-editor/locales/ko.json.js +2 -2
  115. package/cjs/components/shared/monaco-editor/locales/th.json.js +7 -0
  116. package/cjs/components/shared/xterm/Xterm.d.ts +3 -1
  117. package/cjs/components/shared/xterm/Xterm.js +8 -18
  118. package/cjs/components/shared/xterm/locales/en.json.js +2 -2
  119. package/cjs/components/shared/xterm/locales/index.d.ts +3 -0
  120. package/cjs/components/shared/xterm/locales/ko.json.js +2 -2
  121. package/cjs/components/shared/xterm/locales/th.json.js +7 -0
  122. package/es/components/locales/en.json.js +3 -0
  123. package/es/components/locales/index.d.ts +3 -0
  124. package/es/components/locales/ko.json.js +3 -0
  125. package/es/components/locales/th.json.js +3 -0
  126. package/es/components/material-exercise/MaterialExercise.d.ts +3 -1
  127. package/es/components/material-exercise/MaterialExercise.js +14 -14
  128. package/es/components/material-exercise/context/ExerciseProviderNoImage.d.ts +2 -1
  129. package/es/components/material-exercise/context/ExerciseProviderNoImage.js +9 -17
  130. package/es/components/material-exercise/context/locales/noImage.en.json.js +2 -2
  131. package/es/components/material-exercise/context/locales/noImage.ko.json.js +2 -2
  132. package/es/components/material-exercise/context/locales/noImage.th.json.js +3 -0
  133. package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.d.ts +2 -1
  134. package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +11 -14
  135. package/es/components/material-exercise/exercise-code-history/locales/en.json.js +2 -2
  136. package/es/components/material-exercise/exercise-code-history/locales/index.d.ts +3 -0
  137. package/es/components/material-exercise/exercise-code-history/locales/ko.json.js +2 -2
  138. package/es/components/material-exercise/exercise-code-history/locales/th.json.js +3 -0
  139. package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.d.ts +3 -5
  140. package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +14 -5
  141. package/es/components/material-exercise/exercise-file-editor/locales/en.json.js +3 -0
  142. package/es/components/material-exercise/exercise-file-editor/locales/index.d.ts +3 -0
  143. package/es/components/material-exercise/exercise-file-editor/locales/ko.json.js +3 -0
  144. package/es/components/material-exercise/exercise-file-editor/locales/th.json.js +3 -0
  145. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.d.ts +3 -2
  146. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +21 -4
  147. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.d.ts +2 -2
  148. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsFileTreeButton.js +5 -13
  149. package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.en.json.js +2 -2
  150. package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.ko.json.js +2 -2
  151. package/es/components/material-exercise/exercise-file-tabs/locales/fileTreeButton.th.json.js +3 -0
  152. package/es/components/material-exercise/exercise-file-tabs/locales/index.d.ts +3 -0
  153. package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.d.ts +2 -3
  154. package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +10 -12
  155. package/es/components/material-exercise/exercise-file-tree/locales/en.json.js +2 -2
  156. package/es/components/material-exercise/exercise-file-tree/locales/index.d.ts +3 -0
  157. package/es/components/material-exercise/exercise-file-tree/locales/ko.json.js +2 -2
  158. package/es/components/material-exercise/exercise-file-tree/locales/th.json.js +3 -0
  159. package/es/components/material-exercise/exercise-menu/ExerciseMenu.d.ts +2 -1
  160. package/es/components/material-exercise/exercise-menu/ExerciseMenu.js +13 -9
  161. package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +6 -3
  162. package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +14 -12
  163. package/es/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +4 -2
  164. package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.js +8 -6
  165. package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +8 -6
  166. package/es/components/material-exercise/exercise-menu/locales/en.json.js +2 -2
  167. package/es/components/material-exercise/exercise-menu/locales/index.d.ts +3 -0
  168. package/es/components/material-exercise/exercise-menu/locales/ko.json.js +2 -2
  169. package/es/components/material-exercise/exercise-menu/locales/th.json.js +3 -0
  170. package/es/components/material-exercise/exercise-preview/ExercisePreview.d.ts +2 -1
  171. package/es/components/material-exercise/exercise-preview/ExercisePreview.js +13 -9
  172. package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +4 -2
  173. package/es/components/material-exercise/exercise-preview/locales/en.json.js +2 -2
  174. package/es/components/material-exercise/exercise-preview/locales/index.d.ts +3 -0
  175. package/es/components/material-exercise/exercise-preview/locales/ko.json.js +2 -2
  176. package/es/components/material-exercise/exercise-preview/locales/th.json.js +3 -0
  177. package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +2 -3
  178. package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +18 -15
  179. package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +4 -2
  180. package/es/components/material-exercise/exercise-rightpane/locales/en.json.js +2 -2
  181. package/es/components/material-exercise/exercise-rightpane/locales/index.d.ts +3 -0
  182. package/es/components/material-exercise/exercise-rightpane/locales/ko.json.js +2 -2
  183. package/es/components/material-exercise/exercise-rightpane/locales/th.json.js +3 -0
  184. package/es/components/material-exercise/exercise-room/ExerciseRoom.d.ts +2 -1
  185. package/es/components/material-exercise/exercise-room/ExerciseRoom.js +13 -9
  186. package/es/components/material-exercise/exercise-room/ExerciseRoomDetail.js +6 -4
  187. package/es/components/material-exercise/exercise-room/ExerciseRoomList.js +4 -2
  188. package/es/components/material-exercise/exercise-room/locales/en.json.js +2 -2
  189. package/es/components/material-exercise/exercise-room/locales/index.d.ts +3 -0
  190. package/es/components/material-exercise/exercise-room/locales/ko.json.js +2 -2
  191. package/es/components/material-exercise/exercise-room/locales/th.json.js +3 -0
  192. package/es/components/material-exercise/exercise-runner/ExerciseRunner.d.ts +2 -1
  193. package/es/components/material-exercise/exercise-runner/ExerciseRunner.js +30 -29
  194. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +20 -16
  195. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +4 -2
  196. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +14 -12
  197. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +8 -5
  198. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +28 -29
  199. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +10 -7
  200. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +8 -6
  201. package/es/components/material-exercise/exercise-runner/locales/en.json.js +2 -2
  202. package/es/components/material-exercise/exercise-runner/locales/index.d.ts +3 -0
  203. package/es/components/material-exercise/exercise-runner/locales/ko.json.js +2 -2
  204. package/es/components/material-exercise/exercise-runner/locales/th.json.js +3 -0
  205. package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.d.ts +2 -1
  206. package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +18 -17
  207. package/es/components/material-exercise/exercise-submit-history/locales/en.json.js +2 -2
  208. package/es/components/material-exercise/exercise-submit-history/locales/index.d.ts +3 -0
  209. package/es/components/material-exercise/exercise-submit-history/locales/ko.json.js +2 -2
  210. package/es/components/material-exercise/exercise-submit-history/locales/th.json.js +3 -0
  211. package/es/components/shared/file-tree/FileTree.d.ts +1 -5
  212. package/es/components/shared/file-tree/FileTree.js +11 -12
  213. package/es/components/shared/file-tree/FileTreeConfig.js +1 -2
  214. package/es/components/shared/file-tree/FileTreeList.js +1 -2
  215. package/es/components/shared/file-tree/FileTreeListItemContentInput.js +4 -2
  216. package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +24 -22
  217. package/es/components/shared/file-tree/FileTreeToolbar.js +5 -4
  218. package/es/components/shared/file-tree/locales/en.json.js +2 -2
  219. package/es/components/shared/file-tree/locales/index.d.ts +3 -0
  220. package/es/components/shared/file-tree/locales/ko.json.js +2 -2
  221. package/es/components/shared/file-tree/locales/th.json.js +3 -0
  222. package/es/components/shared/file-viewer/FileViewer.d.ts +2 -1
  223. package/es/components/shared/file-viewer/FileViewer.js +8 -16
  224. package/es/components/shared/file-viewer/FileViewerCsv.js +10 -7
  225. package/es/components/shared/file-viewer/FileViewerNonViewable.d.ts +2 -1
  226. package/es/components/shared/file-viewer/FileViewerNonViewable.js +13 -20
  227. package/es/components/shared/file-viewer/locales/index.d.ts +6 -0
  228. package/es/components/shared/file-viewer/locales/nonViewable.en.json.js +2 -2
  229. package/es/components/shared/file-viewer/locales/nonViewable.ko.json.js +2 -2
  230. package/es/components/shared/file-viewer/locales/nonViewable.th.json.js +3 -0
  231. package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.d.ts +2 -1
  232. package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +30 -38
  233. package/es/components/shared/monaco-editor/locales/en.json.js +2 -2
  234. package/es/components/shared/monaco-editor/locales/index.d.ts +3 -0
  235. package/es/components/shared/monaco-editor/locales/ko.json.js +2 -2
  236. package/es/components/shared/monaco-editor/locales/th.json.js +3 -0
  237. package/es/components/shared/xterm/Xterm.d.ts +3 -1
  238. package/es/components/shared/xterm/Xterm.js +10 -20
  239. package/es/components/shared/xterm/locales/en.json.js +2 -2
  240. package/es/components/shared/xterm/locales/index.d.ts +3 -0
  241. package/es/components/shared/xterm/locales/ko.json.js +2 -2
  242. package/es/components/shared/xterm/locales/th.json.js +3 -0
  243. package/package.json +6 -6
  244. package/cjs/components/material-exercise/MaterialExercise.i18n.d.ts +0 -5
  245. package/cjs/components/material-exercise/MaterialExercise.i18n.js +0 -13
  246. package/cjs/components/material-exercise/context/ExerciseIntlProvider.d.ts +0 -12
  247. package/cjs/components/material-exercise/context/ExerciseIntlProvider.js +0 -44
  248. package/es/components/material-exercise/MaterialExercise.i18n.d.ts +0 -5
  249. package/es/components/material-exercise/MaterialExercise.i18n.js +0 -10
  250. package/es/components/material-exercise/context/ExerciseIntlProvider.d.ts +0 -12
  251. package/es/components/material-exercise/context/ExerciseIntlProvider.js +0 -41
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var reactIntl = require('react-intl');
7
6
  var apiClient = require('@elice/api-client');
8
7
  var blocks = require('@elice/blocks');
8
+ var intl = require('@elice/intl');
9
9
  var types = require('@elice/types');
10
10
  var humps = require('humps');
11
11
  var recoil = require('recoil');
@@ -21,9 +21,9 @@ var context = require('../context/context.js');
21
21
  require('../context/recoilTypes.js');
22
22
  require('../context/subjects.js');
23
23
  require('../context/ExerciseProvider.js');
24
- var ExerciseIntlProvider = require('../context/ExerciseIntlProvider.js');
25
24
  var en = require('./locales/en.json.js');
26
25
  var ko = require('./locales/ko.json.js');
26
+ var th = require('./locales/th.json.js');
27
27
 
28
28
  const AsyncFileTree = React.lazy(() => Promise.resolve().then(function () { return require('../../shared/file-tree/FileTree.js'); }));
29
29
  const AsyncFileTreeList = React.lazy(() => Promise.resolve().then(function () { return require('../../shared/file-tree/FileTreeList.js'); }));
@@ -44,9 +44,10 @@ var MaterialExerciseFileError;
44
44
  MaterialExerciseFileError["UsableSizeExceed"] = "usable_size_exceed";
45
45
  MaterialExerciseFileError["SubFileOrPathExist"] = "sub_file_or_path_exist";
46
46
  })(MaterialExerciseFileError || (MaterialExerciseFileError = {}));
47
- const ExerciseFileTree = () => {
47
+ const ExerciseFileTree = ({
48
+ __intl
49
+ }) => {
48
50
  var _a, _b, _c, _d;
49
- const intl = reactIntl.useIntl();
50
51
  const {
51
52
  exerciseRoomId,
52
53
  materialExerciseId,
@@ -120,7 +121,7 @@ const ExerciseFileTree = () => {
120
121
  setExerciseRoom(exerciseRoom);
121
122
  } catch (error) {
122
123
  console.error(error);
123
- blocks.Notification.error(intl.formatMessage({
124
+ blocks.Notification.error(__intl.formatMessage({
124
125
  id: 'materialExercise.exerciseFileTree.fetchRoom.failure'
125
126
  }));
126
127
  }
@@ -147,7 +148,7 @@ const ExerciseFileTree = () => {
147
148
  message = ((_b = error.detail) === null || _b === void 0 ? void 0 : _b.failCode) ? error.detail.failCode : `materialExercise.exerciseFileTree.errorCode.unknown`;
148
149
  failMessage = (_c = error.detail) === null || _c === void 0 ? void 0 : _c.failMessage;
149
150
  }
150
- blocks.Notification.error(intl.formatMessage({
151
+ blocks.Notification.error(__intl.formatMessage({
151
152
  id: message
152
153
  }) + `${failMessage ? ` (${failMessage})` : ''}`);
153
154
  if (typeof onError === 'function') {
@@ -330,9 +331,6 @@ const ExerciseFileTree = () => {
330
331
  locale: locale
331
332
  }, React.createElement(AsyncFileTreeToolbar, null), React.createElement(StyledFileTreeDivider, null), React.createElement(AsyncFileTreeList, null))));
332
333
  };
333
- var ExerciseFileTree$1 = ExerciseIntlProvider.withExerciseIntlProvider(ExerciseFileTree, {
334
- en: en.default,
335
- ko: ko.default
336
- });
334
+ var ExerciseFileTree$1 = new intl.IntlComponentBuilder(ExerciseFileTree).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
337
335
 
338
336
  exports.default = ExerciseFileTree$1;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var phrasesEn = {"exerciseFileTree.errorCode.insufficientPermission":"[Error] Insufficient Permission","exerciseFileTree.errorCode.invalidParameter":"[Error] Invalid Parameter","exerciseFileTree.errorCode.invalidParameterCombination":"[Error] Invalid Parameter Combination","exerciseFileTree.errorCode.notFoundCurrentFilename":"[Error] Not Found Current Filename","exerciseFileTree.errorCode.notFoundExerciseRoom":"[Error] Not Found ExerciseRoom","exerciseFileTree.errorCode.notFoundPath":"[Error] Not Found Path","exerciseFileTree.errorCode.overwriteExistingOne":"[Error] Overwrite Existing One","exerciseFileTree.errorCode.resultingFilenameUnderCurrentFilename":"[Error] Resulting Filename Under Current Filename","exerciseFileTree.errorCode.subFileOrPathExist":"[Error] Sub File Or Path Exist","exerciseFileTree.errorCode.unknown":"[Error] An unkown error has occurred.","exerciseFileTree.errorCode.usableSizeExceed":"[Error] Usable Size Exceed","exerciseFileTree.fetchRoom.failure":"Failed to fetch exercise room."};
5
+ var messageEn = {"exerciseFileTree.errorCode.insufficientPermission":"[Error] Insufficient Permission","exerciseFileTree.errorCode.invalidParameter":"[Error] Invalid Parameter","exerciseFileTree.errorCode.invalidParameterCombination":"[Error] Invalid Parameter Combination","exerciseFileTree.errorCode.notFoundCurrentFilename":"[Error] Not Found Current Filename","exerciseFileTree.errorCode.notFoundExerciseRoom":"[Error] Not Found ExerciseRoom","exerciseFileTree.errorCode.notFoundPath":"[Error] Not Found Path","exerciseFileTree.errorCode.overwriteExistingOne":"[Error] Overwrite Existing One","exerciseFileTree.errorCode.resultingFilenameUnderCurrentFilename":"[Error] Resulting Filename Under Current Filename","exerciseFileTree.errorCode.subFileOrPathExist":"[Error] Sub File Or Path Exist","exerciseFileTree.errorCode.unknown":"[Error] An unkown error has occurred.","exerciseFileTree.errorCode.usableSizeExceed":"[Error] Usable Size Exceed","exerciseFileTree.fetchRoom.failure":"Failed to fetch exercise room."};
6
6
 
7
- exports.default = phrasesEn;
7
+ exports.default = messageEn;
@@ -0,0 +1,3 @@
1
+ export { default as messageEn } from './en.json';
2
+ export { default as messageKo } from './ko.json';
3
+ export { default as messageTh } from './th.json';
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var phrasesKo = {"exerciseFileTree.errorCode.insufficientPermission":"[Error] 권한이 없습니다.","exerciseFileTree.errorCode.invalidParameter":"[Error] 파라미터가 올바르지 않습니다.","exerciseFileTree.errorCode.invalidParameterCombination":"[Error] 파라미터 조합이 올바르지 않습니다.","exerciseFileTree.errorCode.notFoundCurrentFilename":"[Error] 파일을 찾을 수 없습니다.","exerciseFileTree.errorCode.notFoundExerciseRoom":"[Error] 실습방을 찾을 수 없습니다.","exerciseFileTree.errorCode.notFoundPath":"[Error] 해당 경로를 찾을 수 없습니다.","exerciseFileTree.errorCode.overwriteExistingOne":"[Error] 덮어쓰기가 불가능합니다.","exerciseFileTree.errorCode.resultingFilenameUnderCurrentFilename":"[Error] 같은 경로에 디렉토리를 옮길 수 없습니다.","exerciseFileTree.errorCode.subFileOrPathExist":"[Error] 디렉토리를 삭제하지 못했습니다. 디렉토리가 비어있어야 삭제할 수 있습니다.","exerciseFileTree.errorCode.unknown":"[Error] 알수 없는 에러가 발생하였습니다.","exerciseFileTree.errorCode.usableSizeExceed":"[Error] 허용된 용량을 초과하였습니다.","exerciseFileTree.fetchRoom.failure":"실습을 가져오는데 실패했습니다."};
5
+ var messageKo = {"exerciseFileTree.errorCode.insufficientPermission":"[Error] 권한이 없습니다.","exerciseFileTree.errorCode.invalidParameter":"[Error] 파라미터가 올바르지 않습니다.","exerciseFileTree.errorCode.invalidParameterCombination":"[Error] 파라미터 조합이 올바르지 않습니다.","exerciseFileTree.errorCode.notFoundCurrentFilename":"[Error] 파일을 찾을 수 없습니다.","exerciseFileTree.errorCode.notFoundExerciseRoom":"[Error] 실습방을 찾을 수 없습니다.","exerciseFileTree.errorCode.notFoundPath":"[Error] 해당 경로를 찾을 수 없습니다.","exerciseFileTree.errorCode.overwriteExistingOne":"[Error] 덮어쓰기가 불가능합니다.","exerciseFileTree.errorCode.resultingFilenameUnderCurrentFilename":"[Error] 같은 경로에 디렉토리를 옮길 수 없습니다.","exerciseFileTree.errorCode.subFileOrPathExist":"[Error] 디렉토리를 삭제하지 못했습니다. 디렉토리가 비어있어야 삭제할 수 있습니다.","exerciseFileTree.errorCode.unknown":"[Error] 알수 없는 에러가 발생하였습니다.","exerciseFileTree.errorCode.usableSizeExceed":"[Error] 허용된 용량을 초과하였습니다.","exerciseFileTree.fetchRoom.failure":"실습을 가져오는데 실패했습니다."};
6
6
 
7
- exports.default = phrasesKo;
7
+ exports.default = messageKo;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var messageTh = {"exerciseFileTree.errorCode.insufficientPermission":"[ข้อผิดพลาด] ไม่มีสิทธิ์.","exerciseFileTree.errorCode.invalidParameter":"[ข้อผิดพลาด] พารามิเตอร์ไม่ถูกต้อง","exerciseFileTree.errorCode.invalidParameterCombination":"[ข้อผิดพลาด] การรวมพารามิเตอร์ไม่ถูกต้อง.","exerciseFileTree.errorCode.notFoundCurrentFilename":"[ข้อผิดพลาด] ไม่พบไฟล์","exerciseFileTree.errorCode.notFoundExerciseRoom":"[ข้อผิดพลาด] ไม่พบห้องปฏิบัติการ.","exerciseFileTree.errorCode.notFoundPath":"[ข้อผิดพลาด] ไม่สามารถหาเส้นทางที่ระบุ","exerciseFileTree.errorCode.overwriteExistingOne":"[ข้อผิดพลาด] ไม่สามารถเขียนทับได้.","exerciseFileTree.errorCode.resultingFilenameUnderCurrentFilename":"[ข้อผิดพลาด] ไม่สามารถย้ายไดเรกทอรีไปยังตำแหน่งเดียวกันได้ ค่ะ.","exerciseFileTree.errorCode.subFileOrPathExist":"[ข้อผิดพลาด] ไม่สามารถลบไดเรกทอรี ไดเร็กทอรีต้องว่างเปล่าก่อนจึงจะสามารถลบได้","exerciseFileTree.errorCode.unknown":"[ข้อผิดพลาด] เกิดข้อผิดพลาดที่ไม่สามารถระบุได้.","exerciseFileTree.errorCode.usableSizeExceed":"[ข้อผิดพลาด] คุณเกินพื้นที่ที่อนุญาตแล้วค่ะ.","exerciseFileTree.fetchRoom.failure":"การเรียนปฏิบัติล้มเหลว "};
6
+
7
+ exports.default = messageTh;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const _default: React.VFC<{}>;
2
+ import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<any>>;
3
4
  export default _default;
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var designTokens = require('@elice/design-tokens');
7
+ var intl = require('@elice/intl');
7
8
  var types = require('@elice/types');
8
9
  var recoil = require('recoil');
9
10
  var styled = require('styled-components');
@@ -12,19 +13,21 @@ var context = require('../context/context.js');
12
13
  require('../context/recoilTypes.js');
13
14
  require('../context/subjects.js');
14
15
  require('../context/ExerciseProvider.js');
15
- var ExerciseIntlProvider = require('../context/ExerciseIntlProvider.js');
16
- var en = require('./locales/en.json.js');
17
- var ko = require('./locales/ko.json.js');
18
16
  var ExerciseMenuArduinoAgentModalButton = require('./ExerciseMenuArduinoAgentModalButton.js');
19
17
  var ExerciseMenuArduinoSettings = require('./ExerciseMenuArduinoSettings.js');
20
18
  var ExerciseMenuDropdown = require('./ExerciseMenuDropdown.js');
21
19
  var ExerciseMenuReset = require('./ExerciseMenuReset.js');
22
20
  var ExerciseMenuStdioFileBrowser = require('./ExerciseMenuStdioFileBrowser.js');
21
+ var en = require('./locales/en.json.js');
22
+ var ko = require('./locales/ko.json.js');
23
+ var th = require('./locales/th.json.js');
23
24
 
24
25
  const StyledExerciseMenuWrapper = styled.div.withConfig({
25
26
  componentId: "sc-1gf6m87-0"
26
27
  })(["display:flex;justify-content:center;align-items:center;padding:0 0.5rem 0 1rem;height:2.25rem;gap:0.5rem;background-color:", ";"], designTokens.base.color.navy8);
27
- const ExerciseMenu = () => {
28
+ const ExerciseMenu = ({
29
+ __intl
30
+ }) => {
28
31
  const {
29
32
  materialExerciseId
30
33
  } = React.useContext(context.ExerciseContext);
@@ -33,11 +36,12 @@ const ExerciseMenu = () => {
33
36
  //
34
37
  //
35
38
  //
36
- return React.createElement(StyledExerciseMenuWrapper, null, isArduinoExercise ? React.createElement(React.Fragment, null, React.createElement(ExerciseMenuArduinoAgentModalButton.default, null), React.createElement(ExerciseMenuArduinoSettings.default, null)) : React.createElement(ExerciseMenuStdioFileBrowser.default, null), React.createElement(ExerciseMenuReset.default, null), React.createElement(ExerciseMenuDropdown.default, null));
39
+ return React.createElement(intl.RawEliceIntlProvider, {
40
+ value: {
41
+ intl: __intl
42
+ }
43
+ }, React.createElement(StyledExerciseMenuWrapper, null, isArduinoExercise ? React.createElement(React.Fragment, null, React.createElement(ExerciseMenuArduinoAgentModalButton.default, null), React.createElement(ExerciseMenuArduinoSettings.default, null)) : React.createElement(ExerciseMenuStdioFileBrowser.default, null), React.createElement(ExerciseMenuReset.default, null), React.createElement(ExerciseMenuDropdown.default, null)));
37
44
  };
38
- var ExerciseMenu$1 = ExerciseIntlProvider.withExerciseIntlProvider(ExerciseMenu, {
39
- en: en.default,
40
- ko: ko.default
41
- });
45
+ var ExerciseMenu$1 = new intl.IntlComponentBuilder(ExerciseMenu).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
42
46
 
43
47
  exports.default = ExerciseMenu$1;
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var reactIntl = require('react-intl');
7
6
  var blocks = require('@elice/blocks');
8
7
  var icons = require('@elice/icons');
8
+ var intl = require('@elice/intl');
9
9
  var recoil = require('recoil');
10
10
  var recoil$1 = require('../context/recoil.js');
11
11
  require('../context/context.js');
@@ -15,6 +15,9 @@ require('../context/ExerciseProvider.js');
15
15
 
16
16
  const ExerciseMenuArduinoAgentModalButton = () => {
17
17
  const setOpen = recoil.useSetRecoilState(recoil$1.exerciseArduinoAgentModalState);
18
+ const {
19
+ intl: intl$1
20
+ } = intl.useRawEliceIntl();
18
21
  const handleClick = () => {
19
22
  setOpen(true);
20
23
  };
@@ -27,8 +30,8 @@ const ExerciseMenuArduinoAgentModalButton = () => {
27
30
  iconAlign: "left",
28
31
  border: false,
29
32
  onClick: handleClick
30
- }, React.createElement(reactIntl.FormattedMessage, {
31
- id: "exerciseMenu.arduino.agent.button"
33
+ }, intl$1.formatMessage({
34
+ id: 'exerciseMenu.arduino.agent.button'
32
35
  }));
33
36
  };
34
37
 
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var reactIntl = require('react-intl');
7
6
  var blocks = require('@elice/blocks');
8
7
  var icons = require('@elice/icons');
8
+ var intl = require('@elice/intl');
9
9
  var recoil = require('recoil');
10
10
  var ExerciseMenuButton = require('../../shared/exercise-menu-button/ExerciseMenuButton.js');
11
11
  var arduino = require('../../../constants/arduino.js');
@@ -18,7 +18,9 @@ require('../context/ExerciseProvider.js');
18
18
  var ExerciseMenuStdioFileBrowser_styled = require('./ExerciseMenuStdioFileBrowser.styled.js');
19
19
 
20
20
  const ExerciseMenuArduinoSettings = () => {
21
- const intl = reactIntl.useIntl();
21
+ const {
22
+ intl: intl$1
23
+ } = intl.useRawEliceIntl();
22
24
  const [open, setOpen] = React.useState(false);
23
25
  const anchorRef = React.useRef(null);
24
26
  const ports = recoil.useRecoilValue(recoil$1.exerciseArduinoPortsState);
@@ -33,8 +35,8 @@ const ExerciseMenuArduinoSettings = () => {
33
35
  role: "gray3",
34
36
  block: true,
35
37
  size: "small"
36
- }, React.createElement(reactIntl.FormattedMessage, {
37
- id: "exerciseMenu.arduino.transferSpeed"
38
+ }, intl$1.formatMessage({
39
+ id: 'exerciseMenu.arduino.transferSpeed'
38
40
  })), React.createElement(ExerciseMenuStdioFileBrowser_styled.StyledSelect, {
39
41
  value: preference.baudRate,
40
42
  size: "small",
@@ -51,8 +53,8 @@ const ExerciseMenuArduinoSettings = () => {
51
53
  role: "gray3",
52
54
  block: true,
53
55
  size: "small"
54
- }, React.createElement(reactIntl.FormattedMessage, {
55
- id: "exerciseMenu.arduino.setting.device"
56
+ }, intl$1.formatMessage({
57
+ id: 'exerciseMenu.arduino.setting.device'
56
58
  })), React.createElement(ExerciseMenuStdioFileBrowser_styled.StyledSelect, {
57
59
  value: openedPort !== null && openedPort !== void 0 ? openedPort : '',
58
60
  size: "small",
@@ -63,13 +65,13 @@ const ExerciseMenuArduinoSettings = () => {
63
65
  }, ports.length === 0 ? React.createElement("option", {
64
66
  value: "",
65
67
  disabled: true
66
- }, React.createElement(reactIntl.FormattedMessage, {
67
- id: "exerciseMenu.arduino.setting.noDevice"
68
+ }, intl$1.formatMessage({
69
+ id: 'exerciseMenu.arduino.setting.noDevice'
68
70
  })) : React.createElement("option", {
69
71
  value: "",
70
72
  disabled: true
71
- }, React.createElement(reactIntl.FormattedMessage, {
72
- id: "exerciseMenu.arduino.setting.selectDevice"
73
+ }, intl$1.formatMessage({
74
+ id: 'exerciseMenu.arduino.setting.selectDevice'
73
75
  })), ports.map(port => React.createElement("option", {
74
76
  key: port.Name,
75
77
  value: port.Name
@@ -84,8 +86,8 @@ const ExerciseMenuArduinoSettings = () => {
84
86
  bold: true
85
87
  }, React.createElement(blocks.Flex, {
86
88
  align: "center"
87
- }, React.createElement(reactIntl.FormattedMessage, {
88
- id: "exerciseMenu.arduino.setting"
89
+ }, intl$1.formatMessage({
90
+ id: 'exerciseMenu.arduino.setting'
89
91
  }))), React.createElement(blocks.IconButton, {
90
92
  icon: icons.eilMathsignMultiplyBasic,
91
93
  role: "white",
@@ -122,7 +124,7 @@ const ExerciseMenuArduinoSettings = () => {
122
124
  const renderStdioFilePopoverToggleButton = () => {
123
125
  return React.createElement(ExerciseMenuButton.default, {
124
126
  icon: icons.eilMaterialTypeArduino,
125
- title: intl.formatMessage({
127
+ title: intl$1.formatMessage({
126
128
  id: 'exerciseMenu.arduino.setting'
127
129
  }),
128
130
  active: open,
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var reactIntl = require('react-intl');
7
6
  var blocks = require('@elice/blocks');
8
7
  var icons = require('@elice/icons');
8
+ var intl = require('@elice/intl');
9
9
  var types = require('@elice/types');
10
10
  var recoil = require('recoil');
11
11
  var ExerciseMenuButton = require('../../shared/exercise-menu-button/ExerciseMenuButton.js');
@@ -19,7 +19,9 @@ var ExerciseRoom = require('../exercise-room/ExerciseRoom.js');
19
19
  var ExerciseSubmitHistory = require('../exercise-submit-history/ExerciseSubmitHistory.js');
20
20
 
21
21
  const ExerciseMenuDropdown = () => {
22
- const intl = reactIntl.useIntl();
22
+ const {
23
+ intl: intl$1
24
+ } = intl.useRawEliceIntl();
23
25
  const {
24
26
  materialExerciseId
25
27
  } = React.useContext(context.ExerciseContext);
@@ -74,29 +76,29 @@ const ExerciseMenuDropdown = () => {
74
76
  //
75
77
  return React.createElement(React.Fragment, null, React.createElement(blocks.ButtonMenu, {
76
78
  menuItemProps: [{
77
- label: intl.formatMessage({
79
+ label: intl$1.formatMessage({
78
80
  id: 'exerciseMenu.dropdown.item.environment'
79
81
  }),
80
82
  onClick: () => setRightpaneActiveState('environment')
81
83
  }, {
82
- label: intl.formatMessage({
84
+ label: intl$1.formatMessage({
83
85
  id: 'exerciseMenu.dropdown.item.preference'
84
86
  }),
85
87
  onClick: () => setRightpaneActiveState('preference')
86
88
  }, {
87
- label: intl.formatMessage({
89
+ label: intl$1.formatMessage({
88
90
  id: 'exerciseMenu.dropdown.item.codeHistory'
89
91
  }),
90
92
  disabled: !user,
91
93
  onClick: () => setIsCodeHistoryModalOpen(true)
92
94
  }, {
93
- label: intl.formatMessage({
95
+ label: intl$1.formatMessage({
94
96
  id: 'exerciseMenu.dropdown.item.submitHistory'
95
97
  }),
96
98
  disabled: !user || !activeFilename,
97
99
  onClick: () => setIsSubmitHistoryModalOpen(true)
98
100
  }, {
99
- label: intl.formatMessage({
101
+ label: intl$1.formatMessage({
100
102
  id: 'exerciseMenu.dropdown.item.room'
101
103
  }),
102
104
  disabled: isLectureTestInProgress,
@@ -108,7 +110,7 @@ const ExerciseMenuDropdown = () => {
108
110
  shadow: true
109
111
  }, React.createElement(ExerciseMenuButton.default, {
110
112
  icon: icons.eilMoreVertical,
111
- title: intl.formatMessage({
113
+ title: intl$1.formatMessage({
112
114
  id: 'exerciseMenu.dropdown.button.tooltip'
113
115
  })
114
116
  })), renderSumbitHistoryModal(), renderCodeHistoryModal(), renderExerciseRoomModal());
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var reactIntl = require('react-intl');
7
6
  var blocks = require('@elice/blocks');
8
7
  var icons = require('@elice/icons');
8
+ var intl = require('@elice/intl');
9
9
  var recoil = require('recoil');
10
10
  var ExerciseMenuButton = require('../../shared/exercise-menu-button/ExerciseMenuButton.js');
11
11
  require('react-use');
@@ -27,7 +27,9 @@ require('random-words');
27
27
  require('unicount');
28
28
 
29
29
  const ExerciseMenuReset = () => {
30
- const intl = reactIntl.useIntl();
30
+ const {
31
+ intl: intl$1
32
+ } = intl.useRawEliceIntl();
31
33
  const [isDialogOpen, setDialogOpen] = React.useState(false);
32
34
  const activeFilename = recoil.useRecoilValue(recoil$1.exerciseActiveFilenameState);
33
35
  const isFileResettable = useExerciseFile.useExerciseFileResettable(activeFilename);
@@ -45,9 +47,9 @@ const ExerciseMenuReset = () => {
45
47
  return React.createElement(ExerciseMenuButton.default, {
46
48
  icon: icons.eilReset,
47
49
  active: isDialogOpen,
48
- title: isFileResettable ? intl.formatMessage({
50
+ title: isFileResettable ? intl$1.formatMessage({
49
51
  id: 'exerciseMenu.reset.button.tooltip.enabled'
50
- }) : intl.formatMessage({
52
+ }) : intl$1.formatMessage({
51
53
  id: 'exerciseMenu.reset.button.tooltip.disabled'
52
54
  }),
53
55
  disabled: !isFileResettable,
@@ -63,21 +65,21 @@ const ExerciseMenuReset = () => {
63
65
  }
64
66
  return React.createElement(blocks.Dialog, {
65
67
  type: "warning",
66
- title: intl.formatMessage({
68
+ title: intl$1.formatMessage({
67
69
  id: 'exerciseMenu.reset.confirmDialog.title'
68
70
  }),
69
- body: intl.formatMessage({
71
+ body: intl$1.formatMessage({
70
72
  id: 'exerciseMenu.reset.confirmDialog.body'
71
73
  }),
72
74
  onHide: () => setDialogOpen(false)
73
75
  }, React.createElement(blocks.Dialog.CloseButton, {
74
76
  onClick: () => setDialogOpen(false)
75
- }, React.createElement(reactIntl.FormattedMessage, {
76
- id: "exerciseMenu.reset.confirmDialog.cancel"
77
+ }, intl$1.formatMessage({
78
+ id: 'exerciseMenu.reset.confirmDialog.cancel'
77
79
  })), React.createElement(blocks.Dialog.ActionButton, {
78
80
  onClick: handleReset
79
- }, React.createElement(reactIntl.FormattedMessage, {
80
- id: "exerciseMenu.reset.confirmDialog.confirm"
81
+ }, intl$1.formatMessage({
82
+ id: 'exerciseMenu.reset.confirmDialog.confirm'
81
83
  })));
82
84
  };
83
85
  //
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var reactIntl = require('react-intl');
7
6
  var blocks = require('@elice/blocks');
8
7
  var designTokens = require('@elice/design-tokens');
9
8
  var icons = require('@elice/icons');
9
+ var intl = require('@elice/intl');
10
10
  var muiElements = require('@elice/mui-elements');
11
11
  var recoil = require('recoil');
12
12
  var ExerciseMenuButton = require('../../shared/exercise-menu-button/ExerciseMenuButton.js');
@@ -18,7 +18,9 @@ require('../context/ExerciseProvider.js');
18
18
  var ExerciseMenuStdioFileBrowser_styled = require('./ExerciseMenuStdioFileBrowser.styled.js');
19
19
 
20
20
  const ExerciseMenuStdioFileBrowser = () => {
21
- const intl = reactIntl.useIntl();
21
+ const {
22
+ intl: intl$1
23
+ } = intl.useRawEliceIntl();
22
24
  const [open, setOpen] = React.useState(false);
23
25
  const anchorRef = React.useRef(null);
24
26
  const stdioFiles = recoil.useRecoilValue(recoil$1.exerciseRunnerStdioFilesState);
@@ -93,8 +95,8 @@ const ExerciseMenuStdioFileBrowser = () => {
93
95
  size: "small",
94
96
  textAlign: "center",
95
97
  preWrap: true
96
- }, React.createElement(reactIntl.FormattedMessage, {
97
- id: "exerciseMenu.stdioFileBrowser.popover.body.placeholder"
98
+ }, intl$1.formatMessage({
99
+ id: 'exerciseMenu.stdioFileBrowser.popover.body.placeholder'
98
100
  })));
99
101
  };
100
102
  /**
@@ -125,8 +127,8 @@ const ExerciseMenuStdioFileBrowser = () => {
125
127
  role: "white",
126
128
  size: "small",
127
129
  bold: true
128
- }, React.createElement(reactIntl.FormattedMessage, {
129
- id: "exerciseMenu.stdioFileBrowser.popover.header"
130
+ }, intl$1.formatMessage({
131
+ id: 'exerciseMenu.stdioFileBrowser.popover.header'
130
132
  })), React.createElement(blocks.Hspace, {
131
133
  width: 0.5
132
134
  }), React.createElement(blocks.NotificationCount, {
@@ -169,7 +171,7 @@ const ExerciseMenuStdioFileBrowser = () => {
169
171
  return React.createElement(ExerciseMenuButton.default, {
170
172
  icon: icons.eilAttachment,
171
173
  active: open,
172
- title: intl.formatMessage({
174
+ title: intl$1.formatMessage({
173
175
  id: 'exerciseMenu.stdioFileBrowser.button.tooltip'
174
176
  }),
175
177
  onClick: () => setOpen(prev => !prev),
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var phrasesEn = {"exerciseMenu.dropdown.button.tooltip":"More","exerciseMenu.dropdown.item.codeHistory":"Submit History","exerciseMenu.dropdown.item.environment":"Environment","exerciseMenu.dropdown.item.preference":"Editor Preferences","exerciseMenu.dropdown.item.room":"Code Sharing","exerciseMenu.dropdown.item.submitHistory":"Code History","exerciseMenu.arduino.agent.button":"Having problem with connecting to Arduino?","exerciseMenu.arduino.setting":"Arduino Setting","exerciseMenu.arduino.setting.device":"Device","exerciseMenu.arduino.setting.noDevice":"No device","exerciseMenu.arduino.setting.selectDevice":"Select device","exerciseMenu.arduino.transferSpeed":"Transfer speed","exerciseMenu.reset.button.tooltip.disabled":"The file cannot be reset","exerciseMenu.reset.button.tooltip.enabled":"Reset the file","exerciseMenu.reset.confirmDialog.body":"Are you sure you want to clear all the code you wrote at current file and reset it?","exerciseMenu.reset.confirmDialog.cancel":"Cencel","exerciseMenu.reset.confirmDialog.confirm":"Confirm","exerciseMenu.reset.confirmDialog.title":"Reset the file","exerciseMenu.stdioFileBrowser.button.tooltip":"File","exerciseMenu.stdioFileBrowser.popover.body.placeholder":"Files sent from your code\nappear here.","exerciseMenu.stdioFileBrowser.popover.header":"File"};
5
+ var messageEn = {"exerciseMenu.dropdown.button.tooltip":"More","exerciseMenu.dropdown.item.codeHistory":"Submit History","exerciseMenu.dropdown.item.environment":"Environment","exerciseMenu.dropdown.item.preference":"Editor Preferences","exerciseMenu.dropdown.item.room":"Code Sharing","exerciseMenu.dropdown.item.submitHistory":"Code History","exerciseMenu.arduino.agent.button":"Having problem with connecting to Arduino?","exerciseMenu.arduino.setting":"Arduino Setting","exerciseMenu.arduino.setting.device":"Device","exerciseMenu.arduino.setting.noDevice":"No device","exerciseMenu.arduino.setting.selectDevice":"Select device","exerciseMenu.arduino.transferSpeed":"Transfer speed","exerciseMenu.reset.button.tooltip.disabled":"The file cannot be reset","exerciseMenu.reset.button.tooltip.enabled":"Reset the file","exerciseMenu.reset.confirmDialog.body":"Are you sure you want to clear all the code you wrote at current file and reset it?","exerciseMenu.reset.confirmDialog.cancel":"Cencel","exerciseMenu.reset.confirmDialog.confirm":"Confirm","exerciseMenu.reset.confirmDialog.title":"Reset the file","exerciseMenu.stdioFileBrowser.button.tooltip":"File","exerciseMenu.stdioFileBrowser.popover.body.placeholder":"Files sent from your code\nappear here.","exerciseMenu.stdioFileBrowser.popover.header":"File"};
6
6
 
7
- exports.default = phrasesEn;
7
+ exports.default = messageEn;
@@ -0,0 +1,3 @@
1
+ export { default as messageEn } from './en.json';
2
+ export { default as messageKo } from './ko.json';
3
+ export { default as messageTh } from './th.json';
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var phrasesKo = {"exerciseMenu.dropdown.button.tooltip":"더 보기","exerciseMenu.dropdown.item.codeHistory":"코드 수정 이력","exerciseMenu.dropdown.item.environment":"실습 환경","exerciseMenu.dropdown.item.preference":"에디터 설정","exerciseMenu.dropdown.item.room":"코드 공유","exerciseMenu.dropdown.item.submitHistory":"실행/제출 이력","exerciseMenu.arduino.agent.button":"아두이노 연결 중 문제가 발생했나요?","exerciseMenu.arduino.setting":"아두이노 세팅","exerciseMenu.arduino.setting.device":"장치","exerciseMenu.arduino.setting.noDevice":"장치 없음","exerciseMenu.arduino.setting.selectDevice":"장치 선택","exerciseMenu.arduino.transferSpeed":"전송 속도","exerciseMenu.reset.button.tooltip.disabled":"해당 파일은 초기화를 할 수 없습니다","exerciseMenu.reset.button.tooltip.enabled":"코드 초기화","exerciseMenu.reset.confirmDialog.body":"작성한 코드를 모두 지우고 초기화하시겠습니까?","exerciseMenu.reset.confirmDialog.cancel":"취소","exerciseMenu.reset.confirmDialog.confirm":"확인","exerciseMenu.reset.confirmDialog.title":"코드 초기화","exerciseMenu.stdioFileBrowser.button.tooltip":"파일","exerciseMenu.stdioFileBrowser.popover.body.placeholder":"코드에서 전송한 파일이\n여기에 표시됩니다.","exerciseMenu.stdioFileBrowser.popover.header":"파일"};
5
+ var messageKo = {"exerciseMenu.dropdown.button.tooltip":"더 보기","exerciseMenu.dropdown.item.codeHistory":"코드 수정 이력","exerciseMenu.dropdown.item.environment":"실습 환경","exerciseMenu.dropdown.item.preference":"에디터 설정","exerciseMenu.dropdown.item.room":"코드 공유","exerciseMenu.dropdown.item.submitHistory":"실행/제출 이력","exerciseMenu.arduino.agent.button":"아두이노 연결 중 문제가 발생했나요?","exerciseMenu.arduino.setting":"아두이노 세팅","exerciseMenu.arduino.setting.device":"장치","exerciseMenu.arduino.setting.noDevice":"장치 없음","exerciseMenu.arduino.setting.selectDevice":"장치 선택","exerciseMenu.arduino.transferSpeed":"전송 속도","exerciseMenu.reset.button.tooltip.disabled":"해당 파일은 초기화를 할 수 없습니다","exerciseMenu.reset.button.tooltip.enabled":"코드 초기화","exerciseMenu.reset.confirmDialog.body":"작성한 코드를 모두 지우고 초기화하시겠습니까?","exerciseMenu.reset.confirmDialog.cancel":"취소","exerciseMenu.reset.confirmDialog.confirm":"확인","exerciseMenu.reset.confirmDialog.title":"코드 초기화","exerciseMenu.stdioFileBrowser.button.tooltip":"파일","exerciseMenu.stdioFileBrowser.popover.body.placeholder":"코드에서 전송한 파일이\n여기에 표시됩니다.","exerciseMenu.stdioFileBrowser.popover.header":"파일"};
6
6
 
7
- exports.default = phrasesKo;
7
+ exports.default = messageKo;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var messageTh = {"exerciseMenu.dropdown.button.tooltip":"ดูเพิ่มเติม","exerciseMenu.dropdown.item.codeHistory":"ประวัติการแก้ไขโค้ด","exerciseMenu.dropdown.item.environment":"สมบัติทดลอง","exerciseMenu.dropdown.item.preference":"การตั้งค่าเอ็ดิเตอร์","exerciseMenu.dropdown.item.room":"แชร์โค้ด","exerciseMenu.dropdown.item.submitHistory":"ประวัติการดำเนินการ/ส่งผลลัพธ์","exerciseMenu.arduino.agent.button":"มีปัญหาในการเชื่อมต่ออาดูยโนหรือไม่?","exerciseMenu.arduino.setting":"Arduino การตั้งค่า","exerciseMenu.arduino.setting.device":"อุปกรณ์","exerciseMenu.arduino.setting.noDevice":"ไม่มีอุปกรณ์","exerciseMenu.arduino.setting.selectDevice":"เลือกอุปกรณ์","exerciseMenu.arduino.transferSpeed":"ความเร็วในการส่งถ่าย","exerciseMenu.reset.button.tooltip.disabled":"ไฟล์ที่ระบุไม่สามารถทำการเริ่มต้นใหม่ได้","exerciseMenu.reset.button.tooltip.enabled":"รีเซ็ตโค้ด","exerciseMenu.reset.confirmDialog.body":"คุณต้องการลบโค้ดทั้งหมดและรีเซ็ตใช่ไหม?","exerciseMenu.reset.confirmDialog.cancel":"ยกเลิก","exerciseMenu.reset.confirmDialog.confirm":"ตรวจสอบ","exerciseMenu.reset.confirmDialog.title":"รีเซ็ตโค้ด","exerciseMenu.stdioFileBrowser.button.tooltip":"ไฟล์","exerciseMenu.stdioFileBrowser.popover.body.placeholder":"ไฟล์ที่ถูกส่งจากโค้ดจะแสดงที่นี่.","exerciseMenu.stdioFileBrowser.popover.header":"ไฟล์"};
6
+
7
+ exports.default = messageTh;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const _default: React.VFC<{}>;
2
+ import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<any>>;
3
4
  export default _default;
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var designTokens = require('@elice/design-tokens');
7
+ var intl = require('@elice/intl');
7
8
  var recoil = require('recoil');
8
9
  var styled = require('styled-components');
9
10
  var NoVncLazy = require('../../shared/no-vnc/NoVncLazy.js');
@@ -13,10 +14,10 @@ var context = require('../context/context.js');
13
14
  var recoilTypes = require('../context/recoilTypes.js');
14
15
  require('../context/subjects.js');
15
16
  require('../context/ExerciseProvider.js');
16
- var ExerciseIntlProvider = require('../context/ExerciseIntlProvider.js');
17
+ var ExercisePreviewDisplayModeButton = require('./ExercisePreviewDisplayModeButton.js');
17
18
  var en = require('./locales/en.json.js');
18
19
  var ko = require('./locales/ko.json.js');
19
- var ExercisePreviewDisplayModeButton = require('./ExercisePreviewDisplayModeButton.js');
20
+ var th = require('./locales/th.json.js');
20
21
 
21
22
  const StyledExercisePreview = styled.div.withConfig({
22
23
  componentId: "sc-i6d1i5-0"
@@ -26,7 +27,9 @@ const StyledExercisePreview = styled.div.withConfig({
26
27
  * - NoVnc
27
28
  * - Web browser
28
29
  */
29
- const ExercisePreview = () => {
30
+ const ExercisePreview = ({
31
+ __intl
32
+ }) => {
30
33
  const {
31
34
  materialExerciseId
32
35
  } = React.useContext(context.ExerciseContext);
@@ -93,11 +96,12 @@ const ExercisePreview = () => {
93
96
  //
94
97
  //
95
98
  //
96
- return React.createElement(StyledExercisePreview, null, renderNoVnc(), renderWebBrowser());
99
+ return React.createElement(intl.RawEliceIntlProvider, {
100
+ value: {
101
+ intl: __intl
102
+ }
103
+ }, React.createElement(StyledExercisePreview, null, renderNoVnc(), renderWebBrowser()));
97
104
  };
98
- var ExercisePreview$1 = ExerciseIntlProvider.withExerciseIntlProvider(ExercisePreview, {
99
- en: en.default,
100
- ko: ko.default
101
- });
105
+ var ExercisePreview$1 = new intl.IntlComponentBuilder(ExercisePreview).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
102
106
 
103
107
  exports.default = ExercisePreview$1;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var reactIntl = require('react-intl');
7
6
  var icons = require('@elice/icons');
7
+ var intl = require('@elice/intl');
8
8
  var recoil = require('recoil');
9
9
  var ExerciseMenuButton = require('../../shared/exercise-menu-button/ExerciseMenuButton.js');
10
10
  var recoil$1 = require('../context/recoil.js');
@@ -15,7 +15,9 @@ require('../context/ExerciseProvider.js');
15
15
 
16
16
  const ExercisePreviewDisplayModeButton = React.forwardRef((props, ref) => {
17
17
  var _a;
18
- const intl = reactIntl.useIntl();
18
+ const {
19
+ intl: intl$1
20
+ } = intl.useRawEliceIntl();
19
21
  const [exercisePreviewDisplayMode, setExercisePreviewDisplayMode] = recoil.useRecoilState(recoil$1.exercisePreviewDisplayModeState);
20
22
  /**
21
23
  * Handle click.
@@ -28,9 +30,9 @@ const ExercisePreviewDisplayModeButton = React.forwardRef((props, ref) => {
28
30
  //
29
31
  return React.createElement(ExerciseMenuButton.default, Object.assign({}, props, {
30
32
  icon: exercisePreviewDisplayMode === recoilTypes.ExercisePreviewDisplayMode.Mini ? icons.eilScreenHalf : icons.eilPanelRight,
31
- title: ((_a = props.title) !== null && _a !== void 0 ? _a : exercisePreviewDisplayMode === recoilTypes.ExercisePreviewDisplayMode.Mini) ? intl.formatMessage({
33
+ title: ((_a = props.title) !== null && _a !== void 0 ? _a : exercisePreviewDisplayMode === recoilTypes.ExercisePreviewDisplayMode.Mini) ? intl$1.formatMessage({
32
34
  id: 'exercisePreview.displayModeButton.sideBySide'
33
- }) : intl.formatMessage({
35
+ }) : intl$1.formatMessage({
34
36
  id: 'exercisePreview.displayModeButton.mini'
35
37
  }),
36
38
  placement: "bottom-end",
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var phrasesEn = {"exercisePreview.displayModeButton.mini":"Toggle to Mini mode","exercisePreview.displayModeButton.sideBySide":"Toggle to Side-by-side mode"};
5
+ var messageEn = {"exercisePreview.displayModeButton.mini":"Toggle to Mini mode","exercisePreview.displayModeButton.sideBySide":"Toggle to Side-by-side mode"};
6
6
 
7
- exports.default = phrasesEn;
7
+ exports.default = messageEn;
@@ -0,0 +1,3 @@
1
+ export { default as messageEn } from './en.json';
2
+ export { default as messageKo } from './ko.json';
3
+ export { default as messageTh } from './th.json';
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var phrasesKo = {"exercisePreview.displayModeButton.mini":"간소화 뷰로 전환","exercisePreview.displayModeButton.sideBySide":"사이드 뷰로 전환"};
5
+ var messageKo = {"exercisePreview.displayModeButton.mini":"간소화 뷰로 전환","exercisePreview.displayModeButton.sideBySide":"사이드 뷰로 전환"};
6
6
 
7
- exports.default = phrasesKo;
7
+ exports.default = messageKo;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var messageTh = {"exercisePreview.displayModeButton.mini":"เปลี่ยนเป็นมุมมองที่เรียบง่าย","exercisePreview.displayModeButton.sideBySide":"เปลี่ยนมุมมองเป็นด้านข้าง"};
6
+
7
+ exports.default = messageTh;