@intlayer/design-system 5.0.5 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (862) hide show
  1. package/dist/.vite/manifest.json +212 -373
  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/ChangePasswordForm/ChangePasswordForm.cjs +10 -10
  20. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
  21. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +10 -10
  22. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
  23. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs +10 -10
  24. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs.map +1 -1
  25. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs +10 -10
  26. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs.map +1 -1
  27. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +10 -11
  28. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
  29. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +10 -11
  30. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
  31. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs +3 -3
  32. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs.map +1 -1
  33. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs +3 -3
  34. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs.map +1 -1
  35. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs +3 -3
  36. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs.map +1 -1
  37. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs +3 -3
  38. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs.map +1 -1
  39. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +10 -10
  40. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -1
  41. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +6 -6
  42. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -1
  43. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs +4 -4
  44. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs.map +1 -1
  45. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs +4 -4
  46. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs.map +1 -1
  47. package/dist/components/Auth/SignInForm/SignInForm.cjs +12 -12
  48. package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -1
  49. package/dist/components/Auth/SignInForm/SignInForm.mjs +12 -12
  50. package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -1
  51. package/dist/components/Auth/SignInForm/useSignInSchema.cjs +6 -6
  52. package/dist/components/Auth/SignInForm/useSignInSchema.cjs.map +1 -1
  53. package/dist/components/Auth/SignInForm/useSignInSchema.mjs +6 -6
  54. package/dist/components/Auth/SignInForm/useSignInSchema.mjs.map +1 -1
  55. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +10 -10
  56. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
  57. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +10 -10
  58. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
  59. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs +10 -10
  60. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs.map +1 -1
  61. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs +10 -10
  62. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs.map +1 -1
  63. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs +11 -11
  64. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs.map +1 -1
  65. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.d.ts.map +1 -1
  66. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs +7 -7
  67. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs.map +1 -1
  68. package/dist/components/Auth/useAuth/index.cjs +2 -2
  69. package/dist/components/Auth/useAuth/index.cjs.map +1 -1
  70. package/dist/components/Auth/useAuth/useCSRF.cjs +3 -1
  71. package/dist/components/Auth/useAuth/useCSRF.cjs.map +1 -1
  72. package/dist/components/Auth/useAuth/useCSRF.d.ts +1 -1
  73. package/dist/components/Auth/useAuth/useCSRF.d.ts.map +1 -1
  74. package/dist/components/Auth/useAuth/useCSRF.mjs +3 -1
  75. package/dist/components/Auth/useAuth/useCSRF.mjs.map +1 -1
  76. package/dist/components/Auth/useAuth/useOAuth2.cjs +3 -1
  77. package/dist/components/Auth/useAuth/useOAuth2.cjs.map +1 -1
  78. package/dist/components/Auth/useAuth/useOAuth2.d.ts +1 -1
  79. package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +1 -1
  80. package/dist/components/Auth/useAuth/useOAuth2.mjs +3 -1
  81. package/dist/components/Auth/useAuth/useOAuth2.mjs.map +1 -1
  82. package/dist/components/Auth/useAuth/useSession.cjs +5 -3
  83. package/dist/components/Auth/useAuth/useSession.cjs.map +1 -1
  84. package/dist/components/Auth/useAuth/useSession.d.ts.map +1 -1
  85. package/dist/components/Auth/useAuth/useSession.mjs +3 -1
  86. package/dist/components/Auth/useAuth/useSession.mjs.map +1 -1
  87. package/dist/components/Avatar/index.cjs +9 -9
  88. package/dist/components/Avatar/index.cjs.map +1 -1
  89. package/dist/components/Avatar/index.mjs +9 -9
  90. package/dist/components/Avatar/index.mjs.map +1 -1
  91. package/dist/components/Badge/index.cjs +2 -2
  92. package/dist/components/Badge/index.cjs.map +1 -1
  93. package/dist/components/Badge/index.mjs +2 -2
  94. package/dist/components/Badge/index.mjs.map +1 -1
  95. package/dist/components/Breadcrumb/index.cjs +20 -20
  96. package/dist/components/Breadcrumb/index.cjs.map +1 -1
  97. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  98. package/dist/components/Breadcrumb/index.mjs +19 -19
  99. package/dist/components/Breadcrumb/index.mjs.map +1 -1
  100. package/dist/components/Button/Button.cjs +82 -87
  101. package/dist/components/Button/Button.cjs.map +1 -1
  102. package/dist/components/Button/Button.d.ts +1 -1
  103. package/dist/components/Button/Button.d.ts.map +1 -1
  104. package/dist/components/Button/Button.mjs +82 -87
  105. package/dist/components/Button/Button.mjs.map +1 -1
  106. package/dist/components/ClickOutsideDiv/index.cjs +5 -5
  107. package/dist/components/ClickOutsideDiv/index.cjs.map +1 -1
  108. package/dist/components/ClickOutsideDiv/index.d.ts +1 -1
  109. package/dist/components/ClickOutsideDiv/index.d.ts.map +1 -1
  110. package/dist/components/ClickOutsideDiv/index.mjs +2 -2
  111. package/dist/components/ClickOutsideDiv/index.mjs.map +1 -1
  112. package/dist/components/Command/index.cjs +42 -52
  113. package/dist/components/Command/index.cjs.map +1 -1
  114. package/dist/components/Command/index.d.ts +21 -73
  115. package/dist/components/Command/index.d.ts.map +1 -1
  116. package/dist/components/Command/index.mjs +42 -52
  117. package/dist/components/Command/index.mjs.map +1 -1
  118. package/dist/components/Container/index.cjs +49 -40
  119. package/dist/components/Container/index.cjs.map +1 -1
  120. package/dist/components/Container/index.d.ts +6 -20
  121. package/dist/components/Container/index.d.ts.map +1 -1
  122. package/dist/components/Container/index.mjs +49 -40
  123. package/dist/components/Container/index.mjs.map +1 -1
  124. package/dist/components/ContentEditor/ContentEditor.cjs +9 -9
  125. package/dist/components/ContentEditor/ContentEditor.cjs.map +1 -1
  126. package/dist/components/ContentEditor/ContentEditor.mjs +6 -6
  127. package/dist/components/ContentEditor/ContentEditor.mjs.map +1 -1
  128. package/dist/components/ContentEditor/ContentEditorInput.cjs +87 -0
  129. package/dist/components/ContentEditor/ContentEditorInput.cjs.map +1 -0
  130. package/dist/components/ContentEditor/ContentEditorInput.d.ts +11 -0
  131. package/dist/components/ContentEditor/ContentEditorInput.d.ts.map +1 -0
  132. package/dist/components/ContentEditor/ContentEditorInput.mjs +87 -0
  133. package/dist/components/ContentEditor/ContentEditorInput.mjs.map +1 -0
  134. package/dist/components/ContentEditor/ContentEditorTextArea.cjs +15 -12
  135. package/dist/components/ContentEditor/ContentEditorTextArea.cjs.map +1 -1
  136. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +1 -1
  137. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts.map +1 -1
  138. package/dist/components/ContentEditor/ContentEditorTextArea.mjs +11 -8
  139. package/dist/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
  140. package/dist/components/ContentSelector/ContentSelector.cjs +2 -2
  141. package/dist/components/ContentSelector/ContentSelector.cjs.map +1 -1
  142. package/dist/components/ContentSelector/ContentSelector.mjs +2 -2
  143. package/dist/components/ContentSelector/ContentSelector.mjs.map +1 -1
  144. package/dist/components/CopyToClipboard/index.cjs +6 -6
  145. package/dist/components/CopyToClipboard/index.cjs.map +1 -1
  146. package/dist/components/CopyToClipboard/index.d.ts.map +1 -1
  147. package/dist/components/CopyToClipboard/index.mjs +4 -4
  148. package/dist/components/CopyToClipboard/index.mjs.map +1 -1
  149. package/dist/components/DictionaryEditor/DictionaryEditor.cjs +6 -6
  150. package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -1
  151. package/dist/components/DictionaryEditor/DictionaryEditor.mjs +5 -5
  152. package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
  153. package/dist/components/DictionaryEditor/ItemLayout.cjs +8 -8
  154. package/dist/components/DictionaryEditor/ItemLayout.cjs.map +1 -1
  155. package/dist/components/DictionaryEditor/ItemLayout.mjs +8 -8
  156. package/dist/components/DictionaryEditor/ItemLayout.mjs.map +1 -1
  157. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs +2 -4
  158. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.map +1 -1
  159. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts.map +1 -1
  160. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs +2 -4
  161. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs.map +1 -1
  162. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.cjs +8 -0
  163. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.cjs.map +1 -0
  164. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.d.ts +9 -0
  165. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.d.ts.map +1 -0
  166. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.mjs +8 -0
  167. package/dist/components/DictionaryEditor/NodeWrapper/ConditionWrapper.mjs.map +1 -0
  168. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs +2 -2
  169. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts.map +1 -1
  170. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs +2 -2
  171. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.cjs +7 -0
  172. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.cjs.map +1 -0
  173. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.d.ts +9 -0
  174. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.d.ts.map +1 -0
  175. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.mjs +7 -0
  176. package/dist/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.mjs.map +1 -0
  177. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs +2 -4
  178. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.map +1 -1
  179. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts.map +1 -1
  180. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs +2 -4
  181. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs.map +1 -1
  182. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs +13 -7
  183. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.map +1 -1
  184. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts.map +1 -1
  185. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +13 -7
  186. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs.map +1 -1
  187. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs +2 -2
  188. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts.map +1 -1
  189. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs +2 -2
  190. package/dist/components/DictionaryEditor/NodeWrapper/index.cjs +2 -3
  191. package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.map +1 -1
  192. package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts.map +1 -1
  193. package/dist/components/DictionaryEditor/NodeWrapper/index.mjs +2 -3
  194. package/dist/components/DictionaryEditor/NodeWrapper/index.mjs.map +1 -1
  195. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +13 -21
  196. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
  197. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
  198. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +8 -16
  199. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
  200. package/dist/components/DictionaryFieldEditor/ContentEditor.cjs +54 -0
  201. package/dist/components/DictionaryFieldEditor/ContentEditor.cjs.map +1 -0
  202. package/dist/components/DictionaryFieldEditor/ContentEditor.d.ts +8 -0
  203. package/dist/components/DictionaryFieldEditor/ContentEditor.d.ts.map +1 -0
  204. package/dist/components/DictionaryFieldEditor/ContentEditor.mjs +54 -0
  205. package/dist/components/DictionaryFieldEditor/ContentEditor.mjs.map +1 -0
  206. package/dist/components/DictionaryFieldEditor/ContentEditorView/EditorView.cjs +44 -0
  207. package/dist/components/DictionaryFieldEditor/ContentEditorView/EditorView.cjs.map +1 -0
  208. package/dist/components/DictionaryFieldEditor/{EditorView → ContentEditorView}/EditorView.d.ts +0 -2
  209. package/dist/components/DictionaryFieldEditor/ContentEditorView/EditorView.d.ts.map +1 -0
  210. package/dist/components/DictionaryFieldEditor/ContentEditorView/EditorView.mjs +44 -0
  211. package/dist/components/DictionaryFieldEditor/ContentEditorView/EditorView.mjs.map +1 -0
  212. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +549 -0
  213. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs.map +1 -0
  214. package/dist/components/DictionaryFieldEditor/{EditorView → ContentEditorView}/TextEditor.d.ts +1 -3
  215. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -0
  216. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +549 -0
  217. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -0
  218. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +5 -7
  219. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
  220. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts +0 -2
  221. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -1
  222. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +3 -5
  223. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
  224. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +10 -10
  225. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  226. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +10 -10
  227. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  228. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +5 -5
  229. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs.map +1 -1
  230. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +5 -5
  231. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs.map +1 -1
  232. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +189 -179
  233. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  234. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
  235. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +185 -175
  236. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  237. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +11 -11
  238. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs.map +1 -1
  239. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts +2 -2
  240. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +11 -11
  241. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs.map +1 -1
  242. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +98 -77
  243. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  244. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +0 -2
  245. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
  246. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +97 -76
  247. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  248. package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs +17 -17
  249. package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs.map +1 -1
  250. package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs +12 -12
  251. package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs.map +1 -1
  252. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs +23 -14
  253. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs.map +1 -1
  254. package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts.map +1 -1
  255. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs +21 -12
  256. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs.map +1 -1
  257. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs +3 -3
  258. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs.map +1 -1
  259. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs +3 -3
  260. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs.map +1 -1
  261. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +61 -81
  262. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
  263. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
  264. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +60 -80
  265. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
  266. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +37 -37
  267. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -1
  268. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +12 -12
  269. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
  270. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +37 -37
  271. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -1
  272. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +23 -64
  273. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
  274. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts +2 -3
  275. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
  276. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +21 -62
  277. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
  278. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +15 -15
  279. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  280. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  281. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +9 -9
  282. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  283. package/dist/components/DictionaryFieldEditor/StructureEditor.cjs +31 -0
  284. package/dist/components/DictionaryFieldEditor/StructureEditor.cjs.map +1 -0
  285. package/dist/components/DictionaryFieldEditor/StructureEditor.d.ts +8 -0
  286. package/dist/components/DictionaryFieldEditor/StructureEditor.d.ts.map +1 -0
  287. package/dist/components/DictionaryFieldEditor/StructureEditor.mjs +31 -0
  288. package/dist/components/DictionaryFieldEditor/StructureEditor.mjs.map +1 -0
  289. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +270 -0
  290. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs.map +1 -0
  291. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.d.ts +16 -0
  292. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.d.ts.map +1 -0
  293. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +270 -0
  294. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -0
  295. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs +76 -0
  296. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs.map +1 -0
  297. package/dist/components/DictionaryFieldEditor/{editorView.content.d.ts → StructureView/structureView.content.d.ts} +4 -51
  298. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts.map +1 -0
  299. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs +76 -0
  300. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs.map +1 -0
  301. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs +11 -11
  302. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs.map +1 -1
  303. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +11 -11
  304. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs.map +1 -1
  305. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +6 -6
  306. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs.map +1 -1
  307. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +3 -3
  308. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs.map +1 -1
  309. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +0 -30
  310. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -1
  311. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +0 -30
  312. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
  313. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +0 -30
  314. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -1
  315. package/dist/components/DictionaryFieldEditor/getIsEditableSection.cjs +7 -44
  316. package/dist/components/DictionaryFieldEditor/getIsEditableSection.cjs.map +1 -1
  317. package/dist/components/DictionaryFieldEditor/getIsEditableSection.d.ts.map +1 -1
  318. package/dist/components/DictionaryFieldEditor/getIsEditableSection.mjs +8 -45
  319. package/dist/components/DictionaryFieldEditor/getIsEditableSection.mjs.map +1 -1
  320. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +52 -21
  321. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -1
  322. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +31 -0
  323. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
  324. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +52 -21
  325. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -1
  326. package/dist/components/DropDown/index.cjs +5 -5
  327. package/dist/components/DropDown/index.cjs.map +1 -1
  328. package/dist/components/DropDown/index.mjs +5 -5
  329. package/dist/components/DropDown/index.mjs.map +1 -1
  330. package/dist/components/EditableField/EditableFieldInput.cjs +15 -12
  331. package/dist/components/EditableField/EditableFieldInput.cjs.map +1 -1
  332. package/dist/components/EditableField/EditableFieldInput.d.ts +2 -1
  333. package/dist/components/EditableField/EditableFieldInput.d.ts.map +1 -1
  334. package/dist/components/EditableField/EditableFieldInput.mjs +12 -9
  335. package/dist/components/EditableField/EditableFieldInput.mjs.map +1 -1
  336. package/dist/components/EditableField/EditableFieldLayout.cjs +13 -13
  337. package/dist/components/EditableField/EditableFieldLayout.cjs.map +1 -1
  338. package/dist/components/EditableField/EditableFieldLayout.d.ts +1 -1
  339. package/dist/components/EditableField/EditableFieldLayout.d.ts.map +1 -1
  340. package/dist/components/EditableField/EditableFieldLayout.mjs +8 -8
  341. package/dist/components/EditableField/EditableFieldLayout.mjs.map +1 -1
  342. package/dist/components/EditableField/EditableFieldTextArea.cjs +19 -15
  343. package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
  344. package/dist/components/EditableField/EditableFieldTextArea.d.ts +2 -1
  345. package/dist/components/EditableField/EditableFieldTextArea.d.ts.map +1 -1
  346. package/dist/components/EditableField/EditableFieldTextArea.mjs +17 -13
  347. package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
  348. package/dist/components/Flags/Flag.cjs +2 -2
  349. package/dist/components/Flags/Flag.cjs.map +1 -1
  350. package/dist/components/Flags/Flag.d.ts.map +1 -1
  351. package/dist/components/Flags/Flag.mjs +2 -2
  352. package/dist/components/Flags/Flag.mjs.map +1 -1
  353. package/dist/components/Footer/index.cjs +8 -8
  354. package/dist/components/Footer/index.cjs.map +1 -1
  355. package/dist/components/Footer/index.mjs +8 -8
  356. package/dist/components/Footer/index.mjs.map +1 -1
  357. package/dist/components/Form/Form.cjs +2 -2
  358. package/dist/components/Form/Form.d.ts.map +1 -1
  359. package/dist/components/Form/Form.mjs +2 -2
  360. package/dist/components/Form/FormBase.cjs +38 -42
  361. package/dist/components/Form/FormBase.cjs.map +1 -1
  362. package/dist/components/Form/FormBase.d.ts +11 -8
  363. package/dist/components/Form/FormBase.d.ts.map +1 -1
  364. package/dist/components/Form/FormBase.mjs +39 -43
  365. package/dist/components/Form/FormBase.mjs.map +1 -1
  366. package/dist/components/Form/FormControl.cjs +4 -7
  367. package/dist/components/Form/FormControl.cjs.map +1 -1
  368. package/dist/components/Form/FormControl.d.ts +3 -1
  369. package/dist/components/Form/FormControl.d.ts.map +1 -1
  370. package/dist/components/Form/FormControl.mjs +4 -7
  371. package/dist/components/Form/FormControl.mjs.map +1 -1
  372. package/dist/components/Form/FormDescription.cjs +4 -7
  373. package/dist/components/Form/FormDescription.cjs.map +1 -1
  374. package/dist/components/Form/FormDescription.d.ts +2 -2
  375. package/dist/components/Form/FormDescription.d.ts.map +1 -1
  376. package/dist/components/Form/FormDescription.mjs +4 -7
  377. package/dist/components/Form/FormDescription.mjs.map +1 -1
  378. package/dist/components/Form/FormField.cjs +7 -7
  379. package/dist/components/Form/FormField.cjs.map +1 -1
  380. package/dist/components/Form/FormField.mjs +4 -4
  381. package/dist/components/Form/FormField.mjs.map +1 -1
  382. package/dist/components/Form/FormItem.cjs +8 -9
  383. package/dist/components/Form/FormItem.cjs.map +1 -1
  384. package/dist/components/Form/FormItem.d.ts +2 -2
  385. package/dist/components/Form/FormItem.d.ts.map +1 -1
  386. package/dist/components/Form/FormItem.mjs +5 -6
  387. package/dist/components/Form/FormItem.mjs.map +1 -1
  388. package/dist/components/Form/FormLabel.cjs +7 -7
  389. package/dist/components/Form/FormLabel.cjs.map +1 -1
  390. package/dist/components/Form/FormLabel.d.ts +3 -1
  391. package/dist/components/Form/FormLabel.d.ts.map +1 -1
  392. package/dist/components/Form/FormLabel.mjs +7 -7
  393. package/dist/components/Form/FormLabel.mjs.map +1 -1
  394. package/dist/components/Form/FormMessage.cjs +2 -2
  395. package/dist/components/Form/FormMessage.cjs.map +1 -1
  396. package/dist/components/Form/FormMessage.mjs +2 -2
  397. package/dist/components/Form/FormMessage.mjs.map +1 -1
  398. package/dist/components/Form/elements/AutoSizeTextAreaElement.cjs +2 -2
  399. package/dist/components/Form/elements/AutoSizeTextAreaElement.mjs +2 -2
  400. package/dist/components/Form/elements/CheckboxElement.cjs +4 -4
  401. package/dist/components/Form/elements/CheckboxElement.d.ts.map +1 -1
  402. package/dist/components/Form/elements/CheckboxElement.mjs +4 -4
  403. package/dist/components/Form/elements/EditableFieldInputElement.cjs +2 -2
  404. package/dist/components/Form/elements/EditableFieldInputElement.d.ts.map +1 -1
  405. package/dist/components/Form/elements/EditableFieldInputElement.mjs +2 -2
  406. package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs +2 -2
  407. package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts.map +1 -1
  408. package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs +2 -2
  409. package/dist/components/Form/elements/FormElement.cjs +2 -3
  410. package/dist/components/Form/elements/FormElement.cjs.map +1 -1
  411. package/dist/components/Form/elements/FormElement.d.ts.map +1 -1
  412. package/dist/components/Form/elements/FormElement.mjs +2 -3
  413. package/dist/components/Form/elements/FormElement.mjs.map +1 -1
  414. package/dist/components/Form/elements/FormElementWrapper.cjs +2 -2
  415. package/dist/components/Form/elements/FormElementWrapper.cjs.map +1 -1
  416. package/dist/components/Form/elements/FormElementWrapper.mjs +2 -2
  417. package/dist/components/Form/elements/FormElementWrapper.mjs.map +1 -1
  418. package/dist/components/Form/elements/InputElement.cjs +4 -3
  419. package/dist/components/Form/elements/InputElement.cjs.map +1 -1
  420. package/dist/components/Form/elements/InputElement.d.ts.map +1 -1
  421. package/dist/components/Form/elements/InputElement.mjs +4 -3
  422. package/dist/components/Form/elements/InputElement.mjs.map +1 -1
  423. package/dist/components/Form/elements/InputPasswordElement.cjs +2 -2
  424. package/dist/components/Form/elements/InputPasswordElement.d.ts.map +1 -1
  425. package/dist/components/Form/elements/InputPasswordElement.mjs +2 -2
  426. package/dist/components/Form/elements/MultiselectElement.cjs +2 -2
  427. package/dist/components/Form/elements/MultiselectElement.d.ts.map +1 -1
  428. package/dist/components/Form/elements/MultiselectElement.mjs +2 -2
  429. package/dist/components/Form/elements/SelectElement.cjs +2 -2
  430. package/dist/components/Form/elements/SelectElement.mjs +2 -2
  431. package/dist/components/Form/elements/SwitchSelectorElement.cjs +2 -2
  432. package/dist/components/Form/elements/SwitchSelectorElement.d.ts.map +1 -1
  433. package/dist/components/Form/elements/SwitchSelectorElement.mjs +2 -2
  434. package/dist/components/Form/elements/TextAreaElement.cjs +2 -2
  435. package/dist/components/Form/elements/TextAreaElement.d.ts.map +1 -1
  436. package/dist/components/Form/elements/TextAreaElement.mjs +2 -2
  437. package/dist/components/Form/elements/index.cjs +1 -1
  438. package/dist/components/Form/elements/index.d.ts.map +1 -1
  439. package/dist/components/Form/elements/index.mjs +1 -1
  440. package/dist/components/Form/index.cjs +1 -1
  441. package/dist/components/Form/index.mjs +1 -1
  442. package/dist/components/Form/layout/FormItemLayout.cjs +2 -2
  443. package/dist/components/Form/layout/FormItemLayout.d.ts.map +1 -1
  444. package/dist/components/Form/layout/FormItemLayout.mjs +2 -2
  445. package/dist/components/Form/layout/FormLabelLayout.cjs +5 -5
  446. package/dist/components/Form/layout/FormLabelLayout.cjs.map +1 -1
  447. package/dist/components/Form/layout/FormLabelLayout.mjs +5 -5
  448. package/dist/components/Form/layout/FormLabelLayout.mjs.map +1 -1
  449. package/dist/components/Form/layout/RequiredStar.cjs +2 -2
  450. package/dist/components/Form/layout/RequiredStar.cjs.map +1 -1
  451. package/dist/components/Form/layout/RequiredStar.mjs +2 -2
  452. package/dist/components/Form/layout/RequiredStar.mjs.map +1 -1
  453. package/dist/components/Form/layout/index.cjs +1 -1
  454. package/dist/components/Form/layout/index.d.ts.map +1 -1
  455. package/dist/components/Form/layout/index.mjs +1 -1
  456. package/dist/components/Headers/SectionScroller.cjs +4 -4
  457. package/dist/components/Headers/SectionScroller.cjs.map +1 -1
  458. package/dist/components/Headers/index.cjs +12 -12
  459. package/dist/components/Headers/index.cjs.map +1 -1
  460. package/dist/components/Headers/index.d.ts.map +1 -1
  461. package/dist/components/Headers/index.mjs +12 -12
  462. package/dist/components/Headers/index.mjs.map +1 -1
  463. package/dist/components/IDE/Code.cjs +59 -64
  464. package/dist/components/IDE/Code.cjs.map +1 -1
  465. package/dist/components/IDE/Code.d.ts +5 -3
  466. package/dist/components/IDE/Code.d.ts.map +1 -1
  467. package/dist/components/IDE/Code.mjs +59 -64
  468. package/dist/components/IDE/Code.mjs.map +1 -1
  469. package/dist/components/IDE/CodeBlockClient.cjs +9 -9
  470. package/dist/components/IDE/CodeBlockClient.cjs.map +1 -1
  471. package/dist/components/IDE/CodeBlockClient.d.ts.map +1 -1
  472. package/dist/components/IDE/CodeBlockClient.mjs +5 -5
  473. package/dist/components/IDE/CodeBlockClient.mjs.map +1 -1
  474. package/dist/components/IDE/CodeBlockServer.cjs +5 -5
  475. package/dist/components/IDE/CodeBlockServer.cjs.map +1 -1
  476. package/dist/components/IDE/CodeBlockServer.d.ts.map +1 -1
  477. package/dist/components/IDE/CodeBlockServer.mjs +4 -4
  478. package/dist/components/IDE/CodeBlockServer.mjs.map +1 -1
  479. package/dist/components/IDE/CodeConditionalRenderer.cjs +2 -2
  480. package/dist/components/IDE/CodeConditionalRenderer.cjs.map +1 -1
  481. package/dist/components/IDE/CodeConditionalRenderer.d.ts.map +1 -1
  482. package/dist/components/IDE/CodeConditionalRenderer.mjs +2 -2
  483. package/dist/components/IDE/CodeConditionalRenderer.mjs.map +1 -1
  484. package/dist/components/IDE/CodeContext.cjs +6 -6
  485. package/dist/components/IDE/CodeContext.cjs.map +1 -1
  486. package/dist/components/IDE/CodeContext.mjs +3 -3
  487. package/dist/components/IDE/CodeContext.mjs.map +1 -1
  488. package/dist/components/IDE/CodeFormatSelector.cjs +7 -7
  489. package/dist/components/IDE/CodeFormatSelector.cjs.map +1 -1
  490. package/dist/components/IDE/CodeFormatSelector.mjs +7 -7
  491. package/dist/components/IDE/CodeFormatSelector.mjs.map +1 -1
  492. package/dist/components/IDE/ContentDeclarationFormatSelector.cjs +8 -8
  493. package/dist/components/IDE/ContentDeclarationFormatSelector.cjs.map +1 -1
  494. package/dist/components/IDE/ContentDeclarationFormatSelector.mjs +8 -8
  495. package/dist/components/IDE/ContentDeclarationFormatSelector.mjs.map +1 -1
  496. package/dist/components/IDE/CopyButton.cjs +5 -5
  497. package/dist/components/IDE/CopyButton.cjs.map +1 -1
  498. package/dist/components/IDE/CopyButton.mjs +2 -2
  499. package/dist/components/IDE/CopyButton.mjs.map +1 -1
  500. package/dist/components/IDE/FileList.cjs +7 -7
  501. package/dist/components/IDE/FileList.cjs.map +1 -1
  502. package/dist/components/IDE/FileList.mjs +7 -7
  503. package/dist/components/IDE/FileList.mjs.map +1 -1
  504. package/dist/components/IDE/FileTree.cjs +10 -10
  505. package/dist/components/IDE/FileTree.cjs.map +1 -1
  506. package/dist/components/IDE/FileTree.d.ts.map +1 -1
  507. package/dist/components/IDE/FileTree.mjs +8 -8
  508. package/dist/components/IDE/FileTree.mjs.map +1 -1
  509. package/dist/components/IDE/IDE.cjs +15 -15
  510. package/dist/components/IDE/IDE.cjs.map +1 -1
  511. package/dist/components/IDE/IDE.mjs +12 -12
  512. package/dist/components/IDE/IDE.mjs.map +1 -1
  513. package/dist/components/IDE/MarkDownRender.cjs +4 -4
  514. package/dist/components/IDE/MarkDownRender.cjs.map +1 -1
  515. package/dist/components/IDE/MarkDownRender.mjs +4 -4
  516. package/dist/components/IDE/MarkDownRender.mjs.map +1 -1
  517. package/dist/components/IDE/MonacoCode.cjs +18 -12
  518. package/dist/components/IDE/MonacoCode.cjs.map +1 -1
  519. package/dist/components/IDE/MonacoCode.d.ts.map +1 -1
  520. package/dist/components/IDE/MonacoCode.mjs +13 -7
  521. package/dist/components/IDE/MonacoCode.mjs.map +1 -1
  522. package/dist/components/IDE/PackageManagerSelector.cjs +7 -7
  523. package/dist/components/IDE/PackageManagerSelector.cjs.map +1 -1
  524. package/dist/components/IDE/PackageManagerSelector.mjs +7 -7
  525. package/dist/components/IDE/PackageManagerSelector.mjs.map +1 -1
  526. package/dist/components/IDE/createFileTree.cjs +1 -1
  527. package/dist/components/IDE/createFileTree.cjs.map +1 -1
  528. package/dist/components/IDE/createFileTree.mjs +1 -1
  529. package/dist/components/IDE/createFileTree.mjs.map +1 -1
  530. package/dist/components/InformationTag/index.cjs +2 -2
  531. package/dist/components/InformationTag/index.cjs.map +1 -1
  532. package/dist/components/InformationTag/index.mjs +2 -2
  533. package/dist/components/InformationTag/index.mjs.map +1 -1
  534. package/dist/components/Input/Checkbox.cjs +31 -34
  535. package/dist/components/Input/Checkbox.cjs.map +1 -1
  536. package/dist/components/Input/Checkbox.d.ts +2 -2
  537. package/dist/components/Input/Checkbox.d.ts.map +1 -1
  538. package/dist/components/Input/Checkbox.mjs +31 -34
  539. package/dist/components/Input/Checkbox.mjs.map +1 -1
  540. package/dist/components/Input/Input.cjs +18 -17
  541. package/dist/components/Input/Input.cjs.map +1 -1
  542. package/dist/components/Input/Input.d.ts +2 -2
  543. package/dist/components/Input/Input.d.ts.map +1 -1
  544. package/dist/components/Input/Input.mjs +18 -17
  545. package/dist/components/Input/Input.mjs.map +1 -1
  546. package/dist/components/Input/InputPassword.cjs +30 -40
  547. package/dist/components/Input/InputPassword.cjs.map +1 -1
  548. package/dist/components/Input/InputPassword.d.ts +2 -1
  549. package/dist/components/Input/InputPassword.d.ts.map +1 -1
  550. package/dist/components/Input/InputPassword.mjs +30 -40
  551. package/dist/components/Input/InputPassword.mjs.map +1 -1
  552. package/dist/components/Label/index.cjs +6 -6
  553. package/dist/components/Label/index.cjs.map +1 -1
  554. package/dist/components/Label/index.d.ts +2 -2
  555. package/dist/components/Label/index.d.ts.map +1 -1
  556. package/dist/components/Label/index.mjs +6 -6
  557. package/dist/components/Label/index.mjs.map +1 -1
  558. package/dist/components/Link/Link.cjs +5 -8
  559. package/dist/components/Link/Link.cjs.map +1 -1
  560. package/dist/components/Link/Link.d.ts +4 -4
  561. package/dist/components/Link/Link.d.ts.map +1 -1
  562. package/dist/components/Link/Link.mjs +5 -8
  563. package/dist/components/Link/Link.mjs.map +1 -1
  564. package/dist/components/Loader/index.cjs +4 -4
  565. package/dist/components/Loader/index.cjs.map +1 -1
  566. package/dist/components/Loader/index.d.ts.map +1 -1
  567. package/dist/components/Loader/index.mjs +4 -4
  568. package/dist/components/Loader/index.mjs.map +1 -1
  569. package/dist/components/Loader/spinner.cjs +9 -9
  570. package/dist/components/Loader/spinner.cjs.map +1 -1
  571. package/dist/components/Loader/spinner.mjs +9 -9
  572. package/dist/components/Loader/spinner.mjs.map +1 -1
  573. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +26 -27
  574. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
  575. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +20 -21
  576. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
  577. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +6 -6
  578. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs.map +1 -1
  579. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +3 -3
  580. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs.map +1 -1
  581. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +22 -23
  582. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -1
  583. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +16 -17
  584. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -1
  585. package/dist/components/Logo/LogoCircle.cjs +4 -4
  586. package/dist/components/Logo/LogoCircle.cjs.map +1 -1
  587. package/dist/components/Logo/LogoCircle.mjs +4 -4
  588. package/dist/components/Logo/LogoCircle.mjs.map +1 -1
  589. package/dist/components/Logo/LogoNoFrame.cjs +17 -17
  590. package/dist/components/Logo/LogoNoFrame.cjs.map +1 -1
  591. package/dist/components/Logo/LogoNoFrame.mjs +17 -17
  592. package/dist/components/Logo/LogoNoFrame.mjs.map +1 -1
  593. package/dist/components/Logo/LogoSquare.cjs +4 -4
  594. package/dist/components/Logo/LogoSquare.cjs.map +1 -1
  595. package/dist/components/Logo/LogoSquare.mjs +4 -4
  596. package/dist/components/Logo/LogoSquare.mjs.map +1 -1
  597. package/dist/components/Logo/LogoSquircle.cjs +8 -8
  598. package/dist/components/Logo/LogoSquircle.cjs.map +1 -1
  599. package/dist/components/Logo/LogoSquircle.mjs +8 -8
  600. package/dist/components/Logo/LogoSquircle.mjs.map +1 -1
  601. package/dist/components/Logo/LogoTextOnly.cjs +17 -17
  602. package/dist/components/Logo/LogoTextOnly.cjs.map +1 -1
  603. package/dist/components/Logo/LogoTextOnly.mjs +17 -17
  604. package/dist/components/Logo/LogoTextOnly.mjs.map +1 -1
  605. package/dist/components/Logo/LogoWithTextBelowCircle.cjs +19 -19
  606. package/dist/components/Logo/LogoWithTextBelowCircle.cjs.map +1 -1
  607. package/dist/components/Logo/LogoWithTextBelowCircle.mjs +19 -19
  608. package/dist/components/Logo/LogoWithTextBelowCircle.mjs.map +1 -1
  609. package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs +17 -17
  610. package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.map +1 -1
  611. package/dist/components/Logo/LogoWithTextBelowNoFrame.mjs +17 -17
  612. package/dist/components/Logo/LogoWithTextBelowNoFrame.mjs.map +1 -1
  613. package/dist/components/Logo/LogoWithTextBelowSquircle.cjs +8 -8
  614. package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.map +1 -1
  615. package/dist/components/Logo/LogoWithTextBelowSquircle.mjs +8 -8
  616. package/dist/components/Logo/LogoWithTextBelowSquircle.mjs.map +1 -1
  617. package/dist/components/Logo/LogoWithTextCircle.cjs +35 -35
  618. package/dist/components/Logo/LogoWithTextCircle.cjs.map +1 -1
  619. package/dist/components/Logo/LogoWithTextCircle.mjs +35 -35
  620. package/dist/components/Logo/LogoWithTextCircle.mjs.map +1 -1
  621. package/dist/components/Logo/LogoWithTextNoFrame.cjs +17 -17
  622. package/dist/components/Logo/LogoWithTextNoFrame.cjs.map +1 -1
  623. package/dist/components/Logo/LogoWithTextNoFrame.mjs +17 -17
  624. package/dist/components/Logo/LogoWithTextNoFrame.mjs.map +1 -1
  625. package/dist/components/Logo/LogoWithTextSquircle.cjs +8 -8
  626. package/dist/components/Logo/LogoWithTextSquircle.cjs.map +1 -1
  627. package/dist/components/Logo/LogoWithTextSquircle.mjs +8 -8
  628. package/dist/components/Logo/LogoWithTextSquircle.mjs.map +1 -1
  629. package/dist/components/Logo/index.cjs +12 -12
  630. package/dist/components/Logo/index.cjs.map +1 -1
  631. package/dist/components/Logo/index.mjs +12 -12
  632. package/dist/components/Logo/index.mjs.map +1 -1
  633. package/dist/components/MarkDownRender/index.cjs +21 -21
  634. package/dist/components/MarkDownRender/index.cjs.map +1 -1
  635. package/dist/components/MarkDownRender/index.d.ts.map +1 -1
  636. package/dist/components/MarkDownRender/index.mjs +22 -22
  637. package/dist/components/MarkDownRender/index.mjs.map +1 -1
  638. package/dist/components/MaxHeightSmoother/index.cjs +3 -3
  639. package/dist/components/MaxHeightSmoother/index.cjs.map +1 -1
  640. package/dist/components/MaxHeightSmoother/index.mjs +3 -3
  641. package/dist/components/MaxHeightSmoother/index.mjs.map +1 -1
  642. package/dist/components/MaxWidthSmoother/index.cjs +3 -3
  643. package/dist/components/MaxWidthSmoother/index.cjs.map +1 -1
  644. package/dist/components/MaxWidthSmoother/index.mjs +3 -3
  645. package/dist/components/MaxWidthSmoother/index.mjs.map +1 -1
  646. package/dist/components/Modal/Modal.cjs +9 -9
  647. package/dist/components/Modal/Modal.cjs.map +1 -1
  648. package/dist/components/Modal/Modal.mjs +9 -9
  649. package/dist/components/Modal/Modal.mjs.map +1 -1
  650. package/dist/components/Navbar/Burger.cjs +9 -9
  651. package/dist/components/Navbar/Burger.cjs.map +1 -1
  652. package/dist/components/Navbar/Burger.mjs +9 -9
  653. package/dist/components/Navbar/Burger.mjs.map +1 -1
  654. package/dist/components/Navbar/DesktopNavbar.cjs +4 -4
  655. package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -1
  656. package/dist/components/Navbar/DesktopNavbar.d.ts.map +1 -1
  657. package/dist/components/Navbar/DesktopNavbar.mjs +4 -4
  658. package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -1
  659. package/dist/components/Navbar/MobileNavbar.cjs +15 -15
  660. package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
  661. package/dist/components/Navbar/MobileNavbar.d.ts.map +1 -1
  662. package/dist/components/Navbar/MobileNavbar.mjs +11 -11
  663. package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
  664. package/dist/components/Navbar/index.cjs +4 -4
  665. package/dist/components/Navbar/index.cjs.map +1 -1
  666. package/dist/components/Navbar/index.d.ts.map +1 -1
  667. package/dist/components/Navbar/index.mjs +4 -4
  668. package/dist/components/Navbar/index.mjs.map +1 -1
  669. package/dist/components/Navbar/useNavigation.cjs +3 -3
  670. package/dist/components/Navbar/useNavigation.cjs.map +1 -1
  671. package/dist/components/Pattern/DotPattern.cjs +7 -7
  672. package/dist/components/Pattern/DotPattern.cjs.map +1 -1
  673. package/dist/components/Pattern/DotPattern.mjs +5 -5
  674. package/dist/components/Pattern/DotPattern.mjs.map +1 -1
  675. package/dist/components/Pattern/GridPattern.cjs +8 -8
  676. package/dist/components/Pattern/GridPattern.cjs.map +1 -1
  677. package/dist/components/Pattern/GridPattern.mjs +6 -6
  678. package/dist/components/Pattern/GridPattern.mjs.map +1 -1
  679. package/dist/components/Pattern/SpotLight.cjs +7 -7
  680. package/dist/components/Pattern/SpotLight.cjs.map +1 -1
  681. package/dist/components/Pattern/SpotLight.mjs +7 -7
  682. package/dist/components/Pattern/SpotLight.mjs.map +1 -1
  683. package/dist/components/Popover/index.cjs +3 -3
  684. package/dist/components/Popover/index.cjs.map +1 -1
  685. package/dist/components/Popover/index.mjs +3 -3
  686. package/dist/components/Popover/index.mjs.map +1 -1
  687. package/dist/components/PressableSpan/PressableSpan.cjs +8 -8
  688. package/dist/components/PressableSpan/PressableSpan.cjs.map +1 -1
  689. package/dist/components/PressableSpan/PressableSpan.mjs +2 -2
  690. package/dist/components/PressableSpan/PressableSpan.mjs.map +1 -1
  691. package/dist/components/ProfileDropDown/index.cjs +5 -5
  692. package/dist/components/ProfileDropDown/index.cjs.map +1 -1
  693. package/dist/components/ProfileDropDown/index.mjs +5 -5
  694. package/dist/components/ProfileDropDown/index.mjs.map +1 -1
  695. package/dist/components/RightDrawer/RightDrawer.cjs +14 -14
  696. package/dist/components/RightDrawer/RightDrawer.cjs.map +1 -1
  697. package/dist/components/RightDrawer/RightDrawer.d.ts.map +1 -1
  698. package/dist/components/RightDrawer/RightDrawer.mjs +9 -9
  699. package/dist/components/RightDrawer/RightDrawer.mjs.map +1 -1
  700. package/dist/components/Select/Multiselect.cjs +94 -100
  701. package/dist/components/Select/Multiselect.cjs.map +1 -1
  702. package/dist/components/Select/Multiselect.d.ts +9 -29
  703. package/dist/components/Select/Multiselect.d.ts.map +1 -1
  704. package/dist/components/Select/Multiselect.mjs +81 -87
  705. package/dist/components/Select/Multiselect.mjs.map +1 -1
  706. package/dist/components/Select/Select.cjs +30 -37
  707. package/dist/components/Select/Select.cjs.map +1 -1
  708. package/dist/components/Select/Select.d.ts +10 -9
  709. package/dist/components/Select/Select.d.ts.map +1 -1
  710. package/dist/components/Select/Select.mjs +30 -37
  711. package/dist/components/Select/Select.mjs.map +1 -1
  712. package/dist/components/SwitchSelector/index.cjs +11 -11
  713. package/dist/components/SwitchSelector/index.cjs.map +1 -1
  714. package/dist/components/SwitchSelector/index.d.ts +1 -1
  715. package/dist/components/SwitchSelector/index.d.ts.map +1 -1
  716. package/dist/components/SwitchSelector/index.mjs +5 -5
  717. package/dist/components/SwitchSelector/index.mjs.map +1 -1
  718. package/dist/components/TabSelector/TabSelector.cjs +7 -7
  719. package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
  720. package/dist/components/TabSelector/TabSelector.mjs +3 -3
  721. package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
  722. package/dist/components/Tag/index.cjs +27 -32
  723. package/dist/components/Tag/index.cjs.map +1 -1
  724. package/dist/components/Tag/index.d.ts +6 -5
  725. package/dist/components/Tag/index.d.ts.map +1 -1
  726. package/dist/components/Tag/index.mjs +27 -32
  727. package/dist/components/Tag/index.mjs.map +1 -1
  728. package/dist/components/TextArea/AutoSizeTextArea.cjs +17 -11
  729. package/dist/components/TextArea/AutoSizeTextArea.cjs.map +1 -1
  730. package/dist/components/TextArea/AutoSizeTextArea.d.ts +2 -1
  731. package/dist/components/TextArea/AutoSizeTextArea.d.ts.map +1 -1
  732. package/dist/components/TextArea/AutoSizeTextArea.mjs +12 -6
  733. package/dist/components/TextArea/AutoSizeTextArea.mjs.map +1 -1
  734. package/dist/components/TextArea/TextArea.cjs +21 -20
  735. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  736. package/dist/components/TextArea/TextArea.d.ts +2 -2
  737. package/dist/components/TextArea/TextArea.d.ts.map +1 -1
  738. package/dist/components/TextArea/TextArea.mjs +21 -20
  739. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  740. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs +13 -13
  741. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.map +1 -1
  742. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +11 -11
  743. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs.map +1 -1
  744. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs +7 -7
  745. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.map +1 -1
  746. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts.map +1 -1
  747. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs +5 -5
  748. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs.map +1 -1
  749. package/dist/components/Toaster/Toast.cjs +28 -29
  750. package/dist/components/Toaster/Toast.cjs.map +1 -1
  751. package/dist/components/Toaster/Toast.d.ts +11 -10
  752. package/dist/components/Toaster/Toast.d.ts.map +1 -1
  753. package/dist/components/Toaster/Toast.mjs +28 -29
  754. package/dist/components/Toaster/Toast.mjs.map +1 -1
  755. package/dist/components/Toaster/Toaster.cjs +8 -8
  756. package/dist/components/Toaster/Toaster.cjs.map +1 -1
  757. package/dist/components/Toaster/Toaster.mjs +8 -8
  758. package/dist/components/Toaster/Toaster.mjs.map +1 -1
  759. package/dist/components/Toaster/useToast.cjs +3 -3
  760. package/dist/components/Toaster/useToast.cjs.map +1 -1
  761. package/dist/components/WithResizer/index.cjs +11 -11
  762. package/dist/components/WithResizer/index.cjs.map +1 -1
  763. package/dist/components/WithResizer/index.mjs +3 -3
  764. package/dist/components/WithResizer/index.mjs.map +1 -1
  765. package/dist/components/index.cjs +1 -1
  766. package/dist/components/index.mjs +1 -1
  767. package/dist/hooks/index.cjs +1 -1
  768. package/dist/hooks/index.mjs +1 -1
  769. package/dist/hooks/intlayerAPIHooks.cjs +1 -1
  770. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  771. package/dist/hooks/intlayerAPIHooks.d.ts +48 -48
  772. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  773. package/dist/hooks/intlayerAPIHooks.mjs +1 -1
  774. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  775. package/dist/hooks/useAsync/useAsync.cjs +14 -14
  776. package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
  777. package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
  778. package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
  779. package/dist/hooks/useAsync/useAsyncStateStore.cjs +6 -6
  780. package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -1
  781. package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -1
  782. package/dist/hooks/useAsync/useAsyncStateStore.mjs +2 -2
  783. package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -1
  784. package/dist/hooks/useAsync/useAsyncWrapper.cjs.map +1 -1
  785. package/dist/hooks/useAsync/useAsyncWrapper.d.ts.map +1 -1
  786. package/dist/hooks/useAsync/useAsyncWrapper.mjs.map +1 -1
  787. package/dist/hooks/useDevice.cjs +3 -3
  788. package/dist/hooks/useDevice.cjs.map +1 -1
  789. package/dist/hooks/useDevice.d.ts.map +1 -1
  790. package/dist/hooks/useDevice.mjs.map +1 -1
  791. package/dist/hooks/useGetAllDictionaries.cjs +3 -3
  792. package/dist/hooks/useGetAllDictionaries.cjs.map +1 -1
  793. package/dist/hooks/useGetAllDictionaries.d.ts +1 -1
  794. package/dist/hooks/useGetAllDictionaries.d.ts.map +1 -1
  795. package/dist/hooks/useGetAllDictionaries.mjs.map +1 -1
  796. package/dist/hooks/useGetElementOrWindow.cjs +3 -3
  797. package/dist/hooks/useGetElementOrWindow.cjs.map +1 -1
  798. package/dist/hooks/useIntlayerAPI.cjs +7 -5
  799. package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
  800. package/dist/hooks/useIntlayerAPI.d.ts +59 -59
  801. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  802. package/dist/hooks/useIntlayerAPI.mjs +3 -1
  803. package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
  804. package/dist/hooks/useIsDarkMode.cjs +3 -3
  805. package/dist/hooks/useIsDarkMode.cjs.map +1 -1
  806. package/dist/hooks/useIsMounted.cjs +3 -3
  807. package/dist/hooks/useIsMounted.cjs.map +1 -1
  808. package/dist/hooks/useItemSelector.cjs +4 -4
  809. package/dist/hooks/useItemSelector.cjs.map +1 -1
  810. package/dist/hooks/usePersistedStore.cjs +5 -5
  811. package/dist/hooks/usePersistedStore.cjs.map +1 -1
  812. package/dist/hooks/useScrollBlockage/index.cjs +1 -1
  813. package/dist/hooks/useScrollBlockage/index.mjs +1 -1
  814. package/dist/hooks/useScrollDetection.cjs +8 -8
  815. package/dist/hooks/useScrollDetection.cjs.map +1 -1
  816. package/dist/hooks/useScrollDetection.mjs +1 -1
  817. package/dist/index-2Yc9SLPe.cjs +184 -0
  818. package/dist/index-2Yc9SLPe.cjs.map +1 -0
  819. package/dist/index-B4mYwsto.js +185 -0
  820. package/dist/index-B4mYwsto.js.map +1 -0
  821. package/dist/{index-O_7rYrbW.js → index-BCuMWKyy.js} +3 -3
  822. package/dist/index-BCuMWKyy.js.map +1 -0
  823. package/dist/{index-Cg-S9ry9.cjs → index-BYzBot7l.cjs} +4 -4
  824. package/dist/{index-O_7rYrbW.js.map → index-BYzBot7l.cjs.map} +1 -1
  825. package/dist/tailwind.config.cjs.map +1 -1
  826. package/dist/tailwind.config.mjs.map +1 -1
  827. package/dist/tailwind.css +1 -1
  828. package/dist/zod-BV4nCGJE.js.map +1 -1
  829. package/dist/zod-DSrtTSD_.cjs.map +1 -1
  830. package/package.json +26 -26
  831. package/dist/Form-CSMiPnjC.cjs.map +0 -1
  832. package/dist/Form-DlqjTz3u.js.map +0 -1
  833. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +0 -143
  834. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +0 -1
  835. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +0 -1
  836. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +0 -143
  837. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +0 -1
  838. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +0 -361
  839. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +0 -1
  840. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +0 -1
  841. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +0 -361
  842. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +0 -1
  843. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs +0 -70
  844. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs.map +0 -1
  845. package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts +0 -10
  846. package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts.map +0 -1
  847. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs +0 -70
  848. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs.map +0 -1
  849. package/dist/components/DictionaryFieldEditor/editorView.content.cjs +0 -123
  850. package/dist/components/DictionaryFieldEditor/editorView.content.cjs.map +0 -1
  851. package/dist/components/DictionaryFieldEditor/editorView.content.d.ts.map +0 -1
  852. package/dist/components/DictionaryFieldEditor/editorView.content.mjs +0 -123
  853. package/dist/components/DictionaryFieldEditor/editorView.content.mjs.map +0 -1
  854. package/dist/index-B-adg6xa.js +0 -206
  855. package/dist/index-B-adg6xa.js.map +0 -1
  856. package/dist/index-Cg-S9ry9.cjs.map +0 -1
  857. package/dist/index-DAsui9u9.cjs +0 -205
  858. package/dist/index-DAsui9u9.cjs.map +0 -1
  859. package/dist/jsx-runtime-CgFM7lM3.cjs +0 -934
  860. package/dist/jsx-runtime-CgFM7lM3.cjs.map +0 -1
  861. package/dist/jsx-runtime-DQkoUcjV.js +0 -935
  862. package/dist/jsx-runtime-DQkoUcjV.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require$$0 = require("react");
4
+ const ReactExports = require("react");
5
5
  const TOAST_LIMIT = 1;
6
6
  const TOAST_REMOVE_DELAY = 15 * 60 * 1e3;
7
7
  let count = 0;
@@ -102,8 +102,8 @@ const toast = ({ ...props }) => {
102
102
  };
103
103
  };
104
104
  const useToast = () => {
105
- const [state, setState] = require$$0.useState(memoryState);
106
- require$$0.useEffect(() => {
105
+ const [state, setState] = ReactExports.useState(memoryState);
106
+ ReactExports.useEffect(() => {
107
107
  listeners.push(setState);
108
108
  return () => {
109
109
  const index = listeners.indexOf(setState);
@@ -1 +1 @@
1
- {"version":3,"file":"useToast.cjs","sources":["../../../src/components/Toaster/useToast.tsx"],"sourcesContent":["'use client';\n\nimport { type ReactNode, useState, useEffect } from 'react';\nimport type { ToastProps, ToastActionElement } from './Toast';\n\nconst TOAST_LIMIT = 1;\nconst TOAST_REMOVE_DELAY = 15 * 60 * 1000; // 15 seconds\n\ntype ToasterToast = ToastProps & {\n id: string;\n title?: ReactNode;\n description?: ReactNode;\n action?: ToastActionElement;\n};\n\nenum ActionTypes {\n ADD_TOAST = 'ADD_TOAST',\n UPDATE_TOAST = 'UPDATE_TOAST',\n DISMISS_TOAST = 'DISMISS_TOAST',\n REMOVE_TOAST = 'REMOVE_TOAST',\n}\n\nlet count = 0;\n\nconst genId = () => {\n count = (count + 1) % Number.MAX_SAFE_INTEGER;\n return count.toString();\n};\n\ntype Action =\n | {\n type: ActionTypes.ADD_TOAST;\n toast: ToasterToast;\n }\n | {\n type: ActionTypes.UPDATE_TOAST;\n toast: Partial<ToasterToast>;\n }\n | {\n type: ActionTypes.DISMISS_TOAST;\n toastId?: ToasterToast['id'];\n }\n | {\n type: ActionTypes.REMOVE_TOAST;\n toastId?: ToasterToast['id'];\n };\n\ntype State = {\n toasts: ToasterToast[];\n};\n\nconst toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();\n\nconst addToRemoveQueue = (toastId: string) => {\n if (toastTimeouts.has(toastId)) {\n return;\n }\n\n const timeout = setTimeout(() => {\n toastTimeouts.delete(toastId);\n dispatch({\n type: ActionTypes.REMOVE_TOAST,\n toastId: toastId,\n });\n }, TOAST_REMOVE_DELAY);\n\n toastTimeouts.set(toastId, timeout);\n};\n\nexport const reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case ActionTypes.ADD_TOAST:\n return {\n ...state,\n toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),\n };\n\n case ActionTypes.UPDATE_TOAST:\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === action.toast.id ? { ...t, ...action.toast } : t\n ),\n };\n\n case ActionTypes.DISMISS_TOAST: {\n const { toastId } = action;\n\n // ! Side effects ! - This could be extracted into a dismissToast() action,\n // but I'll keep it here for simplicity\n if (toastId) {\n addToRemoveQueue(toastId);\n } else {\n state.toasts.forEach((toast) => {\n addToRemoveQueue(toast.id);\n });\n }\n\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === toastId || toastId === undefined\n ? {\n ...t,\n open: false,\n }\n : t\n ),\n };\n }\n case ActionTypes.REMOVE_TOAST:\n if (action.toastId === undefined) {\n return {\n ...state,\n toasts: [],\n };\n }\n return {\n ...state,\n toasts: state.toasts.filter((t) => t.id !== action.toastId),\n };\n }\n};\n\nconst listeners: ((state: State) => void)[] = [];\n\nlet memoryState: State = { toasts: [] };\n\nconst dispatch = (action: Action) => {\n memoryState = reducer(memoryState, action);\n listeners.forEach((listener) => {\n listener(memoryState);\n });\n};\n\ntype Toast = Omit<ToasterToast, 'id'>;\n\nconst toast = ({ ...props }: Toast) => {\n const id = genId();\n\n const update = (props: ToasterToast) =>\n dispatch({\n type: ActionTypes.UPDATE_TOAST,\n toast: { ...props, id },\n });\n const dismiss = () =>\n dispatch({ type: ActionTypes.DISMISS_TOAST, toastId: id });\n\n dispatch({\n type: ActionTypes.ADD_TOAST,\n toast: {\n ...props,\n id,\n open: true,\n onOpenChange: (open) => {\n if (!open) dismiss();\n },\n },\n });\n\n return {\n id: id,\n dismiss,\n update,\n };\n};\n\nconst useToast = () => {\n const [state, setState] = useState<State>(memoryState);\n\n useEffect(() => {\n listeners.push(setState);\n return () => {\n const index = listeners.indexOf(setState);\n if (index > -1) {\n listeners.splice(index, 1);\n }\n };\n }, [state]);\n\n return {\n ...state,\n toast,\n dismiss: (toastId?: string) =>\n dispatch({ type: ActionTypes.DISMISS_TOAST, toastId }),\n };\n};\n\nexport { useToast, toast };\n"],"names":["toast","props","useState","useEffect"],"mappings":";;;;AAKA,MAAM,cAAc;AACpB,MAAM,qBAAqB,KAAK,KAAK;AAgBrC,IAAI,QAAQ;AAEZ,MAAM,QAAQ,MAAM;AACT,WAAA,QAAQ,KAAK,OAAO;AAC7B,SAAO,MAAM,SAAS;AACxB;AAwBA,MAAM,oCAAoB,IAA2C;AAErE,MAAM,mBAAmB,CAAC,YAAoB;AACxC,MAAA,cAAc,IAAI,OAAO,GAAG;AAC9B;AAAA,EAAA;AAGI,QAAA,UAAU,WAAW,MAAM;AAC/B,kBAAc,OAAO,OAAO;AACnB,aAAA;AAAA,MACP,MAAM;AAAA,MACN;AAAA,IAAA,CACD;AAAA,KACA,kBAAkB;AAEP,gBAAA,IAAI,SAAS,OAAO;AACpC;AAEa,MAAA,UAAU,CAAC,OAAc,WAA0B;AAC9D,UAAQ,OAAO,MAAM;AAAA,IACnB,KAAK;AACI,aAAA;AAAA,QACL,GAAG;AAAA,QACH,QAAQ,CAAC,OAAO,OAAO,GAAG,MAAM,MAAM,EAAE,MAAM,GAAG,WAAW;AAAA,MAC9D;AAAA,IAEF,KAAK;AACI,aAAA;AAAA,QACL,GAAG;AAAA,QACH,QAAQ,MAAM,OAAO;AAAA,UAAI,CAAC,MACxB,EAAE,OAAO,OAAO,MAAM,KAAK,EAAE,GAAG,GAAG,GAAG,OA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A,MACN,cAAc,CAAC,SAAS;AAClB,YAAA,CAAC,KAAc,SAAA;AAAA,MAAA;AAAA,IACrB;AAAA,EACF,CACD;AAEM,SAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,MAAM,WAAW,MAAM;AACrB,QAAM,CAAC,OAAO,QAAQ,IAAIC,WAAAA,SAAgB,WAAW;AAErDC,aAAAA,UAAU,MAAM;AACd,cAAU,KAAK,QAAQ;AACvB,WAAO,MAAM;AACL,YAAA,QAAQ,UAAU,QAAQ,QAAQ;AACxC,UAAI,QAAQ,IAAI;AACJ,kBAAA,OAAO,OAAO,CAAC;AAAA,MAAA;AAAA,IAE7B;AAAA,EAAA,GACC,CAAC,KAAK,CAAC;AAEH,SAAA;AAAA,IACL,GAAG;AAAA,IACH;AAAA,IACA,SAAS,CAAC,YACR,SAAS,EAAE,MAAM,iBAA2B,QAAS,CAAA;AAAA,EACzD;AACF;;;;"}
1
+ {"version":3,"file":"useToast.cjs","sources":["../../../src/components/Toaster/useToast.tsx"],"sourcesContent":["'use client';\n\nimport { type ReactNode, useState, useEffect } from 'react';\nimport type { ToastProps, ToastActionElement } from './Toast';\n\nconst TOAST_LIMIT = 1;\nconst TOAST_REMOVE_DELAY = 15 * 60 * 1000; // 15 seconds\n\ntype ToasterToast = ToastProps & {\n id: string;\n title?: ReactNode;\n description?: ReactNode;\n action?: ToastActionElement;\n};\n\nenum ActionTypes {\n ADD_TOAST = 'ADD_TOAST',\n UPDATE_TOAST = 'UPDATE_TOAST',\n DISMISS_TOAST = 'DISMISS_TOAST',\n REMOVE_TOAST = 'REMOVE_TOAST',\n}\n\nlet count = 0;\n\nconst genId = () => {\n count = (count + 1) % Number.MAX_SAFE_INTEGER;\n return count.toString();\n};\n\ntype Action =\n | {\n type: ActionTypes.ADD_TOAST;\n toast: ToasterToast;\n }\n | {\n type: ActionTypes.UPDATE_TOAST;\n toast: Partial<ToasterToast>;\n }\n | {\n type: ActionTypes.DISMISS_TOAST;\n toastId?: ToasterToast['id'];\n }\n | {\n type: ActionTypes.REMOVE_TOAST;\n toastId?: ToasterToast['id'];\n };\n\ntype State = {\n toasts: ToasterToast[];\n};\n\nconst toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();\n\nconst addToRemoveQueue = (toastId: string) => {\n if (toastTimeouts.has(toastId)) {\n return;\n }\n\n const timeout = setTimeout(() => {\n toastTimeouts.delete(toastId);\n dispatch({\n type: ActionTypes.REMOVE_TOAST,\n toastId: toastId,\n });\n }, TOAST_REMOVE_DELAY);\n\n toastTimeouts.set(toastId, timeout);\n};\n\nexport const reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case ActionTypes.ADD_TOAST:\n return {\n ...state,\n toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),\n };\n\n case ActionTypes.UPDATE_TOAST:\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === action.toast.id ? { ...t, ...action.toast } : t\n ),\n };\n\n case ActionTypes.DISMISS_TOAST: {\n const { toastId } = action;\n\n // ! Side effects ! - This could be extracted into a dismissToast() action,\n // but I'll keep it here for simplicity\n if (toastId) {\n addToRemoveQueue(toastId);\n } else {\n state.toasts.forEach((toast) => {\n addToRemoveQueue(toast.id);\n });\n }\n\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === toastId || toastId === undefined\n ? {\n ...t,\n open: false,\n }\n : t\n ),\n };\n }\n case ActionTypes.REMOVE_TOAST:\n if (action.toastId === undefined) {\n return {\n ...state,\n toasts: [],\n };\n }\n return {\n ...state,\n toasts: state.toasts.filter((t) => t.id !== action.toastId),\n };\n }\n};\n\nconst listeners: ((state: State) => void)[] = [];\n\nlet memoryState: State = { toasts: [] };\n\nconst dispatch = (action: Action) => {\n memoryState = reducer(memoryState, action);\n listeners.forEach((listener) => {\n listener(memoryState);\n });\n};\n\ntype Toast = Omit<ToasterToast, 'id'>;\n\nconst toast = ({ ...props }: Toast) => {\n const id = genId();\n\n const update = (props: ToasterToast) =>\n dispatch({\n type: ActionTypes.UPDATE_TOAST,\n toast: { ...props, id },\n });\n const dismiss = () =>\n dispatch({ type: ActionTypes.DISMISS_TOAST, toastId: id });\n\n dispatch({\n type: ActionTypes.ADD_TOAST,\n toast: {\n ...props,\n id,\n open: true,\n onOpenChange: (open) => {\n if (!open) dismiss();\n },\n },\n });\n\n return {\n id: id,\n dismiss,\n update,\n };\n};\n\nconst useToast = () => {\n const [state, setState] = useState<State>(memoryState);\n\n useEffect(() => {\n listeners.push(setState);\n return () => {\n const index = listeners.indexOf(setState);\n if (index > -1) {\n listeners.splice(index, 1);\n }\n };\n }, [state]);\n\n return {\n ...state,\n toast,\n dismiss: (toastId?: string) =>\n dispatch({ type: ActionTypes.DISMISS_TOAST, toastId }),\n };\n};\n\nexport { useToast, toast };\n"],"names":["toast","props","useState","useEffect"],"mappings":";;;;AAKA,MAAM,cAAc;AACpB,MAAM,qBAAqB,KAAK,KAAK;AAgBrC,IAAI,QAAQ;AAEZ,MAAM,QAAQ,MAAM;AACT,WAAA,QAAQ,KAAK,OAAO;AAC7B,SAAO,MAAM,SAAS;AACxB;AAwBA,MAAM,oCAAoB,IAA2C;AAErE,MAAM,mBAAmB,CAAC,YAAoB;AACxC,MAAA,cAAc,IAAI,OAAO,GAAG;AAC9B;AAAA,EAAA;AAGI,QAAA,UAAU,WAAW,MAAM;AAC/B,kBAAc,OAAO,OAAO;AACnB,aAAA;AAAA,MACP,MAAM;AAAA,MACN;AAAA,IAAA,CACD;AAAA,KACA,kBAAkB;AAEP,gBAAA,IAAI,SAAS,OAAO;AACpC;AAEa,MAAA,UAAU,CAAC,OAAc,WAA0B;AAC9D,UAAQ,OAAO,MAAM;AAAA,IACnB,KAAK;AACI,aAAA;AAAA,QACL,GAAG;AAAA,QACH,QAAQ,CAAC,OAAO,OAAO,GAAG,MAAM,MAAM,EAAE,MAAM,GAAG,WAAW;AAAA,MAC9D;AAAA,IAEF,KAAK;AACI,aAAA;AAAA,QACL,GAAG;AAAA,QAC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S,IAAI;AAElD,WAAA;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,MACL,GAAG;AAAA,MACH;AAAA,MACA,MAAM;AAAA,MACN,cAAc,CAAC,SAAS;AAClB,YAAA,CAAC,KAAc,SAAA;AAAA,MAAA;AAAA,IACrB;AAAA,EACF,CACD;AAEM,SAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,MAAM,WAAW,MAAM;AACrB,QAAM,CAAC,OAAO,QAAQ,IAAIC,aAAAA,SAAgB,WAAW;AAErDC,eAAAA,UAAU,MAAM;AACd,cAAU,KAAK,QAAQ;AACvB,WAAO,MAAM;AACL,YAAA,QAAQ,UAAU,QAAQ,QAAQ;AACxC,UAAI,QAAQ,IAAI;AACJ,kBAAA,OAAO,OAAO,CAAC;AAAA,MAAA;AAAA,IAE7B;AAAA,EAAA,GACC,CAAC,KAAK,CAAC;AAEH,SAAA;AAAA,IACL,GAAG;AAAA,IACH;AAAA,IACA,SAAS,CAAC,YACR,SAAS,EAAE,MAAM,iBAA2B,QAAS,CAAA;AAAA,EACzD;AACF;;;;"}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const jsxRuntime = require("../../jsx-runtime-CgFM7lM3.cjs");
5
- const require$$0 = require("react");
4
+ const jsxRuntime = require("react/jsx-runtime");
5
+ const ReactExports = require("react");
6
6
  const utils_cn = require("../../utils/cn.cjs");
7
7
  const WithResizer = ({
8
8
  initialWidth,
@@ -10,20 +10,20 @@ const WithResizer = ({
10
10
  minWidth = 0,
11
11
  children
12
12
  }) => {
13
- const containerRef = require$$0.useRef(null);
14
- const [width, setWidth] = require$$0.useState(initialWidth);
15
- const [isResizing, setIsResizing] = require$$0.useState(false);
16
- const startResizing = require$$0.useCallback(
13
+ const containerRef = ReactExports.useRef(null);
14
+ const [width, setWidth] = ReactExports.useState(initialWidth);
15
+ const [isResizing, setIsResizing] = ReactExports.useState(false);
16
+ const startResizing = ReactExports.useCallback(
17
17
  (mouseDownEvent) => {
18
18
  setIsResizing(true);
19
19
  mouseDownEvent.preventDefault();
20
20
  },
21
21
  []
22
22
  );
23
- const stopResizing = require$$0.useCallback(() => {
23
+ const stopResizing = ReactExports.useCallback(() => {
24
24
  setIsResizing(false);
25
25
  }, []);
26
- const resize = require$$0.useCallback(
26
+ const resize = ReactExports.useCallback(
27
27
  (mouseMoveEvent) => {
28
28
  const container = containerRef.current;
29
29
  if (isResizing && container && parent) {
@@ -41,7 +41,7 @@ const WithResizer = ({
41
41
  },
42
42
  [isResizing]
43
43
  );
44
- require$$0.useEffect(() => {
44
+ ReactExports.useEffect(() => {
45
45
  window.addEventListener("mousemove", resize);
46
46
  window.addEventListener("mouseup", stopResizing);
47
47
  window.addEventListener("touchmove", resize);
@@ -53,7 +53,7 @@ const WithResizer = ({
53
53
  window.removeEventListener("touchend", stopResizing);
54
54
  };
55
55
  }, [resize, stopResizing]);
56
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
56
+ return /* @__PURE__ */ jsxRuntime.jsx(
57
57
  "div",
58
58
  {
59
59
  className: utils_cn.cn(
@@ -75,7 +75,7 @@ const WithResizer = ({
75
75
  "aria-label": "Resizable component",
76
76
  role: "slider",
77
77
  tabIndex: 0,
78
- children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
78
+ children: /* @__PURE__ */ jsxRuntime.jsx(
79
79
  "div",
80
80
  {
81
81
  className: "absolute left-0 top-0 size-full cursor-default overflow-hidden",
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/components/WithResizer/index.tsx"],"sourcesContent":["/* eslint-disable jsx-a11y/no-static-element-interactions */\n'use client';\n\nimport React, {\n useState,\n useCallback,\n type PropsWithChildren,\n useEffect,\n type FC,\n useRef,\n} from 'react';\nimport { cn } from '../../utils/cn';\n\ntype WithResizerProps = {\n initialWidth: number;\n maxWidth?: number;\n minWidth?: number;\n};\n\nexport const WithResizer: FC<PropsWithChildren<WithResizerProps>> = ({\n initialWidth,\n maxWidth,\n minWidth = 0,\n children,\n}) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const [width, setWidth] = useState(initialWidth);\n const [isResizing, setIsResizing] = useState(false);\n\n // Handler to start resizing\n const startResizing = useCallback(\n (\n mouseDownEvent:\n | React.MouseEvent<HTMLDivElement>\n | React.TouchEvent<HTMLDivElement>\n ) => {\n setIsResizing(true);\n mouseDownEvent.preventDefault();\n },\n []\n );\n\n // Handler to stop resizing\n const stopResizing = useCallback(() => {\n setIsResizing(false);\n }, []);\n\n // Handler to resize the div\n const resize = useCallback(\n (mouseMoveEvent: MouseEvent | TouchEvent) => {\n const container = containerRef.current;\n if (isResizing && container && parent) {\n const { left: containerLeft } = container.getBoundingClientRect();\n\n let clientX = 0;\n if (mouseMoveEvent instanceof MouseEvent) {\n clientX = mouseMoveEvent.clientX;\n } else if (mouseMoveEvent instanceof TouchEvent) {\n clientX = mouseMoveEvent.touches[0].clientX;\n }\n\n const newWidth = clientX - containerLeft;\n const correctedWidth = Math.max(newWidth, 0);\n\n setWidth(correctedWidth);\n }\n },\n [isResizing]\n );\n\n // Add event listeners for mouse move and mouse up\n useEffect(() => {\n window.addEventListener('mousemove', resize);\n window.addEventListener('mouseup', stopResizing);\n window.addEventListener('touchmove', resize);\n window.addEventListener('touchend', stopResizing);\n\n return () => {\n window.removeEventListener('mousemove', resize);\n window.removeEventListener('mouseup', stopResizing);\n window.removeEventListener('touchmove', resize);\n window.removeEventListener('touchend', stopResizing);\n };\n }, [resize, stopResizing]);\n\n return (\n <div\n className={cn(\n minWidth && `max-w-[${maxWidth}px]`,\n maxWidth && `min-w-[${minWidth}px]`,\n 'relative h-full w-full max-w-[80%] cursor-ew-resize border-r-[2px] border-neutral-200 transition dark:border-neutral-950',\n 'after:absolute after:right-0 after:top-1/2 after:block after:h-10 after:w-2 after:-translate-y-1/2 after:translate-x-1/2 after:transform after:cursor-ew-resize after:rounded-full after:bg-neutral-200 after:transition after:content-[\"\"] after:dark:bg-neutral-950',\n 'active:border-neutral-400 after:active:bg-neutral-400 dark:active:border-neutral-600 dark:after:active:bg-neutral-600'\n )}\n style={{\n width: `${width}px`,\n }}\n ref={containerRef}\n onMouseDown={startResizing}\n onTouchStart={startResizing}\n aria-valuemin={minWidth}\n aria-valuemax={maxWidth}\n aria-valuenow={width}\n aria-label=\"Resizable component\"\n role=\"slider\"\n tabIndex={0}\n >\n <div\n className=\"absolute left-0 top-0 size-full cursor-default overflow-hidden\"\n onMouseDown={(e) => e.stopPropagation()}\n onTouchStart={(e) => e.stopPropagation()}\n >\n {children}\n </div>\n </div>\n );\n};\n"],"names":["useRef","useState","useCallback","useEffect","jsx","cn"],"mappings":";;;;;;AAmBO,MAAM,cAAuD,CAAC;AAAA,EACnE;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AACF,MAAM;AACE,QAAA,eAAeA,kBAAuB,IAAI;AAChD,QAAM,CAAC,OAAO,QAAQ,IAAIC,WAAAA,SAAS,YAAY;AAC/C,QAAM,CAAC,YAAY,aAAa,IAAIA,WAAAA,SAAS,KAAK;AAGlD,QAAM,gBAAgBC,WAAA;AAAA,IACpB,CACE,mBAGG;AACH,oBAAc,IAAI;AAClB,qBAAe,eAAe;AAAA,IAChC;AAAA,IACA,CAAA;AAAA,EACF;AAGM,QAAA,eAAeA,WAAAA,YAAY,MAAM;AACrC,kBAAc,KAAK;AAAA,EACrB,GAAG,EAAE;AAGL,QAAM,SAASA,WAAA;AAAA,IACb,CAAC,mBAA4C;AAC3C,YAAM,YAAY,aAAa;AAC3B,UAAA,cAAc,aAAa,QAAQ;AACrC,cAAM,EAAE,MAAM,kBAAkB,UAAU,sBAAsB;AAEhE,YAAI,UAAU;AACd,YAAI,0BAA0B,YAAY;AACxC,oBAAU,eAAe;AAAA,QAAA,WAChB,0BAA0B,YAAY;AACrC,oBAAA,eAAe,QAAQ,CAAC,EAAE;AAAA,QAAA;AAGtC,cAAM,WAAW,UAAU;AAC3B,cAAM,iBAAiB,KAAK,IAAI,UAAU,CAAC;AAE3C,iBAAS,cAAc;AAAA,MAAA;AAAA,IAE3B;AAAA,IACA,CAAC,UAAU;AAAA,EACb;AAGAC,aAAAA,UAAU,MAAM;AACP,WAAA,iBAAiB,aAAa,MAAM;AACpC,WAAA,iBAAiB,WAAW,YAAY;AACxC,WAAA,iBAAiB,aAAa,MAAM;AACpC,WAAA,iBAAiB,YAAY,YAAY;AAEhD,WAAO,MAAM;AACJ,aAAA,oBAAoB,aAAa,MAAM;AACvC,aAAA,oBAAoB,WAAW,YAAY;AAC3C,aAAA,oBAAoB,aAAa,MAAM;AACvC,aAAA,oBAAoB,YAAY,YAAY;AAAA,IACrD;AAAA,EAAA,GACC,CAAC,QAAQ,YAAY,CAAC;AAGvB,SAAAC,2BAAA,kBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,SAAA;AAAA,QACT,YAAY,UAAU,QAAQ;AAAA,QAC9B,YAAY,UAAU,QAAQ;AAAA,QAC9B;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACL,OAAO,GAAG,KAAK;AAAA,MACjB;AAAA,MACA,KAAK;AAAA,MACL,aAAa;AAAA,MACb,cAAc;AAAA,MACd,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,cAAW;AAAA,MACX,MAAK;AAAA,MACL,UAAU;AAAA,MAEV,UAAAD,2BAAA,kBAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,aAAa,CAAC,MAAM,EAAE,gBAAgB;AAAA,UACtC,cAAc,CAAC,MAAM,EAAE,gBAAgB;AAAA,UAEtC;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EACF;AAEJ;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/WithResizer/index.tsx"],"sourcesContent":["/* eslint-disable jsx-a11y/no-static-element-interactions */\n'use client';\n\nimport React, {\n useState,\n useCallback,\n type PropsWithChildren,\n useEffect,\n type FC,\n useRef,\n} from 'react';\nimport { cn } from '../../utils/cn';\n\ntype WithResizerProps = {\n initialWidth: number;\n maxWidth?: number;\n minWidth?: number;\n};\n\nexport const WithResizer: FC<PropsWithChildren<WithResizerProps>> = ({\n initialWidth,\n maxWidth,\n minWidth = 0,\n children,\n}) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const [width, setWidth] = useState(initialWidth);\n const [isResizing, setIsResizing] = useState(false);\n\n // Handler to start resizing\n const startResizing = useCallback(\n (\n mouseDownEvent:\n | React.MouseEvent<HTMLDivElement>\n | React.TouchEvent<HTMLDivElement>\n ) => {\n setIsResizing(true);\n mouseDownEvent.preventDefault();\n },\n []\n );\n\n // Handler to stop resizing\n const stopResizing = useCallback(() => {\n setIsResizing(false);\n }, []);\n\n // Handler to resize the div\n const resize = useCallback(\n (mouseMoveEvent: MouseEvent | TouchEvent) => {\n const container = containerRef.current;\n if (isResizing && container && parent) {\n const { left: containerLeft } = container.getBoundingClientRect();\n\n let clientX = 0;\n if (mouseMoveEvent instanceof MouseEvent) {\n clientX = mouseMoveEvent.clientX;\n } else if (mouseMoveEvent instanceof TouchEvent) {\n clientX = mouseMoveEvent.touches[0].clientX;\n }\n\n const newWidth = clientX - containerLeft;\n const correctedWidth = Math.max(newWidth, 0);\n\n setWidth(correctedWidth);\n }\n },\n [isResizing]\n );\n\n // Add event listeners for mouse move and mouse up\n useEffect(() => {\n window.addEventListener('mousemove', resize);\n window.addEventListener('mouseup', stopResizing);\n window.addEventListener('touchmove', resize);\n window.addEventListener('touchend', stopResizing);\n\n return () => {\n window.removeEventListener('mousemove', resize);\n window.removeEventListener('mouseup', stopResizing);\n window.removeEventListener('touchmove', resize);\n window.removeEventListener('touchend', stopResizing);\n };\n }, [resize, stopResizing]);\n\n return (\n <div\n className={cn(\n minWidth && `max-w-[${maxWidth}px]`,\n maxWidth && `min-w-[${minWidth}px]`,\n 'relative h-full w-full max-w-[80%] cursor-ew-resize border-r-[2px] border-neutral-200 transition dark:border-neutral-950',\n 'after:absolute after:right-0 after:top-1/2 after:block after:h-10 after:w-2 after:-translate-y-1/2 after:translate-x-1/2 after:transform after:cursor-ew-resize after:rounded-full after:bg-neutral-200 after:transition after:content-[\"\"] after:dark:bg-neutral-950',\n 'active:border-neutral-400 after:active:bg-neutral-400 dark:active:border-neutral-600 dark:after:active:bg-neutral-600'\n )}\n style={{\n width: `${width}px`,\n }}\n ref={containerRef}\n onMouseDown={startResizing}\n onTouchStart={startResizing}\n aria-valuemin={minWidth}\n aria-valuemax={maxWidth}\n aria-valuenow={width}\n aria-label=\"Resizable component\"\n role=\"slider\"\n tabIndex={0}\n >\n <div\n className=\"absolute left-0 top-0 size-full cursor-default overflow-hidden\"\n onMouseDown={(e) => e.stopPropagation()}\n onTouchStart={(e) => e.stopPropagation()}\n >\n {children}\n </div>\n </div>\n );\n};\n"],"names":["useRef","useState","useCallback","useEffect","jsx","cn"],"mappings":";;;;;;AAmBO,MAAM,cAAuD,CAAC;AAAA,EACnE;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AACF,MAAM;AACE,QAAA,eAAeA,oBAAuB,IAAI;AAChD,QAAM,CAAC,OAAO,QAAQ,IAAIC,aAAAA,SAAS,YAAY;AAC/C,QAAM,CAAC,YAAY,aAAa,IAAIA,aAAAA,SAAS,KAAK;AAGlD,QAAM,gBAAgBC,aAAA;AAAA,IACpB,CACE,mBAGG;AACH,oBAAc,IAAI;AAClB,qBAAe,eAAe;AAAA,IAChC;AAAA,IACA,CAAA;AAAA,EACF;AAGM,QAAA,eAAeA,aAAAA,YAAY,MAAM;AACrC,kBAAc,KAAK;AAAA,EACrB,GAAG,EAAE;AAGL,QAAM,SAASA,aAAA;AAAA,IACb,CAAC,mBAA4C;AAC3C,YAAM,YAAY,aAAa;AAC3B,UAAA,cAAc,aAAa,QAAQ;AACrC,cAAM,EAAE,MAAM,kBAAkB,UAAU,s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AA;AAAA,MAAA;AAAA,IACH;AAAA,EACF;AAEJ;;"}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { j as jsxRuntimeExports } from "../../jsx-runtime-DQkoUcjV.js";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  import { useRef, useState, useCallback, useEffect } from "react";
4
4
  import { cn } from "../../utils/cn.mjs";
5
5
  const WithResizer = ({
@@ -51,7 +51,7 @@ const WithResizer = ({
51
51
  window.removeEventListener("touchend", stopResizing);
52
52
  };
53
53
  }, [resize, stopResizing]);
54
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
54
+ return /* @__PURE__ */ jsx(
55
55
  "div",
56
56
  {
57
57
  className: cn(
@@ -73,7 +73,7 @@ const WithResizer = ({
73
73
  "aria-label": "Resizable component",
74
74
  role: "slider",
75
75
  tabIndex: 0,
76
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
76
+ children: /* @__PURE__ */ jsx(
77
77
  "div",
78
78
  {
79
79
  className: "absolute left-0 top-0 size-full cursor-default overflow-hidden",
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../src/components/WithResizer/index.tsx"],"sourcesContent":["/* eslint-disable jsx-a11y/no-static-element-interactions */\n'use client';\n\nimport React, {\n useState,\n useCallback,\n type PropsWithChildren,\n useEffect,\n type FC,\n useRef,\n} from 'react';\nimport { cn } from '../../utils/cn';\n\ntype WithResizerProps = {\n initialWidth: number;\n maxWidth?: number;\n minWidth?: number;\n};\n\nexport const WithResizer: FC<PropsWithChildren<WithResizerProps>> = ({\n initialWidth,\n maxWidth,\n minWidth = 0,\n children,\n}) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const [width, setWidth] = useState(initialWidth);\n const [isResizing, setIsResizing] = useState(false);\n\n // Handler to start resizing\n const startResizing = useCallback(\n (\n mouseDownEvent:\n | React.MouseEvent<HTMLDivElement>\n | React.TouchEvent<HTMLDivElement>\n ) => {\n setIsResizing(true);\n mouseDownEvent.preventDefault();\n },\n []\n );\n\n // Handler to stop resizing\n const stopResizing = useCallback(() => {\n setIsResizing(false);\n }, []);\n\n // Handler to resize the div\n const resize = useCallback(\n (mouseMoveEvent: MouseEvent | TouchEvent) => {\n const container = containerRef.current;\n if (isResizing && container && parent) {\n const { left: containerLeft } = container.getBoundingClientRect();\n\n let clientX = 0;\n if (mouseMoveEvent instanceof MouseEvent) {\n clientX = mouseMoveEvent.clientX;\n } else if (mouseMoveEvent instanceof TouchEvent) {\n clientX = mouseMoveEvent.touches[0].clientX;\n }\n\n const newWidth = clientX - containerLeft;\n const correctedWidth = Math.max(newWidth, 0);\n\n setWidth(correctedWidth);\n }\n },\n [isResizing]\n );\n\n // Add event listeners for mouse move and mouse up\n useEffect(() => {\n window.addEventListener('mousemove', resize);\n window.addEventListener('mouseup', stopResizing);\n window.addEventListener('touchmove', resize);\n window.addEventListener('touchend', stopResizing);\n\n return () => {\n window.removeEventListener('mousemove', resize);\n window.removeEventListener('mouseup', stopResizing);\n window.removeEventListener('touchmove', resize);\n window.removeEventListener('touchend', stopResizing);\n };\n }, [resize, stopResizing]);\n\n return (\n <div\n className={cn(\n minWidth && `max-w-[${maxWidth}px]`,\n maxWidth && `min-w-[${minWidth}px]`,\n 'relative h-full w-full max-w-[80%] cursor-ew-resize border-r-[2px] border-neutral-200 transition dark:border-neutral-950',\n 'after:absolute after:right-0 after:top-1/2 after:block after:h-10 after:w-2 after:-translate-y-1/2 after:translate-x-1/2 after:transform after:cursor-ew-resize after:rounded-full after:bg-neutral-200 after:transition after:content-[\"\"] after:dark:bg-neutral-950',\n 'active:border-neutral-400 after:active:bg-neutral-400 dark:active:border-neutral-600 dark:after:active:bg-neutral-600'\n )}\n style={{\n width: `${width}px`,\n }}\n ref={containerRef}\n onMouseDown={startResizing}\n onTouchStart={startResizing}\n aria-valuemin={minWidth}\n aria-valuemax={maxWidth}\n aria-valuenow={width}\n aria-label=\"Resizable component\"\n role=\"slider\"\n tabIndex={0}\n >\n <div\n className=\"absolute left-0 top-0 size-full cursor-default overflow-hidden\"\n onMouseDown={(e) => e.stopPropagation()}\n onTouchStart={(e) => e.stopPropagation()}\n >\n {children}\n </div>\n </div>\n );\n};\n"],"names":["jsx"],"mappings":";;;;AAmBO,MAAM,cAAuD,CAAC;AAAA,EACnE;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AACF,MAAM;AACE,QAAA,eAAe,OAAuB,IAAI;AAChD,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,YAAY;AAC/C,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,KAAK;AAGlD,QAAM,gBAAgB;AAAA,IACpB,CACE,mBAGG;AACH,oBAAc,IAAI;AAClB,qBAAe,eAAe;AAAA,IAChC;AAAA,IACA,CAAA;AAAA,EACF;AAGM,QAAA,eAAe,YAAY,MAAM;AACrC,kBAAc,KAAK;AAAA,EACrB,GAAG,EAAE;AAGL,QAAM,SAAS;AAAA,IACb,CAAC,mBAA4C;AAC3C,YAAM,YAAY,aAAa;AAC3B,UAAA,cAAc,aAAa,QAAQ;AACrC,cAAM,EAAE,MAAM,kBAAkB,UAAU,sBAAsB;AAEhE,YAAI,UAAU;AACd,YAAI,0BAA0B,YAAY;AACxC,oBAAU,eAAe;AAAA,QAAA,WAChB,0BAA0B,YAAY;AACrC,oBAAA,eAAe,QAAQ,CAAC,EAAE;AAAA,QAAA;AAGtC,cAAM,WAAW,UAAU;AAC3B,cAAM,iBAAiB,KAAK,IAAI,UAAU,CAAC;AAE3C,iBAAS,cAAc;AAAA,MAAA;AAAA,IAE3B;AAAA,IACA,CAAC,UAAU;AAAA,EACb;AAGA,YAAU,MAAM;AACP,WAAA,iBAAiB,aAAa,MAAM;AACpC,WAAA,iBAAiB,WAAW,YAAY;AACxC,WAAA,iBAAiB,aAAa,MAAM;AACpC,WAAA,iBAAiB,YAAY,YAAY;AAEhD,WAAO,MAAM;AACJ,aAAA,oBAAoB,aAAa,MAAM;AACvC,aAAA,oBAAoB,WAAW,YAAY;AAC3C,aAAA,oBAAoB,aAAa,MAAM;AACvC,aAAA,oBAAoB,YAAY,YAAY;AAAA,IACrD;AAAA,EAAA,GACC,CAAC,QAAQ,YAAY,CAAC;AAGvB,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT,YAAY,UAAU,QAAQ;AAAA,QAC9B,YAAY,UAAU,QAAQ;AAAA,QAC9B;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACL,OAAO,GAAG,KAAK;AAAA,MACjB;AAAA,MACA,KAAK;AAAA,MACL,aAAa;AAAA,MACb,cAAc;AAAA,MACd,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,cAAW;AAAA,MACX,MAAK;AAAA,MACL,UAAU;AAAA,MAEV,UAAAA,kCAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,aAAa,CAAC,MAAM,EAAE,gBAAgB;AAAA,UACtC,cAAc,CAAC,MAAM,EAAE,gBAAgB;AAAA,UAEtC;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EACF;AAEJ;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../src/components/WithResizer/index.tsx"],"sourcesContent":["/* eslint-disable jsx-a11y/no-static-element-interactions */\n'use client';\n\nimport React, {\n useState,\n useCallback,\n type PropsWithChildren,\n useEffect,\n type FC,\n useRef,\n} from 'react';\nimport { cn } from '../../utils/cn';\n\ntype WithResizerProps = {\n initialWidth: number;\n maxWidth?: number;\n minWidth?: number;\n};\n\nexport const WithResizer: FC<PropsWithChildren<WithResizerProps>> = ({\n initialWidth,\n maxWidth,\n minWidth = 0,\n children,\n}) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const [width, setWidth] = useState(initialWidth);\n const [isResizing, setIsResizing] = useState(false);\n\n // Handler to start resizing\n const startResizing = useCallback(\n (\n mouseDownEvent:\n | React.MouseEvent<HTMLDivElement>\n | React.TouchEvent<HTMLDivElement>\n ) => {\n setIsResizing(true);\n mouseDownEvent.preventDefault();\n },\n []\n );\n\n // Handler to stop resizing\n const stopResizing = useCallback(() => {\n setIsResizing(false);\n }, []);\n\n // Handler to resize the div\n const resize = useCallback(\n (mouseMoveEvent: MouseEvent | TouchEvent) => {\n const container = containerRef.current;\n if (isResizing && container && parent) {\n const { left: containerLeft } = container.getBoundingClientRect();\n\n let clientX = 0;\n if (mouseMoveEvent instanceof MouseEvent) {\n clientX = mouseMoveEvent.clientX;\n } else if (mouseMoveEvent instanceof TouchEvent) {\n clientX = mouseMoveEvent.touches[0].clientX;\n }\n\n const newWidth = clientX - containerLeft;\n const correctedWidth = Math.max(newWidth, 0);\n\n setWidth(correctedWidth);\n }\n },\n [isResizing]\n );\n\n // Add event listeners for mouse move and mouse up\n useEffect(() => {\n window.addEventListener('mousemove', resize);\n window.addEventListener('mouseup', stopResizing);\n window.addEventListener('touchmove', resize);\n window.addEventListener('touchend', stopResizing);\n\n return () => {\n window.removeEventListener('mousemove', resize);\n window.removeEventListener('mouseup', stopResizing);\n window.removeEventListener('touchmove', resize);\n window.removeEventListener('touchend', stopResizing);\n };\n }, [resize, stopResizing]);\n\n return (\n <div\n className={cn(\n minWidth && `max-w-[${maxWidth}px]`,\n maxWidth && `min-w-[${minWidth}px]`,\n 'relative h-full w-full max-w-[80%] cursor-ew-resize border-r-[2px] border-neutral-200 transition dark:border-neutral-950',\n 'after:absolute after:right-0 after:top-1/2 after:block after:h-10 after:w-2 after:-translate-y-1/2 after:translate-x-1/2 after:transform after:cursor-ew-resize after:rounded-full after:bg-neutral-200 after:transition after:content-[\"\"] after:dark:bg-neutral-950',\n 'active:border-neutral-400 after:active:bg-neutral-400 dark:active:border-neutral-600 dark:after:active:bg-neutral-600'\n )}\n style={{\n width: `${width}px`,\n }}\n ref={containerRef}\n onMouseDown={startResizing}\n onTouchStart={startResizing}\n aria-valuemin={minWidth}\n aria-valuemax={maxWidth}\n aria-valuenow={width}\n aria-label=\"Resizable component\"\n role=\"slider\"\n tabIndex={0}\n >\n <div\n className=\"absolute left-0 top-0 size-full cursor-default overflow-hidden\"\n onMouseDown={(e) => e.stopPropagation()}\n onTouchStart={(e) => e.stopPropagation()}\n >\n {children}\n </div>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;AAmBO,MAAM,cAAuD,CAAC;AAAA,EACnE;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AACF,MAAM;AACE,QAAA,eAAe,OAAuB,IAAI;AAChD,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,YAAY;AAC/C,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,KAAK;AAGlD,QAAM,gBAAgB;AAAA,IACpB,CACE,mBAGG;AACH,oBAAc,IAAI;AAClB,qBAAe,eAAe;AAAA,IAChC;AAAA,IACA,CAAA;AAAA,EACF;AAGM,QAAA,eAAe,YAAY,MAAM;AACrC,kBAAc,KAAK;AAAA,EACrB,GAAG,EAAE;AAGL,QAAM,SAAS;AAAA,IACb,CAAC,mBAA4C;AAC3C,YAAM,YAAY,aAAa;AAC3B,UAAA,cAAc,aAAa,QAAQ;AACrC,cAAM,EAAE,MAAM,kBAAkB,UAAU,sBAAsB;AAEhE,YAAI,UAAU;AACd,YAAI,0BAA0B,YAAY;AACxC,oBAAU,eAAe;AAAA,QAAA,WAChB,0BAA0B,YAAY;AACrC,oBAAA,eAAe,QAAQ,CAAC,EAAE;AAAA,QAAA;AAGtC,cAAM,WAAW,UAAU;AAC3B,cAAM,iBAAiB,KAAK,IAAI,UAAU,CAAC;AAE3C,iBAAS,cAAc;AAAA,MAAA;AAAA,IAE3B;AAAA,IACA,CAAC,UAAU;AAAA,EACb;AAGA,YAAU,MAAM;AACP,WAAA,iBAAiB,aAAa,MAAM;AACpC,WAAA,iBAAiB,WAAW,YAAY;AACxC,WAAA,iBAAiB,aAAa,MAAM;AACpC,WAAA,iBAAiB,YAAY,YAAY;AAEhD,WAAO,MAAM;AACJ,aAAA,oBAAoB,aAAa,MAAM;AACvC,aAAA,oBAAoB,WAAW,YAAY;AAC3C,aAAA,oBAAoB,aAAa,MAAM;AACvC,aAAA,oBAAoB,YAAY,YAAY;AAAA,IACrD;AAAA,EAAA,GACC,CAAC,QAAQ,YAAY,CAAC;AAGvB,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT,YAAY,UAAU,QAAQ;AAAA,QAC9B,YAAY,UAAU,QAAQ;AAAA,QAC9B;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACL,OAAO,GAAG,KAAK;AAAA,MACjB;AAAA,MACA,KAAK;AAAA,MACL,aAAa;AAAA,MACb,cAAc;AAAA,MACd,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,cAAW;AAAA,MACX,MAAK;AAAA,MACL,UAAU;AAAA,MAEV,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,aAAa,CAAC,MAAM,EAAE,gBAAgB;AAAA,UACtC,cAAc,CAAC,MAAM,EAAE,gBAAgB;AAAA,UAEtC;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EACF;AAEJ;"}
@@ -38,7 +38,7 @@ const components_Flags_Flag = require("./Flags/Flag.cjs");
38
38
  const components_InformationTag_index = require("./InformationTag/index.cjs");
39
39
  const components_Form_FormBase = require("./Form/FormBase.cjs");
40
40
  const components_Form_FormField = require("./Form/FormField.cjs");
41
- const components_Form_layout_FormItemLayout = require("../Form-CSMiPnjC.cjs");
41
+ const components_Form_layout_FormItemLayout = require("../Form-yi0CMK-a.cjs");
42
42
  const components_Label_index = require("./Label/index.cjs");
43
43
  const components_Input_Input = require("./Input/Input.cjs");
44
44
  const components_Input_InputPassword = require("./Input/InputPassword.cjs");
@@ -36,7 +36,7 @@ import { Flag } from "./Flags/Flag.mjs";
36
36
  import { InformationTag } from "./InformationTag/index.mjs";
37
37
  import { useForm } from "./Form/FormBase.mjs";
38
38
  import { useFormField } from "./Form/FormField.mjs";
39
- import { F } from "../Form-DlqjTz3u.js";
39
+ import { F } from "../Form-BZUDRfoN.js";
40
40
  import { Label } from "./Label/index.mjs";
41
41
  import { Input, inputVariants } from "./Input/Input.mjs";
42
42
  import { InputPassword } from "./Input/InputPassword.mjs";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const hooks_useDevice = require("./useDevice.cjs");
4
4
  const hooks_useGetElementOrWindow = require("./useGetElementOrWindow.cjs");
5
- const hooks_useScrollBlockage_index = require("../index-Cg-S9ry9.cjs");
5
+ const hooks_useScrollBlockage_index = require("../index-BYzBot7l.cjs");
6
6
  const hooks_useIsMounted = require("./useIsMounted.cjs");
7
7
  const hooks_useScrollDetection = require("./useScrollDetection.cjs");
8
8
  const hooks_useAsync_useAsync = require("./useAsync/useAsync.cjs");
@@ -1,6 +1,6 @@
1
1
  import { useDevice } from "./useDevice.mjs";
2
2
  import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
3
- import { u } from "../index-O_7rYrbW.js";
3
+ import { u } from "../index-BCuMWKyy.js";
4
4
  import { useIsMounted } from "./useIsMounted.mjs";
5
5
  import { useScrollDetection } from "./useScrollDetection.mjs";
6
6
  import { useAsync } from "./useAsync/useAsync.mjs";
@@ -5,7 +5,7 @@ const editorReact = require("@intlayer/editor-react");
5
5
  const components_Auth_useAuth_index = require("../components/Auth/useAuth/index.cjs");
6
6
  require("../components/Toaster/Toast.cjs");
7
7
  const components_Toaster_useToast = require("../components/Toaster/useToast.cjs");
8
- require("../jsx-runtime-CgFM7lM3.cjs");
8
+ require("react/jsx-runtime");
9
9
  const hooks_useAsync_useAsync = require("./useAsync/useAsync.cjs");
10
10
  const hooks_useIntlayerAPI = require("./useIntlayerAPI.cjs");
11
11
  var define_process_env_default = {};
@@ -1 +1 @@
1
- {"version":3,"file":"intlayerAPIHooks.cjs","sources":["../../src/hooks/intlayerAPIHooks.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n'use client';\n\nimport { intlayerAPI } from '@intlayer/api';\nimport { useConfiguration } from '@intlayer/editor-react';\nimport { useAuth } from '../components/Auth/useAuth/index';\nimport { useToast } from '../components/Toaster';\nimport { useAsync, UseAsyncOptions } from './useAsync/useAsync';\nimport { useIntlayerAuth } from './useIntlayerAPI';\n\n/**\n * Hook to handle error logging and toast notifications\n */\nconst useErrorHandling = <T extends UseAsyncOptions<any>>(options: T): T => {\n const { toast } = useToast();\n\n return {\n ...options,\n onError: (errorMessage) => {\n let error;\n\n // If json is valid, parse it\n try {\n error = JSON.parse(errorMessage);\n } catch (e) {\n console.error(e);\n // If json is not valid, set error to the original errorMessage\n\n error = errorMessage;\n }\n\n // render toast for each error if there is more than one\n // otherwise render the toast with the error message\n [error]\n .flatMap((error) => error)\n .forEach((error) =>\n toast({\n title:\n (process.env.NODE_ENV === 'production'\n ? error.title\n : error.code) ?? 'Error',\n description: error.message ?? errorMessage ?? 'An error occurred',\n variant: 'error',\n })\n );\n options.onError?.(errorMessage);\n },\n onSuccess: (data) => {\n if (data.message)\n toast({\n title: data.message,\n description: data.description,\n variant: 'success',\n });\n options.onSuccess?.(data);\n },\n };\n};\n\ntype AuthEnableOptions = {\n requireUser?: boolean;\n requireProject?: boolean;\n requireOrganization?: boolean;\n};\n\n/**\n * Hook to enable authentication\n */\nconst useAuthEnable = <T extends UseAsyncOptions<any>>(\n options: T,\n { requireUser, requireProject, requireOrganization }: AuthEnableOptions = {}\n): T => {\n const configuration = useConfiguration();\n const { csrfToken, oAuth2AccessToken, session } = useAuth({\n intlayerConfiguration: configuration,\n });\n\n const isEnabledOption = options?.enable ?? true;\n const user = session ? session.user : oAuth2AccessToken?.user;\n\n const organization = session\n ? session.organization\n : oAuth2AccessToken?.organization;\n\n const project = session ? session.project : oAuth2AccessToken?.project;\n\n const isUserEnabled = requireUser ? Boolean(user) : true;\n\n const isProjectEnabled = requireProject ? Boolean(project) : true;\n\n const isOrganizationEnabled = requireOrganization\n ? Boolean(organization)\n : true;\n\n const isCSRFEnabled =\n Boolean(csrfToken) ||\n // If auth using session, csrf token is not required\n (!session && Boolean(oAuth2AccessToken));\n\n const isEnabled =\n isEnabledOption &&\n isUserEnabled &&\n isProjectEnabled &&\n isOrganizationEnabled &&\n isCSRFEnabled;\n\n return {\n ...options,\n enable: isEnabled,\n };\n};\n\nconst useAppAsync = <\n U extends string,\n T extends (...args: any[]) => Promise<any>,\n>(\n key: U,\n asyncFunction: T,\n options?: UseAsyncOptions<T>,\n authOptions?: AuthEnableOptions\n) => {\n // Enhance options using custom hooks\n const optionsWithAuth = useAuthEnable(options ?? {}, authOptions);\n\n const optionsWithErrorHandling = useErrorHandling(optionsWithAuth);\n\n // Call the main useAsync hook with enhanced options\n return useAsync(key, asyncFunction, optionsWithErrorHandling);\n};\n\nconst useEditorAsync = <\n U extends string,\n T extends (...args: any[]) => Promise<any>,\n>(\n key: U,\n asyncFunction: T,\n options?: UseAsyncOptions<T>\n) => {\n const optionsWithErrorHandling = useErrorHandling(options ?? {});\n\n // Call the main useAsync hook with enhanced options\n return useAsync(key, asyncFunction, optionsWithErrorHandling);\n};\n\n/**\n * Auth\n */\n\nexport const useLogin = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.login>\n) =>\n useAppAsync('login', useIntlayerAuth().auth.login, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useRegister = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.register>\n) =>\n useAppAsync('register', useIntlayerAuth().auth.register, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useLogout = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.logout>\n) =>\n useAppAsync('logout', useIntlayerAuth().auth.logout, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useChangePassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.changePassword>\n) => useAppAsync('changePassword', useIntlayerAuth().auth.changePassword, args);\nexport const useAskResetPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.askResetPassword>\n) =>\n useAppAsync(\n 'askResetPassword',\n useIntlayerAuth().auth.askResetPassword,\n args\n );\nexport const useResetPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.resetPassword>\n) => useAppAsync('resetPassword', useIntlayerAuth().auth.resetPassword, args);\nexport const useCheckIfUserHasPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.checkIfUserHasPassword>\n) =>\n useAppAsync(\n 'checkIfUserHasPassword',\n useIntlayerAuth().auth.checkIfUserHasPassword,\n args,\n {\n requireUser: true,\n }\n );\nexport const useVerifyEmail = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.verifyEmail>\n) => useAppAsync('verifyEmail', useIntlayerAuth().auth.verifyEmail, args);\n\nexport const useGetUserByAccount = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.getUserByAccount>\n) =>\n useAppAsync(\n 'getUserByAccount',\n useIntlayerAuth().user.getUserByAccount,\n args\n );\n\n/**\n * User\n */\n\nexport const useGetUsers = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.getUsers>\n) =>\n useAppAsync(\n 'getUsers',\n useIntlayerAuth().user.getUsers,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n }\n );\nexport const useCreateUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.createUser>\n) =>\n useAppAsync('createUser', useIntlayerAuth().user.createUser, {\n invalidateQueries: ['getUsers'],\n ...args,\n });\nexport const useUpdateUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.updateUser>\n) =>\n useAppAsync('updateUser', useIntlayerAuth().user.updateUser, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useDeleteUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.deleteUser>\n) =>\n useAppAsync('deleteUser', useIntlayerAuth().user.deleteUser, {\n invalidateQueries: ['getUsers'],\n ...args,\n });\n\n/**\n * Organization\n */\n\nexport const useGetOrganizations = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.getOrganizations>\n) =>\n useAppAsync(\n 'getOrganizations',\n useIntlayerAuth().organization.getOrganizations,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n }\n );\n\nexport const useAddOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganization>\n) =>\n useAppAsync(\n 'addOrganization',\n useIntlayerAuth().organization.addOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useUpdateOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.updateOrganization>\n) =>\n useAppAsync(\n 'updateOrganization',\n useIntlayerAuth().organization.updateOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useUpdateOrganizationMembers = (\n args?: UseAsyncOptions<\n typeof intlayerAPI.organization.updateOrganizationMembers\n >\n) =>\n useAppAsync(\n 'updateOrganizationMembers',\n useIntlayerAuth().organization.updateOrganizationMembers,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useAddOrganizationMember = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganizationMember>\n) =>\n useAppAsync(\n 'addOrganizationMember',\n useIntlayerAuth().organization.addOrganizationMember,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useDeleteOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.deleteOrganization>\n) =>\n useAppAsync(\n 'deleteOrganization',\n useIntlayerAuth().organization.deleteOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useSelectOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.selectOrganization>\n) =>\n useAppAsync(\n 'selectOrganization',\n useIntlayerAuth().organization.selectOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useUnselectOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.unselectOrganization>\n) =>\n useAppAsync(\n 'unselectOrganization',\n useIntlayerAuth().organization.unselectOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\n\n/**\n * Project\n */\n\nexport const useGetProjects = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.getProjects>\n) =>\n useAppAsync(\n 'getProjects',\n useIntlayerAuth().project.getProjects,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\nexport const useAddProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.addProject>\n) =>\n useAppAsync('addProject', useIntlayerAuth().project.addProject, {\n invalidateQueries: ['getProjects'],\n ...args,\n });\nexport const useUpdateProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.updateProject>\n) =>\n useAppAsync('updateProject', useIntlayerAuth().project.updateProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useUpdateProjectMembers = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.updateProjectMembers>\n) =>\n useAppAsync(\n 'updateProjectMembers',\n useIntlayerAuth().project.updateProjectMembers,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useDeleteProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.deleteProject>\n) =>\n useAppAsync('deleteProject', useIntlayerAuth().project.deleteProject, {\n invalidateQueries: ['getProjects'],\n ...args,\n });\nexport const useSelectProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.selectProject>\n) =>\n useAppAsync('selectProject', useIntlayerAuth().project.selectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useUnselectProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.unselectProject>\n) =>\n useAppAsync('unselectProject', useIntlayerAuth().project.unselectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useAddNewAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.addNewAccessKey>\n) =>\n useAppAsync('addNewAccessKey', useIntlayerAuth().project.addNewAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useDeleteAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.deleteAccessKey>\n) =>\n useAppAsync('deleteAccessKey', useIntlayerAuth().project.deleteAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useRefreshAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.refreshAccessKey>\n) =>\n useAppAsync('refreshAccessKey', useIntlayerAuth().project.refreshAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\n/**\n * Dictionary\n */\n\nexport const useGetDictionaries = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionaries>\n) =>\n useAppAsync(\n 'getDictionaries',\n useIntlayerAuth().dictionary.getDictionaries,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useGetDictionariesKeys = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionariesKeys>\n) =>\n useAppAsync(\n 'getDictionariesKeys',\n useIntlayerAuth().dictionary.getDictionariesKeys,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useGetDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionary>\n) =>\n useAppAsync(\n 'getDictionary',\n useIntlayerAuth().dictionary.getDictionary,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\nexport const useAddDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.addDictionary>\n) =>\n useAppAsync('addDictionary', useIntlayerAuth().dictionary.addDictionary, {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n ...args,\n });\n\nexport const usePushDictionaries = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.pushDictionaries>\n) =>\n useAppAsync(\n 'pushDictionaries',\n useIntlayerAuth().dictionary.pushDictionaries,\n {\n invalidateQueries: [\n 'getDictionaries',\n 'getDictionary',\n 'getDictionariesKeys',\n ],\n ...args,\n }\n );\nexport const useUpdateDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.updateDictionary>\n) =>\n useAppAsync(\n 'updateDictionary',\n useIntlayerAuth().dictionary.updateDictionary,\n {\n invalidateQueries: ['getDictionaries', 'getDictionary'],\n ...args,\n }\n );\nexport const useDeleteDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.deleteDictionary>\n) =>\n useAppAsync(\n 'deleteDictionary',\n useIntlayerAuth().dictionary.deleteDictionary,\n {\n invalidateQueries: [\n 'getDictionaries',\n 'getDictionary',\n 'getDictionariesKeys',\n ],\n ...args,\n }\n );\n\n/**\n * Tag\n */\n\nexport const useGetTags = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.getTags>\n) =>\n useAppAsync(\n 'getTags',\n useIntlayerAuth().tag.getTags,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\nexport const useAddTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.addTag>\n) =>\n useAppAsync('addTag', useIntlayerAuth().tag.addTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\nexport const useUpdateTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.updateTag>\n) =>\n useAppAsync('updateTag', useIntlayerAuth().tag.updateTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\nexport const useDeleteTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.deleteTag>\n) =>\n useAppAsync('deleteTag', useIntlayerAuth().tag.deleteTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\n\n/**\n * Stripe\n */\n\nexport const useGetSubscription = (\n args?: UseAsyncOptions<typeof intlayerAPI.stripe.getSubscription>\n) =>\n useAppAsync(\n 'getSubscription',\n useIntlayerAuth().stripe.getSubscription,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\n\nexport const useCancelSubscription = (\n args?: UseAsyncOptions<typeof intlayerAPI.stripe.cancelSubscription>\n) =>\n useAppAsync(\n 'cancelSubscription',\n useIntlayerAuth().stripe.cancelSubscription,\n { invalidateQueries: ['getSession'], ...args },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\n\n/**\n * AI\n */\n\nexport const useAuditContentDeclaration = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclaration>\n) =>\n useAppAsync(\n 'auditContentDeclaration',\n useIntlayerAuth().ai.auditContentDeclaration,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useAuditContentDeclarationMetadata = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationMetadata>\n) =>\n useAppAsync(\n 'auditContentDeclaration',\n useIntlayerAuth().ai.auditContentDeclarationMetadata,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useAuditContentDeclarationField = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationField>\n) =>\n useAppAsync(\n 'auditContentDeclarationField',\n useIntlayerAuth().ai.auditContentDeclarationField,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useAuditTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditTag>\n) =>\n useAppAsync('auditTag', useIntlayerAuth().ai.auditTag, args, {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n });\n\nexport const useAskDocQuestion = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.askDocQuestion>\n) => useAppAsync('askDocQuestion', useIntlayerAuth().ai.askDocQuestion, args);\n\n/**\n * Editor\n */\n\nexport const useWriteDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.editor.writeDictionary>\n) =>\n useEditorAsync(\n 'writeDictionary',\n useIntlayerAuth().editor.writeDictionary,\n args\n );\n"],"names":["useToast","error","useConfiguration","useAuth","useAsync","useIntlayerAuth"],"mappings":";;;;;;;;;;;AAaA,MAAM,mBAAmB,CAAiC,YAAkB;AACpE,QAAA,EAAE,MAAM,IAAIA,qCAAS;AAEpB,SAAA;AAAA,IACL,GAAG;AAAA,IACH,SAAS,CAAC,iBAAiB;AACrB,UAAA;AAGA,UAAA;AACM,gBAAA,KAAK,MAAM,YAAY;AAAA,eACxB,GAAG;AACV,gBAAQ,MAAM,CAAC;AAGP,gBAAA;AAAA,MAAA;AAKV,OAAC,KAAK,EACH,QAAQ,CAACC,WAAUA,MAAK,EACxB;AAAA,QAAQ,CAACA,WACR,MAAM;AAAA,UACJ,QACG,2BAAY,aAAa,eACtBA,OAAM,QACNA,OAAM,SAAS;AAAA,UACrB,aAAaA,OAAM,WAAW,gBAAgB;AAAA,UAC9C,SAAS;AAAA,QACV,CAAA;AAAA,MACH;AACF,cAAQ,UAAU,YAAY;AAAA,IAChC;AAAA,IACA,WAAW,CAAC,SAAS;AACnB,UAAI,KAAK;AACD,cAAA;AAAA,UACJ,OAAO,KAAK;AAAA,UACZ,aAAa,KAAK;AAAA,UAClB,SAAS;AAAA,QAAA,CACV;AACH,cAAQ,YAAY,IAAI;AAAA,IAAA;AAAA,EAE5B;AACF;AAWA,MAAM,gBAAgB,CACpB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;AAEpB;AAEW,MAAA,qCAAqC,CAChD,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,GAAG;AAAA,EACrB;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,EAAA;AAEpB;AAEW,MAAA,kCAAkC,CAC7C,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,GAAG;AAAA,EACrB;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,EAAA;AAEpB;AAEW,MAAA,cAAc,CACzB,SAEA,YAAY,YAAYA,qBAAAA,kBAAkB,GAAG,UAAU,MAAM;AAAA,EAC3D,aAAa;AAAA,EACb,qBAAqB;AAAA,EACrB,gBAAgB;AAClB,CAAC;AAEU,MAAA,oBAAoB,CAC/B,SACG,YAAY,kBAAkBA,qBAAAA,kBAAkB,GAAG,gBAAgB,IAAI;AAM/D,MAAA,qBAAqB,CAChC,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,OAAO;AAAA,EACzB;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"intlayerAPIHooks.cjs","sources":["../../src/hooks/intlayerAPIHooks.ts"],"sourcesContent":["'use client';\n\nimport type { intlayerAPI } from '@intlayer/api';\nimport { useConfiguration } from '@intlayer/editor-react';\nimport { useAuth } from '../components/Auth/useAuth/index';\nimport { useToast } from '../components/Toaster';\nimport { type UseAsyncOptions, useAsync } from './useAsync/useAsync';\nimport { useIntlayerAuth } from './useIntlayerAPI';\n\n/**\n * Hook to handle error logging and toast notifications\n */\nconst useErrorHandling = <T extends UseAsyncOptions<any>>(options: T): T => {\n const { toast } = useToast();\n\n return {\n ...options,\n onError: (errorMessage) => {\n let error;\n\n // If json is valid, parse it\n try {\n error = JSON.parse(errorMessage);\n } catch (e) {\n console.error(e);\n // If json is not valid, set error to the original errorMessage\n\n error = errorMessage;\n }\n\n // render toast for each error if there is more than one\n // otherwise render the toast with the error message\n [error]\n .flatMap((error) => error)\n .forEach((error) =>\n toast({\n title:\n (process.env.NODE_ENV === 'production'\n ? error.title\n : error.code) ?? 'Error',\n description: error.message ?? errorMessage ?? 'An error occurred',\n variant: 'error',\n })\n );\n options.onError?.(errorMessage);\n },\n onSuccess: (data) => {\n if (data.message)\n toast({\n title: data.message,\n description: data.description,\n variant: 'success',\n });\n options.onSuccess?.(data);\n },\n };\n};\n\ntype AuthEnableOptions = {\n requireUser?: boolean;\n requireProject?: boolean;\n requireOrganization?: boolean;\n};\n\n/**\n * Hook to enable authentication\n */\nconst useAuthEnable = <T extends UseAsyncOptions<any>>(\n options: T,\n { requireUser, requireProject, requireOrganization }: AuthEnableOptions = {}\n): T => {\n const configuration = useConfiguration();\n const { csrfToken, oAuth2AccessToken, session } = useAuth({\n intlayerConfiguration: configuration,\n });\n\n const isEnabledOption = options?.enable ?? true;\n const user = session ? session.user : oAuth2AccessToken?.user;\n\n const organization = session\n ? session.organization\n : oAuth2AccessToken?.organization;\n\n const project = session ? session.project : oAuth2AccessToken?.project;\n\n const isUserEnabled = requireUser ? Boolean(user) : true;\n\n const isProjectEnabled = requireProject ? Boolean(project) : true;\n\n const isOrganizationEnabled = requireOrganization\n ? Boolean(organization)\n : true;\n\n const isCSRFEnabled =\n Boolean(csrfToken) ||\n // If auth using session, csrf token is not required\n (!session && Boolean(oAuth2AccessToken));\n\n const isEnabled =\n isEnabledOption &&\n isUserEnabled &&\n isProjectEnabled &&\n isOrganizationEnabled &&\n isCSRFEnabled;\n\n return {\n ...options,\n enable: isEnabled,\n };\n};\n\nconst useAppAsync = <\n U extends string,\n T extends (...args: any[]) => Promise<any>,\n>(\n key: U,\n asyncFunction: T,\n options?: UseAsyncOptions<T>,\n authOptions?: AuthEnableOptions\n) => {\n // Enhance options using custom hooks\n const optionsWithAuth = useAuthEnable(options ?? {}, authOptions);\n\n const optionsWithErrorHandling = useErrorHandling(optionsWithAuth);\n\n // Call the main useAsync hook with enhanced options\n return useAsync(key, asyncFunction, optionsWithErrorHandling);\n};\n\nconst useEditorAsync = <\n U extends string,\n T extends (...args: any[]) => Promise<any>,\n>(\n key: U,\n asyncFunction: T,\n options?: UseAsyncOptions<T>\n) => {\n const optionsWithErrorHandling = useErrorHandling(options ?? {});\n\n // Call the main useAsync hook with enhanced options\n return useAsync(key, asyncFunction, optionsWithErrorHandling);\n};\n\n/**\n * Auth\n */\n\nexport const useLogin = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.login>\n) =>\n useAppAsync('login', useIntlayerAuth().auth.login, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useRegister = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.register>\n) =>\n useAppAsync('register', useIntlayerAuth().auth.register, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useLogout = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.logout>\n) =>\n useAppAsync('logout', useIntlayerAuth().auth.logout, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useChangePassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.changePassword>\n) => useAppAsync('changePassword', useIntlayerAuth().auth.changePassword, args);\nexport const useAskResetPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.askResetPassword>\n) =>\n useAppAsync(\n 'askResetPassword',\n useIntlayerAuth().auth.askResetPassword,\n args\n );\nexport const useResetPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.resetPassword>\n) => useAppAsync('resetPassword', useIntlayerAuth().auth.resetPassword, args);\nexport const useCheckIfUserHasPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.checkIfUserHasPassword>\n) =>\n useAppAsync(\n 'checkIfUserHasPassword',\n useIntlayerAuth().auth.checkIfUserHasPassword,\n args,\n {\n requireUser: true,\n }\n );\nexport const useVerifyEmail = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.verifyEmail>\n) => useAppAsync('verifyEmail', useIntlayerAuth().auth.verifyEmail, args);\n\nexport const useGetUserByAccount = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.getUserByAccount>\n) =>\n useAppAsync(\n 'getUserByAccount',\n useIntlayerAuth().user.getUserByAccount,\n args\n );\n\n/**\n * User\n */\n\nexport const useGetUsers = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.getUsers>\n) =>\n useAppAsync(\n 'getUsers',\n useIntlayerAuth().user.getUsers,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n }\n );\nexport const useCreateUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.createUser>\n) =>\n useAppAsync('createUser', useIntlayerAuth().user.createUser, {\n invalidateQueries: ['getUsers'],\n ...args,\n });\nexport const useUpdateUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.updateUser>\n) =>\n useAppAsync('updateUser', useIntlayerAuth().user.updateUser, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useDeleteUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.deleteUser>\n) =>\n useAppAsync('deleteUser', useIntlayerAuth().user.deleteUser, {\n invalidateQueries: ['getUsers'],\n ...args,\n });\n\n/**\n * Organization\n */\n\nexport const useGetOrganizations = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.getOrganizations>\n) =>\n useAppAsync(\n 'getOrganizations',\n useIntlayerAuth().organization.getOrganizations,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n }\n );\n\nexport const useAddOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganization>\n) =>\n useAppAsync(\n 'addOrganization',\n useIntlayerAuth().organization.addOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useUpdateOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.updateOrganization>\n) =>\n useAppAsync(\n 'updateOrganization',\n useIntlayerAuth().organization.updateOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useUpdateOrganizationMembers = (\n args?: UseAsyncOptions<\n typeof intlayerAPI.organization.updateOrganizationMembers\n >\n) =>\n useAppAsync(\n 'updateOrganizationMembers',\n useIntlayerAuth().organization.updateOrganizationMembers,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useAddOrganizationMember = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganizationMember>\n) =>\n useAppAsync(\n 'addOrganizationMember',\n useIntlayerAuth().organization.addOrganizationMember,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useDeleteOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.deleteOrganization>\n) =>\n useAppAsync(\n 'deleteOrganization',\n useIntlayerAuth().organization.deleteOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useSelectOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.selectOrganization>\n) =>\n useAppAsync(\n 'selectOrganization',\n useIntlayerAuth().organization.selectOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useUnselectOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.unselectOrganization>\n) =>\n useAppAsync(\n 'unselectOrganization',\n useIntlayerAuth().organization.unselectOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\n\n/**\n * Project\n */\n\nexport const useGetProjects = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.getProjects>\n) =>\n useAppAsync(\n 'getProjects',\n useIntlayerAuth().project.getProjects,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\nexport const useAddProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.addProject>\n) =>\n useAppAsync('addProject', useIntlayerAuth().project.addProject, {\n invalidateQueries: ['getProjects'],\n ...args,\n });\nexport const useUpdateProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.updateProject>\n) =>\n useAppAsync('updateProject', useIntlayerAuth().project.updateProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useUpdateProjectMembers = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.updateProjectMembers>\n) =>\n useAppAsync(\n 'updateProjectMembers',\n useIntlayerAuth().project.updateProjectMembers,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useDeleteProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.deleteProject>\n) =>\n useAppAsync('deleteProject', useIntlayerAuth().project.deleteProject, {\n invalidateQueries: ['getProjects'],\n ...args,\n });\nexport const useSelectProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.selectProject>\n) =>\n useAppAsync('selectProject', useIntlayerAuth().project.selectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useUnselectProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.unselectProject>\n) =>\n useAppAsync('unselectProject', useIntlayerAuth().project.unselectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useAddNewAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.addNewAccessKey>\n) =>\n useAppAsync('addNewAccessKey', useIntlayerAuth().project.addNewAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useDeleteAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.deleteAccessKey>\n) =>\n useAppAsync('deleteAccessKey', useIntlayerAuth().project.deleteAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useRefreshAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.refreshAccessKey>\n) =>\n useAppAsync('refreshAccessKey', useIntlayerAuth().project.refreshAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\n/**\n * Dictionary\n */\n\nexport const useGetDictionaries = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionaries>\n) =>\n useAppAsync(\n 'getDictionaries',\n useIntlayerAuth().dictionary.getDictionaries,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useGetDictionariesKeys = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionariesKeys>\n) =>\n useAppAsync(\n 'getDictionariesKeys',\n useIntlayerAuth().dictionary.getDictionariesKeys,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useGetDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionary>\n) =>\n useAppAsync(\n 'getDictionary',\n useIntlayerAuth().dictionary.getDictionary,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\nexport const useAddDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.addDictionary>\n) =>\n useAppAsync('addDictionary', useIntlayerAuth().dictionary.addDictionary, {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n ...args,\n });\n\nexport const usePushDictionaries = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.pushDictionaries>\n) =>\n useAppAsync(\n 'pushDictionaries',\n useIntlayerAuth().dictionary.pushDictionaries,\n {\n invalidateQueries: [\n 'getDictionaries',\n 'getDictionary',\n 'getDictionariesKeys',\n ],\n ...args,\n }\n );\nexport const useUpdateDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.updateDictionary>\n) =>\n useAppAsync(\n 'updateDictionary',\n useIntlayerAuth().dictionary.updateDictionary,\n {\n invalidateQueries: ['getDictionaries', 'getDictionary'],\n ...args,\n }\n );\nexport const useDeleteDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.deleteDictionary>\n) =>\n useAppAsync(\n 'deleteDictionary',\n useIntlayerAuth().dictionary.deleteDictionary,\n {\n invalidateQueries: [\n 'getDictionaries',\n 'getDictionary',\n 'getDictionariesKeys',\n ],\n ...args,\n }\n );\n\n/**\n * Tag\n */\n\nexport const useGetTags = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.getTags>\n) =>\n useAppAsync(\n 'getTags',\n useIntlayerAuth().tag.getTags,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\nexport const useAddTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.addTag>\n) =>\n useAppAsync('addTag', useIntlayerAuth().tag.addTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\nexport const useUpdateTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.updateTag>\n) =>\n useAppAsync('updateTag', useIntlayerAuth().tag.updateTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\nexport const useDeleteTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.deleteTag>\n) =>\n useAppAsync('deleteTag', useIntlayerAuth().tag.deleteTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\n\n/**\n * Stripe\n */\n\nexport const useGetSubscription = (\n args?: UseAsyncOptions<typeof intlayerAPI.stripe.getSubscription>\n) =>\n useAppAsync(\n 'getSubscription',\n useIntlayerAuth().stripe.getSubscription,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\n\nexport const useCancelSubscription = (\n args?: UseAsyncOptions<typeof intlayerAPI.stripe.cancelSubscription>\n) =>\n useAppAsync(\n 'cancelSubscription',\n useIntlayerAuth().stripe.cancelSubscription,\n { invalidateQueries: ['getSession'], ...args },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\n\n/**\n * AI\n */\n\nexport const useAuditContentDeclaration = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclaration>\n) =>\n useAppAsync(\n 'auditContentDeclaration',\n useIntlayerAuth().ai.auditContentDeclaration,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useAuditContentDeclarationMetadata = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationMetadata>\n) =>\n useAppAsync(\n 'auditContentDeclaration',\n useIntlayerAuth().ai.auditContentDeclarationMetadata,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useAuditContentDeclarationField = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationField>\n) =>\n useAppAsync(\n 'auditContentDeclarationField',\n useIntlayerAuth().ai.auditContentDeclarationField,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useAuditTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditTag>\n) =>\n useAppAsync('auditTag', useIntlayerAuth().ai.auditTag, args, {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n });\n\nexport const useAskDocQuestion = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.askDocQuestion>\n) => useAppAsync('askDocQuestion', useIntlayerAuth().ai.askDocQuestion, args);\n\n/**\n * Editor\n */\n\nexport const useWriteDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.editor.writeDictionary>\n) =>\n useEditorAsync(\n 'writeDictionary',\n useIntlayerAuth().editor.writeDictionary,\n args\n );\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qBAAAA,kBAAkB,GAAG,UAAU,MAAM;AAAA,EAC3D,aAAa;AAAA,EACb,qBAAqB;AAAA,EACrB,gBAAgB;AAClB,CAAC;AAEU,MAAA,oBAAoB,CAC/B,SACG,YAAY,kBAAkBA,qBAAAA,kBAAkB,GAAG,gBAAgB,IAAI;AAM/D,MAAA,qBAAqB,CAChC,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,OAAO;AAAA,EACzB;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,76 +3,76 @@ import { UseAsyncOptions } from './useAsync/useAsync';
3
3
  /**
4
4
  * Auth
5
5
  */
6
- export declare const useLogin: (args?: UseAsyncOptions<typeof intlayerAPI.auth.login>) => import('./useAsync').UseAsyncResult<"login", (user: import('@intlayer/backend').LoginBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').LoginResult>>;
7
- export declare const useRegister: (args?: UseAsyncOptions<typeof intlayerAPI.auth.register>) => import('./useAsync').UseAsyncResult<"register", (user: import('@intlayer/backend').RegisterBody, query?: import('@intlayer/backend').RegisterQuery, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').RegisterResult>>;
6
+ export declare const useLogin: (args?: UseAsyncOptions<typeof intlayerAPI.auth.login>) => import('./useAsync').UseAsyncResult<"login", (user: LoginBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<LoginResult>>;
7
+ export declare const useRegister: (args?: UseAsyncOptions<typeof intlayerAPI.auth.register>) => import('./useAsync').UseAsyncResult<"register", (user: RegisterBody, query?: RegisterQuery, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<RegisterResult>>;
8
8
  export declare const useLogout: (args?: UseAsyncOptions<typeof intlayerAPI.auth.logout>) => import('./useAsync').UseAsyncResult<"logout", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<void>>;
9
- export declare const useChangePassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.changePassword>) => import('./useAsync').UseAsyncResult<"changePassword", (data: import('@intlayer/backend').UpdatePasswordBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdatePasswordResult>>;
10
- export declare const useAskResetPassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.askResetPassword>) => import('./useAsync').UseAsyncResult<"askResetPassword", (email: import('@intlayer/backend').AskResetPasswordBody["email"], otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AskResetPasswordResult>>;
11
- export declare const useResetPassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.resetPassword>) => import('./useAsync').UseAsyncResult<"resetPassword", (params: import('@intlayer/backend').ResetPasswordParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').ResetPasswordResult>>;
12
- export declare const useCheckIfUserHasPassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.checkIfUserHasPassword>) => import('./useAsync').UseAsyncResult<"checkIfUserHasPassword", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').CheckIfUserHasPasswordResult>>;
13
- export declare const useVerifyEmail: (args?: UseAsyncOptions<typeof intlayerAPI.auth.verifyEmail>) => import('./useAsync').UseAsyncResult<"verifyEmail", ({ userId, secret }: import('@intlayer/backend').ValidEmailParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').ValidEmailResult>>;
14
- export declare const useGetUserByAccount: (args?: UseAsyncOptions<typeof intlayerAPI.user.getUserByAccount>) => import('./useAsync').UseAsyncResult<"getUserByAccount", (providerAccountId: import('@intlayer/backend').GetUserByAccountParams["providerAccountId"], provider: import('@intlayer/backend').GetUserByAccountParams["provider"], otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetUserByAccountResult>>;
9
+ export declare const useChangePassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.changePassword>) => import('./useAsync').UseAsyncResult<"changePassword", (data: UpdatePasswordBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UpdatePasswordResult>>;
10
+ export declare const useAskResetPassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.askResetPassword>) => import('./useAsync').UseAsyncResult<"askResetPassword", (email: AskResetPasswordBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AskResetPasswordResult>>;
11
+ export declare const useResetPassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.resetPassword>) => import('./useAsync').UseAsyncResult<"resetPassword", (params: ResetPasswordParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<ResetPasswordResult>>;
12
+ export declare const useCheckIfUserHasPassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.checkIfUserHasPassword>) => import('./useAsync').UseAsyncResult<"checkIfUserHasPassword", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<CheckIfUserHasPasswordResult>>;
13
+ export declare const useVerifyEmail: (args?: UseAsyncOptions<typeof intlayerAPI.auth.verifyEmail>) => import('./useAsync').UseAsyncResult<"verifyEmail", ({ userId, secret }: ValidEmailParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<ValidEmailResult>>;
14
+ export declare const useGetUserByAccount: (args?: UseAsyncOptions<typeof intlayerAPI.user.getUserByAccount>) => import('./useAsync').UseAsyncResult<"getUserByAccount", (providerAccountId: GetUserByAccountParams, provider: GetUserByAccountParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<GetUserByAccountResult>>;
15
15
  /**
16
16
  * User
17
17
  */
18
- export declare const useGetUsers: (args?: UseAsyncOptions<typeof intlayerAPI.user.getUsers>) => import('./useAsync').UseAsyncResult<"getUsers", (filters?: import('@intlayer/backend').GetUsersParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetUsersResult>>;
19
- export declare const useCreateUser: (args?: UseAsyncOptions<typeof intlayerAPI.user.createUser>) => import('./useAsync').UseAsyncResult<"createUser", (user: import('@intlayer/backend').CreateUserBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').CreateUserResult>>;
20
- export declare const useUpdateUser: (args?: UseAsyncOptions<typeof intlayerAPI.user.updateUser>) => import('./useAsync').UseAsyncResult<"updateUser", (user: import('@intlayer/backend').UpdateUserBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdateUserResult>>;
21
- export declare const useDeleteUser: (args?: UseAsyncOptions<typeof intlayerAPI.user.deleteUser>) => import('./useAsync').UseAsyncResult<"deleteUser", (userId: string, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdateUserResult>>;
18
+ export declare const useGetUsers: (args?: UseAsyncOptions<typeof intlayerAPI.user.getUsers>) => import('./useAsync').UseAsyncResult<"getUsers", (filters?: GetUsersParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<GetUsersResult>>;
19
+ export declare const useCreateUser: (args?: UseAsyncOptions<typeof intlayerAPI.user.createUser>) => import('./useAsync').UseAsyncResult<"createUser", (user: CreateUserBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<CreateUserResult>>;
20
+ export declare const useUpdateUser: (args?: UseAsyncOptions<typeof intlayerAPI.user.updateUser>) => import('./useAsync').UseAsyncResult<"updateUser", (user: UpdateUserBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UpdateUserResult>>;
21
+ export declare const useDeleteUser: (args?: UseAsyncOptions<typeof intlayerAPI.user.deleteUser>) => import('./useAsync').UseAsyncResult<"deleteUser", (userId: string, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UpdateUserResult>>;
22
22
  /**
23
23
  * Organization
24
24
  */
25
- export declare const useGetOrganizations: (args?: UseAsyncOptions<typeof intlayerAPI.organization.getOrganizations>) => import('./useAsync').UseAsyncResult<"getOrganizations", (filters?: import('@intlayer/backend').GetOrganizationsParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetOrganizationsResult>>;
26
- export declare const useAddOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganization>) => import('./useAsync').UseAsyncResult<"addOrganization", (organization: import('@intlayer/backend').AddOrganizationBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AddOrganizationResult>>;
27
- export declare const useUpdateOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.updateOrganization>) => import('./useAsync').UseAsyncResult<"updateOrganization", (organization: import('@intlayer/backend').UpdateOrganizationBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdateOrganizationResult>>;
28
- export declare const useUpdateOrganizationMembers: (args?: UseAsyncOptions<typeof intlayerAPI.organization.updateOrganizationMembers>) => import('./useAsync').UseAsyncResult<"updateOrganizationMembers", (body: import('@intlayer/backend').UpdateOrganizationMembersBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdateOrganizationMembersResult>>;
29
- export declare const useAddOrganizationMember: (args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganizationMember>) => import('./useAsync').UseAsyncResult<"addOrganizationMember", (body: import('@intlayer/backend').AddOrganizationMemberBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AddOrganizationMemberResult>>;
30
- export declare const useDeleteOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.deleteOrganization>) => import('./useAsync').UseAsyncResult<"deleteOrganization", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').DeleteOrganizationResult>>;
31
- export declare const useSelectOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.selectOrganization>) => import('./useAsync').UseAsyncResult<"selectOrganization", (organizationId: import('@intlayer/backend').SelectOrganizationParam["organizationId"], otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').SelectOrganizationResult>>;
32
- export declare const useUnselectOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.unselectOrganization>) => import('./useAsync').UseAsyncResult<"unselectOrganization", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UnselectOrganizationResult>>;
25
+ export declare const useGetOrganizations: (args?: UseAsyncOptions<typeof intlayerAPI.organization.getOrganizations>) => import('./useAsync').UseAsyncResult<"getOrganizations", (filters?: GetOrganizationsParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<GetOrganizationsResult>>;
26
+ export declare const useAddOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganization>) => import('./useAsync').UseAsyncResult<"addOrganization", (organization: AddOrganizationBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AddOrganizationResult>>;
27
+ export declare const useUpdateOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.updateOrganization>) => import('./useAsync').UseAsyncResult<"updateOrganization", (organization: UpdateOrganizationBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UpdateOrganizationResult>>;
28
+ export declare const useUpdateOrganizationMembers: (args?: UseAsyncOptions<typeof intlayerAPI.organization.updateOrganizationMembers>) => import('./useAsync').UseAsyncResult<"updateOrganizationMembers", (body: UpdateOrganizationMembersBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UpdateOrganizationMembersResult>>;
29
+ export declare const useAddOrganizationMember: (args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganizationMember>) => import('./useAsync').UseAsyncResult<"addOrganizationMember", (body: AddOrganizationMemberBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AddOrganizationMemberResult>>;
30
+ export declare const useDeleteOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.deleteOrganization>) => import('./useAsync').UseAsyncResult<"deleteOrganization", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<DeleteOrganizationResult>>;
31
+ export declare const useSelectOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.selectOrganization>) => import('./useAsync').UseAsyncResult<"selectOrganization", (organizationId: SelectOrganizationParam, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<SelectOrganizationResult>>;
32
+ export declare const useUnselectOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.unselectOrganization>) => import('./useAsync').UseAsyncResult<"unselectOrganization", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UnselectOrganizationResult>>;
33
33
  /**
34
34
  * Project
35
35
  */
36
- export declare const useGetProjects: (args?: UseAsyncOptions<typeof intlayerAPI.project.getProjects>) => import('./useAsync').UseAsyncResult<"getProjects", (filters?: import('@intlayer/backend').GetProjectsParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetProjectsResult>>;
37
- export declare const useAddProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.addProject>) => import('./useAsync').UseAsyncResult<"addProject", (project: import('@intlayer/backend').AddProjectBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AddProjectResult>>;
38
- export declare const useUpdateProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.updateProject>) => import('./useAsync').UseAsyncResult<"updateProject", (project: import('@intlayer/backend').UpdateProjectBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdateProjectResult>>;
39
- export declare const useUpdateProjectMembers: (args?: UseAsyncOptions<typeof intlayerAPI.project.updateProjectMembers>) => import('./useAsync').UseAsyncResult<"updateProjectMembers", (body: import('@intlayer/backend').UpdateProjectMembersBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdateProjectMembersResult>>;
40
- export declare const useDeleteProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.deleteProject>) => import('./useAsync').UseAsyncResult<"deleteProject", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').DeleteProjectResult>>;
41
- export declare const useSelectProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.selectProject>) => import('./useAsync').UseAsyncResult<"selectProject", (projectId: import('@intlayer/backend').SelectProjectParam["projectId"], otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').SelectProjectResult>>;
42
- export declare const useUnselectProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.unselectProject>) => import('./useAsync').UseAsyncResult<"unselectProject", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UnselectProjectResult>>;
43
- export declare const useAddNewAccessKey: (args?: UseAsyncOptions<typeof intlayerAPI.project.addNewAccessKey>) => import('./useAsync').UseAsyncResult<"addNewAccessKey", (accessKey: import('@intlayer/backend').AddNewAccessKeyBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AddNewAccessKeyResponse>>;
44
- export declare const useDeleteAccessKey: (args?: UseAsyncOptions<typeof intlayerAPI.project.deleteAccessKey>) => import('./useAsync').UseAsyncResult<"deleteAccessKey", (clientId: import('@intlayer/backend').DeleteAccessKeyBody["clientId"], otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').DeleteAccessKeyResponse>>;
45
- export declare const useRefreshAccessKey: (args?: UseAsyncOptions<typeof intlayerAPI.project.refreshAccessKey>) => import('./useAsync').UseAsyncResult<"refreshAccessKey", (clientId: import('@intlayer/backend').RefreshAccessKeyBody["clientId"], otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').RefreshAccessKeyResponse>>;
36
+ export declare const useGetProjects: (args?: UseAsyncOptions<typeof intlayerAPI.project.getProjects>) => import('./useAsync').UseAsyncResult<"getProjects", (filters?: GetProjectsParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<GetProjectsResult>>;
37
+ export declare const useAddProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.addProject>) => import('./useAsync').UseAsyncResult<"addProject", (project: AddProjectBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AddProjectResult>>;
38
+ export declare const useUpdateProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.updateProject>) => import('./useAsync').UseAsyncResult<"updateProject", (project: UpdateProjectBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UpdateProjectResult>>;
39
+ export declare const useUpdateProjectMembers: (args?: UseAsyncOptions<typeof intlayerAPI.project.updateProjectMembers>) => import('./useAsync').UseAsyncResult<"updateProjectMembers", (body: UpdateProjectMembersBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UpdateProjectMembersResult>>;
40
+ export declare const useDeleteProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.deleteProject>) => import('./useAsync').UseAsyncResult<"deleteProject", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<DeleteProjectResult>>;
41
+ export declare const useSelectProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.selectProject>) => import('./useAsync').UseAsyncResult<"selectProject", (projectId: SelectProjectParam, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<SelectProjectResult>>;
42
+ export declare const useUnselectProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.unselectProject>) => import('./useAsync').UseAsyncResult<"unselectProject", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UnselectProjectResult>>;
43
+ export declare const useAddNewAccessKey: (args?: UseAsyncOptions<typeof intlayerAPI.project.addNewAccessKey>) => import('./useAsync').UseAsyncResult<"addNewAccessKey", (accessKey: AddNewAccessKeyBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AddNewAccessKeyResponse>>;
44
+ export declare const useDeleteAccessKey: (args?: UseAsyncOptions<typeof intlayerAPI.project.deleteAccessKey>) => import('./useAsync').UseAsyncResult<"deleteAccessKey", (clientId: DeleteAccessKeyBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<DeleteAccessKeyResponse>>;
45
+ export declare const useRefreshAccessKey: (args?: UseAsyncOptions<typeof intlayerAPI.project.refreshAccessKey>) => import('./useAsync').UseAsyncResult<"refreshAccessKey", (clientId: RefreshAccessKeyBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<RefreshAccessKeyResponse>>;
46
46
  /**
47
47
  * Dictionary
48
48
  */
49
- export declare const useGetDictionaries: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionaries>) => import('./useAsync').UseAsyncResult<"getDictionaries", (filters?: import('@intlayer/backend').GetDictionariesParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetDictionariesResult>>;
50
- export declare const useGetDictionariesKeys: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionariesKeys>) => import('./useAsync').UseAsyncResult<"getDictionariesKeys", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetDictionariesKeysResult>>;
51
- export declare const useGetDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionary>) => import('./useAsync').UseAsyncResult<"getDictionary", (dictionaryKey: import('@intlayer/backend').GetDictionaryParams["dictionaryKey"], version?: import('@intlayer/backend').GetDictionaryQuery["version"], otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetDictionaryResult>>;
52
- export declare const useAddDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.addDictionary>) => import('./useAsync').UseAsyncResult<"addDictionary", (dictionary: import('@intlayer/backend').AddDictionaryBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AddDictionaryResult>>;
53
- export declare const usePushDictionaries: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.pushDictionaries>) => import('./useAsync').UseAsyncResult<"pushDictionaries", (dictionaries: import('@intlayer/backend').PushDictionariesBody["dictionaries"], otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').PushDictionariesResult>>;
54
- export declare const useUpdateDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.updateDictionary>) => import('./useAsync').UseAsyncResult<"updateDictionary", (dictionaryId: import('@intlayer/backend').UpdateDictionaryParam["dictionaryId"], dictionary: import('@intlayer/backend').UpdateDictionaryBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdateDictionaryResult>>;
55
- export declare const useDeleteDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.deleteDictionary>) => import('./useAsync').UseAsyncResult<"deleteDictionary", (id: import('@intlayer/backend').DeleteDictionaryParam["dictionaryId"], otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').DeleteDictionaryResult>>;
49
+ export declare const useGetDictionaries: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionaries>) => import('./useAsync').UseAsyncResult<"getDictionaries", (filters?: GetDictionariesParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<GetDictionariesResult>>;
50
+ export declare const useGetDictionariesKeys: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionariesKeys>) => import('./useAsync').UseAsyncResult<"getDictionariesKeys", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<GetDictionariesKeysResult>>;
51
+ export declare const useGetDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionary>) => import('./useAsync').UseAsyncResult<"getDictionary", (dictionaryKey: GetDictionaryParams, version?: GetDictionaryQuery, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<GetDictionaryResult>>;
52
+ export declare const useAddDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.addDictionary>) => import('./useAsync').UseAsyncResult<"addDictionary", (dictionary: AddDictionaryBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AddDictionaryResult>>;
53
+ export declare const usePushDictionaries: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.pushDictionaries>) => import('./useAsync').UseAsyncResult<"pushDictionaries", (dictionaries: PushDictionariesBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<PushDictionariesResult>>;
54
+ export declare const useUpdateDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.updateDictionary>) => import('./useAsync').UseAsyncResult<"updateDictionary", (dictionaryId: UpdateDictionaryParam, dictionary: UpdateDictionaryBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UpdateDictionaryResult>>;
55
+ export declare const useDeleteDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.deleteDictionary>) => import('./useAsync').UseAsyncResult<"deleteDictionary", (id: DeleteDictionaryParam, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<DeleteDictionaryResult>>;
56
56
  /**
57
57
  * Tag
58
58
  */
59
- export declare const useGetTags: (args?: UseAsyncOptions<typeof intlayerAPI.tag.getTags>) => import('./useAsync').UseAsyncResult<"getTags", (filters?: import('@intlayer/backend').GetTagsParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetTagsResult>>;
60
- export declare const useAddTag: (args?: UseAsyncOptions<typeof intlayerAPI.tag.addTag>) => import('./useAsync').UseAsyncResult<"addTag", (tag: import('@intlayer/backend').AddTagBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AddTagResult>>;
61
- export declare const useUpdateTag: (args?: UseAsyncOptions<typeof intlayerAPI.tag.updateTag>) => import('./useAsync').UseAsyncResult<"updateTag", (tagId: import('@intlayer/backend').UpdateTagParams["tagId"], tag: import('@intlayer/backend').UpdateTagBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdateTagResult>>;
62
- export declare const useDeleteTag: (args?: UseAsyncOptions<typeof intlayerAPI.tag.deleteTag>) => import('./useAsync').UseAsyncResult<"deleteTag", (tagId: import('@intlayer/backend').DeleteTagParams["tagId"], otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').DeleteTagResult>>;
59
+ export declare const useGetTags: (args?: UseAsyncOptions<typeof intlayerAPI.tag.getTags>) => import('./useAsync').UseAsyncResult<"getTags", (filters?: GetTagsParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<GetTagsResult>>;
60
+ export declare const useAddTag: (args?: UseAsyncOptions<typeof intlayerAPI.tag.addTag>) => import('./useAsync').UseAsyncResult<"addTag", (tag: AddTagBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AddTagResult>>;
61
+ export declare const useUpdateTag: (args?: UseAsyncOptions<typeof intlayerAPI.tag.updateTag>) => import('./useAsync').UseAsyncResult<"updateTag", (tagId: UpdateTagParams, tag: UpdateTagBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<UpdateTagResult>>;
62
+ export declare const useDeleteTag: (args?: UseAsyncOptions<typeof intlayerAPI.tag.deleteTag>) => import('./useAsync').UseAsyncResult<"deleteTag", (tagId: DeleteTagParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<DeleteTagResult>>;
63
63
  /**
64
64
  * Stripe
65
65
  */
66
- export declare const useGetSubscription: (args?: UseAsyncOptions<typeof intlayerAPI.stripe.getSubscription>) => import('./useAsync').UseAsyncResult<"getSubscription", (body?: import('@intlayer/backend').GetCheckoutSessionBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetCheckoutSessionResult>>;
67
- export declare const useCancelSubscription: (args?: UseAsyncOptions<typeof intlayerAPI.stripe.cancelSubscription>) => import('./useAsync').UseAsyncResult<"cancelSubscription", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetCheckoutSessionResult>>;
66
+ export declare const useGetSubscription: (args?: UseAsyncOptions<typeof intlayerAPI.stripe.getSubscription>) => import('./useAsync').UseAsyncResult<"getSubscription", (body?: GetCheckoutSessionBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<GetCheckoutSessionResult>>;
67
+ export declare const useCancelSubscription: (args?: UseAsyncOptions<typeof intlayerAPI.stripe.cancelSubscription>) => import('./useAsync').UseAsyncResult<"cancelSubscription", (otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<GetCheckoutSessionResult>>;
68
68
  /**
69
69
  * AI
70
70
  */
71
- export declare const useAuditContentDeclaration: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclaration>) => import('./useAsync').UseAsyncResult<"auditContentDeclaration", (body?: import('@intlayer/backend').AuditContentDeclarationBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AuditContentDeclarationResult>>;
72
- export declare const useAuditContentDeclarationMetadata: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationMetadata>) => import('./useAsync').UseAsyncResult<"auditContentDeclaration", (body?: import('@intlayer/backend').AuditContentDeclarationMetadataBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AuditContentDeclarationMetadataResult>>;
73
- export declare const useAuditContentDeclarationField: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationField>) => import('./useAsync').UseAsyncResult<"auditContentDeclarationField", (body?: import('@intlayer/backend').AuditContentDeclarationFieldBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AuditContentDeclarationFieldResult>>;
74
- export declare const useAuditTag: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditTag>) => import('./useAsync').UseAsyncResult<"auditTag", (body?: import('@intlayer/backend').AuditTagBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AuditTagResult>>;
75
- export declare const useAskDocQuestion: (args?: UseAsyncOptions<typeof intlayerAPI.ai.askDocQuestion>) => import('./useAsync').UseAsyncResult<"askDocQuestion", (body?: import('@intlayer/backend').AskDocQuestionBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').AskDocQuestionResult>>;
71
+ export declare const useAuditContentDeclaration: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclaration>) => import('./useAsync').UseAsyncResult<"auditContentDeclaration", (body?: AuditContentDeclarationBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AuditContentDeclarationResult>>;
72
+ export declare const useAuditContentDeclarationMetadata: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationMetadata>) => import('./useAsync').UseAsyncResult<"auditContentDeclaration", (body?: AuditContentDeclarationMetadataBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AuditContentDeclarationMetadataResult>>;
73
+ export declare const useAuditContentDeclarationField: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationField>) => import('./useAsync').UseAsyncResult<"auditContentDeclarationField", (body?: AuditContentDeclarationFieldBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AuditContentDeclarationFieldResult>>;
74
+ export declare const useAuditTag: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditTag>) => import('./useAsync').UseAsyncResult<"auditTag", (body?: AuditTagBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AuditTagResult>>;
75
+ export declare const useAskDocQuestion: (args?: UseAsyncOptions<typeof intlayerAPI.ai.askDocQuestion>) => import('./useAsync').UseAsyncResult<"askDocQuestion", (body?: AskDocQuestionBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<AskDocQuestionResult>>;
76
76
  /**
77
77
  * Editor
78
78
  */