@intlayer/design-system 3.2.2 → 3.3.3

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 (507) hide show
  1. package/dist/.vite/manifest.json +236 -182
  2. package/dist/{Form-DERuauvB.cjs → Form-BDcoNTLV.cjs} +2 -2
  3. package/dist/{Form-DERuauvB.cjs.map → Form-BDcoNTLV.cjs.map} +1 -1
  4. package/dist/{Form-DyFBmVya.js → Form-DhsgC7kB.js} +6 -6
  5. package/dist/{Form-DyFBmVya.js.map → Form-DhsgC7kB.js.map} +1 -1
  6. package/dist/components/Accordion/Accordion.cjs +1 -1
  7. package/dist/components/Accordion/Accordion.mjs +1 -1
  8. package/dist/components/Auth/AuthModal/index.cjs +1 -1
  9. package/dist/components/Auth/AuthModal/index.mjs +1 -1
  10. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +1 -1
  11. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +1 -1
  12. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +16 -2
  13. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
  14. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -1
  15. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +16 -2
  16. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
  17. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +1 -1
  18. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +1 -1
  19. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs +1 -1
  20. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs +1 -1
  21. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs +1 -1
  22. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs +1 -1
  23. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +2 -2
  24. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +2 -2
  25. package/dist/components/Auth/SignInForm/SignInForm.cjs +2 -2
  26. package/dist/components/Auth/SignInForm/SignInForm.mjs +2 -2
  27. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +2 -2
  28. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +2 -2
  29. package/dist/components/Avatar/index.cjs +1 -1
  30. package/dist/components/Avatar/index.mjs +1 -1
  31. package/dist/components/Badge/index.cjs +1 -1
  32. package/dist/components/Badge/index.d.ts +1 -1
  33. package/dist/components/Badge/index.mjs +1 -1
  34. package/dist/components/Breadcrumb/index.cjs +39 -20
  35. package/dist/components/Breadcrumb/index.cjs.map +1 -1
  36. package/dist/components/Breadcrumb/index.d.ts +2 -2
  37. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  38. package/dist/components/Breadcrumb/index.mjs +39 -20
  39. package/dist/components/Breadcrumb/index.mjs.map +1 -1
  40. package/dist/components/Button/Button.cjs +10 -4
  41. package/dist/components/Button/Button.cjs.map +1 -1
  42. package/dist/components/Button/Button.d.ts +3 -3
  43. package/dist/components/Button/Button.d.ts.map +1 -1
  44. package/dist/components/Button/Button.mjs +10 -4
  45. package/dist/components/Button/Button.mjs.map +1 -1
  46. package/dist/components/Command/index.cjs +1 -1
  47. package/dist/components/Command/index.d.ts +9 -9
  48. package/dist/components/Command/index.d.ts.map +1 -1
  49. package/dist/components/Command/index.mjs +1 -1
  50. package/dist/components/Container/index.cjs +11 -2
  51. package/dist/components/Container/index.cjs.map +1 -1
  52. package/dist/components/Container/index.d.ts +4 -2
  53. package/dist/components/Container/index.d.ts.map +1 -1
  54. package/dist/components/Container/index.mjs +11 -2
  55. package/dist/components/Container/index.mjs.map +1 -1
  56. package/dist/components/ContentEditor/ContentEditor.cjs +1 -1
  57. package/dist/components/ContentEditor/ContentEditor.mjs +1 -1
  58. package/dist/components/ContentEditor/ContentEditorTextArea.cjs +18 -5
  59. package/dist/components/ContentEditor/ContentEditorTextArea.cjs.map +1 -1
  60. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +2 -0
  61. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts.map +1 -1
  62. package/dist/components/ContentEditor/ContentEditorTextArea.mjs +18 -5
  63. package/dist/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
  64. package/dist/components/ContentSelector/ContentSelector.cjs +1 -1
  65. package/dist/components/ContentSelector/ContentSelector.mjs +1 -1
  66. package/dist/components/CopyToClipboard/index.cjs +1 -1
  67. package/dist/components/CopyToClipboard/index.mjs +1 -1
  68. package/dist/components/DictionaryEditor/DictionaryEditor.cjs +11 -5
  69. package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -1
  70. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -1
  71. package/dist/components/DictionaryEditor/DictionaryEditor.mjs +11 -5
  72. package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
  73. package/dist/components/DictionaryEditor/ItemLayout.cjs +1 -1
  74. package/dist/components/DictionaryEditor/ItemLayout.mjs +1 -1
  75. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs +2 -2
  76. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs +2 -2
  77. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs +2 -2
  78. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs +2 -2
  79. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs +2 -2
  80. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs +2 -2
  81. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs +1 -1
  82. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +1 -1
  83. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs +2 -2
  84. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs +2 -2
  85. package/dist/components/DictionaryEditor/NodeWrapper/index.cjs +2 -2
  86. package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +2 -2
  87. package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts.map +1 -1
  88. package/dist/components/DictionaryEditor/NodeWrapper/index.mjs +2 -2
  89. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +2 -2
  90. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +2 -2
  91. package/dist/components/DictionaryEditor/useEditedContentStore.cjs +13 -10
  92. package/dist/components/DictionaryEditor/useEditedContentStore.cjs.map +1 -1
  93. package/dist/components/DictionaryEditor/useEditedContentStore.d.ts +1 -0
  94. package/dist/components/DictionaryEditor/useEditedContentStore.d.ts.map +1 -1
  95. package/dist/components/DictionaryEditor/useEditedContentStore.mjs +13 -10
  96. package/dist/components/DictionaryEditor/useEditedContentStore.mjs.map +1 -1
  97. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs +6 -6
  98. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs.map +1 -1
  99. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs +6 -6
  100. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs.map +1 -1
  101. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +2 -2
  102. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +2 -2
  103. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +3 -3
  104. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +3 -3
  105. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts +2 -2
  106. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +3 -3
  107. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +3 -3
  108. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts +4 -4
  109. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +36 -55
  110. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  111. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
  112. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +37 -56
  113. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  114. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +50 -23
  115. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
  116. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -1
  117. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +51 -24
  118. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -1
  119. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +2 -2
  120. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +2 -2
  121. package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs +1 -1
  122. package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs +1 -1
  123. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs +59 -0
  124. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs.map +1 -0
  125. package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts +8 -0
  126. package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts.map +1 -0
  127. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs +59 -0
  128. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs.map +1 -0
  129. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs +1 -1
  130. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs +1 -1
  131. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +2 -2
  132. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +2 -2
  133. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs +98 -0
  134. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs.map +1 -0
  135. package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts +8 -0
  136. package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts.map +1 -0
  137. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs +98 -0
  138. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs.map +1 -0
  139. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +2 -2
  140. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +2 -2
  141. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +6 -4
  142. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  143. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  144. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +6 -4
  145. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  146. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +6 -6
  147. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
  148. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +6 -6
  149. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
  150. package/dist/components/DictionaryFieldEditor/editorView.content.cjs +12 -0
  151. package/dist/components/DictionaryFieldEditor/editorView.content.cjs.map +1 -1
  152. package/dist/components/DictionaryFieldEditor/editorView.content.d.ts +4 -0
  153. package/dist/components/DictionaryFieldEditor/editorView.content.d.ts.map +1 -1
  154. package/dist/components/DictionaryFieldEditor/editorView.content.mjs +12 -0
  155. package/dist/components/DictionaryFieldEditor/editorView.content.mjs.map +1 -1
  156. package/dist/components/DropDown/index.cjs +1 -1
  157. package/dist/components/DropDown/index.mjs +1 -1
  158. package/dist/components/EditableField/EditableFieldInput.cjs +1 -1
  159. package/dist/components/EditableField/EditableFieldInput.mjs +1 -1
  160. package/dist/components/EditableField/EditableFieldLayout.cjs +9 -3
  161. package/dist/components/EditableField/EditableFieldLayout.cjs.map +1 -1
  162. package/dist/components/EditableField/EditableFieldLayout.d.ts +3 -3
  163. package/dist/components/EditableField/EditableFieldLayout.d.ts.map +1 -1
  164. package/dist/components/EditableField/EditableFieldLayout.mjs +9 -3
  165. package/dist/components/EditableField/EditableFieldLayout.mjs.map +1 -1
  166. package/dist/components/EditableField/EditableFieldTextArea.cjs +23 -6
  167. package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
  168. package/dist/components/EditableField/EditableFieldTextArea.d.ts.map +1 -1
  169. package/dist/components/EditableField/EditableFieldTextArea.mjs +24 -7
  170. package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
  171. package/dist/components/Flags/Flag.cjs +1 -1
  172. package/dist/components/Flags/Flag.mjs +1 -1
  173. package/dist/components/Footer/index.cjs +1 -1
  174. package/dist/components/Footer/index.mjs +1 -1
  175. package/dist/components/Form/Form.cjs +2 -2
  176. package/dist/components/Form/Form.mjs +2 -2
  177. package/dist/components/Form/FormBase.cjs +1 -1
  178. package/dist/components/Form/FormBase.d.ts.map +1 -1
  179. package/dist/components/Form/FormBase.mjs +1 -1
  180. package/dist/components/Form/FormControl.cjs +1 -1
  181. package/dist/components/Form/FormControl.mjs +1 -1
  182. package/dist/components/Form/FormDescription.cjs +1 -1
  183. package/dist/components/Form/FormDescription.mjs +1 -1
  184. package/dist/components/Form/FormField.cjs +1 -1
  185. package/dist/components/Form/FormField.mjs +1 -1
  186. package/dist/components/Form/FormItem.cjs +1 -1
  187. package/dist/components/Form/FormItem.mjs +1 -1
  188. package/dist/components/Form/FormLabel.cjs +1 -1
  189. package/dist/components/Form/FormLabel.mjs +1 -1
  190. package/dist/components/Form/FormMessage.cjs +1 -1
  191. package/dist/components/Form/FormMessage.mjs +1 -1
  192. package/dist/components/Form/elements/CheckboxElement.cjs +2 -2
  193. package/dist/components/Form/elements/CheckboxElement.mjs +2 -2
  194. package/dist/components/Form/elements/EditableFieldInputElement.cjs +2 -2
  195. package/dist/components/Form/elements/EditableFieldInputElement.mjs +2 -2
  196. package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs +2 -2
  197. package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs +3 -3
  198. package/dist/components/Form/elements/FormElement.cjs +2 -2
  199. package/dist/components/Form/elements/FormElement.mjs +3 -3
  200. package/dist/components/Form/elements/FormElementWrapper.cjs +1 -1
  201. package/dist/components/Form/elements/FormElementWrapper.mjs +1 -1
  202. package/dist/components/Form/elements/InputElement.cjs +2 -2
  203. package/dist/components/Form/elements/InputElement.mjs +2 -2
  204. package/dist/components/Form/elements/InputPasswordElement.cjs +2 -2
  205. package/dist/components/Form/elements/InputPasswordElement.mjs +3 -3
  206. package/dist/components/Form/elements/MultiselectElement.cjs +2 -2
  207. package/dist/components/Form/elements/MultiselectElement.mjs +2 -2
  208. package/dist/components/Form/elements/SelectElement.cjs +2 -2
  209. package/dist/components/Form/elements/SelectElement.mjs +2 -2
  210. package/dist/components/Form/elements/SwitchSelectorElement.cjs +2 -2
  211. package/dist/components/Form/elements/SwitchSelectorElement.mjs +2 -2
  212. package/dist/components/Form/elements/TextAreaElement.cjs +2 -2
  213. package/dist/components/Form/elements/TextAreaElement.mjs +2 -2
  214. package/dist/components/Form/elements/index.cjs +1 -1
  215. package/dist/components/Form/elements/index.mjs +4 -4
  216. package/dist/components/Form/index.cjs +1 -1
  217. package/dist/components/Form/index.mjs +1 -1
  218. package/dist/components/Form/layout/FormItemLayout.cjs +2 -2
  219. package/dist/components/Form/layout/FormItemLayout.mjs +3 -3
  220. package/dist/components/Form/layout/FormLabelLayout.cjs +1 -1
  221. package/dist/components/Form/layout/FormLabelLayout.mjs +1 -1
  222. package/dist/components/Form/layout/RequiredStar.cjs +1 -1
  223. package/dist/components/Form/layout/RequiredStar.mjs +1 -1
  224. package/dist/components/Form/layout/index.cjs +1 -1
  225. package/dist/components/Form/layout/index.mjs +2 -2
  226. package/dist/components/Headers/index.cjs +1 -1
  227. package/dist/components/Headers/index.mjs +1 -1
  228. package/dist/components/IDE/CodeRender.cjs +1 -1
  229. package/dist/components/IDE/CodeRender.mjs +1 -1
  230. package/dist/components/IDE/FileList.cjs +1 -1
  231. package/dist/components/IDE/FileList.mjs +1 -1
  232. package/dist/components/IDE/FileTree.cjs +1 -1
  233. package/dist/components/IDE/FileTree.mjs +1 -1
  234. package/dist/components/IDE/IDE.cjs +1 -1
  235. package/dist/components/IDE/IDE.mjs +1 -1
  236. package/dist/components/IDE/MarkDownRender.cjs +1 -1
  237. package/dist/components/IDE/MarkDownRender.mjs +1 -1
  238. package/dist/components/InformationTag/index.cjs +1 -1
  239. package/dist/components/InformationTag/index.mjs +1 -1
  240. package/dist/components/Input/Checkbox.cjs +1 -1
  241. package/dist/components/Input/Checkbox.d.ts +1 -1
  242. package/dist/components/Input/Checkbox.mjs +1 -1
  243. package/dist/components/Input/Input.cjs +1 -1
  244. package/dist/components/Input/Input.mjs +1 -1
  245. package/dist/components/Input/InputPassword.cjs +1 -1
  246. package/dist/components/Input/InputPassword.mjs +1 -1
  247. package/dist/components/Label/index.cjs +1 -1
  248. package/dist/components/Label/index.mjs +1 -1
  249. package/dist/components/Link/Link.cjs +1 -1
  250. package/dist/components/Link/Link.d.ts +1 -1
  251. package/dist/components/Link/Link.mjs +1 -1
  252. package/dist/components/Loader/index.cjs +1 -1
  253. package/dist/components/Loader/index.mjs +1 -1
  254. package/dist/components/Loader/spinner.cjs +1 -1
  255. package/dist/components/Loader/spinner.mjs +1 -1
  256. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +1 -1
  257. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +1 -1
  258. package/dist/components/Logo/LogoCircle.cjs +1 -1
  259. package/dist/components/Logo/LogoCircle.mjs +1 -1
  260. package/dist/components/Logo/LogoNoFrame.cjs +1 -1
  261. package/dist/components/Logo/LogoNoFrame.mjs +1 -1
  262. package/dist/components/Logo/LogoSquare.cjs +1 -1
  263. package/dist/components/Logo/LogoSquare.mjs +1 -1
  264. package/dist/components/Logo/LogoSquircle.cjs +1 -1
  265. package/dist/components/Logo/LogoSquircle.mjs +1 -1
  266. package/dist/components/Logo/LogoTextOnly.cjs +1 -1
  267. package/dist/components/Logo/LogoTextOnly.mjs +1 -1
  268. package/dist/components/Logo/LogoWithTextBelowCircle.cjs +1 -1
  269. package/dist/components/Logo/LogoWithTextBelowCircle.mjs +1 -1
  270. package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs +1 -1
  271. package/dist/components/Logo/LogoWithTextBelowNoFrame.mjs +1 -1
  272. package/dist/components/Logo/LogoWithTextBelowSquircle.cjs +1 -1
  273. package/dist/components/Logo/LogoWithTextBelowSquircle.mjs +1 -1
  274. package/dist/components/Logo/LogoWithTextCircle.cjs +1 -1
  275. package/dist/components/Logo/LogoWithTextCircle.mjs +1 -1
  276. package/dist/components/Logo/LogoWithTextNoFrame.cjs +1 -1
  277. package/dist/components/Logo/LogoWithTextNoFrame.mjs +1 -1
  278. package/dist/components/Logo/LogoWithTextSquircle.cjs +1 -1
  279. package/dist/components/Logo/LogoWithTextSquircle.mjs +1 -1
  280. package/dist/components/Logo/index.cjs +1 -1
  281. package/dist/components/Logo/index.mjs +1 -1
  282. package/dist/components/MarkDownRender/index.cjs +1 -1
  283. package/dist/components/MarkDownRender/index.mjs +1 -1
  284. package/dist/components/MaxHeightSmoother/index.cjs +1 -1
  285. package/dist/components/MaxHeightSmoother/index.mjs +1 -1
  286. package/dist/components/MaxWidthSmoother/index.cjs +1 -1
  287. package/dist/components/MaxWidthSmoother/index.mjs +1 -1
  288. package/dist/components/Modal/Modal.cjs +1 -1
  289. package/dist/components/Modal/Modal.cjs.map +1 -1
  290. package/dist/components/Modal/Modal.d.ts.map +1 -1
  291. package/dist/components/Modal/Modal.mjs +1 -1
  292. package/dist/components/Modal/Modal.mjs.map +1 -1
  293. package/dist/components/Navbar/Burger.cjs +1 -1
  294. package/dist/components/Navbar/Burger.mjs +1 -1
  295. package/dist/components/Navbar/DesktopNavbar.cjs +1 -1
  296. package/dist/components/Navbar/DesktopNavbar.mjs +1 -1
  297. package/dist/components/Navbar/MobileNavbar.cjs +1 -1
  298. package/dist/components/Navbar/MobileNavbar.mjs +1 -1
  299. package/dist/components/Navbar/index.cjs +1 -1
  300. package/dist/components/Navbar/index.mjs +1 -1
  301. package/dist/components/Pattern/DotPattern.cjs +1 -1
  302. package/dist/components/Pattern/DotPattern.mjs +1 -1
  303. package/dist/components/Pattern/GridPattern.cjs +1 -1
  304. package/dist/components/Pattern/GridPattern.mjs +1 -1
  305. package/dist/components/Pattern/SpotLight.cjs +1 -1
  306. package/dist/components/Pattern/SpotLight.mjs +1 -1
  307. package/dist/components/Popover/index.cjs +1 -1
  308. package/dist/components/Popover/index.mjs +1 -1
  309. package/dist/components/PressableSpan/PressableSpan.cjs +1 -1
  310. package/dist/components/PressableSpan/PressableSpan.mjs +1 -1
  311. package/dist/components/ProfileDropDown/index.cjs +1 -1
  312. package/dist/components/ProfileDropDown/index.mjs +1 -1
  313. package/dist/components/RightDrawer/RightDrawer.cjs +1 -1
  314. package/dist/components/RightDrawer/RightDrawer.mjs +1 -1
  315. package/dist/components/Select/Multiselect.cjs +1 -1
  316. package/dist/components/Select/Multiselect.d.ts +2 -2
  317. package/dist/components/Select/Multiselect.d.ts.map +1 -1
  318. package/dist/components/Select/Multiselect.mjs +1 -1
  319. package/dist/components/Select/Select.cjs +1 -1
  320. package/dist/components/Select/Select.mjs +1 -1
  321. package/dist/components/SwitchSelector/index.cjs +1 -1
  322. package/dist/components/SwitchSelector/index.d.ts +1 -1
  323. package/dist/components/SwitchSelector/index.mjs +1 -1
  324. package/dist/components/TabSelector/TabSelector.cjs +1 -1
  325. package/dist/components/TabSelector/TabSelector.d.ts +1 -1
  326. package/dist/components/TabSelector/TabSelector.mjs +1 -1
  327. package/dist/components/Tag/index.cjs +3 -2
  328. package/dist/components/Tag/index.cjs.map +1 -1
  329. package/dist/components/Tag/index.d.ts +2 -2
  330. package/dist/components/Tag/index.d.ts.map +1 -1
  331. package/dist/components/Tag/index.mjs +3 -2
  332. package/dist/components/Tag/index.mjs.map +1 -1
  333. package/dist/components/TextArea/AutoSizeTextArea.cjs +1 -1
  334. package/dist/components/TextArea/AutoSizeTextArea.mjs +1 -1
  335. package/dist/components/TextArea/TextArea.cjs +1 -1
  336. package/dist/components/TextArea/TextArea.mjs +1 -1
  337. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs +1 -1
  338. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +1 -1
  339. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs +1 -1
  340. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs +1 -1
  341. package/dist/components/Toaster/Toast.cjs +1 -1
  342. package/dist/components/Toaster/Toast.mjs +1 -1
  343. package/dist/components/Toaster/Toaster.cjs +1 -1
  344. package/dist/components/Toaster/Toaster.mjs +1 -1
  345. package/dist/components/WithResizer/index.cjs +1 -1
  346. package/dist/components/WithResizer/index.mjs +1 -1
  347. package/dist/components/index.cjs +3 -1
  348. package/dist/components/index.cjs.map +1 -1
  349. package/dist/components/index.d.ts +1 -0
  350. package/dist/components/index.d.ts.map +1 -1
  351. package/dist/components/index.mjs +3 -1
  352. package/dist/components/index.mjs.map +1 -1
  353. package/dist/hooks/index.cjs +1 -0
  354. package/dist/hooks/index.cjs.map +1 -1
  355. package/dist/hooks/index.mjs +2 -1
  356. package/dist/hooks/intlayerAPIHooks.cjs +14 -3
  357. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  358. package/dist/hooks/intlayerAPIHooks.d.ts +1 -0
  359. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  360. package/dist/hooks/intlayerAPIHooks.mjs +14 -3
  361. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  362. package/dist/hooks/useAsync/useAsync.cjs +1 -1
  363. package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
  364. package/dist/hooks/useAsync/useAsync.mjs +1 -1
  365. package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
  366. package/dist/hooks/useIntlayerAPI.d.ts +1 -0
  367. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  368. package/dist/hooks/usePersistedStore.cjs +3 -2
  369. package/dist/hooks/usePersistedStore.cjs.map +1 -1
  370. package/dist/hooks/usePersistedStore.d.ts.map +1 -1
  371. package/dist/hooks/usePersistedStore.mjs +3 -2
  372. package/dist/hooks/usePersistedStore.mjs.map +1 -1
  373. package/dist/{index-BZQDMSxb.cjs → index-BtZWYJhL.cjs} +2 -2
  374. package/dist/index-BtZWYJhL.cjs.map +1 -0
  375. package/dist/{index-pLq_417z.js → index-D9oaKvKC.js} +2 -2
  376. package/dist/index-D9oaKvKC.js.map +1 -0
  377. package/dist/{jsx-runtime-BgSF1HG2.js → jsx-runtime-DaNGiM0W.js} +15 -9
  378. package/dist/{jsx-runtime-BgSF1HG2.js.map → jsx-runtime-DaNGiM0W.js.map} +1 -1
  379. package/dist/{jsx-runtime-DvCoRj5u.cjs → jsx-runtime-XHKiWCTo.cjs} +15 -9
  380. package/dist/{jsx-runtime-DvCoRj5u.cjs.map → jsx-runtime-XHKiWCTo.cjs.map} +1 -1
  381. package/dist/libs/intlayer-api/index.cjs +1 -1
  382. package/dist/libs/intlayer-api/index.cjs.map +1 -1
  383. package/dist/libs/intlayer-api/index.d.ts +2 -0
  384. package/dist/libs/intlayer-api/index.d.ts.map +1 -1
  385. package/dist/libs/intlayer-api/index.mjs +1 -1
  386. package/dist/libs/intlayer-api/index.mjs.map +1 -1
  387. package/dist/libs/intlayer-api/stripe.cjs +12 -3
  388. package/dist/libs/intlayer-api/stripe.cjs.map +1 -1
  389. package/dist/libs/intlayer-api/stripe.d.ts +1 -0
  390. package/dist/libs/intlayer-api/stripe.d.ts.map +1 -1
  391. package/dist/libs/intlayer-api/stripe.mjs +12 -3
  392. package/dist/libs/intlayer-api/stripe.mjs.map +1 -1
  393. package/dist/tailwind.css +1 -1
  394. package/dist/zod-BV4nCGJE.js.map +1 -1
  395. package/dist/zod-DSrtTSD_.cjs.map +1 -1
  396. package/package.json +47 -46
  397. package/tailwind.config.js +215 -0
  398. package/dist/Form-2XHQV7F_.cjs +0 -295
  399. package/dist/Form-2XHQV7F_.cjs.map +0 -1
  400. package/dist/Form-BO0i3nT9.js +0 -300
  401. package/dist/Form-BO0i3nT9.js.map +0 -1
  402. package/dist/Form-BaHDK0RZ.cjs +0 -298
  403. package/dist/Form-BaHDK0RZ.cjs.map +0 -1
  404. package/dist/Form-BfZMqK2D.js +0 -300
  405. package/dist/Form-BfZMqK2D.js.map +0 -1
  406. package/dist/Form-C13KWSZs.cjs +0 -299
  407. package/dist/Form-C13KWSZs.cjs.map +0 -1
  408. package/dist/Form-C8K2f8ph.js +0 -300
  409. package/dist/Form-C8K2f8ph.js.map +0 -1
  410. package/dist/Form-CKvCgz8c.cjs +0 -299
  411. package/dist/Form-CKvCgz8c.cjs.map +0 -1
  412. package/dist/Form-Cbk5Lhpd.js +0 -299
  413. package/dist/Form-Cbk5Lhpd.js.map +0 -1
  414. package/dist/Form-Cbu7ff1e.js +0 -278
  415. package/dist/Form-Cbu7ff1e.js.map +0 -1
  416. package/dist/Form-CiAgFAPb.cjs +0 -300
  417. package/dist/Form-CiAgFAPb.cjs.map +0 -1
  418. package/dist/Form-CnBKDneQ.js +0 -296
  419. package/dist/Form-CnBKDneQ.js.map +0 -1
  420. package/dist/Form-DhlDf3ML.cjs +0 -299
  421. package/dist/Form-DhlDf3ML.cjs.map +0 -1
  422. package/dist/Form-DkAZ0Jdf.cjs +0 -299
  423. package/dist/Form-DkAZ0Jdf.cjs.map +0 -1
  424. package/dist/Form-DqnNP4DA.js +0 -300
  425. package/dist/Form-DqnNP4DA.js.map +0 -1
  426. package/dist/Form-FW4Odjfm.js +0 -301
  427. package/dist/Form-FW4Odjfm.js.map +0 -1
  428. package/dist/Form-wWTTkxTp.cjs +0 -277
  429. package/dist/Form-wWTTkxTp.cjs.map +0 -1
  430. package/dist/TabSelector-BmkzVPXl.js +0 -660
  431. package/dist/TabSelector-BmkzVPXl.js.map +0 -1
  432. package/dist/TabSelector-o_NRBvPQ.cjs +0 -659
  433. package/dist/TabSelector-o_NRBvPQ.cjs.map +0 -1
  434. package/dist/components/Auth/AuthProvider/index.cjs +0 -55
  435. package/dist/components/Auth/AuthProvider/index.cjs.map +0 -1
  436. package/dist/components/Auth/AuthProvider/index.d.ts +0 -31
  437. package/dist/components/Auth/AuthProvider/index.d.ts.map +0 -1
  438. package/dist/components/Auth/AuthProvider/index.mjs +0 -55
  439. package/dist/components/Auth/AuthProvider/index.mjs.map +0 -1
  440. package/dist/components/Auth/AuthProvider/useCSRF.cjs +0 -22
  441. package/dist/components/Auth/AuthProvider/useCSRF.cjs.map +0 -1
  442. package/dist/components/Auth/AuthProvider/useCSRF.d.ts +0 -5
  443. package/dist/components/Auth/AuthProvider/useCSRF.d.ts.map +0 -1
  444. package/dist/components/Auth/AuthProvider/useCSRF.mjs +0 -22
  445. package/dist/components/Auth/AuthProvider/useCSRF.mjs.map +0 -1
  446. package/dist/components/Auth/AuthProvider/useOAuth2.cjs +0 -26
  447. package/dist/components/Auth/AuthProvider/useOAuth2.cjs.map +0 -1
  448. package/dist/components/Auth/AuthProvider/useOAuth2.d.ts +0 -4
  449. package/dist/components/Auth/AuthProvider/useOAuth2.d.ts.map +0 -1
  450. package/dist/components/Auth/AuthProvider/useOAuth2.mjs +0 -26
  451. package/dist/components/Auth/AuthProvider/useOAuth2.mjs.map +0 -1
  452. package/dist/components/Auth/AuthProvider/useSession.cjs +0 -70
  453. package/dist/components/Auth/AuthProvider/useSession.cjs.map +0 -1
  454. package/dist/components/Auth/AuthProvider/useSession.d.ts +0 -8
  455. package/dist/components/Auth/AuthProvider/useSession.d.ts.map +0 -1
  456. package/dist/components/Auth/AuthProvider/useSession.mjs +0 -70
  457. package/dist/components/Auth/AuthProvider/useSession.mjs.map +0 -1
  458. package/dist/hooks/useAsync/useProxyState.d.ts +0 -3
  459. package/dist/hooks/useAsync/useProxyState.d.ts.map +0 -1
  460. package/dist/hooks/usePersistenceStore.cjs +0 -22
  461. package/dist/hooks/usePersistenceStore.cjs.map +0 -1
  462. package/dist/hooks/usePersistenceStore.d.ts +0 -2
  463. package/dist/hooks/usePersistenceStore.d.ts.map +0 -1
  464. package/dist/hooks/usePersistenceStore.mjs +0 -22
  465. package/dist/hooks/usePersistenceStore.mjs.map +0 -1
  466. package/dist/index-BUDsCMdX.cjs +0 -204
  467. package/dist/index-BUDsCMdX.cjs.map +0 -1
  468. package/dist/index-BZQDMSxb.cjs.map +0 -1
  469. package/dist/index-C09rI9kw.js +0 -205
  470. package/dist/index-C09rI9kw.js.map +0 -1
  471. package/dist/index-pLq_417z.js.map +0 -1
  472. package/dist/stripe-BsI0lJWz.js +0 -22
  473. package/dist/stripe-BsI0lJWz.js.map +0 -1
  474. package/dist/stripe-C-u5RvGh.js +0 -22
  475. package/dist/stripe-C-u5RvGh.js.map +0 -1
  476. package/dist/stripe-CF_E65Vu.js +0 -22
  477. package/dist/stripe-CF_E65Vu.js.map +0 -1
  478. package/dist/stripe-CpGvfq6T.cjs +0 -21
  479. package/dist/stripe-CpGvfq6T.cjs.map +0 -1
  480. package/dist/stripe-DEv4DjAL.cjs +0 -21
  481. package/dist/stripe-DEv4DjAL.cjs.map +0 -1
  482. package/dist/stripe-DuG0uaEn.cjs +0 -21
  483. package/dist/stripe-DuG0uaEn.cjs.map +0 -1
  484. package/dist/useProxyState-D5GLrY2y.js +0 -20
  485. package/dist/useProxyState-D5GLrY2y.js.map +0 -1
  486. package/dist/useProxyState-DewdF3no.cjs +0 -19
  487. package/dist/useProxyState-DewdF3no.cjs.map +0 -1
  488. package/dist/validDictionaryChangeButtons.content-BK9QaXPm.cjs +0 -66
  489. package/dist/validDictionaryChangeButtons.content-BK9QaXPm.cjs.map +0 -1
  490. package/dist/validDictionaryChangeButtons.content-CAAscqJI.cjs +0 -66
  491. package/dist/validDictionaryChangeButtons.content-CAAscqJI.cjs.map +0 -1
  492. package/dist/validDictionaryChangeButtons.content-D7AvoBdl.js +0 -67
  493. package/dist/validDictionaryChangeButtons.content-D7AvoBdl.js.map +0 -1
  494. package/dist/validDictionaryChangeButtons.content-DQwoUNCC.cjs +0 -45
  495. package/dist/validDictionaryChangeButtons.content-DQwoUNCC.cjs.map +0 -1
  496. package/dist/validDictionaryChangeButtons.content-DQxPoIe6.js +0 -67
  497. package/dist/validDictionaryChangeButtons.content-DQxPoIe6.js.map +0 -1
  498. package/dist/validDictionaryChangeButtons.content-JUcjGdBx.cjs +0 -66
  499. package/dist/validDictionaryChangeButtons.content-JUcjGdBx.cjs.map +0 -1
  500. package/dist/validDictionaryChangeButtons.content-ejY3-sbG.js +0 -67
  501. package/dist/validDictionaryChangeButtons.content-ejY3-sbG.js.map +0 -1
  502. package/dist/validDictionaryChangeButtons.content-iyT0lKy7.js +0 -46
  503. package/dist/validDictionaryChangeButtons.content-iyT0lKy7.js.map +0 -1
  504. package/dist/validDictionaryChangeButtons.content-u4qShrQh.cjs +0 -66
  505. package/dist/validDictionaryChangeButtons.content-u4qShrQh.cjs.map +0 -1
  506. package/dist/validDictionaryChangeButtons.content-y4up9NU8.js +0 -67
  507. package/dist/validDictionaryChangeButtons.content-y4up9NU8.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"validDictionaryChangeButtons.content.cjs","sources":["../../../src/components/DictionaryEditor/validDictionaryChangeButtons.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const validDictionaryChangeButtonsContent = {\n key: 'valid-dictionary-change-buttons',\n content: {\n resetButton: {\n text: t({\n en: 'Reset changes',\n fr: 'Réinitialiser les modifications',\n es: 'Restablecer cambios',\n }),\n label: t({\n en: 'Click to reset changes',\n fr: 'Cliquez pour réinitialiser les modifications',\n es: 'Haga clic para restablecer los cambios',\n }),\n },\n saveButton: {\n text: t({\n en: 'Save changes',\n fr: 'Enregistrer les modifications',\n es: 'Guardar cambios',\n }),\n label: t({\n en: 'Click to save changes',\n fr: 'Cliquez pour enregistrer les modifications',\n es: 'Haga clic para guardar los cambios',\n }),\n },\n publishButton: {\n text: t({\n en: 'Publish dictionary',\n fr: 'Publier le dictionnaire',\n es: 'Publicar diccionario',\n }),\n label: t({\n en: 'Click to publish dictionary',\n fr: 'Cliquez pour publier le dictionnaire',\n es: 'Haga clic para publicar el diccionario',\n }),\n },\n },\n} satisfies DeclarationContent;\n"],"names":["t"],"mappings":";;;AAEO,MAAM,sCAAsC;AAAA,EACjD,KAAK;AAAA,EACL,SAAS;AAAA,IACP,aAAa;AAAA,MACX,MAAMA,SAAAA,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,YAAY;AAAA,MACV,MAAMA,SAAAA,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,eAAe;AAAA,MACb,MAAMA,SAAAA,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,EACF;AACF;;"}
1
+ {"version":3,"file":"validDictionaryChangeButtons.content.cjs","sources":["../../../src/components/DictionaryEditor/validDictionaryChangeButtons.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const validDictionaryChangeButtonsContent = {\n key: 'valid-dictionary-change-buttons',\n content: {\n resetButton: {\n text: t({\n en: 'Reset all changes',\n fr: 'Réinitialiser toutes les modifications',\n es: 'Restablecer todas las modificaciones',\n }),\n label: t({\n en: 'Click to reset all the changes',\n fr: 'Cliquez pour réinitialiser toutes les modifications',\n es: 'Haga clic para restablecer todas las modificaciones',\n }),\n },\n saveButton: {\n text: t({\n en: 'Save changes',\n fr: 'Enregistrer les modifications',\n es: 'Guardar cambios',\n }),\n label: t({\n en: 'Click to save changes',\n fr: 'Cliquez pour enregistrer les modifications',\n es: 'Haga clic para guardar los cambios',\n }),\n },\n publishButton: {\n text: t({\n en: 'Publish dictionary',\n fr: 'Publier le dictionnaire',\n es: 'Publicar diccionario',\n }),\n label: t({\n en: 'Click to publish dictionary',\n fr: 'Cliquez pour publier le dictionnaire',\n es: 'Haga clic para publicar el diccionario',\n }),\n },\n },\n} satisfies DeclarationContent;\n"],"names":["t"],"mappings":";;;AAEO,MAAM,sCAAsC;AAAA,EACjD,KAAK;AAAA,EACL,SAAS;AAAA,IACP,aAAa;AAAA,MACX,MAAMA,SAAAA,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,YAAY;AAAA,MACV,MAAMA,SAAAA,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,eAAe;AAAA,MACb,MAAMA,SAAAA,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,EACF;AACF;;"}
@@ -4,14 +4,14 @@ const validDictionaryChangeButtonsContent = {
4
4
  content: {
5
5
  resetButton: {
6
6
  text: t({
7
- en: "Reset changes",
8
- fr: "Réinitialiser les modifications",
9
- es: "Restablecer cambios"
7
+ en: "Reset all changes",
8
+ fr: "Réinitialiser toutes les modifications",
9
+ es: "Restablecer todas las modificaciones"
10
10
  }),
11
11
  label: t({
12
- en: "Click to reset changes",
13
- fr: "Cliquez pour réinitialiser les modifications",
14
- es: "Haga clic para restablecer los cambios"
12
+ en: "Click to reset all the changes",
13
+ fr: "Cliquez pour réinitialiser toutes les modifications",
14
+ es: "Haga clic para restablecer todas las modificaciones"
15
15
  })
16
16
  },
17
17
  saveButton: {
@@ -1 +1 @@
1
- {"version":3,"file":"validDictionaryChangeButtons.content.mjs","sources":["../../../src/components/DictionaryEditor/validDictionaryChangeButtons.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const validDictionaryChangeButtonsContent = {\n key: 'valid-dictionary-change-buttons',\n content: {\n resetButton: {\n text: t({\n en: 'Reset changes',\n fr: 'Réinitialiser les modifications',\n es: 'Restablecer cambios',\n }),\n label: t({\n en: 'Click to reset changes',\n fr: 'Cliquez pour réinitialiser les modifications',\n es: 'Haga clic para restablecer los cambios',\n }),\n },\n saveButton: {\n text: t({\n en: 'Save changes',\n fr: 'Enregistrer les modifications',\n es: 'Guardar cambios',\n }),\n label: t({\n en: 'Click to save changes',\n fr: 'Cliquez pour enregistrer les modifications',\n es: 'Haga clic para guardar los cambios',\n }),\n },\n publishButton: {\n text: t({\n en: 'Publish dictionary',\n fr: 'Publier le dictionnaire',\n es: 'Publicar diccionario',\n }),\n label: t({\n en: 'Click to publish dictionary',\n fr: 'Cliquez pour publier le dictionnaire',\n es: 'Haga clic para publicar el diccionario',\n }),\n },\n },\n} satisfies DeclarationContent;\n"],"names":[],"mappings":";AAEO,MAAM,sCAAsC;AAAA,EACjD,KAAK;AAAA,EACL,SAAS;AAAA,IACP,aAAa;AAAA,MACX,MAAM,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,YAAY;AAAA,MACV,MAAM,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,eAAe;AAAA,MACb,MAAM,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,EACF;AACF;"}
1
+ {"version":3,"file":"validDictionaryChangeButtons.content.mjs","sources":["../../../src/components/DictionaryEditor/validDictionaryChangeButtons.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const validDictionaryChangeButtonsContent = {\n key: 'valid-dictionary-change-buttons',\n content: {\n resetButton: {\n text: t({\n en: 'Reset all changes',\n fr: 'Réinitialiser toutes les modifications',\n es: 'Restablecer todas las modificaciones',\n }),\n label: t({\n en: 'Click to reset all the changes',\n fr: 'Cliquez pour réinitialiser toutes les modifications',\n es: 'Haga clic para restablecer todas las modificaciones',\n }),\n },\n saveButton: {\n text: t({\n en: 'Save changes',\n fr: 'Enregistrer les modifications',\n es: 'Guardar cambios',\n }),\n label: t({\n en: 'Click to save changes',\n fr: 'Cliquez pour enregistrer les modifications',\n es: 'Haga clic para guardar los cambios',\n }),\n },\n publishButton: {\n text: t({\n en: 'Publish dictionary',\n fr: 'Publier le dictionnaire',\n es: 'Publicar diccionario',\n }),\n label: t({\n en: 'Click to publish dictionary',\n fr: 'Cliquez pour publier le dictionnaire',\n es: 'Haga clic para publicar el diccionario',\n }),\n },\n },\n} satisfies DeclarationContent;\n"],"names":[],"mappings":";AAEO,MAAM,sCAAsC;AAAA,EACjD,KAAK;AAAA,EACL,SAAS;AAAA,IACP,aAAa;AAAA,MACX,MAAM,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,YAAY;AAAA,MACV,MAAM,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,eAAe;AAAA,MACb,MAAM,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,EACF;AACF;"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const jsxRuntime = require("../../../jsx-runtime-DvCoRj5u.cjs");
4
+ const jsxRuntime = require("../../../jsx-runtime-XHKiWCTo.cjs");
5
5
  const require$$0 = require("react");
6
6
  const reactIntlayer = require("react-intlayer");
7
7
  require("../../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
@@ -21,7 +21,7 @@ require("../../EditableField/EditableFieldInput.cjs");
21
21
  require("../../EditableField/EditableFieldTextArea.cjs");
22
22
  require("../../Form/FormBase.cjs");
23
23
  require("../../Form/FormField.cjs");
24
- require("../../../Form-DERuauvB.cjs");
24
+ require("../../../Form-BDcoNTLV.cjs");
25
25
  require("../../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
26
26
  require("zod");
27
27
  const components_Loader_index = require("../../Loader/index.cjs");
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { j as jsxRuntimeExports } from "../../../jsx-runtime-BgSF1HG2.js";
2
+ import { j as jsxRuntimeExports } from "../../../jsx-runtime-DaNGiM0W.js";
3
3
  import { useMemo } from "react";
4
4
  import { useDictionary } from "react-intlayer";
5
5
  import "../../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
@@ -19,7 +19,7 @@ import "../../EditableField/EditableFieldInput.mjs";
19
19
  import "../../EditableField/EditableFieldTextArea.mjs";
20
20
  import "../../Form/FormBase.mjs";
21
21
  import "../../Form/FormField.mjs";
22
- import "../../../Form-DyFBmVya.js";
22
+ import "../../../Form-DhsgC7kB.js";
23
23
  import "../../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
24
24
  import "zod";
25
25
  import { Loader } from "../../Loader/index.mjs";
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const jsxRuntime = require("../../../jsx-runtime-DvCoRj5u.cjs");
4
+ const jsxRuntime = require("../../../jsx-runtime-XHKiWCTo.cjs");
5
5
  const reactIntlayer = require("react-intlayer");
6
6
  const hooks_intlayerAPIHooks = require("../../../hooks/intlayerAPIHooks.cjs");
7
7
  require("../../../libs/intlayer-api/index.cjs");
8
8
  require("../../Button/Button.cjs");
9
9
  const components_Form_FormBase = require("../../Form/FormBase.cjs");
10
10
  require("../../Form/FormField.cjs");
11
- const components_Form_layout_FormItemLayout = require("../../../Form-DERuauvB.cjs");
11
+ const components_Form_layout_FormItemLayout = require("../../../Form-BDcoNTLV.cjs");
12
12
  require("zod");
13
13
  require("react");
14
14
  require("../../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
15
15
  require("../../../hooks/useAsync/useAsyncStateStore.cjs");
16
16
  require("@intlayer/dictionaries-entry");
17
17
  require("deepmerge");
18
- require("../../Modal/Modal.cjs");
19
18
  const components_Auth_useAuth_index = require("../../Auth/useAuth/index.cjs");
19
+ require("../../Modal/Modal.cjs");
20
20
  require("clsx");
21
21
  require("tailwind-merge");
22
22
  const components_Select_Multiselect = require("../../Select/Multiselect.cjs");
@@ -1,20 +1,20 @@
1
1
  "use client";
2
- import { j as jsxRuntimeExports } from "../../../jsx-runtime-BgSF1HG2.js";
2
+ import { j as jsxRuntimeExports } from "../../../jsx-runtime-DaNGiM0W.js";
3
3
  import { useDictionary } from "react-intlayer";
4
4
  import { useAddDictionary, useGetProjects } from "../../../hooks/intlayerAPIHooks.mjs";
5
5
  import "../../../libs/intlayer-api/index.mjs";
6
6
  import "../../Button/Button.mjs";
7
7
  import { useForm } from "../../Form/FormBase.mjs";
8
8
  import "../../Form/FormField.mjs";
9
- import { F as Form } from "../../../Form-DyFBmVya.js";
9
+ import { F as Form } from "../../../Form-DhsgC7kB.js";
10
10
  import "zod";
11
11
  import "react";
12
12
  import "../../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
13
13
  import "../../../hooks/useAsync/useAsyncStateStore.mjs";
14
14
  import "@intlayer/dictionaries-entry";
15
15
  import "deepmerge";
16
- import "../../Modal/Modal.mjs";
17
16
  import { useAuth } from "../../Auth/useAuth/index.mjs";
17
+ import "../../Modal/Modal.mjs";
18
18
  import "clsx";
19
19
  import "tailwind-merge";
20
20
  import { MultiSelect } from "../../Select/Multiselect.mjs";
@@ -3,11 +3,11 @@ export declare const getDictionarySchema: (projectId: string) => z.ZodObject<{
3
3
  key: z.ZodDefault<z.ZodString>;
4
4
  projectIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
5
5
  }, "strip", z.ZodTypeAny, {
6
- projectIds: string[];
7
6
  key: string;
7
+ projectIds: string[];
8
8
  }, {
9
- projectIds?: string[] | undefined;
10
9
  key?: string | undefined;
10
+ projectIds?: string[] | undefined;
11
11
  }>;
12
12
  export type DictionaryFormData = z.infer<ReturnType<typeof getDictionarySchema>>;
13
13
  //# sourceMappingURL=dictionaryFormSchema.d.ts.map
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const jsxRuntime = require("../../../jsx-runtime-DvCoRj5u.cjs");
4
+ const jsxRuntime = require("../../../jsx-runtime-XHKiWCTo.cjs");
5
5
  const lucideReact = require("lucide-react");
6
6
  const require$$0 = require("react");
7
7
  const reactIntlayer = require("react-intlayer");
@@ -15,10 +15,10 @@ require("../../../libs/intlayer-api/index.cjs");
15
15
  require("../../Button/Button.cjs");
16
16
  const components_Form_FormBase = require("../../Form/FormBase.cjs");
17
17
  require("../../Form/FormField.cjs");
18
- const components_Form_layout_FormItemLayout = require("../../../Form-DERuauvB.cjs");
18
+ const components_Form_layout_FormItemLayout = require("../../../Form-BDcoNTLV.cjs");
19
19
  require("zod");
20
- require("../../Modal/Modal.cjs");
21
20
  const components_Auth_useAuth_index = require("../../Auth/useAuth/index.cjs");
21
+ require("../../Modal/Modal.cjs");
22
22
  const components_Select_Multiselect = require("../../Select/Multiselect.cjs");
23
23
  require("../../Select/Select.cjs");
24
24
  const components_DictionaryFieldEditor_DictionaryDetails_dictionaryDetails_content = require("./dictionaryDetails.content.cjs");
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { j as jsxRuntimeExports } from "../../../jsx-runtime-BgSF1HG2.js";
2
+ import { j as jsxRuntimeExports } from "../../../jsx-runtime-DaNGiM0W.js";
3
3
  import { ArrowUpFromLine, Save } from "lucide-react";
4
4
  import { useEffect } from "react";
5
5
  import { useDictionary } from "react-intlayer";
@@ -13,10 +13,10 @@ import "../../../libs/intlayer-api/index.mjs";
13
13
  import "../../Button/Button.mjs";
14
14
  import { useForm } from "../../Form/FormBase.mjs";
15
15
  import "../../Form/FormField.mjs";
16
- import { F as Form } from "../../../Form-DyFBmVya.js";
16
+ import { F as Form } from "../../../Form-DhsgC7kB.js";
17
17
  import "zod";
18
- import "../../Modal/Modal.mjs";
19
18
  import { useAuth } from "../../Auth/useAuth/index.mjs";
19
+ import "../../Modal/Modal.mjs";
20
20
  import { MultiSelect } from "../../Select/Multiselect.mjs";
21
21
  import "../../Select/Select.mjs";
22
22
  import { dictionaryDetailsContent } from "./dictionaryDetails.content.mjs";
@@ -5,15 +5,15 @@ export declare const getDictionaryDetailsSchema: (projectId: string) => z.ZodObj
5
5
  description: z.ZodOptional<z.ZodString>;
6
6
  projectIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- projectIds: string[];
9
8
  key: string;
10
- description?: string | undefined;
9
+ projectIds: string[];
11
10
  title?: string | undefined;
11
+ description?: string | undefined;
12
12
  }, {
13
+ title?: string | undefined;
14
+ key?: string | undefined;
13
15
  description?: string | undefined;
14
16
  projectIds?: string[] | undefined;
15
- key?: string | undefined;
16
- title?: string | undefined;
17
17
  }>;
18
18
  export type DictionaryDetailsFormData = z.infer<ReturnType<typeof getDictionaryDetailsSchema>>;
19
19
  //# sourceMappingURL=DictionaryDetailsSchema.d.ts.map
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const jsxRuntime = require("../../jsx-runtime-DvCoRj5u.cjs");
4
+ const jsxRuntime = require("../../jsx-runtime-XHKiWCTo.cjs");
5
5
  const lucideReact = require("lucide-react");
6
6
  const require$$0 = require("react");
7
7
  const reactIntlayer = require("react-intlayer");
8
8
  const components_Button_Button = require("../Button/Button.cjs");
9
9
  const components_Container_index = require("../Container/index.cjs");
10
10
  const components_DictionaryEditor_useEditedContentStore = require("../DictionaryEditor/useEditedContentStore.cjs");
11
- const components_DictionaryEditor_useEditionPanelStore = require("../DictionaryEditor/useEditionPanelStore.cjs");
11
+ require("../DictionaryEditor/useEditionPanelStore.cjs");
12
12
  require("@intlayer/core");
13
13
  require("clsx");
14
14
  require("tailwind-merge");
@@ -23,35 +23,32 @@ require("@intlayer/dictionaries-entry");
23
23
  require("deepmerge");
24
24
  require("../Form/FormBase.cjs");
25
25
  require("../Form/FormField.cjs");
26
- require("../../Form-DERuauvB.cjs");
26
+ require("../../Form-BDcoNTLV.cjs");
27
27
  require("../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
28
28
  require("zod");
29
29
  const components_Headers_index = require("../Headers/index.cjs");
30
+ const components_SwitchSelector_index = require("../SwitchSelector/index.cjs");
30
31
  const components_DictionaryFieldEditor_DictionaryDetails_DictionaryDetailsForm = require("./DictionaryDetails/DictionaryDetailsForm.cjs");
31
32
  const components_DictionaryFieldEditor_dictionaryFieldEditor_content = require("./dictionaryFieldEditor.content.cjs");
32
- const components_DictionaryFieldEditor_EditorView_EditorView = require("./EditorView/EditorView.cjs");
33
- const components_DictionaryFieldEditor_KeyPathBreadcrumb = require("./KeyPathBreadcrumb.cjs");
34
- const components_DictionaryFieldEditor_NavigationView_NavigationViewNode = require("./NavigationView/NavigationViewNode.cjs");
35
- const components_DictionaryFieldEditor_SaveForm_SaveForm = require("./SaveForm/SaveForm.cjs");
33
+ const components_DictionaryFieldEditor_JSONEditor = require("./JSONEditor.cjs");
34
+ const components_DictionaryFieldEditor_NodeEditor = require("./NodeEditor.cjs");
36
35
  const DictionaryFieldEditor = ({
37
36
  dictionary,
38
37
  onClickDictionaryList
39
38
  }) => {
40
- const { content: dictionaryContent, key } = dictionary;
41
- const { editedContent, dictionaryRecord, setDictionariesRecord } = components_DictionaryEditor_useEditedContentStore.useEditedContentStore((s) => ({
42
- editedContent: s.editedContent,
43
- dictionaryRecord: s.dictionariesRecord,
44
- setDictionariesRecord: s.setDictionariesRecord
45
- }));
46
- const { returnToDictionaryList, titleContent, titleInformation } = reactIntlayer.useDictionary(components_DictionaryFieldEditor_dictionaryFieldEditor_content.dictionaryFieldEditorContent);
47
- const { focusedContent, setFocusedContentKeyPath } = components_DictionaryEditor_useEditionPanelStore.useEditionPanelStore(
39
+ const { key } = dictionary;
40
+ const [editorView, setEditorView] = require$$0.useState(
41
+ 0
42
+ /* NodeEditor */
43
+ );
44
+ const { dictionaryRecord, setDictionariesRecord } = components_DictionaryEditor_useEditedContentStore.useEditedContentStore(
48
45
  (s) => ({
49
- focusedContent: s.focusedContent,
50
- setFocusedContentKeyPath: s.setFocusedContentKeyPath
46
+ editedContent: s.editedContent,
47
+ dictionaryRecord: s.dictionariesRecord,
48
+ setDictionariesRecord: s.setDictionariesRecord
51
49
  })
52
50
  );
53
- const focusedKeyPath = focusedContent?.keyPath;
54
- const section = editedContent[key]?.content ?? dictionaryContent;
51
+ const { returnToDictionaryList, titleContent, titleInformation } = reactIntlayer.useDictionary(components_DictionaryFieldEditor_dictionaryFieldEditor_content.dictionaryFieldEditorContent);
55
52
  require$$0.useEffect(() => {
56
53
  if (dictionaryRecord[key]) return;
57
54
  setDictionariesRecord({
@@ -100,45 +97,29 @@ const DictionaryFieldEditor = ({
100
97
  children: [
101
98
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_Headers_index.H2, { children: titleContent }),
102
99
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
103
- components_DictionaryFieldEditor_KeyPathBreadcrumb.KeyPathBreadcrumb,
100
+ components_SwitchSelector_index.SwitchSelector,
104
101
  {
105
- dictionaryKey: key,
106
- keyPath: focusedKeyPath ?? [],
107
- onClickKeyPath: setFocusedContentKeyPath
108
- }
109
- ),
110
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex gap-2 max-md:flex-col", children: [
111
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
112
- components_Container_index.Container,
113
- {
114
- border: true,
115
- background: false,
116
- className: "top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]",
117
- roundedSize: "xl",
118
- children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
119
- components_DictionaryFieldEditor_NavigationView_NavigationViewNode.NavigationViewNode,
120
- {
121
- keyPath: [],
122
- section,
123
- dictionaryKey: key
124
- }
125
- )
126
- }
127
- ),
128
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "top-6 flex h-full flex-1 flex-col gap-6 md:sticky", children: [
129
- (focusedKeyPath?.length ?? 0) > 0 && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
130
- components_Container_index.Container,
102
+ defaultValue: editorView,
103
+ onChange: (value) => setEditorView(value),
104
+ color: "text",
105
+ size: "sm",
106
+ className: "ml-auto",
107
+ choices: [
108
+ {
109
+ content: "Node editor",
110
+ value: 0
111
+ /* NodeEditor */
112
+ },
131
113
  {
132
- border: true,
133
- background: false,
134
- className: "h-full flex-1 overflow-hidden",
135
- roundedSize: "xl",
136
- children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_DictionaryFieldEditor_EditorView_EditorView.EditorView, { dictionary, dictionaryKey: key })
114
+ content: "JSON editor",
115
+ value: 1
116
+ /* JSONEditor */
137
117
  }
138
- ),
139
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_DictionaryFieldEditor_SaveForm_SaveForm.SaveForm, { dictionary })
140
- ] })
141
- ] })
118
+ ]
119
+ }
120
+ ),
121
+ editorView === 0 && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_DictionaryFieldEditor_NodeEditor.NodeEditor, { dictionary }),
122
+ editorView === 1 && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_DictionaryFieldEditor_JSONEditor.JSONEditor, { dictionary })
142
123
  ]
143
124
  }
144
125
  )
@@ -1 +1 @@
1
- {"version":3,"file":"DictionaryFieldEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary } from '@intlayer/core';\nimport { ArrowLeft } from 'lucide-react';\nimport { useEffect, type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Button } from '../Button';\nimport { Container } from '../Container';\nimport {\n useEditedContentStore,\n useEditionPanelStore,\n} from '../DictionaryEditor';\nimport { H2 } from '../Headers';\nimport { DictionaryDetailsForm } from './DictionaryDetails/DictionaryDetailsForm';\nimport { dictionaryFieldEditorContent } from './dictionaryFieldEditor.content';\nimport { EditorView } from './EditorView/EditorView';\nimport { KeyPathBreadcrumb } from './KeyPathBreadcrumb';\nimport { NavigationViewNode } from './NavigationView/NavigationViewNode';\nimport { SaveForm } from './SaveForm/SaveForm';\n\ntype DictionaryFieldEditorProps = {\n dictionary: Dictionary;\n onClickDictionaryList?: () => void;\n};\n\nexport const DictionaryFieldEditor: FC<DictionaryFieldEditorProps> = ({\n dictionary,\n onClickDictionaryList,\n}) => {\n const { content: dictionaryContent, key } = dictionary;\n const { editedContent, dictionaryRecord, setDictionariesRecord } =\n useEditedContentStore((s) => ({\n editedContent: s.editedContent,\n dictionaryRecord: s.dictionariesRecord,\n setDictionariesRecord: s.setDictionariesRecord,\n }));\n const { returnToDictionaryList, titleContent, titleInformation } =\n useDictionary(dictionaryFieldEditorContent);\n\n const { focusedContent, setFocusedContentKeyPath } = useEditionPanelStore(\n (s) => ({\n focusedContent: s.focusedContent,\n setFocusedContentKeyPath: s.setFocusedContentKeyPath,\n })\n );\n\n const focusedKeyPath = focusedContent?.keyPath;\n\n const section = editedContent[key]?.content ?? dictionaryContent;\n\n useEffect(() => {\n if (dictionaryRecord[key]) return;\n\n setDictionariesRecord({\n [key]: dictionary,\n });\n }, [dictionary, key, setDictionariesRecord, dictionaryRecord]);\n\n return (\n <div className=\"flex size-full flex-1 flex-col gap-10\">\n <div className=\"flex items-center gap-2\">\n <Button\n onClick={() => onClickDictionaryList?.()}\n variant=\"hoverable\"\n size=\"icon-md\"\n color=\"text\"\n id=\"return-to-dictionary-list\"\n Icon={ArrowLeft}\n label={returnToDictionaryList.label.value}\n />\n <label\n className=\"cursor-pointer text-xs hover:underline\"\n htmlFor=\"return-to-dictionary-list\"\n >\n {returnToDictionaryList.text}\n </label>\n </div>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleInformation}</H2>\n\n <DictionaryDetailsForm dictionary={dictionary} />\n </Container>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleContent}</H2>\n\n <KeyPathBreadcrumb\n dictionaryKey={key}\n keyPath={focusedKeyPath ?? []}\n onClickKeyPath={setFocusedContentKeyPath}\n />\n <div className=\"flex gap-2 max-md:flex-col\">\n <Container\n border\n background={false}\n className=\"top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]\"\n roundedSize=\"xl\"\n >\n <NavigationViewNode\n keyPath={[]}\n section={section}\n dictionaryKey={key}\n />\n </Container>\n <div className=\"top-6 flex h-full flex-1 flex-col gap-6 md:sticky\">\n {(focusedKeyPath?.length ?? 0) > 0 && (\n <Container\n border\n background={false}\n className=\"h-full flex-1 overflow-hidden\"\n roundedSize=\"xl\"\n >\n <EditorView dictionary={dictionary} dictionaryKey={key} />\n </Container>\n )}\n <SaveForm dictionary={dictionary} />\n </div>\n </div>\n </Container>\n </div>\n );\n};\n"],"names":["useEditedContentStore","useDictionary","dictionaryFieldEditorContent","useEditionPanelStore","useEffect","jsxs","jsx","Button","ArrowLeft","Container","H2","DictionaryDetailsForm","KeyPathBreadcrumb","NavigationViewNode","EditorView","SaveForm"],"mappings":"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"}
1
+ {"version":3,"file":"DictionaryFieldEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary } from '@intlayer/core';\nimport { ArrowLeft } from 'lucide-react';\nimport { useEffect, useState, type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Button } from '../Button';\nimport { Container } from '../Container';\nimport { useEditedContentStore } from '../DictionaryEditor';\nimport { H2 } from '../Headers';\nimport { SwitchSelector } from '../SwitchSelector';\nimport { DictionaryDetailsForm } from './DictionaryDetails/DictionaryDetailsForm';\nimport { dictionaryFieldEditorContent } from './dictionaryFieldEditor.content';\nimport { JSONEditor } from './JSONEditor';\nimport { NodeEditor } from './NodeEditor';\n\ntype DictionaryFieldEditorProps = {\n dictionary: Dictionary;\n onClickDictionaryList?: () => void;\n};\n\nenum EditorViewType {\n NodeEditor,\n JSONEditor,\n}\n\nexport const DictionaryFieldEditor: FC<DictionaryFieldEditorProps> = ({\n dictionary,\n onClickDictionaryList,\n}) => {\n const { key } = dictionary;\n const [editorView, setEditorView] = useState<EditorViewType>(\n EditorViewType.NodeEditor\n );\n const { dictionaryRecord, setDictionariesRecord } = useEditedContentStore(\n (s) => ({\n editedContent: s.editedContent,\n dictionaryRecord: s.dictionariesRecord,\n setDictionariesRecord: s.setDictionariesRecord,\n })\n );\n const { returnToDictionaryList, titleContent, titleInformation } =\n useDictionary(dictionaryFieldEditorContent);\n\n useEffect(() => {\n if (dictionaryRecord[key]) return;\n\n setDictionariesRecord({\n [key]: dictionary,\n });\n }, [dictionary, key, setDictionariesRecord, dictionaryRecord]);\n\n return (\n <div className=\"flex size-full flex-1 flex-col gap-10\">\n <div className=\"flex items-center gap-2\">\n <Button\n onClick={() => onClickDictionaryList?.()}\n variant=\"hoverable\"\n size=\"icon-md\"\n color=\"text\"\n id=\"return-to-dictionary-list\"\n Icon={ArrowLeft}\n label={returnToDictionaryList.label.value}\n />\n <label\n className=\"cursor-pointer text-xs hover:underline\"\n htmlFor=\"return-to-dictionary-list\"\n >\n {returnToDictionaryList.text}\n </label>\n </div>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleInformation}</H2>\n\n <DictionaryDetailsForm dictionary={dictionary} />\n </Container>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleContent}</H2>\n <SwitchSelector\n defaultValue={editorView}\n onChange={(value) => setEditorView(value)}\n color=\"text\"\n size=\"sm\"\n className=\"ml-auto\"\n choices={[\n {\n content: 'Node editor',\n value: EditorViewType.NodeEditor,\n },\n {\n content: 'JSON editor',\n value: EditorViewType.JSONEditor,\n },\n ]}\n />\n {editorView === EditorViewType.NodeEditor && (\n <NodeEditor dictionary={dictionary} />\n )}\n {editorView === EditorViewType.JSONEditor && (\n <JSONEditor dictionary={dictionary} />\n )}\n </Container>\n </div>\n );\n};\n"],"names":["useState","useEditedContentStore","useDictionary","dictionaryFieldEditorContent","useEffect","jsxs","jsx","Button","ArrowLeft","Container","H2","DictionaryDetailsForm","SwitchSelector","NodeEditor","JSONEditor"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BO,MAAM,wBAAwD,CAAC;AAAA,EACpE;AAAA,EACA;AACF,MAAM;AACE,QAAA,EAAE,IAAQ,IAAA;AACV,QAAA,CAAC,YAAY,aAAa,IAAIA,WAAA;AAAA,IAClC;AAAA;AAAA,EAAA;AAEI,QAAA,EAAE,kBAAkB,sBAAA,IAA0BC,kDAAA;AAAA,IAClD,CAAC,OAAO;AAAA,MACN,eAAe,EAAE;AAAA,MACjB,kBAAkB,EAAE;AAAA,MACpB,uBAAuB,EAAE;AAAA,IAAA;AAAA,EAC3B;AAEF,QAAM,EAAE,wBAAwB,cAAc,iBAAiB,IAC7DC,cAAAA,cAAcC,+DAAAA,4BAA4B;AAE5CC,aAAAA,UAAU,MAAM;AACV,QAAA,iBAAiB,GAAG,EAAG;AAEL,0BAAA;AAAA,MACpB,CAAC,GAAG,GAAG;AAAA,IAAA,CACR;AAAA,KACA,CAAC,YAAY,KAAK,uBAAuB,gBAAgB,CAAC;AAG3D,SAAAC,2BAAA,kBAAA,KAAC,OAAI,EAAA,WAAU,yCACb,UAAA;AAAA,IAACA,2BAAAA,kBAAAA,KAAA,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,MAAAC,2BAAA,kBAAA;AAAA,QAACC,yBAAA;AAAA,QAAA;AAAA,UACC,SAAS,MAAM,wBAAwB;AAAA,UACvC,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,OAAM;AAAA,UACN,IAAG;AAAA,UACH,MAAMC,YAAA;AAAA,UACN,OAAO,uBAAuB,MAAM;AAAA,QAAA;AAAA,MACtC;AAAA,MACAF,2BAAA,kBAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAQ;AAAA,UAEP,UAAuB,uBAAA;AAAA,QAAA;AAAA,MAC1B;AAAA,IAAA,GACF;AAAA,IAEAD,2BAAA,kBAAA;AAAA,MAACI,2BAAA;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,aAAY;AAAA,QAEZ,UAAA;AAAA,UAAAH,2BAAAA,kBAAAA,IAACI,+BAAI,UAAiB,iBAAA,CAAA;AAAA,UAEtBJ,iDAACK,yEAAAA,yBAAsB,YAAwB;AAAA,QAAA;AAAA,MAAA;AAAA,IACjD;AAAA,IAEAN,2BAAA,kBAAA;AAAA,MAACI,2BAAA;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,aAAY;AAAA,QAEZ,UAAA;AAAA,UAAAH,2BAAAA,kBAAAA,IAACI,+BAAI,UAAa,aAAA,CAAA;AAAA,UAClBJ,2BAAA,kBAAA;AAAA,YAACM,gCAAA;AAAA,YAAA;AAAA,cACC,cAAc;AAAA,cACd,UAAU,CAAC,UAAU,cAAc,KAAK;AAAA,cACxC,OAAM;AAAA,cACN,MAAK;AAAA,cACL,WAAU;AAAA,cACV,SAAS;AAAA,gBACP;AAAA,kBACE,SAAS;AAAA,kBACT,OAAO;AAAA;AAAA,gBACT;AAAA,gBACA;AAAA,kBACE,SAAS;AAAA,kBACT,OAAO;AAAA;AAAA,gBACT;AAAA,cACF;AAAA,YAAA;AAAA,UACF;AAAA,UACC,eAAe,KACbN,2BAAAA,kBAAAA,IAAAO,4CAAAA,YAAA,EAAW,WAAwB,CAAA;AAAA,UAErC,eAAe,KACbP,2BAAAA,kBAAAA,IAAAQ,4CAAAA,YAAA,EAAW,WAAwB,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAExC;AAAA,EACF,EAAA,CAAA;AAEJ;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DictionaryFieldEditor.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAa,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAiB3C,KAAK,0BAA0B,GAAG;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAuGhE,CAAC"}
1
+ {"version":3,"file":"DictionaryFieldEditor.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAuB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAarD,KAAK,0BAA0B,GAAG;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC,CAAC;AAOF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAsFhE,CAAC"}
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { j as jsxRuntimeExports } from "../../jsx-runtime-BgSF1HG2.js";
2
+ import { j as jsxRuntimeExports } from "../../jsx-runtime-DaNGiM0W.js";
3
3
  import { ArrowLeft } from "lucide-react";
4
- import { useEffect } from "react";
4
+ import { useState, useEffect } from "react";
5
5
  import { useDictionary } from "react-intlayer";
6
6
  import { Button } from "../Button/Button.mjs";
7
7
  import { Container } from "../Container/index.mjs";
8
8
  import { useEditedContentStore } from "../DictionaryEditor/useEditedContentStore.mjs";
9
- import { useEditionPanelStore } from "../DictionaryEditor/useEditionPanelStore.mjs";
9
+ import "../DictionaryEditor/useEditionPanelStore.mjs";
10
10
  import "@intlayer/core";
11
11
  import "clsx";
12
12
  import "tailwind-merge";
@@ -21,35 +21,32 @@ import "@intlayer/dictionaries-entry";
21
21
  import "deepmerge";
22
22
  import "../Form/FormBase.mjs";
23
23
  import "../Form/FormField.mjs";
24
- import "../../Form-DyFBmVya.js";
24
+ import "../../Form-DhsgC7kB.js";
25
25
  import "../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
26
26
  import "zod";
27
27
  import { H2 } from "../Headers/index.mjs";
28
+ import { SwitchSelector } from "../SwitchSelector/index.mjs";
28
29
  import { DictionaryDetailsForm } from "./DictionaryDetails/DictionaryDetailsForm.mjs";
29
30
  import { dictionaryFieldEditorContent } from "./dictionaryFieldEditor.content.mjs";
30
- import { EditorView } from "./EditorView/EditorView.mjs";
31
- import { KeyPathBreadcrumb } from "./KeyPathBreadcrumb.mjs";
32
- import { NavigationViewNode } from "./NavigationView/NavigationViewNode.mjs";
33
- import { SaveForm } from "./SaveForm/SaveForm.mjs";
31
+ import { JSONEditor } from "./JSONEditor.mjs";
32
+ import { NodeEditor } from "./NodeEditor.mjs";
34
33
  const DictionaryFieldEditor = ({
35
34
  dictionary,
36
35
  onClickDictionaryList
37
36
  }) => {
38
- const { content: dictionaryContent, key } = dictionary;
39
- const { editedContent, dictionaryRecord, setDictionariesRecord } = useEditedContentStore((s) => ({
40
- editedContent: s.editedContent,
41
- dictionaryRecord: s.dictionariesRecord,
42
- setDictionariesRecord: s.setDictionariesRecord
43
- }));
44
- const { returnToDictionaryList, titleContent, titleInformation } = useDictionary(dictionaryFieldEditorContent);
45
- const { focusedContent, setFocusedContentKeyPath } = useEditionPanelStore(
37
+ const { key } = dictionary;
38
+ const [editorView, setEditorView] = useState(
39
+ 0
40
+ /* NodeEditor */
41
+ );
42
+ const { dictionaryRecord, setDictionariesRecord } = useEditedContentStore(
46
43
  (s) => ({
47
- focusedContent: s.focusedContent,
48
- setFocusedContentKeyPath: s.setFocusedContentKeyPath
44
+ editedContent: s.editedContent,
45
+ dictionaryRecord: s.dictionariesRecord,
46
+ setDictionariesRecord: s.setDictionariesRecord
49
47
  })
50
48
  );
51
- const focusedKeyPath = focusedContent?.keyPath;
52
- const section = editedContent[key]?.content ?? dictionaryContent;
49
+ const { returnToDictionaryList, titleContent, titleInformation } = useDictionary(dictionaryFieldEditorContent);
53
50
  useEffect(() => {
54
51
  if (dictionaryRecord[key]) return;
55
52
  setDictionariesRecord({
@@ -98,45 +95,29 @@ const DictionaryFieldEditor = ({
98
95
  children: [
99
96
  /* @__PURE__ */ jsxRuntimeExports.jsx(H2, { children: titleContent }),
100
97
  /* @__PURE__ */ jsxRuntimeExports.jsx(
101
- KeyPathBreadcrumb,
98
+ SwitchSelector,
102
99
  {
103
- dictionaryKey: key,
104
- keyPath: focusedKeyPath ?? [],
105
- onClickKeyPath: setFocusedContentKeyPath
106
- }
107
- ),
108
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-2 max-md:flex-col", children: [
109
- /* @__PURE__ */ jsxRuntimeExports.jsx(
110
- Container,
111
- {
112
- border: true,
113
- background: false,
114
- className: "top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]",
115
- roundedSize: "xl",
116
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
117
- NavigationViewNode,
118
- {
119
- keyPath: [],
120
- section,
121
- dictionaryKey: key
122
- }
123
- )
124
- }
125
- ),
126
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "top-6 flex h-full flex-1 flex-col gap-6 md:sticky", children: [
127
- (focusedKeyPath?.length ?? 0) > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
128
- Container,
100
+ defaultValue: editorView,
101
+ onChange: (value) => setEditorView(value),
102
+ color: "text",
103
+ size: "sm",
104
+ className: "ml-auto",
105
+ choices: [
106
+ {
107
+ content: "Node editor",
108
+ value: 0
109
+ /* NodeEditor */
110
+ },
129
111
  {
130
- border: true,
131
- background: false,
132
- className: "h-full flex-1 overflow-hidden",
133
- roundedSize: "xl",
134
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(EditorView, { dictionary, dictionaryKey: key })
112
+ content: "JSON editor",
113
+ value: 1
114
+ /* JSONEditor */
135
115
  }
136
- ),
137
- /* @__PURE__ */ jsxRuntimeExports.jsx(SaveForm, { dictionary })
138
- ] })
139
- ] })
116
+ ]
117
+ }
118
+ ),
119
+ editorView === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(NodeEditor, { dictionary }),
120
+ editorView === 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(JSONEditor, { dictionary })
140
121
  ]
141
122
  }
142
123
  )
@@ -1 +1 @@
1
- {"version":3,"file":"DictionaryFieldEditor.mjs","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary } from '@intlayer/core';\nimport { ArrowLeft } from 'lucide-react';\nimport { useEffect, type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Button } from '../Button';\nimport { Container } from '../Container';\nimport {\n useEditedContentStore,\n useEditionPanelStore,\n} from '../DictionaryEditor';\nimport { H2 } from '../Headers';\nimport { DictionaryDetailsForm } from './DictionaryDetails/DictionaryDetailsForm';\nimport { dictionaryFieldEditorContent } from './dictionaryFieldEditor.content';\nimport { EditorView } from './EditorView/EditorView';\nimport { KeyPathBreadcrumb } from './KeyPathBreadcrumb';\nimport { NavigationViewNode } from './NavigationView/NavigationViewNode';\nimport { SaveForm } from './SaveForm/SaveForm';\n\ntype DictionaryFieldEditorProps = {\n dictionary: Dictionary;\n onClickDictionaryList?: () => void;\n};\n\nexport const DictionaryFieldEditor: FC<DictionaryFieldEditorProps> = ({\n dictionary,\n onClickDictionaryList,\n}) => {\n const { content: dictionaryContent, key } = dictionary;\n const { editedContent, dictionaryRecord, setDictionariesRecord } =\n useEditedContentStore((s) => ({\n editedContent: s.editedContent,\n dictionaryRecord: s.dictionariesRecord,\n setDictionariesRecord: s.setDictionariesRecord,\n }));\n const { returnToDictionaryList, titleContent, titleInformation } =\n useDictionary(dictionaryFieldEditorContent);\n\n const { focusedContent, setFocusedContentKeyPath } = useEditionPanelStore(\n (s) => ({\n focusedContent: s.focusedContent,\n setFocusedContentKeyPath: s.setFocusedContentKeyPath,\n })\n );\n\n const focusedKeyPath = focusedContent?.keyPath;\n\n const section = editedContent[key]?.content ?? dictionaryContent;\n\n useEffect(() => {\n if (dictionaryRecord[key]) return;\n\n setDictionariesRecord({\n [key]: dictionary,\n });\n }, [dictionary, key, setDictionariesRecord, dictionaryRecord]);\n\n return (\n <div className=\"flex size-full flex-1 flex-col gap-10\">\n <div className=\"flex items-center gap-2\">\n <Button\n onClick={() => onClickDictionaryList?.()}\n variant=\"hoverable\"\n size=\"icon-md\"\n color=\"text\"\n id=\"return-to-dictionary-list\"\n Icon={ArrowLeft}\n label={returnToDictionaryList.label.value}\n />\n <label\n className=\"cursor-pointer text-xs hover:underline\"\n htmlFor=\"return-to-dictionary-list\"\n >\n {returnToDictionaryList.text}\n </label>\n </div>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleInformation}</H2>\n\n <DictionaryDetailsForm dictionary={dictionary} />\n </Container>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleContent}</H2>\n\n <KeyPathBreadcrumb\n dictionaryKey={key}\n keyPath={focusedKeyPath ?? []}\n onClickKeyPath={setFocusedContentKeyPath}\n />\n <div className=\"flex gap-2 max-md:flex-col\">\n <Container\n border\n background={false}\n className=\"top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]\"\n roundedSize=\"xl\"\n >\n <NavigationViewNode\n keyPath={[]}\n section={section}\n dictionaryKey={key}\n />\n </Container>\n <div className=\"top-6 flex h-full flex-1 flex-col gap-6 md:sticky\">\n {(focusedKeyPath?.length ?? 0) > 0 && (\n <Container\n border\n background={false}\n className=\"h-full flex-1 overflow-hidden\"\n roundedSize=\"xl\"\n >\n <EditorView dictionary={dictionary} dictionaryKey={key} />\n </Container>\n )}\n <SaveForm dictionary={dictionary} />\n </div>\n </div>\n </Container>\n </div>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":"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"}
1
+ {"version":3,"file":"DictionaryFieldEditor.mjs","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary } from '@intlayer/core';\nimport { ArrowLeft } from 'lucide-react';\nimport { useEffect, useState, type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Button } from '../Button';\nimport { Container } from '../Container';\nimport { useEditedContentStore } from '../DictionaryEditor';\nimport { H2 } from '../Headers';\nimport { SwitchSelector } from '../SwitchSelector';\nimport { DictionaryDetailsForm } from './DictionaryDetails/DictionaryDetailsForm';\nimport { dictionaryFieldEditorContent } from './dictionaryFieldEditor.content';\nimport { JSONEditor } from './JSONEditor';\nimport { NodeEditor } from './NodeEditor';\n\ntype DictionaryFieldEditorProps = {\n dictionary: Dictionary;\n onClickDictionaryList?: () => void;\n};\n\nenum EditorViewType {\n NodeEditor,\n JSONEditor,\n}\n\nexport const DictionaryFieldEditor: FC<DictionaryFieldEditorProps> = ({\n dictionary,\n onClickDictionaryList,\n}) => {\n const { key } = dictionary;\n const [editorView, setEditorView] = useState<EditorViewType>(\n EditorViewType.NodeEditor\n );\n const { dictionaryRecord, setDictionariesRecord } = useEditedContentStore(\n (s) => ({\n editedContent: s.editedContent,\n dictionaryRecord: s.dictionariesRecord,\n setDictionariesRecord: s.setDictionariesRecord,\n })\n );\n const { returnToDictionaryList, titleContent, titleInformation } =\n useDictionary(dictionaryFieldEditorContent);\n\n useEffect(() => {\n if (dictionaryRecord[key]) return;\n\n setDictionariesRecord({\n [key]: dictionary,\n });\n }, [dictionary, key, setDictionariesRecord, dictionaryRecord]);\n\n return (\n <div className=\"flex size-full flex-1 flex-col gap-10\">\n <div className=\"flex items-center gap-2\">\n <Button\n onClick={() => onClickDictionaryList?.()}\n variant=\"hoverable\"\n size=\"icon-md\"\n color=\"text\"\n id=\"return-to-dictionary-list\"\n Icon={ArrowLeft}\n label={returnToDictionaryList.label.value}\n />\n <label\n className=\"cursor-pointer text-xs hover:underline\"\n htmlFor=\"return-to-dictionary-list\"\n >\n {returnToDictionaryList.text}\n </label>\n </div>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleInformation}</H2>\n\n <DictionaryDetailsForm dictionary={dictionary} />\n </Container>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleContent}</H2>\n <SwitchSelector\n defaultValue={editorView}\n onChange={(value) => setEditorView(value)}\n color=\"text\"\n size=\"sm\"\n className=\"ml-auto\"\n choices={[\n {\n content: 'Node editor',\n value: EditorViewType.NodeEditor,\n },\n {\n content: 'JSON editor',\n value: EditorViewType.JSONEditor,\n },\n ]}\n />\n {editorView === EditorViewType.NodeEditor && (\n <NodeEditor dictionary={dictionary} />\n )}\n {editorView === EditorViewType.JSONEditor && (\n <JSONEditor dictionary={dictionary} />\n )}\n </Container>\n </div>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BO,MAAM,wBAAwD,CAAC;AAAA,EACpE;AAAA,EACA;AACF,MAAM;AACE,QAAA,EAAE,IAAQ,IAAA;AACV,QAAA,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC;AAAA;AAAA,EAAA;AAEI,QAAA,EAAE,kBAAkB,sBAAA,IAA0B;AAAA,IAClD,CAAC,OAAO;AAAA,MACN,eAAe,EAAE;AAAA,MACjB,kBAAkB,EAAE;AAAA,MACpB,uBAAuB,EAAE;AAAA,IAAA;AAAA,EAC3B;AAEF,QAAM,EAAE,wBAAwB,cAAc,iBAAiB,IAC7D,cAAc,4BAA4B;AAE5C,YAAU,MAAM;AACV,QAAA,iBAAiB,GAAG,EAAG;AAEL,0BAAA;AAAA,MACpB,CAAC,GAAG,GAAG;AAAA,IAAA,CACR;AAAA,KACA,CAAC,YAAY,KAAK,uBAAuB,gBAAgB,CAAC;AAG3D,SAAAA,kCAAA,KAAC,OAAI,EAAA,WAAU,yCACb,UAAA;AAAA,IAACA,kCAAAA,KAAA,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,MAAAC,kCAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,SAAS,MAAM,wBAAwB;AAAA,UACvC,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,OAAM;AAAA,UACN,IAAG;AAAA,UACH,MAAM;AAAA,UACN,OAAO,uBAAuB,MAAM;AAAA,QAAA;AAAA,MACtC;AAAA,MACAA,kCAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAQ;AAAA,UAEP,UAAuB,uBAAA;AAAA,QAAA;AAAA,MAC1B;AAAA,IAAA,GACF;AAAA,IAEAD,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,aAAY;AAAA,QAEZ,UAAA;AAAA,UAAAC,kCAAAA,IAAC,MAAI,UAAiB,iBAAA,CAAA;AAAA,UAEtBA,sCAAC,yBAAsB,YAAwB;AAAA,QAAA;AAAA,MAAA;AAAA,IACjD;AAAA,IAEAD,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,aAAY;AAAA,QAEZ,UAAA;AAAA,UAAAC,kCAAAA,IAAC,MAAI,UAAa,aAAA,CAAA;AAAA,UAClBA,kCAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,cAAc;AAAA,cACd,UAAU,CAAC,UAAU,cAAc,KAAK;AAAA,cACxC,OAAM;AAAA,cACN,MAAK;AAAA,cACL,WAAU;AAAA,cACV,SAAS;AAAA,gBACP;AAAA,kBACE,SAAS;AAAA,kBACT,OAAO;AAAA;AAAA,gBACT;AAAA,gBACA;AAAA,kBACE,SAAS;AAAA,kBACT,OAAO;AAAA;AAAA,gBACT;AAAA,cACF;AAAA,YAAA;AAAA,UACF;AAAA,UACC,eAAe,KACbA,kCAAAA,IAAA,YAAA,EAAW,WAAwB,CAAA;AAAA,UAErC,eAAe,KACbA,kCAAAA,IAAA,YAAA,EAAW,WAAwB,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAExC;AAAA,EACF,EAAA,CAAA;AAEJ;"}