@intlayer/design-system 3.0.3 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (648) hide show
  1. package/dist/.vite/manifest.json +269 -117
  2. package/dist/Form-2XHQV7F_.cjs +295 -0
  3. package/dist/Form-2XHQV7F_.cjs.map +1 -0
  4. package/dist/Form-BO0i3nT9.js +300 -0
  5. package/dist/Form-BO0i3nT9.js.map +1 -0
  6. package/dist/Form-BaHDK0RZ.cjs +298 -0
  7. package/dist/Form-BaHDK0RZ.cjs.map +1 -0
  8. package/dist/Form-BfZMqK2D.js +300 -0
  9. package/dist/Form-BfZMqK2D.js.map +1 -0
  10. package/dist/Form-C13KWSZs.cjs +299 -0
  11. package/dist/Form-C13KWSZs.cjs.map +1 -0
  12. package/dist/Form-C8K2f8ph.js +300 -0
  13. package/dist/Form-C8K2f8ph.js.map +1 -0
  14. package/dist/Form-CKvCgz8c.cjs +299 -0
  15. package/dist/Form-CKvCgz8c.cjs.map +1 -0
  16. package/dist/Form-Cbk5Lhpd.js +299 -0
  17. package/dist/Form-Cbk5Lhpd.js.map +1 -0
  18. package/dist/Form-CiAgFAPb.cjs +300 -0
  19. package/dist/Form-CiAgFAPb.cjs.map +1 -0
  20. package/dist/Form-CnBKDneQ.js +296 -0
  21. package/dist/Form-CnBKDneQ.js.map +1 -0
  22. package/dist/Form-DERuauvB.cjs +300 -0
  23. package/dist/Form-DERuauvB.cjs.map +1 -0
  24. package/dist/Form-DhlDf3ML.cjs +299 -0
  25. package/dist/Form-DhlDf3ML.cjs.map +1 -0
  26. package/dist/Form-DkAZ0Jdf.cjs +299 -0
  27. package/dist/Form-DkAZ0Jdf.cjs.map +1 -0
  28. package/dist/Form-DqnNP4DA.js +300 -0
  29. package/dist/Form-DqnNP4DA.js.map +1 -0
  30. package/dist/Form-DyFBmVya.js +301 -0
  31. package/dist/Form-DyFBmVya.js.map +1 -0
  32. package/dist/Form-FW4Odjfm.js +301 -0
  33. package/dist/Form-FW4Odjfm.js.map +1 -0
  34. package/dist/TabSelector-BmkzVPXl.js +660 -0
  35. package/dist/TabSelector-BmkzVPXl.js.map +1 -0
  36. package/dist/TabSelector-o_NRBvPQ.cjs +659 -0
  37. package/dist/TabSelector-o_NRBvPQ.cjs.map +1 -0
  38. package/dist/components/Accordion/Accordion.d.ts +0 -1
  39. package/dist/components/Auth/AuthModal/index.cjs +17 -62
  40. package/dist/components/Auth/AuthModal/index.cjs.map +1 -1
  41. package/dist/components/Auth/AuthModal/index.d.ts +0 -1
  42. package/dist/components/Auth/AuthModal/index.d.ts.map +1 -1
  43. package/dist/components/Auth/AuthModal/index.mjs +17 -62
  44. package/dist/components/Auth/AuthModal/index.mjs.map +1 -1
  45. package/dist/components/Auth/AuthProvider/index.cjs +5 -21
  46. package/dist/components/Auth/AuthProvider/index.cjs.map +1 -1
  47. package/dist/components/Auth/AuthProvider/index.d.ts +7 -6
  48. package/dist/components/Auth/AuthProvider/index.d.ts.map +1 -1
  49. package/dist/components/Auth/AuthProvider/index.mjs +6 -22
  50. package/dist/components/Auth/AuthProvider/index.mjs.map +1 -1
  51. package/dist/components/Auth/AuthProvider/useSession.cjs +14 -11
  52. package/dist/components/Auth/AuthProvider/useSession.cjs.map +1 -1
  53. package/dist/components/Auth/AuthProvider/useSession.d.ts +0 -1
  54. package/dist/components/Auth/AuthProvider/useSession.d.ts.map +1 -1
  55. package/dist/components/Auth/AuthProvider/useSession.mjs +14 -11
  56. package/dist/components/Auth/AuthProvider/useSession.mjs.map +1 -1
  57. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +2 -2
  58. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs.map +1 -1
  59. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts +0 -1
  60. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +1 -1
  61. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs.map +1 -1
  62. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs.map +1 -1
  63. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts +2 -3
  64. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts.map +1 -1
  65. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs.map +1 -1
  66. package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs.map +1 -1
  67. package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts +1 -2
  68. package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts.map +1 -1
  69. package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs.map +1 -1
  70. package/dist/components/Auth/AuthenticationBarrier/index.d.ts +3 -4
  71. package/dist/components/Auth/AuthenticationBarrier/index.d.ts.map +1 -1
  72. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +2 -1
  73. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
  74. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +1 -2
  75. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -1
  76. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +2 -1
  77. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
  78. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs.map +1 -1
  79. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.d.ts +0 -1
  80. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs.map +1 -1
  81. package/dist/components/Auth/ChangePasswordForm/index.content.cjs.map +1 -1
  82. package/dist/components/Auth/ChangePasswordForm/index.content.mjs.map +1 -1
  83. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +3 -2
  84. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
  85. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts +0 -1
  86. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +1 -1
  87. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +3 -2
  88. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
  89. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts +0 -1
  90. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts +0 -1
  91. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs.map +1 -1
  92. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs.map +1 -1
  93. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +2 -1
  94. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -1
  95. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +1 -2
  96. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +1 -1
  97. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +2 -1
  98. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -1
  99. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs.map +1 -1
  100. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts +0 -1
  101. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs.map +1 -1
  102. package/dist/components/Auth/ResetPasswordForm/index.content.cjs.map +1 -1
  103. package/dist/components/Auth/ResetPasswordForm/index.content.mjs.map +1 -1
  104. package/dist/components/Auth/SignInForm/SignInForm.cjs +5 -4
  105. package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -1
  106. package/dist/components/Auth/SignInForm/SignInForm.d.ts +1 -2
  107. package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +1 -1
  108. package/dist/components/Auth/SignInForm/SignInForm.mjs +5 -4
  109. package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -1
  110. package/dist/components/Auth/SignInForm/SignInSchema.cjs.map +1 -1
  111. package/dist/components/Auth/SignInForm/SignInSchema.d.ts +0 -1
  112. package/dist/components/Auth/SignInForm/SignInSchema.mjs.map +1 -1
  113. package/dist/components/Auth/SignInForm/index.content.cjs.map +1 -1
  114. package/dist/components/Auth/SignInForm/index.content.mjs.map +1 -1
  115. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +4 -4
  116. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
  117. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +1 -2
  118. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -1
  119. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +4 -4
  120. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
  121. package/dist/components/Auth/SignUpForm/SignUpSchema.cjs.map +1 -1
  122. package/dist/components/Auth/SignUpForm/SignUpSchema.d.ts +0 -1
  123. package/dist/components/Auth/SignUpForm/SignUpSchema.mjs.map +1 -1
  124. package/dist/components/Auth/SignUpForm/index.content.cjs.map +1 -1
  125. package/dist/components/Auth/SignUpForm/index.content.mjs.map +1 -1
  126. package/dist/components/Auth/index.cjs +2 -4
  127. package/dist/components/Auth/index.cjs.map +1 -1
  128. package/dist/components/Auth/index.d.ts +1 -1
  129. package/dist/components/Auth/index.d.ts.map +1 -1
  130. package/dist/components/Auth/index.mjs +1 -3
  131. package/dist/components/Auth/useAuth/index.cjs +39 -0
  132. package/dist/components/Auth/useAuth/index.cjs.map +1 -0
  133. package/dist/components/Auth/useAuth/index.d.ts +24 -0
  134. package/dist/components/Auth/useAuth/index.d.ts.map +1 -0
  135. package/dist/components/Auth/useAuth/index.mjs +39 -0
  136. package/dist/components/Auth/useAuth/index.mjs.map +1 -0
  137. package/dist/components/Auth/useAuth/useCSRF.cjs +22 -0
  138. package/dist/components/Auth/useAuth/useCSRF.cjs.map +1 -0
  139. package/dist/components/Auth/useAuth/useCSRF.d.ts +5 -0
  140. package/dist/components/Auth/useAuth/useCSRF.d.ts.map +1 -0
  141. package/dist/components/Auth/useAuth/useCSRF.mjs +22 -0
  142. package/dist/components/Auth/useAuth/useCSRF.mjs.map +1 -0
  143. package/dist/components/Auth/useAuth/useOAuth2.cjs +26 -0
  144. package/dist/components/Auth/useAuth/useOAuth2.cjs.map +1 -0
  145. package/dist/components/Auth/useAuth/useOAuth2.d.ts +4 -0
  146. package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +1 -0
  147. package/dist/components/Auth/useAuth/useOAuth2.mjs +26 -0
  148. package/dist/components/Auth/useAuth/useOAuth2.mjs.map +1 -0
  149. package/dist/components/Auth/useAuth/useSession.cjs +60 -0
  150. package/dist/components/Auth/useAuth/useSession.cjs.map +1 -0
  151. package/dist/components/Auth/useAuth/useSession.d.ts +8 -0
  152. package/dist/components/Auth/useAuth/useSession.d.ts.map +1 -0
  153. package/dist/components/Auth/useAuth/useSession.mjs +60 -0
  154. package/dist/components/Auth/useAuth/useSession.mjs.map +1 -0
  155. package/dist/components/Auth/useUser/index.cjs +3 -3
  156. package/dist/components/Auth/useUser/index.cjs.map +1 -1
  157. package/dist/components/Auth/useUser/index.d.ts.map +1 -1
  158. package/dist/components/Auth/useUser/index.mjs +3 -3
  159. package/dist/components/Auth/useUser/index.mjs.map +1 -1
  160. package/dist/components/Avatar/index.d.ts +0 -1
  161. package/dist/components/Badge/index.d.ts +0 -1
  162. package/dist/components/Breadcrumb/index.d.ts +0 -1
  163. package/dist/components/Button/Button.cjs +1 -0
  164. package/dist/components/Button/Button.cjs.map +1 -1
  165. package/dist/components/Button/Button.d.ts +1 -3
  166. package/dist/components/Button/Button.d.ts.map +1 -1
  167. package/dist/components/Button/Button.mjs +1 -0
  168. package/dist/components/Button/Button.mjs.map +1 -1
  169. package/dist/components/Command/index.d.ts +9 -10
  170. package/dist/components/Command/index.d.ts.map +1 -1
  171. package/dist/components/Container/index.cjs +1 -0
  172. package/dist/components/Container/index.cjs.map +1 -1
  173. package/dist/components/Container/index.d.ts +20 -7
  174. package/dist/components/Container/index.d.ts.map +1 -1
  175. package/dist/components/Container/index.mjs +1 -0
  176. package/dist/components/Container/index.mjs.map +1 -1
  177. package/dist/components/ContentEditor/ContentEditor.d.ts +0 -1
  178. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +0 -1
  179. package/dist/components/ContentSelector/ContentSelector.d.ts +0 -1
  180. package/dist/components/CopyToClipboard/index.d.ts +0 -1
  181. package/dist/components/DictionaryEditor/DictionaryEditor.cjs +30 -24
  182. package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -1
  183. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +0 -7
  184. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -1
  185. package/dist/components/DictionaryEditor/DictionaryEditor.mjs +30 -24
  186. package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
  187. package/dist/components/DictionaryEditor/ItemLayout.cjs +1 -0
  188. package/dist/components/DictionaryEditor/ItemLayout.cjs.map +1 -1
  189. package/dist/components/DictionaryEditor/ItemLayout.d.ts +0 -1
  190. package/dist/components/DictionaryEditor/ItemLayout.d.ts.map +1 -1
  191. package/dist/components/DictionaryEditor/ItemLayout.mjs +1 -0
  192. package/dist/components/DictionaryEditor/ItemLayout.mjs.map +1 -1
  193. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +0 -1
  194. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +0 -1
  195. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +0 -1
  196. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs +7 -5
  197. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.map +1 -1
  198. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts +0 -1
  199. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +7 -5
  200. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs.map +1 -1
  201. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +0 -1
  202. package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +0 -1
  203. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +98 -19
  204. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
  205. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +1 -5
  206. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
  207. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +99 -20
  208. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
  209. package/dist/components/DictionaryEditor/useEditedContentStore.cjs +18 -20
  210. package/dist/components/DictionaryEditor/useEditedContentStore.cjs.map +1 -1
  211. package/dist/components/DictionaryEditor/useEditedContentStore.d.ts +0 -1
  212. package/dist/components/DictionaryEditor/useEditedContentStore.d.ts.map +1 -1
  213. package/dist/components/DictionaryEditor/useEditedContentStore.mjs +19 -21
  214. package/dist/components/DictionaryEditor/useEditedContentStore.mjs.map +1 -1
  215. package/dist/components/DictionaryEditor/useEditionPanelStore.d.ts +0 -1
  216. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs +46 -0
  217. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs.map +1 -0
  218. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts +18 -0
  219. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts.map +1 -0
  220. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs +46 -0
  221. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs.map +1 -0
  222. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.cjs +8 -0
  223. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.cjs.map +1 -0
  224. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.d.ts +4 -0
  225. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.d.ts.map +1 -0
  226. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.mjs +8 -0
  227. package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.mjs.map +1 -0
  228. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +10 -3
  229. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
  230. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts +0 -1
  231. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -1
  232. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +10 -3
  233. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
  234. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +8 -25
  235. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  236. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts +0 -1
  237. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
  238. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +7 -24
  239. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  240. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +0 -42
  241. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
  242. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +0 -18
  243. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
  244. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +0 -42
  245. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
  246. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs.map +1 -1
  247. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts +0 -1
  248. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts.map +1 -1
  249. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs.map +1 -1
  250. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +5 -37
  251. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  252. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts +0 -1
  253. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
  254. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +4 -36
  255. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  256. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs.map +1 -1
  257. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts +2 -3
  258. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts.map +1 -1
  259. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs.map +1 -1
  260. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +2 -49
  261. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
  262. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +0 -19
  263. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
  264. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +2 -49
  265. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
  266. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +38 -13
  267. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  268. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +0 -1
  269. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
  270. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +38 -13
  271. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  272. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +22 -6
  273. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
  274. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts +0 -1
  275. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -1
  276. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +22 -6
  277. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -1
  278. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +29 -14
  279. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -1
  280. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts +0 -1
  281. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +1 -1
  282. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +29 -14
  283. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -1
  284. package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs +1 -0
  285. package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs.map +1 -1
  286. package/dist/components/DictionaryFieldEditor/EnumKeyInput.d.ts +0 -1
  287. package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs +1 -0
  288. package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs.map +1 -1
  289. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts +0 -1
  290. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +18 -2
  291. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
  292. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts +0 -1
  293. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
  294. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +18 -2
  295. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
  296. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +18 -2
  297. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
  298. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts +0 -1
  299. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
  300. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +18 -2
  301. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
  302. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +14 -28
  303. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  304. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts +0 -1
  305. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  306. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +14 -28
  307. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  308. package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.d.ts +0 -1
  309. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +2 -23
  310. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
  311. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +0 -9
  312. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
  313. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +2 -23
  314. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
  315. package/dist/components/DictionaryFieldEditor/getIsEditableSection.d.ts +0 -1
  316. package/dist/components/DropDown/index.d.ts +0 -1
  317. package/dist/components/DropDown/types.d.ts +0 -1
  318. package/dist/components/EditableField/EditableFieldInput.cjs +12 -5
  319. package/dist/components/EditableField/EditableFieldInput.cjs.map +1 -1
  320. package/dist/components/EditableField/EditableFieldInput.d.ts +2 -4
  321. package/dist/components/EditableField/EditableFieldInput.d.ts.map +1 -1
  322. package/dist/components/EditableField/EditableFieldInput.mjs +13 -6
  323. package/dist/components/EditableField/EditableFieldInput.mjs.map +1 -1
  324. package/dist/components/EditableField/EditableFieldLayout.d.ts +0 -1
  325. package/dist/components/EditableField/EditableFieldTextArea.cjs +17 -4
  326. package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
  327. package/dist/components/EditableField/EditableFieldTextArea.d.ts +6 -3
  328. package/dist/components/EditableField/EditableFieldTextArea.d.ts.map +1 -1
  329. package/dist/components/EditableField/EditableFieldTextArea.mjs +18 -5
  330. package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
  331. package/dist/components/Flags/Flag.d.ts +0 -1
  332. package/dist/components/Footer/index.d.ts +0 -1
  333. package/dist/components/Form/Form.cjs +1 -1
  334. package/dist/components/Form/Form.d.ts +2 -1
  335. package/dist/components/Form/Form.d.ts.map +1 -1
  336. package/dist/components/Form/Form.mjs +1 -1
  337. package/dist/components/Form/FormBase.cjs +4 -1
  338. package/dist/components/Form/FormBase.cjs.map +1 -1
  339. package/dist/components/Form/FormBase.d.ts +1 -2
  340. package/dist/components/Form/FormBase.d.ts.map +1 -1
  341. package/dist/components/Form/FormBase.mjs +4 -1
  342. package/dist/components/Form/FormBase.mjs.map +1 -1
  343. package/dist/components/Form/FormDescription.d.ts +0 -1
  344. package/dist/components/Form/FormField.d.ts +0 -1
  345. package/dist/components/Form/FormItem.d.ts +0 -1
  346. package/dist/components/Form/FormMessage.d.ts +0 -1
  347. package/dist/components/Form/elements/CheckboxElement.cjs +10 -0
  348. package/dist/components/Form/elements/CheckboxElement.cjs.map +1 -0
  349. package/dist/components/Form/elements/CheckboxElement.d.ts +10 -0
  350. package/dist/components/Form/elements/CheckboxElement.d.ts.map +1 -0
  351. package/dist/components/Form/elements/CheckboxElement.mjs +10 -0
  352. package/dist/components/Form/elements/CheckboxElement.mjs.map +1 -0
  353. package/dist/components/Form/elements/EditableFieldInputElement.cjs +1 -1
  354. package/dist/components/Form/elements/EditableFieldInputElement.d.ts +0 -1
  355. package/dist/components/Form/elements/EditableFieldInputElement.mjs +1 -1
  356. package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs +1 -1
  357. package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts +0 -1
  358. package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs +1 -1
  359. package/dist/components/Form/elements/FormElement.cjs +1 -1
  360. package/dist/components/Form/elements/FormElement.d.ts +0 -1
  361. package/dist/components/Form/elements/FormElement.mjs +1 -1
  362. package/dist/components/Form/elements/FormElementWrapper.d.ts +0 -1
  363. package/dist/components/Form/elements/InputElement.cjs +2 -1
  364. package/dist/components/Form/elements/InputElement.cjs.map +1 -1
  365. package/dist/components/Form/elements/InputElement.d.ts +2 -3
  366. package/dist/components/Form/elements/InputElement.d.ts.map +1 -1
  367. package/dist/components/Form/elements/InputElement.mjs +2 -1
  368. package/dist/components/Form/elements/InputElement.mjs.map +1 -1
  369. package/dist/components/Form/elements/InputPasswordElement.cjs +2 -1
  370. package/dist/components/Form/elements/InputPasswordElement.cjs.map +1 -1
  371. package/dist/components/Form/elements/InputPasswordElement.d.ts +2 -3
  372. package/dist/components/Form/elements/InputPasswordElement.d.ts.map +1 -1
  373. package/dist/components/Form/elements/InputPasswordElement.mjs +2 -1
  374. package/dist/components/Form/elements/InputPasswordElement.mjs.map +1 -1
  375. package/dist/components/Form/elements/MultiselectElement.cjs +1 -1
  376. package/dist/components/Form/elements/MultiselectElement.d.ts +0 -1
  377. package/dist/components/Form/elements/MultiselectElement.mjs +1 -1
  378. package/dist/components/Form/elements/SelectElement.cjs +1 -1
  379. package/dist/components/Form/elements/SelectElement.d.ts +0 -1
  380. package/dist/components/Form/elements/SelectElement.mjs +1 -1
  381. package/dist/components/Form/elements/SwitchSelectorElement.cjs +1 -1
  382. package/dist/components/Form/elements/SwitchSelectorElement.d.ts +0 -1
  383. package/dist/components/Form/elements/SwitchSelectorElement.mjs +1 -1
  384. package/dist/components/Form/elements/TextAreaElement.cjs +1 -1
  385. package/dist/components/Form/elements/TextAreaElement.d.ts +0 -1
  386. package/dist/components/Form/elements/TextAreaElement.mjs +1 -1
  387. package/dist/components/Form/elements/index.cjs +1 -1
  388. package/dist/components/Form/elements/index.mjs +1 -1
  389. package/dist/components/Form/index.cjs +1 -1
  390. package/dist/components/Form/index.mjs +1 -1
  391. package/dist/components/Form/layout/FormItemLayout.cjs +1 -1
  392. package/dist/components/Form/layout/FormItemLayout.d.ts +1 -2
  393. package/dist/components/Form/layout/FormItemLayout.d.ts.map +1 -1
  394. package/dist/components/Form/layout/FormItemLayout.mjs +1 -1
  395. package/dist/components/Form/layout/FormLabelLayout.d.ts +0 -1
  396. package/dist/components/Form/layout/RequiredStar.d.ts +0 -1
  397. package/dist/components/Form/layout/index.cjs +1 -1
  398. package/dist/components/Form/layout/index.mjs +1 -1
  399. package/dist/components/Headers/index.d.ts +0 -1
  400. package/dist/components/IDE/CodeRender.cjs.map +1 -1
  401. package/dist/components/IDE/CodeRender.d.ts +0 -1
  402. package/dist/components/IDE/CodeRender.mjs.map +1 -1
  403. package/dist/components/IDE/FileList.d.ts +0 -1
  404. package/dist/components/IDE/FileTree.d.ts +0 -1
  405. package/dist/components/IDE/IDE.d.ts +0 -1
  406. package/dist/components/IDE/MarkDownRender.d.ts +0 -1
  407. package/dist/components/InformationTag/index.d.ts +0 -1
  408. package/dist/components/Input/Checkbox.cjs +80 -0
  409. package/dist/components/Input/Checkbox.cjs.map +1 -0
  410. package/dist/components/Input/Checkbox.d.ts +14 -0
  411. package/dist/components/Input/Checkbox.d.ts.map +1 -0
  412. package/dist/components/Input/Checkbox.mjs +80 -0
  413. package/dist/components/Input/Checkbox.mjs.map +1 -0
  414. package/dist/components/Input/Input.cjs +8 -2
  415. package/dist/components/Input/Input.cjs.map +1 -1
  416. package/dist/components/Input/Input.d.ts +1 -1
  417. package/dist/components/Input/Input.d.ts.map +1 -1
  418. package/dist/components/Input/Input.mjs +8 -2
  419. package/dist/components/Input/Input.mjs.map +1 -1
  420. package/dist/components/Input/InputPassword.d.ts +0 -1
  421. package/dist/components/Input/index.cjs +3 -0
  422. package/dist/components/Input/index.cjs.map +1 -1
  423. package/dist/components/Input/index.d.ts +1 -0
  424. package/dist/components/Input/index.d.ts.map +1 -1
  425. package/dist/components/Input/index.mjs +3 -0
  426. package/dist/components/Input/index.mjs.map +1 -1
  427. package/dist/components/Label/index.d.ts +0 -1
  428. package/dist/components/Link/Link.cjs +7 -2
  429. package/dist/components/Link/Link.cjs.map +1 -1
  430. package/dist/components/Link/Link.d.ts +2 -2
  431. package/dist/components/Link/Link.d.ts.map +1 -1
  432. package/dist/components/Link/Link.mjs +7 -2
  433. package/dist/components/Link/Link.mjs.map +1 -1
  434. package/dist/components/Loader/index.d.ts +0 -1
  435. package/dist/components/Loader/spinner.d.ts +0 -1
  436. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +0 -1
  437. package/dist/components/Logo/LogoCircle.d.ts +0 -1
  438. package/dist/components/Logo/LogoNoFrame.d.ts +0 -1
  439. package/dist/components/Logo/LogoSquare.d.ts +0 -1
  440. package/dist/components/Logo/LogoSquircle.d.ts +0 -1
  441. package/dist/components/Logo/LogoTextOnly.d.ts +0 -1
  442. package/dist/components/Logo/LogoWithTextBelowCircle.d.ts +0 -1
  443. package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts +0 -1
  444. package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts +0 -1
  445. package/dist/components/Logo/LogoWithTextCircle.d.ts +0 -1
  446. package/dist/components/Logo/LogoWithTextNoFrame.d.ts +0 -1
  447. package/dist/components/Logo/LogoWithTextSquircle.d.ts +0 -1
  448. package/dist/components/Logo/index.d.ts +0 -1
  449. package/dist/components/MarkDownRender/index.d.ts +0 -1
  450. package/dist/components/MaxHeightSmoother/index.d.ts +0 -1
  451. package/dist/components/MaxWidthSmoother/index.d.ts +0 -1
  452. package/dist/components/Modal/Modal.cjs +22 -16
  453. package/dist/components/Modal/Modal.cjs.map +1 -1
  454. package/dist/components/Modal/Modal.d.ts +3 -3
  455. package/dist/components/Modal/Modal.d.ts.map +1 -1
  456. package/dist/components/Modal/Modal.mjs +22 -16
  457. package/dist/components/Modal/Modal.mjs.map +1 -1
  458. package/dist/components/Navbar/Burger.d.ts +0 -1
  459. package/dist/components/Navbar/DesktopNavbar.cjs +10 -26
  460. package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -1
  461. package/dist/components/Navbar/DesktopNavbar.d.ts +6 -6
  462. package/dist/components/Navbar/DesktopNavbar.d.ts.map +1 -1
  463. package/dist/components/Navbar/DesktopNavbar.mjs +10 -26
  464. package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -1
  465. package/dist/components/Navbar/MobileNavbar.cjs +6 -58
  466. package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
  467. package/dist/components/Navbar/MobileNavbar.d.ts +6 -7
  468. package/dist/components/Navbar/MobileNavbar.d.ts.map +1 -1
  469. package/dist/components/Navbar/MobileNavbar.mjs +6 -58
  470. package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
  471. package/dist/components/Navbar/index.cjs +7 -3
  472. package/dist/components/Navbar/index.cjs.map +1 -1
  473. package/dist/components/Navbar/index.d.ts +9 -15
  474. package/dist/components/Navbar/index.d.ts.map +1 -1
  475. package/dist/components/Navbar/index.mjs +7 -3
  476. package/dist/components/Navbar/index.mjs.map +1 -1
  477. package/dist/components/Pattern/DotPattern.d.ts +0 -1
  478. package/dist/components/Pattern/GridPattern.d.ts +0 -1
  479. package/dist/components/Pattern/SpotLight.d.ts +0 -1
  480. package/dist/components/Popover/index.d.ts +0 -1
  481. package/dist/components/PressableSpan/PressableSpan.d.ts +0 -1
  482. package/dist/components/ProfileDropDown/index.d.ts +0 -1
  483. package/dist/components/RightDrawer/RightDrawer.d.ts +0 -1
  484. package/dist/components/Select/Multiselect.d.ts +2 -3
  485. package/dist/components/Select/Multiselect.d.ts.map +1 -1
  486. package/dist/components/SwitchSelector/index.cjs +3 -1
  487. package/dist/components/SwitchSelector/index.cjs.map +1 -1
  488. package/dist/components/SwitchSelector/index.d.ts +0 -1
  489. package/dist/components/SwitchSelector/index.mjs +3 -1
  490. package/dist/components/SwitchSelector/index.mjs.map +1 -1
  491. package/dist/components/TabSelector/TabSelector.cjs +15 -10
  492. package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
  493. package/dist/components/TabSelector/TabSelector.d.ts +1 -2
  494. package/dist/components/TabSelector/TabSelector.d.ts.map +1 -1
  495. package/dist/components/TabSelector/TabSelector.mjs +15 -10
  496. package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
  497. package/dist/components/Tag/index.cjs +79 -0
  498. package/dist/components/Tag/index.cjs.map +1 -0
  499. package/dist/components/Tag/index.d.ts +12 -0
  500. package/dist/components/Tag/index.d.ts.map +1 -0
  501. package/dist/components/Tag/index.mjs +79 -0
  502. package/dist/components/Tag/index.mjs.map +1 -0
  503. package/dist/components/TextArea/AutoSizeTextArea.d.ts +0 -1
  504. package/dist/components/TextArea/TextArea.cjs +1 -0
  505. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  506. package/dist/components/TextArea/TextArea.d.ts +0 -1
  507. package/dist/components/TextArea/TextArea.mjs +1 -0
  508. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  509. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts +0 -1
  510. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts +0 -1
  511. package/dist/components/Toaster/useToast.d.ts +0 -1
  512. package/dist/components/WithResizer/index.d.ts +0 -1
  513. package/dist/components/index.cjs +8 -7
  514. package/dist/components/index.cjs.map +1 -1
  515. package/dist/components/index.d.ts +1 -1
  516. package/dist/components/index.d.ts.map +1 -1
  517. package/dist/components/index.mjs +7 -6
  518. package/dist/components/index.mjs.map +1 -1
  519. package/dist/hooks/index.cjs +4 -1
  520. package/dist/hooks/index.cjs.map +1 -1
  521. package/dist/hooks/index.d.ts +1 -0
  522. package/dist/hooks/index.d.ts.map +1 -1
  523. package/dist/hooks/index.mjs +5 -2
  524. package/dist/hooks/index.mjs.map +1 -1
  525. package/dist/hooks/intlayerAPIHooks.cjs +258 -114
  526. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  527. package/dist/hooks/intlayerAPIHooks.d.ts +43 -39
  528. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  529. package/dist/hooks/intlayerAPIHooks.mjs +259 -115
  530. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  531. package/dist/hooks/useAsync/useAsync.cjs +142 -108
  532. package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
  533. package/dist/hooks/useAsync/useAsync.d.ts +0 -2
  534. package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
  535. package/dist/hooks/useAsync/useAsync.mjs +143 -109
  536. package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
  537. package/dist/hooks/useAsync/useAsyncStateStore.cjs +50 -112
  538. package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -1
  539. package/dist/hooks/useAsync/useAsyncStateStore.d.ts +3 -9
  540. package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -1
  541. package/dist/hooks/useAsync/useAsyncStateStore.mjs +50 -112
  542. package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -1
  543. package/dist/hooks/useAsync/useAsyncWrapper.d.ts +0 -1
  544. package/dist/hooks/useAsync/useProxyState.d.ts +3 -0
  545. package/dist/hooks/useAsync/useProxyState.d.ts.map +1 -0
  546. package/dist/hooks/useGetAllDictionaries.d.ts +0 -1
  547. package/dist/hooks/useIntlayerAPI.cjs +6 -5
  548. package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
  549. package/dist/hooks/useIntlayerAPI.d.ts +51 -45
  550. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  551. package/dist/hooks/useIntlayerAPI.mjs +5 -4
  552. package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
  553. package/dist/hooks/useItemSelector.cjs +11 -2
  554. package/dist/hooks/useItemSelector.cjs.map +1 -1
  555. package/dist/hooks/useItemSelector.d.ts +3 -3
  556. package/dist/hooks/useItemSelector.d.ts.map +1 -1
  557. package/dist/hooks/useItemSelector.mjs +11 -2
  558. package/dist/hooks/useItemSelector.mjs.map +1 -1
  559. package/dist/hooks/usePersistedStore.cjs +22 -0
  560. package/dist/hooks/usePersistedStore.cjs.map +1 -0
  561. package/dist/hooks/usePersistedStore.d.ts +2 -0
  562. package/dist/hooks/usePersistedStore.d.ts.map +1 -0
  563. package/dist/hooks/usePersistedStore.mjs +22 -0
  564. package/dist/hooks/usePersistedStore.mjs.map +1 -0
  565. package/dist/hooks/usePersistenceStore.cjs +22 -0
  566. package/dist/hooks/usePersistenceStore.cjs.map +1 -0
  567. package/dist/hooks/usePersistenceStore.d.ts +2 -0
  568. package/dist/hooks/usePersistenceStore.d.ts.map +1 -0
  569. package/dist/hooks/usePersistenceStore.mjs +22 -0
  570. package/dist/hooks/usePersistenceStore.mjs.map +1 -0
  571. package/dist/index-BUDsCMdX.cjs +204 -0
  572. package/dist/index-BUDsCMdX.cjs.map +1 -0
  573. package/dist/index-C09rI9kw.js +205 -0
  574. package/dist/index-C09rI9kw.js.map +1 -0
  575. package/dist/libs/intlayer-api/auth.cjs +14 -2
  576. package/dist/libs/intlayer-api/auth.cjs.map +1 -1
  577. package/dist/libs/intlayer-api/auth.d.ts +7 -4
  578. package/dist/libs/intlayer-api/auth.d.ts.map +1 -1
  579. package/dist/libs/intlayer-api/auth.mjs +14 -2
  580. package/dist/libs/intlayer-api/auth.mjs.map +1 -1
  581. package/dist/libs/intlayer-api/dictionary.d.ts +0 -1
  582. package/dist/libs/intlayer-api/fetcher.cjs +4 -3
  583. package/dist/libs/intlayer-api/fetcher.cjs.map +1 -1
  584. package/dist/libs/intlayer-api/fetcher.d.ts.map +1 -1
  585. package/dist/libs/intlayer-api/fetcher.mjs +4 -3
  586. package/dist/libs/intlayer-api/fetcher.mjs.map +1 -1
  587. package/dist/libs/intlayer-api/index.cjs +3 -1
  588. package/dist/libs/intlayer-api/index.cjs.map +1 -1
  589. package/dist/libs/intlayer-api/index.d.ts +12 -3
  590. package/dist/libs/intlayer-api/index.d.ts.map +1 -1
  591. package/dist/libs/intlayer-api/index.mjs +3 -1
  592. package/dist/libs/intlayer-api/index.mjs.map +1 -1
  593. package/dist/libs/intlayer-api/organization.d.ts +0 -1
  594. package/dist/libs/intlayer-api/project.d.ts +0 -1
  595. package/dist/libs/intlayer-api/stripe.cjs +22 -0
  596. package/dist/libs/intlayer-api/stripe.cjs.map +1 -0
  597. package/dist/libs/intlayer-api/stripe.d.ts +6 -0
  598. package/dist/libs/intlayer-api/stripe.d.ts.map +1 -0
  599. package/dist/libs/intlayer-api/stripe.mjs +22 -0
  600. package/dist/libs/intlayer-api/stripe.mjs.map +1 -0
  601. package/dist/libs/intlayer-api/user.d.ts +0 -1
  602. package/dist/stripe-BsI0lJWz.js +22 -0
  603. package/dist/stripe-BsI0lJWz.js.map +1 -0
  604. package/dist/stripe-C-u5RvGh.js +22 -0
  605. package/dist/stripe-C-u5RvGh.js.map +1 -0
  606. package/dist/stripe-CF_E65Vu.js +22 -0
  607. package/dist/stripe-CF_E65Vu.js.map +1 -0
  608. package/dist/stripe-CpGvfq6T.cjs +21 -0
  609. package/dist/stripe-CpGvfq6T.cjs.map +1 -0
  610. package/dist/stripe-DEv4DjAL.cjs +21 -0
  611. package/dist/stripe-DEv4DjAL.cjs.map +1 -0
  612. package/dist/stripe-DuG0uaEn.cjs +21 -0
  613. package/dist/stripe-DuG0uaEn.cjs.map +1 -0
  614. package/dist/tailwind.css +1 -1
  615. package/dist/useProxyState-D5GLrY2y.js +20 -0
  616. package/dist/useProxyState-D5GLrY2y.js.map +1 -0
  617. package/dist/useProxyState-DewdF3no.cjs +19 -0
  618. package/dist/useProxyState-DewdF3no.cjs.map +1 -0
  619. package/dist/utils/cn.d.ts +0 -1
  620. package/dist/utils/dictionary.cjs +37 -1
  621. package/dist/utils/dictionary.cjs.map +1 -1
  622. package/dist/utils/dictionary.d.ts +1 -1
  623. package/dist/utils/dictionary.d.ts.map +1 -1
  624. package/dist/utils/dictionary.mjs +38 -2
  625. package/dist/utils/dictionary.mjs.map +1 -1
  626. package/dist/validDictionaryChangeButtons.content-BK9QaXPm.cjs +66 -0
  627. package/dist/validDictionaryChangeButtons.content-BK9QaXPm.cjs.map +1 -0
  628. package/dist/validDictionaryChangeButtons.content-CAAscqJI.cjs +66 -0
  629. package/dist/validDictionaryChangeButtons.content-CAAscqJI.cjs.map +1 -0
  630. package/dist/validDictionaryChangeButtons.content-D7AvoBdl.js +67 -0
  631. package/dist/validDictionaryChangeButtons.content-D7AvoBdl.js.map +1 -0
  632. package/dist/validDictionaryChangeButtons.content-DQwoUNCC.cjs +45 -0
  633. package/dist/validDictionaryChangeButtons.content-DQwoUNCC.cjs.map +1 -0
  634. package/dist/validDictionaryChangeButtons.content-DQxPoIe6.js +67 -0
  635. package/dist/validDictionaryChangeButtons.content-DQxPoIe6.js.map +1 -0
  636. package/dist/validDictionaryChangeButtons.content-JUcjGdBx.cjs +66 -0
  637. package/dist/validDictionaryChangeButtons.content-JUcjGdBx.cjs.map +1 -0
  638. package/dist/validDictionaryChangeButtons.content-ejY3-sbG.js +67 -0
  639. package/dist/validDictionaryChangeButtons.content-ejY3-sbG.js.map +1 -0
  640. package/dist/validDictionaryChangeButtons.content-iyT0lKy7.js +46 -0
  641. package/dist/validDictionaryChangeButtons.content-iyT0lKy7.js.map +1 -0
  642. package/dist/validDictionaryChangeButtons.content-u4qShrQh.cjs +66 -0
  643. package/dist/validDictionaryChangeButtons.content-u4qShrQh.cjs.map +1 -0
  644. package/dist/validDictionaryChangeButtons.content-y4up9NU8.js +67 -0
  645. package/dist/validDictionaryChangeButtons.content-y4up9NU8.js.map +1 -0
  646. package/dist/zod-BV4nCGJE.js.map +1 -1
  647. package/dist/zod-DSrtTSD_.cjs.map +1 -1
  648. package/package.json +87 -56
@@ -1,206 +1,349 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const components_Auth_AuthProvider_index = require("../components/Auth/AuthProvider/index.cjs");
4
+ const components_Auth_useAuth_index = require("../components/Auth/useAuth/index.cjs");
5
+ require("../components/Toaster/Toast.cjs");
6
+ const components_Toaster_useToast = require("../components/Toaster/useToast.cjs");
7
+ require("../jsx-runtime-DvCoRj5u.cjs");
5
8
  const hooks_useAsync_useAsync = require("./useAsync/useAsync.cjs");
6
9
  const hooks_useIntlayerAPI = require("./useIntlayerAPI.cjs");
7
- const useAsyncWithAuth = (key, asyncFunction, options) => {
8
- const { csrfToken, oAuth2AccessToken } = components_Auth_AuthProvider_index.useAuth();
9
- return hooks_useAsync_useAsync.useAsync(key, asyncFunction, {
10
+ var define_process_env_default = {};
11
+ const useErrorHandling = (options) => {
12
+ const { toast } = components_Toaster_useToast.useToast();
13
+ return {
10
14
  ...options,
11
- enable: Boolean(csrfToken || oAuth2AccessToken)
12
- });
15
+ onError: (errorMessage) => {
16
+ let error;
17
+ try {
18
+ error = JSON.parse(errorMessage);
19
+ } catch (e) {
20
+ console.error(e);
21
+ error = errorMessage;
22
+ }
23
+ [error].flatMap((error2) => error2).forEach(
24
+ (error2) => toast({
25
+ title: (define_process_env_default.NODE_ENV === "production" ? error2.title : error2.code) ?? "Error",
26
+ description: error2.message ?? errorMessage ?? "An error occurred",
27
+ variant: "error"
28
+ })
29
+ );
30
+ options.onError?.(errorMessage);
31
+ },
32
+ onSuccess: (data) => {
33
+ if (data.message)
34
+ toast({
35
+ title: data.message,
36
+ description: data.description,
37
+ variant: "success"
38
+ });
39
+ options.onSuccess?.(data);
40
+ }
41
+ };
13
42
  };
14
- const useLogin = () => useAsyncWithAuth("login", hooks_useIntlayerAPI.useIntlayerAPI().auth.login, {
15
- invalidateQueries: ["getSession"]
16
- });
17
- const useRegister = () => useAsyncWithAuth("register", hooks_useIntlayerAPI.useIntlayerAPI().auth.register, {
18
- invalidateQueries: ["getSession"]
43
+ const useAuthEnable = (options, { requireUser, requireProject, requireOrganization } = {}) => {
44
+ const { csrfToken, oAuth2AccessToken, session } = components_Auth_useAuth_index.useAuth();
45
+ const user = session ? session.user : oAuth2AccessToken?.user;
46
+ const organization = session ? session.organization : oAuth2AccessToken?.organization;
47
+ const project = session ? session.project : oAuth2AccessToken?.project;
48
+ const isUserEnabled = requireUser ? Boolean(user) : true;
49
+ const isProjectEnabled = requireProject ? Boolean(project) : true;
50
+ const isOrganizationEnabled = requireOrganization ? Boolean(organization) : true;
51
+ const isCSRFEnabled = Boolean(csrfToken) || // If auth using session, csrf token is not required
52
+ !session && Boolean(oAuth2AccessToken);
53
+ const isEnabled = isUserEnabled && isProjectEnabled && isOrganizationEnabled && isCSRFEnabled;
54
+ return {
55
+ ...options,
56
+ enable: isEnabled
57
+ };
58
+ };
59
+ const useAppAsync = (key, asyncFunction, options, authOptions) => {
60
+ const optionsWithAuth = useAuthEnable(options ?? {}, authOptions);
61
+ const optionsWithErrorHandling = useErrorHandling(optionsWithAuth);
62
+ return hooks_useAsync_useAsync.useAsync(key, asyncFunction, optionsWithErrorHandling);
63
+ };
64
+ const useLogin = (args) => useAppAsync("login", hooks_useIntlayerAPI.useIntlayerAuth().auth.login, {
65
+ invalidateQueries: ["getSession"],
66
+ ...args
19
67
  });
20
- const useLogout = () => useAsyncWithAuth("logout", hooks_useIntlayerAPI.useIntlayerAPI().auth.logout, {
21
- invalidateQueries: ["getSession"]
68
+ const useRegister = (args) => useAppAsync("register", hooks_useIntlayerAPI.useIntlayerAuth().auth.register, {
69
+ invalidateQueries: ["getSession"],
70
+ ...args
22
71
  });
23
- const useChangePassword = () => useAsyncWithAuth("changePassword", hooks_useIntlayerAPI.useIntlayerAPI().auth.changePassword);
24
- const useAskResetPassword = () => useAsyncWithAuth("askResetPassword", hooks_useIntlayerAPI.useIntlayerAPI().auth.askResetPassword);
25
- const useResetPassword = () => useAsyncWithAuth("resetPassword", hooks_useIntlayerAPI.useIntlayerAPI().auth.resetPassword);
26
- const useVerifyEmail = () => useAsyncWithAuth("verifyEmail", hooks_useIntlayerAPI.useIntlayerAPI().auth.verifyEmail);
27
- const useGetUserByAccount = () => useAsyncWithAuth("getUserByAccount", hooks_useIntlayerAPI.useIntlayerAPI().user.getUserByAccount);
28
- const useGetUsers = () => useAsyncWithAuth("getUsers", hooks_useIntlayerAPI.useIntlayerAPI().user.getUsers, {
29
- cache: true,
30
- store: true,
31
- retryLimit: 3,
32
- autoFetch: true,
33
- revalidateTime: 5 * 60 * 1e3
34
- // 5 minutes
72
+ const useLogout = (args) => useAppAsync("logout", hooks_useIntlayerAPI.useIntlayerAuth().auth.logout, {
73
+ invalidateQueries: ["getSession"],
74
+ ...args
35
75
  });
36
- const useCreateUser = () => useAsyncWithAuth("createUser", hooks_useIntlayerAPI.useIntlayerAPI().user.createUser, {
37
- invalidateQueries: ["getUsers"]
76
+ const useChangePassword = (args) => useAppAsync("changePassword", hooks_useIntlayerAPI.useIntlayerAuth().auth.changePassword, args);
77
+ const useAskResetPassword = (args) => useAppAsync(
78
+ "askResetPassword",
79
+ hooks_useIntlayerAPI.useIntlayerAuth().auth.askResetPassword,
80
+ args
81
+ );
82
+ const useResetPassword = (args) => useAppAsync("resetPassword", hooks_useIntlayerAPI.useIntlayerAuth().auth.resetPassword, args);
83
+ const useCheckIfUserHasPassword = (args) => useAppAsync(
84
+ "checkIfUserHasPassword",
85
+ hooks_useIntlayerAPI.useIntlayerAuth().auth.checkIfUserHasPassword,
86
+ args,
87
+ {
88
+ requireUser: true
89
+ }
90
+ );
91
+ const useVerifyEmail = (args) => useAppAsync("verifyEmail", hooks_useIntlayerAPI.useIntlayerAuth().auth.verifyEmail, args);
92
+ const useGetUserByAccount = (args) => useAppAsync(
93
+ "getUserByAccount",
94
+ hooks_useIntlayerAPI.useIntlayerAuth().user.getUserByAccount,
95
+ args
96
+ );
97
+ const useGetUsers = (args) => useAppAsync(
98
+ "getUsers",
99
+ hooks_useIntlayerAPI.useIntlayerAuth().user.getUsers,
100
+ {
101
+ cache: true,
102
+ store: true,
103
+ retryLimit: 3,
104
+ autoFetch: true,
105
+ revalidateTime: 5 * 60 * 1e3,
106
+ // 5 minutes
107
+ ...args
108
+ },
109
+ {
110
+ requireUser: true
111
+ }
112
+ );
113
+ const useCreateUser = (args) => useAppAsync("createUser", hooks_useIntlayerAPI.useIntlayerAuth().user.createUser, {
114
+ invalidateQueries: ["getUsers"],
115
+ ...args
38
116
  });
39
- const useUpdateUser = () => useAsyncWithAuth("updateUser", hooks_useIntlayerAPI.useIntlayerAPI().user.updateUser, {
40
- invalidateQueries: ["getSession"]
117
+ const useUpdateUser = (args) => useAppAsync("updateUser", hooks_useIntlayerAPI.useIntlayerAuth().user.updateUser, {
118
+ invalidateQueries: ["getSession"],
119
+ ...args
41
120
  });
42
- const useDeleteUser = () => useAsyncWithAuth("deleteUser", hooks_useIntlayerAPI.useIntlayerAPI().user.deleteUser, {
43
- invalidateQueries: ["getUsers"]
121
+ const useDeleteUser = (args) => useAppAsync("deleteUser", hooks_useIntlayerAPI.useIntlayerAuth().user.deleteUser, {
122
+ invalidateQueries: ["getUsers"],
123
+ ...args
44
124
  });
45
- const useGetOrganizations = () => useAsyncWithAuth(
125
+ const useGetOrganizations = (args) => useAppAsync(
46
126
  "getOrganizations",
47
- hooks_useIntlayerAPI.useIntlayerAPI().organization.getOrganizations,
127
+ hooks_useIntlayerAPI.useIntlayerAuth().organization.getOrganizations,
48
128
  {
49
129
  cache: true,
50
130
  store: true,
51
131
  retryLimit: 3,
52
132
  autoFetch: true,
53
133
  revalidation: true,
54
- revalidateTime: 5 * 60 * 1e3
134
+ revalidateTime: 5 * 60 * 1e3,
55
135
  // 5 minutes
136
+ ...args
137
+ },
138
+ {
139
+ requireUser: true
56
140
  }
57
141
  );
58
- const useAddOrganization = () => useAsyncWithAuth(
142
+ const useAddOrganization = (args) => useAppAsync(
59
143
  "addOrganization",
60
- hooks_useIntlayerAPI.useIntlayerAPI().organization.addOrganization,
144
+ hooks_useIntlayerAPI.useIntlayerAuth().organization.addOrganization,
61
145
  {
62
- invalidateQueries: ["getOrganizations"]
146
+ invalidateQueries: ["getOrganizations"],
147
+ ...args
63
148
  }
64
149
  );
65
- const useUpdateOrganization = () => useAsyncWithAuth(
150
+ const useUpdateOrganization = (args) => useAppAsync(
66
151
  "updateOrganization",
67
- hooks_useIntlayerAPI.useIntlayerAPI().organization.updateOrganization,
152
+ hooks_useIntlayerAPI.useIntlayerAuth().organization.updateOrganization,
68
153
  {
69
- invalidateQueries: ["getSession"]
154
+ invalidateQueries: ["getSession"],
155
+ ...args
70
156
  }
71
157
  );
72
- const useUpdateOrganizationMembers = () => useAsyncWithAuth(
158
+ const useUpdateOrganizationMembers = (args) => useAppAsync(
73
159
  "updateOrganizationMembers",
74
- hooks_useIntlayerAPI.useIntlayerAPI().organization.updateOrganizationMembers,
160
+ hooks_useIntlayerAPI.useIntlayerAuth().organization.updateOrganizationMembers,
75
161
  {
76
- invalidateQueries: ["getOrganizations"]
162
+ invalidateQueries: ["getOrganizations"],
163
+ ...args
77
164
  }
78
165
  );
79
- const useAddOrganizationMember = () => useAsyncWithAuth(
166
+ const useAddOrganizationMember = (args) => useAppAsync(
80
167
  "addOrganizationMember",
81
- hooks_useIntlayerAPI.useIntlayerAPI().organization.addOrganizationMember,
168
+ hooks_useIntlayerAPI.useIntlayerAuth().organization.addOrganizationMember,
82
169
  {
83
- invalidateQueries: ["getOrganizations"]
170
+ invalidateQueries: ["getOrganizations"],
171
+ ...args
84
172
  }
85
173
  );
86
- const useDeleteOrganization = () => useAsyncWithAuth(
174
+ const useDeleteOrganization = (args) => useAppAsync(
87
175
  "deleteOrganization",
88
- hooks_useIntlayerAPI.useIntlayerAPI().organization.deleteOrganization,
176
+ hooks_useIntlayerAPI.useIntlayerAuth().organization.deleteOrganization,
89
177
  {
90
- invalidateQueries: ["getOrganizations"]
178
+ invalidateQueries: ["getOrganizations"],
179
+ ...args
91
180
  }
92
181
  );
93
- const useSelectOrganization = () => useAsyncWithAuth(
182
+ const useSelectOrganization = (args) => useAppAsync(
94
183
  "selectOrganization",
95
- hooks_useIntlayerAPI.useIntlayerAPI().organization.selectOrganization,
184
+ hooks_useIntlayerAPI.useIntlayerAuth().organization.selectOrganization,
96
185
  {
97
- invalidateQueries: ["getSession"]
186
+ invalidateQueries: ["getSession"],
187
+ ...args
98
188
  }
99
189
  );
100
- const useUnselectOrganization = () => useAsyncWithAuth(
190
+ const useUnselectOrganization = (args) => useAppAsync(
101
191
  "unselectOrganization",
102
- hooks_useIntlayerAPI.useIntlayerAPI().organization.unselectOrganization,
192
+ hooks_useIntlayerAPI.useIntlayerAuth().organization.unselectOrganization,
103
193
  {
104
- invalidateQueries: ["getSession"]
194
+ invalidateQueries: ["getSession"],
195
+ ...args
105
196
  }
106
197
  );
107
- const useGetProjects = () => useAsyncWithAuth("getProjects", hooks_useIntlayerAPI.useIntlayerAPI().project.getProjects, {
108
- cache: true,
109
- store: true,
110
- retryLimit: 3,
111
- autoFetch: true,
112
- revalidation: true,
113
- revalidateTime: 5 * 60 * 1e3
114
- // 5 minutes
115
- });
116
- const useAddProject = () => useAsyncWithAuth("addProject", hooks_useIntlayerAPI.useIntlayerAPI().project.addProject, {
117
- invalidateQueries: ["getProjects"]
118
- });
119
- const useUpdateProject = () => useAsyncWithAuth("updateProject", hooks_useIntlayerAPI.useIntlayerAPI().project.updateProject, {
120
- invalidateQueries: ["getSession"]
121
- });
122
- const useUpdateProjectMembers = () => useAsyncWithAuth(
123
- "updateProjectMembers",
124
- hooks_useIntlayerAPI.useIntlayerAPI().project.updateProjectMembers,
198
+ const useGetProjects = (args) => useAppAsync(
199
+ "getProjects",
200
+ hooks_useIntlayerAPI.useIntlayerAuth().project.getProjects,
125
201
  {
126
- invalidateQueries: ["getSession"]
202
+ cache: true,
203
+ store: true,
204
+ retryLimit: 3,
205
+ autoFetch: true,
206
+ revalidation: true,
207
+ revalidateTime: 5 * 60 * 1e3,
208
+ // 5 minutes
209
+ ...args
210
+ },
211
+ {
212
+ requireUser: true,
213
+ requireOrganization: true
127
214
  }
128
215
  );
129
- const useDeleteProject = () => useAsyncWithAuth("deleteProject", hooks_useIntlayerAPI.useIntlayerAPI().project.deleteProject, {
130
- invalidateQueries: ["getProjects"]
216
+ const useAddProject = (args) => useAppAsync("addProject", hooks_useIntlayerAPI.useIntlayerAuth().project.addProject, {
217
+ invalidateQueries: ["getProjects"],
218
+ ...args
131
219
  });
132
- const useSelectProject = () => useAsyncWithAuth("selectProject", hooks_useIntlayerAPI.useIntlayerAPI().project.selectProject, {
133
- invalidateQueries: ["getSession"]
220
+ const useUpdateProject = (args) => useAppAsync("updateProject", hooks_useIntlayerAPI.useIntlayerAuth().project.updateProject, {
221
+ invalidateQueries: ["getSession"],
222
+ ...args
134
223
  });
135
- const useUnselectProject = () => useAsyncWithAuth(
136
- "unselectProject",
137
- hooks_useIntlayerAPI.useIntlayerAPI().project.unselectProject,
224
+ const useUpdateProjectMembers = (args) => useAppAsync(
225
+ "updateProjectMembers",
226
+ hooks_useIntlayerAPI.useIntlayerAuth().project.updateProjectMembers,
138
227
  {
139
- invalidateQueries: ["getSession"]
228
+ invalidateQueries: ["getSession"],
229
+ ...args
140
230
  }
141
231
  );
142
- const useAddNewAccessKey = () => useAsyncWithAuth("addNewAccessKey", hooks_useIntlayerAPI.useIntlayerAPI().project.addNewAccessKey);
143
- const useDeleteAccessKey = () => useAsyncWithAuth("deleteAccessKey", hooks_useIntlayerAPI.useIntlayerAPI().project.deleteAccessKey);
144
- const useRefreshAccessKey = () => useAsyncWithAuth(
145
- "refreshAccessKey",
146
- hooks_useIntlayerAPI.useIntlayerAPI().project.refreshAccessKey
147
- );
148
- const useGetDictionaries = () => useAsyncWithAuth(
232
+ const useDeleteProject = (args) => useAppAsync("deleteProject", hooks_useIntlayerAPI.useIntlayerAuth().project.deleteProject, {
233
+ invalidateQueries: ["getProjects"],
234
+ ...args
235
+ });
236
+ const useSelectProject = (args) => useAppAsync("selectProject", hooks_useIntlayerAPI.useIntlayerAuth().project.selectProject, {
237
+ invalidateQueries: ["getSession"],
238
+ ...args
239
+ });
240
+ const useUnselectProject = (args) => useAppAsync("unselectProject", hooks_useIntlayerAPI.useIntlayerAuth().project.unselectProject, {
241
+ invalidateQueries: ["getSession"],
242
+ ...args
243
+ });
244
+ const useAddNewAccessKey = (args) => useAppAsync("addNewAccessKey", hooks_useIntlayerAPI.useIntlayerAuth().project.addNewAccessKey, {
245
+ invalidateQueries: ["getSession"],
246
+ ...args
247
+ });
248
+ const useDeleteAccessKey = (args) => useAppAsync("deleteAccessKey", hooks_useIntlayerAPI.useIntlayerAuth().project.deleteAccessKey, {
249
+ invalidateQueries: ["getSession"],
250
+ ...args
251
+ });
252
+ const useRefreshAccessKey = (args) => useAppAsync("refreshAccessKey", hooks_useIntlayerAPI.useIntlayerAuth().project.refreshAccessKey, {
253
+ invalidateQueries: ["getSession"],
254
+ ...args
255
+ });
256
+ const useGetDictionaries = (args) => useAppAsync(
149
257
  "getDictionaries",
150
- hooks_useIntlayerAPI.useIntlayerAPI().dictionary.getDictionaries,
258
+ hooks_useIntlayerAPI.useIntlayerAuth().dictionary.getDictionaries,
151
259
  {
152
260
  cache: true,
153
261
  store: true,
154
262
  retryLimit: 3,
155
263
  autoFetch: true,
156
264
  revalidation: true,
157
- revalidateTime: 5 * 60 * 1e3
265
+ revalidateTime: 5 * 60 * 1e3,
158
266
  // 5 minutes
267
+ ...args
268
+ },
269
+ {
270
+ requireUser: true,
271
+ requireOrganization: true,
272
+ requireProject: true
159
273
  }
160
274
  );
161
- const useGetDictionariesKeys = () => useAsyncWithAuth(
275
+ const useGetDictionariesKeys = (args) => useAppAsync(
162
276
  "getDictionariesKeys",
163
- hooks_useIntlayerAPI.useIntlayerAPI().dictionary.getDictionariesKeys,
277
+ hooks_useIntlayerAPI.useIntlayerAuth().dictionary.getDictionariesKeys,
164
278
  {
165
279
  cache: true,
166
280
  store: true,
167
281
  retryLimit: 3,
168
282
  autoFetch: true,
169
283
  revalidation: true,
170
- revalidateTime: 5 * 60 * 1e3
284
+ revalidateTime: 5 * 60 * 1e3,
285
+ // 5 minutes
286
+ ...args
287
+ },
288
+ {
289
+ requireUser: true,
290
+ requireOrganization: true,
291
+ requireProject: true
292
+ }
293
+ );
294
+ const useGetDictionary = (args) => useAppAsync(
295
+ "getDictionary",
296
+ hooks_useIntlayerAPI.useIntlayerAuth().dictionary.getDictionary,
297
+ {
298
+ cache: true,
299
+ store: true,
300
+ retryLimit: 3,
301
+ revalidation: true,
302
+ revalidateTime: 5 * 60 * 1e3,
171
303
  // 5 minutes
304
+ ...args
305
+ },
306
+ {
307
+ requireUser: true,
308
+ requireOrganization: true,
309
+ requireProject: true
172
310
  }
173
311
  );
174
- const useGetDictionary = () => useAsyncWithAuth("getDictionary", hooks_useIntlayerAPI.useIntlayerAPI().dictionary.getDictionary, {
175
- cache: true,
176
- store: true,
177
- retryLimit: 3,
178
- revalidation: true,
179
- revalidateTime: 5 * 60 * 1e3
180
- // 5 minutes
181
- });
182
- const useAddDictionary = () => useAsyncWithAuth("addDictionary", hooks_useIntlayerAPI.useIntlayerAPI().dictionary.addDictionary, {
183
- invalidateQueries: ["getDictionaries", "getDictionariesKeys"]
312
+ const useAddDictionary = (args) => useAppAsync("addDictionary", hooks_useIntlayerAPI.useIntlayerAuth().dictionary.addDictionary, {
313
+ invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
314
+ ...args
184
315
  });
185
- const usePushDictionaries = () => useAsyncWithAuth(
316
+ const usePushDictionaries = (args) => useAppAsync(
186
317
  "pushDictionaries",
187
- hooks_useIntlayerAPI.useIntlayerAPI().dictionary.pushDictionaries,
318
+ hooks_useIntlayerAPI.useIntlayerAuth().dictionary.pushDictionaries,
188
319
  {
189
- invalidateQueries: ["getDictionaries", "getDictionariesKeys"]
320
+ invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
321
+ ...args
190
322
  }
191
323
  );
192
- const useUpdateDictionary = () => useAsyncWithAuth(
324
+ const useUpdateDictionary = (args) => useAppAsync(
193
325
  "updateDictionary",
194
- hooks_useIntlayerAPI.useIntlayerAPI().dictionary.updateDictionary,
326
+ hooks_useIntlayerAPI.useIntlayerAuth().dictionary.updateDictionary,
195
327
  {
196
- invalidateQueries: ["getDictionaries"]
328
+ invalidateQueries: ["getDictionaries"],
329
+ ...args
197
330
  }
198
331
  );
199
- const useDeleteDictionary = () => useAsyncWithAuth(
332
+ const useDeleteDictionary = (args) => useAppAsync(
200
333
  "deleteDictionary",
201
- hooks_useIntlayerAPI.useIntlayerAPI().dictionary.deleteDictionary,
334
+ hooks_useIntlayerAPI.useIntlayerAuth().dictionary.deleteDictionary,
335
+ {
336
+ invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
337
+ ...args
338
+ }
339
+ );
340
+ const useGetSubscription = (args) => useAppAsync(
341
+ "getSubscription",
342
+ hooks_useIntlayerAPI.useIntlayerAuth().stripe.getSubscription,
343
+ { ...args, cache: true },
202
344
  {
203
- invalidateQueries: ["getDictionaries", "getDictionariesKeys"]
345
+ requireUser: true,
346
+ requireOrganization: true
204
347
  }
205
348
  );
206
349
  exports.useAddDictionary = useAddDictionary;
@@ -209,8 +352,8 @@ exports.useAddOrganization = useAddOrganization;
209
352
  exports.useAddOrganizationMember = useAddOrganizationMember;
210
353
  exports.useAddProject = useAddProject;
211
354
  exports.useAskResetPassword = useAskResetPassword;
212
- exports.useAsyncWithAuth = useAsyncWithAuth;
213
355
  exports.useChangePassword = useChangePassword;
356
+ exports.useCheckIfUserHasPassword = useCheckIfUserHasPassword;
214
357
  exports.useCreateUser = useCreateUser;
215
358
  exports.useDeleteAccessKey = useDeleteAccessKey;
216
359
  exports.useDeleteDictionary = useDeleteDictionary;
@@ -222,6 +365,7 @@ exports.useGetDictionariesKeys = useGetDictionariesKeys;
222
365
  exports.useGetDictionary = useGetDictionary;
223
366
  exports.useGetOrganizations = useGetOrganizations;
224
367
  exports.useGetProjects = useGetProjects;
368
+ exports.useGetSubscription = useGetSubscription;
225
369
  exports.useGetUserByAccount = useGetUserByAccount;
226
370
  exports.useGetUsers = useGetUsers;
227
371
  exports.useLogin = useLogin;
@@ -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 { useAuth } from '../components/Auth/AuthProvider/index';\nimport { useAsync, UseAsyncOptions } from './useAsync/useAsync';\nimport { useIntlayerAPI } from './useIntlayerAPI';\n\nexport const useAsyncWithAuth = <\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 { csrfToken, oAuth2AccessToken } = useAuth();\n\n return useAsync(key, asyncFunction, {\n ...options,\n enable: Boolean(csrfToken || oAuth2AccessToken),\n });\n};\n\n/**\n * Auth\n */\n\nexport const useLogin = () =>\n useAsyncWithAuth('login', useIntlayerAPI().auth.login, {\n invalidateQueries: ['getSession'],\n });\n\nexport const useRegister = () =>\n useAsyncWithAuth('register', useIntlayerAPI().auth.register, {\n invalidateQueries: ['getSession'],\n });\nexport const useLogout = () =>\n useAsyncWithAuth('logout', useIntlayerAPI().auth.logout, {\n invalidateQueries: ['getSession'],\n });\nexport const useChangePassword = () =>\n useAsyncWithAuth('changePassword', useIntlayerAPI().auth.changePassword);\nexport const useAskResetPassword = () =>\n useAsyncWithAuth('askResetPassword', useIntlayerAPI().auth.askResetPassword);\nexport const useResetPassword = () =>\n useAsyncWithAuth('resetPassword', useIntlayerAPI().auth.resetPassword);\nexport const useVerifyEmail = () =>\n useAsyncWithAuth('verifyEmail', useIntlayerAPI().auth.verifyEmail);\n\nexport const useGetUserByAccount = () =>\n useAsyncWithAuth('getUserByAccount', useIntlayerAPI().user.getUserByAccount);\n\n/**\n * User\n */\n\nexport const useGetUsers = () =>\n useAsyncWithAuth('getUsers', useIntlayerAPI().user.getUsers, {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n });\nexport const useCreateUser = () =>\n useAsyncWithAuth('createUser', useIntlayerAPI().user.createUser, {\n invalidateQueries: ['getUsers'],\n });\nexport const useUpdateUser = () =>\n useAsyncWithAuth('updateUser', useIntlayerAPI().user.updateUser, {\n invalidateQueries: ['getSession'],\n });\nexport const useDeleteUser = () =>\n useAsyncWithAuth('deleteUser', useIntlayerAPI().user.deleteUser, {\n invalidateQueries: ['getUsers'],\n });\n\n/**\n * Organization\n */\n\nexport const useGetOrganizations = () =>\n useAsyncWithAuth(\n 'getOrganizations',\n useIntlayerAPI().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 }\n );\n\nexport const useAddOrganization = () =>\n useAsyncWithAuth(\n 'addOrganization',\n useIntlayerAPI().organization.addOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n }\n );\nexport const useUpdateOrganization = () =>\n useAsyncWithAuth(\n 'updateOrganization',\n useIntlayerAPI().organization.updateOrganization,\n {\n invalidateQueries: ['getSession'],\n }\n );\nexport const useUpdateOrganizationMembers = () =>\n useAsyncWithAuth(\n 'updateOrganizationMembers',\n useIntlayerAPI().organization.updateOrganizationMembers,\n {\n invalidateQueries: ['getOrganizations'],\n }\n );\nexport const useAddOrganizationMember = () =>\n useAsyncWithAuth(\n 'addOrganizationMember',\n useIntlayerAPI().organization.addOrganizationMember,\n {\n invalidateQueries: ['getOrganizations'],\n }\n );\nexport const useDeleteOrganization = () =>\n useAsyncWithAuth(\n 'deleteOrganization',\n useIntlayerAPI().organization.deleteOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n }\n );\nexport const useSelectOrganization = () =>\n useAsyncWithAuth(\n 'selectOrganization',\n useIntlayerAPI().organization.selectOrganization,\n {\n invalidateQueries: ['getSession'],\n }\n );\nexport const useUnselectOrganization = () =>\n useAsyncWithAuth(\n 'unselectOrganization',\n useIntlayerAPI().organization.unselectOrganization,\n {\n invalidateQueries: ['getSession'],\n }\n );\n\n/**\n * Project\n */\n\nexport const useGetProjects = () =>\n useAsyncWithAuth('getProjects', useIntlayerAPI().project.getProjects, {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n });\nexport const useAddProject = () =>\n useAsyncWithAuth('addProject', useIntlayerAPI().project.addProject, {\n invalidateQueries: ['getProjects'],\n });\nexport const useUpdateProject = () =>\n useAsyncWithAuth('updateProject', useIntlayerAPI().project.updateProject, {\n invalidateQueries: ['getSession'],\n });\nexport const useUpdateProjectMembers = () =>\n useAsyncWithAuth(\n 'updateProjectMembers',\n useIntlayerAPI().project.updateProjectMembers,\n {\n invalidateQueries: ['getSession'],\n }\n );\nexport const useDeleteProject = () =>\n useAsyncWithAuth('deleteProject', useIntlayerAPI().project.deleteProject, {\n invalidateQueries: ['getProjects'],\n });\nexport const useSelectProject = () =>\n useAsyncWithAuth('selectProject', useIntlayerAPI().project.selectProject, {\n invalidateQueries: ['getSession'],\n });\nexport const useUnselectProject = () =>\n useAsyncWithAuth(\n 'unselectProject',\n useIntlayerAPI().project.unselectProject,\n {\n invalidateQueries: ['getSession'],\n }\n );\nexport const useAddNewAccessKey = () =>\n useAsyncWithAuth('addNewAccessKey', useIntlayerAPI().project.addNewAccessKey);\nexport const useDeleteAccessKey = () =>\n useAsyncWithAuth('deleteAccessKey', useIntlayerAPI().project.deleteAccessKey);\nexport const useRefreshAccessKey = () =>\n useAsyncWithAuth(\n 'refreshAccessKey',\n useIntlayerAPI().project.refreshAccessKey\n );\n\n/**\n * Dictionary\n */\n\nexport const useGetDictionaries = () =>\n useAsyncWithAuth(\n 'getDictionaries',\n useIntlayerAPI().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 }\n );\n\nexport const useGetDictionariesKeys = () =>\n useAsyncWithAuth(\n 'getDictionariesKeys',\n useIntlayerAPI().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 }\n );\n\nexport const useGetDictionary = () =>\n useAsyncWithAuth('getDictionary', useIntlayerAPI().dictionary.getDictionary, {\n cache: true,\n store: true,\n retryLimit: 3,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n });\nexport const useAddDictionary = () =>\n useAsyncWithAuth('addDictionary', useIntlayerAPI().dictionary.addDictionary, {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n });\n\nexport const usePushDictionaries = () =>\n useAsyncWithAuth(\n 'pushDictionaries',\n useIntlayerAPI().dictionary.pushDictionaries,\n {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n }\n );\nexport const useUpdateDictionary = () =>\n useAsyncWithAuth(\n 'updateDictionary',\n useIntlayerAPI().dictionary.updateDictionary,\n {\n invalidateQueries: ['getDictionaries'],\n }\n );\nexport const useDeleteDictionary = () =>\n useAsyncWithAuth(\n 'deleteDictionary',\n useIntlayerAPI().dictionary.deleteDictionary,\n {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n }\n );\n"],"names":["useAuth","useAsync","useIntlayerAPI"],"mappings":";;;;;;AAOO,MAAM,mBAAmB,CAI9B,KACA,eACA,YACG;AACH,QAAM,EAAE,WAAW,kBAAkB,IAAIA,mCAAQ,QAAA;AAE1C,SAAAC,wBAAA,SAAS,KAAK,eAAe;AAAA,IAClC,GAAG;AAAA,IACH,QAAQ,QAAQ,aAAa,iBAAiB;AAAA,EAAA,CAC/C;AACH;AAMO,MAAM,WAAW,MACtB,iBAAiB,SAASC,qBAAAA,eAAe,EAAE,KAAK,OAAO;AAAA,EACrD,mBAAmB,CAAC,YAAY;AAClC,CAAC;AAEI,MAAM,cAAc,MACzB,iBAAiB,YAAYA,qBAAAA,eAAe,EAAE,KAAK,UAAU;AAAA,EAC3D,mBAAmB,CAAC,YAAY;AAClC,CAAC;AACI,MAAM,YAAY,MACvB,iBAAiB,UAAUA,qBAAAA,eAAe,EAAE,KAAK,QAAQ;AAAA,EACvD,mBAAmB,CAAC,YAAY;AAClC,CAAC;AACI,MAAM,oBAAoB,MAC/B,iBAAiB,kBAAkBA,qBAAAA,eAAe,EAAE,KAAK,cAAc;AAClE,MAAM,sBAAsB,MACjC,iBAAiB,oBAAoBA,qBAAAA,eAAe,EAAE,KAAK,gBAAgB;AACtE,MAAM,mBAAmB,MAC9B,iBAAiB,iBAAiBA,qBAAAA,eAAe,EAAE,KAAK,aAAa;AAChE,MAAM,iBAAiB,MAC5B,iBAAiB,eAAeA,qBAAAA,eAAe,EA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AK;AAAA;AAC3B,CAAC;AACI,MAAM,mBAAmB,MAC9B,iBAAiB,iBAAiBA,qBAAAA,eAAe,EAAE,WAAW,eAAe;AAAA,EAC3E,mBAAmB,CAAC,mBAAmB,qBAAqB;AAC9D,CAAC;AAEI,MAAM,sBAAsB,MACjC;AAAA,EACE;AAAA,EACAA,qBAAA,eAAA,EAAiB,WAAW;AAAA,EAC5B;AAAA,IACE,mBAAmB,CAAC,mBAAmB,qBAAqB;AAAA,EAC9D;AACF;AACK,MAAM,sBAAsB,MACjC;AAAA,EACE;AAAA,EACAA,qBAAA,eAAA,EAAiB,WAAW;AAAA,EAC5B;AAAA,IACE,mBAAmB,CAAC,iBAAiB;AAAA,EACvC;AACF;AACK,MAAM,sBAAsB,MACjC;AAAA,EACE;AAAA,EACAA,qBAAA,eAAA,EAAiB,WAAW;AAAA,EAC5B;AAAA,IACE,mBAAmB,CAAC,mBAAmB,qBAAqB;AAAA,EAC9D;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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 'src/libs';\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 { csrfToken, oAuth2AccessToken, session } = useAuth();\n\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 isUserEnabled && isProjectEnabled && isOrganizationEnabled && 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\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: ['getDictionaries', 'getDictionariesKeys'],\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'],\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: ['getDictionaries', 'getDictionariesKeys'],\n ...args,\n }\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, cache: true },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\n"],"names":["useToast","error","useAuth","useAsync","useIntlayerAuth"],"mappings":";;;;;;;;;;AAYA,MAAM,mBAAmB,CAAiC,YAAkB;AACpE,QAAA,EAAE,UAAUA,4BAAAA;AAEX,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,MACV;AAIA,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,QAAA,CACV;AAAA,MAAA;AAEL,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,IAC1B;AAAA,EAAA;AAEJ;AAWA,MAAM,gBAAgB,CACpB,SACA,EAAE,aAAa,gBAAgB,oBAA2C,IAAA,OACpE;AACN,QAAM,EAAE,WAAW,mBAAmB,YAAYC,8BAAQ,QAAA;AAE1D,QAAM,OAAO,UAAU,QAAQ,OAAO,mBAAmB;AAEzD,QAAM,eAAe,UACjB,QAAQ,eACR,mBAAmB;AAEvB,QAAM,UAAU,UAAU,QAAQ,UAAU,mBAAmB;AAE/D,QAAM,gBAAgB,cAAc,QAAQ,IAAI,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