@intlayer/design-system 4.0.3 → 4.0.5

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 (274) hide show
  1. package/dist/.vite/manifest.json +34 -43
  2. package/dist/components/Auth/AuthModal/index.cjs +1 -1
  3. package/dist/components/Auth/AuthModal/index.mjs +1 -1
  4. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +2 -1
  5. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
  6. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +2 -1
  7. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
  8. package/dist/components/Auth/useAuth/index.cjs +8 -4
  9. package/dist/components/Auth/useAuth/index.cjs.map +1 -1
  10. package/dist/components/Auth/useAuth/index.d.ts +3 -1
  11. package/dist/components/Auth/useAuth/index.d.ts.map +1 -1
  12. package/dist/components/Auth/useAuth/index.mjs +8 -4
  13. package/dist/components/Auth/useAuth/index.mjs.map +1 -1
  14. package/dist/components/Auth/useAuth/useCSRF.cjs +6 -3
  15. package/dist/components/Auth/useAuth/useCSRF.cjs.map +1 -1
  16. package/dist/components/Auth/useAuth/useCSRF.d.ts +2 -1
  17. package/dist/components/Auth/useAuth/useCSRF.d.ts.map +1 -1
  18. package/dist/components/Auth/useAuth/useCSRF.mjs +5 -2
  19. package/dist/components/Auth/useAuth/useCSRF.mjs.map +1 -1
  20. package/dist/components/Auth/useAuth/useOAuth2.cjs +6 -5
  21. package/dist/components/Auth/useAuth/useOAuth2.cjs.map +1 -1
  22. package/dist/components/Auth/useAuth/useOAuth2.d.ts +2 -1
  23. package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +1 -1
  24. package/dist/components/Auth/useAuth/useOAuth2.mjs +5 -4
  25. package/dist/components/Auth/useAuth/useOAuth2.mjs.map +1 -1
  26. package/dist/components/Auth/useAuth/useSession.cjs +6 -3
  27. package/dist/components/Auth/useAuth/useSession.cjs.map +1 -1
  28. package/dist/components/Auth/useAuth/useSession.d.ts +2 -1
  29. package/dist/components/Auth/useAuth/useSession.d.ts.map +1 -1
  30. package/dist/components/Auth/useAuth/useSession.mjs +6 -3
  31. package/dist/components/Auth/useAuth/useSession.mjs.map +1 -1
  32. package/dist/components/Auth/useUser/index.cjs +1 -1
  33. package/dist/components/Auth/useUser/index.mjs +1 -1
  34. package/dist/components/Button/Button.cjs +9 -9
  35. package/dist/components/Button/Button.cjs.map +1 -1
  36. package/dist/components/Button/Button.mjs +9 -9
  37. package/dist/components/Button/Button.mjs.map +1 -1
  38. package/dist/components/Container/index.d.ts +2 -2
  39. package/dist/components/DictionaryEditor/DictionaryEditor.cjs +5 -4
  40. package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -1
  41. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +1 -0
  42. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -1
  43. package/dist/components/DictionaryEditor/DictionaryEditor.mjs +5 -4
  44. package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
  45. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs +2 -1
  46. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.map +1 -1
  47. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts.map +1 -1
  48. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs +2 -1
  49. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs.map +1 -1
  50. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs +1 -1
  51. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs +1 -1
  52. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs +2 -1
  53. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.map +1 -1
  54. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts.map +1 -1
  55. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs +2 -1
  56. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs.map +1 -1
  57. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs +3 -3
  58. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.map +1 -1
  59. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +2 -2
  60. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs.map +1 -1
  61. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs +1 -1
  62. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs +1 -1
  63. package/dist/components/DictionaryEditor/NodeWrapper/index.cjs +1 -1
  64. package/dist/components/DictionaryEditor/NodeWrapper/index.mjs +1 -1
  65. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +29 -12
  66. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
  67. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +1 -0
  68. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
  69. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +31 -14
  70. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
  71. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs +32 -0
  72. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs.map +1 -1
  73. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts +4 -0
  74. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts.map +1 -1
  75. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs +32 -0
  76. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs.map +1 -1
  77. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +5 -3
  78. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
  79. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts +1 -0
  80. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -1
  81. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +5 -3
  82. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
  83. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +4 -2
  84. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  85. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +4 -2
  86. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  87. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +45 -14
  88. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  89. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts +1 -0
  90. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
  91. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +48 -17
  92. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  93. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +32 -0
  94. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
  95. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +4 -0
  96. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
  97. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +32 -0
  98. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
  99. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +7 -15
  100. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  101. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +1 -0
  102. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
  103. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +8 -16
  104. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  105. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +8 -5
  106. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
  107. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -1
  108. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +7 -4
  109. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -1
  110. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +2 -2
  111. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -1
  112. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +1 -1
  113. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +2 -2
  114. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -1
  115. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs +1 -1
  116. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs.map +1 -1
  117. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs +1 -1
  118. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs.map +1 -1
  119. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +6 -5
  120. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
  121. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
  122. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +2 -1
  123. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
  124. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs +1 -9
  125. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs.map +1 -1
  126. package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts.map +1 -1
  127. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs +2 -10
  128. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs.map +1 -1
  129. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +2 -1
  130. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
  131. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
  132. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +2 -1
  133. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
  134. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +51 -22
  135. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  136. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts +1 -0
  137. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  138. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +52 -23
  139. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  140. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +32 -0
  141. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
  142. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +4 -0
  143. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
  144. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +32 -0
  145. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
  146. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +2 -2
  147. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +2 -2
  148. package/dist/components/EditableField/EditableFieldLayout.cjs +8 -4
  149. package/dist/components/EditableField/EditableFieldLayout.cjs.map +1 -1
  150. package/dist/components/EditableField/EditableFieldLayout.d.ts.map +1 -1
  151. package/dist/components/EditableField/EditableFieldLayout.mjs +8 -4
  152. package/dist/components/EditableField/EditableFieldLayout.mjs.map +1 -1
  153. package/dist/components/IDE/CodeContext.cjs +2 -2
  154. package/dist/components/IDE/CodeContext.mjs +2 -2
  155. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +4 -4
  156. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
  157. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +4 -4
  158. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
  159. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +2 -2
  160. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +2 -2
  161. package/dist/components/Modal/Modal.cjs +11 -7
  162. package/dist/components/Modal/Modal.cjs.map +1 -1
  163. package/dist/components/Modal/Modal.d.ts.map +1 -1
  164. package/dist/components/Modal/Modal.mjs +11 -7
  165. package/dist/components/Modal/Modal.mjs.map +1 -1
  166. package/dist/components/Navbar/MobileNavbar.cjs +2 -2
  167. package/dist/components/Navbar/MobileNavbar.mjs +2 -2
  168. package/dist/components/Navbar/index.cjs +2 -2
  169. package/dist/components/Navbar/index.mjs +2 -2
  170. package/dist/components/RightDrawer/RightDrawer.cjs +32 -15
  171. package/dist/components/RightDrawer/RightDrawer.cjs.map +1 -1
  172. package/dist/components/RightDrawer/RightDrawer.d.ts.map +1 -1
  173. package/dist/components/RightDrawer/RightDrawer.mjs +32 -15
  174. package/dist/components/RightDrawer/RightDrawer.mjs.map +1 -1
  175. package/dist/components/SwitchSelector/index.cjs +2 -2
  176. package/dist/components/SwitchSelector/index.mjs +2 -2
  177. package/dist/components/TabSelector/TabSelector.cjs +2 -2
  178. package/dist/components/TabSelector/TabSelector.mjs +2 -2
  179. package/dist/hooks/index.cjs +1 -0
  180. package/dist/hooks/index.cjs.map +1 -1
  181. package/dist/hooks/index.mjs +3 -2
  182. package/dist/hooks/intlayerAPIHooks.cjs +15 -1
  183. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  184. package/dist/hooks/intlayerAPIHooks.d.ts +53 -49
  185. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  186. package/dist/hooks/intlayerAPIHooks.mjs +16 -2
  187. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  188. package/dist/hooks/useAsync/useAsync.cjs +14 -0
  189. package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
  190. package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
  191. package/dist/hooks/useAsync/useAsync.mjs +14 -0
  192. package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
  193. package/dist/hooks/useGetAllDictionaries.cjs +3 -2
  194. package/dist/hooks/useGetAllDictionaries.cjs.map +1 -1
  195. package/dist/hooks/useGetAllDictionaries.d.ts +2 -2
  196. package/dist/hooks/useGetAllDictionaries.d.ts.map +1 -1
  197. package/dist/hooks/useGetAllDictionaries.mjs +3 -2
  198. package/dist/hooks/useGetAllDictionaries.mjs.map +1 -1
  199. package/dist/hooks/useIntlayerAPI.cjs +10 -7
  200. package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
  201. package/dist/hooks/useIntlayerAPI.d.ts +11 -2
  202. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  203. package/dist/hooks/useIntlayerAPI.mjs +10 -7
  204. package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
  205. package/dist/hooks/usePersistedStore.cjs +25 -18
  206. package/dist/hooks/usePersistedStore.cjs.map +1 -1
  207. package/dist/hooks/usePersistedStore.d.ts +2 -2
  208. package/dist/hooks/usePersistedStore.d.ts.map +1 -1
  209. package/dist/hooks/usePersistedStore.mjs +26 -19
  210. package/dist/hooks/usePersistedStore.mjs.map +1 -1
  211. package/dist/index-B-VAyQ9R.js +673 -0
  212. package/dist/index-B-VAyQ9R.js.map +1 -0
  213. package/dist/index-B-adg6xa.js +206 -0
  214. package/dist/index-B-adg6xa.js.map +1 -0
  215. package/dist/index-B1nU1-65.cjs +690 -0
  216. package/dist/index-B1nU1-65.cjs.map +1 -0
  217. package/dist/index-BIV0x_z2.js +206 -0
  218. package/dist/index-BIV0x_z2.js.map +1 -0
  219. package/dist/index-BIyA5LAs.js +691 -0
  220. package/dist/index-BIyA5LAs.js.map +1 -0
  221. package/dist/index-BNH9wXVj.cjs +205 -0
  222. package/dist/index-BNH9wXVj.cjs.map +1 -0
  223. package/dist/index-BqZwP4Lr.js +691 -0
  224. package/dist/index-BqZwP4Lr.js.map +1 -0
  225. package/dist/index-Buecpjbh.cjs +690 -0
  226. package/dist/index-Buecpjbh.cjs.map +1 -0
  227. package/dist/index-CDEJjmId.js +694 -0
  228. package/dist/index-CDEJjmId.js.map +1 -0
  229. package/dist/index-CTAyk6RY.cjs +693 -0
  230. package/dist/index-CTAyk6RY.cjs.map +1 -0
  231. package/dist/index-CVC2sfEj.js +693 -0
  232. package/dist/index-CVC2sfEj.js.map +1 -0
  233. package/dist/index-CVz0RdK6.js +691 -0
  234. package/dist/index-CVz0RdK6.js.map +1 -0
  235. package/dist/index-CjF2ksU7.cjs +693 -0
  236. package/dist/index-CjF2ksU7.cjs.map +1 -0
  237. package/dist/index-CuQs5759.cjs +692 -0
  238. package/dist/index-CuQs5759.cjs.map +1 -0
  239. package/dist/index-D69JRZcQ.js +206 -0
  240. package/dist/index-D69JRZcQ.js.map +1 -0
  241. package/dist/index-DAsui9u9.cjs +205 -0
  242. package/dist/index-DAsui9u9.cjs.map +1 -0
  243. package/dist/index-D_MDocy7.cjs +690 -0
  244. package/dist/index-D_MDocy7.cjs.map +1 -0
  245. package/dist/index-Djo2Jnua.cjs +693 -0
  246. package/dist/index-Djo2Jnua.cjs.map +1 -0
  247. package/dist/index-LFTthFne.js +694 -0
  248. package/dist/index-LFTthFne.js.map +1 -0
  249. package/dist/index-SOIahRpS.cjs +205 -0
  250. package/dist/index-SOIahRpS.cjs.map +1 -0
  251. package/dist/index-T-TjVQoD.js +671 -0
  252. package/dist/index-T-TjVQoD.js.map +1 -0
  253. package/dist/index-f8_VC6c8.cjs +672 -0
  254. package/dist/index-f8_VC6c8.cjs.map +1 -0
  255. package/dist/index-llGIfxqV.cjs +670 -0
  256. package/dist/index-llGIfxqV.cjs.map +1 -0
  257. package/dist/index-xZoGTokf.js +694 -0
  258. package/dist/index-xZoGTokf.js.map +1 -0
  259. package/dist/tailwind.config.cjs.map +1 -1
  260. package/dist/tailwind.config.mjs.map +1 -1
  261. package/dist/tailwind.css +1 -1
  262. package/dist/useGetAllDictionaries-B1sqs2IB.cjs +34 -0
  263. package/dist/useGetAllDictionaries-B1sqs2IB.cjs.map +1 -0
  264. package/dist/useGetAllDictionaries-BbH8vTkY.js +35 -0
  265. package/dist/useGetAllDictionaries-BbH8vTkY.js.map +1 -0
  266. package/dist/useGetAllDictionaries-Bgkytpa2.cjs +34 -0
  267. package/dist/useGetAllDictionaries-Bgkytpa2.cjs.map +1 -0
  268. package/dist/useGetAllDictionaries-D8ma3h41.cjs +33 -0
  269. package/dist/useGetAllDictionaries-D8ma3h41.cjs.map +1 -0
  270. package/dist/useGetAllDictionaries-DHgHEbD5.js +34 -0
  271. package/dist/useGetAllDictionaries-DHgHEbD5.js.map +1 -0
  272. package/dist/useGetAllDictionaries-DUzm0rIa.js +35 -0
  273. package/dist/useGetAllDictionaries-DUzm0rIa.js.map +1 -0
  274. package/package.json +21 -16
@@ -0,0 +1,693 @@
1
+ import { getConfiguration } from "@intlayer/config/client";
2
+ const fetcherOptions = {
3
+ method: "GET",
4
+ // Default HTTP method
5
+ headers: {
6
+ "Content-Type": "application/json"
7
+ // Default content type
8
+ },
9
+ credentials: "include"
10
+ // Include cookies in the request
11
+ };
12
+ const removeUndefined = (obj) => {
13
+ Object.keys(obj).forEach((key) => {
14
+ if (obj[key] === void 0) {
15
+ delete obj[key];
16
+ }
17
+ });
18
+ return obj;
19
+ };
20
+ const deepMerge = (objects) => objects.reduce((acc, obj) => {
21
+ const acc1 = acc ?? {};
22
+ const obj1 = removeUndefined(obj ?? {});
23
+ if (typeof acc1 === "object" && typeof obj1 === "object") {
24
+ return { ...acc1, ...obj1 };
25
+ }
26
+ return obj1 ?? acc1;
27
+ }, {});
28
+ const fetcher = async (url, ...options) => {
29
+ const { signal } = new AbortController();
30
+ let paramsString = "";
31
+ let bodyString = void 0;
32
+ const otherOptions = options.map(
33
+ ({ body, params: params2, headers, ...otherOptions2 }) => otherOptions2
34
+ );
35
+ const mergedOptions = deepMerge([fetcherOptions, ...otherOptions]);
36
+ const mergedHeaders = deepMerge([
37
+ fetcherOptions.headers,
38
+ ...options.map((option) => option.headers)
39
+ ]);
40
+ const params = deepMerge(options.map((option) => option.params));
41
+ const method = mergedOptions.method;
42
+ if (method !== "GET" && method !== "HEAD") {
43
+ const body = deepMerge(options.map((option) => option.body));
44
+ if (mergedHeaders?.["Content-Type"] === "application/x-www-form-urlencoded") {
45
+ bodyString = new URLSearchParams(
46
+ body
47
+ ).toString();
48
+ } else {
49
+ bodyString = JSON.stringify(body);
50
+ }
51
+ }
52
+ if (Object.entries(params).length > 0) {
53
+ paramsString = `?${new URLSearchParams(
54
+ params
55
+ ).toString()}`;
56
+ }
57
+ const formattedOptions = {
58
+ ...mergedOptions,
59
+ headers: mergedHeaders,
60
+ body: bodyString,
61
+ signal
62
+ };
63
+ const urlResult = `${url}${paramsString}`;
64
+ const response = await fetch(urlResult, formattedOptions);
65
+ if (!response.ok) {
66
+ const result = await response.json();
67
+ console.error(result);
68
+ throw new Error(JSON.stringify(result.error) ?? "An error occurred");
69
+ }
70
+ return await response.json();
71
+ };
72
+ const getAiAPI = (authAPIOptions = {}, intlayerConfig) => {
73
+ const { backendURL } = getConfiguration().editor;
74
+ const AI_API_ROUTE = `${backendURL}/api/ai`;
75
+ const auditContentDeclaration = async (body, otherOptions = {}) => await fetcher(
76
+ `${AI_API_ROUTE}/audit/content-declaration`,
77
+ authAPIOptions,
78
+ otherOptions,
79
+ {
80
+ method: "POST",
81
+ body
82
+ }
83
+ );
84
+ const auditContentDeclarationField = async (body, otherOptions = {}) => await fetcher(
85
+ `${AI_API_ROUTE}/audit/content-declaration/field`,
86
+ authAPIOptions,
87
+ otherOptions,
88
+ {
89
+ method: "POST",
90
+ body
91
+ }
92
+ );
93
+ const auditContentDeclarationMetadata = async (body, otherOptions = {}) => await fetcher(
94
+ `${AI_API_ROUTE}/audit/content-declaration/metadata`,
95
+ authAPIOptions,
96
+ otherOptions,
97
+ {
98
+ method: "POST",
99
+ body
100
+ }
101
+ );
102
+ const auditTag = async (body, otherOptions = {}) => await fetcher(
103
+ `${AI_API_ROUTE}/audit/tag`,
104
+ authAPIOptions,
105
+ otherOptions,
106
+ {
107
+ method: "POST",
108
+ body
109
+ }
110
+ );
111
+ const askDocQuestion = async (body, otherOptions = {}) => await fetcher(
112
+ `${AI_API_ROUTE}/ask`,
113
+ authAPIOptions,
114
+ otherOptions,
115
+ {
116
+ method: "POST",
117
+ body
118
+ }
119
+ );
120
+ return {
121
+ auditContentDeclaration,
122
+ auditContentDeclarationField,
123
+ auditContentDeclarationMetadata,
124
+ auditTag,
125
+ askDocQuestion
126
+ };
127
+ };
128
+ getAiAPI();
129
+ const getAuthAPI = (authAPIOptions = {}, intlayerConfig) => {
130
+ const { backendURL, clientId, clientSecret } = getConfiguration().editor;
131
+ const AUTH_API_ROUTE = `${backendURL}/api/auth`;
132
+ const login = async (user, otherOptions = {}) => await fetcher(
133
+ `${AUTH_API_ROUTE}/login`,
134
+ authAPIOptions,
135
+ otherOptions,
136
+ {
137
+ method: "POST",
138
+ body: user
139
+ }
140
+ );
141
+ const getLoginWithGitHubURL = (params) => {
142
+ const searchParams = new URLSearchParams(params);
143
+ return `${AUTH_API_ROUTE}/login/github?${searchParams.toString()}`;
144
+ };
145
+ const getLoginWithGoogleURL = (params) => {
146
+ const searchParams = new URLSearchParams(params);
147
+ return `${AUTH_API_ROUTE}/login/google?${searchParams.toString()}`;
148
+ };
149
+ const register = async (user, query = {}, otherOptions = {}) => await fetcher(
150
+ `${AUTH_API_ROUTE}/register`,
151
+ authAPIOptions,
152
+ otherOptions,
153
+ {
154
+ method: "POST",
155
+ body: user,
156
+ params: query
157
+ }
158
+ );
159
+ const logout = async (otherOptions = {}) => await fetcher(
160
+ `${AUTH_API_ROUTE}/logout`,
161
+ authAPIOptions,
162
+ otherOptions,
163
+ {
164
+ method: "POST"
165
+ }
166
+ );
167
+ const askResetPassword = async (email, otherOptions = {}) => await fetcher(
168
+ `${AUTH_API_ROUTE}/password/reset`,
169
+ authAPIOptions,
170
+ otherOptions,
171
+ {
172
+ method: "POST",
173
+ body: { email }
174
+ }
175
+ );
176
+ const resetPassword = async (params, otherOptions = {}) => await fetcher(
177
+ `${AUTH_API_ROUTE}/password/reset`,
178
+ authAPIOptions,
179
+ otherOptions,
180
+ { params, method: "POST" }
181
+ );
182
+ const changePassword = async (data, otherOptions = {}) => await fetcher(
183
+ `${AUTH_API_ROUTE}/password`,
184
+ authAPIOptions,
185
+ otherOptions,
186
+ {
187
+ method: "PUT",
188
+ body: data
189
+ }
190
+ );
191
+ const checkIfUserHasPassword = async (otherOptions = {}) => await fetcher(
192
+ `${AUTH_API_ROUTE}/password/has`,
193
+ authAPIOptions,
194
+ otherOptions,
195
+ {
196
+ method: "GET"
197
+ }
198
+ );
199
+ const verifyEmail = async ({ userId, secret }, otherOptions = {}) => await fetcher(
200
+ `${AUTH_API_ROUTE}/active/${userId}/${secret}`,
201
+ authAPIOptions,
202
+ otherOptions,
203
+ {
204
+ method: "PUT"
205
+ }
206
+ );
207
+ const getVerifyEmailStatusURL = (userId) => `${AUTH_API_ROUTE}/verify-email-status/${String(userId)}`;
208
+ const createSession = async (data, otherOptions = {}) => await fetcher(
209
+ `${AUTH_API_ROUTE}/session`,
210
+ authAPIOptions,
211
+ otherOptions,
212
+ {
213
+ method: "POST",
214
+ body: data
215
+ }
216
+ );
217
+ const getSession = async (sessionToken, otherOptions = {}) => await fetcher(
218
+ `${backendURL}/session`,
219
+ authAPIOptions,
220
+ otherOptions,
221
+ { params: { session_token: sessionToken } }
222
+ );
223
+ const getCSRFToken = async (otherOptions = {}) => await fetcher(
224
+ `${backendURL}/csrf-token`,
225
+ authAPIOptions,
226
+ otherOptions
227
+ );
228
+ const getOAuth2AccessToken = async (otherOptions = {}) => await fetcher(
229
+ `${backendURL}/oauth2/token`,
230
+ authAPIOptions,
231
+ otherOptions,
232
+ {
233
+ method: "POST",
234
+ headers: {
235
+ "Content-Type": "application/x-www-form-urlencoded"
236
+ },
237
+ body: {
238
+ grant_type: "client_credentials",
239
+ client_id: clientId,
240
+ client_secret: clientSecret
241
+ }
242
+ }
243
+ );
244
+ return {
245
+ login,
246
+ getLoginWithGitHubURL,
247
+ getLoginWithGoogleURL,
248
+ register,
249
+ logout,
250
+ resetPassword,
251
+ askResetPassword,
252
+ checkIfUserHasPassword,
253
+ verifyEmail,
254
+ getVerifyEmailStatusURL,
255
+ changePassword,
256
+ createSession,
257
+ getSession,
258
+ getCSRFToken,
259
+ getOAuth2AccessToken
260
+ };
261
+ };
262
+ getAuthAPI();
263
+ const getDictionaryAPI = (authAPIOptions = {}, intlayerConfig) => {
264
+ const { backendURL } = getConfiguration().editor;
265
+ const PROJECT_API_ROUTE = `${backendURL}/api/dictionary`;
266
+ const getDictionaries = async (filters, otherOptions = {}) => await fetcher(
267
+ PROJECT_API_ROUTE,
268
+ authAPIOptions,
269
+ otherOptions,
270
+ {
271
+ params: filters
272
+ }
273
+ );
274
+ const getDictionariesKeys = async (otherOptions = {}) => await fetcher(
275
+ `${PROJECT_API_ROUTE}/keys`,
276
+ authAPIOptions,
277
+ otherOptions
278
+ );
279
+ const getDictionary = async (dictionaryKey, version, otherOptions = {}) => await fetcher(
280
+ `${PROJECT_API_ROUTE}/${dictionaryKey}`,
281
+ authAPIOptions,
282
+ otherOptions,
283
+ {
284
+ params: version ? { version: version.toString() } : void 0
285
+ }
286
+ );
287
+ const addDictionary = async (dictionary, otherOptions = {}) => await fetcher(
288
+ `${PROJECT_API_ROUTE}`,
289
+ authAPIOptions,
290
+ otherOptions,
291
+ {
292
+ method: "POST",
293
+ body: dictionary
294
+ }
295
+ );
296
+ const pushDictionaries = async (dictionaries, otherOptions = {}) => await fetcher(
297
+ `${PROJECT_API_ROUTE}`,
298
+ authAPIOptions,
299
+ otherOptions,
300
+ {
301
+ method: "PATCH",
302
+ body: { dictionaries }
303
+ }
304
+ );
305
+ const updateDictionary = async (dictionaryId, dictionary, otherOptions = {}) => await fetcher(
306
+ `${PROJECT_API_ROUTE}/${dictionaryId}`,
307
+ authAPIOptions,
308
+ otherOptions,
309
+ {
310
+ method: "PUT",
311
+ body: dictionary
312
+ }
313
+ );
314
+ const deleteDictionary = async (id, otherOptions = {}) => await fetcher(
315
+ `${PROJECT_API_ROUTE}`,
316
+ authAPIOptions,
317
+ otherOptions,
318
+ {
319
+ method: "DELETE",
320
+ body: { id }
321
+ }
322
+ );
323
+ return {
324
+ getDictionaries,
325
+ getDictionariesKeys,
326
+ getDictionary,
327
+ pushDictionaries,
328
+ addDictionary,
329
+ updateDictionary,
330
+ deleteDictionary
331
+ };
332
+ };
333
+ getDictionaryAPI();
334
+ const getEditorAPI = (authAPIOptions = {}, intlayerConfig) => {
335
+ const { editorURL } = getConfiguration().editor;
336
+ const EDITOR_API_ROUTE = `${editorURL}/api`;
337
+ const writeDictionary = async (dictionary, otherOptions = {}) => {
338
+ await fetcher(
339
+ `${EDITOR_API_ROUTE}/dictionary`,
340
+ authAPIOptions,
341
+ otherOptions,
342
+ {
343
+ method: "POST",
344
+ body: dictionary
345
+ }
346
+ );
347
+ };
348
+ return {
349
+ writeDictionary
350
+ };
351
+ };
352
+ getEditorAPI();
353
+ const getOrganizationAPI = (authAPIOptions = {}, intlayerConfig) => {
354
+ const { backendURL } = getConfiguration().editor;
355
+ const ORGANIZATION_API_ROUTE = `${backendURL}/api/organization`;
356
+ const getOrganizations = async (filters, otherOptions = {}) => await fetcher(
357
+ ORGANIZATION_API_ROUTE,
358
+ authAPIOptions,
359
+ otherOptions,
360
+ {
361
+ params: filters
362
+ }
363
+ );
364
+ const getOrganization = async (organizationId, otherOptions = {}) => await fetcher(
365
+ `${ORGANIZATION_API_ROUTE}/${String(organizationId)}`,
366
+ authAPIOptions,
367
+ otherOptions
368
+ );
369
+ const addOrganization = async (organization, otherOptions = {}) => await fetcher(
370
+ ORGANIZATION_API_ROUTE,
371
+ authAPIOptions,
372
+ otherOptions,
373
+ {
374
+ method: "POST",
375
+ body: organization
376
+ }
377
+ );
378
+ const updateOrganization = async (organization, otherOptions = {}) => fetcher(
379
+ ORGANIZATION_API_ROUTE,
380
+ authAPIOptions,
381
+ otherOptions,
382
+ {
383
+ method: "PUT",
384
+ body: organization
385
+ }
386
+ );
387
+ const updateOrganizationMembers = async (body, otherOptions = {}) => fetcher(
388
+ `${ORGANIZATION_API_ROUTE}/members`,
389
+ authAPIOptions,
390
+ otherOptions,
391
+ {
392
+ method: "PUT",
393
+ body
394
+ }
395
+ );
396
+ const addOrganizationMember = async (body, otherOptions = {}) => fetcher(
397
+ `${ORGANIZATION_API_ROUTE}/member`,
398
+ authAPIOptions,
399
+ otherOptions,
400
+ {
401
+ method: "POST",
402
+ body
403
+ }
404
+ );
405
+ const deleteOrganization = async (otherOptions = {}) => await fetcher(
406
+ ORGANIZATION_API_ROUTE,
407
+ authAPIOptions,
408
+ otherOptions,
409
+ {
410
+ method: "DELETE"
411
+ }
412
+ );
413
+ const selectOrganization = async (organizationId, otherOptions = {}) => await fetcher(
414
+ `${ORGANIZATION_API_ROUTE}/${String(organizationId)}`,
415
+ authAPIOptions,
416
+ otherOptions,
417
+ {
418
+ method: "PUT"
419
+ }
420
+ );
421
+ const unselectOrganization = async (otherOptions = {}) => await fetcher(
422
+ `${ORGANIZATION_API_ROUTE}/logout`,
423
+ authAPIOptions,
424
+ otherOptions,
425
+ {
426
+ method: "POST"
427
+ }
428
+ );
429
+ return {
430
+ getOrganizations,
431
+ getOrganization,
432
+ addOrganization,
433
+ addOrganizationMember,
434
+ updateOrganization,
435
+ updateOrganizationMembers,
436
+ deleteOrganization,
437
+ selectOrganization,
438
+ unselectOrganization
439
+ };
440
+ };
441
+ getOrganizationAPI();
442
+ const getProjectAPI = (authAPIOptions = {}, intlayerConfig) => {
443
+ const { backendURL } = getConfiguration().editor;
444
+ const PROJECT_API_ROUTE = `${backendURL}/api/project`;
445
+ const getProjects = async (filters, otherOptions = {}) => await fetcher(
446
+ PROJECT_API_ROUTE,
447
+ authAPIOptions,
448
+ otherOptions,
449
+ {
450
+ params: filters
451
+ }
452
+ );
453
+ const addProject = async (project, otherOptions = {}) => await fetcher(
454
+ `${PROJECT_API_ROUTE}`,
455
+ authAPIOptions,
456
+ otherOptions,
457
+ {
458
+ method: "POST",
459
+ body: project
460
+ }
461
+ );
462
+ const updateProject = async (project, otherOptions = {}) => await fetcher(
463
+ `${PROJECT_API_ROUTE}`,
464
+ authAPIOptions,
465
+ otherOptions,
466
+ {
467
+ method: "PUT",
468
+ body: project
469
+ }
470
+ );
471
+ const updateProjectMembers = async (body, otherOptions = {}) => await fetcher(
472
+ `${PROJECT_API_ROUTE}/members`,
473
+ authAPIOptions,
474
+ otherOptions,
475
+ {
476
+ method: "PUT",
477
+ body
478
+ }
479
+ );
480
+ const deleteProject = async (otherOptions = {}) => await fetcher(
481
+ `${PROJECT_API_ROUTE}`,
482
+ authAPIOptions,
483
+ otherOptions,
484
+ {
485
+ method: "DELETE"
486
+ }
487
+ );
488
+ const selectProject = async (projectId, otherOptions = {}) => await fetcher(
489
+ `${PROJECT_API_ROUTE}/${String(projectId)}`,
490
+ authAPIOptions,
491
+ otherOptions,
492
+ {
493
+ method: "PUT"
494
+ }
495
+ );
496
+ const unselectProject = async (otherOptions = {}) => await fetcher(
497
+ `${PROJECT_API_ROUTE}/logout`,
498
+ authAPIOptions,
499
+ otherOptions,
500
+ {
501
+ method: "POST"
502
+ }
503
+ );
504
+ const addNewAccessKey = async (accessKey, otherOptions = {}) => await fetcher(
505
+ `${PROJECT_API_ROUTE}/access_key`,
506
+ authAPIOptions,
507
+ otherOptions,
508
+ {
509
+ method: "POST",
510
+ body: accessKey
511
+ }
512
+ );
513
+ const deleteAccessKey = async (clientId, otherOptions = {}) => await fetcher(
514
+ `${PROJECT_API_ROUTE}/access_key`,
515
+ authAPIOptions,
516
+ otherOptions,
517
+ {
518
+ method: "DELETE",
519
+ body: { clientId }
520
+ }
521
+ );
522
+ const refreshAccessKey = async (clientId, otherOptions = {}) => await fetcher(
523
+ `${PROJECT_API_ROUTE}/access_key`,
524
+ authAPIOptions,
525
+ otherOptions,
526
+ {
527
+ method: "PATCH",
528
+ body: { clientId }
529
+ }
530
+ );
531
+ return {
532
+ getProjects,
533
+ addProject,
534
+ updateProject,
535
+ updateProjectMembers,
536
+ deleteProject,
537
+ selectProject,
538
+ unselectProject,
539
+ addNewAccessKey,
540
+ deleteAccessKey,
541
+ refreshAccessKey
542
+ };
543
+ };
544
+ getProjectAPI();
545
+ const getStripeAPI = (authAPIOptions = {}, intlayerConfig) => {
546
+ const backendURL = getConfiguration().editor.backendURL;
547
+ const STRIPE_API_ROUTE = `${backendURL}/api/stripe`;
548
+ const getSubscription = async (body, otherOptions = {}) => await fetcher(
549
+ `${STRIPE_API_ROUTE}/create-subscription`,
550
+ authAPIOptions,
551
+ otherOptions,
552
+ {
553
+ method: "POST",
554
+ body
555
+ }
556
+ );
557
+ const cancelSubscription = async (otherOptions = {}) => await fetcher(
558
+ `${STRIPE_API_ROUTE}/cancel-subscription`,
559
+ authAPIOptions,
560
+ otherOptions,
561
+ {
562
+ method: "POST"
563
+ }
564
+ );
565
+ return {
566
+ getSubscription,
567
+ cancelSubscription
568
+ };
569
+ };
570
+ const getTagAPI = (authAPIOptions = {}, intlayerConfig) => {
571
+ const { backendURL } = getConfiguration().editor;
572
+ const PROJECT_API_ROUTE = `${backendURL}/api/tag`;
573
+ const getTags = async (filters, otherOptions = {}) => await fetcher(
574
+ PROJECT_API_ROUTE,
575
+ authAPIOptions,
576
+ otherOptions,
577
+ {
578
+ params: filters
579
+ }
580
+ );
581
+ const addTag = async (tag, otherOptions = {}) => await fetcher(
582
+ `${PROJECT_API_ROUTE}`,
583
+ authAPIOptions,
584
+ otherOptions,
585
+ {
586
+ method: "POST",
587
+ body: tag
588
+ }
589
+ );
590
+ const updateTag = async (tagId, tag, otherOptions = {}) => await fetcher(
591
+ `${PROJECT_API_ROUTE}/${tagId}`,
592
+ authAPIOptions,
593
+ otherOptions,
594
+ {
595
+ method: "PUT",
596
+ body: tag
597
+ }
598
+ );
599
+ const deleteTag = async (tagId, otherOptions = {}) => await fetcher(
600
+ `${PROJECT_API_ROUTE}/${tagId}`,
601
+ authAPIOptions,
602
+ otherOptions,
603
+ {
604
+ method: "DELETE"
605
+ }
606
+ );
607
+ return {
608
+ getTags,
609
+ addTag,
610
+ updateTag,
611
+ deleteTag
612
+ };
613
+ };
614
+ getTagAPI();
615
+ const getUserAPI = (authAPIOptions = {}, intlayerConfig) => {
616
+ const { backendURL } = getConfiguration().editor;
617
+ const USER_API_ROUTE = `${backendURL}/api/user`;
618
+ const getUsers = async (filters, otherOptions = {}) => await fetcher(
619
+ USER_API_ROUTE,
620
+ authAPIOptions,
621
+ otherOptions,
622
+ {
623
+ params: filters
624
+ }
625
+ );
626
+ const getUserById = async (userId, otherOptions = {}) => await fetcher(
627
+ `${USER_API_ROUTE}/${userId}`,
628
+ authAPIOptions,
629
+ otherOptions
630
+ );
631
+ const getUserByEmail = async (email, otherOptions = {}) => await fetcher(
632
+ `${USER_API_ROUTE}/email/${email}`,
633
+ authAPIOptions,
634
+ otherOptions
635
+ );
636
+ const getUserByAccount = async (providerAccountId, provider, otherOptions = {}) => await fetcher(
637
+ `${USER_API_ROUTE}/account/${provider}/${providerAccountId}`,
638
+ authAPIOptions,
639
+ otherOptions
640
+ );
641
+ const createUser = async (user, otherOptions = {}) => await fetcher(
642
+ `${USER_API_ROUTE}/`,
643
+ authAPIOptions,
644
+ otherOptions,
645
+ {
646
+ method: "POST",
647
+ body: user
648
+ }
649
+ );
650
+ const updateUser = async (user, otherOptions = {}) => await fetcher(
651
+ `${USER_API_ROUTE}`,
652
+ authAPIOptions,
653
+ otherOptions,
654
+ {
655
+ method: "PUT",
656
+ body: user
657
+ }
658
+ );
659
+ const deleteUser = async (userId, otherOptions = {}) => await fetcher(
660
+ `${USER_API_ROUTE}/${userId}`,
661
+ authAPIOptions,
662
+ otherOptions,
663
+ {
664
+ method: "DELETE"
665
+ }
666
+ );
667
+ return {
668
+ createUser,
669
+ getUsers,
670
+ getUserById,
671
+ getUserByAccount,
672
+ getUserByEmail,
673
+ updateUser,
674
+ deleteUser
675
+ };
676
+ };
677
+ getUserAPI();
678
+ const getIntlayerAPI = (authAPIOptions = {}, intlayerConfig) => ({
679
+ organization: getOrganizationAPI(authAPIOptions),
680
+ project: getProjectAPI(authAPIOptions),
681
+ user: getUserAPI(authAPIOptions),
682
+ auth: getAuthAPI(authAPIOptions),
683
+ dictionary: getDictionaryAPI(authAPIOptions),
684
+ stripe: getStripeAPI(authAPIOptions),
685
+ ai: getAiAPI(authAPIOptions),
686
+ tag: getTagAPI(authAPIOptions),
687
+ editor: getEditorAPI(authAPIOptions)
688
+ });
689
+ const intlayerAPI = getIntlayerAPI();
690
+ export {
691
+ intlayerAPI as i
692
+ };
693
+ //# sourceMappingURL=index-CVC2sfEj.js.map