@elice/material-exercise 1.240401.0 → 1.240508.0-globalization.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +11 -14
  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 +17 -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 +5 -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 +9 -9
  40. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +4 -3
  41. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +13 -13
  42. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +8 -8
  43. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.js +10 -10
  44. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +7 -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 +8 -8
  51. package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +4 -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 +14 -15
  58. package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +18 -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 +9 -9
  65. package/cjs/components/material-exercise/exercise-room/ExerciseRoomDetail.js +28 -28
  66. package/cjs/components/material-exercise/exercise-room/ExerciseRoomList.js +15 -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 +26 -29
  73. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +20 -18
  74. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +10 -10
  75. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +13 -13
  76. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +6 -5
  77. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +27 -30
  78. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +8 -7
  79. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +6 -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 +13 -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 +8 -8
  95. package/cjs/components/shared/file-tree/FileTreeListItemContentMenu.js +24 -24
  96. package/cjs/components/shared/file-tree/FileTreeToolbar.js +6 -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 +8 -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 +11 -15
  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 +17 -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 +3 -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 +9 -9
  161. package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +4 -3
  162. package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +12 -12
  163. package/es/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +2 -2
  164. package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.js +6 -6
  165. package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +6 -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 +9 -9
  172. package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +2 -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 +14 -15
  179. package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +2 -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 +9 -9
  186. package/es/components/material-exercise/exercise-room/ExerciseRoomDetail.js +4 -4
  187. package/es/components/material-exercise/exercise-room/ExerciseRoomList.js +2 -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 +26 -29
  194. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +18 -16
  195. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +2 -2
  196. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +12 -12
  197. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +6 -5
  198. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +26 -29
  199. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +8 -7
  200. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +6 -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 +14 -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 +2 -2
  216. package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +22 -22
  217. package/es/components/shared/file-tree/FileTreeToolbar.js +3 -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 +8 -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
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
+ import type { WithIntlComponentBuilderProps } from '@elice/intl';
2
3
  import type { FileViewerBaseProps } from './FileViewer';
3
4
  interface FileViewerNonViewableProps extends FileViewerBaseProps {
4
5
  onTextViewerClick?: () => void;
5
6
  }
6
- declare const _default: (props: FileViewerNonViewableProps) => React.JSX.Element;
7
+ declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<FileViewerNonViewableProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
7
8
  export default _default;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
- import { FormattedMessage } from 'react-intl';
3
2
  import { Button, Vspace, Text, Icon } from '@elice/blocks';
4
3
  import { eilDownload } from '@elice/icons';
5
- import { MaterialIntlProvider } from '@elice/material-shared-utils';
4
+ import { IntlComponentBuilder } from '@elice/intl';
6
5
  import FileSaver from 'file-saver';
7
6
  import styled from 'styled-components';
8
7
  import FileIcon from '../file-icon/FileIcon.js';
9
- import phrasesEn from './locales/nonViewable.en.json.js';
10
- import phrasesKo from './locales/nonViewable.ko.json.js';
8
+ import nonViewableMessageEn from './locales/nonViewable.en.json.js';
9
+ import nonViewableMessageKo from './locales/nonViewable.ko.json.js';
10
+ import nonViewableMessageTh from './locales/nonViewable.th.json.js';
11
11
 
12
12
  const StyledContainer = styled.div.withConfig({
13
13
  componentId: "sc-l8149y-0"
@@ -24,7 +24,8 @@ const StyledButtonsWrap = styled.div.withConfig({
24
24
  const FileViewerNonViewable = ({
25
25
  filename,
26
26
  fileurl,
27
- onTextViewerClick
27
+ onTextViewerClick,
28
+ __intl
28
29
  }) => {
29
30
  /**
30
31
  * Handle download button click.
@@ -53,8 +54,8 @@ const FileViewerNonViewable = ({
53
54
  icon: eilDownload
54
55
  }),
55
56
  onClick: handleDownloadClick
56
- }, React.createElement(FormattedMessage, {
57
- id: "fileViewer.nonViewable.downloadButton"
57
+ }, __intl.formatMessage({
58
+ id: 'fileViewer.nonViewable.downloadButton'
58
59
  }));
59
60
  };
60
61
  /**
@@ -69,8 +70,8 @@ const FileViewerNonViewable = ({
69
70
  size: "tiny",
70
71
  hoverable: true,
71
72
  onClick: onTextViewerClick
72
- }, React.createElement(FormattedMessage, {
73
- id: "fileViewer.nonViewable.openViaTextEditor"
73
+ }, __intl.formatMessage({
74
+ id: 'fileViewer.nonViewable.openViaTextEditor'
74
75
  }));
75
76
  };
76
77
  //
@@ -91,8 +92,8 @@ const FileViewerNonViewable = ({
91
92
  size: "tiny",
92
93
  lineHeight: 1.5,
93
94
  wordBreak: "keep-all"
94
- }, React.createElement(FormattedMessage, {
95
- id: "fileViewer.nonViewable.content"
95
+ }, __intl.formatMessage({
96
+ id: 'fileViewer.nonViewable.content'
96
97
  })), React.createElement(Vspace, {
97
98
  height: 2
98
99
  }), React.createElement(StyledButtonsWrap, null, renderFileViewerDownloadButton(), renderFileViewerTextEditorLink())));
@@ -100,14 +101,6 @@ const FileViewerNonViewable = ({
100
101
  //
101
102
  //
102
103
  //
103
- var FileViewerNonViewable$1 = (props => {
104
- return React.createElement(MaterialIntlProvider, {
105
- locale: props.locale,
106
- phrases: {
107
- en: phrasesEn,
108
- ko: phrasesKo
109
- }
110
- }, React.createElement(FileViewerNonViewable, Object.assign({}, props)));
111
- });
104
+ var FileViewerNonViewable$1 = new IntlComponentBuilder(FileViewerNonViewable).add('en', nonViewableMessageEn).add('ko', nonViewableMessageKo).add('th', nonViewableMessageTh).build();
112
105
 
113
106
  export { FileViewerNonViewable$1 as default };
@@ -0,0 +1,6 @@
1
+ export { default as messageEn } from './en.json';
2
+ export { default as messageKo } from './ko.json';
3
+ export { default as messageTh } from './th.json';
4
+ export { default as nonViewableMessageEn } from './nonViewable.en.json';
5
+ export { default as nonViewableMessageKo } from './nonViewable.ko.json';
6
+ export { default as nonViewableMessageTh } from './nonViewable.th.json';
@@ -1,3 +1,3 @@
1
- var phrasesEn = {"fileViewer.nonViewable.content":"The file is not displayed in the editor because it is either binary or not supported.","fileViewer.nonViewable.downloadButton":"Download File","fileViewer.nonViewable.openViaTextEditor":"Open via Editor"};
1
+ var nonViewableMessageEn = {"fileViewer.nonViewable.content":"The file is not displayed in the editor because it is either binary or not supported.","fileViewer.nonViewable.downloadButton":"Download File","fileViewer.nonViewable.openViaTextEditor":"Open via Editor"};
2
2
 
3
- export { phrasesEn as default };
3
+ export { nonViewableMessageEn as default };
@@ -1,3 +1,3 @@
1
- var phrasesKo = {"fileViewer.nonViewable.content":"해당 파일은 바이너리 파일이거나 지원하지 않는 파일이기 때문에 에디터에 표시되지 않습니다.","fileViewer.nonViewable.downloadButton":"파일 다운로드","fileViewer.nonViewable.openViaTextEditor":"텍스트 에디터로 열기"};
1
+ var nonViewableMessageKo = {"fileViewer.nonViewable.content":"해당 파일은 바이너리 파일이거나 지원하지 않는 파일이기 때문에 에디터에 표시되지 않습니다.","fileViewer.nonViewable.downloadButton":"파일 다운로드","fileViewer.nonViewable.openViaTextEditor":"텍스트 에디터로 열기"};
2
2
 
3
- export { phrasesKo as default };
3
+ export { nonViewableMessageKo as default };
@@ -0,0 +1,3 @@
1
+ var nonViewableMessageTh = {"fileViewer.nonViewable.content":"ไฟล์ดังกล่าวเป็นไฟล์ไบนารีหรือไฟล์ที่ไม่รองรับ จึงไม่สามารถแสดงในเอดิเตอร์ได้ครับ.","fileViewer.nonViewable.downloadButton":"ดาวน์โหลดไฟล์","fileViewer.nonViewable.openViaTextEditor":"เปิดด้วยเดสก์ท็อป"};
2
+
3
+ export { nonViewableMessageTh as default };
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
+ import type { WithIntlComponentBuilderProps } from '@elice/intl';
2
3
  import type { MonacoEditorPreference } from './constants';
3
4
  export interface PerferenceFormProps {
4
5
  value: Partial<MonacoEditorPreference>;
5
6
  locale?: string;
6
7
  onChange?: (value: Required<MonacoEditorPreference>) => void;
7
8
  }
8
- declare const _default: (props: PerferenceFormProps) => React.JSX.Element;
9
+ declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<PerferenceFormProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
9
10
  export default _default;
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
- import { useIntl, FormattedMessage } from 'react-intl';
3
2
  import { useDeepCompareEffect } from 'react-use';
4
3
  import { Select, Text, Vspace, AntSwitch } from '@elice/blocks';
5
4
  import { base } from '@elice/design-tokens';
6
- import { MaterialIntlProvider } from '@elice/material-shared-utils';
5
+ import { IntlComponentBuilder } from '@elice/intl';
7
6
  import styled from 'styled-components';
8
7
  import { VSCODE_THEMES } from './constants/themes/index.js';
9
- import phrasesEn from './locales/en.json.js';
10
- import phrasesKo from './locales/ko.json.js';
11
8
  import { MONACO_EDITOR_PREFERENCE_OPTIONS_FONT_SIZES, MONACO_EDITOR_RENDER_WHITESPACE_OPTIONS, MONACO_EDITOR_PREFERENCE_OPTIONS_TAB_SIZES } from './constants/monaco/preferences.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';
12
12
  import 'monaco-editor/esm/vs/editor/editor.api';
13
13
  import { normalizeMonacoPreference } from './utils/monacoPreference.js';
14
14
 
@@ -20,9 +20,9 @@ const StyledSelect = styled(Select).withConfig({
20
20
  })(["> div{background:", " !important;border-color:", " !important;}select{padding:0 !important;height:2rem !important;color:#fff !important;> option{background:", " !important;}}"], base.color.navy8, base.color.navy7, base.color.navy8);
21
21
  const MonacoEditorPerferenceForm = ({
22
22
  value,
23
- onChange
23
+ onChange,
24
+ __intl
24
25
  }) => {
25
- const intl = useIntl();
26
26
  const [preference, setPreference] = React.useState(normalizeMonacoPreference(value));
27
27
  /**
28
28
  * Update preference from form.
@@ -50,8 +50,8 @@ const MonacoEditorPerferenceForm = ({
50
50
  role: "navy",
51
51
  size: "tiny",
52
52
  block: true
53
- }, React.createElement(FormattedMessage, {
54
- id: "monacoEditorPerferenceForm.displaying.item.theme.name"
53
+ }, __intl.formatMessage({
54
+ id: 'monacoEditorPerferenceForm.displaying.item.theme.name'
55
55
  })), React.createElement(StyledSelect, {
56
56
  value: preference.theme,
57
57
  size: "small",
@@ -77,8 +77,8 @@ const MonacoEditorPerferenceForm = ({
77
77
  role: "navy",
78
78
  size: "tiny",
79
79
  block: true
80
- }, React.createElement(FormattedMessage, {
81
- id: "monacoEditorPerferenceForm.displaying.item.fontSize.name"
80
+ }, __intl.formatMessage({
81
+ id: 'monacoEditorPerferenceForm.displaying.item.fontSize.name'
82
82
  })), React.createElement(StyledSelect, {
83
83
  value: preference.fontSize,
84
84
  size: "small",
@@ -101,8 +101,8 @@ const MonacoEditorPerferenceForm = ({
101
101
  role: "navy",
102
102
  size: "tiny",
103
103
  block: true
104
- }, React.createElement(FormattedMessage, {
105
- id: "monacoEditorPerferenceForm.displaying.item.wordWrap.name"
104
+ }, __intl.formatMessage({
105
+ id: 'monacoEditorPerferenceForm.displaying.item.wordWrap.name'
106
106
  })), React.createElement(AntSwitch, {
107
107
  checked: preference.wordWrap === 'on',
108
108
  onChange: value => {
@@ -120,8 +120,8 @@ const MonacoEditorPerferenceForm = ({
120
120
  role: "navy",
121
121
  size: "tiny",
122
122
  block: true
123
- }, React.createElement(FormattedMessage, {
124
- id: "monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name"
123
+ }, __intl.formatMessage({
124
+ id: 'monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name'
125
125
  })), React.createElement(StyledSelect, {
126
126
  value: preference.renderWhitespace,
127
127
  size: "small",
@@ -134,7 +134,7 @@ const MonacoEditorPerferenceForm = ({
134
134
  }, MONACO_EDITOR_RENDER_WHITESPACE_OPTIONS.map(option => React.createElement("option", {
135
135
  key: option,
136
136
  value: option
137
- }, intl.formatMessage({
137
+ }, __intl.formatMessage({
138
138
  id: `monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.${option}`
139
139
  })))));
140
140
  };
@@ -147,8 +147,8 @@ const MonacoEditorPerferenceForm = ({
147
147
  role: "navy",
148
148
  size: "tiny",
149
149
  block: true
150
- }, React.createElement(FormattedMessage, {
151
- id: "monacoEditorPerferenceForm.displaying.item.minimap.name"
150
+ }, __intl.formatMessage({
151
+ id: 'monacoEditorPerferenceForm.displaying.item.minimap.name'
152
152
  })), React.createElement(AntSwitch, {
153
153
  checked: (_a = preference.minimap) === null || _a === void 0 ? void 0 : _a.enabled,
154
154
  onChange: value => {
@@ -168,8 +168,8 @@ const MonacoEditorPerferenceForm = ({
168
168
  role: "navy",
169
169
  size: "tiny",
170
170
  block: true
171
- }, React.createElement(FormattedMessage, {
172
- id: "monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name"
171
+ }, __intl.formatMessage({
172
+ id: 'monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name'
173
173
  })), React.createElement(AntSwitch, {
174
174
  checked: preference.cursorSmoothCaretAnimation,
175
175
  onChange: value => {
@@ -187,8 +187,8 @@ const MonacoEditorPerferenceForm = ({
187
187
  role: "navy",
188
188
  size: "tiny",
189
189
  block: true
190
- }, React.createElement(FormattedMessage, {
191
- id: "monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name"
190
+ }, __intl.formatMessage({
191
+ id: 'monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name'
192
192
  })), React.createElement(AntSwitch, {
193
193
  checked: preference.autoClosingBrackets === 'always',
194
194
  onChange: value => {
@@ -206,8 +206,8 @@ const MonacoEditorPerferenceForm = ({
206
206
  role: "navy",
207
207
  size: "tiny",
208
208
  block: true
209
- }, React.createElement(FormattedMessage, {
210
- id: "monacoEditorPerferenceForm.textEditing.item.detectIndentation.name"
209
+ }, __intl.formatMessage({
210
+ id: 'monacoEditorPerferenceForm.textEditing.item.detectIndentation.name'
211
211
  })), React.createElement(AntSwitch, {
212
212
  checked: preference.detectIndentation,
213
213
  onChange: value => {
@@ -225,8 +225,8 @@ const MonacoEditorPerferenceForm = ({
225
225
  role: preference.detectIndentation ? 'grey6' : 'info',
226
226
  block: true,
227
227
  size: "small"
228
- }, React.createElement(FormattedMessage, {
229
- id: "monacoEditorPerferenceForm.textEditing.item.tabSize.name"
228
+ }, __intl.formatMessage({
229
+ id: 'monacoEditorPerferenceForm.textEditing.item.tabSize.name'
230
230
  })), React.createElement(StyledSelect, {
231
231
  value: preference.tabSize,
232
232
  size: "small",
@@ -249,8 +249,8 @@ const MonacoEditorPerferenceForm = ({
249
249
  role: "lightgrey",
250
250
  size: "small",
251
251
  bold: true
252
- }, React.createElement(FormattedMessage, {
253
- id: "monacoEditorPerferenceForm.displaying.title"
252
+ }, __intl.formatMessage({
253
+ id: 'monacoEditorPerferenceForm.displaying.title'
254
254
  })), React.createElement(Vspace, {
255
255
  height: 1
256
256
  }), renderPreferenceItemTheme(), renderPreferenceItemFontSize(), renderPreferenceItemWordWrap(), renderPreferenceItemWhiteSpace(), renderPreferenceItemMinimap(), renderPreferenceItemCursorSmoothCaretAnimation(), React.createElement(Vspace, {
@@ -259,8 +259,8 @@ const MonacoEditorPerferenceForm = ({
259
259
  role: "lightgrey",
260
260
  size: "small",
261
261
  bold: true
262
- }, React.createElement(FormattedMessage, {
263
- id: "monacoEditorPerferenceForm.textEditing.title"
262
+ }, __intl.formatMessage({
263
+ id: 'monacoEditorPerferenceForm.textEditing.title'
264
264
  })), React.createElement(Vspace, {
265
265
  height: 1
266
266
  }), renderPreferenceItemAutoClosingBrackets(), renderPreferenceItemDetectIndentation(), renderPreferenceItemTabSize());
@@ -268,14 +268,6 @@ const MonacoEditorPerferenceForm = ({
268
268
  //
269
269
  //
270
270
  //
271
- var MonacoEditorPerference = (props => {
272
- return React.createElement(MaterialIntlProvider, {
273
- locale: props.locale,
274
- phrases: {
275
- en: phrasesEn,
276
- ko: phrasesKo
277
- }
278
- }, React.createElement(MonacoEditorPerferenceForm, Object.assign({}, props)));
279
- });
271
+ var MonacoEditorPerference = new IntlComponentBuilder(MonacoEditorPerferenceForm).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
280
272
 
281
273
  export { MonacoEditorPerference as default };
@@ -1,3 +1,3 @@
1
- var phrasesEn = {"monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name":"Cursor Smooth Caret Animation","monacoEditorPerferenceForm.displaying.item.fontSize.name":"Font Size","monacoEditorPerferenceForm.displaying.item.minimap.name":"Minimap","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name":"Render Whitespace","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.all":"All","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.boundary":"Boundary","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.none":"None","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.selection":"Selection","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.trailing":"Trailing","monacoEditorPerferenceForm.displaying.item.theme.name":"Color Theme","monacoEditorPerferenceForm.displaying.item.wordWrap.name":"Word Wrap","monacoEditorPerferenceForm.displaying.title":"Displaying","monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name":"Auto Closing Brackets","monacoEditorPerferenceForm.textEditing.item.detectIndentation.name":"Detect Indentation","monacoEditorPerferenceForm.textEditing.item.tabSize.name":"Tab Size","monacoEditorPerferenceForm.textEditing.title":"Text Editing"};
1
+ var messageEn = {"monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name":"Cursor Smooth Caret Animation","monacoEditorPerferenceForm.displaying.item.fontSize.name":"Font Size","monacoEditorPerferenceForm.displaying.item.minimap.name":"Minimap","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name":"Render Whitespace","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.all":"All","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.boundary":"Boundary","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.none":"None","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.selection":"Selection","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.trailing":"Trailing","monacoEditorPerferenceForm.displaying.item.theme.name":"Color Theme","monacoEditorPerferenceForm.displaying.item.wordWrap.name":"Word Wrap","monacoEditorPerferenceForm.displaying.title":"Displaying","monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name":"Auto Closing Brackets","monacoEditorPerferenceForm.textEditing.item.detectIndentation.name":"Detect Indentation","monacoEditorPerferenceForm.textEditing.item.tabSize.name":"Tab Size","monacoEditorPerferenceForm.textEditing.title":"Text Editing"};
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 = {"monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name":"커서 이동 애니메이션","monacoEditorPerferenceForm.displaying.item.fontSize.name":"글자 크기","monacoEditorPerferenceForm.displaying.item.minimap.name":"에디터 미니맵","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name":"조판 부호 보이기","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.all":"언제나","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.boundary":"글자 사이 제외","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.none":"보이지 않음","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.selection":"선택 시에만","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.trailing":"글자 뒤에만","monacoEditorPerferenceForm.displaying.item.theme.name":"에디터 테마","monacoEditorPerferenceForm.displaying.item.wordWrap.name":"줄 바꿈","monacoEditorPerferenceForm.displaying.title":"화면 표시","monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name":"자동 괄호 닫기","monacoEditorPerferenceForm.textEditing.item.detectIndentation.name":"탭 크기 자동 인식","monacoEditorPerferenceForm.textEditing.item.tabSize.name":"탭 크기","monacoEditorPerferenceForm.textEditing.title":"텍스트 편집"};
1
+ var messageKo = {"monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name":"커서 이동 애니메이션","monacoEditorPerferenceForm.displaying.item.fontSize.name":"글자 크기","monacoEditorPerferenceForm.displaying.item.minimap.name":"에디터 미니맵","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name":"조판 부호 보이기","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.all":"언제나","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.boundary":"글자 사이 제외","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.none":"보이지 않음","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.selection":"선택 시에만","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.trailing":"글자 뒤에만","monacoEditorPerferenceForm.displaying.item.theme.name":"에디터 테마","monacoEditorPerferenceForm.displaying.item.wordWrap.name":"줄 바꿈","monacoEditorPerferenceForm.displaying.title":"화면 표시","monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name":"자동 괄호 닫기","monacoEditorPerferenceForm.textEditing.item.detectIndentation.name":"탭 크기 자동 인식","monacoEditorPerferenceForm.textEditing.item.tabSize.name":"탭 크기","monacoEditorPerferenceForm.textEditing.title":"텍스트 편집"};
2
2
 
3
- export { phrasesKo as default };
3
+ export { messageKo as default };
@@ -0,0 +1,3 @@
1
+ var messageTh = {"monacoEditorPerferenceForm.displaying.item.cursorSmoothCaretAnimation.name":"การเคลื่อนย้ายเคอร์เซอร์แอนิเมชัน","monacoEditorPerferenceForm.displaying.item.fontSize.name":"ขนาดตัวอักษร","monacoEditorPerferenceForm.displaying.item.minimap.name":"เอดิ터 มินิแมพ","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.name":"แสดงเครื่องหมายการจัดพิมพ์","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.all":"เสมอ","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.boundary":"ข้อความที่ระบุ","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.none":"ไม่มองเห็น","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.selection":"เฉพาะเมื่อเลือก","monacoEditorPerferenceForm.displaying.item.renderWhiteSpace.value.trailing":"หลังคำ","monacoEditorPerferenceForm.displaying.item.theme.name":"ธีมเอ็ดิเตอร์","monacoEditorPerferenceForm.displaying.item.wordWrap.name":"การเปลี่ยนบรรทัด","monacoEditorPerferenceForm.displaying.title":"การแสดงบนหน้าจอ","monacoEditorPerferenceForm.textEditing.item.autoClosingBrackets.name":"ปิดวงเล็บอัตโนมัติ","monacoEditorPerferenceForm.textEditing.item.detectIndentation.name":"การตรวจจับขนาดแท็บโดยอัตโนมัติ","monacoEditorPerferenceForm.textEditing.item.tabSize.name":"ขนาดแท็บ","monacoEditorPerferenceForm.textEditing.title":"แก้ไขข้อความ"};
2
+
3
+ export { messageTh as default };
@@ -28,5 +28,7 @@ export interface XtermProps {
28
28
  /** Send TTY resize. */
29
29
  onTtyResizeRequest: (ttySize: TtySize) => void;
30
30
  }
31
- declare const _default: React.ForwardRefExoticComponent<XtermProps & React.RefAttributes<XtermApis>>;
31
+ declare const _default: React.ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/intl").IntlComponentExtraProps & Omit<XtermProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
32
+ __intl: import("@elice/intl").EliceIntlShape;
33
+ } & React.RefAttributes<XtermApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & React.RefAttributes<XtermApis>>;
32
34
  export default _default;
@@ -1,13 +1,13 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { useIntl } from 'react-intl';
3
2
  import { useMeasure, useDebounce } from 'react-use';
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
6
  import { Terminal } from 'xterm';
8
7
  import { FitAddon } from 'xterm-addon-fit';
9
- import phrasesEn from './locales/en.json.js';
10
- import phrasesKo from './locales/ko.json.js';
8
+ import messageEn from './locales/en.json.js';
9
+ import messageKo from './locales/ko.json.js';
10
+ import messageTh from './locales/th.json.js';
11
11
  import { patchXtermComposedPath } from './utils/index.js';
12
12
  import 'xterm/css/xterm.css';
13
13
 
@@ -20,9 +20,9 @@ const Xterm = forwardRef(({
20
20
  fontSize,
21
21
  suppressSystemMessage = false,
22
22
  onInputRequest,
23
- onTtyResizeRequest
23
+ onTtyResizeRequest,
24
+ __intl
24
25
  }, ref) => {
25
- const intl = useIntl();
26
26
  const xterm = React.useRef(null);
27
27
  const xtermFitAddon = React.useRef(null);
28
28
  const [xtermWrapperElRef, {
@@ -151,7 +151,7 @@ const Xterm = forwardRef(({
151
151
  return;
152
152
  }
153
153
  if (isRunning) {
154
- writeSystem(intl.formatMessage({
154
+ writeSystem(__intl.formatMessage({
155
155
  id: 'xterm.systemMessage.running'
156
156
  }));
157
157
  blur();
@@ -159,14 +159,14 @@ const Xterm = forwardRef(({
159
159
  //
160
160
  else {
161
161
  if (isRunBefore) {
162
- writeSystem(intl.formatMessage({
162
+ writeSystem(__intl.formatMessage({
163
163
  id: 'xterm.systemMessage.runAfter'
164
164
  }));
165
165
  blur();
166
166
  }
167
167
  //
168
168
  else {
169
- writeSystem(intl.formatMessage({
169
+ writeSystem(__intl.formatMessage({
170
170
  id: 'xterm.systemMessage.runBefore'
171
171
  }));
172
172
  blur();
@@ -208,16 +208,6 @@ const Xterm = forwardRef(({
208
208
  //
209
209
  //
210
210
  //
211
- var Xterm$1 = forwardRef((props, ref) => {
212
- return React.createElement(MaterialIntlProvider, {
213
- locale: props.locale,
214
- phrases: {
215
- en: phrasesEn,
216
- ko: phrasesKo
217
- }
218
- }, React.createElement(Xterm, Object.assign({}, props, {
219
- ref: ref
220
- })));
221
- });
211
+ var Xterm$1 = new IntlComponentBuilder(Xterm).add('en', messageEn).add('ko', messageKo).add('th', messageTh).build();
222
212
 
223
213
  export { Xterm$1 as default };
@@ -1,3 +1,3 @@
1
- var phrasesEn = {"xterm.systemMessage.runAfter":"\n/* Code running is complete! */","xterm.systemMessage.runBefore":"/* Code has not run yet. */","xterm.systemMessage.running":"/* Code is running... */"};
1
+ var messageEn = {"xterm.systemMessage.runAfter":"\n/* Code running is complete! */","xterm.systemMessage.runBefore":"/* Code has not run yet. */","xterm.systemMessage.running":"/* Code is running... */"};
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 = {"xterm.systemMessage.runAfter":"\n/* 코드 실행이 완료되었습니다! */","xterm.systemMessage.runBefore":"/* 코드가 아직 실행되지 않았습니다. */","xterm.systemMessage.running":"/* 코드가 실행되는 중입니다... */"};
1
+ var messageKo = {"xterm.systemMessage.runAfter":"\n/* 코드 실행이 완료되었습니다! */","xterm.systemMessage.runBefore":"/* 코드가 아직 실행되지 않았습니다. */","xterm.systemMessage.running":"/* 코드가 실행되는 중입니다... */"};
2
2
 
3
- export { phrasesKo as default };
3
+ export { messageKo as default };
@@ -0,0 +1,3 @@
1
+ var messageTh = {"xterm.systemMessage.runAfter":"/* การดำเนินการของโค้ดเสร็จสมบูรณ์แล้ว! */","xterm.systemMessage.runBefore":"/* โค้ดยังไม่ได้รัน */","xterm.systemMessage.running":"/* โค้ดกำลังถูกดำเนินการ... */"};
2
+
3
+ export { messageTh as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-exercise",
3
- "version": "1.240401.0",
3
+ "version": "1.240508.0-globalization.1",
4
4
  "description": "User view and editing components of Elice material exercise",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -29,6 +29,7 @@
29
29
  "@elice/blocks": "^1",
30
30
  "@elice/design-tokens": "^1",
31
31
  "@elice/icons": "^1",
32
+ "@elice/intl": "*",
32
33
  "@elice/markdown": "^1",
33
34
  "@elice/material-shared-types": "*",
34
35
  "@elice/material-shared-utils": "*",
@@ -46,7 +47,6 @@
46
47
  "humps": "^2.0.1",
47
48
  "lodash": "^4.17.21",
48
49
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
49
- "react-intl": "^5.0.0",
50
50
  "react-use": "^17.0.0",
51
51
  "recoil": "^0.6.1",
52
52
  "styled-components": "^5.2.0"
@@ -83,9 +83,10 @@
83
83
  "@elice/blocks": "^1.230816.0",
84
84
  "@elice/design-tokens": "^1.220803.0",
85
85
  "@elice/icons": "^1.230814.0",
86
+ "@elice/intl": "0.240425.0-alpha.9",
86
87
  "@elice/markdown": "^1.220815.0",
87
- "@elice/material-shared-types": "1.240401.0",
88
- "@elice/material-shared-utils": "1.240401.0",
88
+ "@elice/material-shared-types": "1.240508.0-globalization.1",
89
+ "@elice/material-shared-utils": "1.240508.0-globalization.1",
89
90
  "@elice/mui-elements": "^5.230825.0",
90
91
  "@elice/mui-system": "^5.230825.0",
91
92
  "@elice/types": "^1.240208.0",
@@ -111,10 +112,9 @@
111
112
  "humps": "^2.0.1",
112
113
  "lodash": "^4.17.21",
113
114
  "react": "^17.0.2",
114
- "react-intl": "^5.0.0",
115
115
  "react-use": "^17.0.0",
116
116
  "recoil": "^0.6.1",
117
117
  "styled-components": "^5.2.0"
118
118
  },
119
- "gitHead": "c3c7c033d7524e3d16328399010562ca6c2c3286"
119
+ "gitHead": "359abc2f14610a96b1c4514aedb4a7d0ad02aed3"
120
120
  }
@@ -1,5 +0,0 @@
1
- export declare const en: {
2
- 'materialExercise.button.referenceDocs': string;
3
- 'materialExercise.text.readOnlyBanner': string;
4
- };
5
- export declare const ko: typeof en;
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- const en = {
4
- 'materialExercise.button.referenceDocs': 'Reference Docs',
5
- 'materialExercise.text.readOnlyBanner': '[Read-Only] This file is read-only.'
6
- };
7
- const ko = {
8
- 'materialExercise.button.referenceDocs': '언어 레퍼런스',
9
- 'materialExercise.text.readOnlyBanner': '[읽기전용] 이 파일은 읽기전용 입니다.'
10
- };
11
-
12
- exports.en = en;
13
- exports.ko = ko;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { MaterialIntlProviderPhrases } from '@elice/material-shared-utils';
3
- type AnyObject = Record<string, any>;
4
- /**
5
- *
6
- */
7
- export declare const withExerciseIntlProvider: <P extends AnyObject>(Component: React.VFC<P>, phrases: MaterialIntlProviderPhrases) => React.VFC<P>;
8
- /**
9
- *
10
- */
11
- export declare const withForwardRefExerciseIntlProvider: <T, P extends AnyObject>(Component: React.ForwardRefExoticComponent<P & React.RefAttributes<T>>, phrases: MaterialIntlProviderPhrases) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
12
- export {};
@@ -1,44 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var materialSharedUtils = require('@elice/material-shared-utils');
5
- var context = require('./context.js');
6
-
7
- //
8
- //
9
- //
10
- /**
11
- *
12
- */
13
- const withExerciseIntlProvider = (Component, phrases) => {
14
- return props => {
15
- const {
16
- locale
17
- } = React.useContext(context.ExerciseContext);
18
- return React.createElement(materialSharedUtils.MaterialIntlProvider, {
19
- children: React.createElement(Component, Object.assign({}, props)),
20
- locale: locale,
21
- phrases: phrases
22
- });
23
- };
24
- };
25
- /**
26
- *
27
- */
28
- const withForwardRefExerciseIntlProvider = (Component, phrases) => {
29
- return React.forwardRef((props, ref) => {
30
- const {
31
- locale
32
- } = React.useContext(context.ExerciseContext);
33
- return React.createElement(materialSharedUtils.MaterialIntlProvider, {
34
- children: React.createElement(Component, Object.assign({}, props, {
35
- ref: ref
36
- })),
37
- locale: locale,
38
- phrases: phrases
39
- });
40
- });
41
- };
42
-
43
- exports.withExerciseIntlProvider = withExerciseIntlProvider;
44
- exports.withForwardRefExerciseIntlProvider = withForwardRefExerciseIntlProvider;
@@ -1,5 +0,0 @@
1
- export declare const en: {
2
- 'materialExercise.button.referenceDocs': string;
3
- 'materialExercise.text.readOnlyBanner': string;
4
- };
5
- export declare const ko: typeof en;
@@ -1,10 +0,0 @@
1
- const en = {
2
- 'materialExercise.button.referenceDocs': 'Reference Docs',
3
- 'materialExercise.text.readOnlyBanner': '[Read-Only] This file is read-only.'
4
- };
5
- const ko = {
6
- 'materialExercise.button.referenceDocs': '언어 레퍼런스',
7
- 'materialExercise.text.readOnlyBanner': '[읽기전용] 이 파일은 읽기전용 입니다.'
8
- };
9
-
10
- export { en, ko };
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { MaterialIntlProviderPhrases } from '@elice/material-shared-utils';
3
- type AnyObject = Record<string, any>;
4
- /**
5
- *
6
- */
7
- export declare const withExerciseIntlProvider: <P extends AnyObject>(Component: React.VFC<P>, phrases: MaterialIntlProviderPhrases) => React.VFC<P>;
8
- /**
9
- *
10
- */
11
- export declare const withForwardRefExerciseIntlProvider: <T, P extends AnyObject>(Component: React.ForwardRefExoticComponent<P & React.RefAttributes<T>>, phrases: MaterialIntlProviderPhrases) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
12
- export {};