@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,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var reactIntl = require('react-intl');
7
6
  var reactUse = require('react-use');
8
7
  var designTokens = require('@elice/design-tokens');
9
- var materialSharedUtils = require('@elice/material-shared-utils');
8
+ var intl = require('@elice/intl');
10
9
  var styled = require('styled-components');
11
10
  var xterm = require('xterm');
12
11
  var xtermAddonFit = require('xterm-addon-fit');
13
12
  var en = require('./locales/en.json.js');
14
13
  var ko = require('./locales/ko.json.js');
14
+ var th = require('./locales/th.json.js');
15
15
  var index = require('./utils/index.js');
16
16
  require('xterm/css/xterm.css');
17
17
 
@@ -24,9 +24,9 @@ const Xterm = React.forwardRef(({
24
24
  fontSize,
25
25
  suppressSystemMessage = false,
26
26
  onInputRequest,
27
- onTtyResizeRequest
27
+ onTtyResizeRequest,
28
+ __intl
28
29
  }, ref) => {
29
- const intl = reactIntl.useIntl();
30
30
  const xterm$1 = React.useRef(null);
31
31
  const xtermFitAddon = React.useRef(null);
32
32
  const [xtermWrapperElRef, {
@@ -155,7 +155,7 @@ const Xterm = React.forwardRef(({
155
155
  return;
156
156
  }
157
157
  if (isRunning) {
158
- writeSystem(intl.formatMessage({
158
+ writeSystem(__intl.formatMessage({
159
159
  id: 'xterm.systemMessage.running'
160
160
  }));
161
161
  blur();
@@ -163,14 +163,14 @@ const Xterm = React.forwardRef(({
163
163
  //
164
164
  else {
165
165
  if (isRunBefore) {
166
- writeSystem(intl.formatMessage({
166
+ writeSystem(__intl.formatMessage({
167
167
  id: 'xterm.systemMessage.runAfter'
168
168
  }));
169
169
  blur();
170
170
  }
171
171
  //
172
172
  else {
173
- writeSystem(intl.formatMessage({
173
+ writeSystem(__intl.formatMessage({
174
174
  id: 'xterm.systemMessage.runBefore'
175
175
  }));
176
176
  blur();
@@ -212,16 +212,6 @@ const Xterm = React.forwardRef(({
212
212
  //
213
213
  //
214
214
  //
215
- var Xterm$1 = React.forwardRef((props, ref) => {
216
- return React.createElement(materialSharedUtils.MaterialIntlProvider, {
217
- locale: props.locale,
218
- phrases: {
219
- en: en.default,
220
- ko: ko.default
221
- }
222
- }, React.createElement(Xterm, Object.assign({}, props, {
223
- ref: ref
224
- })));
225
- });
215
+ var Xterm$1 = new intl.IntlComponentBuilder(Xterm).add('en', en.default).add('ko', ko.default).add('th', th.default).build();
226
216
 
227
217
  exports.default = Xterm$1;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var phrasesEn = {"xterm.systemMessage.runAfter":"\n/* Code running is complete! */","xterm.systemMessage.runBefore":"/* Code has not run yet. */","xterm.systemMessage.running":"/* Code is running... */"};
5
+ var messageEn = {"xterm.systemMessage.runAfter":"\n/* Code running is complete! */","xterm.systemMessage.runBefore":"/* Code has not run yet. */","xterm.systemMessage.running":"/* Code is running... */"};
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 = {"xterm.systemMessage.runAfter":"\n/* 코드 실행이 완료되었습니다! */","xterm.systemMessage.runBefore":"/* 코드가 아직 실행되지 않았습니다. */","xterm.systemMessage.running":"/* 코드가 실행되는 중입니다... */"};
5
+ var messageKo = {"xterm.systemMessage.runAfter":"\n/* 코드 실행이 완료되었습니다! */","xterm.systemMessage.runBefore":"/* 코드가 아직 실행되지 않았습니다. */","xterm.systemMessage.running":"/* 코드가 실행되는 중입니다... */"};
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 = {"xterm.systemMessage.runAfter":"/* การดำเนินการของโค้ดเสร็จสมบูรณ์แล้ว! */","xterm.systemMessage.runBefore":"/* โค้ดยังไม่ได้รัน */","xterm.systemMessage.running":"/* โค้ดกำลังถูกดำเนินการ... */"};
6
+
7
+ exports.default = messageTh;
@@ -0,0 +1,3 @@
1
+ var messageEn = {"materialExercise.button.referenceDocs":"Reference Docs"};
2
+
3
+ export { messageEn as default };
@@ -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';
@@ -0,0 +1,3 @@
1
+ var messageKo = {"materialExercise.button.referenceDocs":"언어 레퍼런스"};
2
+
3
+ export { messageKo as default };
@@ -0,0 +1,3 @@
1
+ var messageTh = {"materialExercise.button.referenceDocs":"ภาษาอ้างอิง"};
2
+
3
+ export { messageTh as default };
@@ -4,5 +4,7 @@ export interface MaterialExerciseProps extends MaterialExerciseCommonProps {
4
4
  locale?: string;
5
5
  }
6
6
  export type MaterialExerciseApis = MaterialExerciseCommonApis;
7
- declare const _default: React.ForwardRefExoticComponent<Omit<MaterialExerciseProps & React.RefAttributes<MaterialExerciseCommonApis> & import("@elice/material-shared-utils").MaterialCommponentCommonProps, "ref"> & React.RefAttributes<MaterialExerciseCommonApis>>;
7
+ declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<MaterialExerciseProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
8
+ __intl: import("@elice/intl").EliceIntlShape;
9
+ } & React.RefAttributes<MaterialExerciseCommonApis> & import("@elice/material-shared-utils").MaterialCommponentCommonProps, "ref"> & React.RefAttributes<MaterialExerciseCommonApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<MaterialExerciseCommonApis>>;
8
10
  export default _default;
@@ -1,11 +1,14 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { useIntl, IntlProvider } from 'react-intl';
3
2
  import { config } from '@elice/api-client';
4
3
  import { ResizableNext, Button, Icon, Hspace } from '@elice/blocks';
5
4
  import { eilClassroom } from '@elice/icons';
5
+ import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
6
6
  import { withForwardRefMaterial } from '@elice/material-shared-utils';
7
7
  import { useRecoilValue } from 'recoil';
8
8
  import { MATERIAL_RESIZABLE_COMMON_PROPS } from '../../constants/stylesheets.js';
9
+ import messageEn from '../locales/en.json.js';
10
+ import messageKo from '../locales/ko.json.js';
11
+ import messageTh from '../locales/th.json.js';
9
12
  import ExerciseFileTabsFileTreeButton from './exercise-file-tabs/ExerciseFileTabsFileTreeButton.js';
10
13
  import { exerciseContainerSizeState, exerciseState, exerciseFileTreeOpenedState, exercisePreviewTypeState, exercisePreviewDisplayModeState, exerciseMonacoEditorApisState } from './context/recoil.js';
11
14
  import { ExerciseContext } from './context/context.js';
@@ -24,8 +27,6 @@ import ExercisePreview from './exercise-preview/ExercisePreview.js';
24
27
  import ExerciseRightpane from './exercise-rightpane/ExerciseRightpane.js';
25
28
  import ExerciseRunner from './exercise-runner/ExerciseRunner.js';
26
29
  import { StyledExerciseContainer, EXERCISE_PREVIEW_MIN_WIDTH, EXERCISE_HORIZONTAL_RATIO, StyledExerciseMain, StyledExerciseFileAndTabWrap, StyledExerciseTabBar, StyledExerciseRunnerWrap, EXERCISE_RUNNER_MIN_HEIGHT, StyledxerciseFileTreeContaner, EXERCISE_FILE_TREE_MIN_WIDTH, StyledExerciseFileTreeWrap, StyledExerciseTabsWrap, StyledExerciseTabMenuWrap, StyledExerciseFileWrap } from './MaterialExercise.styled.js';
27
- import * as MaterialExercise_i18n from './MaterialExercise.i18n.js';
28
- import { en } from './MaterialExercise.i18n.js';
29
30
 
30
31
  //
31
32
  //
@@ -34,7 +35,9 @@ import { en } from './MaterialExercise.i18n.js';
34
35
  * Material exercise.
35
36
  */
36
37
  const MaterialExercise = forwardRef((props, ref) => {
37
- const intl = useIntl();
38
+ const {
39
+ __intl
40
+ } = props;
38
41
  const {
39
42
  onReferenceDocsToggle
40
43
  } = React.useContext(ExerciseContext);
@@ -89,7 +92,7 @@ const MaterialExercise = forwardRef((props, ref) => {
89
92
  icon: eilClassroom
90
93
  }), React.createElement(Hspace, {
91
94
  width: 0.25
92
- }), intl.formatMessage({
95
+ }), __intl.formatMessage({
93
96
  id: 'materialExercise.button.referenceDocs'
94
97
  })), React.createElement(Hspace, {
95
98
  width: 0.5
@@ -166,19 +169,16 @@ const MaterialExercise = forwardRef((props, ref) => {
166
169
  //
167
170
  //
168
171
  //
169
- var MaterialExercise$1 = withForwardRefMaterial(forwardRef((props, ref) => {
170
- const {
171
- locale = 'en'
172
- } = props;
173
- return React.createElement(IntlProvider, {
174
- locale: locale,
175
- defaultLocale: "en",
176
- messages: locale in MaterialExercise_i18n ? MaterialExercise_i18n[locale] : en
172
+ var MaterialExercise$1 = new IntlComponentBuilder(withForwardRefMaterial(forwardRef((props, ref) => {
173
+ return React.createElement(RawEliceIntlProvider, {
174
+ value: {
175
+ intl: props.__intl
176
+ }
177
177
  }, React.createElement(ExerciseProvider, Object.assign({}, props), React.createElement(MaterialExercise, Object.assign({}, props, {
178
178
  ref: ref
179
179
  }))));
180
180
  }), config.init, {
181
181
  overrideRecoilScope: true
182
- });
182
+ })).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
183
183
 
184
184
  export { MaterialExercise$1 as default };
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { WithIntlComponentBuilderProps } from '@elice/intl';
2
3
  export interface ExerciseProviderNoImageProps {
3
4
  /** */
4
5
  text?: React.ReactChild;
@@ -11,5 +12,5 @@ export interface ExerciseProviderNoImageProps {
11
12
  /** */
12
13
  locale?: string;
13
14
  }
14
- declare const _default: (props: ExerciseProviderNoImageProps) => React.JSX.Element;
15
+ declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<ExerciseProviderNoImageProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
15
16
  export default _default;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl';
3
2
  import { SafeImage, Box, Text, Button } from '@elice/blocks';
4
3
  import { base } from '@elice/design-tokens';
5
- import { MaterialIntlProvider } from '@elice/material-shared-utils';
4
+ import { IntlComponentBuilder } from '@elice/intl';
6
5
  import styled from 'styled-components';
7
- import phrasesEn from './locales/noImage.en.json.js';
8
- import phrasesKo from './locales/noImage.ko.json.js';
6
+ import noImageMessageEn from './locales/noImage.en.json.js';
7
+ import noImageMessageKo from './locales/noImage.ko.json.js';
8
+ import noImageMessageTh from './locales/noImage.th.json.js';
9
9
 
10
10
  const StyledProviderNoImage = styled.div.withConfig({
11
11
  componentId: "sc-oaauqc-0"
@@ -14,9 +14,9 @@ const ExerciseProviderNoImage = ({
14
14
  text,
15
15
  imageSrc = '',
16
16
  buttonText,
17
- onButtonClick
17
+ onButtonClick,
18
+ __intl
18
19
  }) => {
19
- const intl = useIntl();
20
20
  /**
21
21
  * render action button
22
22
  */
@@ -26,7 +26,7 @@ const ExerciseProviderNoImage = ({
26
26
  }
27
27
  return React.createElement(Button, {
28
28
  onClick: onButtonClick
29
- }, buttonText || intl.formatMessage({
29
+ }, buttonText || __intl.formatMessage({
30
30
  id: 'exerciseContext.provider.noImage.button'
31
31
  }));
32
32
  };
@@ -45,21 +45,13 @@ const ExerciseProviderNoImage = ({
45
45
  paddingbottom: "2rem"
46
46
  }, React.createElement(Text, {
47
47
  role: "white"
48
- }, text || intl.formatMessage({
48
+ }, text || __intl.formatMessage({
49
49
  id: 'exerciseContext.provider.noImage.title'
50
50
  }))), renderActionButton());
51
51
  };
52
52
  //
53
53
  //
54
54
  //
55
- var MaterialExerciseNoImage = (props => {
56
- return React.createElement(MaterialIntlProvider, {
57
- locale: props.locale,
58
- phrases: {
59
- en: phrasesEn,
60
- ko: phrasesKo
61
- }
62
- }, React.createElement(ExerciseProviderNoImage, Object.assign({}, props)));
63
- });
55
+ var MaterialExerciseNoImage = new IntlComponentBuilder(ExerciseProviderNoImage).add('en', noImageMessageEn).add('ko', noImageMessageKo).add('th', noImageMessageTh).build();
64
56
 
65
57
  export { MaterialExerciseNoImage as default };
@@ -1,3 +1,3 @@
1
- var phrasesEn = {"exerciseContext.provider.noImage.button":"Create a new image","exerciseContext.provider.noImage.title":"Exercise image is not ready yet."};
1
+ var noImageMessageEn = {"exerciseContext.provider.noImage.button":"Create a new image","exerciseContext.provider.noImage.title":"Exercise image is not ready yet."};
2
2
 
3
- export { phrasesEn as default };
3
+ export { noImageMessageEn as default };
@@ -1,3 +1,3 @@
1
- var phrasesKo = {"exerciseContext.provider.noImage.button":"예제 작성","exerciseContext.provider.noImage.title":"실습 코드가 작성되지 않았습니다."};
1
+ var noImageMessageKo = {"exerciseContext.provider.noImage.button":"예제 작성","exerciseContext.provider.noImage.title":"실습 코드가 작성되지 않았습니다."};
2
2
 
3
- export { phrasesKo as default };
3
+ export { noImageMessageKo as default };
@@ -0,0 +1,3 @@
1
+ var noImageMessageTh = {"exerciseContext.provider.noImage.button":"ตัวอย่างการเขียน","exerciseContext.provider.noImage.title":"ยังไม่มีโค้ดที่เขียนไว้ในการฝึกฝนครับ."};
2
+
3
+ export { noImageMessageTh as default };
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
+ import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
2
3
  export interface ExerciseCodeHistoryProps {
3
4
  onHide?: () => void;
4
5
  onLoadVersionButtonClick?: (doc: string) => void;
5
6
  }
6
- declare const _default: React.VFC<ExerciseCodeHistoryProps>;
7
+ declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps<ExerciseCodeHistoryProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
7
8
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl';
3
2
  import { Button, Text } from '@elice/blocks';
3
+ import { IntlComponentBuilder } from '@elice/intl';
4
4
  import dayjs from 'dayjs';
5
5
  import { useRecoilValue } from 'recoil';
6
6
  import ExerciseVersionList from '../../shared/exercise-version-list/ExerciseVersionList.js';
@@ -26,16 +26,16 @@ import 'lodash/debounce';
26
26
  import 'ot-text-unicode';
27
27
  import 'random-words';
28
28
  import 'unicount';
29
- import { withExerciseIntlProvider } from '../context/ExerciseIntlProvider.js';
30
- import phrasesEn from './locales/en.json.js';
31
- import phrasesKo from './locales/ko.json.js';
29
+ import messageEn from './locales/en.json.js';
30
+ import messageKo from './locales/ko.json.js';
31
+ import messageTh from './locales/th.json.js';
32
32
  import { StyledModalContent, StyledVersionsWrapper, StyledVersionRangeInputWrapper, StyledVersionRangeInput, StyledEditorWrapper, StyledFileNameBox } from './ExerciseCodeHistory.styled.js';
33
33
 
34
34
  const ExerciseCodeHistory = ({
35
35
  onHide,
36
- onLoadVersionButtonClick
36
+ onLoadVersionButtonClick,
37
+ __intl
37
38
  }) => {
38
- const intl = useIntl();
39
39
  const {
40
40
  exerciseRoomId
41
41
  } = React.useContext(ExerciseContext);
@@ -62,7 +62,7 @@ const ExerciseCodeHistory = ({
62
62
  }, React.createElement(Text, {
63
63
  role: "gray3",
64
64
  size: "small"
65
- }, intl.formatMessage({
65
+ }, __intl.formatMessage({
66
66
  id: 'exerciseCodeHistory.op.version'
67
67
  }, {
68
68
  version: op.version,
@@ -75,7 +75,7 @@ const ExerciseCodeHistory = ({
75
75
  }, React.createElement(Text, {
76
76
  role: "white",
77
77
  size: "small"
78
- }, intl.formatMessage({
78
+ }, __intl.formatMessage({
79
79
  id: 'exerciseCodeHistory.button.load.more'
80
80
  }))) : null);
81
81
  /**
@@ -126,7 +126,7 @@ const ExerciseCodeHistory = ({
126
126
  onClick: () => {
127
127
  onLoadVersionButtonClick(doc);
128
128
  }
129
- }, intl.formatMessage({
129
+ }, __intl.formatMessage({
130
130
  id: 'exerciseCodeHistory.button.load.selectedVersions'
131
131
  }));
132
132
  };
@@ -134,7 +134,7 @@ const ExerciseCodeHistory = ({
134
134
  //
135
135
  //
136
136
  return React.createElement(MaterialModal, {
137
- title: intl.formatMessage({
137
+ title: __intl.formatMessage({
138
138
  id: 'exerciseCodeHistory.title'
139
139
  }),
140
140
  onHide: onHide,
@@ -144,9 +144,6 @@ const ExerciseCodeHistory = ({
144
144
  //
145
145
  //
146
146
  //
147
- var ExerciseCodeHistory$1 = withExerciseIntlProvider(ExerciseCodeHistory, {
148
- en: phrasesEn,
149
- ko: phrasesKo
150
- });
147
+ var ExerciseCodeHistory$1 = new IntlComponentBuilder(ExerciseCodeHistory).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
151
148
 
152
149
  export { ExerciseCodeHistory$1 as default };
@@ -1,3 +1,3 @@
1
- var phrasesEn = {"exerciseCodeHistory.button.load.more":"Load more","exerciseCodeHistory.button.load.selectedVersions":"Load selected versions","exerciseCodeHistory.op.version":"Version {version} {datetime}","exerciseCodeHistory.title":"Code revision history"};
1
+ var messageEn = {"exerciseCodeHistory.button.load.more":"Load more","exerciseCodeHistory.button.load.selectedVersions":"Load selected versions","exerciseCodeHistory.op.version":"Version {version} {datetime}","exerciseCodeHistory.title":"Code revision history"};
2
2
 
3
- export { phrasesEn as default };
3
+ export { messageEn as default };
@@ -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';
@@ -1,3 +1,3 @@
1
- var phrasesKo = {"exerciseCodeHistory.button.load.more":"더 불러오기","exerciseCodeHistory.button.load.selectedVersions":"선택 버전 불러오기","exerciseCodeHistory.op.version":"버전 {version} {datetime}","exerciseCodeHistory.title":"코드 수정 이력"};
1
+ var messageKo = {"exerciseCodeHistory.button.load.more":"더 불러오기","exerciseCodeHistory.button.load.selectedVersions":"선택 버전 불러오기","exerciseCodeHistory.op.version":"버전 {version} {datetime}","exerciseCodeHistory.title":"코드 수정 이력"};
2
2
 
3
- export { phrasesKo as default };
3
+ export { messageKo as default };
@@ -0,0 +1,3 @@
1
+ var messageTh = {"exerciseCodeHistory.button.load.more":"โหลดเพิ่มเติม","exerciseCodeHistory.button.load.selectedVersions":"โหลดเวอร์ชันที่เลือก","exerciseCodeHistory.op.version":"เวอร์ชัน {version} {datetime}","exerciseCodeHistory.title":"ประวัติการแก้ไขโค้ด"};
2
+
3
+ export { messageTh as default };
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
- /**
3
- * Banner for readonly exercise file.
4
- */
5
- declare const ExerciseFileReadOnlyBanner: React.FC;
6
- export default ExerciseFileReadOnlyBanner;
2
+ import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<any>>;
4
+ export default _default;
@@ -1,13 +1,16 @@
1
1
  import React from 'react';
2
- import { FormattedMessage } from 'react-intl';
3
2
  import { Text } from '@elice/blocks';
4
3
  import { base } from '@elice/design-tokens';
4
+ import { IntlComponentBuilder } from '@elice/intl';
5
5
  import styled from 'styled-components';
6
6
  import '../context/recoil.js';
7
7
  import { ExerciseContext } from '../context/context.js';
8
8
  import '../context/recoilTypes.js';
9
9
  import '../context/subjects.js';
10
10
  import '../context/ExerciseProvider.js';
11
+ import messageEn from './locales/en.json.js';
12
+ import messageKo from './locales/ko.json.js';
13
+ import messageTh from './locales/th.json.js';
11
14
 
12
15
  const StyledEditorReadOnlyBanner = styled.div.withConfig({
13
16
  componentId: "sc-kh9iw2-0"
@@ -15,7 +18,9 @@ const StyledEditorReadOnlyBanner = styled.div.withConfig({
15
18
  /**
16
19
  * Banner for readonly exercise file.
17
20
  */
18
- const ExerciseFileReadOnlyBanner = () => {
21
+ const ExerciseFileReadOnlyBanner = ({
22
+ __intl
23
+ }) => {
19
24
  const {
20
25
  readOnlyActiveFile
21
26
  } = React.useContext(ExerciseContext);
@@ -25,9 +30,13 @@ const ExerciseFileReadOnlyBanner = () => {
25
30
  return React.createElement(StyledEditorReadOnlyBanner, null, React.createElement(Text, {
26
31
  size: "tiny",
27
32
  role: "gray3"
28
- }, React.createElement(FormattedMessage, {
29
- id: "materialExercise.text.readOnlyBanner"
33
+ }, __intl.formatMessage({
34
+ id: 'materialExercise.text.readOnlyBanner'
30
35
  })));
31
36
  };
37
+ //
38
+ //
39
+ //
40
+ var ExerciseFileReadOnlyBanner$1 = new IntlComponentBuilder(ExerciseFileReadOnlyBanner).add('ko', messageKo).add('en', messageEn).add('th', messageTh).build();
32
41
 
33
- export { ExerciseFileReadOnlyBanner as default };
42
+ export { ExerciseFileReadOnlyBanner$1 as default };
@@ -0,0 +1,3 @@
1
+ var messageEn = {"materialExercise.text.readOnlyBanner":"[Read-Only] This file is read-only."};
2
+
3
+ export { messageEn as default };
@@ -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';
@@ -0,0 +1,3 @@
1
+ var messageKo = {"materialExercise.text.readOnlyBanner":"[읽기전용] 이 파일은 읽기전용 입니다."};
2
+
3
+ export { messageKo as default };
@@ -0,0 +1,3 @@
1
+ var messageTh = {"materialExercise.text.readOnlyBanner":"[อ่านเท่านั้น] ไฟล์นี้เป็นเพียงอ่านอย่างเดียว"};
2
+
3
+ export { messageTh as default };
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const ExerciseFileTabs: React.FC;
3
- export default ExerciseFileTabs;
2
+ import type { WithIntlComponentBuilderProps as EliceIntlProps } from '@elice/intl';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<EliceIntlProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<any>>;
4
+ export default _default;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
2
3
  import { useRecoilState } from 'recoil';
3
4
  import styled from 'styled-components';
4
5
  import '../../shared/exercise-shimmer/ExerciseFileShimmer.js';
@@ -11,12 +12,23 @@ import { ExerciseContext } from '../context/context.js';
11
12
  import '../context/recoilTypes.js';
12
13
  import '../context/subjects.js';
13
14
  import '../context/ExerciseProvider.js';
15
+ import messageEn from './locales/fileTreeButton.en.json.js';
16
+ import messageKo from './locales/fileTreeButton.ko.json.js';
17
+ import messageTh from './locales/fileTreeButton.th.json.js';
14
18
 
19
+ //
20
+ //
21
+ //
15
22
  const AsyncFileTabs = React.lazy(() => import('../../shared/file-tabs/FileTabs.js'));
16
23
  const StyledFileTabsWrapper = styled.div.withConfig({
17
24
  componentId: "sc-11fdoyl-0"
18
25
  })(["flex:0 0 3rem;"]);
19
- const ExerciseFileTabs = () => {
26
+ //
27
+ //
28
+ //
29
+ const ExerciseFileTabs = ({
30
+ __intl
31
+ }) => {
20
32
  const {
21
33
  exerciseRoomId,
22
34
  materialExerciseId
@@ -48,7 +60,11 @@ const ExerciseFileTabs = () => {
48
60
  }
49
61
  setActiveFilename(path);
50
62
  };
51
- return React.createElement(StyledFileTabsWrapper, null, React.createElement(React.Suspense, {
63
+ return React.createElement(RawEliceIntlProvider, {
64
+ value: {
65
+ intl: __intl
66
+ }
67
+ }, React.createElement(StyledFileTabsWrapper, null, React.createElement(React.Suspense, {
52
68
  fallback: React.createElement(ExerciseFileTabsShimmer, null)
53
69
  }, React.createElement(AsyncFileTabs, {
54
70
  openedTabs: openedTabs,
@@ -56,7 +72,8 @@ const ExerciseFileTabs = () => {
56
72
  onCloseTab: handleCloseTab,
57
73
  onSelectTab: handleActivePathChange,
58
74
  onTabOrderChange: handleTabOrderChange
59
- })));
75
+ }))));
60
76
  };
77
+ var ExerciseFileTabs$1 = new IntlComponentBuilder(ExerciseFileTabs).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
61
78
 
62
- export { ExerciseFileTabs as default };
79
+ export { ExerciseFileTabs$1 as default };
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Omit<React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
3
- export default _default;
2
+ declare const ExerciseFileTabsFileTreeButton: React.ForwardRefExoticComponent<React.RefAttributes<HTMLButtonElement>>;
3
+ export default ExerciseFileTabsFileTreeButton;
@@ -1,9 +1,9 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { useIntl } from 'react-intl';
3
2
  import { useHover } from 'react-use';
4
3
  import { IconButton, Tooltip } from '@elice/blocks';
5
4
  import { base } from '@elice/design-tokens';
6
5
  import { eilArrowRightwardsDouble, eilFolder } from '@elice/icons';
6
+ import { useRawEliceIntl } from '@elice/intl';
7
7
  import { enums } from '@elice/types';
8
8
  import { eliceApiUiConfigNormalizeHelper } from '@elice/utils';
9
9
  import { useRecoilValue, useRecoilState } from 'recoil';
@@ -13,16 +13,15 @@ import { ExerciseContext } from '../context/context.js';
13
13
  import '../context/recoilTypes.js';
14
14
  import '../context/subjects.js';
15
15
  import '../context/ExerciseProvider.js';
16
- import { withForwardRefExerciseIntlProvider } from '../context/ExerciseIntlProvider.js';
17
- import phrasesEn from './locales/fileTreeButton.en.json.js';
18
- import phrasesKo from './locales/fileTreeButton.ko.json.js';
19
16
 
20
17
  const ICON_BUTTON_SIZE = '2.25rem';
21
18
  const StyledFileTreeButton = styled(IconButton).withConfig({
22
19
  componentId: "sc-ohtsjn-0"
23
20
  })(["width:", " !important;height:", " !important;border-right:1px solid ", " !important;background-color:", " !important;&:hover{background-color:", " !important;}"], ICON_BUTTON_SIZE, ICON_BUTTON_SIZE, base.color.navy7, props => props.active ? base.color.navy8 : base.color.navy8, base.color.navy9);
24
21
  const ExerciseFileTabsFileTreeButton = forwardRef((_, ref) => {
25
- const intl = useIntl();
22
+ const {
23
+ intl
24
+ } = useRawEliceIntl();
26
25
  const {
27
26
  materialExerciseId
28
27
  } = React.useContext(ExerciseContext);
@@ -70,12 +69,5 @@ const ExerciseFileTabsFileTreeButton = forwardRef((_, ref) => {
70
69
  });
71
70
  return (exercise === null || exercise === void 0 ? void 0 : exercise.uiConfig.editorFileTreeDefaultStatus) === enums.ExerciseUiConfigEditorFileTreeDefaultStatus.Hide ? null : el;
72
71
  });
73
- //
74
- //
75
- //
76
- var ExerciseFileTabsFileTreeButton$1 = withForwardRefExerciseIntlProvider(ExerciseFileTabsFileTreeButton, {
77
- en: phrasesEn,
78
- ko: phrasesKo
79
- });
80
72
 
81
- export { ExerciseFileTabsFileTreeButton$1 as default };
73
+ export { ExerciseFileTabsFileTreeButton as default };
@@ -1,3 +1,3 @@
1
- var phrasesEn = {"exerciseFileTab.fileTreeButton.tooltip.close":"Close Filetree","exerciseFileTab.fileTreeButton.tooltip.open":"Open Filetree"};
1
+ var messageEn = {"exerciseFileTab.fileTreeButton.tooltip.close":"Close Filetree","exerciseFileTab.fileTreeButton.tooltip.open":"Open Filetree"};
2
2
 
3
- export { phrasesEn as default };
3
+ export { messageEn as default };
@@ -1,3 +1,3 @@
1
- var phrasesKo = {"exerciseFileTab.fileTreeButton.tooltip.close":"파일 트리 닫기","exerciseFileTab.fileTreeButton.tooltip.open":"파일 트리 열기"};
1
+ var messageKo = {"exerciseFileTab.fileTreeButton.tooltip.close":"파일 트리 닫기","exerciseFileTab.fileTreeButton.tooltip.open":"파일 트리 열기"};
2
2
 
3
- export { phrasesKo as default };
3
+ export { messageKo as default };
@@ -0,0 +1,3 @@
1
+ var messageTh = {"exerciseFileTab.fileTreeButton.tooltip.close":"ปิดต้นไม้ไฟล์","exerciseFileTab.fileTreeButton.tooltip.open":"เปิดต้นไม้ไฟล์"};
2
+
3
+ export { messageTh as default };
@@ -0,0 +1,3 @@
1
+ export { default as messageEn } from './fileTreeButton.en.json';
2
+ export { default as messageKo } from './fileTreeButton.ko.json';
3
+ export { default as messageTh } from './fileTreeButton.th.json';