@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/design-system",
3
- "version": "5.8.1",
3
+ "version": "6.0.0-canary.1",
4
4
  "private": false,
5
5
  "description": "Intlayer design system, including UI components used in the Intlayer editor, website, and visual editor/CMS.",
6
6
  "keywords": [
@@ -42,6 +42,11 @@
42
42
  "import": "./dist/hooks/index.mjs",
43
43
  "require": "./dist/hooks/index.cjs"
44
44
  },
45
+ "./providers": {
46
+ "types": "./dist/providers/index.d.ts",
47
+ "import": "./dist/providers/index.mjs",
48
+ "require": "./dist/providers/index.cjs"
49
+ },
45
50
  "./libs": {
46
51
  "types": "./dist/libs/index.d.ts",
47
52
  "import": "./dist/libs/index.mjs",
@@ -80,13 +85,13 @@
80
85
  "tailwind-merge": "^3.3.0",
81
86
  "zod": "^3.25.56",
82
87
  "zustand": "^4.5.6",
83
- "@intlayer/config": "5.8.1",
84
- "@intlayer/core": "5.8.1",
85
- "@intlayer/dictionaries-entry": "5.8.1",
86
- "@intlayer/editor-react": "5.8.1",
87
- "intlayer": "5.8.1",
88
- "react-intlayer": "5.8.1",
89
- "@intlayer/api": "5.8.1"
88
+ "@intlayer/dictionaries-entry": "6.0.0-canary.1",
89
+ "@intlayer/config": "6.0.0-canary.1",
90
+ "@intlayer/core": "6.0.0-canary.1",
91
+ "@intlayer/api": "6.0.0-canary.1",
92
+ "intlayer": "6.0.0-canary.1",
93
+ "@intlayer/editor-react": "6.0.0-canary.1",
94
+ "react-intlayer": "6.0.0-canary.1"
90
95
  },
91
96
  "devDependencies": {
92
97
  "@chromatic-com/storybook": "^3.2.7",
@@ -101,6 +106,9 @@
101
106
  "@tailwindcss/aspect-ratio": "^0.4.2",
102
107
  "@tailwindcss/cli": "^4.0.14",
103
108
  "@tailwindcss/vite": "^4.0.14",
109
+ "@tanstack/query-persist-client-core": "^5.85.5",
110
+ "@tanstack/query-sync-storage-persister": "^5.85.5",
111
+ "@tanstack/react-query": "^5.85.5",
104
112
  "@testing-library/jest-dom": "^6.6.3",
105
113
  "@testing-library/react": "^16.2.0",
106
114
  "@testing-library/user-event": "^14.6.1",
@@ -111,26 +119,28 @@
111
119
  "@typescript-eslint/parser": "^8.33.1",
112
120
  "@vitejs/plugin-react": "^5.0.0",
113
121
  "concurrently": "^9.2.0",
114
- "eslint": "^9.33.0",
122
+ "eslint": "^9.34.0",
115
123
  "fast-glob": "^3.3.3",
116
124
  "lucide-react": "^0.541.0",
117
- "prettier": "^3.5.3",
125
+ "prettier": "^3.6.2",
118
126
  "rimraf": "^6.0.1",
119
127
  "storybook": "^8.6.14",
120
128
  "tailwindcss": "^4.1.8",
121
129
  "typescript": "^5.9.2",
122
130
  "vite": "^7.1.2",
123
131
  "vite-plugin-dts": "^4.5.3",
124
- "vitest": "^3.2.2",
132
+ "vitest": "^3.2.4",
125
133
  "@utils/eslint-config": "1.0.4",
126
134
  "@utils/ts-config": "1.0.4",
127
135
  "@utils/ts-config-types": "1.0.4",
128
136
  "@utils/tsup-config": "1.0.4",
129
- "@intlayer/backend": "5.8.1",
130
- "vite-intlayer": "5.8.1"
137
+ "vite-intlayer": "6.0.0-canary.1"
131
138
  },
132
139
  "peerDependencies": {
133
140
  "@monaco-editor/react": "^4.7.0",
141
+ "@tanstack/query-persist-client-core": "^5.85.5",
142
+ "@tanstack/query-sync-storage-persister": "^5.85.5",
143
+ "@tanstack/react-query": "^5.85.5",
134
144
  "clsx": "^2.1.1",
135
145
  "framer-motion": "^12.16.0",
136
146
  "fuse.js": "^7.1.0",
@@ -138,13 +148,13 @@
138
148
  "react-dom": ">=16.0.0",
139
149
  "tailwind-merge": "^3.3.0",
140
150
  "zustand": "^4.5.6",
141
- "@intlayer/api": "5.8.1",
142
- "@intlayer/core": "5.8.1",
143
- "@intlayer/config": "5.8.1",
144
- "@intlayer/dictionaries-entry": "5.8.1",
145
- "@intlayer/editor-react": "5.8.1",
146
- "intlayer": "5.8.1",
147
- "react-intlayer": "5.8.1"
151
+ "@intlayer/config": "6.0.0-canary.1",
152
+ "@intlayer/dictionaries-entry": "6.0.0-canary.1",
153
+ "@intlayer/api": "6.0.0-canary.1",
154
+ "@intlayer/core": "6.0.0-canary.1",
155
+ "react-intlayer": "6.0.0-canary.1",
156
+ "intlayer": "6.0.0-canary.1",
157
+ "@intlayer/editor-react": "6.0.0-canary.1"
148
158
  },
149
159
  "scripts": {
150
160
  "build": "pnpm clean & pnpm build:ci",
@@ -1,542 +0,0 @@
1
- "use client";
2
- "use strict";
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const editorReact = require("@intlayer/editor-react");
5
- require("../components/Toaster/Toast.cjs");
6
- const components_Toaster_useToast = require("../components/Toaster/useToast.cjs");
7
- require("react/jsx-runtime");
8
- const hooks_useAsync_useAsync = require("./useAsync/useAsync.cjs");
9
- const hooks_useAuth_useAuth = require("./useAuth/useAuth.cjs");
10
- require("@intlayer/api");
11
- require("@intlayer/config/built");
12
- require("../better-auth.CMQ3rA-I-C2nBKRMa.cjs");
13
- require("./useAsync/useAsyncStateStore.cjs");
14
- const hooks_useIntlayerAPI = require("./useIntlayerAPI.cjs");
15
- var define_process_env_default = {};
16
- const formatErrorCode = (errorCode) => errorCode.split("_").join(" ");
17
- const useErrorHandling = (options) => {
18
- const { toast } = components_Toaster_useToast.useToast();
19
- return {
20
- ...options,
21
- onError: (errorMessage) => {
22
- let error;
23
- try {
24
- if (typeof errorMessage === "undefined") return;
25
- error = JSON.parse(errorMessage);
26
- } catch (e) {
27
- error = errorMessage;
28
- }
29
- [error].flatMap((error2) => error2).forEach(
30
- (error2) => toast({
31
- title: formatErrorCode(
32
- (define_process_env_default.NODE_ENV === "production" ? error2.title : error2.code) ?? "Error"
33
- ),
34
- description: error2.message ?? errorMessage ?? "An error occurred",
35
- variant: "error"
36
- })
37
- );
38
- options.onError?.(errorMessage);
39
- },
40
- onSuccess: (data) => {
41
- if (data?.error) {
42
- toast({
43
- title: formatErrorCode(
44
- data.error.title ?? data.error.code ?? "Error"
45
- ),
46
- description: data.error.message ?? data.error.code ?? "An error occurred",
47
- variant: "error"
48
- });
49
- }
50
- if (data?.message)
51
- toast({
52
- title: data.message,
53
- description: data.description,
54
- variant: "success"
55
- });
56
- options.onSuccess?.(data);
57
- }
58
- };
59
- };
60
- const useAuthEnable = (options, { requireUser, requireProject, requireOrganization } = {}) => {
61
- const configuration = editorReact.useConfiguration();
62
- const { oAuth2AccessToken, session } = hooks_useAuth_useAuth.useAuth({
63
- intlayerConfiguration: configuration
64
- });
65
- const isEnabledOption = options?.enable ?? true;
66
- const user = session ? session.user : oAuth2AccessToken?.user;
67
- const organization = session ? session.organization : oAuth2AccessToken?.organization;
68
- const project = session ? session.project : oAuth2AccessToken?.project;
69
- const isUserEnabled = requireUser ? Boolean(user) : true;
70
- const isProjectEnabled = requireProject ? Boolean(project) : true;
71
- const isOrganizationEnabled = requireOrganization ? Boolean(organization) : true;
72
- const isEnabled = isEnabledOption && isUserEnabled && isProjectEnabled && isOrganizationEnabled;
73
- return {
74
- ...options,
75
- enable: isEnabled
76
- };
77
- };
78
- const useAppAsync = (key, asyncFunction, options, authOptions) => {
79
- const optionsWithAuth = useAuthEnable(options ?? {}, authOptions);
80
- const optionsWithErrorHandling = useErrorHandling(optionsWithAuth);
81
- return hooks_useAsync_useAsync.useAsync(key, asyncFunction, optionsWithErrorHandling);
82
- };
83
- const useEditorAsync = (key, asyncFunction, options) => {
84
- const optionsWithErrorHandling = useErrorHandling(options ?? {});
85
- return hooks_useAsync_useAsync.useAsync(key, asyncFunction, optionsWithErrorHandling);
86
- };
87
- const useLogin = (args) => useAppAsync("login", hooks_useIntlayerAPI.useIntlayerAuth().signInEmail, {
88
- invalidateQueries: ["getSession"],
89
- ...args
90
- });
91
- const useGetVerifyEmailStatus = (args) => useAppAsync(
92
- "getVerifyEmailStatus",
93
- hooks_useIntlayerAPI.useIntlayerAuth().verifyEmailSession,
94
- args
95
- );
96
- const useRegister = (args) => useAppAsync("register", hooks_useIntlayerAPI.useIntlayerAuth().signUpEmail, {
97
- invalidateQueries: ["getSession"],
98
- ...args
99
- });
100
- const useLogout = (args) => useAppAsync("logout", hooks_useIntlayerAPI.useIntlayerAuth().signOut, {
101
- ...args
102
- });
103
- const useChangePassword = (args) => useAppAsync("changePassword", hooks_useIntlayerAPI.useIntlayerAuth().changePasswordSession, args);
104
- const useAskResetPassword = (args) => useAppAsync(
105
- "askResetPassword",
106
- hooks_useIntlayerAPI.useIntlayerAuth().requestPasswordResetSession,
107
- args
108
- );
109
- const useResetPassword = (args) => useAppAsync("resetPassword", hooks_useIntlayerAPI.useIntlayerAuth().resetPassword, args);
110
- const useVerifyEmail = (args) => useAppAsync("verifyEmail", hooks_useIntlayerAPI.useIntlayerAuth().verifyEmailSession, args);
111
- const useGetUserByAccount = (args) => useAppAsync("getUserByAccount", hooks_useIntlayerAPI.useIntlayerAuth().accountInfo, args);
112
- const useGetUsers = (args) => useAppAsync(
113
- "getUsers",
114
- hooks_useIntlayerAPI.useIntlayerOAuth().user.getUsers,
115
- {
116
- cache: true,
117
- store: true,
118
- retryLimit: 3,
119
- autoFetch: true,
120
- revalidateTime: 5 * 60 * 1e3,
121
- // 5 minutes
122
- ...args
123
- },
124
- {
125
- requireUser: true
126
- }
127
- );
128
- const useCreateUser = (args) => useAppAsync("createUser", hooks_useIntlayerAPI.useIntlayerAuth().updateUser, {
129
- invalidateQueries: ["getUsers"],
130
- ...args
131
- });
132
- const useUpdateUser = (args) => useAppAsync("updateUser", hooks_useIntlayerAPI.useIntlayerOAuth().user.updateUser, {
133
- invalidateQueries: ["getSession"],
134
- ...args
135
- });
136
- const useDeleteUser = (args) => useAppAsync("deleteUser", hooks_useIntlayerAPI.useIntlayerOAuth().user.deleteUser, {
137
- invalidateQueries: ["getUsers"],
138
- ...args
139
- });
140
- const useGetOrganizations = (args) => useAppAsync(
141
- "getOrganizations",
142
- hooks_useIntlayerAPI.useIntlayerOAuth().organization.getOrganizations,
143
- {
144
- cache: true,
145
- store: true,
146
- retryLimit: 3,
147
- autoFetch: true,
148
- revalidation: true,
149
- revalidateTime: 5 * 60 * 1e3,
150
- // 5 minutes
151
- ...args
152
- },
153
- {
154
- requireUser: true
155
- }
156
- );
157
- const useAddOrganization = (args) => useAppAsync(
158
- "addOrganization",
159
- hooks_useIntlayerAPI.useIntlayerOAuth().organization.addOrganization,
160
- {
161
- invalidateQueries: ["getOrganizations"],
162
- ...args
163
- }
164
- );
165
- const useUpdateOrganization = (args) => useAppAsync(
166
- "updateOrganization",
167
- hooks_useIntlayerAPI.useIntlayerOAuth().organization.updateOrganization,
168
- {
169
- invalidateQueries: ["getSession"],
170
- ...args
171
- }
172
- );
173
- const useUpdateOrganizationMembers = (args) => useAppAsync(
174
- "updateOrganizationMembers",
175
- hooks_useIntlayerAPI.useIntlayerOAuth().organization.updateOrganizationMembers,
176
- {
177
- invalidateQueries: ["getOrganizations", "getSession"],
178
- ...args
179
- }
180
- );
181
- const useAddOrganizationMember = (args) => useAppAsync(
182
- "addOrganizationMember",
183
- hooks_useIntlayerAPI.useIntlayerOAuth().organization.addOrganizationMember,
184
- {
185
- invalidateQueries: ["getOrganizations", "getSession"],
186
- ...args
187
- }
188
- );
189
- const useDeleteOrganization = (args) => useAppAsync(
190
- "deleteOrganization",
191
- hooks_useIntlayerAPI.useIntlayerOAuth().organization.deleteOrganization,
192
- {
193
- invalidateQueries: ["getOrganizations", "getSession"],
194
- ...args
195
- }
196
- );
197
- const useSelectOrganization = (args) => useAppAsync(
198
- "selectOrganization",
199
- hooks_useIntlayerAPI.useIntlayerOAuth().organization.selectOrganization,
200
- {
201
- invalidateQueries: ["getSession"],
202
- ...args
203
- }
204
- );
205
- const useUnselectOrganization = (args) => useAppAsync(
206
- "unselectOrganization",
207
- hooks_useIntlayerAPI.useIntlayerOAuth().organization.unselectOrganization,
208
- {
209
- invalidateQueries: ["getSession"],
210
- ...args
211
- }
212
- );
213
- const useGetProjects = (args) => useAppAsync(
214
- "getProjects",
215
- hooks_useIntlayerAPI.useIntlayerOAuth().project.getProjects,
216
- {
217
- cache: true,
218
- store: true,
219
- retryLimit: 3,
220
- autoFetch: true,
221
- revalidation: true,
222
- revalidateTime: 5 * 60 * 1e3,
223
- // 5 minutes
224
- ...args
225
- },
226
- {
227
- requireUser: true,
228
- requireOrganization: true
229
- }
230
- );
231
- const useAddProject = (args) => useAppAsync("addProject", hooks_useIntlayerAPI.useIntlayerOAuth().project.addProject, {
232
- invalidateQueries: ["getProjects"],
233
- ...args
234
- });
235
- const useUpdateProject = (args) => useAppAsync("updateProject", hooks_useIntlayerAPI.useIntlayerOAuth().project.updateProject, {
236
- invalidateQueries: ["getSession"],
237
- ...args
238
- });
239
- const useUpdateProjectMembers = (args) => useAppAsync(
240
- "updateProjectMembers",
241
- hooks_useIntlayerAPI.useIntlayerOAuth().project.updateProjectMembers,
242
- {
243
- invalidateQueries: ["getSession"],
244
- ...args
245
- }
246
- );
247
- const useDeleteProject = (args) => useAppAsync("deleteProject", hooks_useIntlayerAPI.useIntlayerOAuth().project.deleteProject, {
248
- invalidateQueries: ["getProjects", "getSession"],
249
- ...args
250
- });
251
- const useSelectProject = (args) => useAppAsync("selectProject", hooks_useIntlayerAPI.useIntlayerOAuth().project.selectProject, {
252
- invalidateQueries: ["getSession"],
253
- ...args
254
- });
255
- const useUnselectProject = (args) => useAppAsync("unselectProject", hooks_useIntlayerAPI.useIntlayerOAuth().project.unselectProject, {
256
- invalidateQueries: ["getSession"],
257
- ...args
258
- });
259
- const useAddNewAccessKey = (args) => useAppAsync("addNewAccessKey", hooks_useIntlayerAPI.useIntlayerOAuth().project.addNewAccessKey, {
260
- invalidateQueries: ["getSession"],
261
- ...args
262
- });
263
- const useDeleteAccessKey = (args) => useAppAsync("deleteAccessKey", hooks_useIntlayerAPI.useIntlayerOAuth().project.deleteAccessKey, {
264
- invalidateQueries: ["getSession"],
265
- ...args
266
- });
267
- const useRefreshAccessKey = (args) => useAppAsync("refreshAccessKey", hooks_useIntlayerAPI.useIntlayerOAuth().project.refreshAccessKey, {
268
- invalidateQueries: ["getSession"],
269
- ...args
270
- });
271
- const useGetDictionaries = (args) => useAppAsync(
272
- "getDictionaries",
273
- hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.getDictionaries,
274
- {
275
- cache: true,
276
- store: true,
277
- retryLimit: 3,
278
- autoFetch: true,
279
- revalidation: true,
280
- revalidateTime: 5 * 60 * 1e3,
281
- // 5 minutes
282
- ...args
283
- },
284
- {
285
- requireUser: true,
286
- requireOrganization: true,
287
- requireProject: true
288
- }
289
- );
290
- const useGetDictionariesKeys = (args) => useAppAsync(
291
- "getDictionariesKeys",
292
- hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.getDictionariesKeys,
293
- {
294
- cache: true,
295
- store: true,
296
- retryLimit: 3,
297
- autoFetch: true,
298
- revalidation: true,
299
- revalidateTime: 5 * 60 * 1e3,
300
- // 5 minutes
301
- ...args
302
- },
303
- {
304
- requireUser: true,
305
- requireOrganization: true,
306
- requireProject: true
307
- }
308
- );
309
- const useGetDictionary = (args) => useAppAsync(
310
- "getDictionary",
311
- hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.getDictionary,
312
- {
313
- cache: true,
314
- store: true,
315
- retryLimit: 3,
316
- revalidation: true,
317
- revalidateTime: 5 * 60 * 1e3,
318
- // 5 minutes
319
- ...args
320
- },
321
- {
322
- requireUser: true,
323
- requireOrganization: true,
324
- requireProject: true
325
- }
326
- );
327
- const useAddDictionary = (args) => useAppAsync("addDictionary", hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.addDictionary, {
328
- invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
329
- ...args
330
- });
331
- const usePushDictionaries = (args) => useAppAsync(
332
- "pushDictionaries",
333
- hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.pushDictionaries,
334
- {
335
- invalidateQueries: [
336
- "getDictionaries",
337
- "getDictionary",
338
- "getDictionariesKeys"
339
- ],
340
- ...args
341
- }
342
- );
343
- const useUpdateDictionary = (args) => useAppAsync(
344
- "updateDictionary",
345
- hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.updateDictionary,
346
- {
347
- invalidateQueries: ["getDictionaries", "getDictionary"],
348
- ...args
349
- }
350
- );
351
- const useDeleteDictionary = (args) => useAppAsync(
352
- "deleteDictionary",
353
- hooks_useIntlayerAPI.useIntlayerOAuth().dictionary.deleteDictionary,
354
- {
355
- invalidateQueries: [
356
- "getDictionaries",
357
- "getDictionary",
358
- "getDictionariesKeys"
359
- ],
360
- ...args
361
- }
362
- );
363
- const useGetTags = (args) => useAppAsync(
364
- "getTags",
365
- hooks_useIntlayerAPI.useIntlayerOAuth().tag.getTags,
366
- {
367
- cache: true,
368
- store: true,
369
- retryLimit: 3,
370
- autoFetch: true,
371
- revalidation: true,
372
- revalidateTime: 5 * 60 * 1e3,
373
- // 5 minutes
374
- ...args
375
- },
376
- {
377
- requireUser: true,
378
- requireOrganization: true
379
- }
380
- );
381
- const useAddTag = (args) => useAppAsync("addTag", hooks_useIntlayerAPI.useIntlayerOAuth().tag.addTag, {
382
- invalidateQueries: ["getTags"],
383
- ...args
384
- });
385
- const useUpdateTag = (args) => useAppAsync("updateTag", hooks_useIntlayerAPI.useIntlayerOAuth().tag.updateTag, {
386
- invalidateQueries: ["getTags"],
387
- ...args
388
- });
389
- const useDeleteTag = (args) => useAppAsync("deleteTag", hooks_useIntlayerAPI.useIntlayerOAuth().tag.deleteTag, {
390
- invalidateQueries: ["getTags"],
391
- ...args
392
- });
393
- const useGetPricing = (args) => useAppAsync("getPricing", hooks_useIntlayerAPI.useIntlayerOAuth().stripe.getPricing, {
394
- store: true,
395
- cache: true,
396
- ...args
397
- });
398
- const useGetSubscription = (args) => useAppAsync(
399
- "getSubscription",
400
- hooks_useIntlayerAPI.useIntlayerOAuth().stripe.getSubscription,
401
- args,
402
- {
403
- requireUser: true,
404
- requireOrganization: true
405
- }
406
- );
407
- const useCancelSubscription = (args) => useAppAsync(
408
- "cancelSubscription",
409
- hooks_useIntlayerAPI.useIntlayerOAuth().stripe.cancelSubscription,
410
- { invalidateQueries: ["getSession"], ...args },
411
- {
412
- requireUser: true,
413
- requireOrganization: true
414
- }
415
- );
416
- const useTranslateJSONDeclaration = (args) => useAppAsync("translateJSON", hooks_useIntlayerAPI.useIntlayerOAuth().ai.translateJSON, args, {
417
- requireUser: true,
418
- requireOrganization: true,
419
- requireProject: true
420
- });
421
- const useAuditContentDeclaration = (args) => useAppAsync(
422
- "auditContentDeclaration",
423
- hooks_useIntlayerAPI.useIntlayerOAuth().ai.auditContentDeclaration,
424
- args,
425
- {
426
- requireUser: true,
427
- requireOrganization: true,
428
- requireProject: true
429
- }
430
- );
431
- const useAuditContentDeclarationMetadata = (args) => useAppAsync(
432
- "auditContentDeclaration",
433
- hooks_useIntlayerAPI.useIntlayerOAuth().ai.auditContentDeclarationMetadata,
434
- args,
435
- {
436
- requireUser: true,
437
- requireOrganization: true,
438
- requireProject: true
439
- }
440
- );
441
- const useAuditContentDeclarationField = (args) => useAppAsync(
442
- "auditContentDeclarationField",
443
- hooks_useIntlayerAPI.useIntlayerOAuth().ai.auditContentDeclarationField,
444
- args,
445
- {
446
- requireUser: true,
447
- requireOrganization: true,
448
- requireProject: true
449
- }
450
- );
451
- const useAuditTag = (args) => useAppAsync("auditTag", hooks_useIntlayerAPI.useIntlayerOAuth().ai.auditTag, args, {
452
- requireUser: true,
453
- requireOrganization: true,
454
- requireProject: true
455
- });
456
- const useAskDocQuestion = (args) => useAppAsync("askDocQuestion", hooks_useIntlayerAPI.useIntlayerOAuth().ai.askDocQuestion, args);
457
- const useAutocomplete = (args) => useAppAsync("autocomplete", hooks_useIntlayerAPI.useIntlayerOAuth().ai.autocomplete, args);
458
- const useSearchDoc = (args) => useAppAsync("searchDoc", hooks_useIntlayerAPI.useIntlayerOAuth().search.searchDoc, args);
459
- const useSubscribeToNewsletter = (args) => useAppAsync(
460
- "subscribeToNewsletter",
461
- hooks_useIntlayerAPI.useIntlayerOAuth().newsletter.subscribeToNewsletter,
462
- args
463
- );
464
- const useUnsubscribeFromNewsletter = (args) => useAppAsync(
465
- "unsubscribeFromNewsletter",
466
- hooks_useIntlayerAPI.useIntlayerOAuth().newsletter.unsubscribeFromNewsletter,
467
- args
468
- );
469
- const useGetNewsletterStatus = (args) => useAppAsync(
470
- "getNewsletterStatus",
471
- hooks_useIntlayerAPI.useIntlayerOAuth().newsletter.getNewsletterStatus,
472
- args
473
- );
474
- const useWriteDictionary = (args) => useEditorAsync(
475
- "writeDictionary",
476
- hooks_useIntlayerAPI.useIntlayerOAuth().editor.writeDictionary,
477
- args
478
- );
479
- const useGetEditorDictionaries = (args) => useEditorAsync("getDictionaries", hooks_useIntlayerAPI.useIntlayerOAuth().editor.getDictionaries, {
480
- store: true,
481
- cache: true,
482
- ...args
483
- });
484
- exports.useAddDictionary = useAddDictionary;
485
- exports.useAddNewAccessKey = useAddNewAccessKey;
486
- exports.useAddOrganization = useAddOrganization;
487
- exports.useAddOrganizationMember = useAddOrganizationMember;
488
- exports.useAddProject = useAddProject;
489
- exports.useAddTag = useAddTag;
490
- exports.useAskDocQuestion = useAskDocQuestion;
491
- exports.useAskResetPassword = useAskResetPassword;
492
- exports.useAuditContentDeclaration = useAuditContentDeclaration;
493
- exports.useAuditContentDeclarationField = useAuditContentDeclarationField;
494
- exports.useAuditContentDeclarationMetadata = useAuditContentDeclarationMetadata;
495
- exports.useAuditTag = useAuditTag;
496
- exports.useAutocomplete = useAutocomplete;
497
- exports.useCancelSubscription = useCancelSubscription;
498
- exports.useChangePassword = useChangePassword;
499
- exports.useCreateUser = useCreateUser;
500
- exports.useDeleteAccessKey = useDeleteAccessKey;
501
- exports.useDeleteDictionary = useDeleteDictionary;
502
- exports.useDeleteOrganization = useDeleteOrganization;
503
- exports.useDeleteProject = useDeleteProject;
504
- exports.useDeleteTag = useDeleteTag;
505
- exports.useDeleteUser = useDeleteUser;
506
- exports.useGetDictionaries = useGetDictionaries;
507
- exports.useGetDictionariesKeys = useGetDictionariesKeys;
508
- exports.useGetDictionary = useGetDictionary;
509
- exports.useGetEditorDictionaries = useGetEditorDictionaries;
510
- exports.useGetNewsletterStatus = useGetNewsletterStatus;
511
- exports.useGetOrganizations = useGetOrganizations;
512
- exports.useGetPricing = useGetPricing;
513
- exports.useGetProjects = useGetProjects;
514
- exports.useGetSubscription = useGetSubscription;
515
- exports.useGetTags = useGetTags;
516
- exports.useGetUserByAccount = useGetUserByAccount;
517
- exports.useGetUsers = useGetUsers;
518
- exports.useGetVerifyEmailStatus = useGetVerifyEmailStatus;
519
- exports.useLogin = useLogin;
520
- exports.useLogout = useLogout;
521
- exports.usePushDictionaries = usePushDictionaries;
522
- exports.useRefreshAccessKey = useRefreshAccessKey;
523
- exports.useRegister = useRegister;
524
- exports.useResetPassword = useResetPassword;
525
- exports.useSearchDoc = useSearchDoc;
526
- exports.useSelectOrganization = useSelectOrganization;
527
- exports.useSelectProject = useSelectProject;
528
- exports.useSubscribeToNewsletter = useSubscribeToNewsletter;
529
- exports.useTranslateJSONDeclaration = useTranslateJSONDeclaration;
530
- exports.useUnselectOrganization = useUnselectOrganization;
531
- exports.useUnselectProject = useUnselectProject;
532
- exports.useUnsubscribeFromNewsletter = useUnsubscribeFromNewsletter;
533
- exports.useUpdateDictionary = useUpdateDictionary;
534
- exports.useUpdateOrganization = useUpdateOrganization;
535
- exports.useUpdateOrganizationMembers = useUpdateOrganizationMembers;
536
- exports.useUpdateProject = useUpdateProject;
537
- exports.useUpdateProjectMembers = useUpdateProjectMembers;
538
- exports.useUpdateTag = useUpdateTag;
539
- exports.useUpdateUser = useUpdateUser;
540
- exports.useVerifyEmail = useVerifyEmail;
541
- exports.useWriteDictionary = useWriteDictionary;
542
- //# sourceMappingURL=intlayerAPIHooks.cjs.map