@intlayer/design-system 5.0.6 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (871) hide show
  1. package/dist/.vite/manifest.json +219 -381
  2. package/dist/{Form-DlqjTz3u.js → Form-BZUDRfoN.js} +35 -35
  3. package/dist/Form-BZUDRfoN.js.map +1 -0
  4. package/dist/{Form-CSMiPnjC.cjs → Form-yi0CMK-a.cjs} +35 -35
  5. package/dist/Form-yi0CMK-a.cjs.map +1 -0
  6. package/dist/components/Accordion/Accordion.cjs +7 -7
  7. package/dist/components/Accordion/Accordion.cjs.map +1 -1
  8. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  9. package/dist/components/Accordion/Accordion.mjs +4 -4
  10. package/dist/components/Accordion/Accordion.mjs.map +1 -1
  11. package/dist/components/Auth/AuthModal/index.cjs +8 -8
  12. package/dist/components/Auth/AuthModal/index.cjs.map +1 -1
  13. package/dist/components/Auth/AuthModal/index.mjs +6 -6
  14. package/dist/components/Auth/AuthModal/index.mjs.map +1 -1
  15. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +5 -5
  16. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs.map +1 -1
  17. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +2 -2
  18. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs.map +1 -1
  19. package/dist/components/Auth/AuthenticationBarrier/index.d.ts +1 -1
  20. package/dist/components/Auth/AuthenticationBarrier/index.d.ts.map +1 -1
  21. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +10 -10
  22. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
  23. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +10 -10
  24. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
  25. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs +10 -10
  26. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs.map +1 -1
  27. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs +10 -10
  28. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs.map +1 -1
  29. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +11 -12
  30. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
  31. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +11 -12
  32. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
  33. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs +3 -3
  34. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs.map +1 -1
  35. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs +3 -3
  36. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs.map +1 -1
  37. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs +3 -3
  38. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs.map +1 -1
  39. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs +3 -3
  40. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs.map +1 -1
  41. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +10 -10
  42. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -1
  43. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +6 -6
  44. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -1
  45. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs +4 -4
  46. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs.map +1 -1
  47. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs +4 -4
  48. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs.map +1 -1
  49. package/dist/components/Auth/SignInForm/SignInForm.cjs +12 -12
  50. package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -1
  51. package/dist/components/Auth/SignInForm/SignInForm.mjs +12 -12
  52. package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -1
  53. package/dist/components/Auth/SignInForm/useSignInSchema.cjs +6 -6
  54. package/dist/components/Auth/SignInForm/useSignInSchema.cjs.map +1 -1
  55. package/dist/components/Auth/SignInForm/useSignInSchema.mjs +6 -6
  56. package/dist/components/Auth/SignInForm/useSignInSchema.mjs.map +1 -1
  57. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +10 -10
  58. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
  59. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +10 -10
  60. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
  61. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs +10 -10
  62. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs.map +1 -1
  63. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs +10 -10
  64. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs.map +1 -1
  65. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs +11 -11
  66. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs.map +1 -1
  67. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.d.ts.map +1 -1
  68. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs +7 -7
  69. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs.map +1 -1
  70. package/dist/components/Auth/useAuth/index.cjs +2 -2
  71. package/dist/components/Auth/useAuth/index.cjs.map +1 -1
  72. package/dist/components/Auth/useAuth/useCSRF.cjs +3 -1
  73. package/dist/components/Auth/useAuth/useCSRF.cjs.map +1 -1
  74. package/dist/components/Auth/useAuth/useCSRF.d.ts.map +1 -1
  75. package/dist/components/Auth/useAuth/useCSRF.mjs +3 -1
  76. package/dist/components/Auth/useAuth/useCSRF.mjs.map +1 -1
  77. package/dist/components/Auth/useAuth/useOAuth2.cjs +3 -1
  78. package/dist/components/Auth/useAuth/useOAuth2.cjs.map +1 -1
  79. package/dist/components/Auth/useAuth/useOAuth2.d.ts +1 -1
  80. package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +1 -1
  81. package/dist/components/Auth/useAuth/useOAuth2.mjs +3 -1
  82. package/dist/components/Auth/useAuth/useOAuth2.mjs.map +1 -1
  83. package/dist/components/Auth/useAuth/useSession.cjs +5 -3
  84. package/dist/components/Auth/useAuth/useSession.cjs.map +1 -1
  85. package/dist/components/Auth/useAuth/useSession.d.ts.map +1 -1
  86. package/dist/components/Auth/useAuth/useSession.mjs +3 -1
  87. package/dist/components/Auth/useAuth/useSession.mjs.map +1 -1
  88. package/dist/components/Avatar/index.cjs +9 -9
  89. package/dist/components/Avatar/index.cjs.map +1 -1
  90. package/dist/components/Avatar/index.mjs +9 -9
  91. package/dist/components/Avatar/index.mjs.map +1 -1
  92. package/dist/components/Badge/index.cjs +2 -2
  93. package/dist/components/Badge/index.cjs.map +1 -1
  94. package/dist/components/Badge/index.mjs +2 -2
  95. package/dist/components/Badge/index.mjs.map +1 -1
  96. package/dist/components/Breadcrumb/index.cjs +20 -20
  97. package/dist/components/Breadcrumb/index.cjs.map +1 -1
  98. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  99. package/dist/components/Breadcrumb/index.mjs +19 -19
  100. package/dist/components/Breadcrumb/index.mjs.map +1 -1
  101. package/dist/components/Button/Button.cjs +84 -89
  102. package/dist/components/Button/Button.cjs.map +1 -1
  103. package/dist/components/Button/Button.d.ts +1 -1
  104. package/dist/components/Button/Button.d.ts.map +1 -1
  105. package/dist/components/Button/Button.mjs +84 -89
  106. package/dist/components/Button/Button.mjs.map +1 -1
  107. package/dist/components/ClickOutsideDiv/index.cjs +5 -5
  108. package/dist/components/ClickOutsideDiv/index.cjs.map +1 -1
  109. package/dist/components/ClickOutsideDiv/index.d.ts +1 -1
  110. package/dist/components/ClickOutsideDiv/index.d.ts.map +1 -1
  111. package/dist/components/ClickOutsideDiv/index.mjs +2 -2
  112. package/dist/components/ClickOutsideDiv/index.mjs.map +1 -1
  113. package/dist/components/Command/index.cjs +42 -52
  114. package/dist/components/Command/index.cjs.map +1 -1
  115. package/dist/components/Command/index.d.ts +21 -73
  116. package/dist/components/Command/index.d.ts.map +1 -1
  117. package/dist/components/Command/index.mjs +42 -52
  118. package/dist/components/Command/index.mjs.map +1 -1
  119. package/dist/components/Container/index.cjs +49 -40
  120. package/dist/components/Container/index.cjs.map +1 -1
  121. package/dist/components/Container/index.d.ts +6 -20
  122. package/dist/components/Container/index.d.ts.map +1 -1
  123. package/dist/components/Container/index.mjs +49 -40
  124. package/dist/components/Container/index.mjs.map +1 -1
  125. package/dist/components/ContentEditor/ContentEditor.cjs +9 -9
  126. package/dist/components/ContentEditor/ContentEditor.cjs.map +1 -1
  127. package/dist/components/ContentEditor/ContentEditor.mjs +6 -6
  128. package/dist/components/ContentEditor/ContentEditor.mjs.map +1 -1
  129. package/dist/components/ContentEditor/ContentEditorInput.cjs +87 -0
  130. package/dist/components/ContentEditor/ContentEditorInput.cjs.map +1 -0
  131. package/dist/components/ContentEditor/ContentEditorInput.d.ts +11 -0
  132. package/dist/components/ContentEditor/ContentEditorInput.d.ts.map +1 -0
  133. package/dist/components/ContentEditor/ContentEditorInput.mjs +87 -0
  134. package/dist/components/ContentEditor/ContentEditorInput.mjs.map +1 -0
  135. package/dist/components/ContentEditor/ContentEditorTextArea.cjs +15 -12
  136. package/dist/components/ContentEditor/ContentEditorTextArea.cjs.map +1 -1
  137. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +1 -1
  138. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts.map +1 -1
  139. package/dist/components/ContentEditor/ContentEditorTextArea.mjs +11 -8
  140. package/dist/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
  141. package/dist/components/ContentSelector/ContentSelector.cjs +2 -2
  142. package/dist/components/ContentSelector/ContentSelector.cjs.map +1 -1
  143. package/dist/components/ContentSelector/ContentSelector.mjs +2 -2
  144. package/dist/components/ContentSelector/ContentSelector.mjs.map +1 -1
  145. package/dist/components/CopyToClipboard/index.cjs +6 -6
  146. package/dist/components/CopyToClipboard/index.cjs.map +1 -1
  147. package/dist/components/CopyToClipboard/index.d.ts.map +1 -1
  148. package/dist/components/CopyToClipboard/index.mjs +4 -4
  149. package/dist/components/CopyToClipboard/index.mjs.map +1 -1
  150. package/dist/components/DictionaryEditor/DictionaryEditor.cjs +6 -6
  151. package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -1
  152. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +1 -2
  153. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -1
  154. package/dist/components/DictionaryEditor/DictionaryEditor.mjs +5 -5
  155. package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
  156. package/dist/components/DictionaryEditor/ItemLayout.cjs +8 -8
  157. package/dist/components/DictionaryEditor/ItemLayout.cjs.map +1 -1
  158. package/dist/components/DictionaryEditor/ItemLayout.mjs +8 -8
  159. package/dist/components/DictionaryEditor/ItemLayout.mjs.map +1 -1
  160. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs +2 -4
  161. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.map +1 -1
  162. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts.map +1 -1
  163. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs +2 -4
  164. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs.map +1 -1
  165. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.cjs +8 -0
  166. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.cjs.map +1 -0
  167. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.d.ts +9 -0
  168. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.d.ts.map +1 -0
  169. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.mjs +8 -0
  170. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.mjs.map +1 -0
  171. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs +2 -2
  172. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts.map +1 -1
  173. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs +2 -2
  174. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.cjs +7 -0
  175. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.cjs.map +1 -0
  176. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.d.ts +9 -0
  177. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.d.ts.map +1 -0
  178. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.mjs +7 -0
  179. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.mjs.map +1 -0
  180. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs +2 -4
  181. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.map +1 -1
  182. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts.map +1 -1
  183. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs +2 -4
  184. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs.map +1 -1
  185. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs +13 -7
  186. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.map +1 -1
  187. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts.map +1 -1
  188. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +13 -7
  189. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs.map +1 -1
  190. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs +2 -2
  191. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts.map +1 -1
  192. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs +2 -2
  193. package/dist/components/DictionaryEditor/NodeWrapper/index.cjs +2 -3
  194. package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.map +1 -1
  195. package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts.map +1 -1
  196. package/dist/components/DictionaryEditor/NodeWrapper/index.mjs +2 -3
  197. package/dist/components/DictionaryEditor/NodeWrapper/index.mjs.map +1 -1
  198. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +13 -21
  199. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
  200. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
  201. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +8 -16
  202. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
  203. package/dist/components/DictionaryFieldEditor/ContentEditor.cjs +54 -0
  204. package/dist/components/DictionaryFieldEditor/ContentEditor.cjs.map +1 -0
  205. package/dist/components/DictionaryFieldEditor/ContentEditor.d.ts +8 -0
  206. package/dist/components/DictionaryFieldEditor/ContentEditor.d.ts.map +1 -0
  207. package/dist/components/DictionaryFieldEditor/ContentEditor.mjs +54 -0
  208. package/dist/components/DictionaryFieldEditor/ContentEditor.mjs.map +1 -0
  209. package/dist/components/DictionaryFieldEditor/ContentEditorView/EditorView.cjs +44 -0
  210. package/dist/components/DictionaryFieldEditor/ContentEditorView/EditorView.cjs.map +1 -0
  211. package/dist/components/DictionaryFieldEditor/{EditorView → ContentEditorView}/EditorView.d.ts +0 -2
  212. package/dist/components/DictionaryFieldEditor/ContentEditorView/EditorView.d.ts.map +1 -0
  213. package/dist/components/DictionaryFieldEditor/ContentEditorView/EditorView.mjs +44 -0
  214. package/dist/components/DictionaryFieldEditor/ContentEditorView/EditorView.mjs.map +1 -0
  215. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +549 -0
  216. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs.map +1 -0
  217. package/dist/components/DictionaryFieldEditor/{EditorView → ContentEditorView}/TextEditor.d.ts +1 -3
  218. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -0
  219. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +549 -0
  220. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -0
  221. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +5 -7
  222. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
  223. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts +0 -2
  224. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -1
  225. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +3 -5
  226. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
  227. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +11 -11
  228. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  229. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +11 -11
  230. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  231. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +5 -5
  232. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs.map +1 -1
  233. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +5 -5
  234. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs.map +1 -1
  235. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +190 -180
  236. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  237. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
  238. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +186 -176
  239. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  240. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +11 -11
  241. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs.map +1 -1
  242. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +11 -11
  243. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs.map +1 -1
  244. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +98 -77
  245. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  246. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +0 -2
  247. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
  248. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +97 -76
  249. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  250. package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs +17 -17
  251. package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs.map +1 -1
  252. package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs +12 -12
  253. package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs.map +1 -1
  254. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs +23 -14
  255. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs.map +1 -1
  256. package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts.map +1 -1
  257. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs +21 -12
  258. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs.map +1 -1
  259. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs +3 -3
  260. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs.map +1 -1
  261. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs +3 -3
  262. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs.map +1 -1
  263. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +61 -81
  264. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
  265. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
  266. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +60 -80
  267. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
  268. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +37 -37
  269. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -1
  270. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +12 -12
  271. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
  272. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +37 -37
  273. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -1
  274. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +26 -65
  275. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
  276. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts +2 -3
  277. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
  278. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +24 -63
  279. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
  280. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +19 -26
  281. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  282. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  283. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +15 -22
  284. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  285. package/dist/components/DictionaryFieldEditor/StructureEditor.cjs +31 -0
  286. package/dist/components/DictionaryFieldEditor/StructureEditor.cjs.map +1 -0
  287. package/dist/components/DictionaryFieldEditor/StructureEditor.d.ts +8 -0
  288. package/dist/components/DictionaryFieldEditor/StructureEditor.d.ts.map +1 -0
  289. package/dist/components/DictionaryFieldEditor/StructureEditor.mjs +31 -0
  290. package/dist/components/DictionaryFieldEditor/StructureEditor.mjs.map +1 -0
  291. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +270 -0
  292. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs.map +1 -0
  293. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.d.ts +16 -0
  294. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.d.ts.map +1 -0
  295. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +270 -0
  296. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -0
  297. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs +76 -0
  298. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs.map +1 -0
  299. package/dist/components/DictionaryFieldEditor/{editorView.content.d.ts → StructureView/structureView.content.d.ts} +4 -51
  300. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts.map +1 -0
  301. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs +76 -0
  302. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs.map +1 -0
  303. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs +11 -11
  304. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs.map +1 -1
  305. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +11 -11
  306. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs.map +1 -1
  307. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +6 -6
  308. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs.map +1 -1
  309. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +3 -3
  310. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs.map +1 -1
  311. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +0 -30
  312. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -1
  313. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +0 -30
  314. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
  315. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +0 -30
  316. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -1
  317. package/dist/components/DictionaryFieldEditor/getIsEditableSection.cjs +7 -44
  318. package/dist/components/DictionaryFieldEditor/getIsEditableSection.cjs.map +1 -1
  319. package/dist/components/DictionaryFieldEditor/getIsEditableSection.d.ts.map +1 -1
  320. package/dist/components/DictionaryFieldEditor/getIsEditableSection.mjs +8 -45
  321. package/dist/components/DictionaryFieldEditor/getIsEditableSection.mjs.map +1 -1
  322. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +67 -21
  323. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -1
  324. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +46 -0
  325. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
  326. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +67 -21
  327. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -1
  328. package/dist/components/DropDown/index.cjs +5 -5
  329. package/dist/components/DropDown/index.cjs.map +1 -1
  330. package/dist/components/DropDown/index.mjs +5 -5
  331. package/dist/components/DropDown/index.mjs.map +1 -1
  332. package/dist/components/EditableField/EditableFieldInput.cjs +15 -12
  333. package/dist/components/EditableField/EditableFieldInput.cjs.map +1 -1
  334. package/dist/components/EditableField/EditableFieldInput.d.ts +2 -1
  335. package/dist/components/EditableField/EditableFieldInput.d.ts.map +1 -1
  336. package/dist/components/EditableField/EditableFieldInput.mjs +12 -9
  337. package/dist/components/EditableField/EditableFieldInput.mjs.map +1 -1
  338. package/dist/components/EditableField/EditableFieldLayout.cjs +13 -13
  339. package/dist/components/EditableField/EditableFieldLayout.cjs.map +1 -1
  340. package/dist/components/EditableField/EditableFieldLayout.d.ts +1 -1
  341. package/dist/components/EditableField/EditableFieldLayout.d.ts.map +1 -1
  342. package/dist/components/EditableField/EditableFieldLayout.mjs +8 -8
  343. package/dist/components/EditableField/EditableFieldLayout.mjs.map +1 -1
  344. package/dist/components/EditableField/EditableFieldTextArea.cjs +19 -15
  345. package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
  346. package/dist/components/EditableField/EditableFieldTextArea.d.ts +2 -1
  347. package/dist/components/EditableField/EditableFieldTextArea.d.ts.map +1 -1
  348. package/dist/components/EditableField/EditableFieldTextArea.mjs +17 -13
  349. package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
  350. package/dist/components/Flags/Flag.cjs +2 -2
  351. package/dist/components/Flags/Flag.cjs.map +1 -1
  352. package/dist/components/Flags/Flag.d.ts.map +1 -1
  353. package/dist/components/Flags/Flag.mjs +2 -2
  354. package/dist/components/Flags/Flag.mjs.map +1 -1
  355. package/dist/components/Footer/index.cjs +8 -8
  356. package/dist/components/Footer/index.cjs.map +1 -1
  357. package/dist/components/Footer/index.mjs +8 -8
  358. package/dist/components/Footer/index.mjs.map +1 -1
  359. package/dist/components/Form/Form.cjs +2 -2
  360. package/dist/components/Form/Form.d.ts.map +1 -1
  361. package/dist/components/Form/Form.mjs +2 -2
  362. package/dist/components/Form/FormBase.cjs +38 -42
  363. package/dist/components/Form/FormBase.cjs.map +1 -1
  364. package/dist/components/Form/FormBase.d.ts +11 -8
  365. package/dist/components/Form/FormBase.d.ts.map +1 -1
  366. package/dist/components/Form/FormBase.mjs +39 -43
  367. package/dist/components/Form/FormBase.mjs.map +1 -1
  368. package/dist/components/Form/FormControl.cjs +4 -7
  369. package/dist/components/Form/FormControl.cjs.map +1 -1
  370. package/dist/components/Form/FormControl.d.ts +3 -1
  371. package/dist/components/Form/FormControl.d.ts.map +1 -1
  372. package/dist/components/Form/FormControl.mjs +4 -7
  373. package/dist/components/Form/FormControl.mjs.map +1 -1
  374. package/dist/components/Form/FormDescription.cjs +4 -7
  375. package/dist/components/Form/FormDescription.cjs.map +1 -1
  376. package/dist/components/Form/FormDescription.d.ts +2 -2
  377. package/dist/components/Form/FormDescription.d.ts.map +1 -1
  378. package/dist/components/Form/FormDescription.mjs +4 -7
  379. package/dist/components/Form/FormDescription.mjs.map +1 -1
  380. package/dist/components/Form/FormField.cjs +7 -7
  381. package/dist/components/Form/FormField.cjs.map +1 -1
  382. package/dist/components/Form/FormField.mjs +4 -4
  383. package/dist/components/Form/FormField.mjs.map +1 -1
  384. package/dist/components/Form/FormItem.cjs +8 -9
  385. package/dist/components/Form/FormItem.cjs.map +1 -1
  386. package/dist/components/Form/FormItem.d.ts +2 -2
  387. package/dist/components/Form/FormItem.d.ts.map +1 -1
  388. package/dist/components/Form/FormItem.mjs +5 -6
  389. package/dist/components/Form/FormItem.mjs.map +1 -1
  390. package/dist/components/Form/FormLabel.cjs +7 -7
  391. package/dist/components/Form/FormLabel.cjs.map +1 -1
  392. package/dist/components/Form/FormLabel.d.ts +3 -1
  393. package/dist/components/Form/FormLabel.d.ts.map +1 -1
  394. package/dist/components/Form/FormLabel.mjs +7 -7
  395. package/dist/components/Form/FormLabel.mjs.map +1 -1
  396. package/dist/components/Form/FormMessage.cjs +2 -2
  397. package/dist/components/Form/FormMessage.cjs.map +1 -1
  398. package/dist/components/Form/FormMessage.mjs +2 -2
  399. package/dist/components/Form/FormMessage.mjs.map +1 -1
  400. package/dist/components/Form/elements/AutoSizeTextAreaElement.cjs +2 -2
  401. package/dist/components/Form/elements/AutoSizeTextAreaElement.mjs +2 -2
  402. package/dist/components/Form/elements/CheckboxElement.cjs +4 -4
  403. package/dist/components/Form/elements/CheckboxElement.d.ts.map +1 -1
  404. package/dist/components/Form/elements/CheckboxElement.mjs +4 -4
  405. package/dist/components/Form/elements/EditableFieldInputElement.cjs +2 -2
  406. package/dist/components/Form/elements/EditableFieldInputElement.d.ts.map +1 -1
  407. package/dist/components/Form/elements/EditableFieldInputElement.mjs +2 -2
  408. package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs +2 -2
  409. package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts.map +1 -1
  410. package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs +2 -2
  411. package/dist/components/Form/elements/FormElement.cjs +2 -3
  412. package/dist/components/Form/elements/FormElement.cjs.map +1 -1
  413. package/dist/components/Form/elements/FormElement.d.ts.map +1 -1
  414. package/dist/components/Form/elements/FormElement.mjs +2 -3
  415. package/dist/components/Form/elements/FormElement.mjs.map +1 -1
  416. package/dist/components/Form/elements/FormElementWrapper.cjs +2 -2
  417. package/dist/components/Form/elements/FormElementWrapper.cjs.map +1 -1
  418. package/dist/components/Form/elements/FormElementWrapper.mjs +2 -2
  419. package/dist/components/Form/elements/FormElementWrapper.mjs.map +1 -1
  420. package/dist/components/Form/elements/InputElement.cjs +4 -3
  421. package/dist/components/Form/elements/InputElement.cjs.map +1 -1
  422. package/dist/components/Form/elements/InputElement.d.ts.map +1 -1
  423. package/dist/components/Form/elements/InputElement.mjs +4 -3
  424. package/dist/components/Form/elements/InputElement.mjs.map +1 -1
  425. package/dist/components/Form/elements/InputPasswordElement.cjs +2 -2
  426. package/dist/components/Form/elements/InputPasswordElement.d.ts.map +1 -1
  427. package/dist/components/Form/elements/InputPasswordElement.mjs +2 -2
  428. package/dist/components/Form/elements/MultiselectElement.cjs +2 -2
  429. package/dist/components/Form/elements/MultiselectElement.d.ts.map +1 -1
  430. package/dist/components/Form/elements/MultiselectElement.mjs +2 -2
  431. package/dist/components/Form/elements/SelectElement.cjs +2 -2
  432. package/dist/components/Form/elements/SelectElement.mjs +2 -2
  433. package/dist/components/Form/elements/SwitchSelectorElement.cjs +2 -2
  434. package/dist/components/Form/elements/SwitchSelectorElement.d.ts.map +1 -1
  435. package/dist/components/Form/elements/SwitchSelectorElement.mjs +2 -2
  436. package/dist/components/Form/elements/TextAreaElement.cjs +2 -2
  437. package/dist/components/Form/elements/TextAreaElement.d.ts.map +1 -1
  438. package/dist/components/Form/elements/TextAreaElement.mjs +2 -2
  439. package/dist/components/Form/elements/index.cjs +1 -1
  440. package/dist/components/Form/elements/index.d.ts.map +1 -1
  441. package/dist/components/Form/elements/index.mjs +1 -1
  442. package/dist/components/Form/index.cjs +1 -1
  443. package/dist/components/Form/index.mjs +1 -1
  444. package/dist/components/Form/layout/FormItemLayout.cjs +2 -2
  445. package/dist/components/Form/layout/FormItemLayout.d.ts.map +1 -1
  446. package/dist/components/Form/layout/FormItemLayout.mjs +2 -2
  447. package/dist/components/Form/layout/FormLabelLayout.cjs +5 -5
  448. package/dist/components/Form/layout/FormLabelLayout.cjs.map +1 -1
  449. package/dist/components/Form/layout/FormLabelLayout.mjs +5 -5
  450. package/dist/components/Form/layout/FormLabelLayout.mjs.map +1 -1
  451. package/dist/components/Form/layout/RequiredStar.cjs +2 -2
  452. package/dist/components/Form/layout/RequiredStar.cjs.map +1 -1
  453. package/dist/components/Form/layout/RequiredStar.mjs +2 -2
  454. package/dist/components/Form/layout/RequiredStar.mjs.map +1 -1
  455. package/dist/components/Form/layout/index.cjs +1 -1
  456. package/dist/components/Form/layout/index.d.ts.map +1 -1
  457. package/dist/components/Form/layout/index.mjs +1 -1
  458. package/dist/components/Headers/SectionScroller.cjs +4 -4
  459. package/dist/components/Headers/SectionScroller.cjs.map +1 -1
  460. package/dist/components/Headers/index.cjs +12 -12
  461. package/dist/components/Headers/index.cjs.map +1 -1
  462. package/dist/components/Headers/index.d.ts.map +1 -1
  463. package/dist/components/Headers/index.mjs +12 -12
  464. package/dist/components/Headers/index.mjs.map +1 -1
  465. package/dist/components/IDE/Code.cjs +59 -64
  466. package/dist/components/IDE/Code.cjs.map +1 -1
  467. package/dist/components/IDE/Code.d.ts +5 -3
  468. package/dist/components/IDE/Code.d.ts.map +1 -1
  469. package/dist/components/IDE/Code.mjs +59 -64
  470. package/dist/components/IDE/Code.mjs.map +1 -1
  471. package/dist/components/IDE/CodeBlockClient.cjs +9 -9
  472. package/dist/components/IDE/CodeBlockClient.cjs.map +1 -1
  473. package/dist/components/IDE/CodeBlockClient.d.ts.map +1 -1
  474. package/dist/components/IDE/CodeBlockClient.mjs +5 -5
  475. package/dist/components/IDE/CodeBlockClient.mjs.map +1 -1
  476. package/dist/components/IDE/CodeBlockServer.cjs +5 -5
  477. package/dist/components/IDE/CodeBlockServer.cjs.map +1 -1
  478. package/dist/components/IDE/CodeBlockServer.d.ts.map +1 -1
  479. package/dist/components/IDE/CodeBlockServer.mjs +4 -4
  480. package/dist/components/IDE/CodeBlockServer.mjs.map +1 -1
  481. package/dist/components/IDE/CodeConditionalRenderer.cjs +2 -2
  482. package/dist/components/IDE/CodeConditionalRenderer.cjs.map +1 -1
  483. package/dist/components/IDE/CodeConditionalRenderer.d.ts.map +1 -1
  484. package/dist/components/IDE/CodeConditionalRenderer.mjs +2 -2
  485. package/dist/components/IDE/CodeConditionalRenderer.mjs.map +1 -1
  486. package/dist/components/IDE/CodeContext.cjs +6 -6
  487. package/dist/components/IDE/CodeContext.cjs.map +1 -1
  488. package/dist/components/IDE/CodeContext.mjs +3 -3
  489. package/dist/components/IDE/CodeContext.mjs.map +1 -1
  490. package/dist/components/IDE/CodeFormatSelector.cjs +7 -7
  491. package/dist/components/IDE/CodeFormatSelector.cjs.map +1 -1
  492. package/dist/components/IDE/CodeFormatSelector.mjs +7 -7
  493. package/dist/components/IDE/CodeFormatSelector.mjs.map +1 -1
  494. package/dist/components/IDE/ContentDeclarationFormatSelector.cjs +8 -8
  495. package/dist/components/IDE/ContentDeclarationFormatSelector.cjs.map +1 -1
  496. package/dist/components/IDE/ContentDeclarationFormatSelector.mjs +8 -8
  497. package/dist/components/IDE/ContentDeclarationFormatSelector.mjs.map +1 -1
  498. package/dist/components/IDE/CopyButton.cjs +5 -5
  499. package/dist/components/IDE/CopyButton.cjs.map +1 -1
  500. package/dist/components/IDE/CopyButton.mjs +2 -2
  501. package/dist/components/IDE/CopyButton.mjs.map +1 -1
  502. package/dist/components/IDE/FileList.cjs +7 -7
  503. package/dist/components/IDE/FileList.cjs.map +1 -1
  504. package/dist/components/IDE/FileList.mjs +7 -7
  505. package/dist/components/IDE/FileList.mjs.map +1 -1
  506. package/dist/components/IDE/FileTree.cjs +10 -10
  507. package/dist/components/IDE/FileTree.cjs.map +1 -1
  508. package/dist/components/IDE/FileTree.d.ts.map +1 -1
  509. package/dist/components/IDE/FileTree.mjs +8 -8
  510. package/dist/components/IDE/FileTree.mjs.map +1 -1
  511. package/dist/components/IDE/IDE.cjs +15 -15
  512. package/dist/components/IDE/IDE.cjs.map +1 -1
  513. package/dist/components/IDE/IDE.mjs +12 -12
  514. package/dist/components/IDE/IDE.mjs.map +1 -1
  515. package/dist/components/IDE/MarkDownRender.cjs +4 -4
  516. package/dist/components/IDE/MarkDownRender.cjs.map +1 -1
  517. package/dist/components/IDE/MarkDownRender.mjs +4 -4
  518. package/dist/components/IDE/MarkDownRender.mjs.map +1 -1
  519. package/dist/components/IDE/MonacoCode.cjs +18 -12
  520. package/dist/components/IDE/MonacoCode.cjs.map +1 -1
  521. package/dist/components/IDE/MonacoCode.d.ts.map +1 -1
  522. package/dist/components/IDE/MonacoCode.mjs +13 -7
  523. package/dist/components/IDE/MonacoCode.mjs.map +1 -1
  524. package/dist/components/IDE/PackageManagerSelector.cjs +7 -7
  525. package/dist/components/IDE/PackageManagerSelector.cjs.map +1 -1
  526. package/dist/components/IDE/PackageManagerSelector.mjs +7 -7
  527. package/dist/components/IDE/PackageManagerSelector.mjs.map +1 -1
  528. package/dist/components/IDE/createFileTree.cjs +1 -1
  529. package/dist/components/IDE/createFileTree.cjs.map +1 -1
  530. package/dist/components/IDE/createFileTree.mjs +1 -1
  531. package/dist/components/IDE/createFileTree.mjs.map +1 -1
  532. package/dist/components/InformationTag/index.cjs +2 -2
  533. package/dist/components/InformationTag/index.cjs.map +1 -1
  534. package/dist/components/InformationTag/index.mjs +2 -2
  535. package/dist/components/InformationTag/index.mjs.map +1 -1
  536. package/dist/components/Input/Checkbox.cjs +31 -34
  537. package/dist/components/Input/Checkbox.cjs.map +1 -1
  538. package/dist/components/Input/Checkbox.d.ts +2 -2
  539. package/dist/components/Input/Checkbox.d.ts.map +1 -1
  540. package/dist/components/Input/Checkbox.mjs +31 -34
  541. package/dist/components/Input/Checkbox.mjs.map +1 -1
  542. package/dist/components/Input/Input.cjs +18 -17
  543. package/dist/components/Input/Input.cjs.map +1 -1
  544. package/dist/components/Input/Input.d.ts +2 -2
  545. package/dist/components/Input/Input.d.ts.map +1 -1
  546. package/dist/components/Input/Input.mjs +18 -17
  547. package/dist/components/Input/Input.mjs.map +1 -1
  548. package/dist/components/Input/InputPassword.cjs +30 -40
  549. package/dist/components/Input/InputPassword.cjs.map +1 -1
  550. package/dist/components/Input/InputPassword.d.ts +2 -1
  551. package/dist/components/Input/InputPassword.d.ts.map +1 -1
  552. package/dist/components/Input/InputPassword.mjs +30 -40
  553. package/dist/components/Input/InputPassword.mjs.map +1 -1
  554. package/dist/components/Label/index.cjs +6 -6
  555. package/dist/components/Label/index.cjs.map +1 -1
  556. package/dist/components/Label/index.d.ts +2 -2
  557. package/dist/components/Label/index.d.ts.map +1 -1
  558. package/dist/components/Label/index.mjs +6 -6
  559. package/dist/components/Label/index.mjs.map +1 -1
  560. package/dist/components/Link/Link.cjs +6 -8
  561. package/dist/components/Link/Link.cjs.map +1 -1
  562. package/dist/components/Link/Link.d.ts +5 -6
  563. package/dist/components/Link/Link.d.ts.map +1 -1
  564. package/dist/components/Link/Link.mjs +7 -9
  565. package/dist/components/Link/Link.mjs.map +1 -1
  566. package/dist/components/Link/index.cjs +1 -0
  567. package/dist/components/Link/index.cjs.map +1 -1
  568. package/dist/components/Link/index.mjs +3 -2
  569. package/dist/components/Loader/index.cjs +4 -4
  570. package/dist/components/Loader/index.cjs.map +1 -1
  571. package/dist/components/Loader/index.d.ts.map +1 -1
  572. package/dist/components/Loader/index.mjs +4 -4
  573. package/dist/components/Loader/index.mjs.map +1 -1
  574. package/dist/components/Loader/spinner.cjs +9 -9
  575. package/dist/components/Loader/spinner.cjs.map +1 -1
  576. package/dist/components/Loader/spinner.mjs +9 -9
  577. package/dist/components/Loader/spinner.mjs.map +1 -1
  578. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +26 -27
  579. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
  580. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +20 -21
  581. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
  582. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +6 -6
  583. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs.map +1 -1
  584. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +3 -3
  585. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs.map +1 -1
  586. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +22 -23
  587. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -1
  588. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +16 -17
  589. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -1
  590. package/dist/components/Logo/LogoCircle.cjs +4 -4
  591. package/dist/components/Logo/LogoCircle.cjs.map +1 -1
  592. package/dist/components/Logo/LogoCircle.mjs +4 -4
  593. package/dist/components/Logo/LogoCircle.mjs.map +1 -1
  594. package/dist/components/Logo/LogoNoFrame.cjs +17 -17
  595. package/dist/components/Logo/LogoNoFrame.cjs.map +1 -1
  596. package/dist/components/Logo/LogoNoFrame.mjs +17 -17
  597. package/dist/components/Logo/LogoNoFrame.mjs.map +1 -1
  598. package/dist/components/Logo/LogoSquare.cjs +4 -4
  599. package/dist/components/Logo/LogoSquare.cjs.map +1 -1
  600. package/dist/components/Logo/LogoSquare.mjs +4 -4
  601. package/dist/components/Logo/LogoSquare.mjs.map +1 -1
  602. package/dist/components/Logo/LogoSquircle.cjs +8 -8
  603. package/dist/components/Logo/LogoSquircle.cjs.map +1 -1
  604. package/dist/components/Logo/LogoSquircle.mjs +8 -8
  605. package/dist/components/Logo/LogoSquircle.mjs.map +1 -1
  606. package/dist/components/Logo/LogoTextOnly.cjs +17 -17
  607. package/dist/components/Logo/LogoTextOnly.cjs.map +1 -1
  608. package/dist/components/Logo/LogoTextOnly.mjs +17 -17
  609. package/dist/components/Logo/LogoTextOnly.mjs.map +1 -1
  610. package/dist/components/Logo/LogoWithTextBelowCircle.cjs +19 -19
  611. package/dist/components/Logo/LogoWithTextBelowCircle.cjs.map +1 -1
  612. package/dist/components/Logo/LogoWithTextBelowCircle.mjs +19 -19
  613. package/dist/components/Logo/LogoWithTextBelowCircle.mjs.map +1 -1
  614. package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs +17 -17
  615. package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.map +1 -1
  616. package/dist/components/Logo/LogoWithTextBelowNoFrame.mjs +17 -17
  617. package/dist/components/Logo/LogoWithTextBelowNoFrame.mjs.map +1 -1
  618. package/dist/components/Logo/LogoWithTextBelowSquircle.cjs +8 -8
  619. package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.map +1 -1
  620. package/dist/components/Logo/LogoWithTextBelowSquircle.mjs +8 -8
  621. package/dist/components/Logo/LogoWithTextBelowSquircle.mjs.map +1 -1
  622. package/dist/components/Logo/LogoWithTextCircle.cjs +35 -35
  623. package/dist/components/Logo/LogoWithTextCircle.cjs.map +1 -1
  624. package/dist/components/Logo/LogoWithTextCircle.mjs +35 -35
  625. package/dist/components/Logo/LogoWithTextCircle.mjs.map +1 -1
  626. package/dist/components/Logo/LogoWithTextNoFrame.cjs +17 -17
  627. package/dist/components/Logo/LogoWithTextNoFrame.cjs.map +1 -1
  628. package/dist/components/Logo/LogoWithTextNoFrame.mjs +17 -17
  629. package/dist/components/Logo/LogoWithTextNoFrame.mjs.map +1 -1
  630. package/dist/components/Logo/LogoWithTextSquircle.cjs +8 -8
  631. package/dist/components/Logo/LogoWithTextSquircle.cjs.map +1 -1
  632. package/dist/components/Logo/LogoWithTextSquircle.mjs +8 -8
  633. package/dist/components/Logo/LogoWithTextSquircle.mjs.map +1 -1
  634. package/dist/components/Logo/index.cjs +12 -12
  635. package/dist/components/Logo/index.cjs.map +1 -1
  636. package/dist/components/Logo/index.mjs +12 -12
  637. package/dist/components/Logo/index.mjs.map +1 -1
  638. package/dist/components/MarkDownRender/index.cjs +21 -21
  639. package/dist/components/MarkDownRender/index.cjs.map +1 -1
  640. package/dist/components/MarkDownRender/index.d.ts.map +1 -1
  641. package/dist/components/MarkDownRender/index.mjs +22 -22
  642. package/dist/components/MarkDownRender/index.mjs.map +1 -1
  643. package/dist/components/MaxHeightSmoother/index.cjs +3 -3
  644. package/dist/components/MaxHeightSmoother/index.cjs.map +1 -1
  645. package/dist/components/MaxHeightSmoother/index.mjs +3 -3
  646. package/dist/components/MaxHeightSmoother/index.mjs.map +1 -1
  647. package/dist/components/MaxWidthSmoother/index.cjs +3 -3
  648. package/dist/components/MaxWidthSmoother/index.cjs.map +1 -1
  649. package/dist/components/MaxWidthSmoother/index.mjs +3 -3
  650. package/dist/components/MaxWidthSmoother/index.mjs.map +1 -1
  651. package/dist/components/Modal/Modal.cjs +11 -11
  652. package/dist/components/Modal/Modal.cjs.map +1 -1
  653. package/dist/components/Modal/Modal.mjs +12 -12
  654. package/dist/components/Modal/Modal.mjs.map +1 -1
  655. package/dist/components/Navbar/Burger.cjs +9 -9
  656. package/dist/components/Navbar/Burger.cjs.map +1 -1
  657. package/dist/components/Navbar/Burger.mjs +9 -9
  658. package/dist/components/Navbar/Burger.mjs.map +1 -1
  659. package/dist/components/Navbar/DesktopNavbar.cjs +4 -4
  660. package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -1
  661. package/dist/components/Navbar/DesktopNavbar.d.ts.map +1 -1
  662. package/dist/components/Navbar/DesktopNavbar.mjs +4 -4
  663. package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -1
  664. package/dist/components/Navbar/MobileNavbar.cjs +15 -15
  665. package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
  666. package/dist/components/Navbar/MobileNavbar.d.ts.map +1 -1
  667. package/dist/components/Navbar/MobileNavbar.mjs +11 -11
  668. package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
  669. package/dist/components/Navbar/index.cjs +4 -4
  670. package/dist/components/Navbar/index.cjs.map +1 -1
  671. package/dist/components/Navbar/index.d.ts.map +1 -1
  672. package/dist/components/Navbar/index.mjs +4 -4
  673. package/dist/components/Navbar/index.mjs.map +1 -1
  674. package/dist/components/Navbar/useNavigation.cjs +3 -3
  675. package/dist/components/Navbar/useNavigation.cjs.map +1 -1
  676. package/dist/components/Pattern/DotPattern.cjs +7 -7
  677. package/dist/components/Pattern/DotPattern.cjs.map +1 -1
  678. package/dist/components/Pattern/DotPattern.mjs +5 -5
  679. package/dist/components/Pattern/DotPattern.mjs.map +1 -1
  680. package/dist/components/Pattern/GridPattern.cjs +8 -8
  681. package/dist/components/Pattern/GridPattern.cjs.map +1 -1
  682. package/dist/components/Pattern/GridPattern.mjs +6 -6
  683. package/dist/components/Pattern/GridPattern.mjs.map +1 -1
  684. package/dist/components/Pattern/SpotLight.cjs +7 -7
  685. package/dist/components/Pattern/SpotLight.cjs.map +1 -1
  686. package/dist/components/Pattern/SpotLight.mjs +7 -7
  687. package/dist/components/Pattern/SpotLight.mjs.map +1 -1
  688. package/dist/components/Popover/index.cjs +3 -3
  689. package/dist/components/Popover/index.cjs.map +1 -1
  690. package/dist/components/Popover/index.mjs +3 -3
  691. package/dist/components/Popover/index.mjs.map +1 -1
  692. package/dist/components/PressableSpan/PressableSpan.cjs +8 -8
  693. package/dist/components/PressableSpan/PressableSpan.cjs.map +1 -1
  694. package/dist/components/PressableSpan/PressableSpan.mjs +2 -2
  695. package/dist/components/PressableSpan/PressableSpan.mjs.map +1 -1
  696. package/dist/components/ProfileDropDown/index.cjs +5 -5
  697. package/dist/components/ProfileDropDown/index.cjs.map +1 -1
  698. package/dist/components/ProfileDropDown/index.mjs +5 -5
  699. package/dist/components/ProfileDropDown/index.mjs.map +1 -1
  700. package/dist/components/RightDrawer/RightDrawer.cjs +14 -14
  701. package/dist/components/RightDrawer/RightDrawer.cjs.map +1 -1
  702. package/dist/components/RightDrawer/RightDrawer.d.ts.map +1 -1
  703. package/dist/components/RightDrawer/RightDrawer.mjs +9 -9
  704. package/dist/components/RightDrawer/RightDrawer.mjs.map +1 -1
  705. package/dist/components/Select/Multiselect.cjs +94 -100
  706. package/dist/components/Select/Multiselect.cjs.map +1 -1
  707. package/dist/components/Select/Multiselect.d.ts +9 -29
  708. package/dist/components/Select/Multiselect.d.ts.map +1 -1
  709. package/dist/components/Select/Multiselect.mjs +81 -87
  710. package/dist/components/Select/Multiselect.mjs.map +1 -1
  711. package/dist/components/Select/Select.cjs +30 -37
  712. package/dist/components/Select/Select.cjs.map +1 -1
  713. package/dist/components/Select/Select.d.ts +10 -9
  714. package/dist/components/Select/Select.d.ts.map +1 -1
  715. package/dist/components/Select/Select.mjs +30 -37
  716. package/dist/components/Select/Select.mjs.map +1 -1
  717. package/dist/components/SwitchSelector/index.cjs +11 -11
  718. package/dist/components/SwitchSelector/index.cjs.map +1 -1
  719. package/dist/components/SwitchSelector/index.d.ts +1 -1
  720. package/dist/components/SwitchSelector/index.d.ts.map +1 -1
  721. package/dist/components/SwitchSelector/index.mjs +5 -5
  722. package/dist/components/SwitchSelector/index.mjs.map +1 -1
  723. package/dist/components/TabSelector/TabSelector.cjs +7 -7
  724. package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
  725. package/dist/components/TabSelector/TabSelector.mjs +3 -3
  726. package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
  727. package/dist/components/Tag/index.cjs +27 -32
  728. package/dist/components/Tag/index.cjs.map +1 -1
  729. package/dist/components/Tag/index.d.ts +6 -5
  730. package/dist/components/Tag/index.d.ts.map +1 -1
  731. package/dist/components/Tag/index.mjs +27 -32
  732. package/dist/components/Tag/index.mjs.map +1 -1
  733. package/dist/components/TextArea/AutoSizeTextArea.cjs +17 -11
  734. package/dist/components/TextArea/AutoSizeTextArea.cjs.map +1 -1
  735. package/dist/components/TextArea/AutoSizeTextArea.d.ts +2 -1
  736. package/dist/components/TextArea/AutoSizeTextArea.d.ts.map +1 -1
  737. package/dist/components/TextArea/AutoSizeTextArea.mjs +12 -6
  738. package/dist/components/TextArea/AutoSizeTextArea.mjs.map +1 -1
  739. package/dist/components/TextArea/TextArea.cjs +21 -20
  740. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  741. package/dist/components/TextArea/TextArea.d.ts +2 -2
  742. package/dist/components/TextArea/TextArea.d.ts.map +1 -1
  743. package/dist/components/TextArea/TextArea.mjs +21 -20
  744. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  745. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs +13 -13
  746. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.map +1 -1
  747. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +11 -11
  748. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs.map +1 -1
  749. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs +7 -7
  750. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.map +1 -1
  751. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts.map +1 -1
  752. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs +5 -5
  753. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs.map +1 -1
  754. package/dist/components/Toaster/Toast.cjs +28 -29
  755. package/dist/components/Toaster/Toast.cjs.map +1 -1
  756. package/dist/components/Toaster/Toast.d.ts +11 -10
  757. package/dist/components/Toaster/Toast.d.ts.map +1 -1
  758. package/dist/components/Toaster/Toast.mjs +28 -29
  759. package/dist/components/Toaster/Toast.mjs.map +1 -1
  760. package/dist/components/Toaster/Toaster.cjs +8 -8
  761. package/dist/components/Toaster/Toaster.cjs.map +1 -1
  762. package/dist/components/Toaster/Toaster.mjs +8 -8
  763. package/dist/components/Toaster/Toaster.mjs.map +1 -1
  764. package/dist/components/Toaster/useToast.cjs +3 -3
  765. package/dist/components/Toaster/useToast.cjs.map +1 -1
  766. package/dist/components/WithResizer/index.cjs +11 -11
  767. package/dist/components/WithResizer/index.cjs.map +1 -1
  768. package/dist/components/WithResizer/index.mjs +3 -3
  769. package/dist/components/WithResizer/index.mjs.map +1 -1
  770. package/dist/components/index.cjs +2 -1
  771. package/dist/components/index.cjs.map +1 -1
  772. package/dist/components/index.mjs +3 -2
  773. package/dist/hooks/index.cjs +1 -1
  774. package/dist/hooks/index.mjs +1 -1
  775. package/dist/hooks/intlayerAPIHooks.cjs +1 -1
  776. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  777. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  778. package/dist/hooks/intlayerAPIHooks.mjs +1 -1
  779. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  780. package/dist/hooks/useAsync/useAsync.cjs +14 -14
  781. package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
  782. package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
  783. package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
  784. package/dist/hooks/useAsync/useAsyncStateStore.cjs +6 -6
  785. package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -1
  786. package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -1
  787. package/dist/hooks/useAsync/useAsyncStateStore.mjs +2 -2
  788. package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -1
  789. package/dist/hooks/useAsync/useAsyncWrapper.cjs.map +1 -1
  790. package/dist/hooks/useAsync/useAsyncWrapper.d.ts.map +1 -1
  791. package/dist/hooks/useAsync/useAsyncWrapper.mjs.map +1 -1
  792. package/dist/hooks/useDevice.cjs +3 -3
  793. package/dist/hooks/useDevice.cjs.map +1 -1
  794. package/dist/hooks/useDevice.d.ts.map +1 -1
  795. package/dist/hooks/useDevice.mjs.map +1 -1
  796. package/dist/hooks/useGetAllDictionaries.cjs +3 -3
  797. package/dist/hooks/useGetAllDictionaries.cjs.map +1 -1
  798. package/dist/hooks/useGetAllDictionaries.d.ts.map +1 -1
  799. package/dist/hooks/useGetAllDictionaries.mjs.map +1 -1
  800. package/dist/hooks/useGetElementOrWindow.cjs +3 -3
  801. package/dist/hooks/useGetElementOrWindow.cjs.map +1 -1
  802. package/dist/hooks/useIntlayerAPI.cjs +7 -5
  803. package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
  804. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  805. package/dist/hooks/useIntlayerAPI.mjs +3 -1
  806. package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
  807. package/dist/hooks/useIsDarkMode.cjs +3 -3
  808. package/dist/hooks/useIsDarkMode.cjs.map +1 -1
  809. package/dist/hooks/useIsMounted.cjs +3 -3
  810. package/dist/hooks/useIsMounted.cjs.map +1 -1
  811. package/dist/hooks/useItemSelector.cjs +4 -4
  812. package/dist/hooks/useItemSelector.cjs.map +1 -1
  813. package/dist/hooks/usePersistedStore.cjs +5 -5
  814. package/dist/hooks/usePersistedStore.cjs.map +1 -1
  815. package/dist/hooks/useScrollBlockage/index.cjs +1 -1
  816. package/dist/hooks/useScrollBlockage/index.mjs +1 -1
  817. package/dist/hooks/useScrollDetection.cjs +8 -8
  818. package/dist/hooks/useScrollDetection.cjs.map +1 -1
  819. package/dist/hooks/useScrollDetection.mjs +1 -1
  820. package/dist/{index-O_7rYrbW.js → index-BCuMWKyy.js} +3 -3
  821. package/dist/index-BCuMWKyy.js.map +1 -0
  822. package/dist/{index-BVYRWLUL.js → index-BKE0uywA.js} +2 -2
  823. package/dist/index-BKE0uywA.js.map +1 -0
  824. package/dist/index-BUe-qmA0.js +191 -0
  825. package/dist/index-BUe-qmA0.js.map +1 -0
  826. package/dist/{index-Cg-S9ry9.cjs → index-BYzBot7l.cjs} +4 -4
  827. package/dist/{index-O_7rYrbW.js.map → index-BYzBot7l.cjs.map} +1 -1
  828. package/dist/{index-DTQyeqio.cjs → index-CsenS2hX.cjs} +2 -2
  829. package/dist/index-CsenS2hX.cjs.map +1 -0
  830. package/dist/index-cg9H6eBs.cjs +190 -0
  831. package/dist/index-cg9H6eBs.cjs.map +1 -0
  832. package/dist/tailwind.config.cjs.map +1 -1
  833. package/dist/tailwind.config.mjs.map +1 -1
  834. package/dist/tailwind.css +1 -1
  835. package/dist/zod-BV4nCGJE.js.map +1 -1
  836. package/dist/zod-DSrtTSD_.cjs.map +1 -1
  837. package/package.json +24 -24
  838. package/dist/Form-CSMiPnjC.cjs.map +0 -1
  839. package/dist/Form-DlqjTz3u.js.map +0 -1
  840. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +0 -143
  841. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +0 -1
  842. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +0 -1
  843. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +0 -143
  844. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +0 -1
  845. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +0 -361
  846. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +0 -1
  847. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +0 -1
  848. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +0 -361
  849. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +0 -1
  850. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs +0 -70
  851. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs.map +0 -1
  852. package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts +0 -10
  853. package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts.map +0 -1
  854. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs +0 -70
  855. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs.map +0 -1
  856. package/dist/components/DictionaryFieldEditor/editorView.content.cjs +0 -123
  857. package/dist/components/DictionaryFieldEditor/editorView.content.cjs.map +0 -1
  858. package/dist/components/DictionaryFieldEditor/editorView.content.d.ts.map +0 -1
  859. package/dist/components/DictionaryFieldEditor/editorView.content.mjs +0 -123
  860. package/dist/components/DictionaryFieldEditor/editorView.content.mjs.map +0 -1
  861. package/dist/index-B-adg6xa.js +0 -206
  862. package/dist/index-B-adg6xa.js.map +0 -1
  863. package/dist/index-BVYRWLUL.js.map +0 -1
  864. package/dist/index-Cg-S9ry9.cjs.map +0 -1
  865. package/dist/index-DAsui9u9.cjs +0 -205
  866. package/dist/index-DAsui9u9.cjs.map +0 -1
  867. package/dist/index-DTQyeqio.cjs.map +0 -1
  868. package/dist/jsx-runtime-CgFM7lM3.cjs +0 -934
  869. package/dist/jsx-runtime-CgFM7lM3.cjs.map +0 -1
  870. package/dist/jsx-runtime-DQkoUcjV.js +0 -935
  871. package/dist/jsx-runtime-DQkoUcjV.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { j as jsxRuntimeExports } from "../../jsx-runtime-DQkoUcjV.js";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { useMemo, useState, useEffect } from "react";
4
4
  import { Input } from "../Input/Input.mjs";
5
- import "../Input/InputPassword.mjs";
5
+ import "lucide-react";
6
6
  import "../Input/Checkbox.mjs";
7
7
  import "../Select/Multiselect.mjs";
8
8
  import { Select } from "../Select/Select.mjs";
@@ -44,18 +44,18 @@ const EnumKeyInput = ({ value, onChange }) => {
44
44
  numberValue,
45
45
  onChange
46
46
  ]);
47
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-1", children: [
48
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, { onValueChange: setComparator, defaultValue: initialComparator, children: [
49
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Trigger, { className: "w-20", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, { placeholder: "Select a comparator" }) }),
50
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, { children: [
51
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: "<", children: `<` }),
52
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: "<=", children: `<=` }),
53
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: "=", children: `=` }),
54
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: ">=", children: `>=` }),
55
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: ">", children: `>` })
47
+ return /* @__PURE__ */ jsxs("div", { className: "flex gap-1", children: [
48
+ /* @__PURE__ */ jsxs(Select, { onValueChange: setComparator, defaultValue: initialComparator, children: [
49
+ /* @__PURE__ */ jsx(Select.Trigger, { className: "w-20", children: /* @__PURE__ */ jsx(Select.Value, { placeholder: "Select a comparator" }) }),
50
+ /* @__PURE__ */ jsxs(Select.Content, { children: [
51
+ /* @__PURE__ */ jsx(Select.Item, { value: "<", children: `<` }),
52
+ /* @__PURE__ */ jsx(Select.Item, { value: "<=", children: `<=` }),
53
+ /* @__PURE__ */ jsx(Select.Item, { value: "=", children: `=` }),
54
+ /* @__PURE__ */ jsx(Select.Item, { value: ">=", children: `>=` }),
55
+ /* @__PURE__ */ jsx(Select.Item, { value: ">", children: `>` })
56
56
  ] })
57
57
  ] }),
58
- /* @__PURE__ */ jsxRuntimeExports.jsx(
58
+ /* @__PURE__ */ jsx(
59
59
  Input,
60
60
  {
61
61
  type: "number",
@@ -1 +1 @@
1
- {"version":3,"file":"EnumKeyInput.mjs","sources":["../../../src/components/DictionaryFieldEditor/EnumKeyInput.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useMemo, useState, type FC } from 'react';\nimport { Input } from '../Input';\nimport { Select } from '../Select';\n\nconst extractInitialState = (\n value: string | number\n): { comparator: string | undefined; numberValue: string | undefined } => {\n let comparator;\n let numberValue;\n\n if (typeof value === 'number' || !isNaN(Number(value))) {\n // If value is a number or numeric string, set comparator to '=' and numberValue accordingly\n comparator = '=';\n numberValue = value.toString();\n } else if (typeof value === 'string') {\n // Define possible comparators\n const comparators = ['<=', '>=', '<', '>', '='];\n // Find the comparator that matches the start of the string\n const matchedComparator = comparators.find((comp) =>\n value.startsWith(comp)\n );\n if (matchedComparator) {\n comparator = matchedComparator;\n numberValue = value.slice(matchedComparator.length);\n }\n }\n\n return { comparator, numberValue };\n};\n\ntype EnumKeyInputProps = {\n value: string | number;\n onChange: (value: string) => void;\n};\n\n/**\n * Example of values:\n * - `<1`\n * - `>-44.3`\n * - `=999`\n * - `<=1`\n * - `>=1`\n * - 88\n * - `-1`\n *\n */\nexport const EnumKeyInput: FC<EnumKeyInputProps> = ({ value, onChange }) => {\n const { comparator: initialComparator, numberValue: initialNumberValue } =\n useMemo(() => extractInitialState(value), [value]);\n const [comparator, setComparator] = useState<string | null>(\n initialComparator ?? null\n );\n const [numberValue, setNumberValue] = useState<string | null>(\n initialNumberValue ?? null\n );\n\n useEffect(() => {\n if (\n comparator &&\n numberValue &&\n (comparator !== initialComparator || numberValue !== initialNumberValue)\n ) {\n const newValue = `${comparator}${numberValue}`;\n\n onChange(newValue);\n }\n }, [\n comparator,\n initialComparator,\n initialNumberValue,\n numberValue,\n onChange,\n ]);\n\n return (\n <div className=\"flex gap-1\">\n <Select onValueChange={setComparator} defaultValue={initialComparator}>\n <Select.Trigger className=\"w-20\">\n <Select.Value placeholder=\"Select a comparator\" />\n </Select.Trigger>\n <Select.Content>\n <Select.Item value=\"<\">{`<`}</Select.Item>\n <Select.Item value=\"<=\">{`<=`}</Select.Item>\n <Select.Item value=\"=\">{`=`}</Select.Item>\n <Select.Item value=\">=\">{`>=`}</Select.Item>\n <Select.Item value=\">\">{`>`}</Select.Item>\n </Select.Content>\n </Select>\n <Input\n type=\"number\"\n defaultValue={numberValue ?? undefined}\n onChange={(e) => setNumberValue(e.target.value)}\n className=\"w-full\"\n />\n </div>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;;AAMA,MAAM,sBAAsB,CAC1B,UACwE;AACpE,MAAA;AACA,MAAA;AAEA,MAAA,OAAO,UAAU,YAAY,CAAC,MAAM,OAAO,KAAK,CAAC,GAAG;AAEzC,iBAAA;AACb,kBAAc,MAAM,SAAS;AAAA,EAAA,WACpB,OAAO,UAAU,UAAU;AAEpC,UAAM,cAAc,CAAC,MAAM,MAAM,KAAK,KAAK,GAAG;AAE9C,UAAM,oBAAoB,YAAY;AAAA,MAAK,CAAC,SAC1C,MAAM,WAAW,IAAI;AAAA,IACvB;AACA,QAAI,mBAAmB;AACR,mBAAA;AACC,oBAAA,MAAM,MAAM,kBAAkB,MAAM;AAAA,IAAA;AAAA,EACpD;AAGK,SAAA,EAAE,YAAY,YAAY;AACnC;AAkBO,MAAM,eAAsC,CAAC,EAAE,OAAO,eAAe;AAC1E,QAAM,EAAE,YAAY,mBAAmB,aAAa,mBAAmB,IACrE,QAAQ,MAAM,oBAAoB,KAAK,GAAG,CAAC,KAAK,CAAC;AAC7C,QAAA,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC,qBAAqB;AAAA,EACvB;AACM,QAAA,CAAC,aAAa,cAAc,IAAI;AAAA,IACpC,sBAAsB;AAAA,EACxB;AAEA,YAAU,MAAM;AACd,QACE,cACA,gBACC,eAAe,qBAAqB,gBAAgB,qBACrD;AACA,YAAM,WAAW,GAAG,UAAU,GAAG,WAAW;AAE5C,eAAS,QAAQ;AAAA,IAAA;AAAA,EACnB,GACC;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACD;AAGC,SAAAA,kCAAA,KAAC,OAAI,EAAA,WAAU,cACb,UAAA;AAAA,IAAAA,kCAAA,KAAC,QAAO,EAAA,eAAe,eAAe,cAAc,mBAClD,UAAA;AAAA,MAACC,kCAAAA,IAAA,OAAO,SAAP,EAAe,WAAU,QACxB,UAACA,sCAAA,OAAO,OAAP,EAAa,aAAY,sBAAA,CAAsB,EAClD,CAAA;AAAA,MACAD,kCAAAA,KAAC,OAAO,SAAP,EACC,UAAA;AAAA,QAAAC,sCAAC,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,KAAA;AAAA,8CAC3B,OAAO,MAAP,EAAY,OAAM,MAAM,UAAK,MAAA;AAAA,8CAC7B,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,KAAA;AAAA,8CAC3B,OAAO,MAAP,EAAY,OAAM,MAAM,UAAK,MAAA;AAAA,8CAC7B,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,IAAA,CAAA;AAAA,MAAA,EAC9B,CAAA;AAAA,IAAA,GACF;AAAA,IACAA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,cAAc,eAAe;AAAA,QAC7B,UAAU,CAAC,MAAM,eAAe,EAAE,OAAO,KAAK;AAAA,QAC9C,WAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EACZ,GACF;AAEJ;"}
1
+ {"version":3,"file":"EnumKeyInput.mjs","sources":["../../../src/components/DictionaryFieldEditor/EnumKeyInput.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useMemo, useState, type FC } from 'react';\nimport { Input } from '../Input';\nimport { Select } from '../Select';\n\nconst extractInitialState = (\n value: string | number\n): { comparator: string | undefined; numberValue: string | undefined } => {\n let comparator;\n let numberValue;\n\n if (typeof value === 'number' || !isNaN(Number(value))) {\n // If value is a number or numeric string, set comparator to '=' and numberValue accordingly\n comparator = '=';\n numberValue = value.toString();\n } else if (typeof value === 'string') {\n // Define possible comparators\n const comparators = ['<=', '>=', '<', '>', '='];\n // Find the comparator that matches the start of the string\n const matchedComparator = comparators.find((comp) =>\n value.startsWith(comp)\n );\n if (matchedComparator) {\n comparator = matchedComparator;\n numberValue = value.slice(matchedComparator.length);\n }\n }\n\n return { comparator, numberValue };\n};\n\ntype EnumKeyInputProps = {\n value: string | number;\n onChange: (value: string) => void;\n};\n\n/**\n * Example of values:\n * - `<1`\n * - `>-44.3`\n * - `=999`\n * - `<=1`\n * - `>=1`\n * - 88\n * - `-1`\n *\n */\nexport const EnumKeyInput: FC<EnumKeyInputProps> = ({ value, onChange }) => {\n const { comparator: initialComparator, numberValue: initialNumberValue } =\n useMemo(() => extractInitialState(value), [value]);\n const [comparator, setComparator] = useState<string | null>(\n initialComparator ?? null\n );\n const [numberValue, setNumberValue] = useState<string | null>(\n initialNumberValue ?? null\n );\n\n useEffect(() => {\n if (\n comparator &&\n numberValue &&\n (comparator !== initialComparator || numberValue !== initialNumberValue)\n ) {\n const newValue = `${comparator}${numberValue}`;\n\n onChange(newValue);\n }\n }, [\n comparator,\n initialComparator,\n initialNumberValue,\n numberValue,\n onChange,\n ]);\n\n return (\n <div className=\"flex gap-1\">\n <Select onValueChange={setComparator} defaultValue={initialComparator}>\n <Select.Trigger className=\"w-20\">\n <Select.Value placeholder=\"Select a comparator\" />\n </Select.Trigger>\n <Select.Content>\n <Select.Item value=\"<\">{`<`}</Select.Item>\n <Select.Item value=\"<=\">{`<=`}</Select.Item>\n <Select.Item value=\"=\">{`=`}</Select.Item>\n <Select.Item value=\">=\">{`>=`}</Select.Item>\n <Select.Item value=\">\">{`>`}</Select.Item>\n </Select.Content>\n </Select>\n <Input\n type=\"number\"\n defaultValue={numberValue ?? undefined}\n onChange={(e) => setNumberValue(e.target.value)}\n className=\"w-full\"\n />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AAMA,MAAM,sBAAsB,CAC1B,UACwE;AACpE,MAAA;AACA,MAAA;AAEA,MAAA,OAAO,UAAU,YAAY,CAAC,MAAM,OAAO,KAAK,CAAC,GAAG;AAEzC,iBAAA;AACb,kBAAc,MAAM,SAAS;AAAA,EAAA,WACpB,OAAO,UAAU,UAAU;AAEpC,UAAM,cAAc,CAAC,MAAM,MAAM,KAAK,KAAK,GAAG;AAE9C,UAAM,oBAAoB,YAAY;AAAA,MAAK,CAAC,SAC1C,MAAM,WAAW,IAAI;AAAA,IACvB;AACA,QAAI,mBAAmB;AACR,mBAAA;AACC,oBAAA,MAAM,MAAM,kBAAkB,MAAM;AAAA,IAAA;AAAA,EACpD;AAGK,SAAA,EAAE,YAAY,YAAY;AACnC;AAkBO,MAAM,eAAsC,CAAC,EAAE,OAAO,eAAe;AAC1E,QAAM,EAAE,YAAY,mBAAmB,aAAa,mBAAmB,IACrE,QAAQ,MAAM,oBAAoB,KAAK,GAAG,CAAC,KAAK,CAAC;AAC7C,QAAA,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC,qBAAqB;AAAA,EACvB;AACM,QAAA,CAAC,aAAa,cAAc,IAAI;AAAA,IACpC,sBAAsB;AAAA,EACxB;AAEA,YAAU,MAAM;AACd,QACE,cACA,gBACC,eAAe,qBAAqB,gBAAgB,qBACrD;AACA,YAAM,WAAW,GAAG,UAAU,GAAG,WAAW;AAE5C,eAAS,QAAQ;AAAA,IAAA;AAAA,EACnB,GACC;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACD;AAGC,SAAA,qBAAC,OAAI,EAAA,WAAU,cACb,UAAA;AAAA,IAAA,qBAAC,QAAO,EAAA,eAAe,eAAe,cAAc,mBAClD,UAAA;AAAA,MAAC,oBAAA,OAAO,SAAP,EAAe,WAAU,QACxB,UAAC,oBAAA,OAAO,OAAP,EAAa,aAAY,sBAAA,CAAsB,EAClD,CAAA;AAAA,MACA,qBAAC,OAAO,SAAP,EACC,UAAA;AAAA,QAAA,oBAAC,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,KAAA;AAAA,4BAC3B,OAAO,MAAP,EAAY,OAAM,MAAM,UAAK,MAAA;AAAA,4BAC7B,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,KAAA;AAAA,4BAC3B,OAAO,MAAP,EAAY,OAAM,MAAM,UAAK,MAAA;AAAA,4BAC7B,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,IAAA,CAAA;AAAA,MAAA,EAC9B,CAAA;AAAA,IAAA,GACF;AAAA,IACA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,cAAc,eAAe;AAAA,QAC7B,UAAU,CAAC,MAAM,eAAe,EAAE,OAAO,KAAK;AAAA,QAC9C,WAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EACZ,GACF;AAEJ;"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("../../jsx-runtime-CgFM7lM3.cjs");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const editorReact = require("@intlayer/editor-react");
5
- const require$$0 = require("react");
5
+ const ReactExports = require("react");
6
+ const components_Container_index = require("../Container/index.cjs");
6
7
  const components_IDE_MonacoCode = require("../IDE/MonacoCode.cjs");
7
8
  const JSONEditor = ({ dictionary, isDarkMode }) => {
8
9
  const { setEditedContent, editedContent } = editorReact.useEditedContent();
@@ -14,24 +15,32 @@ const JSONEditor = ({ dictionary, isDarkMode }) => {
14
15
  return false;
15
16
  }
16
17
  };
17
- const displayedContent = require$$0.useMemo(
18
+ const displayedContent = ReactExports.useMemo(
18
19
  () => editedContent?.[dictionary.key]?.content ?? dictionary?.content ?? {},
19
- // eslint-disable-next-line react-hooks/exhaustive-deps
20
20
  [dictionary]
21
21
  );
22
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "overflow-hidden rounded-md", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
23
- components_IDE_MonacoCode.MonacoCode,
22
+ return /* @__PURE__ */ jsxRuntime.jsx(
23
+ components_Container_index.Container,
24
24
  {
25
- language: "json",
26
- onChange: (content) => {
27
- if (isValidJSON(content ?? "{}")) {
28
- setEditedContent(dictionary.key, JSON.parse(content ?? "{}"));
25
+ background: "none",
26
+ border: true,
27
+ roundedSize: "xl",
28
+ className: "w-full overflow-hidden p-3",
29
+ children: /* @__PURE__ */ jsxRuntime.jsx(
30
+ components_IDE_MonacoCode.MonacoCode,
31
+ {
32
+ language: "json",
33
+ onChange: (content) => {
34
+ if (isValidJSON(content ?? "{}")) {
35
+ setEditedContent(dictionary.key, JSON.parse(content ?? "{}"));
36
+ }
37
+ },
38
+ isDarkMode,
39
+ children: JSON.stringify(displayedContent, null, 2)
29
40
  }
30
- },
31
- isDarkMode,
32
- children: JSON.stringify(displayedContent, null, 2)
41
+ )
33
42
  }
34
- ) });
43
+ );
35
44
  };
36
45
  exports.JSONEditor = JSONEditor;
37
46
  //# sourceMappingURL=JSONEditor.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"JSONEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"sourcesContent":["import { Dictionary } from '@intlayer/core';\nimport { useEditedContent } from '@intlayer/editor-react';\nimport { useMemo, type FC } from 'react';\nimport { MonacoCode } from '../IDE/MonacoCode';\n\ntype JSONEditorProps = {\n dictionary: Dictionary;\n isDarkMode?: boolean;\n};\n\nexport const JSONEditor: FC<JSONEditorProps> = ({ dictionary, isDarkMode }) => {\n const { setEditedContent, editedContent } = useEditedContent();\n\n const isValidJSON = (jsonString: string): boolean => {\n try {\n JSON.parse(jsonString);\n return true; // Valid JSON\n } catch (_error) {\n return false; // Invalid JSON\n }\n };\n\n const displayedContent = useMemo(\n () => editedContent?.[dictionary.key]?.content ?? dictionary?.content ?? {},\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [dictionary]\n );\n\n return (\n <div className=\"overflow-hidden rounded-md\">\n <MonacoCode\n language=\"json\"\n onChange={(content) => {\n if (isValidJSON(content ?? '{}')) {\n setEditedContent(dictionary.key, JSON.parse(content ?? '{}'));\n }\n }}\n isDarkMode={isDarkMode}\n >\n {JSON.stringify(displayedContent, null, 2)}\n </MonacoCode>\n </div>\n );\n};\n"],"names":["useEditedContent","useMemo","jsx","MonacoCode"],"mappings":";;;;;;AAUO,MAAM,aAAkC,CAAC,EAAE,YAAY,iBAAiB;AAC7E,QAAM,EAAE,kBAAkB,cAAc,IAAIA,6BAAiB;AAEvD,QAAA,cAAc,CAAC,eAAgC;AAC/C,QAAA;AACF,WAAK,MAAM,UAAU;AACd,aAAA;AAAA,aACA,QAAQ;AACR,aAAA;AAAA,IAAA;AAAA,EAEX;AAEA,QAAM,mBAAmBC,WAAA;AAAA,IACvB,MAAM,gBAAgB,WAAW,GAAG,GAAG,WAAW,YAAY,WAAW,CAAC;AAAA;AAAA,IAE1E,CAAC,UAAU;AAAA,EACb;AAGE,SAAAC,2BAAAA,kBAAAA,IAAC,OAAI,EAAA,WAAU,8BACb,UAAAA,2BAAA,kBAAA;AAAA,IAACC,0BAAA;AAAA,IAAA;AAAA,MACC,UAAS;AAAA,MACT,UAAU,CAAC,YAAY;AACjB,YAAA,YAAY,WAAW,IAAI,GAAG;AAChC,2BAAiB,WAAW,KAAK,KAAK,MAAM,WAAW,IAAI,CAAC;AAAA,QAAA;AAAA,MAEhE;AAAA,MACA;AAAA,MAEC,UAAK,KAAA,UAAU,kBAAkB,MAAM,CAAC;AAAA,IAAA;AAAA,EAAA,GAE7C;AAEJ;;"}
1
+ {"version":3,"file":"JSONEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"sourcesContent":["import type { Dictionary } from '@intlayer/core';\nimport { useEditedContent } from '@intlayer/editor-react';\nimport { useMemo, type FC } from 'react';\nimport { Container } from '../Container';\nimport { MonacoCode } from '../IDE/MonacoCode';\n\ntype JSONEditorProps = {\n dictionary: Dictionary;\n isDarkMode?: boolean;\n};\n\nexport const JSONEditor: FC<JSONEditorProps> = ({ dictionary, isDarkMode }) => {\n const { setEditedContent, editedContent } = useEditedContent();\n\n const isValidJSON = (jsonString: string): boolean => {\n try {\n JSON.parse(jsonString);\n return true; // Valid JSON\n } catch (_error) {\n return false; // Invalid JSON\n }\n };\n\n const displayedContent = useMemo(\n () => editedContent?.[dictionary.key]?.content ?? dictionary?.content ?? {},\n\n [dictionary]\n );\n\n return (\n <Container\n background=\"none\"\n border\n roundedSize=\"xl\"\n className=\"w-full overflow-hidden p-3\"\n >\n <MonacoCode\n language=\"json\"\n onChange={(content) => {\n if (isValidJSON(content ?? '{}')) {\n setEditedContent(dictionary.key, JSON.parse(content ?? '{}'));\n }\n }}\n isDarkMode={isDarkMode}\n >\n {JSON.stringify(displayedContent, null, 2)}\n </MonacoCode>\n </Container>\n );\n};\n"],"names":["useEditedContent","useMemo","jsx","Container","MonacoCode"],"mappings":";;;;;;;AAWO,MAAM,aAAkC,CAAC,EAAE,YAAY,iBAAiB;AAC7E,QAAM,EAAE,kBAAkB,cAAc,IAAIA,6BAAiB;AAEvD,QAAA,cAAc,CAAC,eAAgC;AAC/C,QAAA;AACF,WAAK,MAAM,UAAU;AACd,aAAA;AAAA,aACA,QAAQ;AACR,aAAA;AAAA,IAAA;AAAA,EAEX;AAEA,QAAM,mBAAmBC,aAAA;AAAA,IACvB,MAAM,gBAAgB,WAAW,GAAG,GAAG,WAAW,YAAY,WAAW,CAAC;AAAA,IAE1E,CAAC,UAAU;AAAA,EACb;AAGE,SAAAC,2BAAA;AAAA,IAACC,2BAAA;AAAA,IAAA;AAAA,MACC,YAAW;AAAA,MACX,QAAM;AAAA,MACN,aAAY;AAAA,MACZ,WAAU;AAAA,MAEV,UAAAD,2BAAA;AAAA,QAACE,0BAAA;AAAA,QAAA;AAAA,UACC,UAAS;AAAA,UACT,UAAU,CAAC,YAAY;AACjB,gBAAA,YAAY,WAAW,IAAI,GAAG;AAChC,+BAAiB,WAAW,KAAK,KAAK,MAAM,WAAW,IAAI,CAAC;AAAA,YAAA;AAAA,UAEhE;AAAA,UACA;AAAA,UAEC,UAAK,KAAA,UAAU,kBAAkB,MAAM,CAAC;AAAA,QAAA;AAAA,MAAA;AAAA,IAC3C;AAAA,EACF;AAEJ;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"JSONEditor.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAW,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGzC,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAiC1C,CAAC"}
1
+ {"version":3,"file":"JSONEditor.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAW,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIzC,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAsC1C,CAAC"}
@@ -1,6 +1,7 @@
1
- import { j as jsxRuntimeExports } from "../../jsx-runtime-DQkoUcjV.js";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useEditedContent } from "@intlayer/editor-react";
3
3
  import { useMemo } from "react";
4
+ import { Container } from "../Container/index.mjs";
4
5
  import { MonacoCode } from "../IDE/MonacoCode.mjs";
5
6
  const JSONEditor = ({ dictionary, isDarkMode }) => {
6
7
  const { setEditedContent, editedContent } = useEditedContent();
@@ -14,22 +15,30 @@ const JSONEditor = ({ dictionary, isDarkMode }) => {
14
15
  };
15
16
  const displayedContent = useMemo(
16
17
  () => editedContent?.[dictionary.key]?.content ?? dictionary?.content ?? {},
17
- // eslint-disable-next-line react-hooks/exhaustive-deps
18
18
  [dictionary]
19
19
  );
20
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "overflow-hidden rounded-md", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
21
- MonacoCode,
20
+ return /* @__PURE__ */ jsx(
21
+ Container,
22
22
  {
23
- language: "json",
24
- onChange: (content) => {
25
- if (isValidJSON(content ?? "{}")) {
26
- setEditedContent(dictionary.key, JSON.parse(content ?? "{}"));
23
+ background: "none",
24
+ border: true,
25
+ roundedSize: "xl",
26
+ className: "w-full overflow-hidden p-3",
27
+ children: /* @__PURE__ */ jsx(
28
+ MonacoCode,
29
+ {
30
+ language: "json",
31
+ onChange: (content) => {
32
+ if (isValidJSON(content ?? "{}")) {
33
+ setEditedContent(dictionary.key, JSON.parse(content ?? "{}"));
34
+ }
35
+ },
36
+ isDarkMode,
37
+ children: JSON.stringify(displayedContent, null, 2)
27
38
  }
28
- },
29
- isDarkMode,
30
- children: JSON.stringify(displayedContent, null, 2)
39
+ )
31
40
  }
32
- ) });
41
+ );
33
42
  };
34
43
  export {
35
44
  JSONEditor
@@ -1 +1 @@
1
- {"version":3,"file":"JSONEditor.mjs","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"sourcesContent":["import { Dictionary } from '@intlayer/core';\nimport { useEditedContent } from '@intlayer/editor-react';\nimport { useMemo, type FC } from 'react';\nimport { MonacoCode } from '../IDE/MonacoCode';\n\ntype JSONEditorProps = {\n dictionary: Dictionary;\n isDarkMode?: boolean;\n};\n\nexport const JSONEditor: FC<JSONEditorProps> = ({ dictionary, isDarkMode }) => {\n const { setEditedContent, editedContent } = useEditedContent();\n\n const isValidJSON = (jsonString: string): boolean => {\n try {\n JSON.parse(jsonString);\n return true; // Valid JSON\n } catch (_error) {\n return false; // Invalid JSON\n }\n };\n\n const displayedContent = useMemo(\n () => editedContent?.[dictionary.key]?.content ?? dictionary?.content ?? {},\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [dictionary]\n );\n\n return (\n <div className=\"overflow-hidden rounded-md\">\n <MonacoCode\n language=\"json\"\n onChange={(content) => {\n if (isValidJSON(content ?? '{}')) {\n setEditedContent(dictionary.key, JSON.parse(content ?? '{}'));\n }\n }}\n isDarkMode={isDarkMode}\n >\n {JSON.stringify(displayedContent, null, 2)}\n </MonacoCode>\n </div>\n );\n};\n"],"names":["jsx"],"mappings":";;;;AAUO,MAAM,aAAkC,CAAC,EAAE,YAAY,iBAAiB;AAC7E,QAAM,EAAE,kBAAkB,cAAc,IAAI,iBAAiB;AAEvD,QAAA,cAAc,CAAC,eAAgC;AAC/C,QAAA;AACF,WAAK,MAAM,UAAU;AACd,aAAA;AAAA,aACA,QAAQ;AACR,aAAA;AAAA,IAAA;AAAA,EAEX;AAEA,QAAM,mBAAmB;AAAA,IACvB,MAAM,gBAAgB,WAAW,GAAG,GAAG,WAAW,YAAY,WAAW,CAAC;AAAA;AAAA,IAE1E,CAAC,UAAU;AAAA,EACb;AAGE,SAAAA,kCAAAA,IAAC,OAAI,EAAA,WAAU,8BACb,UAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAS;AAAA,MACT,UAAU,CAAC,YAAY;AACjB,YAAA,YAAY,WAAW,IAAI,GAAG;AAChC,2BAAiB,WAAW,KAAK,KAAK,MAAM,WAAW,IAAI,CAAC;AAAA,QAAA;AAAA,MAEhE;AAAA,MACA;AAAA,MAEC,UAAK,KAAA,UAAU,kBAAkB,MAAM,CAAC;AAAA,IAAA;AAAA,EAAA,GAE7C;AAEJ;"}
1
+ {"version":3,"file":"JSONEditor.mjs","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"sourcesContent":["import type { Dictionary } from '@intlayer/core';\nimport { useEditedContent } from '@intlayer/editor-react';\nimport { useMemo, type FC } from 'react';\nimport { Container } from '../Container';\nimport { MonacoCode } from '../IDE/MonacoCode';\n\ntype JSONEditorProps = {\n dictionary: Dictionary;\n isDarkMode?: boolean;\n};\n\nexport const JSONEditor: FC<JSONEditorProps> = ({ dictionary, isDarkMode }) => {\n const { setEditedContent, editedContent } = useEditedContent();\n\n const isValidJSON = (jsonString: string): boolean => {\n try {\n JSON.parse(jsonString);\n return true; // Valid JSON\n } catch (_error) {\n return false; // Invalid JSON\n }\n };\n\n const displayedContent = useMemo(\n () => editedContent?.[dictionary.key]?.content ?? dictionary?.content ?? {},\n\n [dictionary]\n );\n\n return (\n <Container\n background=\"none\"\n border\n roundedSize=\"xl\"\n className=\"w-full overflow-hidden p-3\"\n >\n <MonacoCode\n language=\"json\"\n onChange={(content) => {\n if (isValidJSON(content ?? '{}')) {\n setEditedContent(dictionary.key, JSON.parse(content ?? '{}'));\n }\n }}\n isDarkMode={isDarkMode}\n >\n {JSON.stringify(displayedContent, null, 2)}\n </MonacoCode>\n </Container>\n );\n};\n"],"names":[],"mappings":";;;;;AAWO,MAAM,aAAkC,CAAC,EAAE,YAAY,iBAAiB;AAC7E,QAAM,EAAE,kBAAkB,cAAc,IAAI,iBAAiB;AAEvD,QAAA,cAAc,CAAC,eAAgC;AAC/C,QAAA;AACF,WAAK,MAAM,UAAU;AACd,aAAA;AAAA,aACA,QAAQ;AACR,aAAA;AAAA,IAAA;AAAA,EAEX;AAEA,QAAM,mBAAmB;AAAA,IACvB,MAAM,gBAAgB,WAAW,GAAG,GAAG,WAAW,YAAY,WAAW,CAAC;AAAA,IAE1E,CAAC,UAAU;AAAA,EACb;AAGE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,YAAW;AAAA,MACX,QAAM;AAAA,MACN,aAAY;AAAA,MACZ,WAAU;AAAA,MAEV,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,UAAS;AAAA,UACT,UAAU,CAAC,YAAY;AACjB,gBAAA,YAAY,WAAW,IAAI,GAAG;AAChC,+BAAiB,WAAW,KAAK,KAAK,MAAM,WAAW,IAAI,CAAC;AAAA,YAAA;AAAA,UAEhE;AAAA,UACA;AAAA,UAEC,UAAK,KAAA,UAAU,kBAAkB,MAAM,CAAC;AAAA,QAAA;AAAA,MAAA;AAAA,IAC3C;AAAA,EACF;AAEJ;"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("../../jsx-runtime-CgFM7lM3.cjs");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const components_Breadcrumb_index = require("../Breadcrumb/index.cjs");
5
5
  const KeyPathBreadcrumb = ({
6
6
  keyPath,
@@ -14,10 +14,10 @@ const KeyPathBreadcrumb = ({
14
14
  onClick: () => onClickKeyPath(
15
15
  keyPath.slice(0, index + 1)
16
16
  ),
17
- text: el.key.toString()
17
+ text: el.key?.toString() ?? ""
18
18
  }))
19
19
  ];
20
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
20
+ return /* @__PURE__ */ jsxRuntime.jsx(
21
21
  components_Breadcrumb_index.Breadcrumb,
22
22
  {
23
23
  links: formattedKeyPath,
@@ -1 +1 @@
1
- {"version":3,"file":"KeyPathBreadcrumb.cjs","sources":["../../../src/components/DictionaryFieldEditor/KeyPathBreadcrumb.tsx"],"sourcesContent":["import type { Locales } from '@intlayer/config/client';\nimport type { KeyPath } from '@intlayer/core';\nimport type { FC } from 'react';\nimport { Breadcrumb, type BreadcrumbLink } from '../Breadcrumb';\n\ntype KeyPathBreadcrumbProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n onClickKeyPath: (keyPath: KeyPath[]) => void;\n locale?: Locales;\n};\n\nexport const KeyPathBreadcrumb: FC<KeyPathBreadcrumbProps> = ({\n keyPath,\n dictionaryKey,\n onClickKeyPath,\n locale,\n}) => {\n const formattedKeyPath: BreadcrumbLink[] = [\n { text: dictionaryKey, onClick: () => onClickKeyPath([]) },\n ...keyPath.map((el, index) => ({\n onClick: () =>\n onClickKeyPath(\n keyPath\n // With keyPath = [{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}, {type: NodeType.Object, key: '1'}]\n // If index is 0 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}])\n // If index is 1 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}])\n .slice(0, index + 1)\n ),\n text: el.key.toString(),\n })),\n ];\n\n return (\n <Breadcrumb\n links={formattedKeyPath}\n locale={locale}\n elementType=\"location\"\n />\n );\n};\n"],"names":["jsx","Breadcrumb"],"mappings":";;;;AAYO,MAAM,oBAAgD,CAAC;AAAA,EAC5D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,mBAAqC;AAAA,IACzC,EAAE,MAAM,eAAe,SAAS,MAAM,eAAe,CAAE,CAAA,EAAE;AAAA,IACzD,GAAG,QAAQ,IAAI,CAAC,IAAI,WAAW;AAAA,MAC7B,SAAS,MACP;AAAA,QACE,QAIG,MAAM,GAAG,QAAQ,CAAC;AAAA,MACvB;AAAA,MACF,MAAM,GAAG,IAAI,SAAS;AAAA,IAAA,EACtB;AAAA,EACJ;AAGE,SAAAA,2BAAA,kBAAA;AAAA,IAACC,4BAAA;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP;AAAA,MACA,aAAY;AAAA,IAAA;AAAA,EACd;AAEJ;;"}
1
+ {"version":3,"file":"KeyPathBreadcrumb.cjs","sources":["../../../src/components/DictionaryFieldEditor/KeyPathBreadcrumb.tsx"],"sourcesContent":["import type { Locales } from '@intlayer/config/client';\nimport type { KeyPath } from '@intlayer/core';\nimport type { FC } from 'react';\nimport { Breadcrumb, type BreadcrumbLink } from '../Breadcrumb';\n\ntype KeyPathBreadcrumbProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n onClickKeyPath: (keyPath: KeyPath[]) => void;\n locale?: Locales;\n};\n\nexport const KeyPathBreadcrumb: FC<KeyPathBreadcrumbProps> = ({\n keyPath,\n dictionaryKey,\n onClickKeyPath,\n locale,\n}) => {\n const formattedKeyPath: BreadcrumbLink[] = [\n { text: dictionaryKey, onClick: () => onClickKeyPath([]) },\n ...keyPath.map((el, index) => ({\n onClick: () =>\n onClickKeyPath(\n keyPath\n // With keyPath = [{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}, {type: NodeType.Object, key: '1'}]\n // If index is 0 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}])\n // If index is 1 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}])\n .slice(0, index + 1)\n ),\n text: el.key?.toString() ?? '',\n })),\n ];\n\n return (\n <Breadcrumb\n links={formattedKeyPath}\n locale={locale}\n elementType=\"location\"\n />\n );\n};\n"],"names":["jsx","Breadcrumb"],"mappings":";;;;AAYO,MAAM,oBAAgD,CAAC;AAAA,EAC5D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,mBAAqC;AAAA,IACzC,EAAE,MAAM,eAAe,SAAS,MAAM,eAAe,CAAE,CAAA,EAAE;AAAA,IACzD,GAAG,QAAQ,IAAI,CAAC,IAAI,WAAW;AAAA,MAC7B,SAAS,MACP;AAAA,QACE,QAIG,MAAM,GAAG,QAAQ,CAAC;AAAA,MACvB;AAAA,MACF,MAAM,GAAG,KAAK,cAAc;AAAA,IAAA,EAC5B;AAAA,EACJ;AAGE,SAAAA,2BAAA;AAAA,IAACC,4BAAA;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP;AAAA,MACA,aAAY;AAAA,IAAA;AAAA,EACd;AAEJ;;"}
@@ -1,4 +1,4 @@
1
- import { j as jsxRuntimeExports } from "../../jsx-runtime-DQkoUcjV.js";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { Breadcrumb } from "../Breadcrumb/index.mjs";
3
3
  const KeyPathBreadcrumb = ({
4
4
  keyPath,
@@ -12,10 +12,10 @@ const KeyPathBreadcrumb = ({
12
12
  onClick: () => onClickKeyPath(
13
13
  keyPath.slice(0, index + 1)
14
14
  ),
15
- text: el.key.toString()
15
+ text: el.key?.toString() ?? ""
16
16
  }))
17
17
  ];
18
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
18
+ return /* @__PURE__ */ jsx(
19
19
  Breadcrumb,
20
20
  {
21
21
  links: formattedKeyPath,
@@ -1 +1 @@
1
- {"version":3,"file":"KeyPathBreadcrumb.mjs","sources":["../../../src/components/DictionaryFieldEditor/KeyPathBreadcrumb.tsx"],"sourcesContent":["import type { Locales } from '@intlayer/config/client';\nimport type { KeyPath } from '@intlayer/core';\nimport type { FC } from 'react';\nimport { Breadcrumb, type BreadcrumbLink } from '../Breadcrumb';\n\ntype KeyPathBreadcrumbProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n onClickKeyPath: (keyPath: KeyPath[]) => void;\n locale?: Locales;\n};\n\nexport const KeyPathBreadcrumb: FC<KeyPathBreadcrumbProps> = ({\n keyPath,\n dictionaryKey,\n onClickKeyPath,\n locale,\n}) => {\n const formattedKeyPath: BreadcrumbLink[] = [\n { text: dictionaryKey, onClick: () => onClickKeyPath([]) },\n ...keyPath.map((el, index) => ({\n onClick: () =>\n onClickKeyPath(\n keyPath\n // With keyPath = [{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}, {type: NodeType.Object, key: '1'}]\n // If index is 0 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}])\n // If index is 1 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}])\n .slice(0, index + 1)\n ),\n text: el.key.toString(),\n })),\n ];\n\n return (\n <Breadcrumb\n links={formattedKeyPath}\n locale={locale}\n elementType=\"location\"\n />\n );\n};\n"],"names":["jsx"],"mappings":";;AAYO,MAAM,oBAAgD,CAAC;AAAA,EAC5D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,mBAAqC;AAAA,IACzC,EAAE,MAAM,eAAe,SAAS,MAAM,eAAe,CAAE,CAAA,EAAE;AAAA,IACzD,GAAG,QAAQ,IAAI,CAAC,IAAI,WAAW;AAAA,MAC7B,SAAS,MACP;AAAA,QACE,QAIG,MAAM,GAAG,QAAQ,CAAC;AAAA,MACvB;AAAA,MACF,MAAM,GAAG,IAAI,SAAS;AAAA,IAAA,EACtB;AAAA,EACJ;AAGE,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP;AAAA,MACA,aAAY;AAAA,IAAA;AAAA,EACd;AAEJ;"}
1
+ {"version":3,"file":"KeyPathBreadcrumb.mjs","sources":["../../../src/components/DictionaryFieldEditor/KeyPathBreadcrumb.tsx"],"sourcesContent":["import type { Locales } from '@intlayer/config/client';\nimport type { KeyPath } from '@intlayer/core';\nimport type { FC } from 'react';\nimport { Breadcrumb, type BreadcrumbLink } from '../Breadcrumb';\n\ntype KeyPathBreadcrumbProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n onClickKeyPath: (keyPath: KeyPath[]) => void;\n locale?: Locales;\n};\n\nexport const KeyPathBreadcrumb: FC<KeyPathBreadcrumbProps> = ({\n keyPath,\n dictionaryKey,\n onClickKeyPath,\n locale,\n}) => {\n const formattedKeyPath: BreadcrumbLink[] = [\n { text: dictionaryKey, onClick: () => onClickKeyPath([]) },\n ...keyPath.map((el, index) => ({\n onClick: () =>\n onClickKeyPath(\n keyPath\n // With keyPath = [{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}, {type: NodeType.Object, key: '1'}]\n // If index is 0 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}])\n // If index is 1 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}])\n .slice(0, index + 1)\n ),\n text: el.key?.toString() ?? '',\n })),\n ];\n\n return (\n <Breadcrumb\n links={formattedKeyPath}\n locale={locale}\n elementType=\"location\"\n />\n );\n};\n"],"names":[],"mappings":";;AAYO,MAAM,oBAAgD,CAAC;AAAA,EAC5D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,mBAAqC;AAAA,IACzC,EAAE,MAAM,eAAe,SAAS,MAAM,eAAe,CAAE,CAAA,EAAE;AAAA,IACzD,GAAG,QAAQ,IAAI,CAAC,IAAI,WAAW;AAAA,MAC7B,SAAS,MACP;AAAA,QACE,QAIG,MAAM,GAAG,QAAQ,CAAC;AAAA,MACvB;AAAA,MACF,MAAM,GAAG,KAAK,cAAc;AAAA,IAAA,EAC5B;AAAA,EACJ;AAGE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP;AAAA,MACA,aAAY;AAAA,IAAA;AAAA,EACd;AAEJ;"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("../../../jsx-runtime-CgFM7lM3.cjs");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const client = require("@intlayer/config/client");
5
5
  const core = require("@intlayer/core");
6
6
  const editorReact = require("@intlayer/editor-react");
7
7
  const lucideReact = require("lucide-react");
8
- const require$$0 = require("react");
8
+ const ReactExports = require("react");
9
9
  const reactIntlayer = require("react-intlayer");
10
10
  const utils_camelCase = require("../../../utils/camelCase.cjs");
11
11
  const components_Accordion_Accordion = require("../../Accordion/Accordion.cjs");
@@ -24,26 +24,25 @@ const NavigationViewNode = ({
24
24
  const { setFocusedContentKeyPath, focusedContent } = editorReact.useFocusDictionary();
25
25
  const {
26
26
  addNewElement,
27
- addNewField,
28
27
  goToElement,
29
28
  goToField,
30
29
  goToEnumeration,
31
30
  goToTranslation
32
31
  } = reactIntlayer.useDictionary(components_DictionaryFieldEditor_NavigationView_navigationViewNode_content.navigationViewContent);
33
- const nodeType = core.getSectionType(section);
32
+ const nodeType = core.getNodeType(section);
34
33
  const isEditableSection = components_DictionaryFieldEditor_getIsEditableSection.getIsEditableSection(section);
35
- const getIsSelected = require$$0.useCallback(
34
+ const getIsSelected = ReactExports.useCallback(
36
35
  (keyPath2) => (focusedContent?.keyPath?.length ?? 0) > 0 && core.isSameKeyPath(keyPath2, focusedContent?.keyPath ?? []),
37
36
  [focusedContent?.keyPath]
38
37
  );
39
- if (isEditableSection) return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(jsxRuntime.jsxRuntimeExports.Fragment, { children: "-" });
40
- if (!section) return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(jsxRuntime.jsxRuntimeExports.Fragment, { children: "-" });
38
+ if (isEditableSection) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "-" });
39
+ if (!section) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "-" });
41
40
  if (typeof section === "object") {
42
41
  if (nodeType === core.NodeType.ReactNode) {
43
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(jsxRuntime.jsxRuntimeExports.Fragment, { children: "React Node" });
42
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "React Node" });
44
43
  }
45
44
  if (nodeType === core.NodeType.Translation) {
46
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "flex flex-col justify-between gap-2", children: locales.map((translationKey) => {
45
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col justify-between gap-2", children: locales.map((translationKey) => {
47
46
  const childKeyPath = [
48
47
  ...keyPath,
49
48
  { type: core.NodeType.Translation, key: translationKey }
@@ -54,7 +53,7 @@ const NavigationViewNode = ({
54
53
  );
55
54
  const isEditableSubSection = components_DictionaryFieldEditor_getIsEditableSection.getIsEditableSection(subSection);
56
55
  if (isEditableSubSection) {
57
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
56
+ return /* @__PURE__ */ jsxRuntime.jsx(
58
57
  components_Button_Button.Button,
59
58
  {
60
59
  label: `${goToTranslation.label} ${translationKey}`,
@@ -69,14 +68,14 @@ const NavigationViewNode = ({
69
68
  translationKey
70
69
  );
71
70
  }
72
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
71
+ return /* @__PURE__ */ jsxRuntime.jsx(
73
72
  components_Accordion_Accordion.Accordion,
74
73
  {
75
74
  label: `${goToTranslation.label} ${translationKey}`,
76
75
  isActive: getIsSelected(childKeyPath),
77
76
  onClick: () => setFocusedContentKeyPath(childKeyPath),
78
77
  header: translationKey,
79
- children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "mt-2 flex w-full max-w-full", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "flex-1 pl-10", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
78
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 flex w-full max-w-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 pl-10", children: /* @__PURE__ */ jsxRuntime.jsx(
80
79
  NavigationViewNode,
81
80
  {
82
81
  keyPath: childKeyPath,
@@ -89,13 +88,13 @@ const NavigationViewNode = ({
89
88
  );
90
89
  }) });
91
90
  }
92
- if (nodeType === core.NodeType.Enumeration) {
93
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "flex flex-col justify-between gap-2", children: Object.keys(
94
- section[core.NodeType.Enumeration]
91
+ if (nodeType === core.NodeType.Enumeration || nodeType === core.NodeType.Condition) {
92
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col justify-between gap-2", children: Object.keys(
93
+ section[nodeType]
95
94
  ).map((key) => {
96
95
  const childKeyPath = [
97
96
  ...keyPath,
98
- { type: core.NodeType.Enumeration, key }
97
+ { type: nodeType, key }
99
98
  ];
100
99
  const subSection = core.getContentNodeByKeyPath(
101
100
  sectionProp,
@@ -103,7 +102,7 @@ const NavigationViewNode = ({
103
102
  );
104
103
  const isEditableSubSection = components_DictionaryFieldEditor_getIsEditableSection.getIsEditableSection(subSection);
105
104
  if (isEditableSubSection) {
106
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
105
+ return /* @__PURE__ */ jsxRuntime.jsx(
107
106
  components_Button_Button.Button,
108
107
  {
109
108
  label: `${goToEnumeration.label} ${key}`,
@@ -118,14 +117,14 @@ const NavigationViewNode = ({
118
117
  key
119
118
  );
120
119
  }
121
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
120
+ return /* @__PURE__ */ jsxRuntime.jsx(
122
121
  components_Accordion_Accordion.Accordion,
123
122
  {
124
123
  label: `${goToEnumeration.label} ${key}`,
125
124
  isActive: getIsSelected(childKeyPath),
126
125
  onClick: () => setFocusedContentKeyPath(childKeyPath),
127
126
  header: key,
128
- children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "mt-2 flex w-full max-w-full", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "flex-1 pl-10", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
127
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 flex w-full max-w-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 pl-10", children: /* @__PURE__ */ jsxRuntime.jsx(
129
128
  NavigationViewNode,
130
129
  {
131
130
  keyPath: childKeyPath,
@@ -139,7 +138,7 @@ const NavigationViewNode = ({
139
138
  }) });
140
139
  }
141
140
  if (nodeType === core.NodeType.Array) {
142
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex flex-col justify-between gap-2", children: [
141
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col justify-between gap-2", children: [
143
142
  section.map((subSection, index) => {
144
143
  const childKeyPath = [
145
144
  ...keyPath,
@@ -147,7 +146,7 @@ const NavigationViewNode = ({
147
146
  ];
148
147
  const isEditableSubSection = components_DictionaryFieldEditor_getIsEditableSection.getIsEditableSection(subSection);
149
148
  if (isEditableSubSection) {
150
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
149
+ return /* @__PURE__ */ jsxRuntime.jsx(
151
150
  components_Button_Button.Button,
152
151
  {
153
152
  label: `${goToElement.label} ${index}`,
@@ -162,14 +161,14 @@ const NavigationViewNode = ({
162
161
  `${index}`
163
162
  );
164
163
  }
165
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
164
+ return /* @__PURE__ */ jsxRuntime.jsx(
166
165
  components_Accordion_Accordion.Accordion,
167
166
  {
168
167
  label: `${goToElement.label} ${index}`,
169
168
  isActive: getIsSelected(childKeyPath),
170
169
  onClick: () => setFocusedContentKeyPath(childKeyPath),
171
170
  header: index,
172
- children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "mt-2 flex w-full max-w-full", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "flex-1 pl-10", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
171
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 flex w-full max-w-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 pl-10", children: /* @__PURE__ */ jsxRuntime.jsx(
173
172
  NavigationViewNode,
174
173
  {
175
174
  keyPath: childKeyPath,
@@ -181,7 +180,7 @@ const NavigationViewNode = ({
181
180
  `${index}`
182
181
  );
183
182
  }),
184
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
183
+ /* @__PURE__ */ jsxRuntime.jsx(
185
184
  components_Button_Button.Button,
186
185
  {
187
186
  label: addNewElement.label.value,
@@ -196,7 +195,9 @@ const NavigationViewNode = ({
196
195
  key: section.length
197
196
  }
198
197
  ];
199
- addEditedContent(dictionaryKey, {}, newKeyPath, false);
198
+ const sectionArray2 = section;
199
+ const sectionEl = sectionArray2[sectionArray2.length - 1] ?? "";
200
+ addEditedContent(dictionaryKey, sectionEl, newKeyPath, false);
200
201
  setFocusedContentKeyPath(newKeyPath);
201
202
  },
202
203
  Icon: lucideReact.Plus,
@@ -206,71 +207,50 @@ const NavigationViewNode = ({
206
207
  ] });
207
208
  }
208
209
  const sectionArray = Object.keys(section);
209
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex w-full max-w-full flex-col justify-between gap-2", children: [
210
- sectionArray.map((key) => {
211
- const childKeyPath = [
212
- ...keyPath,
213
- { type: core.NodeType.Object, key }
214
- ];
215
- const subSection = core.getContentNodeByKeyPath(sectionProp, childKeyPath);
216
- const isEditableSubSection = components_DictionaryFieldEditor_getIsEditableSection.getIsEditableSection(subSection);
217
- if (isEditableSubSection) {
218
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
219
- components_Button_Button.Button,
220
- {
221
- label: `${goToField.label} ${key}`,
222
- isActive: getIsSelected(childKeyPath),
223
- variant: "hoverable",
224
- color: "text",
225
- className: "w-full",
226
- onClick: () => setFocusedContentKeyPath(childKeyPath),
227
- IconRight: lucideReact.ChevronRight,
228
- children: utils_camelCase.camelCaseToSentence(key)
229
- },
230
- key
231
- );
232
- }
233
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
234
- components_Accordion_Accordion.Accordion,
210
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full max-w-full flex-col justify-between gap-2", children: sectionArray.map((key) => {
211
+ const childKeyPath = [
212
+ ...keyPath,
213
+ { type: core.NodeType.Object, key }
214
+ ];
215
+ const subSection = core.getContentNodeByKeyPath(sectionProp, childKeyPath);
216
+ const isEditableSubSection = components_DictionaryFieldEditor_getIsEditableSection.getIsEditableSection(subSection);
217
+ if (isEditableSubSection) {
218
+ return /* @__PURE__ */ jsxRuntime.jsx(
219
+ components_Button_Button.Button,
235
220
  {
236
221
  label: `${goToField.label} ${key}`,
237
222
  isActive: getIsSelected(childKeyPath),
223
+ variant: "hoverable",
224
+ color: "text",
225
+ className: "w-full",
238
226
  onClick: () => setFocusedContentKeyPath(childKeyPath),
239
- header: utils_camelCase.camelCaseToSentence(key),
240
- children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "mt-2 flex w-full max-w-full", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "flex-1 pl-10", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
241
- NavigationViewNode,
242
- {
243
- keyPath: childKeyPath,
244
- section: sectionProp,
245
- dictionaryKey
246
- }
247
- ) }) })
227
+ IconRight: lucideReact.ChevronRight,
228
+ children: utils_camelCase.camelCaseToSentence(key)
248
229
  },
249
230
  key
250
231
  );
251
- }),
252
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
253
- components_Button_Button.Button,
232
+ }
233
+ return /* @__PURE__ */ jsxRuntime.jsx(
234
+ components_Accordion_Accordion.Accordion,
254
235
  {
255
- label: addNewField.label.value,
256
- variant: "hoverable",
257
- color: "neutral",
258
- textAlign: "left",
259
- onClick: () => {
260
- const newKeyPath = [
261
- ...keyPath,
262
- { type: core.NodeType.Object, key: "newField" }
263
- ];
264
- addEditedContent(dictionaryKey, {}, newKeyPath, false);
265
- setFocusedContentKeyPath(newKeyPath);
266
- },
267
- Icon: lucideReact.Plus,
268
- children: addNewField.text
269
- }
270
- )
271
- ] });
236
+ label: `${goToField.label} ${key}`,
237
+ isActive: getIsSelected(childKeyPath),
238
+ onClick: () => setFocusedContentKeyPath(childKeyPath),
239
+ header: utils_camelCase.camelCaseToSentence(key),
240
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 flex w-full max-w-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 pl-10", children: /* @__PURE__ */ jsxRuntime.jsx(
241
+ NavigationViewNode,
242
+ {
243
+ keyPath: childKeyPath,
244
+ section: sectionProp,
245
+ dictionaryKey
246
+ }
247
+ ) }) })
248
+ },
249
+ key
250
+ );
251
+ }) });
272
252
  }
273
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, { children: [
253
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
274
254
  "Error loading section --",
275
255
  nodeType,
276
256
  "--",