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