@intlayer/design-system 5.8.1 → 6.0.0-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/dist/.vite/manifest.json +34 -106
  2. package/dist/better-auth.CMQ3rA-I-7umXOENE.js.map +1 -1
  3. package/dist/better-auth.CMQ3rA-I-C2nBKRMa.cjs.map +1 -1
  4. package/dist/components/Breadcrumb/breadcrumb.content.cjs +3 -1
  5. package/dist/components/Breadcrumb/breadcrumb.content.cjs.map +1 -1
  6. package/dist/components/Breadcrumb/breadcrumb.content.d.ts +3 -0
  7. package/dist/components/Breadcrumb/breadcrumb.content.d.ts.map +1 -1
  8. package/dist/components/Breadcrumb/breadcrumb.content.mjs +3 -1
  9. package/dist/components/Breadcrumb/breadcrumb.content.mjs.map +1 -1
  10. package/dist/components/Breadcrumb/index.cjs.map +1 -1
  11. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  12. package/dist/components/Breadcrumb/index.mjs.map +1 -1
  13. package/dist/components/CopyButton/CopyButton.content.cjs +3 -1
  14. package/dist/components/CopyButton/CopyButton.content.cjs.map +1 -1
  15. package/dist/components/CopyButton/CopyButton.content.d.ts +3 -0
  16. package/dist/components/CopyButton/CopyButton.content.d.ts.map +1 -1
  17. package/dist/components/CopyButton/CopyButton.content.mjs +3 -1
  18. package/dist/components/CopyButton/CopyButton.content.mjs.map +1 -1
  19. package/dist/components/DictionaryEditor/DictionaryEditor.cjs +7 -3
  20. package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -1
  21. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -1
  22. package/dist/components/DictionaryEditor/DictionaryEditor.mjs +7 -3
  23. package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
  24. package/dist/components/DictionaryFieldEditor/ContentEditor.cjs +1 -1
  25. package/dist/components/DictionaryFieldEditor/ContentEditor.cjs.map +1 -1
  26. package/dist/components/DictionaryFieldEditor/ContentEditor.mjs +1 -1
  27. package/dist/components/DictionaryFieldEditor/ContentEditor.mjs.map +1 -1
  28. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +83 -34
  29. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs.map +1 -1
  30. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -1
  31. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +83 -34
  32. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
  33. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +13 -9
  34. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  35. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
  36. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +12 -8
  37. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  38. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +27 -13
  39. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
  40. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +27 -0
  41. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
  42. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +27 -13
  43. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
  44. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs +9 -4
  45. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs.map +1 -1
  46. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +9 -0
  47. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts.map +1 -1
  48. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.mjs +9 -4
  49. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.mjs.map +1 -1
  50. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +29 -25
  51. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  52. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
  53. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +27 -23
  54. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  55. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +37 -17
  56. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
  57. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +64 -2
  58. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
  59. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +37 -17
  60. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
  61. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs +25 -12
  62. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs.map +1 -1
  63. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +25 -0
  64. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -1
  65. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs +25 -12
  66. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs.map +1 -1
  67. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +4 -5
  68. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  69. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
  70. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +4 -5
  71. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  72. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs +2 -2
  73. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs.map +1 -1
  74. package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts.map +1 -1
  75. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs +2 -2
  76. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs.map +1 -1
  77. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +25 -12
  78. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -1
  79. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +25 -0
  80. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
  81. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +25 -12
  82. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -1
  83. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +36 -31
  84. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  85. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  86. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +36 -31
  87. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  88. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +32 -28
  89. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
  90. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +32 -5
  91. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
  92. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +32 -28
  93. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
  94. package/dist/components/DictionaryFieldEditor/StructureEditor.cjs +2 -2
  95. package/dist/components/DictionaryFieldEditor/StructureEditor.cjs.map +1 -1
  96. package/dist/components/DictionaryFieldEditor/StructureEditor.mjs +2 -2
  97. package/dist/components/DictionaryFieldEditor/StructureEditor.mjs.map +1 -1
  98. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +2 -5
  99. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs.map +1 -1
  100. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +2 -5
  101. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
  102. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs +9 -4
  103. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs.map +1 -1
  104. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts +9 -0
  105. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts.map +1 -1
  106. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs +9 -4
  107. package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs.map +1 -1
  108. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs +3 -3
  109. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs.map +1 -1
  110. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +3 -3
  111. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs.map +1 -1
  112. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +4 -6
  113. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs.map +1 -1
  114. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.d.ts +3 -3
  115. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.d.ts.map +1 -1
  116. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +4 -6
  117. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs.map +1 -1
  118. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.cjs +7 -3
  119. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.cjs.map +1 -1
  120. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +7 -0
  121. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts.map +1 -1
  122. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.mjs +7 -3
  123. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.mjs.map +1 -1
  124. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +9 -6
  125. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -1
  126. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +9 -4
  127. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
  128. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +9 -6
  129. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -1
  130. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +28 -14
  131. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -1
  132. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +29 -2
  133. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
  134. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +28 -14
  135. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -1
  136. package/dist/components/DropDown/index.cjs +2 -2
  137. package/dist/components/DropDown/index.cjs.map +1 -1
  138. package/dist/components/DropDown/index.d.ts.map +1 -1
  139. package/dist/components/DropDown/index.mjs +2 -2
  140. package/dist/components/DropDown/index.mjs.map +1 -1
  141. package/dist/components/EditableField/EditableFieldTextArea.cjs +2 -5
  142. package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
  143. package/dist/components/EditableField/EditableFieldTextArea.mjs +2 -5
  144. package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
  145. package/dist/components/ExpandCollapse/ExpandCollapse.cjs.map +1 -1
  146. package/dist/components/ExpandCollapse/ExpandCollapse.d.ts +2 -2
  147. package/dist/components/ExpandCollapse/ExpandCollapse.d.ts.map +1 -1
  148. package/dist/components/ExpandCollapse/ExpandCollapse.mjs.map +1 -1
  149. package/dist/components/ExpandCollapse/expandCollapse.content.cjs +5 -2
  150. package/dist/components/ExpandCollapse/expandCollapse.content.cjs.map +1 -1
  151. package/dist/components/ExpandCollapse/expandCollapse.content.d.ts +3 -0
  152. package/dist/components/ExpandCollapse/expandCollapse.content.d.ts.map +1 -1
  153. package/dist/components/ExpandCollapse/expandCollapse.content.mjs +5 -2
  154. package/dist/components/ExpandCollapse/expandCollapse.content.mjs.map +1 -1
  155. package/dist/components/Flags/Flag.cjs +2 -1
  156. package/dist/components/Flags/Flag.cjs.map +1 -1
  157. package/dist/components/Flags/Flag.d.ts.map +1 -1
  158. package/dist/components/Flags/Flag.mjs +2 -1
  159. package/dist/components/Flags/Flag.mjs.map +1 -1
  160. package/dist/components/IDE/Code.cjs +8 -8
  161. package/dist/components/IDE/Code.cjs.map +1 -1
  162. package/dist/components/IDE/Code.mjs +8 -8
  163. package/dist/components/IDE/Code.mjs.map +1 -1
  164. package/dist/components/IDE/CodeBlockClient.cjs +1 -1
  165. package/dist/components/IDE/CodeBlockClient.cjs.map +1 -1
  166. package/dist/components/IDE/CodeBlockClient.d.ts +1 -1
  167. package/dist/components/IDE/CodeBlockClient.d.ts.map +1 -1
  168. package/dist/components/IDE/CodeBlockClient.mjs +1 -1
  169. package/dist/components/IDE/CodeBlockClient.mjs.map +1 -1
  170. package/dist/components/IDE/CodeContext.cjs +1 -3
  171. package/dist/components/IDE/CodeContext.cjs.map +1 -1
  172. package/dist/components/IDE/CodeContext.mjs +1 -3
  173. package/dist/components/IDE/CodeContext.mjs.map +1 -1
  174. package/dist/components/IDE/code.content.cjs +5 -2
  175. package/dist/components/IDE/code.content.cjs.map +1 -1
  176. package/dist/components/IDE/code.content.d.ts +5 -0
  177. package/dist/components/IDE/code.content.d.ts.map +1 -1
  178. package/dist/components/IDE/code.content.mjs +5 -2
  179. package/dist/components/IDE/code.content.mjs.map +1 -1
  180. package/dist/components/IDE/copyCode.content.cjs +5 -2
  181. package/dist/components/IDE/copyCode.content.cjs.map +1 -1
  182. package/dist/components/IDE/copyCode.content.d.ts +5 -0
  183. package/dist/components/IDE/copyCode.content.d.ts.map +1 -1
  184. package/dist/components/IDE/copyCode.content.mjs +5 -2
  185. package/dist/components/IDE/copyCode.content.mjs.map +1 -1
  186. package/dist/components/Input/Checkbox.cjs.map +1 -1
  187. package/dist/components/Input/Checkbox.d.ts +2 -2
  188. package/dist/components/Input/Checkbox.d.ts.map +1 -1
  189. package/dist/components/Input/Checkbox.mjs.map +1 -1
  190. package/dist/components/Loader/index.content.cjs +6 -1
  191. package/dist/components/Loader/index.content.cjs.map +1 -1
  192. package/dist/components/Loader/index.content.d.ts +33 -2
  193. package/dist/components/Loader/index.content.d.ts.map +1 -1
  194. package/dist/components/Loader/index.content.mjs +6 -1
  195. package/dist/components/Loader/index.content.mjs.map +1 -1
  196. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +1 -3
  197. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
  198. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -3
  199. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
  200. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +1 -3
  201. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs.map +1 -1
  202. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +1 -3
  203. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs.map +1 -1
  204. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.cjs +17 -8
  205. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.cjs.map +1 -1
  206. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +17 -0
  207. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts.map +1 -1
  208. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.mjs +17 -8
  209. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.mjs.map +1 -1
  210. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.cjs +13 -6
  211. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.cjs.map +1 -1
  212. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +13 -0
  213. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts.map +1 -1
  214. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.mjs +13 -6
  215. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.mjs.map +1 -1
  216. package/dist/components/Modal/Modal.cjs +2 -4
  217. package/dist/components/Modal/Modal.cjs.map +1 -1
  218. package/dist/components/Modal/Modal.mjs +2 -4
  219. package/dist/components/Modal/Modal.mjs.map +1 -1
  220. package/dist/components/Navbar/MobileNavbar.cjs +1 -3
  221. package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
  222. package/dist/components/Navbar/MobileNavbar.mjs +1 -3
  223. package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
  224. package/dist/components/Navbar/index.cjs +2 -4
  225. package/dist/components/Navbar/index.cjs.map +1 -1
  226. package/dist/components/Navbar/index.mjs +2 -4
  227. package/dist/components/Navbar/index.mjs.map +1 -1
  228. package/dist/components/SwitchSelector/index.cjs +1 -3
  229. package/dist/components/SwitchSelector/index.cjs.map +1 -1
  230. package/dist/components/SwitchSelector/index.mjs +1 -3
  231. package/dist/components/SwitchSelector/index.mjs.map +1 -1
  232. package/dist/components/TabSelector/TabSelector.cjs +1 -3
  233. package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
  234. package/dist/components/TabSelector/TabSelector.d.ts +1 -1
  235. package/dist/components/TabSelector/TabSelector.d.ts.map +1 -1
  236. package/dist/components/TabSelector/TabSelector.mjs +1 -3
  237. package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
  238. package/dist/components/Table/table.content.cjs +3 -1
  239. package/dist/components/Table/table.content.cjs.map +1 -1
  240. package/dist/components/Table/table.content.d.ts +3 -0
  241. package/dist/components/Table/table.content.d.ts.map +1 -1
  242. package/dist/components/Table/table.content.mjs +3 -1
  243. package/dist/components/Table/table.content.mjs.map +1 -1
  244. package/dist/components/Tag/index.cjs +22 -88
  245. package/dist/components/Tag/index.cjs.map +1 -1
  246. package/dist/components/Tag/index.d.ts +5 -5
  247. package/dist/components/Tag/index.mjs +22 -88
  248. package/dist/components/Tag/index.mjs.map +1 -1
  249. package/dist/components/TextArea/AutocompleteTextArea.cjs +20 -21
  250. package/dist/components/TextArea/AutocompleteTextArea.cjs.map +1 -1
  251. package/dist/components/TextArea/AutocompleteTextArea.d.ts.map +1 -1
  252. package/dist/components/TextArea/AutocompleteTextArea.mjs +20 -21
  253. package/dist/components/TextArea/AutocompleteTextArea.mjs.map +1 -1
  254. package/dist/hooks/auth.cjs +26 -11
  255. package/dist/hooks/auth.cjs.map +1 -1
  256. package/dist/hooks/auth.mjs +26 -11
  257. package/dist/hooks/auth.mjs.map +1 -1
  258. package/dist/hooks/index.cjs +65 -66
  259. package/dist/hooks/index.cjs.map +1 -1
  260. package/dist/hooks/index.d.ts +1 -3
  261. package/dist/hooks/index.d.ts.map +1 -1
  262. package/dist/hooks/index.mjs +4 -8
  263. package/dist/hooks/index.mjs.map +1 -1
  264. package/dist/hooks/reactQuery.cjs +648 -0
  265. package/dist/hooks/reactQuery.cjs.map +1 -0
  266. package/dist/hooks/reactQuery.d.ts +899 -0
  267. package/dist/hooks/reactQuery.d.ts.map +1 -0
  268. package/dist/hooks/reactQuery.mjs +646 -0
  269. package/dist/hooks/reactQuery.mjs.map +1 -0
  270. package/dist/hooks/useAuth/useOAuth2.cjs +13 -10
  271. package/dist/hooks/useAuth/useOAuth2.cjs.map +1 -1
  272. package/dist/hooks/useAuth/useOAuth2.d.ts +1 -1
  273. package/dist/hooks/useAuth/useOAuth2.d.ts.map +1 -1
  274. package/dist/hooks/useAuth/useOAuth2.mjs +13 -10
  275. package/dist/hooks/useAuth/useOAuth2.mjs.map +1 -1
  276. package/dist/hooks/useAuth/useSession.cjs +23 -26
  277. package/dist/hooks/useAuth/useSession.cjs.map +1 -1
  278. package/dist/hooks/useAuth/useSession.d.ts +4 -352
  279. package/dist/hooks/useAuth/useSession.d.ts.map +1 -1
  280. package/dist/hooks/useAuth/useSession.mjs +23 -26
  281. package/dist/hooks/useAuth/useSession.mjs.map +1 -1
  282. package/dist/hooks/useIntlayerAPI.cjs +2 -3
  283. package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
  284. package/dist/hooks/useIntlayerAPI.mjs +2 -3
  285. package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
  286. package/dist/hooks/useUser/index.cjs +6 -9
  287. package/dist/hooks/useUser/index.cjs.map +1 -1
  288. package/dist/hooks/useUser/index.d.ts +2 -18
  289. package/dist/hooks/useUser/index.d.ts.map +1 -1
  290. package/dist/hooks/useUser/index.mjs +6 -9
  291. package/dist/hooks/useUser/index.mjs.map +1 -1
  292. package/dist/index-BCuMWKyy.js.map +1 -1
  293. package/dist/index-BYzBot7l.cjs.map +1 -1
  294. package/dist/providers/ReactQueryProvider.cjs +85 -0
  295. package/dist/providers/ReactQueryProvider.cjs.map +1 -0
  296. package/dist/providers/ReactQueryProvider.d.ts +13 -0
  297. package/dist/providers/ReactQueryProvider.d.ts.map +1 -0
  298. package/dist/providers/ReactQueryProvider.mjs +85 -0
  299. package/dist/providers/ReactQueryProvider.mjs.map +1 -0
  300. package/dist/providers/index.cjs +5 -0
  301. package/dist/{hooks/useAsync → providers}/index.cjs.map +1 -1
  302. package/dist/providers/index.d.ts +2 -0
  303. package/dist/providers/index.d.ts.map +1 -0
  304. package/dist/providers/index.mjs +5 -0
  305. package/dist/{hooks/useAsync → providers}/index.mjs.map +1 -1
  306. package/package.json +30 -20
  307. package/dist/hooks/intlayerAPIHooks.cjs +0 -542
  308. package/dist/hooks/intlayerAPIHooks.cjs.map +0 -1
  309. package/dist/hooks/intlayerAPIHooks.d.ts +0 -968
  310. package/dist/hooks/intlayerAPIHooks.d.ts.map +0 -1
  311. package/dist/hooks/intlayerAPIHooks.mjs +0 -542
  312. package/dist/hooks/intlayerAPIHooks.mjs.map +0 -1
  313. package/dist/hooks/useAsync/index.cjs +0 -8
  314. package/dist/hooks/useAsync/index.d.ts +0 -3
  315. package/dist/hooks/useAsync/index.d.ts.map +0 -1
  316. package/dist/hooks/useAsync/index.mjs +0 -8
  317. package/dist/hooks/useAsync/useAsync.cjs +0 -244
  318. package/dist/hooks/useAsync/useAsync.cjs.map +0 -1
  319. package/dist/hooks/useAsync/useAsync.d.ts +0 -73
  320. package/dist/hooks/useAsync/useAsync.d.ts.map +0 -1
  321. package/dist/hooks/useAsync/useAsync.mjs +0 -244
  322. package/dist/hooks/useAsync/useAsync.mjs.map +0 -1
  323. package/dist/hooks/useAsync/useAsyncStateStore.cjs +0 -150
  324. package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +0 -1
  325. package/dist/hooks/useAsync/useAsyncStateStore.d.ts +0 -52
  326. package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +0 -1
  327. package/dist/hooks/useAsync/useAsyncStateStore.mjs +0 -150
  328. package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +0 -1
  329. package/dist/hooks/useAsync/useAsyncWrapper.cjs +0 -10
  330. package/dist/hooks/useAsync/useAsyncWrapper.cjs.map +0 -1
  331. package/dist/hooks/useAsync/useAsyncWrapper.d.ts +0 -37
  332. package/dist/hooks/useAsync/useAsyncWrapper.d.ts.map +0 -1
  333. package/dist/hooks/useAsync/useAsyncWrapper.mjs +0 -10
  334. package/dist/hooks/useAsync/useAsyncWrapper.mjs.map +0 -1
  335. package/dist/hooks/useGetAllDictionaries.cjs +0 -35
  336. package/dist/hooks/useGetAllDictionaries.cjs.map +0 -1
  337. package/dist/hooks/useGetAllDictionaries.d.ts +0 -11
  338. package/dist/hooks/useGetAllDictionaries.d.ts.map +0 -1
  339. package/dist/hooks/useGetAllDictionaries.mjs +0 -35
  340. package/dist/hooks/useGetAllDictionaries.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactQuery.d.ts","sourceRoot":"","sources":["../../src/hooks/reactQuery.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,mBAAmB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AM,cAAc,EACpB,UAAU,OAAO,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,4CASrD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,MAAM,sBAAsB,sDAU9D,CAAC;AAEF,eAAO,MAAM,qBAAqB,uJAUjC,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,2BAA2B,mGAOvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,6GAOtC,CAAC;AAEF,eAAO,MAAM,kCAAkC,qHAO9C,CAAC;AAEF,eAAO,MAAM,+BAA+B,kHAO3C,CAAC;AAEF,eAAO,MAAM,WAAW,8FAOvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,uIAO7B,CAAC;AAEF,eAAO,MAAM,eAAe,qJAO3B,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,YAAY,GAAI,SAAS,mBAAmB,+CAOxD,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,wBAAwB,mIAOpC,CAAC;AAEF,eAAO,MAAM,4BAA4B,qIAOxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,2JAOlC,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,wBAAwB,0DAOpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,yLAO9B,CAAC"}
@@ -0,0 +1,646 @@
1
+ "use client";
2
+ import { useConfiguration } from "@intlayer/editor-react";
3
+ import { useQuery, useMutation } from "@tanstack/react-query";
4
+ import { useQueryClient } from "@tanstack/react-query";
5
+ import { useAuth } from "./useAuth/useAuth.mjs";
6
+ import "@intlayer/api";
7
+ import "@intlayer/config/built";
8
+ import "../better-auth.CMQ3rA-I-7umXOENE.js";
9
+ import { useIntlayerAuth, useIntlayerOAuth } from "./useIntlayerAPI.mjs";
10
+ const useAuthEnable = ({
11
+ requireUser,
12
+ requireProject,
13
+ requireOrganization
14
+ }) => {
15
+ const configuration = useConfiguration();
16
+ const { oAuth2AccessToken, session } = useAuth({
17
+ intlayerConfiguration: configuration
18
+ });
19
+ const user = session ? session.user : oAuth2AccessToken?.user;
20
+ const organization = session ? session.organization : oAuth2AccessToken?.organization;
21
+ const project = session ? session.project : oAuth2AccessToken?.project;
22
+ const isUserEnabled = requireUser ? Boolean(user) : true;
23
+ const isProjectEnabled = requireProject ? Boolean(project) : true;
24
+ const isOrganizationEnabled = requireOrganization ? Boolean(organization) : true;
25
+ const isEnabled = isUserEnabled && isProjectEnabled && isOrganizationEnabled;
26
+ return {
27
+ enable: isEnabled
28
+ };
29
+ };
30
+ const useAppQuery = (options) => {
31
+ const { requireUser, requireProject, requireOrganization, ...rest } = options;
32
+ const { enable } = useAuthEnable({
33
+ requireUser,
34
+ requireProject,
35
+ requireOrganization
36
+ });
37
+ const result = useQuery({
38
+ ...rest,
39
+ enabled: rest.enabled === false ? false : enable
40
+ });
41
+ return result;
42
+ };
43
+ const useLogin = () => {
44
+ const intlayerAuth = useIntlayerAuth();
45
+ return useMutation({
46
+ mutationKey: ["login"],
47
+ mutationFn: (...args) => intlayerAuth.signInEmail(...args),
48
+ meta: {
49
+ invalidateQueries: [["session"]]
50
+ }
51
+ });
52
+ };
53
+ const useGetVerifyEmailStatus = () => {
54
+ const intlayerAuth = useIntlayerAuth();
55
+ return useMutation({
56
+ mutationKey: ["getVerifyEmailStatus"],
57
+ mutationFn: (args) => intlayerAuth.verifyEmailSession(...args)
58
+ });
59
+ };
60
+ const useRegister = () => {
61
+ const intlayerAuth = useIntlayerAuth();
62
+ return useMutation({
63
+ mutationKey: ["register"],
64
+ mutationFn: (...args) => intlayerAuth.signUpEmail(...args),
65
+ meta: {
66
+ invalidateQueries: [["session"]]
67
+ }
68
+ });
69
+ };
70
+ const useLogout = () => {
71
+ const intlayerAuth = useIntlayerAuth();
72
+ return useMutation({
73
+ mutationKey: ["logout"],
74
+ mutationFn: (...args) => intlayerAuth.signOut(...args),
75
+ meta: {
76
+ invalidateQueries: [
77
+ ["session"],
78
+ ["users"],
79
+ ["organizations"],
80
+ ["projects"],
81
+ ["dictionaries"],
82
+ ["tags"]
83
+ ]
84
+ }
85
+ });
86
+ };
87
+ const useChangePassword = () => {
88
+ const intlayerAuth = useIntlayerAuth();
89
+ return useMutation({
90
+ mutationKey: ["changePassword"],
91
+ mutationFn: (...args) => intlayerAuth.changePasswordSession(...args)
92
+ });
93
+ };
94
+ const useAskResetPassword = () => {
95
+ const intlayerAuth = useIntlayerAuth();
96
+ return useMutation({
97
+ mutationKey: ["askResetPassword"],
98
+ mutationFn: (...args) => intlayerAuth.requestPasswordResetSession(...args)
99
+ });
100
+ };
101
+ const useResetPassword = () => {
102
+ const intlayerAuth = useIntlayerAuth();
103
+ return useMutation({
104
+ mutationKey: ["resetPassword"],
105
+ mutationFn: (...args) => intlayerAuth.resetPassword(...args)
106
+ });
107
+ };
108
+ const useVerifyEmail = () => {
109
+ const intlayerAuth = useIntlayerAuth();
110
+ return useMutation({
111
+ mutationKey: ["verifyEmail"],
112
+ mutationFn: (...args) => intlayerAuth.verifyEmailSession(...args)
113
+ });
114
+ };
115
+ const useGetUserByAccount = () => {
116
+ const intlayerAuth = useIntlayerAuth();
117
+ return useMutation({
118
+ mutationKey: ["user"],
119
+ mutationFn: (...args) => intlayerAuth.accountInfo(...args)
120
+ });
121
+ };
122
+ const useGetUsers = (filters, options) => {
123
+ const intlayerOAuth = useIntlayerOAuth();
124
+ return useAppQuery({
125
+ queryKey: ["users", filters],
126
+ queryFn: () => intlayerOAuth.user.getUsers(filters),
127
+ requireUser: true,
128
+ ...options
129
+ });
130
+ };
131
+ const useCreateUser = () => {
132
+ const intlayerAuth = useIntlayerOAuth();
133
+ return useMutation({
134
+ mutationKey: ["users"],
135
+ mutationFn: intlayerAuth.user.updateUser
136
+ });
137
+ };
138
+ const useUpdateUser = () => {
139
+ const intlayerOAuth = useIntlayerOAuth();
140
+ return useMutation({
141
+ mutationKey: ["users"],
142
+ mutationFn: intlayerOAuth.user.updateUser
143
+ });
144
+ };
145
+ const useDeleteUser = () => {
146
+ const intlayerOAuth = useIntlayerOAuth();
147
+ return useMutation({
148
+ mutationKey: ["users"],
149
+ mutationFn: intlayerOAuth.user.deleteUser
150
+ });
151
+ };
152
+ const useGetOrganizations = (filters) => {
153
+ const intlayerOAuth = useIntlayerOAuth();
154
+ return useAppQuery({
155
+ queryKey: ["organizations", filters],
156
+ queryFn: ({ signal }) => intlayerOAuth.organization.getOrganizations(filters, { signal }),
157
+ requireUser: true
158
+ });
159
+ };
160
+ const useAddOrganization = () => {
161
+ const intlayerOAuth = useIntlayerOAuth();
162
+ return useMutation({
163
+ mutationKey: ["organizations"],
164
+ mutationFn: intlayerOAuth.organization.addOrganization
165
+ });
166
+ };
167
+ const useUpdateOrganization = () => {
168
+ const intlayerOAuth = useIntlayerOAuth();
169
+ return useMutation({
170
+ mutationKey: ["organizations"],
171
+ mutationFn: intlayerOAuth.organization.updateOrganization
172
+ });
173
+ };
174
+ const useUpdateOrganizationMembers = () => {
175
+ const intlayerOAuth = useIntlayerOAuth();
176
+ return useMutation({
177
+ mutationKey: ["organizations"],
178
+ mutationFn: intlayerOAuth.organization.updateOrganizationMembers,
179
+ meta: {
180
+ invalidateQueries: [["organizations"], ["users"]]
181
+ }
182
+ });
183
+ };
184
+ const useAddOrganizationMember = () => {
185
+ const intlayerOAuth = useIntlayerOAuth();
186
+ return useMutation({
187
+ mutationKey: ["organizations"],
188
+ mutationFn: intlayerOAuth.organization.addOrganizationMember,
189
+ meta: {
190
+ invalidateQueries: [["organizations"]]
191
+ }
192
+ });
193
+ };
194
+ const useDeleteOrganization = () => {
195
+ const intlayerOAuth = useIntlayerOAuth();
196
+ return useMutation({
197
+ mutationKey: ["organizations"],
198
+ mutationFn: intlayerOAuth.organization.deleteOrganization,
199
+ meta: {
200
+ invalidateQueries: [["organizations"]]
201
+ }
202
+ });
203
+ };
204
+ const useSelectOrganization = () => {
205
+ const intlayerOAuth = useIntlayerOAuth();
206
+ return useMutation({
207
+ mutationKey: ["session-organizations"],
208
+ mutationFn: intlayerOAuth.organization.selectOrganization,
209
+ meta: {
210
+ invalidateQueries: [
211
+ ["session"],
212
+ ["organizations"],
213
+ ["projects"],
214
+ ["dictionaries"],
215
+ ["tags"],
216
+ ["subscription"],
217
+ ["users"]
218
+ ]
219
+ }
220
+ });
221
+ };
222
+ const useUnselectOrganization = () => {
223
+ const intlayerOAuth = useIntlayerOAuth();
224
+ return useMutation({
225
+ mutationKey: ["session-organizations"],
226
+ mutationFn: intlayerOAuth.organization.unselectOrganization,
227
+ meta: {
228
+ invalidateQueries: [
229
+ ["session"],
230
+ ["organizations"],
231
+ ["projects"],
232
+ ["dictionaries"],
233
+ ["tags"],
234
+ ["subscription"],
235
+ ["users"]
236
+ ]
237
+ }
238
+ });
239
+ };
240
+ const useGetProjects = (filters) => {
241
+ const intlayerOAuth = useIntlayerOAuth();
242
+ return useAppQuery({
243
+ queryKey: ["projects", filters],
244
+ queryFn: ({ signal }) => intlayerOAuth.project.getProjects(filters, { signal }),
245
+ requireUser: true,
246
+ requireOrganization: true
247
+ });
248
+ };
249
+ const useAddProject = () => {
250
+ const intlayerOAuth = useIntlayerOAuth();
251
+ return useMutation({
252
+ mutationKey: ["projects"],
253
+ mutationFn: intlayerOAuth.project.addProject,
254
+ meta: {
255
+ invalidateQueries: [["projects"]]
256
+ }
257
+ });
258
+ };
259
+ const useUpdateProject = () => {
260
+ const intlayerOAuth = useIntlayerOAuth();
261
+ return useMutation({
262
+ mutationKey: ["projects"],
263
+ mutationFn: intlayerOAuth.project.updateProject,
264
+ meta: {
265
+ invalidateQueries: [["projects"]]
266
+ }
267
+ });
268
+ };
269
+ const useUpdateProjectMembers = () => {
270
+ const intlayerOAuth = useIntlayerOAuth();
271
+ return useMutation({
272
+ mutationKey: ["projects"],
273
+ mutationFn: intlayerOAuth.project.updateProjectMembers,
274
+ meta: {
275
+ invalidateQueries: [["projects"]]
276
+ }
277
+ });
278
+ };
279
+ const useDeleteProject = () => {
280
+ const intlayerOAuth = useIntlayerOAuth();
281
+ return useMutation({
282
+ mutationKey: ["projects"],
283
+ mutationFn: intlayerOAuth.project.deleteProject,
284
+ meta: {
285
+ invalidateQueries: [["projects"]]
286
+ }
287
+ });
288
+ };
289
+ const useSelectProject = () => {
290
+ const intlayerOAuth = useIntlayerOAuth();
291
+ return useMutation({
292
+ mutationKey: ["session-projects"],
293
+ mutationFn: intlayerOAuth.project.selectProject,
294
+ meta: {
295
+ invalidateQueries: [
296
+ ["projects"],
297
+ ["dictionaries"],
298
+ ["tags"],
299
+ ["subscription"],
300
+ ["users"],
301
+ ["session"]
302
+ ]
303
+ }
304
+ });
305
+ };
306
+ const useUnselectProject = () => {
307
+ const intlayerOAuth = useIntlayerOAuth();
308
+ return useMutation({
309
+ mutationKey: ["session-projects"],
310
+ mutationFn: intlayerOAuth.project.unselectProject,
311
+ meta: {
312
+ invalidateQueries: [
313
+ ["projects"],
314
+ ["dictionaries"],
315
+ ["tags"],
316
+ ["subscription"],
317
+ ["users"],
318
+ ["session"]
319
+ ]
320
+ }
321
+ });
322
+ };
323
+ const useAddNewAccessKey = () => {
324
+ const intlayerOAuth = useIntlayerOAuth();
325
+ return useMutation({
326
+ mutationKey: ["projects"],
327
+ mutationFn: intlayerOAuth.project.addNewAccessKey,
328
+ meta: {
329
+ invalidateQueries: [["projects"]]
330
+ }
331
+ });
332
+ };
333
+ const useDeleteAccessKey = () => {
334
+ const intlayerOAuth = useIntlayerOAuth();
335
+ return useMutation({
336
+ mutationKey: ["projects"],
337
+ mutationFn: intlayerOAuth.project.deleteAccessKey,
338
+ meta: {
339
+ invalidateQueries: [["projects"]]
340
+ }
341
+ });
342
+ };
343
+ const useRefreshAccessKey = () => {
344
+ const intlayerOAuth = useIntlayerOAuth();
345
+ return useMutation({
346
+ mutationKey: ["projects"],
347
+ mutationFn: intlayerOAuth.project.refreshAccessKey,
348
+ meta: {
349
+ invalidateQueries: [["projects"]]
350
+ }
351
+ });
352
+ };
353
+ const useGetDictionaries = (filters) => {
354
+ const intlayerOAuth = useIntlayerOAuth();
355
+ return useAppQuery({
356
+ queryKey: ["dictionaries", filters],
357
+ queryFn: ({ signal }) => intlayerOAuth.dictionary.getDictionaries(filters, { signal }),
358
+ requireUser: true,
359
+ requireOrganization: true,
360
+ requireProject: true
361
+ });
362
+ };
363
+ const useGetDictionariesKeys = (options) => {
364
+ const intlayerOAuth = useIntlayerOAuth();
365
+ return useAppQuery({
366
+ queryKey: ["dictionariesKeys", options],
367
+ queryFn: intlayerOAuth.dictionary.getDictionariesKeys,
368
+ requireUser: true,
369
+ requireOrganization: true,
370
+ requireProject: true,
371
+ ...options
372
+ });
373
+ };
374
+ const useGetDictionary = (dictionaryKey, version) => {
375
+ const intlayerOAuth = useIntlayerOAuth();
376
+ return useAppQuery({
377
+ queryKey: ["dictionary", dictionaryKey],
378
+ queryFn: ({ signal }) => intlayerOAuth.dictionary.getDictionary(dictionaryKey, version, {
379
+ signal
380
+ }),
381
+ requireUser: true,
382
+ requireOrganization: true,
383
+ requireProject: true
384
+ });
385
+ };
386
+ const useAddDictionary = () => {
387
+ const intlayerOAuth = useIntlayerOAuth();
388
+ return useMutation({
389
+ mutationKey: ["dictionaries"],
390
+ mutationFn: intlayerOAuth.dictionary.addDictionary,
391
+ meta: {
392
+ invalidateQueries: [["dictionaries"], ["dictionariesKeys"]]
393
+ }
394
+ });
395
+ };
396
+ const usePushDictionaries = () => {
397
+ const intlayerOAuth = useIntlayerOAuth();
398
+ return useMutation({
399
+ mutationKey: ["dictionaries"],
400
+ mutationFn: intlayerOAuth.dictionary.pushDictionaries,
401
+ meta: {
402
+ invalidateQueries: [["dictionaries"], ["dictionariesKeys"]]
403
+ }
404
+ });
405
+ };
406
+ const useUpdateDictionary = () => {
407
+ const intlayerOAuth = useIntlayerOAuth();
408
+ return useMutation({
409
+ mutationKey: ["dictionaries"],
410
+ mutationFn: intlayerOAuth.dictionary.updateDictionary,
411
+ meta: {
412
+ invalidateQueries: [["dictionaries"], ["dictionariesKeys"]]
413
+ }
414
+ });
415
+ };
416
+ const useDeleteDictionary = () => {
417
+ const intlayerOAuth = useIntlayerOAuth();
418
+ return useMutation({
419
+ mutationKey: ["dictionaries"],
420
+ mutationFn: intlayerOAuth.dictionary.deleteDictionary,
421
+ meta: {
422
+ invalidateQueries: [["dictionaries"], ["dictionariesKeys"]]
423
+ }
424
+ });
425
+ };
426
+ const useGetTags = (filters) => {
427
+ const intlayerOAuth = useIntlayerOAuth();
428
+ return useAppQuery({
429
+ queryKey: ["tags", filters],
430
+ queryFn: ({ signal }) => intlayerOAuth.tag.getTags(filters, { signal }),
431
+ requireUser: true,
432
+ requireOrganization: true,
433
+ requireProject: true
434
+ });
435
+ };
436
+ const useAddTag = () => {
437
+ const intlayerOAuth = useIntlayerOAuth();
438
+ return useMutation({
439
+ mutationKey: ["tags"],
440
+ mutationFn: intlayerOAuth.tag.addTag,
441
+ meta: {
442
+ invalidateQueries: [["tags"]]
443
+ }
444
+ });
445
+ };
446
+ const useUpdateTag = () => {
447
+ const intlayerOAuth = useIntlayerOAuth();
448
+ return useMutation({
449
+ mutationKey: ["tags"],
450
+ mutationFn: (v) => intlayerOAuth.tag.updateTag(v.tagId, v.tag),
451
+ meta: {
452
+ invalidateQueries: [["tags"]]
453
+ }
454
+ });
455
+ };
456
+ const useDeleteTag = () => {
457
+ const intlayerOAuth = useIntlayerOAuth();
458
+ return useMutation({
459
+ mutationKey: ["tags"],
460
+ mutationFn: intlayerOAuth.tag.deleteTag,
461
+ meta: {
462
+ invalidateQueries: [["tags"]]
463
+ }
464
+ });
465
+ };
466
+ const useGetPricing = (body, options) => {
467
+ const intlayerOAuth = useIntlayerOAuth();
468
+ return useQuery({
469
+ queryKey: ["pricing", body],
470
+ queryFn: ({ signal }) => intlayerOAuth.stripe.getPricing(body, { signal }),
471
+ ...options
472
+ });
473
+ };
474
+ const useGetSubscription = (body) => {
475
+ const intlayerOAuth = useIntlayerOAuth();
476
+ return useAppQuery({
477
+ queryKey: ["subscription", body],
478
+ queryFn: ({ signal }) => intlayerOAuth.stripe.getSubscription(body, { signal }),
479
+ requireUser: true,
480
+ requireOrganization: true
481
+ });
482
+ };
483
+ const useCancelSubscription = () => {
484
+ const intlayerOAuth = useIntlayerOAuth();
485
+ return useMutation({
486
+ mutationKey: ["subscription"],
487
+ mutationFn: intlayerOAuth.stripe.cancelSubscription,
488
+ meta: {
489
+ invalidateQueries: [["session"], ["subscription"]]
490
+ }
491
+ });
492
+ };
493
+ const useTranslateJSONDeclaration = () => {
494
+ const intlayerOAuth = useIntlayerOAuth();
495
+ return useMutation({
496
+ mutationKey: ["ai-translateJSON"],
497
+ mutationFn: intlayerOAuth.ai.translateJSON
498
+ });
499
+ };
500
+ const useAuditContentDeclaration = () => {
501
+ const intlayerOAuth = useIntlayerOAuth();
502
+ return useMutation({
503
+ mutationKey: ["ai-auditContentDeclaration"],
504
+ mutationFn: intlayerOAuth.ai.auditContentDeclaration
505
+ });
506
+ };
507
+ const useAuditContentDeclarationMetadata = () => {
508
+ const intlayerOAuth = useIntlayerOAuth();
509
+ return useMutation({
510
+ mutationKey: ["ai-auditContentDeclarationMetadata"],
511
+ mutationFn: intlayerOAuth.ai.auditContentDeclarationMetadata
512
+ });
513
+ };
514
+ const useAuditContentDeclarationField = () => {
515
+ const intlayerOAuth = useIntlayerOAuth();
516
+ return useMutation({
517
+ mutationKey: ["ai-auditContentDeclarationField"],
518
+ mutationFn: intlayerOAuth.ai.auditContentDeclarationField
519
+ });
520
+ };
521
+ const useAuditTag = () => {
522
+ const intlayerOAuth = useIntlayerOAuth();
523
+ return useMutation({
524
+ mutationKey: ["ai-auditTag"],
525
+ mutationFn: intlayerOAuth.ai.auditTag
526
+ });
527
+ };
528
+ const useAskDocQuestion = () => {
529
+ const intlayerOAuth = useIntlayerOAuth();
530
+ return useMutation({
531
+ mutationKey: [],
532
+ mutationFn: intlayerOAuth.ai.askDocQuestion
533
+ });
534
+ };
535
+ const useAutocomplete = () => {
536
+ const intlayerOAuth = useIntlayerOAuth();
537
+ return useMutation({
538
+ mutationKey: ["ai-autocomplete"],
539
+ mutationFn: intlayerOAuth.ai.autocomplete
540
+ });
541
+ };
542
+ const useSearchDoc = (params) => {
543
+ const intlayerOAuth = useIntlayerOAuth();
544
+ return useQuery({
545
+ queryKey: ["search", params],
546
+ queryFn: () => intlayerOAuth.search.searchDoc(params)
547
+ });
548
+ };
549
+ const useSubscribeToNewsletter = () => {
550
+ const intlayerOAuth = useIntlayerOAuth();
551
+ return useMutation({
552
+ mutationKey: ["newsletter"],
553
+ mutationFn: intlayerOAuth.newsletter.subscribeToNewsletter
554
+ });
555
+ };
556
+ const useUnsubscribeFromNewsletter = () => {
557
+ const intlayerOAuth = useIntlayerOAuth();
558
+ return useMutation({
559
+ mutationKey: ["newsletter"],
560
+ mutationFn: intlayerOAuth.newsletter.unsubscribeFromNewsletter
561
+ });
562
+ };
563
+ const useGetNewsletterStatus = () => {
564
+ const intlayerOAuth = useIntlayerOAuth();
565
+ return useMutation({
566
+ mutationKey: ["newsletter"],
567
+ mutationFn: intlayerOAuth.newsletter.getNewsletterStatus
568
+ });
569
+ };
570
+ const useGetEditorDictionaries = () => {
571
+ const intlayerOAuth = useIntlayerOAuth();
572
+ return useQuery({
573
+ queryKey: ["editor", "dictionaries"],
574
+ queryFn: intlayerOAuth.editor.getDictionaries
575
+ });
576
+ };
577
+ const useWriteDictionary = () => {
578
+ const intlayerOAuth = useIntlayerOAuth();
579
+ return useMutation({
580
+ mutationKey: ["editor", "dictionaries"],
581
+ mutationFn: intlayerOAuth.editor.writeDictionary
582
+ });
583
+ };
584
+ export {
585
+ useAddDictionary,
586
+ useAddNewAccessKey,
587
+ useAddOrganization,
588
+ useAddOrganizationMember,
589
+ useAddProject,
590
+ useAddTag,
591
+ useAppQuery,
592
+ useAskDocQuestion,
593
+ useAskResetPassword,
594
+ useAuditContentDeclaration,
595
+ useAuditContentDeclarationField,
596
+ useAuditContentDeclarationMetadata,
597
+ useAuditTag,
598
+ useAutocomplete,
599
+ useCancelSubscription,
600
+ useChangePassword,
601
+ useCreateUser,
602
+ useDeleteAccessKey,
603
+ useDeleteDictionary,
604
+ useDeleteOrganization,
605
+ useDeleteProject,
606
+ useDeleteTag,
607
+ useDeleteUser,
608
+ useGetDictionaries,
609
+ useGetDictionariesKeys,
610
+ useGetDictionary,
611
+ useGetEditorDictionaries,
612
+ useGetNewsletterStatus,
613
+ useGetOrganizations,
614
+ useGetPricing,
615
+ useGetProjects,
616
+ useGetSubscription,
617
+ useGetTags,
618
+ useGetUserByAccount,
619
+ useGetUsers,
620
+ useGetVerifyEmailStatus,
621
+ useLogin,
622
+ useLogout,
623
+ usePushDictionaries,
624
+ useQueryClient,
625
+ useRefreshAccessKey,
626
+ useRegister,
627
+ useResetPassword,
628
+ useSearchDoc,
629
+ useSelectOrganization,
630
+ useSelectProject,
631
+ useSubscribeToNewsletter,
632
+ useTranslateJSONDeclaration,
633
+ useUnselectOrganization,
634
+ useUnselectProject,
635
+ useUnsubscribeFromNewsletter,
636
+ useUpdateDictionary,
637
+ useUpdateOrganization,
638
+ useUpdateOrganizationMembers,
639
+ useUpdateProject,
640
+ useUpdateProjectMembers,
641
+ useUpdateTag,
642
+ useUpdateUser,
643
+ useVerifyEmail,
644
+ useWriteDictionary
645
+ };
646
+ //# sourceMappingURL=reactQuery.mjs.map