@intlayer/design-system 3.0.3 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (648) hide show
  1. package/dist/.vite/manifest.json +269 -117
  2. package/dist/Form-2XHQV7F_.cjs +295 -0
  3. package/dist/Form-2XHQV7F_.cjs.map +1 -0
  4. package/dist/Form-BO0i3nT9.js +300 -0
  5. package/dist/Form-BO0i3nT9.js.map +1 -0
  6. package/dist/Form-BaHDK0RZ.cjs +298 -0
  7. package/dist/Form-BaHDK0RZ.cjs.map +1 -0
  8. package/dist/Form-BfZMqK2D.js +300 -0
  9. package/dist/Form-BfZMqK2D.js.map +1 -0
  10. package/dist/Form-C13KWSZs.cjs +299 -0
  11. package/dist/Form-C13KWSZs.cjs.map +1 -0
  12. package/dist/Form-C8K2f8ph.js +300 -0
  13. package/dist/Form-C8K2f8ph.js.map +1 -0
  14. package/dist/Form-CKvCgz8c.cjs +299 -0
  15. package/dist/Form-CKvCgz8c.cjs.map +1 -0
  16. package/dist/Form-Cbk5Lhpd.js +299 -0
  17. package/dist/Form-Cbk5Lhpd.js.map +1 -0
  18. package/dist/Form-CiAgFAPb.cjs +300 -0
  19. package/dist/Form-CiAgFAPb.cjs.map +1 -0
  20. package/dist/Form-CnBKDneQ.js +296 -0
  21. package/dist/Form-CnBKDneQ.js.map +1 -0
  22. package/dist/Form-DERuauvB.cjs +300 -0
  23. package/dist/Form-DERuauvB.cjs.map +1 -0
  24. package/dist/Form-DhlDf3ML.cjs +299 -0
  25. package/dist/Form-DhlDf3ML.cjs.map +1 -0
  26. package/dist/Form-DkAZ0Jdf.cjs +299 -0
  27. package/dist/Form-DkAZ0Jdf.cjs.map +1 -0
  28. package/dist/Form-DqnNP4DA.js +300 -0
  29. package/dist/Form-DqnNP4DA.js.map +1 -0
  30. package/dist/Form-DyFBmVya.js +301 -0
  31. package/dist/Form-DyFBmVya.js.map +1 -0
  32. package/dist/Form-FW4Odjfm.js +301 -0
  33. package/dist/Form-FW4Odjfm.js.map +1 -0
  34. package/dist/TabSelector-BmkzVPXl.js +660 -0
  35. package/dist/TabSelector-BmkzVPXl.js.map +1 -0
  36. package/dist/TabSelector-o_NRBvPQ.cjs +659 -0
  37. package/dist/TabSelector-o_NRBvPQ.cjs.map +1 -0
  38. package/dist/components/Accordion/Accordion.d.ts +0 -1
  39. package/dist/components/Auth/AuthModal/index.cjs +17 -62
  40. package/dist/components/Auth/AuthModal/index.cjs.map +1 -1
  41. package/dist/components/Auth/AuthModal/index.d.ts +0 -1
  42. package/dist/components/Auth/AuthModal/index.d.ts.map +1 -1
  43. package/dist/components/Auth/AuthModal/index.mjs +17 -62
  44. package/dist/components/Auth/AuthModal/index.mjs.map +1 -1
  45. package/dist/components/Auth/AuthProvider/index.cjs +5 -21
  46. package/dist/components/Auth/AuthProvider/index.cjs.map +1 -1
  47. package/dist/components/Auth/AuthProvider/index.d.ts +7 -6
  48. package/dist/components/Auth/AuthProvider/index.d.ts.map +1 -1
  49. package/dist/components/Auth/AuthProvider/index.mjs +6 -22
  50. package/dist/components/Auth/AuthProvider/index.mjs.map +1 -1
  51. package/dist/components/Auth/AuthProvider/useSession.cjs +14 -11
  52. package/dist/components/Auth/AuthProvider/useSession.cjs.map +1 -1
  53. package/dist/components/Auth/AuthProvider/useSession.d.ts +0 -1
  54. package/dist/components/Auth/AuthProvider/useSession.d.ts.map +1 -1
  55. package/dist/components/Auth/AuthProvider/useSession.mjs +14 -11
  56. package/dist/components/Auth/AuthProvider/useSession.mjs.map +1 -1
  57. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +2 -2
  58. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs.map +1 -1
  59. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts +0 -1
  60. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +1 -1
  61. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs.map +1 -1
  62. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs.map +1 -1
  63. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts +2 -3
  64. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts.map +1 -1
  65. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs.map +1 -1
  66. package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs.map +1 -1
  67. package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts +1 -2
  68. package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts.map +1 -1
  69. package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs.map +1 -1
  70. package/dist/components/Auth/AuthenticationBarrier/index.d.ts +3 -4
  71. package/dist/components/Auth/AuthenticationBarrier/index.d.ts.map +1 -1
  72. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +2 -1
  73. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
  74. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +1 -2
  75. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -1
  76. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +2 -1
  77. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
  78. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs.map +1 -1
  79. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.d.ts +0 -1
  80. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs.map +1 -1
  81. package/dist/components/Auth/ChangePasswordForm/index.content.cjs.map +1 -1
  82. package/dist/components/Auth/ChangePasswordForm/index.content.mjs.map +1 -1
  83. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +3 -2
  84. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
  85. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts +0 -1
  86. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +1 -1
  87. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +3 -2
  88. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
  89. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts +0 -1
  90. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts +0 -1
  91. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs.map +1 -1
  92. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs.map +1 -1
  93. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +2 -1
  94. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -1
  95. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +1 -2
  96. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +1 -1
  97. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +2 -1
  98. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -1
  99. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs.map +1 -1
  100. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts +0 -1
  101. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs.map +1 -1
  102. package/dist/components/Auth/ResetPasswordForm/index.content.cjs.map +1 -1
  103. package/dist/components/Auth/ResetPasswordForm/index.content.mjs.map +1 -1
  104. package/dist/components/Auth/SignInForm/SignInForm.cjs +5 -4
  105. package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -1
  106. package/dist/components/Auth/SignInForm/SignInForm.d.ts +1 -2
  107. package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +1 -1
  108. package/dist/components/Auth/SignInForm/SignInForm.mjs +5 -4
  109. package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -1
  110. package/dist/components/Auth/SignInForm/SignInSchema.cjs.map +1 -1
  111. package/dist/components/Auth/SignInForm/SignInSchema.d.ts +0 -1
  112. package/dist/components/Auth/SignInForm/SignInSchema.mjs.map +1 -1
  113. package/dist/components/Auth/SignInForm/index.content.cjs.map +1 -1
  114. package/dist/components/Auth/SignInForm/index.content.mjs.map +1 -1
  115. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +4 -4
  116. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
  117. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +1 -2
  118. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -1
  119. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +4 -4
  120. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
  121. package/dist/components/Auth/SignUpForm/SignUpSchema.cjs.map +1 -1
  122. package/dist/components/Auth/SignUpForm/SignUpSchema.d.ts +0 -1
  123. package/dist/components/Auth/SignUpForm/SignUpSchema.mjs.map +1 -1
  124. package/dist/components/Auth/SignUpForm/index.content.cjs.map +1 -1
  125. package/dist/components/Auth/SignUpForm/index.content.mjs.map +1 -1
  126. package/dist/components/Auth/index.cjs +2 -4
  127. package/dist/components/Auth/index.cjs.map +1 -1
  128. package/dist/components/Auth/index.d.ts +1 -1
  129. package/dist/components/Auth/index.d.ts.map +1 -1
  130. package/dist/components/Auth/index.mjs +1 -3
  131. package/dist/components/Auth/useAuth/index.cjs +39 -0
  132. package/dist/components/Auth/useAuth/index.cjs.map +1 -0
  133. package/dist/components/Auth/useAuth/index.d.ts +24 -0
  134. package/dist/components/Auth/useAuth/index.d.ts.map +1 -0
  135. package/dist/components/Auth/useAuth/index.mjs +39 -0
  136. package/dist/components/Auth/useAuth/index.mjs.map +1 -0
  137. package/dist/components/Auth/useAuth/useCSRF.cjs +22 -0
  138. package/dist/components/Auth/useAuth/useCSRF.cjs.map +1 -0
  139. package/dist/components/Auth/useAuth/useCSRF.d.ts +5 -0
  140. package/dist/components/Auth/useAuth/useCSRF.d.ts.map +1 -0
  141. package/dist/components/Auth/useAuth/useCSRF.mjs +22 -0
  142. package/dist/components/Auth/useAuth/useCSRF.mjs.map +1 -0
  143. package/dist/components/Auth/useAuth/useOAuth2.cjs +26 -0
  144. package/dist/components/Auth/useAuth/useOAuth2.cjs.map +1 -0
  145. package/dist/components/Auth/useAuth/useOAuth2.d.ts +4 -0
  146. package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +1 -0
  147. package/dist/components/Auth/useAuth/useOAuth2.mjs +26 -0
  148. package/dist/components/Auth/useAuth/useOAuth2.mjs.map +1 -0
  149. package/dist/components/Auth/useAuth/useSession.cjs +60 -0
  150. package/dist/components/Auth/useAuth/useSession.cjs.map +1 -0
  151. package/dist/components/Auth/useAuth/useSession.d.ts +8 -0
  152. package/dist/components/Auth/useAuth/useSession.d.ts.map +1 -0
  153. package/dist/components/Auth/useAuth/useSession.mjs +60 -0
  154. package/dist/components/Auth/useAuth/useSession.mjs.map +1 -0
  155. package/dist/components/Auth/useUser/index.cjs +3 -3
  156. package/dist/components/Auth/useUser/index.cjs.map +1 -1
  157. package/dist/components/Auth/useUser/index.d.ts.map +1 -1
  158. package/dist/components/Auth/useUser/index.mjs +3 -3
  159. package/dist/components/Auth/useUser/index.mjs.map +1 -1
  160. package/dist/components/Avatar/index.d.ts +0 -1
  161. package/dist/components/Badge/index.d.ts +0 -1
  162. package/dist/components/Breadcrumb/index.d.ts +0 -1
  163. package/dist/components/Button/Button.cjs +1 -0
  164. package/dist/components/Button/Button.cjs.map +1 -1
  165. package/dist/components/Button/Button.d.ts +1 -3
  166. package/dist/components/Button/Button.d.ts.map +1 -1
  167. package/dist/components/Button/Button.mjs +1 -0
  168. package/dist/components/Button/Button.mjs.map +1 -1
  169. package/dist/components/Command/index.d.ts +9 -10
  170. package/dist/components/Command/index.d.ts.map +1 -1
  171. package/dist/components/Container/index.cjs +1 -0
  172. package/dist/components/Container/index.cjs.map +1 -1
  173. package/dist/components/Container/index.d.ts +20 -7
  174. package/dist/components/Container/index.d.ts.map +1 -1
  175. package/dist/components/Container/index.mjs +1 -0
  176. package/dist/components/Container/index.mjs.map +1 -1
  177. package/dist/components/ContentEditor/ContentEditor.d.ts +0 -1
  178. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +0 -1
  179. package/dist/components/ContentSelector/ContentSelector.d.ts +0 -1
  180. package/dist/components/CopyToClipboard/index.d.ts +0 -1
  181. package/dist/components/DictionaryEditor/DictionaryEditor.cjs +30 -24
  182. package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -1
  183. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +0 -7
  184. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -1
  185. package/dist/components/DictionaryEditor/DictionaryEditor.mjs +30 -24
  186. package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
  187. package/dist/components/DictionaryEditor/ItemLayout.cjs +1 -0
  188. package/dist/components/DictionaryEditor/ItemLayout.cjs.map +1 -1
  189. package/dist/components/DictionaryEditor/ItemLayout.d.ts +0 -1
  190. package/dist/components/DictionaryEditor/ItemLayout.d.ts.map +1 -1
  191. package/dist/components/DictionaryEditor/ItemLayout.mjs +1 -0
  192. package/dist/components/DictionaryEditor/ItemLayout.mjs.map +1 -1
  193. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +0 -1
  194. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +0 -1
  195. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +0 -1
  196. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs +7 -5
  197. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.map +1 -1
  198. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts +0 -1
  199. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +7 -5
  200. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs.map +1 -1
  201. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +0 -1
  202. package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +0 -1
  203. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +98 -19
  204. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
  205. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +1 -5
  206. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
  207. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +99 -20
  208. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
  209. package/dist/components/DictionaryEditor/useEditedContentStore.cjs +18 -20
  210. package/dist/components/DictionaryEditor/useEditedContentStore.cjs.map +1 -1
  211. package/dist/components/DictionaryEditor/useEditedContentStore.d.ts +0 -1
  212. package/dist/components/DictionaryEditor/useEditedContentStore.d.ts.map +1 -1
  213. package/dist/components/DictionaryEditor/useEditedContentStore.mjs +19 -21
  214. package/dist/components/DictionaryEditor/useEditedContentStore.mjs.map +1 -1
  215. package/dist/components/DictionaryEditor/useEditionPanelStore.d.ts +0 -1
  216. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs +46 -0
  217. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs.map +1 -0
  218. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts +18 -0
  219. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts.map +1 -0
  220. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs +46 -0
  221. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs.map +1 -0
  222. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.cjs +8 -0
  223. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.cjs.map +1 -0
  224. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.d.ts +4 -0
  225. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.d.ts.map +1 -0
  226. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.mjs +8 -0
  227. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.mjs.map +1 -0
  228. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +10 -3
  229. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
  230. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts +0 -1
  231. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -1
  232. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +10 -3
  233. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
  234. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +8 -25
  235. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  236. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts +0 -1
  237. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
  238. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +7 -24
  239. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  240. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +0 -42
  241. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
  242. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +0 -18
  243. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
  244. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +0 -42
  245. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
  246. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs.map +1 -1
  247. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts +0 -1
  248. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts.map +1 -1
  249. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs.map +1 -1
  250. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +5 -37
  251. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  252. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts +0 -1
  253. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
  254. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +4 -36
  255. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  256. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs.map +1 -1
  257. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts +2 -3
  258. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts.map +1 -1
  259. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs.map +1 -1
  260. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +2 -49
  261. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
  262. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +0 -19
  263. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
  264. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +2 -49
  265. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
  266. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +38 -13
  267. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  268. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +0 -1
  269. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
  270. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +38 -13
  271. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  272. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +22 -6
  273. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
  274. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts +0 -1
  275. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -1
  276. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +22 -6
  277. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -1
  278. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +29 -14
  279. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -1
  280. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts +0 -1
  281. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +1 -1
  282. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +29 -14
  283. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -1
  284. package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs +1 -0
  285. package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs.map +1 -1
  286. package/dist/components/DictionaryFieldEditor/EnumKeyInput.d.ts +0 -1
  287. package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs +1 -0
  288. package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs.map +1 -1
  289. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts +0 -1
  290. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +18 -2
  291. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
  292. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts +0 -1
  293. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
  294. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +18 -2
  295. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
  296. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +18 -2
  297. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
  298. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts +0 -1
  299. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
  300. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +18 -2
  301. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
  302. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +14 -28
  303. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  304. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts +0 -1
  305. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  306. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +14 -28
  307. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  308. package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.d.ts +0 -1
  309. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +2 -23
  310. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
  311. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +0 -9
  312. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
  313. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +2 -23
  314. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
  315. package/dist/components/DictionaryFieldEditor/getIsEditableSection.d.ts +0 -1
  316. package/dist/components/DropDown/index.d.ts +0 -1
  317. package/dist/components/DropDown/types.d.ts +0 -1
  318. package/dist/components/EditableField/EditableFieldInput.cjs +12 -5
  319. package/dist/components/EditableField/EditableFieldInput.cjs.map +1 -1
  320. package/dist/components/EditableField/EditableFieldInput.d.ts +2 -4
  321. package/dist/components/EditableField/EditableFieldInput.d.ts.map +1 -1
  322. package/dist/components/EditableField/EditableFieldInput.mjs +13 -6
  323. package/dist/components/EditableField/EditableFieldInput.mjs.map +1 -1
  324. package/dist/components/EditableField/EditableFieldLayout.d.ts +0 -1
  325. package/dist/components/EditableField/EditableFieldTextArea.cjs +17 -4
  326. package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
  327. package/dist/components/EditableField/EditableFieldTextArea.d.ts +6 -3
  328. package/dist/components/EditableField/EditableFieldTextArea.d.ts.map +1 -1
  329. package/dist/components/EditableField/EditableFieldTextArea.mjs +18 -5
  330. package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
  331. package/dist/components/Flags/Flag.d.ts +0 -1
  332. package/dist/components/Footer/index.d.ts +0 -1
  333. package/dist/components/Form/Form.cjs +1 -1
  334. package/dist/components/Form/Form.d.ts +2 -1
  335. package/dist/components/Form/Form.d.ts.map +1 -1
  336. package/dist/components/Form/Form.mjs +1 -1
  337. package/dist/components/Form/FormBase.cjs +4 -1
  338. package/dist/components/Form/FormBase.cjs.map +1 -1
  339. package/dist/components/Form/FormBase.d.ts +1 -2
  340. package/dist/components/Form/FormBase.d.ts.map +1 -1
  341. package/dist/components/Form/FormBase.mjs +4 -1
  342. package/dist/components/Form/FormBase.mjs.map +1 -1
  343. package/dist/components/Form/FormDescription.d.ts +0 -1
  344. package/dist/components/Form/FormField.d.ts +0 -1
  345. package/dist/components/Form/FormItem.d.ts +0 -1
  346. package/dist/components/Form/FormMessage.d.ts +0 -1
  347. package/dist/components/Form/elements/CheckboxElement.cjs +10 -0
  348. package/dist/components/Form/elements/CheckboxElement.cjs.map +1 -0
  349. package/dist/components/Form/elements/CheckboxElement.d.ts +10 -0
  350. package/dist/components/Form/elements/CheckboxElement.d.ts.map +1 -0
  351. package/dist/components/Form/elements/CheckboxElement.mjs +10 -0
  352. package/dist/components/Form/elements/CheckboxElement.mjs.map +1 -0
  353. package/dist/components/Form/elements/EditableFieldInputElement.cjs +1 -1
  354. package/dist/components/Form/elements/EditableFieldInputElement.d.ts +0 -1
  355. package/dist/components/Form/elements/EditableFieldInputElement.mjs +1 -1
  356. package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs +1 -1
  357. package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts +0 -1
  358. package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs +1 -1
  359. package/dist/components/Form/elements/FormElement.cjs +1 -1
  360. package/dist/components/Form/elements/FormElement.d.ts +0 -1
  361. package/dist/components/Form/elements/FormElement.mjs +1 -1
  362. package/dist/components/Form/elements/FormElementWrapper.d.ts +0 -1
  363. package/dist/components/Form/elements/InputElement.cjs +2 -1
  364. package/dist/components/Form/elements/InputElement.cjs.map +1 -1
  365. package/dist/components/Form/elements/InputElement.d.ts +2 -3
  366. package/dist/components/Form/elements/InputElement.d.ts.map +1 -1
  367. package/dist/components/Form/elements/InputElement.mjs +2 -1
  368. package/dist/components/Form/elements/InputElement.mjs.map +1 -1
  369. package/dist/components/Form/elements/InputPasswordElement.cjs +2 -1
  370. package/dist/components/Form/elements/InputPasswordElement.cjs.map +1 -1
  371. package/dist/components/Form/elements/InputPasswordElement.d.ts +2 -3
  372. package/dist/components/Form/elements/InputPasswordElement.d.ts.map +1 -1
  373. package/dist/components/Form/elements/InputPasswordElement.mjs +2 -1
  374. package/dist/components/Form/elements/InputPasswordElement.mjs.map +1 -1
  375. package/dist/components/Form/elements/MultiselectElement.cjs +1 -1
  376. package/dist/components/Form/elements/MultiselectElement.d.ts +0 -1
  377. package/dist/components/Form/elements/MultiselectElement.mjs +1 -1
  378. package/dist/components/Form/elements/SelectElement.cjs +1 -1
  379. package/dist/components/Form/elements/SelectElement.d.ts +0 -1
  380. package/dist/components/Form/elements/SelectElement.mjs +1 -1
  381. package/dist/components/Form/elements/SwitchSelectorElement.cjs +1 -1
  382. package/dist/components/Form/elements/SwitchSelectorElement.d.ts +0 -1
  383. package/dist/components/Form/elements/SwitchSelectorElement.mjs +1 -1
  384. package/dist/components/Form/elements/TextAreaElement.cjs +1 -1
  385. package/dist/components/Form/elements/TextAreaElement.d.ts +0 -1
  386. package/dist/components/Form/elements/TextAreaElement.mjs +1 -1
  387. package/dist/components/Form/elements/index.cjs +1 -1
  388. package/dist/components/Form/elements/index.mjs +1 -1
  389. package/dist/components/Form/index.cjs +1 -1
  390. package/dist/components/Form/index.mjs +1 -1
  391. package/dist/components/Form/layout/FormItemLayout.cjs +1 -1
  392. package/dist/components/Form/layout/FormItemLayout.d.ts +1 -2
  393. package/dist/components/Form/layout/FormItemLayout.d.ts.map +1 -1
  394. package/dist/components/Form/layout/FormItemLayout.mjs +1 -1
  395. package/dist/components/Form/layout/FormLabelLayout.d.ts +0 -1
  396. package/dist/components/Form/layout/RequiredStar.d.ts +0 -1
  397. package/dist/components/Form/layout/index.cjs +1 -1
  398. package/dist/components/Form/layout/index.mjs +1 -1
  399. package/dist/components/Headers/index.d.ts +0 -1
  400. package/dist/components/IDE/CodeRender.cjs.map +1 -1
  401. package/dist/components/IDE/CodeRender.d.ts +0 -1
  402. package/dist/components/IDE/CodeRender.mjs.map +1 -1
  403. package/dist/components/IDE/FileList.d.ts +0 -1
  404. package/dist/components/IDE/FileTree.d.ts +0 -1
  405. package/dist/components/IDE/IDE.d.ts +0 -1
  406. package/dist/components/IDE/MarkDownRender.d.ts +0 -1
  407. package/dist/components/InformationTag/index.d.ts +0 -1
  408. package/dist/components/Input/Checkbox.cjs +80 -0
  409. package/dist/components/Input/Checkbox.cjs.map +1 -0
  410. package/dist/components/Input/Checkbox.d.ts +14 -0
  411. package/dist/components/Input/Checkbox.d.ts.map +1 -0
  412. package/dist/components/Input/Checkbox.mjs +80 -0
  413. package/dist/components/Input/Checkbox.mjs.map +1 -0
  414. package/dist/components/Input/Input.cjs +8 -2
  415. package/dist/components/Input/Input.cjs.map +1 -1
  416. package/dist/components/Input/Input.d.ts +1 -1
  417. package/dist/components/Input/Input.d.ts.map +1 -1
  418. package/dist/components/Input/Input.mjs +8 -2
  419. package/dist/components/Input/Input.mjs.map +1 -1
  420. package/dist/components/Input/InputPassword.d.ts +0 -1
  421. package/dist/components/Input/index.cjs +3 -0
  422. package/dist/components/Input/index.cjs.map +1 -1
  423. package/dist/components/Input/index.d.ts +1 -0
  424. package/dist/components/Input/index.d.ts.map +1 -1
  425. package/dist/components/Input/index.mjs +3 -0
  426. package/dist/components/Input/index.mjs.map +1 -1
  427. package/dist/components/Label/index.d.ts +0 -1
  428. package/dist/components/Link/Link.cjs +7 -2
  429. package/dist/components/Link/Link.cjs.map +1 -1
  430. package/dist/components/Link/Link.d.ts +2 -2
  431. package/dist/components/Link/Link.d.ts.map +1 -1
  432. package/dist/components/Link/Link.mjs +7 -2
  433. package/dist/components/Link/Link.mjs.map +1 -1
  434. package/dist/components/Loader/index.d.ts +0 -1
  435. package/dist/components/Loader/spinner.d.ts +0 -1
  436. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +0 -1
  437. package/dist/components/Logo/LogoCircle.d.ts +0 -1
  438. package/dist/components/Logo/LogoNoFrame.d.ts +0 -1
  439. package/dist/components/Logo/LogoSquare.d.ts +0 -1
  440. package/dist/components/Logo/LogoSquircle.d.ts +0 -1
  441. package/dist/components/Logo/LogoTextOnly.d.ts +0 -1
  442. package/dist/components/Logo/LogoWithTextBelowCircle.d.ts +0 -1
  443. package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts +0 -1
  444. package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts +0 -1
  445. package/dist/components/Logo/LogoWithTextCircle.d.ts +0 -1
  446. package/dist/components/Logo/LogoWithTextNoFrame.d.ts +0 -1
  447. package/dist/components/Logo/LogoWithTextSquircle.d.ts +0 -1
  448. package/dist/components/Logo/index.d.ts +0 -1
  449. package/dist/components/MarkDownRender/index.d.ts +0 -1
  450. package/dist/components/MaxHeightSmoother/index.d.ts +0 -1
  451. package/dist/components/MaxWidthSmoother/index.d.ts +0 -1
  452. package/dist/components/Modal/Modal.cjs +22 -16
  453. package/dist/components/Modal/Modal.cjs.map +1 -1
  454. package/dist/components/Modal/Modal.d.ts +3 -3
  455. package/dist/components/Modal/Modal.d.ts.map +1 -1
  456. package/dist/components/Modal/Modal.mjs +22 -16
  457. package/dist/components/Modal/Modal.mjs.map +1 -1
  458. package/dist/components/Navbar/Burger.d.ts +0 -1
  459. package/dist/components/Navbar/DesktopNavbar.cjs +10 -26
  460. package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -1
  461. package/dist/components/Navbar/DesktopNavbar.d.ts +6 -6
  462. package/dist/components/Navbar/DesktopNavbar.d.ts.map +1 -1
  463. package/dist/components/Navbar/DesktopNavbar.mjs +10 -26
  464. package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -1
  465. package/dist/components/Navbar/MobileNavbar.cjs +6 -58
  466. package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
  467. package/dist/components/Navbar/MobileNavbar.d.ts +6 -7
  468. package/dist/components/Navbar/MobileNavbar.d.ts.map +1 -1
  469. package/dist/components/Navbar/MobileNavbar.mjs +6 -58
  470. package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
  471. package/dist/components/Navbar/index.cjs +7 -3
  472. package/dist/components/Navbar/index.cjs.map +1 -1
  473. package/dist/components/Navbar/index.d.ts +9 -15
  474. package/dist/components/Navbar/index.d.ts.map +1 -1
  475. package/dist/components/Navbar/index.mjs +7 -3
  476. package/dist/components/Navbar/index.mjs.map +1 -1
  477. package/dist/components/Pattern/DotPattern.d.ts +0 -1
  478. package/dist/components/Pattern/GridPattern.d.ts +0 -1
  479. package/dist/components/Pattern/SpotLight.d.ts +0 -1
  480. package/dist/components/Popover/index.d.ts +0 -1
  481. package/dist/components/PressableSpan/PressableSpan.d.ts +0 -1
  482. package/dist/components/ProfileDropDown/index.d.ts +0 -1
  483. package/dist/components/RightDrawer/RightDrawer.d.ts +0 -1
  484. package/dist/components/Select/Multiselect.d.ts +2 -3
  485. package/dist/components/Select/Multiselect.d.ts.map +1 -1
  486. package/dist/components/SwitchSelector/index.cjs +3 -1
  487. package/dist/components/SwitchSelector/index.cjs.map +1 -1
  488. package/dist/components/SwitchSelector/index.d.ts +0 -1
  489. package/dist/components/SwitchSelector/index.mjs +3 -1
  490. package/dist/components/SwitchSelector/index.mjs.map +1 -1
  491. package/dist/components/TabSelector/TabSelector.cjs +15 -10
  492. package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
  493. package/dist/components/TabSelector/TabSelector.d.ts +1 -2
  494. package/dist/components/TabSelector/TabSelector.d.ts.map +1 -1
  495. package/dist/components/TabSelector/TabSelector.mjs +15 -10
  496. package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
  497. package/dist/components/Tag/index.cjs +79 -0
  498. package/dist/components/Tag/index.cjs.map +1 -0
  499. package/dist/components/Tag/index.d.ts +12 -0
  500. package/dist/components/Tag/index.d.ts.map +1 -0
  501. package/dist/components/Tag/index.mjs +79 -0
  502. package/dist/components/Tag/index.mjs.map +1 -0
  503. package/dist/components/TextArea/AutoSizeTextArea.d.ts +0 -1
  504. package/dist/components/TextArea/TextArea.cjs +1 -0
  505. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  506. package/dist/components/TextArea/TextArea.d.ts +0 -1
  507. package/dist/components/TextArea/TextArea.mjs +1 -0
  508. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  509. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts +0 -1
  510. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts +0 -1
  511. package/dist/components/Toaster/useToast.d.ts +0 -1
  512. package/dist/components/WithResizer/index.d.ts +0 -1
  513. package/dist/components/index.cjs +8 -7
  514. package/dist/components/index.cjs.map +1 -1
  515. package/dist/components/index.d.ts +1 -1
  516. package/dist/components/index.d.ts.map +1 -1
  517. package/dist/components/index.mjs +7 -6
  518. package/dist/components/index.mjs.map +1 -1
  519. package/dist/hooks/index.cjs +4 -1
  520. package/dist/hooks/index.cjs.map +1 -1
  521. package/dist/hooks/index.d.ts +1 -0
  522. package/dist/hooks/index.d.ts.map +1 -1
  523. package/dist/hooks/index.mjs +5 -2
  524. package/dist/hooks/index.mjs.map +1 -1
  525. package/dist/hooks/intlayerAPIHooks.cjs +258 -114
  526. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  527. package/dist/hooks/intlayerAPIHooks.d.ts +43 -39
  528. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  529. package/dist/hooks/intlayerAPIHooks.mjs +259 -115
  530. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  531. package/dist/hooks/useAsync/useAsync.cjs +142 -108
  532. package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
  533. package/dist/hooks/useAsync/useAsync.d.ts +0 -2
  534. package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
  535. package/dist/hooks/useAsync/useAsync.mjs +143 -109
  536. package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
  537. package/dist/hooks/useAsync/useAsyncStateStore.cjs +50 -112
  538. package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -1
  539. package/dist/hooks/useAsync/useAsyncStateStore.d.ts +3 -9
  540. package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -1
  541. package/dist/hooks/useAsync/useAsyncStateStore.mjs +50 -112
  542. package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -1
  543. package/dist/hooks/useAsync/useAsyncWrapper.d.ts +0 -1
  544. package/dist/hooks/useAsync/useProxyState.d.ts +3 -0
  545. package/dist/hooks/useAsync/useProxyState.d.ts.map +1 -0
  546. package/dist/hooks/useGetAllDictionaries.d.ts +0 -1
  547. package/dist/hooks/useIntlayerAPI.cjs +6 -5
  548. package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
  549. package/dist/hooks/useIntlayerAPI.d.ts +51 -45
  550. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  551. package/dist/hooks/useIntlayerAPI.mjs +5 -4
  552. package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
  553. package/dist/hooks/useItemSelector.cjs +11 -2
  554. package/dist/hooks/useItemSelector.cjs.map +1 -1
  555. package/dist/hooks/useItemSelector.d.ts +3 -3
  556. package/dist/hooks/useItemSelector.d.ts.map +1 -1
  557. package/dist/hooks/useItemSelector.mjs +11 -2
  558. package/dist/hooks/useItemSelector.mjs.map +1 -1
  559. package/dist/hooks/usePersistedStore.cjs +22 -0
  560. package/dist/hooks/usePersistedStore.cjs.map +1 -0
  561. package/dist/hooks/usePersistedStore.d.ts +2 -0
  562. package/dist/hooks/usePersistedStore.d.ts.map +1 -0
  563. package/dist/hooks/usePersistedStore.mjs +22 -0
  564. package/dist/hooks/usePersistedStore.mjs.map +1 -0
  565. package/dist/hooks/usePersistenceStore.cjs +22 -0
  566. package/dist/hooks/usePersistenceStore.cjs.map +1 -0
  567. package/dist/hooks/usePersistenceStore.d.ts +2 -0
  568. package/dist/hooks/usePersistenceStore.d.ts.map +1 -0
  569. package/dist/hooks/usePersistenceStore.mjs +22 -0
  570. package/dist/hooks/usePersistenceStore.mjs.map +1 -0
  571. package/dist/index-BUDsCMdX.cjs +204 -0
  572. package/dist/index-BUDsCMdX.cjs.map +1 -0
  573. package/dist/index-C09rI9kw.js +205 -0
  574. package/dist/index-C09rI9kw.js.map +1 -0
  575. package/dist/libs/intlayer-api/auth.cjs +14 -2
  576. package/dist/libs/intlayer-api/auth.cjs.map +1 -1
  577. package/dist/libs/intlayer-api/auth.d.ts +7 -4
  578. package/dist/libs/intlayer-api/auth.d.ts.map +1 -1
  579. package/dist/libs/intlayer-api/auth.mjs +14 -2
  580. package/dist/libs/intlayer-api/auth.mjs.map +1 -1
  581. package/dist/libs/intlayer-api/dictionary.d.ts +0 -1
  582. package/dist/libs/intlayer-api/fetcher.cjs +4 -3
  583. package/dist/libs/intlayer-api/fetcher.cjs.map +1 -1
  584. package/dist/libs/intlayer-api/fetcher.d.ts.map +1 -1
  585. package/dist/libs/intlayer-api/fetcher.mjs +4 -3
  586. package/dist/libs/intlayer-api/fetcher.mjs.map +1 -1
  587. package/dist/libs/intlayer-api/index.cjs +3 -1
  588. package/dist/libs/intlayer-api/index.cjs.map +1 -1
  589. package/dist/libs/intlayer-api/index.d.ts +12 -3
  590. package/dist/libs/intlayer-api/index.d.ts.map +1 -1
  591. package/dist/libs/intlayer-api/index.mjs +3 -1
  592. package/dist/libs/intlayer-api/index.mjs.map +1 -1
  593. package/dist/libs/intlayer-api/organization.d.ts +0 -1
  594. package/dist/libs/intlayer-api/project.d.ts +0 -1
  595. package/dist/libs/intlayer-api/stripe.cjs +22 -0
  596. package/dist/libs/intlayer-api/stripe.cjs.map +1 -0
  597. package/dist/libs/intlayer-api/stripe.d.ts +6 -0
  598. package/dist/libs/intlayer-api/stripe.d.ts.map +1 -0
  599. package/dist/libs/intlayer-api/stripe.mjs +22 -0
  600. package/dist/libs/intlayer-api/stripe.mjs.map +1 -0
  601. package/dist/libs/intlayer-api/user.d.ts +0 -1
  602. package/dist/stripe-BsI0lJWz.js +22 -0
  603. package/dist/stripe-BsI0lJWz.js.map +1 -0
  604. package/dist/stripe-C-u5RvGh.js +22 -0
  605. package/dist/stripe-C-u5RvGh.js.map +1 -0
  606. package/dist/stripe-CF_E65Vu.js +22 -0
  607. package/dist/stripe-CF_E65Vu.js.map +1 -0
  608. package/dist/stripe-CpGvfq6T.cjs +21 -0
  609. package/dist/stripe-CpGvfq6T.cjs.map +1 -0
  610. package/dist/stripe-DEv4DjAL.cjs +21 -0
  611. package/dist/stripe-DEv4DjAL.cjs.map +1 -0
  612. package/dist/stripe-DuG0uaEn.cjs +21 -0
  613. package/dist/stripe-DuG0uaEn.cjs.map +1 -0
  614. package/dist/tailwind.css +1 -1
  615. package/dist/useProxyState-D5GLrY2y.js +20 -0
  616. package/dist/useProxyState-D5GLrY2y.js.map +1 -0
  617. package/dist/useProxyState-DewdF3no.cjs +19 -0
  618. package/dist/useProxyState-DewdF3no.cjs.map +1 -0
  619. package/dist/utils/cn.d.ts +0 -1
  620. package/dist/utils/dictionary.cjs +37 -1
  621. package/dist/utils/dictionary.cjs.map +1 -1
  622. package/dist/utils/dictionary.d.ts +1 -1
  623. package/dist/utils/dictionary.d.ts.map +1 -1
  624. package/dist/utils/dictionary.mjs +38 -2
  625. package/dist/utils/dictionary.mjs.map +1 -1
  626. package/dist/validDictionaryChangeButtons.content-BK9QaXPm.cjs +66 -0
  627. package/dist/validDictionaryChangeButtons.content-BK9QaXPm.cjs.map +1 -0
  628. package/dist/validDictionaryChangeButtons.content-CAAscqJI.cjs +66 -0
  629. package/dist/validDictionaryChangeButtons.content-CAAscqJI.cjs.map +1 -0
  630. package/dist/validDictionaryChangeButtons.content-D7AvoBdl.js +67 -0
  631. package/dist/validDictionaryChangeButtons.content-D7AvoBdl.js.map +1 -0
  632. package/dist/validDictionaryChangeButtons.content-DQwoUNCC.cjs +45 -0
  633. package/dist/validDictionaryChangeButtons.content-DQwoUNCC.cjs.map +1 -0
  634. package/dist/validDictionaryChangeButtons.content-DQxPoIe6.js +67 -0
  635. package/dist/validDictionaryChangeButtons.content-DQxPoIe6.js.map +1 -0
  636. package/dist/validDictionaryChangeButtons.content-JUcjGdBx.cjs +66 -0
  637. package/dist/validDictionaryChangeButtons.content-JUcjGdBx.cjs.map +1 -0
  638. package/dist/validDictionaryChangeButtons.content-ejY3-sbG.js +67 -0
  639. package/dist/validDictionaryChangeButtons.content-ejY3-sbG.js.map +1 -0
  640. package/dist/validDictionaryChangeButtons.content-iyT0lKy7.js +46 -0
  641. package/dist/validDictionaryChangeButtons.content-iyT0lKy7.js.map +1 -0
  642. package/dist/validDictionaryChangeButtons.content-u4qShrQh.cjs +66 -0
  643. package/dist/validDictionaryChangeButtons.content-u4qShrQh.cjs.map +1 -0
  644. package/dist/validDictionaryChangeButtons.content-y4up9NU8.js +67 -0
  645. package/dist/validDictionaryChangeButtons.content-y4up9NU8.js.map +1 -0
  646. package/dist/zod-BV4nCGJE.js.map +1 -1
  647. package/dist/zod-DSrtTSD_.cjs.map +1 -1
  648. package/package.json +87 -56
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const getDictionaryDetailsSchema: (projectId: string) => z.ZodObject<{
4
3
  title: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5
4
  key: z.ZodDefault<z.ZodString>;
@@ -8,13 +7,13 @@ export declare const getDictionaryDetailsSchema: (projectId: string) => z.ZodObj
8
7
  }, "strip", z.ZodTypeAny, {
9
8
  projectIds: string[];
10
9
  key: string;
11
- title?: string | undefined;
12
10
  description?: string | undefined;
11
+ title?: string | undefined;
13
12
  }, {
13
+ description?: string | undefined;
14
14
  projectIds?: string[] | undefined;
15
15
  key?: string | undefined;
16
16
  title?: string | undefined;
17
- description?: string | undefined;
18
17
  }>;
19
18
  export type DictionaryDetailsFormData = z.infer<ReturnType<typeof getDictionaryDetailsSchema>>;
20
19
  //# sourceMappingURL=DictionaryDetailsSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DictionaryDetailsSchema.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B,cAAe,MAAM;;;;;;;;;;;;;;;EAiH3D,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAC9C,CAAC"}
1
+ {"version":3,"file":"DictionaryDetailsSchema.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B,cAAe,MAAM;;;;;;;;;;;;;;;EAiH3D,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAC9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DictionaryDetailsSchema.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.ts"],"sourcesContent":["import { t } from 'react-intlayer';\nimport { z } from 'zod';\n\nexport const getDictionaryDetailsSchema = (projectId: string) => {\n // Title Field Error Messages\n const titleRequiredError = t({\n en: 'Please enter a name for your organization.',\n fr: 'Veuillez saisir un nom pour votre organisation.',\n es: 'Por favor, ingrese un nombre para su organización.',\n });\n\n const titleInvalidTypeError = t({\n en: 'The organization name must be a valid string.',\n fr: 'Le nom de votre organisation doit être une chaîne valide.',\n es: 'El nombre de su organización debe ser una cadena válida.',\n });\n\n const titleMinLengthError = t({\n en: 'The organization name must be at least 4 characters long.',\n fr: 'Le nom de votre organisation doit comporter au moins 4 caractères.',\n es: 'El nombre de su organización debe tener al menos 4 caracteres.',\n });\n\n // Key Field Error Messages\n const keyRequiredError = t({\n en: 'Please enter a key for your organization.',\n fr: 'Veuillez saisir une clé pour votre organisation.',\n es: 'Por favor, ingrese una clave para su organización.',\n });\n\n const keyInvalidTypeError = t({\n en: 'The key must be a valid string.',\n fr: 'La clé doit être une chaîne valide.',\n es: 'La clave debe ser una cadena válida.',\n });\n\n const keySpaceError = t({\n en: 'The key cannot contain spaces or special characters.',\n fr: \"La clé ne peut pas contenir d'espaces ou de caractères spéciaux.\",\n es: 'La clave no puede contener espacios o caracteres especiales.',\n });\n\n const keyMinLengthError = t({\n en: 'The key must be at least 4 characters long.',\n fr: 'La clé doit comporter au moins 4 caractères.',\n es: 'La clave debe tener al menos 4 caracteres.',\n });\n\n // Description Field Error Messages\n const descriptionRequiredError = t({\n en: 'Please enter a description for your organization.',\n fr: 'Veuillez saisir une description pour votre organisation.',\n es: 'Por favor, ingrese una descripción para su organización.',\n });\n\n const descriptionInvalidTypeError = t({\n en: 'The description must be a valid string.',\n fr: 'La description doit être une chaîne valide.',\n es: 'La descripción debe ser una cadena válida.',\n });\n\n const requiredErrorProjectId = t({\n en: 'Please select a project',\n fr: 'Veuillez sélectionner un projet',\n es: 'Por favor, seleccione un proyecto',\n });\n\n const invalidTypeErrorProjectId = t({\n en: 'Please select a valid project',\n fr: 'Veuillez sélectionner un projet valide',\n es: 'Por favor, seleccione un proyecto válido',\n });\n\n return z.object({\n title: z\n .string({\n required_error: titleRequiredError,\n invalid_type_error: titleInvalidTypeError,\n })\n // Can be length of 0 or > 4\n .refine((val) => val.length === 0 || val.length >= 4, {\n message: titleMinLengthError,\n })\n .optional(),\n key: z\n .string({\n required_error: keyRequiredError,\n invalid_type_error: keyInvalidTypeError,\n })\n .min(4, { message: keyMinLengthError })\n /**\n * Valid :\n * my-key\n * my_key\n *\n * Invalid :\n * my key\n * my.key\n */\n .regex(/^[a-zA-Z0-9-_]+$/, { message: keySpaceError })\n .default(''),\n description: z\n .string({\n required_error: descriptionRequiredError,\n invalid_type_error: descriptionInvalidTypeError,\n })\n .optional(),\n projectIds: z\n .array(\n z.string({\n required_error: requiredErrorProjectId,\n invalid_type_error: invalidTypeErrorProjectId,\n })\n )\n .default([projectId]),\n });\n};\n\nexport type DictionaryDetailsFormData = z.infer<\n ReturnType<typeof getDictionaryDetailsSchema>\n>;\n"],"names":[],"mappings":";;AAGa,MAAA,6BAA6B,CAAC,cAAsB;AAE/D,QAAM,qBAAqB,EAAE;AAAA,IAC3B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,wBAAwB,EAAE;AAAA,IAC9B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,sBAAsB,EAAE;AAAA,IAC5B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAGD,QAAM,mBAAmB,EAAE;AAAA,IACzB,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,sBAAsB,EAAE;AAAA,IAC5B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,gBAAgB,EAAE;AAAA,IACtB,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,oBAAoB,EAAE;AAAA,IAC1B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAGD,QAAM,2BAA2B,EAAE;AAAA,IACjC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,8BAA8B,EAAE;AAAA,IACpC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,yBAAyB,EAAE;AAAA,IAC/B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,4BAA4B,EAAE;AAAA,IAClC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,SAAO,EAAE,OAAO;AAAA,IACd,OAAO,EACJ,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IAAA,CACrB,EAEA,OAAO,CAAC,QAAQ,IAAI,WAAW,KAAK,IAAI,UAAU,GAAG;AAAA,MACpD,SAAS;AAAA,IACV,CAAA,EACA,SAAS;AAAA,IACZ,KAAK,EACF,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,kBAAkB,CAAC,EAUrC,MAAM,oBAAoB,EAAE,SAAS,cAAe,CAAA,EACpD,QAAQ,EAAE;AAAA,IACb,aAAa,EACV,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,SAAS;AAAA,IACZ,YAAY,EACT;AAAA,MACC,EAAE,OAAO;AAAA,QACP,gBAAgB;AAAA,QAChB,oBAAoB;AAAA,MAAA,CACrB;AAAA,IAAA,EAEF,QAAQ,CAAC,SAAS,CAAC;AAAA,EAAA,CACvB;AACH;"}
1
+ {"version":3,"file":"DictionaryDetailsSchema.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.ts"],"sourcesContent":["// @ts-ignore react-intlayer not build yet\nimport { t } from 'react-intlayer';\nimport { z } from 'zod';\n\nexport const getDictionaryDetailsSchema = (projectId: string) => {\n // Title Field Error Messages\n const titleRequiredError = t({\n en: 'Please enter a name for your organization.',\n fr: 'Veuillez saisir un nom pour votre organisation.',\n es: 'Por favor, ingrese un nombre para su organización.',\n });\n\n const titleInvalidTypeError = t({\n en: 'The organization name must be a valid string.',\n fr: 'Le nom de votre organisation doit être une chaîne valide.',\n es: 'El nombre de su organización debe ser una cadena válida.',\n });\n\n const titleMinLengthError = t({\n en: 'The organization name must be at least 4 characters long.',\n fr: 'Le nom de votre organisation doit comporter au moins 4 caractères.',\n es: 'El nombre de su organización debe tener al menos 4 caracteres.',\n });\n\n // Key Field Error Messages\n const keyRequiredError = t({\n en: 'Please enter a key for your organization.',\n fr: 'Veuillez saisir une clé pour votre organisation.',\n es: 'Por favor, ingrese una clave para su organización.',\n });\n\n const keyInvalidTypeError = t({\n en: 'The key must be a valid string.',\n fr: 'La clé doit être une chaîne valide.',\n es: 'La clave debe ser una cadena válida.',\n });\n\n const keySpaceError = t({\n en: 'The key cannot contain spaces or special characters.',\n fr: \"La clé ne peut pas contenir d'espaces ou de caractères spéciaux.\",\n es: 'La clave no puede contener espacios o caracteres especiales.',\n });\n\n const keyMinLengthError = t({\n en: 'The key must be at least 4 characters long.',\n fr: 'La clé doit comporter au moins 4 caractères.',\n es: 'La clave debe tener al menos 4 caracteres.',\n });\n\n // Description Field Error Messages\n const descriptionRequiredError = t({\n en: 'Please enter a description for your organization.',\n fr: 'Veuillez saisir une description pour votre organisation.',\n es: 'Por favor, ingrese una descripción para su organización.',\n });\n\n const descriptionInvalidTypeError = t({\n en: 'The description must be a valid string.',\n fr: 'La description doit être une chaîne valide.',\n es: 'La descripción debe ser una cadena válida.',\n });\n\n const requiredErrorProjectId = t({\n en: 'Please select a project',\n fr: 'Veuillez sélectionner un projet',\n es: 'Por favor, seleccione un proyecto',\n });\n\n const invalidTypeErrorProjectId = t({\n en: 'Please select a valid project',\n fr: 'Veuillez sélectionner un projet valide',\n es: 'Por favor, seleccione un proyecto válido',\n });\n\n return z.object({\n title: z\n .string({\n required_error: titleRequiredError,\n invalid_type_error: titleInvalidTypeError,\n })\n // Can be length of 0 or > 4\n .refine((val) => val.length === 0 || val.length >= 4, {\n message: titleMinLengthError,\n })\n .optional(),\n key: z\n .string({\n required_error: keyRequiredError,\n invalid_type_error: keyInvalidTypeError,\n })\n .min(4, { message: keyMinLengthError })\n /**\n * Valid :\n * my-key\n * my_key\n *\n * Invalid :\n * my key\n * my.key\n */\n .regex(/^[a-zA-Z0-9-_]+$/, { message: keySpaceError })\n .default(''),\n description: z\n .string({\n required_error: descriptionRequiredError,\n invalid_type_error: descriptionInvalidTypeError,\n })\n .optional(),\n projectIds: z\n .array(\n z.string({\n required_error: requiredErrorProjectId,\n invalid_type_error: invalidTypeErrorProjectId,\n })\n )\n .default([projectId]),\n });\n};\n\nexport type DictionaryDetailsFormData = z.infer<\n ReturnType<typeof getDictionaryDetailsSchema>\n>;\n"],"names":[],"mappings":";;AAIa,MAAA,6BAA6B,CAAC,cAAsB;AAE/D,QAAM,qBAAqB,EAAE;AAAA,IAC3B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,wBAAwB,EAAE;AAAA,IAC9B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,sBAAsB,EAAE;AAAA,IAC5B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAGD,QAAM,mBAAmB,EAAE;AAAA,IACzB,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,sBAAsB,EAAE;AAAA,IAC5B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,gBAAgB,EAAE;AAAA,IACtB,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,oBAAoB,EAAE;AAAA,IAC1B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAGD,QAAM,2BAA2B,EAAE;AAAA,IACjC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,8BAA8B,EAAE;AAAA,IACpC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,yBAAyB,EAAE;AAAA,IAC/B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,4BAA4B,EAAE;AAAA,IAClC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,SAAO,EAAE,OAAO;AAAA,IACd,OAAO,EACJ,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IAAA,CACrB,EAEA,OAAO,CAAC,QAAQ,IAAI,WAAW,KAAK,IAAI,UAAU,GAAG;AAAA,MACpD,SAAS;AAAA,IACV,CAAA,EACA,SAAS;AAAA,IACZ,KAAK,EACF,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,kBAAkB,CAAC,EAUrC,MAAM,oBAAoB,EAAE,SAAS,cAAe,CAAA,EACpD,QAAQ,EAAE;AAAA,IACb,aAAa,EACV,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,SAAS;AAAA,IACZ,YAAY,EACT;AAAA,MACC,EAAE,OAAO;AAAA,QACP,gBAAgB;AAAA,QAChB,oBAAoB;AAAA,MAAA,CACrB;AAAA,IAAA,EAEF,QAAQ,CAAC,SAAS,CAAC;AAAA,EAAA,CACvB;AACH;"}
@@ -87,61 +87,14 @@ const dictionaryDetailsContent = {
87
87
  publishButton: {
88
88
  text: intlayer.t({
89
89
  en: "Publish dictionary",
90
- fr: "Publier les dictionnaires",
90
+ fr: "Publier le dictionnaire",
91
91
  es: "Publicar diccionario"
92
92
  }),
93
93
  label: intlayer.t({
94
94
  en: "Click to publish dictionary",
95
- fr: "Cliquez pour publier les dictionnaires",
95
+ fr: "Cliquez pour publier le dictionnaire",
96
96
  es: "Haga clic para publicar el diccionario"
97
97
  })
98
- },
99
- updateDictionaryToasts: {
100
- updated: {
101
- title: intlayer.t({
102
- en: "Dictionary updated",
103
- fr: "Dictionnaire mis à jour",
104
- es: "Diccionario actualizado"
105
- }),
106
- description: intlayer.t({
107
- en: "Your dictionary has been updated successfully",
108
- fr: "Votre dictionnaire a été mis à jour avec succès",
109
- es: "Su diccionario se ha actualizado con éxito"
110
- })
111
- },
112
- failed: {
113
- title: intlayer.t({
114
- en: "Organization update failed",
115
- fr: "La mise à jour de l'organisation a échoué",
116
- es: "La actualización de la organización ha fallado"
117
- })
118
- }
119
- },
120
- pushDictionariesToasts: {
121
- updated: {
122
- title: intlayer.t({
123
- en: "Dictionary updated",
124
- fr: "Dictionnaire mis à jour",
125
- es: "Diccionario actualizado"
126
- }),
127
- description: intlayer.t({
128
- en: "Your dictionary has been updated successfully",
129
- fr: "Votre dictionnaire a été mis à jour avec succès",
130
- es: "Su diccionario se ha actualizado con éxito"
131
- })
132
- },
133
- failed: {
134
- title: intlayer.t({
135
- en: "Dictionary update failed",
136
- fr: "La mise à jour de l'dictionnaire a échoué",
137
- es: "La actualización del diccionario ha fallado"
138
- }),
139
- description: intlayer.t({
140
- en: "An error occurred while updating your dictionary",
141
- fr: "Une erreur s'est produite lors de la mise à jour de votre dictionnaire",
142
- es: "Se produjo un error al actualizar su diccionario"
143
- })
144
- }
145
98
  }
146
99
  }
147
100
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dictionaryDetails.content.cjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const dictionaryDetailsContent = {\n key: 'dictionary-details',\n content: {\n titleInput: {\n label: t({\n en: 'Title',\n fr: 'Titre',\n es: 'Título',\n }),\n description: t({\n en: 'The title of your dictionary allows you to easily identify it',\n fr: \"Le titre de votre dictionnaire permet de l'identifier facilement\",\n es: 'El título de su diccionario le permite identificar fácilmente',\n }),\n placeholder: t({\n en: 'Enter the title of your dictionary',\n fr: 'Entrez le titre de votre dictionnaire',\n es: 'Ingrese el título de su diccionario',\n }),\n },\n keyInput: {\n label: t({\n en: 'Key',\n fr: 'Clé',\n es: 'Clave',\n }),\n description: t({\n en: 'The key of your dictionary is used to identify it in the application',\n fr: \"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application\",\n es: 'La clave de su diccionario se utiliza para identificarla en la aplicación',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n fr: 'Entrez la clé de votre dictionnaire',\n es: 'Ingrese la clave de su diccionario',\n }),\n },\n descriptionInput: {\n label: t({\n en: 'Description',\n fr: 'Description',\n es: 'Descripción',\n }),\n placeholder: t({\n en: 'Enter the description of your dictionary',\n fr: 'Entrez la description de votre dictionnaire',\n es: 'Ingrese la descripción de su diccionario',\n }),\n description: t({\n en: 'The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.',\n fr: \"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.\",\n es: 'La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n }),\n description: t({\n en: 'A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.',\n fr: 'Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.',\n es: 'Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n }),\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 les dictionnaires',\n es: 'Publicar diccionario',\n }),\n label: t({\n en: 'Click to publish dictionary',\n fr: 'Cliquez pour publier les dictionnaires',\n es: 'Haga clic para publicar el diccionario',\n }),\n },\n updateDictionaryToasts: {\n updated: {\n title: t({\n en: 'Dictionary updated',\n fr: 'Dictionnaire mis à jour',\n es: 'Diccionario actualizado',\n }),\n description: t({\n en: 'Your dictionary has been updated successfully',\n fr: 'Votre dictionnaire a été mis à jour avec succès',\n es: 'Su diccionario se ha actualizado con éxito',\n }),\n },\n failed: {\n title: t({\n en: 'Organization update failed',\n fr: \"La mise à jour de l'organisation a échoué\",\n es: 'La actualización de la organización ha fallado',\n }),\n },\n },\n pushDictionariesToasts: {\n updated: {\n title: t({\n en: 'Dictionary updated',\n fr: 'Dictionnaire mis à jour',\n es: 'Diccionario actualizado',\n }),\n description: t({\n en: 'Your dictionary has been updated successfully',\n fr: 'Votre dictionnaire a été mis à jour avec succès',\n es: 'Su diccionario se ha actualizado con éxito',\n }),\n },\n failed: {\n title: t({\n en: 'Dictionary update failed',\n fr: \"La mise à jour de l'dictionnaire a échoué\",\n es: 'La actualización del diccionario ha fallado',\n }),\n description: t({\n en: 'An error occurred while updating your dictionary',\n fr: \"Une erreur s'est produite lors de la mise à jour de votre dictionnaire\",\n es: 'Se produjo un error al actualizar su diccionario',\n }),\n },\n },\n },\n} satisfies DeclarationContent;\n"],"names":["t"],"mappings":";;;AAEO,MAAM,2BAA2B;AAAA,EACtC,KAAK;AAAA,EACL,SAAS;AAAA,IACP,YAAY;AAAA,MACV,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa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;AAAA,UACJ,IAAI;AAAA,UACJ,IAAI;AAAA,QAAA,CACL;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;;"}
1
+ {"version":3,"file":"dictionaryDetails.content.cjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const dictionaryDetailsContent = {\n key: 'dictionary-details',\n content: {\n titleInput: {\n label: t({\n en: 'Title',\n fr: 'Titre',\n es: 'Título',\n }),\n description: t({\n en: 'The title of your dictionary allows you to easily identify it',\n fr: \"Le titre de votre dictionnaire permet de l'identifier facilement\",\n es: 'El título de su diccionario le permite identificar fácilmente',\n }),\n placeholder: t({\n en: 'Enter the title of your dictionary',\n fr: 'Entrez le titre de votre dictionnaire',\n es: 'Ingrese el título de su diccionario',\n }),\n },\n keyInput: {\n label: t({\n en: 'Key',\n fr: 'Clé',\n es: 'Clave',\n }),\n description: t({\n en: 'The key of your dictionary is used to identify it in the application',\n fr: \"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application\",\n es: 'La clave de su diccionario se utiliza para identificarla en la aplicación',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n fr: 'Entrez la clé de votre dictionnaire',\n es: 'Ingrese la clave de su diccionario',\n }),\n },\n descriptionInput: {\n label: t({\n en: 'Description',\n fr: 'Description',\n es: 'Descripción',\n }),\n placeholder: t({\n en: 'Enter the description of your dictionary',\n fr: 'Entrez la description de votre dictionnaire',\n es: 'Ingrese la descripción de su diccionario',\n }),\n description: t({\n en: 'The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.',\n fr: \"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.\",\n es: 'La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n }),\n description: t({\n en: 'A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.',\n fr: 'Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.',\n es: 'Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n }),\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,2BAA2B;AAAA,EACtC,KAAK;AAAA,EACL,SAAS;AAAA,IACP,YAAY;AAAA,MACV,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAaA,SAAAA,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAaA,SAAAA,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,UAAU;AAAA,M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,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;;"}
@@ -29,25 +29,6 @@ export declare const dictionaryDetailsContent: {
29
29
  text: import('@intlayer/core').TranslationContent<string>;
30
30
  label: import('@intlayer/core').TranslationContent<string>;
31
31
  };
32
- updateDictionaryToasts: {
33
- updated: {
34
- title: import('@intlayer/core').TranslationContent<string>;
35
- description: import('@intlayer/core').TranslationContent<string>;
36
- };
37
- failed: {
38
- title: import('@intlayer/core').TranslationContent<string>;
39
- };
40
- };
41
- pushDictionariesToasts: {
42
- updated: {
43
- title: import('@intlayer/core').TranslationContent<string>;
44
- description: import('@intlayer/core').TranslationContent<string>;
45
- };
46
- failed: {
47
- title: import('@intlayer/core').TranslationContent<string>;
48
- description: import('@intlayer/core').TranslationContent<string>;
49
- };
50
- };
51
32
  };
52
33
  };
53
34
  //# sourceMappingURL=dictionaryDetails.content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dictionaryDetails.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJP,CAAC"}
1
+ {"version":3,"file":"dictionaryDetails.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGP,CAAC"}
@@ -85,61 +85,14 @@ const dictionaryDetailsContent = {
85
85
  publishButton: {
86
86
  text: t({
87
87
  en: "Publish dictionary",
88
- fr: "Publier les dictionnaires",
88
+ fr: "Publier le dictionnaire",
89
89
  es: "Publicar diccionario"
90
90
  }),
91
91
  label: t({
92
92
  en: "Click to publish dictionary",
93
- fr: "Cliquez pour publier les dictionnaires",
93
+ fr: "Cliquez pour publier le dictionnaire",
94
94
  es: "Haga clic para publicar el diccionario"
95
95
  })
96
- },
97
- updateDictionaryToasts: {
98
- updated: {
99
- title: t({
100
- en: "Dictionary updated",
101
- fr: "Dictionnaire mis à jour",
102
- es: "Diccionario actualizado"
103
- }),
104
- description: t({
105
- en: "Your dictionary has been updated successfully",
106
- fr: "Votre dictionnaire a été mis à jour avec succès",
107
- es: "Su diccionario se ha actualizado con éxito"
108
- })
109
- },
110
- failed: {
111
- title: t({
112
- en: "Organization update failed",
113
- fr: "La mise à jour de l'organisation a échoué",
114
- es: "La actualización de la organización ha fallado"
115
- })
116
- }
117
- },
118
- pushDictionariesToasts: {
119
- updated: {
120
- title: t({
121
- en: "Dictionary updated",
122
- fr: "Dictionnaire mis à jour",
123
- es: "Diccionario actualizado"
124
- }),
125
- description: t({
126
- en: "Your dictionary has been updated successfully",
127
- fr: "Votre dictionnaire a été mis à jour avec succès",
128
- es: "Su diccionario se ha actualizado con éxito"
129
- })
130
- },
131
- failed: {
132
- title: t({
133
- en: "Dictionary update failed",
134
- fr: "La mise à jour de l'dictionnaire a échoué",
135
- es: "La actualización del diccionario ha fallado"
136
- }),
137
- description: t({
138
- en: "An error occurred while updating your dictionary",
139
- fr: "Une erreur s'est produite lors de la mise à jour de votre dictionnaire",
140
- es: "Se produjo un error al actualizar su diccionario"
141
- })
142
- }
143
96
  }
144
97
  }
145
98
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dictionaryDetails.content.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const dictionaryDetailsContent = {\n key: 'dictionary-details',\n content: {\n titleInput: {\n label: t({\n en: 'Title',\n fr: 'Titre',\n es: 'Título',\n }),\n description: t({\n en: 'The title of your dictionary allows you to easily identify it',\n fr: \"Le titre de votre dictionnaire permet de l'identifier facilement\",\n es: 'El título de su diccionario le permite identificar fácilmente',\n }),\n placeholder: t({\n en: 'Enter the title of your dictionary',\n fr: 'Entrez le titre de votre dictionnaire',\n es: 'Ingrese el título de su diccionario',\n }),\n },\n keyInput: {\n label: t({\n en: 'Key',\n fr: 'Clé',\n es: 'Clave',\n }),\n description: t({\n en: 'The key of your dictionary is used to identify it in the application',\n fr: \"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application\",\n es: 'La clave de su diccionario se utiliza para identificarla en la aplicación',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n fr: 'Entrez la clé de votre dictionnaire',\n es: 'Ingrese la clave de su diccionario',\n }),\n },\n descriptionInput: {\n label: t({\n en: 'Description',\n fr: 'Description',\n es: 'Descripción',\n }),\n placeholder: t({\n en: 'Enter the description of your dictionary',\n fr: 'Entrez la description de votre dictionnaire',\n es: 'Ingrese la descripción de su diccionario',\n }),\n description: t({\n en: 'The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.',\n fr: \"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.\",\n es: 'La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n }),\n description: t({\n en: 'A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.',\n fr: 'Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.',\n es: 'Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n }),\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 les dictionnaires',\n es: 'Publicar diccionario',\n }),\n label: t({\n en: 'Click to publish dictionary',\n fr: 'Cliquez pour publier les dictionnaires',\n es: 'Haga clic para publicar el diccionario',\n }),\n },\n updateDictionaryToasts: {\n updated: {\n title: t({\n en: 'Dictionary updated',\n fr: 'Dictionnaire mis à jour',\n es: 'Diccionario actualizado',\n }),\n description: t({\n en: 'Your dictionary has been updated successfully',\n fr: 'Votre dictionnaire a été mis à jour avec succès',\n es: 'Su diccionario se ha actualizado con éxito',\n }),\n },\n failed: {\n title: t({\n en: 'Organization update failed',\n fr: \"La mise à jour de l'organisation a échoué\",\n es: 'La actualización de la organización ha fallado',\n }),\n },\n },\n pushDictionariesToasts: {\n updated: {\n title: t({\n en: 'Dictionary updated',\n fr: 'Dictionnaire mis à jour',\n es: 'Diccionario actualizado',\n }),\n description: t({\n en: 'Your dictionary has been updated successfully',\n fr: 'Votre dictionnaire a été mis à jour avec succès',\n es: 'Su diccionario se ha actualizado con éxito',\n }),\n },\n failed: {\n title: t({\n en: 'Dictionary update failed',\n fr: \"La mise à jour de l'dictionnaire a échoué\",\n es: 'La actualización del diccionario ha fallado',\n }),\n description: t({\n en: 'An error occurred while updating your dictionary',\n fr: \"Une erreur s'est produite lors de la mise à jour de votre dictionnaire\",\n es: 'Se produjo un error al actualizar su diccionario',\n }),\n },\n },\n },\n} satisfies DeclarationContent;\n"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UACb,IAAI;AAAA,UACJ,IAAI;AAAA,UACJ,IAAI;AAAA,QAAA,CACL;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;"}
1
+ {"version":3,"file":"dictionaryDetails.content.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const dictionaryDetailsContent = {\n key: 'dictionary-details',\n content: {\n titleInput: {\n label: t({\n en: 'Title',\n fr: 'Titre',\n es: 'Título',\n }),\n description: t({\n en: 'The title of your dictionary allows you to easily identify it',\n fr: \"Le titre de votre dictionnaire permet de l'identifier facilement\",\n es: 'El título de su diccionario le permite identificar fácilmente',\n }),\n placeholder: t({\n en: 'Enter the title of your dictionary',\n fr: 'Entrez le titre de votre dictionnaire',\n es: 'Ingrese el título de su diccionario',\n }),\n },\n keyInput: {\n label: t({\n en: 'Key',\n fr: 'Clé',\n es: 'Clave',\n }),\n description: t({\n en: 'The key of your dictionary is used to identify it in the application',\n fr: \"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application\",\n es: 'La clave de su diccionario se utiliza para identificarla en la aplicación',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n fr: 'Entrez la clé de votre dictionnaire',\n es: 'Ingrese la clave de su diccionario',\n }),\n },\n descriptionInput: {\n label: t({\n en: 'Description',\n fr: 'Description',\n es: 'Descripción',\n }),\n placeholder: t({\n en: 'Enter the description of your dictionary',\n fr: 'Entrez la description de votre dictionnaire',\n es: 'Ingrese la descripción de su diccionario',\n }),\n description: t({\n en: 'The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.',\n fr: \"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.\",\n es: 'La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n }),\n description: t({\n en: 'A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.',\n fr: 'Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.',\n es: 'Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n }),\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,2BAA2B;AAAA,EACtC,KAAK;AAAA,EACL,SAAS;AAAA,IACP,YAAY;AAAA,MACV,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,UAAU;AAAA,MACR,OAAO,EAAE;AAAA,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P,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,EACF;AACF;"}
@@ -3,17 +3,34 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const jsxRuntime = require("../../jsx-runtime-DvCoRj5u.cjs");
5
5
  const lucideReact = require("lucide-react");
6
+ const require$$0 = require("react");
6
7
  const reactIntlayer = require("react-intlayer");
7
8
  const components_Button_Button = require("../Button/Button.cjs");
8
9
  const components_Container_index = require("../Container/index.cjs");
9
10
  const components_DictionaryEditor_useEditedContentStore = require("../DictionaryEditor/useEditedContentStore.cjs");
10
11
  const components_DictionaryEditor_useEditionPanelStore = require("../DictionaryEditor/useEditionPanelStore.cjs");
11
12
  require("@intlayer/core");
12
- require("react");
13
13
  require("clsx");
14
14
  require("tailwind-merge");
15
- require("../TextArea/AutoSizeTextArea.cjs");
16
- require("../TextArea/TextArea.cjs");
15
+ require("../EditableField/EditableFieldInput.cjs");
16
+ require("../EditableField/EditableFieldTextArea.cjs");
17
+ require("../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
18
+ require("../../hooks/useAsync/useAsyncStateStore.cjs");
19
+ require("../../libs/intlayer-api/auth.cjs");
20
+ require("../../libs/intlayer-api/dictionary.cjs");
21
+ require("../../libs/intlayer-api/organization.cjs");
22
+ require("../../libs/intlayer-api/project.cjs");
23
+ require("../../libs/intlayer-api/stripe.cjs");
24
+ require("../../libs/intlayer-api/user.cjs");
25
+ require("@intlayer/config/client");
26
+ require("../Toaster/Toast.cjs");
27
+ require("@intlayer/dictionaries-entry");
28
+ require("deepmerge");
29
+ require("../Form/FormBase.cjs");
30
+ require("../Form/FormField.cjs");
31
+ require("../../Form-DERuauvB.cjs");
32
+ require("../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
33
+ require("zod");
17
34
  const components_Headers_index = require("../Headers/index.cjs");
18
35
  const components_DictionaryFieldEditor_DictionaryDetails_DictionaryDetailsForm = require("./DictionaryDetails/DictionaryDetailsForm.cjs");
19
36
  const components_DictionaryFieldEditor_dictionaryFieldEditor_content = require("./dictionaryFieldEditor.content.cjs");
@@ -26,24 +43,32 @@ const DictionaryFieldEditor = ({
26
43
  onClickDictionaryList
27
44
  }) => {
28
45
  const { content: dictionaryContent, key } = dictionary;
29
- const editedContent = components_DictionaryEditor_useEditedContentStore.useEditedContentStore((s) => s.editedContent);
30
- const { returnToDictionaryList, titleContent, titleInformation } = reactIntlayer.useDictionary(components_DictionaryFieldEditor_dictionaryFieldEditor_content.dictionaryFieldEditorContent);
31
- const { focusedContent, setFocusedContentKeyPath, setFocusedContent } = components_DictionaryEditor_useEditionPanelStore.useEditionPanelStore((s) => ({
32
- focusedContent: s.focusedContent,
33
- setFocusedContentKeyPath: s.setFocusedContentKeyPath,
34
- setFocusedContent: s.setFocusedContent
46
+ const { editedContent, dictionaryRecord, setDictionariesRecord } = components_DictionaryEditor_useEditedContentStore.useEditedContentStore((s) => ({
47
+ editedContent: s.editedContent,
48
+ dictionaryRecord: s.dictionariesRecord,
49
+ setDictionariesRecord: s.setDictionariesRecord
35
50
  }));
51
+ const { returnToDictionaryList, titleContent, titleInformation } = reactIntlayer.useDictionary(components_DictionaryFieldEditor_dictionaryFieldEditor_content.dictionaryFieldEditorContent);
52
+ const { focusedContent, setFocusedContentKeyPath } = components_DictionaryEditor_useEditionPanelStore.useEditionPanelStore(
53
+ (s) => ({
54
+ focusedContent: s.focusedContent,
55
+ setFocusedContentKeyPath: s.setFocusedContentKeyPath
56
+ })
57
+ );
36
58
  const focusedKeyPath = focusedContent?.keyPath;
37
59
  const section = editedContent[key]?.content ?? dictionaryContent;
60
+ require$$0.useEffect(() => {
61
+ if (dictionaryRecord[key]) return;
62
+ setDictionariesRecord({
63
+ [key]: dictionary
64
+ });
65
+ }, [dictionary, key, setDictionariesRecord, dictionaryRecord]);
38
66
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex size-full flex-1 flex-col gap-10", children: [
39
67
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
40
68
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
41
69
  components_Button_Button.Button,
42
70
  {
43
- onClick: () => {
44
- setFocusedContent(null);
45
- onClickDictionaryList?.();
46
- },
71
+ onClick: () => onClickDictionaryList?.(),
47
72
  variant: "hoverable",
48
73
  size: "icon-md",
49
74
  color: "text",
@@ -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 { type FC } from 'react';\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 = useEditedContentStore((s) => s.editedContent);\n const { returnToDictionaryList, titleContent, titleInformation } =\n useDictionary(dictionaryFieldEditorContent);\n\n const { focusedContent, setFocusedContentKeyPath, setFocusedContent } =\n useEditionPanelStore((s) => ({\n focusedContent: s.focusedContent,\n setFocusedContentKeyPath: s.setFocusedContentKeyPath,\n setFocusedContent: s.setFocusedContent,\n }));\n\n const focusedKeyPath = focusedContent?.keyPath;\n\n const section = editedContent[key]?.content ?? dictionaryContent;\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={() => {\n setFocusedContent(null);\n onClickDictionaryList?.();\n }}\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","jsxs","jsx","Button","ArrowLeft","Container","H2","DictionaryDetailsForm","KeyPathBreadcrumb","NavigationVi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;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF,EAAA,CAAA;AAEJ;;"}
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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AAU;AAAA,kBACV,aAAY;AAAA,kBAEZ,UAACH,2BAAA,kBAAA,IAAAQ,uDAAA,YAAA,EAAW,YAAwB,eAAe,KAAK;AAAA,gBAAA;AAAA,cAC1D;AAAA,cAEFR,iDAACS,mDAAAA,YAAS,YAAwB;AAAA,YAAA,GACpC;AAAA,UAAA,GACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF,EAAA,CAAA;AAEJ;;"}
@@ -1,6 +1,5 @@
1
1
  import { Dictionary } from '@intlayer/core';
2
2
  import { FC } from 'react';
3
-
4
3
  type DictionaryFieldEditorProps = {
5
4
  dictionary: Dictionary;
6
5
  onClickDictionaryList?: () => void;
@@ -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,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAgBhC,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,CA6FhE,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,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,17 +1,34 @@
1
1
  "use client";
2
2
  import { j as jsxRuntimeExports } from "../../jsx-runtime-BgSF1HG2.js";
3
3
  import { ArrowLeft } from "lucide-react";
4
+ import { useEffect } from "react";
4
5
  import { useDictionary } from "react-intlayer";
5
6
  import { Button } from "../Button/Button.mjs";
6
7
  import { Container } from "../Container/index.mjs";
7
8
  import { useEditedContentStore } from "../DictionaryEditor/useEditedContentStore.mjs";
8
9
  import { useEditionPanelStore } from "../DictionaryEditor/useEditionPanelStore.mjs";
9
10
  import "@intlayer/core";
10
- import "react";
11
11
  import "clsx";
12
12
  import "tailwind-merge";
13
- import "../TextArea/AutoSizeTextArea.mjs";
14
- import "../TextArea/TextArea.mjs";
13
+ import "../EditableField/EditableFieldInput.mjs";
14
+ import "../EditableField/EditableFieldTextArea.mjs";
15
+ import "../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
16
+ import "../../hooks/useAsync/useAsyncStateStore.mjs";
17
+ import "../../libs/intlayer-api/auth.mjs";
18
+ import "../../libs/intlayer-api/dictionary.mjs";
19
+ import "../../libs/intlayer-api/organization.mjs";
20
+ import "../../libs/intlayer-api/project.mjs";
21
+ import "../../libs/intlayer-api/stripe.mjs";
22
+ import "../../libs/intlayer-api/user.mjs";
23
+ import "@intlayer/config/client";
24
+ import "../Toaster/Toast.mjs";
25
+ import "@intlayer/dictionaries-entry";
26
+ import "deepmerge";
27
+ import "../Form/FormBase.mjs";
28
+ import "../Form/FormField.mjs";
29
+ import "../../Form-DyFBmVya.js";
30
+ import "../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
31
+ import "zod";
15
32
  import { H2 } from "../Headers/index.mjs";
16
33
  import { DictionaryDetailsForm } from "./DictionaryDetails/DictionaryDetailsForm.mjs";
17
34
  import { dictionaryFieldEditorContent } from "./dictionaryFieldEditor.content.mjs";
@@ -24,24 +41,32 @@ const DictionaryFieldEditor = ({
24
41
  onClickDictionaryList
25
42
  }) => {
26
43
  const { content: dictionaryContent, key } = dictionary;
27
- const editedContent = useEditedContentStore((s) => s.editedContent);
28
- const { returnToDictionaryList, titleContent, titleInformation } = useDictionary(dictionaryFieldEditorContent);
29
- const { focusedContent, setFocusedContentKeyPath, setFocusedContent } = useEditionPanelStore((s) => ({
30
- focusedContent: s.focusedContent,
31
- setFocusedContentKeyPath: s.setFocusedContentKeyPath,
32
- setFocusedContent: s.setFocusedContent
44
+ const { editedContent, dictionaryRecord, setDictionariesRecord } = useEditedContentStore((s) => ({
45
+ editedContent: s.editedContent,
46
+ dictionaryRecord: s.dictionariesRecord,
47
+ setDictionariesRecord: s.setDictionariesRecord
33
48
  }));
49
+ const { returnToDictionaryList, titleContent, titleInformation } = useDictionary(dictionaryFieldEditorContent);
50
+ const { focusedContent, setFocusedContentKeyPath } = useEditionPanelStore(
51
+ (s) => ({
52
+ focusedContent: s.focusedContent,
53
+ setFocusedContentKeyPath: s.setFocusedContentKeyPath
54
+ })
55
+ );
34
56
  const focusedKeyPath = focusedContent?.keyPath;
35
57
  const section = editedContent[key]?.content ?? dictionaryContent;
58
+ useEffect(() => {
59
+ if (dictionaryRecord[key]) return;
60
+ setDictionariesRecord({
61
+ [key]: dictionary
62
+ });
63
+ }, [dictionary, key, setDictionariesRecord, dictionaryRecord]);
36
64
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex size-full flex-1 flex-col gap-10", children: [
37
65
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
38
66
  /* @__PURE__ */ jsxRuntimeExports.jsx(
39
67
  Button,
40
68
  {
41
- onClick: () => {
42
- setFocusedContent(null);
43
- onClickDictionaryList?.();
44
- },
69
+ onClick: () => onClickDictionaryList?.(),
45
70
  variant: "hoverable",
46
71
  size: "icon-md",
47
72
  color: "text",
@@ -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 { type FC } from 'react';\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 = useEditedContentStore((s) => s.editedContent);\n const { returnToDictionaryList, titleContent, titleInformation } =\n useDictionary(dictionaryFieldEditorContent);\n\n const { focusedContent, setFocusedContentKeyPath, setFocusedContent } =\n useEditionPanelStore((s) => ({\n focusedContent: s.focusedContent,\n setFocusedContentKeyPath: s.setFocusedContentKeyPath,\n setFocusedContent: s.setFocusedContent,\n }));\n\n const focusedKeyPath = focusedContent?.keyPath;\n\n const section = editedContent[key]?.content ?? dictionaryContent;\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={() => {\n setFocusedContent(null);\n onClickDictionaryList?.();\n }}\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":";;;;;;;;;;;;;;;;;;;;;AAyBO,MAAM,wBAAwD,CAAC;AAAA,EACpE;AAAA,EACA;AACF,MAAM;AACJ,QAAM,EAAE,SAAS,mBAAmB,IAAA,IAAQ;AAC5C,QAAM,gBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa;AAClE,QAAM,EAAE,wBAAwB,cAAc,iBAAiB,IAC7D,cAAc,4BAA4B;AAE5C,QAAM,EAAE,gBAAgB,0BAA0B,sBAChD,qBAAqB,CAAC,OAAO;AAAA,IAC3B,gBAAgB,EAAE;AAAA,IAClB,0BAA0B,EAAE;AAAA,IAC5B,mBAAmB,EAAE;AAAA,EACrB,EAAA;AAEJ,QAAM,iBAAiB,gBAAgB;AAEvC,QAAM,UAAU,cAAc,GAAG,GAAG,WAAW;AAG7C,SAAAA,kCAAA,KAAC,OAA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AC;AAAA,oBACV;AAAA,oBACA,eAAe;AAAA,kBAAA;AAAA,gBACjB;AAAA,cAAA;AAAA,YACF;AAAA,YACAD,kCAAAA,KAAC,OAAI,EAAA,WAAU,qDACX,UAAA;AAAA,eAAgB,gBAAA,UAAU,KAAK,KAC/BC,kCAAA;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,QAAM;AAAA,kBACN,YAAY;AAAA,kBACZ,WAAU;AAAA,kBACV,aAAY;AAAA,kBAEZ,UAACA,kCAAA,IAAA,YAAA,EAAW,YAAwB,eAAe,KAAK;AAAA,gBAAA;AAAA,cAC1D;AAAA,cAEFA,sCAAC,YAAS,YAAwB;AAAA,YAAA,GACpC;AAAA,UAAA,GACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF,EAAA,CAAA;AAEJ;"}
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BO,MAAM,wBAAwD,CAAC;AAAA,EACpE;AAAA,EACA;AACF,MAAM;AACJ,QAAM,EAAE,SAAS,mBAAmB,IAAA,IAAQ;AAC5C,QAAM,EAAE,eAAe,kBAAkB,0BACvC,sBAAsB,CAAC,OAAO;AAAA,IAC5B,eAAe,EAAE;AAAA,IACjB,kBAAkB,EAAE;AAAA,IACpB,uBAAuB,EAAE;AAAA,EACzB,EAAA;AACJ,QAAM,EAAE,wBAAwB,cAAc,iBAAiB,IAC7D,cAAc,4BAA4B;AAEtC,QAAA,EAAE,gBAAgB,yBAAA,IAA6B;AAAA,IACnD,CAAC,OAAO;AAAA,MACN,gBAAgB,EAAE;AAAA,MAClB,0BAA0B,EAAE;AAAA,IAAA;AAAA,EAC9B;AAGF,QAAM,iBAAiB,gBAAgB;AAEvC,QAAM,UAAU,cAAc,GAAG,GAAG,WAAW;AAE/C,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,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KAC/BC,kCAAA;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,QAAM;AAAA,kBACN,YAAY;AAAA,kBACZ,WAAU;AAAA,kBACV,aAAY;AAAA,kBAEZ,UAACA,kCAAA,IAAA,YAAA,EAAW,YAAwB,eAAe,KAAK;AAAA,gBAAA;AAAA,cAC1D;AAAA,cAEFA,sCAAC,YAAS,YAAwB;AAAA,YAAA,GACpC;AAAA,UAAA,GACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF,EAAA,CAAA;AAEJ;"}
@@ -5,17 +5,33 @@ const jsxRuntime = require("../../../jsx-runtime-DvCoRj5u.cjs");
5
5
  const lucideReact = require("lucide-react");
6
6
  const reactIntlayer = require("react-intlayer");
7
7
  const components_EditableField_EditableFieldInput = require("../../EditableField/EditableFieldInput.cjs");
8
- require("react");
9
- require("../../TextArea/AutoSizeTextArea.cjs");
10
- require("../../TextArea/TextArea.cjs");
11
- require("clsx");
12
- require("tailwind-merge");
13
- const components_Button_Button = require("../../Button/Button.cjs");
8
+ require("../../EditableField/EditableFieldTextArea.cjs");
14
9
  const utils_camelCase = require("../../../utils/camelCase.cjs");
15
10
  const utils_dictionary = require("../../../utils/dictionary.cjs");
11
+ const components_Button_Button = require("../../Button/Button.cjs");
16
12
  const components_DictionaryEditor_useEditedContentStore = require("../../DictionaryEditor/useEditedContentStore.cjs");
17
13
  const components_DictionaryEditor_useEditionPanelStore = require("../../DictionaryEditor/useEditionPanelStore.cjs");
18
14
  require("@intlayer/core");
15
+ require("react");
16
+ require("clsx");
17
+ require("tailwind-merge");
18
+ require("../../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
19
+ require("../../../hooks/useAsync/useAsyncStateStore.cjs");
20
+ require("../../../libs/intlayer-api/auth.cjs");
21
+ require("../../../libs/intlayer-api/dictionary.cjs");
22
+ require("../../../libs/intlayer-api/organization.cjs");
23
+ require("../../../libs/intlayer-api/project.cjs");
24
+ require("../../../libs/intlayer-api/stripe.cjs");
25
+ require("../../../libs/intlayer-api/user.cjs");
26
+ require("@intlayer/config/client");
27
+ require("../../Toaster/Toast.cjs");
28
+ require("@intlayer/dictionaries-entry");
29
+ require("deepmerge");
30
+ require("../../Form/FormBase.cjs");
31
+ require("../../Form/FormField.cjs");
32
+ require("../../../Form-DERuauvB.cjs");
33
+ require("../../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
34
+ require("zod");
19
35
  const components_Label_index = require("../../Label/index.cjs");
20
36
  const components_DictionaryFieldEditor_editorView_content = require("../editorView.content.cjs");
21
37
  const components_DictionaryFieldEditor_getIsEditableSection = require("../getIsEditableSection.cjs");