@intlayer/design-system 5.5.11 → 5.7.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 (447) hide show
  1. package/README.md +1 -1
  2. package/dist/.vite/manifest.json +126 -570
  3. package/dist/components/Command/index.d.ts +5 -5
  4. package/dist/components/Container/index.cjs +2 -1
  5. package/dist/components/Container/index.cjs.map +1 -1
  6. package/dist/components/Container/index.d.ts +2 -3
  7. package/dist/components/Container/index.d.ts.map +1 -1
  8. package/dist/components/Container/index.mjs +3 -2
  9. package/dist/components/Container/index.mjs.map +1 -1
  10. package/dist/components/ContentEditor/ContentEditorTextArea.cjs +2 -27
  11. package/dist/components/ContentEditor/ContentEditorTextArea.cjs.map +1 -1
  12. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +1 -1
  13. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts.map +1 -1
  14. package/dist/components/ContentEditor/ContentEditorTextArea.mjs +1 -26
  15. package/dist/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
  16. package/dist/components/{IDE/CopyButton.cjs → CopyButton/index.cjs} +6 -5
  17. package/dist/components/CopyButton/index.cjs.map +1 -0
  18. package/dist/components/{IDE/CopyButton.d.ts → CopyButton/index.d.ts} +3 -2
  19. package/dist/components/CopyButton/index.d.ts.map +1 -0
  20. package/dist/components/{IDE/CopyButton.mjs → CopyButton/index.mjs} +6 -5
  21. package/dist/components/CopyButton/index.mjs.map +1 -0
  22. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +2 -0
  23. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs.map +1 -1
  24. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +2 -0
  25. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
  26. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +9 -28
  27. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  28. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +8 -27
  29. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  30. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +1 -1
  31. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +1 -1
  32. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +10 -26
  33. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  34. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +9 -25
  35. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  36. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +1 -1
  37. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +1 -1
  38. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +2 -2
  39. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +2 -2
  40. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +7 -20
  41. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  42. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +6 -19
  43. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  44. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +2 -2
  45. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +2 -2
  46. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +2 -2
  47. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +2 -2
  48. package/dist/components/EditableField/EditableFieldTextArea.cjs +2 -2
  49. package/dist/components/EditableField/EditableFieldTextArea.mjs +2 -2
  50. package/dist/components/Form/elements/FormElementWrapper.cjs +1 -1
  51. package/dist/components/Form/elements/FormElementWrapper.mjs +1 -1
  52. package/dist/components/IDE/Code.cjs +3 -3
  53. package/dist/components/IDE/Code.cjs.map +1 -1
  54. package/dist/components/IDE/Code.d.ts +1 -1
  55. package/dist/components/IDE/Code.d.ts.map +1 -1
  56. package/dist/components/IDE/Code.mjs +3 -3
  57. package/dist/components/IDE/Code.mjs.map +1 -1
  58. package/dist/components/IDE/CodeContext.cjs +2 -2
  59. package/dist/components/IDE/CodeContext.mjs +2 -2
  60. package/dist/components/IDE/CopyCode.cjs +28 -0
  61. package/dist/components/IDE/CopyCode.cjs.map +1 -0
  62. package/dist/components/IDE/CopyCode.d.ts +7 -0
  63. package/dist/components/IDE/CopyCode.d.ts.map +1 -0
  64. package/dist/components/IDE/CopyCode.mjs +28 -0
  65. package/dist/components/IDE/CopyCode.mjs.map +1 -0
  66. package/dist/components/IDE/MonacoCode.cjs +2 -2
  67. package/dist/components/IDE/MonacoCode.cjs.map +1 -1
  68. package/dist/components/IDE/MonacoCode.mjs +1 -1
  69. package/dist/components/IDE/MonacoCode.mjs.map +1 -1
  70. package/dist/components/IDE/code.content.cjs +39 -0
  71. package/dist/components/IDE/code.content.cjs.map +1 -0
  72. package/dist/components/{Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts → IDE/code.content.d.ts} +23 -56
  73. package/dist/components/IDE/code.content.d.ts.map +1 -0
  74. package/dist/components/IDE/code.content.mjs +40 -0
  75. package/dist/components/IDE/code.content.mjs.map +1 -0
  76. package/dist/components/IDE/copyCode.content.cjs +39 -0
  77. package/dist/components/IDE/copyCode.content.cjs.map +1 -0
  78. package/dist/components/IDE/copyCode.content.d.ts +73 -0
  79. package/dist/components/IDE/copyCode.content.d.ts.map +1 -0
  80. package/dist/components/IDE/copyCode.content.mjs +40 -0
  81. package/dist/components/IDE/copyCode.content.mjs.map +1 -0
  82. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +2 -2
  83. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +2 -2
  84. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +2 -2
  85. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +2 -2
  86. package/dist/components/Modal/Modal.cjs +3 -3
  87. package/dist/components/Modal/Modal.mjs +3 -3
  88. package/dist/components/Navbar/MobileNavbar.cjs +2 -2
  89. package/dist/components/Navbar/MobileNavbar.mjs +2 -2
  90. package/dist/components/Navbar/index.cjs +3 -3
  91. package/dist/components/Navbar/index.mjs +3 -3
  92. package/dist/components/Pattern/GridPattern.cjs +45 -48
  93. package/dist/components/Pattern/GridPattern.cjs.map +1 -1
  94. package/dist/components/Pattern/GridPattern.d.ts.map +1 -1
  95. package/dist/components/Pattern/GridPattern.mjs +45 -48
  96. package/dist/components/Pattern/GridPattern.mjs.map +1 -1
  97. package/dist/components/Popover/index.cjs +59 -15
  98. package/dist/components/Popover/index.cjs.map +1 -1
  99. package/dist/components/Popover/index.d.ts +32 -6
  100. package/dist/components/Popover/index.d.ts.map +1 -1
  101. package/dist/components/Popover/index.mjs +60 -16
  102. package/dist/components/Popover/index.mjs.map +1 -1
  103. package/dist/components/SocialNetworks/index.cjs +1 -1
  104. package/dist/components/SocialNetworks/index.cjs.map +1 -1
  105. package/dist/components/SocialNetworks/index.mjs +1 -1
  106. package/dist/components/SocialNetworks/index.mjs.map +1 -1
  107. package/dist/components/SwitchSelector/index.cjs +2 -2
  108. package/dist/components/SwitchSelector/index.mjs +2 -2
  109. package/dist/components/TabSelector/TabSelector.cjs +2 -2
  110. package/dist/components/TabSelector/TabSelector.mjs +2 -2
  111. package/dist/components/TextArea/AutocompleteTextArea.cjs +90 -13
  112. package/dist/components/TextArea/AutocompleteTextArea.cjs.map +1 -1
  113. package/dist/components/TextArea/AutocompleteTextArea.d.ts.map +1 -1
  114. package/dist/components/TextArea/AutocompleteTextArea.mjs +92 -15
  115. package/dist/components/TextArea/AutocompleteTextArea.mjs.map +1 -1
  116. package/dist/components/index.cjs +3 -38
  117. package/dist/components/index.cjs.map +1 -1
  118. package/dist/components/index.d.ts +1 -2
  119. package/dist/components/index.d.ts.map +1 -1
  120. package/dist/components/index.mjs +4 -39
  121. package/dist/components/index.mjs.map +1 -1
  122. package/dist/hooks/index.cjs +8 -1
  123. package/dist/hooks/index.cjs.map +1 -1
  124. package/dist/hooks/index.d.ts +2 -0
  125. package/dist/hooks/index.d.ts.map +1 -1
  126. package/dist/hooks/index.mjs +9 -2
  127. package/dist/hooks/index.mjs.map +1 -1
  128. package/dist/hooks/intlayerAPIHooks.cjs +29 -31
  129. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  130. package/dist/hooks/intlayerAPIHooks.d.ts +678 -10
  131. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  132. package/dist/hooks/intlayerAPIHooks.mjs +29 -31
  133. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  134. package/dist/hooks/useAsync/useAsync.cjs +0 -1
  135. package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
  136. package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
  137. package/dist/hooks/useAsync/useAsync.mjs +0 -1
  138. package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
  139. package/dist/hooks/useAuth/index.cjs +9 -0
  140. package/dist/{components/Auth/AuthenticationBarrier → hooks/useAuth}/index.cjs.map +1 -1
  141. package/dist/hooks/useAuth/index.d.ts +4 -0
  142. package/dist/hooks/useAuth/index.d.ts.map +1 -0
  143. package/dist/hooks/useAuth/index.mjs +9 -0
  144. package/dist/{components/Auth/ExternalsLoginButtons → hooks/useAuth}/index.mjs.map +1 -1
  145. package/dist/hooks/useAuth/useAuth.cjs +25 -0
  146. package/dist/hooks/useAuth/useAuth.cjs.map +1 -0
  147. package/dist/{components/Auth/useAuth/index.d.ts → hooks/useAuth/useAuth.d.ts} +3 -13
  148. package/dist/hooks/useAuth/useAuth.d.ts.map +1 -0
  149. package/dist/{components/Auth/useAuth/index.mjs → hooks/useAuth/useAuth.mjs} +2 -8
  150. package/dist/hooks/useAuth/useAuth.mjs.map +1 -0
  151. package/dist/{components/Auth → hooks}/useAuth/useOAuth2.cjs +3 -3
  152. package/dist/hooks/useAuth/useOAuth2.cjs.map +1 -0
  153. package/dist/{components/Auth → hooks}/useAuth/useOAuth2.d.ts +1 -1
  154. package/dist/hooks/useAuth/useOAuth2.d.ts.map +1 -0
  155. package/dist/{components/Auth → hooks}/useAuth/useOAuth2.mjs +4 -4
  156. package/dist/hooks/useAuth/useOAuth2.mjs.map +1 -0
  157. package/dist/{components/Auth → hooks}/useAuth/useSession.cjs +6 -25
  158. package/dist/hooks/useAuth/useSession.cjs.map +1 -0
  159. package/dist/{components/Auth → hooks}/useAuth/useSession.d.ts +3 -3
  160. package/dist/hooks/useAuth/useSession.d.ts.map +1 -0
  161. package/dist/hooks/useAuth/useSession.mjs +47 -0
  162. package/dist/hooks/useAuth/useSession.mjs.map +1 -0
  163. package/dist/hooks/useIntlayerAPI.cjs +5 -4
  164. package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
  165. package/dist/hooks/useIntlayerAPI.mjs +5 -4
  166. package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
  167. package/dist/{components/Auth → hooks}/useUser/index.cjs +7 -5
  168. package/dist/hooks/useUser/index.cjs.map +1 -0
  169. package/dist/hooks/useUser/index.d.ts +8 -0
  170. package/dist/hooks/useUser/index.d.ts.map +1 -0
  171. package/dist/{components/Auth → hooks}/useUser/index.mjs +6 -4
  172. package/dist/hooks/useUser/index.mjs.map +1 -0
  173. package/dist/{schemas-itjzX6bG.js → schemas-BIuxHDyZ.js} +3 -7
  174. package/dist/{schemas-itjzX6bG.js.map → schemas-BIuxHDyZ.js.map} +1 -1
  175. package/dist/{schemas-DlCjM5d_.cjs → schemas-Q6C7ZNs3.cjs} +3 -7
  176. package/dist/{schemas-DlCjM5d_.cjs.map → schemas-Q6C7ZNs3.cjs.map} +1 -1
  177. package/dist/tailwind.css +1 -1
  178. package/package.json +18 -18
  179. package/dist/components/Auth/AuthModal/index.cjs +0 -106
  180. package/dist/components/Auth/AuthModal/index.cjs.map +0 -1
  181. package/dist/components/Auth/AuthModal/index.d.ts +0 -20
  182. package/dist/components/Auth/AuthModal/index.d.ts.map +0 -1
  183. package/dist/components/Auth/AuthModal/index.mjs +0 -106
  184. package/dist/components/Auth/AuthModal/index.mjs.map +0 -1
  185. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +0 -36
  186. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs.map +0 -1
  187. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts +0 -5
  188. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts.map +0 -1
  189. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +0 -36
  190. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs.map +0 -1
  191. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs +0 -22
  192. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs.map +0 -1
  193. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts +0 -8
  194. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts.map +0 -1
  195. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs +0 -22
  196. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs.map +0 -1
  197. package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs +0 -15
  198. package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs.map +0 -1
  199. package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts +0 -4
  200. package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts.map +0 -1
  201. package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs +0 -15
  202. package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs.map +0 -1
  203. package/dist/components/Auth/AuthenticationBarrier/index.cjs +0 -7
  204. package/dist/components/Auth/AuthenticationBarrier/index.d.ts +0 -23
  205. package/dist/components/Auth/AuthenticationBarrier/index.d.ts.map +0 -1
  206. package/dist/components/Auth/AuthenticationBarrier/index.mjs +0 -7
  207. package/dist/components/Auth/AuthenticationBarrier/index.mjs.map +0 -1
  208. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +0 -95
  209. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +0 -1
  210. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +0 -9
  211. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +0 -1
  212. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +0 -95
  213. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +0 -1
  214. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.cjs +0 -138
  215. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.cjs.map +0 -1
  216. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts +0 -278
  217. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts.map +0 -1
  218. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.mjs +0 -138
  219. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.mjs.map +0 -1
  220. package/dist/components/Auth/ChangePasswordForm/index.cjs +0 -7
  221. package/dist/components/Auth/ChangePasswordForm/index.cjs.map +0 -1
  222. package/dist/components/Auth/ChangePasswordForm/index.d.ts +0 -3
  223. package/dist/components/Auth/ChangePasswordForm/index.d.ts.map +0 -1
  224. package/dist/components/Auth/ChangePasswordForm/index.mjs +0 -7
  225. package/dist/components/Auth/ChangePasswordForm/index.mjs.map +0 -1
  226. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs +0 -34
  227. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs.map +0 -1
  228. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.cjs +0 -131
  229. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.cjs.map +0 -1
  230. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts +0 -271
  231. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts.map +0 -1
  232. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.mjs +0 -131
  233. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.mjs.map +0 -1
  234. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.d.ts +0 -8
  235. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.d.ts.map +0 -1
  236. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs +0 -34
  237. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs.map +0 -1
  238. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.cjs +0 -81
  239. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.cjs.map +0 -1
  240. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.d.ts +0 -9
  241. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.d.ts.map +0 -1
  242. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.mjs +0 -81
  243. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.mjs.map +0 -1
  244. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.cjs +0 -106
  245. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.cjs.map +0 -1
  246. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.d.ts +0 -210
  247. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.d.ts.map +0 -1
  248. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.mjs +0 -106
  249. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.mjs.map +0 -1
  250. package/dist/components/Auth/DefineNewPasswordForm/index.cjs +0 -7
  251. package/dist/components/Auth/DefineNewPasswordForm/index.cjs.map +0 -1
  252. package/dist/components/Auth/DefineNewPasswordForm/index.d.ts +0 -3
  253. package/dist/components/Auth/DefineNewPasswordForm/index.d.ts.map +0 -1
  254. package/dist/components/Auth/DefineNewPasswordForm/index.mjs +0 -7
  255. package/dist/components/Auth/DefineNewPasswordForm/index.mjs.map +0 -1
  256. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.cjs +0 -29
  257. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.cjs.map +0 -1
  258. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.cjs +0 -101
  259. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.cjs.map +0 -1
  260. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.d.ts +0 -205
  261. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.d.ts.map +0 -1
  262. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.mjs +0 -101
  263. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.mjs.map +0 -1
  264. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.d.ts +0 -7
  265. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.d.ts.map +0 -1
  266. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.mjs +0 -29
  267. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.mjs.map +0 -1
  268. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +0 -81
  269. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +0 -1
  270. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts +0 -9
  271. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +0 -1
  272. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +0 -81
  273. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +0 -1
  274. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs +0 -15
  275. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs.map +0 -1
  276. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts +0 -3
  277. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts.map +0 -1
  278. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs +0 -15
  279. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs.map +0 -1
  280. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs +0 -23
  281. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs.map +0 -1
  282. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts +0 -3
  283. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts.map +0 -1
  284. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs +0 -23
  285. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs.map +0 -1
  286. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs +0 -90
  287. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs.map +0 -1
  288. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts +0 -176
  289. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts.map +0 -1
  290. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs +0 -90
  291. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs.map +0 -1
  292. package/dist/components/Auth/ExternalsLoginButtons/index.cjs +0 -7
  293. package/dist/components/Auth/ExternalsLoginButtons/index.cjs.map +0 -1
  294. package/dist/components/Auth/ExternalsLoginButtons/index.d.ts +0 -2
  295. package/dist/components/Auth/ExternalsLoginButtons/index.d.ts.map +0 -1
  296. package/dist/components/Auth/ExternalsLoginButtons/index.mjs +0 -7
  297. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +0 -113
  298. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +0 -1
  299. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +0 -11
  300. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +0 -1
  301. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +0 -113
  302. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +0 -1
  303. package/dist/components/Auth/ResetPasswordForm/index.cjs +0 -7
  304. package/dist/components/Auth/ResetPasswordForm/index.cjs.map +0 -1
  305. package/dist/components/Auth/ResetPasswordForm/index.d.ts +0 -3
  306. package/dist/components/Auth/ResetPasswordForm/index.d.ts.map +0 -1
  307. package/dist/components/Auth/ResetPasswordForm/index.mjs +0 -7
  308. package/dist/components/Auth/ResetPasswordForm/index.mjs.map +0 -1
  309. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.cjs +0 -123
  310. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.cjs.map +0 -1
  311. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts +0 -245
  312. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts.map +0 -1
  313. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.mjs +0 -123
  314. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.mjs.map +0 -1
  315. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs +0 -15
  316. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs.map +0 -1
  317. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.cjs +0 -56
  318. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.cjs.map +0 -1
  319. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts.map +0 -1
  320. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.mjs +0 -56
  321. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.mjs.map +0 -1
  322. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.d.ts +0 -6
  323. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.d.ts.map +0 -1
  324. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs +0 -15
  325. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs.map +0 -1
  326. package/dist/components/Auth/SignInForm/SignInForm.cjs +0 -105
  327. package/dist/components/Auth/SignInForm/SignInForm.cjs.map +0 -1
  328. package/dist/components/Auth/SignInForm/SignInForm.d.ts +0 -11
  329. package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +0 -1
  330. package/dist/components/Auth/SignInForm/SignInForm.mjs +0 -105
  331. package/dist/components/Auth/SignInForm/SignInForm.mjs.map +0 -1
  332. package/dist/components/Auth/SignInForm/index.cjs +0 -7
  333. package/dist/components/Auth/SignInForm/index.cjs.map +0 -1
  334. package/dist/components/Auth/SignInForm/index.d.ts +0 -3
  335. package/dist/components/Auth/SignInForm/index.d.ts.map +0 -1
  336. package/dist/components/Auth/SignInForm/index.mjs +0 -7
  337. package/dist/components/Auth/SignInForm/index.mjs.map +0 -1
  338. package/dist/components/Auth/SignInForm/signIn.content.cjs +0 -217
  339. package/dist/components/Auth/SignInForm/signIn.content.cjs.map +0 -1
  340. package/dist/components/Auth/SignInForm/signIn.content.d.ts +0 -447
  341. package/dist/components/Auth/SignInForm/signIn.content.d.ts.map +0 -1
  342. package/dist/components/Auth/SignInForm/signIn.content.mjs +0 -217
  343. package/dist/components/Auth/SignInForm/signIn.content.mjs.map +0 -1
  344. package/dist/components/Auth/SignInForm/useSignInSchema.cjs +0 -23
  345. package/dist/components/Auth/SignInForm/useSignInSchema.cjs.map +0 -1
  346. package/dist/components/Auth/SignInForm/useSignInSchema.content.cjs +0 -71
  347. package/dist/components/Auth/SignInForm/useSignInSchema.content.cjs.map +0 -1
  348. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts +0 -139
  349. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts.map +0 -1
  350. package/dist/components/Auth/SignInForm/useSignInSchema.content.mjs +0 -71
  351. package/dist/components/Auth/SignInForm/useSignInSchema.content.mjs.map +0 -1
  352. package/dist/components/Auth/SignInForm/useSignInSchema.d.ts +0 -7
  353. package/dist/components/Auth/SignInForm/useSignInSchema.d.ts.map +0 -1
  354. package/dist/components/Auth/SignInForm/useSignInSchema.mjs +0 -23
  355. package/dist/components/Auth/SignInForm/useSignInSchema.mjs.map +0 -1
  356. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +0 -98
  357. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +0 -1
  358. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +0 -10
  359. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +0 -1
  360. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +0 -98
  361. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +0 -1
  362. package/dist/components/Auth/SignUpForm/index.cjs +0 -7
  363. package/dist/components/Auth/SignUpForm/index.cjs.map +0 -1
  364. package/dist/components/Auth/SignUpForm/index.d.ts +0 -3
  365. package/dist/components/Auth/SignUpForm/index.d.ts.map +0 -1
  366. package/dist/components/Auth/SignUpForm/index.mjs +0 -7
  367. package/dist/components/Auth/SignUpForm/index.mjs.map +0 -1
  368. package/dist/components/Auth/SignUpForm/signUpForm.content.cjs +0 -184
  369. package/dist/components/Auth/SignUpForm/signUpForm.content.cjs.map +0 -1
  370. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts +0 -380
  371. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts.map +0 -1
  372. package/dist/components/Auth/SignUpForm/signUpForm.content.mjs +0 -185
  373. package/dist/components/Auth/SignUpForm/signUpForm.content.mjs.map +0 -1
  374. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs +0 -33
  375. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs.map +0 -1
  376. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.cjs +0 -116
  377. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.cjs.map +0 -1
  378. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts +0 -238
  379. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts.map +0 -1
  380. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.mjs +0 -116
  381. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.mjs.map +0 -1
  382. package/dist/components/Auth/SignUpForm/useSignUpSchema.d.ts +0 -8
  383. package/dist/components/Auth/SignUpForm/useSignUpSchema.d.ts.map +0 -1
  384. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs +0 -33
  385. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs.map +0 -1
  386. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs +0 -79
  387. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs.map +0 -1
  388. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.d.ts +0 -10
  389. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.d.ts.map +0 -1
  390. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs +0 -79
  391. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs.map +0 -1
  392. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.cjs +0 -8
  393. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.cjs.map +0 -1
  394. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.d.ts +0 -4
  395. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.d.ts.map +0 -1
  396. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.mjs +0 -8
  397. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.mjs.map +0 -1
  398. package/dist/components/Auth/VerifyEmailForm/index.cjs +0 -5
  399. package/dist/components/Auth/VerifyEmailForm/index.cjs.map +0 -1
  400. package/dist/components/Auth/VerifyEmailForm/index.content.cjs +0 -73
  401. package/dist/components/Auth/VerifyEmailForm/index.content.cjs.map +0 -1
  402. package/dist/components/Auth/VerifyEmailForm/index.content.d.ts +0 -143
  403. package/dist/components/Auth/VerifyEmailForm/index.content.d.ts.map +0 -1
  404. package/dist/components/Auth/VerifyEmailForm/index.content.mjs +0 -74
  405. package/dist/components/Auth/VerifyEmailForm/index.content.mjs.map +0 -1
  406. package/dist/components/Auth/VerifyEmailForm/index.d.ts +0 -2
  407. package/dist/components/Auth/VerifyEmailForm/index.d.ts.map +0 -1
  408. package/dist/components/Auth/VerifyEmailForm/index.mjs +0 -5
  409. package/dist/components/Auth/VerifyEmailForm/index.mjs.map +0 -1
  410. package/dist/components/Auth/index.cjs +0 -39
  411. package/dist/components/Auth/index.cjs.map +0 -1
  412. package/dist/components/Auth/index.d.ts +0 -12
  413. package/dist/components/Auth/index.d.ts.map +0 -1
  414. package/dist/components/Auth/index.mjs +0 -39
  415. package/dist/components/Auth/index.mjs.map +0 -1
  416. package/dist/components/Auth/useAuth/index.cjs +0 -31
  417. package/dist/components/Auth/useAuth/index.cjs.map +0 -1
  418. package/dist/components/Auth/useAuth/index.d.ts.map +0 -1
  419. package/dist/components/Auth/useAuth/index.mjs.map +0 -1
  420. package/dist/components/Auth/useAuth/useCSRF.cjs +0 -27
  421. package/dist/components/Auth/useAuth/useCSRF.cjs.map +0 -1
  422. package/dist/components/Auth/useAuth/useCSRF.d.ts +0 -6
  423. package/dist/components/Auth/useAuth/useCSRF.d.ts.map +0 -1
  424. package/dist/components/Auth/useAuth/useCSRF.mjs +0 -27
  425. package/dist/components/Auth/useAuth/useCSRF.mjs.map +0 -1
  426. package/dist/components/Auth/useAuth/useOAuth2.cjs.map +0 -1
  427. package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +0 -1
  428. package/dist/components/Auth/useAuth/useOAuth2.mjs.map +0 -1
  429. package/dist/components/Auth/useAuth/useSession.cjs.map +0 -1
  430. package/dist/components/Auth/useAuth/useSession.d.ts.map +0 -1
  431. package/dist/components/Auth/useAuth/useSession.mjs +0 -66
  432. package/dist/components/Auth/useAuth/useSession.mjs.map +0 -1
  433. package/dist/components/Auth/useUser/index.cjs.map +0 -1
  434. package/dist/components/Auth/useUser/index.d.ts +0 -8
  435. package/dist/components/Auth/useUser/index.d.ts.map +0 -1
  436. package/dist/components/Auth/useUser/index.mjs.map +0 -1
  437. package/dist/components/IDE/CopyButton.cjs.map +0 -1
  438. package/dist/components/IDE/CopyButton.d.ts.map +0 -1
  439. package/dist/components/IDE/CopyButton.mjs.map +0 -1
  440. package/dist/components/ProfileDropDown/index.cjs +0 -25
  441. package/dist/components/ProfileDropDown/index.cjs.map +0 -1
  442. package/dist/components/ProfileDropDown/index.d.ts +0 -6
  443. package/dist/components/ProfileDropDown/index.d.ts.map +0 -1
  444. package/dist/components/ProfileDropDown/index.mjs +0 -25
  445. package/dist/components/ProfileDropDown/index.mjs.map +0 -1
  446. package/dist/hooks/useIntlayerAPI.d.ts +0 -103
  447. package/dist/hooks/useIntlayerAPI.d.ts.map +0 -1
@@ -1 +1 @@
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\nconst formatErrorCode = (errorCode: string) => {\n return errorCode.split('_').join(' ');\n};\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 if (typeof errorMessage === 'undefined') return;\n\n error = JSON.parse(errorMessage);\n } catch (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: formatErrorCode(\n (process.env.NODE_ENV === 'production'\n ? error.title\n : error.code) ?? 'Error'\n ),\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<IntlayerAPI['auth']['login']>\n) =>\n useAppAsync('login', useIntlayerAuth().auth.login, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useRegister = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['register']>\n) =>\n useAppAsync('register', useIntlayerAuth().auth.register, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useLogout = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['logout']>\n) =>\n useAppAsync('logout', useIntlayerAuth().auth.logout, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useChangePassword = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['changePassword']>\n) => useAppAsync('changePassword', useIntlayerAuth().auth.changePassword, args);\n\nexport const useAskResetPassword = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['askResetPassword']>\n) =>\n useAppAsync(\n 'askResetPassword',\n useIntlayerAuth().auth.askResetPassword,\n args\n );\n\nexport const useDefineNewPassword = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['defineNewPassword']>\n) =>\n useAppAsync(\n 'defineNewPassword',\n useIntlayerAuth().auth.defineNewPassword,\n args\n );\n\nexport const useCheckIfUserHasPassword = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['checkIfUserHasPassword']>\n) =>\n useAppAsync(\n 'checkIfUserHasPassword',\n useIntlayerAuth().auth.checkIfUserHasPassword,\n args,\n {\n requireUser: true,\n }\n );\n\nexport const useVerifyEmail = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['verifyEmail']>\n) => useAppAsync('verifyEmail', useIntlayerAuth().auth.verifyEmail, args);\n\nexport const useGetUserByAccount = (\n args?: UseAsyncOptions<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<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 );\n\nexport const useCreateUser = (\n args?: UseAsyncOptions<IntlayerAPI['user']['createUser']>\n) =>\n useAppAsync('createUser', useIntlayerAuth().user.createUser, {\n invalidateQueries: ['getUsers'],\n ...args,\n });\n\nexport const useUpdateUser = (\n args?: UseAsyncOptions<IntlayerAPI['user']['updateUser']>\n) =>\n useAppAsync('updateUser', useIntlayerAuth().user.updateUser, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useDeleteUser = (\n args?: UseAsyncOptions<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<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<IntlayerAPI['organization']['addOrganization']>\n) =>\n useAppAsync(\n 'addOrganization',\n useIntlayerAuth().organization.addOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\n\nexport const useUpdateOrganization = (\n args?: UseAsyncOptions<IntlayerAPI['organization']['updateOrganization']>\n) =>\n useAppAsync(\n 'updateOrganization',\n useIntlayerAuth().organization.updateOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\n\nexport const useUpdateOrganizationMembers = (\n args?: UseAsyncOptions<\n IntlayerAPI['organization']['updateOrganizationMembers']\n >\n) =>\n useAppAsync(\n 'updateOrganizationMembers',\n useIntlayerAuth().organization.updateOrganizationMembers,\n {\n invalidateQueries: ['getOrganizations', 'getSession'],\n ...args,\n }\n );\n\nexport const useAddOrganizationMember = (\n args?: UseAsyncOptions<IntlayerAPI['organization']['addOrganizationMember']>\n) =>\n useAppAsync(\n 'addOrganizationMember',\n useIntlayerAuth().organization.addOrganizationMember,\n {\n invalidateQueries: ['getOrganizations', 'getSession'],\n ...args,\n }\n );\n\nexport const useDeleteOrganization = (\n args?: UseAsyncOptions<IntlayerAPI['organization']['deleteOrganization']>\n) =>\n useAppAsync(\n 'deleteOrganization',\n useIntlayerAuth().organization.deleteOrganization,\n {\n invalidateQueries: ['getOrganizations', 'getSession'],\n ...args,\n }\n );\n\nexport const useSelectOrganization = (\n args?: UseAsyncOptions<IntlayerAPI['organization']['selectOrganization']>\n) =>\n useAppAsync(\n 'selectOrganization',\n useIntlayerAuth().organization.selectOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\n\nexport const useUnselectOrganization = (\n args?: UseAsyncOptions<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<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 );\n\nexport const useAddProject = (\n args?: UseAsyncOptions<IntlayerAPI['project']['addProject']>\n) =>\n useAppAsync('addProject', useIntlayerAuth().project.addProject, {\n invalidateQueries: ['getProjects'],\n ...args,\n });\n\nexport const useUpdateProject = (\n args?: UseAsyncOptions<IntlayerAPI['project']['updateProject']>\n) =>\n useAppAsync('updateProject', useIntlayerAuth().project.updateProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useUpdateProjectMembers = (\n args?: UseAsyncOptions<IntlayerAPI['project']['updateProjectMembers']>\n) =>\n useAppAsync(\n 'updateProjectMembers',\n useIntlayerAuth().project.updateProjectMembers,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\n\nexport const useDeleteProject = (\n args?: UseAsyncOptions<IntlayerAPI['project']['deleteProject']>\n) =>\n useAppAsync('deleteProject', useIntlayerAuth().project.deleteProject, {\n invalidateQueries: ['getProjects', 'getSession'],\n ...args,\n });\n\nexport const useSelectProject = (\n args?: UseAsyncOptions<IntlayerAPI['project']['selectProject']>\n) =>\n useAppAsync('selectProject', useIntlayerAuth().project.selectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useUnselectProject = (\n args?: UseAsyncOptions<IntlayerAPI['project']['unselectProject']>\n) =>\n useAppAsync('unselectProject', useIntlayerAuth().project.unselectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useAddNewAccessKey = (\n args?: UseAsyncOptions<IntlayerAPI['project']['addNewAccessKey']>\n) =>\n useAppAsync('addNewAccessKey', useIntlayerAuth().project.addNewAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useDeleteAccessKey = (\n args?: UseAsyncOptions<IntlayerAPI['project']['deleteAccessKey']>\n) =>\n useAppAsync('deleteAccessKey', useIntlayerAuth().project.deleteAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useRefreshAccessKey = (\n args?: UseAsyncOptions<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<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<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<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 );\n\nexport const useAddDictionary = (\n args?: UseAsyncOptions<IntlayerAPI['dictionary']['addDictionary']>\n) =>\n useAppAsync('addDictionary', useIntlayerAuth().dictionary.addDictionary, {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n ...args,\n });\n\nexport const usePushDictionaries = (\n args?: UseAsyncOptions<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 );\n\nexport const useUpdateDictionary = (\n args?: UseAsyncOptions<IntlayerAPI['dictionary']['updateDictionary']>\n) =>\n useAppAsync(\n 'updateDictionary',\n useIntlayerAuth().dictionary.updateDictionary,\n {\n invalidateQueries: ['getDictionaries', 'getDictionary'],\n ...args,\n }\n );\n\nexport const useDeleteDictionary = (\n args?: UseAsyncOptions<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<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 );\n\nexport const useAddTag = (\n args?: UseAsyncOptions<IntlayerAPI['tag']['addTag']>\n) =>\n useAppAsync('addTag', useIntlayerAuth().tag.addTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\n\nexport const useUpdateTag = (\n args?: UseAsyncOptions<IntlayerAPI['tag']['updateTag']>\n) =>\n useAppAsync('updateTag', useIntlayerAuth().tag.updateTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\n\nexport const useDeleteTag = (\n args?: UseAsyncOptions<IntlayerAPI['tag']['deleteTag']>\n) =>\n useAppAsync('deleteTag', useIntlayerAuth().tag.deleteTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\n\n/**\n * Stripe\n */\n\nexport const useGetPricing = (\n args?: UseAsyncOptions<IntlayerAPI['stripe']['getPricing']>\n) =>\n useAppAsync('getPricing', useIntlayerAuth().stripe.getPricing, {\n store: true,\n cache: true,\n ...args,\n });\n\nexport const useGetSubscription = (\n args?: UseAsyncOptions<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<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 useTranslateJSONDeclaration = (\n args?: UseAsyncOptions<IntlayerAPI['ai']['translateJSON']>\n) =>\n useAppAsync('translateJSON', useIntlayerAuth().ai.translateJSON, args, {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n });\n\nexport const useAuditContentDeclaration = (\n args?: UseAsyncOptions<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<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<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<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<IntlayerAPI['ai']['askDocQuestion']>\n) => useAppAsync('askDocQuestion', useIntlayerAuth().ai.askDocQuestion, args);\n\nexport const useAutocomplete = (\n args?: UseAsyncOptions<IntlayerAPI['ai']['autocomplete']>\n) => useAppAsync('autocomplete', useIntlayerAuth().ai.autocomplete, args);\n\n/**\n * Search\n */\n\nexport const useSearchDoc = (\n args?: UseAsyncOptions<IntlayerAPI['search']['searchDoc']>\n) => useAppAsync('searchDoc', useIntlayerAuth().search.searchDoc, args);\n\n/**\n * Newsletter\n */\n\nexport const useSubscribeToNewsletter = (\n args?: UseAsyncOptions<IntlayerAPI['newsletter']['subscribeToNewsletter']>\n) =>\n useAppAsync(\n 'subscribeToNewsletter',\n useIntlayerAuth().newsletter.subscribeToNewsletter,\n args\n );\n\nexport const useUnsubscribeFromNewsletter = (\n args?: UseAsyncOptions<IntlayerAPI['newsletter']['unsubscribeFromNewsletter']>\n) =>\n useAppAsync(\n 'unsubscribeFromNewsletter',\n useIntlayerAuth().newsletter.unsubscribeFromNewsletter,\n args\n );\n\nexport const useGetNewsletterStatus = (\n args?: UseAsyncOptions<IntlayerAPI['newsletter']['getNewsletterStatus']>\n) =>\n useAppAsync(\n 'getNewsletterStatus',\n useIntlayerAuth().newsletter.getNewsletterStatus,\n args\n );\n\n/**\n * Editor\n */\n\nexport const useWriteDictionary = (\n args?: UseAsyncOptions<IntlayerAPI['editor']['writeDictionary']>\n) =>\n useEditorAsync(\n 'writeDictionary',\n useIntlayerAuth().editor.writeDictionary,\n args\n );\n\nexport const useGetEditorDictionaries = (\n args?: UseAsyncOptions<IntlayerAPI['editor']['getDictionaries']>\n) =>\n useEditorAsync('getDictionaries', useIntlayerAuth().editor.getDictionaries, {\n store: true,\n cache: true,\n ...args,\n });\n"],"names":["useToast","error","useConfiguration","useAuth","useAsync","useIntlayerAuth"],"mappings":";;;;;;;;;;;AASA,MAAM,kBAAkB,CAAC,cAAsB;AAC7C,SAAO,UAAU,MAAM,GAAG,EAAE,KAAK,GAAG;AACtC;AAKA,MAAM,mBAAmB,CAAiC,YAAkB;AACpE,QAAA,EAAE,MAAM,IAAIA,qCAAS;AAEpB,SAAA;AAAA,IACL,GAAG;AAAA,IACH,SAAS,CAAC,iBAAiB;AACrB,UAAA;AAGA,UAAA;AACE,YAAA,OAAO,iBAAiB,YAAa;AAEjC,gBAAA,KAAK,MAAM,YAAY;AAAA,eACxB,GAAG;AAGF,gBAAA;AAAA,MAAA;AAKV,OAAC,KAAK,EACH,QAAQ,CAACC,WAAUA,MAAK,EACxB;AAAA,QAAQ,CAACA,WACR,MAAM;AAAA,UACJ,OAAO;AAAA,aACJ,2BAAY,aAAa,eACtBA,OAAM,QACNA,OAAM,SAAS;AAAA,UACrB;AAAA,UACA,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,MAAM;AACF,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D,MAAA,eAAe,CAC1B,SACG,YAAY,aAAaA,qBAAAA,kBAAkB,OAAO,WAAW,IAAI;AAMzD,MAAA,2BAA2B,CACtC,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,WAAW;AAAA,EAC7B;AACF;AAEW,MAAA,+BAA+B,CAC1C,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,WAAW;AAAA,EAC7B;AACF;AAEW,MAAA,yBAAyB,CACpC,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,WAAW;AAAA,EAC7B;AACF;AAMW,MAAA,qBAAqB,CAChC,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,OAAO;AAAA,EACzB;AACF;AAEW,MAAA,2BAA2B,CACtC,SAEA,eAAe,mBAAmBA,qCAAgB,EAAE,OAAO,iBAAiB;AAAA,EAC1E,OAAO;AAAA,EACP,OAAO;AAAA,EACP,GAAG;AACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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 { useToast } from '../components/Toaster';\nimport { type UseAsyncOptions, useAsync } from './useAsync/useAsync';\nimport { useAuth } from './useAuth';\nimport { useIntlayerAuth } from './useIntlayerAPI';\n\nconst formatErrorCode = (errorCode: string) => errorCode.split('_').join(' ');\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 if (typeof errorMessage === 'undefined') return;\n\n error = JSON.parse(errorMessage);\n } catch (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: formatErrorCode(\n (process.env.NODE_ENV === 'production'\n ? error.title\n : error.code) ?? 'Error'\n ),\n description: error.message ?? errorMessage ?? 'An error occurred',\n variant: 'error',\n })\n );\n options.onError?.(errorMessage);\n },\n onSuccess: (data) => {\n if (data?.error) {\n toast({\n title: formatErrorCode(\n data.error.title ?? data.error.code ?? 'Error'\n ),\n description:\n data.error.message ?? data.error.code ?? 'An error occurred',\n variant: 'error',\n });\n }\n\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 { 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 isEnabled =\n isEnabledOption &&\n isUserEnabled &&\n isProjectEnabled &&\n isOrganizationEnabled;\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<IntlayerAPI['auth']['signInEmail']>\n) =>\n useAppAsync('login', useIntlayerAuth().auth.signInEmail, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useRegister = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['signUpEmail']>\n) =>\n useAppAsync('register', useIntlayerAuth().auth.signUpEmail, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useLogout = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['signOut']>\n) =>\n useAppAsync('logout', useIntlayerAuth().auth.signOut, {\n ...args,\n });\n\nexport const useChangePassword = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['changePasswordSession']>\n) =>\n useAppAsync(\n 'changePassword',\n useIntlayerAuth().auth.changePasswordSession,\n args\n );\n\nexport const useAskResetPassword = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['requestPasswordResetSession']>\n) =>\n useAppAsync(\n 'askResetPassword',\n useIntlayerAuth().auth.requestPasswordResetSession,\n args\n );\n\nexport const useDefineNewPassword = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['changePasswordSession']>\n) =>\n useAppAsync(\n 'defineNewPassword',\n useIntlayerAuth().auth.changePasswordSession,\n args\n );\n\nexport const useVerifyEmail = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['verifyEmailSession']>\n) =>\n useAppAsync('verifyEmail', useIntlayerAuth().auth.verifyEmailSession, args);\n\nexport const useGetUserByAccount = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['accountInfo']>\n) => useAppAsync('getUserByAccount', useIntlayerAuth().auth.accountInfo, args);\n\n/**\n * User\n */\n\nexport const useGetUsers = (\n args?: UseAsyncOptions<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 );\n\nexport const useCreateUser = (\n args?: UseAsyncOptions<IntlayerAPI['auth']['updateUser']>\n) =>\n useAppAsync('createUser', useIntlayerAuth().auth.updateUser, {\n invalidateQueries: ['getUsers'],\n ...args,\n });\n\nexport const useUpdateUser = (\n args?: UseAsyncOptions<IntlayerAPI['user']['updateUser']>\n) =>\n useAppAsync('updateUser', useIntlayerAuth().user.updateUser, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useDeleteUser = (\n args?: UseAsyncOptions<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<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<IntlayerAPI['organization']['addOrganization']>\n) =>\n useAppAsync(\n 'addOrganization',\n useIntlayerAuth().organization.addOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\n\nexport const useUpdateOrganization = (\n args?: UseAsyncOptions<IntlayerAPI['organization']['updateOrganization']>\n) =>\n useAppAsync(\n 'updateOrganization',\n useIntlayerAuth().organization.updateOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\n\nexport const useUpdateOrganizationMembers = (\n args?: UseAsyncOptions<\n IntlayerAPI['organization']['updateOrganizationMembers']\n >\n) =>\n useAppAsync(\n 'updateOrganizationMembers',\n useIntlayerAuth().organization.updateOrganizationMembers,\n {\n invalidateQueries: ['getOrganizations', 'getSession'],\n ...args,\n }\n );\n\nexport const useAddOrganizationMember = (\n args?: UseAsyncOptions<IntlayerAPI['organization']['addOrganizationMember']>\n) =>\n useAppAsync(\n 'addOrganizationMember',\n useIntlayerAuth().organization.addOrganizationMember,\n {\n invalidateQueries: ['getOrganizations', 'getSession'],\n ...args,\n }\n );\n\nexport const useDeleteOrganization = (\n args?: UseAsyncOptions<IntlayerAPI['organization']['deleteOrganization']>\n) =>\n useAppAsync(\n 'deleteOrganization',\n useIntlayerAuth().organization.deleteOrganization,\n {\n invalidateQueries: ['getOrganizations', 'getSession'],\n ...args,\n }\n );\n\nexport const useSelectOrganization = (\n args?: UseAsyncOptions<IntlayerAPI['organization']['selectOrganization']>\n) =>\n useAppAsync(\n 'selectOrganization',\n useIntlayerAuth().organization.selectOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\n\nexport const useUnselectOrganization = (\n args?: UseAsyncOptions<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<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 );\n\nexport const useAddProject = (\n args?: UseAsyncOptions<IntlayerAPI['project']['addProject']>\n) =>\n useAppAsync('addProject', useIntlayerAuth().project.addProject, {\n invalidateQueries: ['getProjects'],\n ...args,\n });\n\nexport const useUpdateProject = (\n args?: UseAsyncOptions<IntlayerAPI['project']['updateProject']>\n) =>\n useAppAsync('updateProject', useIntlayerAuth().project.updateProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useUpdateProjectMembers = (\n args?: UseAsyncOptions<IntlayerAPI['project']['updateProjectMembers']>\n) =>\n useAppAsync(\n 'updateProjectMembers',\n useIntlayerAuth().project.updateProjectMembers,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\n\nexport const useDeleteProject = (\n args?: UseAsyncOptions<IntlayerAPI['project']['deleteProject']>\n) =>\n useAppAsync('deleteProject', useIntlayerAuth().project.deleteProject, {\n invalidateQueries: ['getProjects', 'getSession'],\n ...args,\n });\n\nexport const useSelectProject = (\n args?: UseAsyncOptions<IntlayerAPI['project']['selectProject']>\n) =>\n useAppAsync('selectProject', useIntlayerAuth().project.selectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useUnselectProject = (\n args?: UseAsyncOptions<IntlayerAPI['project']['unselectProject']>\n) =>\n useAppAsync('unselectProject', useIntlayerAuth().project.unselectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useAddNewAccessKey = (\n args?: UseAsyncOptions<IntlayerAPI['project']['addNewAccessKey']>\n) =>\n useAppAsync('addNewAccessKey', useIntlayerAuth().project.addNewAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useDeleteAccessKey = (\n args?: UseAsyncOptions<IntlayerAPI['project']['deleteAccessKey']>\n) =>\n useAppAsync('deleteAccessKey', useIntlayerAuth().project.deleteAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\nexport const useRefreshAccessKey = (\n args?: UseAsyncOptions<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<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<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<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 );\n\nexport const useAddDictionary = (\n args?: UseAsyncOptions<IntlayerAPI['dictionary']['addDictionary']>\n) =>\n useAppAsync('addDictionary', useIntlayerAuth().dictionary.addDictionary, {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n ...args,\n });\n\nexport const usePushDictionaries = (\n args?: UseAsyncOptions<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 );\n\nexport const useUpdateDictionary = (\n args?: UseAsyncOptions<IntlayerAPI['dictionary']['updateDictionary']>\n) =>\n useAppAsync(\n 'updateDictionary',\n useIntlayerAuth().dictionary.updateDictionary,\n {\n invalidateQueries: ['getDictionaries', 'getDictionary'],\n ...args,\n }\n );\n\nexport const useDeleteDictionary = (\n args?: UseAsyncOptions<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<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 );\n\nexport const useAddTag = (\n args?: UseAsyncOptions<IntlayerAPI['tag']['addTag']>\n) =>\n useAppAsync('addTag', useIntlayerAuth().tag.addTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\n\nexport const useUpdateTag = (\n args?: UseAsyncOptions<IntlayerAPI['tag']['updateTag']>\n) =>\n useAppAsync('updateTag', useIntlayerAuth().tag.updateTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\n\nexport const useDeleteTag = (\n args?: UseAsyncOptions<IntlayerAPI['tag']['deleteTag']>\n) =>\n useAppAsync('deleteTag', useIntlayerAuth().tag.deleteTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\n\n/**\n * Stripe\n */\n\nexport const useGetPricing = (\n args?: UseAsyncOptions<IntlayerAPI['stripe']['getPricing']>\n) =>\n useAppAsync('getPricing', useIntlayerAuth().stripe.getPricing, {\n store: true,\n cache: true,\n ...args,\n });\n\nexport const useGetSubscription = (\n args?: UseAsyncOptions<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<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 useTranslateJSONDeclaration = (\n args?: UseAsyncOptions<IntlayerAPI['ai']['translateJSON']>\n) =>\n useAppAsync('translateJSON', useIntlayerAuth().ai.translateJSON, args, {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n });\n\nexport const useAuditContentDeclaration = (\n args?: UseAsyncOptions<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<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<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<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<IntlayerAPI['ai']['askDocQuestion']>\n) => useAppAsync('askDocQuestion', useIntlayerAuth().ai.askDocQuestion, args);\n\nexport const useAutocomplete = (\n args?: UseAsyncOptions<IntlayerAPI['ai']['autocomplete']>\n) => useAppAsync('autocomplete', useIntlayerAuth().ai.autocomplete, args);\n\n/**\n * Search\n */\n\nexport const useSearchDoc = (\n args?: UseAsyncOptions<IntlayerAPI['search']['searchDoc']>\n) => useAppAsync('searchDoc', useIntlayerAuth().search.searchDoc, args);\n\n/**\n * Newsletter\n */\n\nexport const useSubscribeToNewsletter = (\n args?: UseAsyncOptions<IntlayerAPI['newsletter']['subscribeToNewsletter']>\n) =>\n useAppAsync(\n 'subscribeToNewsletter',\n useIntlayerAuth().newsletter.subscribeToNewsletter,\n args\n );\n\nexport const useUnsubscribeFromNewsletter = (\n args?: UseAsyncOptions<IntlayerAPI['newsletter']['unsubscribeFromNewsletter']>\n) =>\n useAppAsync(\n 'unsubscribeFromNewsletter',\n useIntlayerAuth().newsletter.unsubscribeFromNewsletter,\n args\n );\n\nexport const useGetNewsletterStatus = (\n args?: UseAsyncOptions<IntlayerAPI['newsletter']['getNewsletterStatus']>\n) =>\n useAppAsync(\n 'getNewsletterStatus',\n useIntlayerAuth().newsletter.getNewsletterStatus,\n args\n );\n\n/**\n * Editor\n */\n\nexport const useWriteDictionary = (\n args?: UseAsyncOptions<IntlayerAPI['editor']['writeDictionary']>\n) =>\n useEditorAsync(\n 'writeDictionary',\n useIntlayerAuth().editor.writeDictionary,\n args\n );\n\nexport const useGetEditorDictionaries = (\n args?: UseAsyncOptions<IntlayerAPI['editor']['getDictionaries']>\n) =>\n useEditorAsync('getDictionaries', useIntlayerAuth().editor.getDictionaries, {\n store: true,\n cache: true,\n ...args,\n });\n"],"names":["useToast","error","useConfiguration","useAuth","useAsync","useIntlayerAuth"],"mappings":";;;;;;;;;;;;;;AASA,MAAM,k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