@layers-app/shared 0.2.8 → 0.3.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 (168) hide show
  1. package/dist/api/giphy/slice.d.ts +1 -1
  2. package/dist/api/giphy/slice.d.ts.map +1 -1
  3. package/dist/api/unsplash/slice.d.ts +1 -1
  4. package/dist/api/unsplash/slice.d.ts.map +1 -1
  5. package/dist/assets/default-workspace-avatar.jpg.js +4 -0
  6. package/dist/assets/layers-logo-full.svg.js +2 -3
  7. package/dist/assets/layers-logo-full.svg2.js +5 -0
  8. package/dist/assets/layers-logo-icon.svg.js +2 -3
  9. package/dist/assets/layers-logo-icon.svg2.js +5 -0
  10. package/dist/assets/projects/figureA.svg.js +4 -0
  11. package/dist/assets/projects/figureB.svg.js +4 -0
  12. package/dist/assets/qwebchannel.d.ts +15 -0
  13. package/dist/assets/qwebchannel.d.ts.map +1 -0
  14. package/dist/assets/taskPriorities/high.svg.js +5 -0
  15. package/dist/assets/taskPriorities/low.svg.js +5 -0
  16. package/dist/assets/taskPriorities/none.svg.js +5 -0
  17. package/dist/assets/taskPriorities/normal.svg.js +5 -0
  18. package/dist/assets/taskPriorities/urgent.svg.js +5 -0
  19. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  20. package/dist/components/AliasTextInput/AliasTextInput.js +8 -7
  21. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts +3 -0
  22. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts.map +1 -0
  23. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.js +69 -0
  24. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +27 -0
  25. package/dist/components/AnimatedFigurePage/types.d.ts +15 -0
  26. package/dist/components/AnimatedFigurePage/types.d.ts.map +1 -0
  27. package/dist/components/AnimatedFigurePage/useParallax.d.ts +6 -0
  28. package/dist/components/AnimatedFigurePage/useParallax.d.ts.map +1 -0
  29. package/dist/components/AnimatedFigurePage/useParallax.js +29 -0
  30. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  31. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  32. package/dist/components/AppContainer/AppContainer.js +37 -36
  33. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  34. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -45
  35. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  36. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +120 -120
  37. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  38. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  39. package/dist/components/AppContainer/hooks/useAppContainer.js +57 -51
  40. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  41. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +3 -1
  42. package/dist/components/AppContainer/types.d.ts +3 -0
  43. package/dist/components/AppContainer/types.d.ts.map +1 -1
  44. package/dist/components/ColorPicker/ColorPickerPopover.d.ts +6 -6
  45. package/dist/components/ColorPicker/ColorPickerPopover.d.ts.map +1 -1
  46. package/dist/components/ColorPicker/ColorPickerPopover.js +29 -31
  47. package/dist/components/CommentComposer/index.d.ts.map +1 -1
  48. package/dist/components/CommentComposer/index.js +115 -111
  49. package/dist/components/CommunitiesDialog/index.d.ts.map +1 -1
  50. package/dist/components/CommunitiesDialog/index.js +47 -46
  51. package/dist/components/Copyright/index.d.ts.map +1 -1
  52. package/dist/components/Copyright/index.js +8 -7
  53. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  54. package/dist/components/EmojiPicker/EmojiPanel.js +12 -10
  55. package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -1
  56. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  57. package/dist/components/EmojiPicker/EmojiPicker.js +49 -46
  58. package/dist/components/EmojiPicker/IconsPanel.d.ts +2 -1
  59. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  60. package/dist/components/EmojiPicker/IconsPanel.js +47 -45
  61. package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts.map +1 -1
  62. package/dist/components/EmojiPicker/custom-icons/customIcons.js +66 -31
  63. package/dist/components/EntityIcon.d.ts +3 -3
  64. package/dist/components/EntityIcon.d.ts.map +1 -1
  65. package/dist/components/EntityIcon.js +59 -35
  66. package/dist/components/EntityTitle/EntityTitle.d.ts +1 -1
  67. package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
  68. package/dist/components/EntityTitle/EntityTitle.js +34 -34
  69. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  70. package/dist/components/FilePicker/FilePicker.d.ts +1 -1
  71. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  72. package/dist/components/FilePicker/FilePicker.js +144 -152
  73. package/dist/components/FilePicker/FilePicker.module.css.js +10 -10
  74. package/dist/components/FilePicker/FilePickerGallery.js +13 -13
  75. package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -1
  76. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  77. package/dist/components/FilePicker/FilePickerGiphy.js +46 -48
  78. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  79. package/dist/components/FilePicker/FilePickerLink.js +16 -16
  80. package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -1
  81. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  82. package/dist/components/FilePicker/FilePickerUnsplash.js +49 -51
  83. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  84. package/dist/components/FilePicker/FilePickerUpload.js +44 -42
  85. package/dist/components/FilePicker/api/giphyApi.d.ts +2 -2
  86. package/dist/components/FilePicker/api/giphyApi.d.ts.map +1 -1
  87. package/dist/components/FilePicker/api/giphyApi.js +11 -14
  88. package/dist/components/FilePicker/api/unsplashApi.d.ts +2 -2
  89. package/dist/components/FilePicker/api/unsplashApi.d.ts.map +1 -1
  90. package/dist/components/FilePicker/api/unsplashApi.js +14 -19
  91. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
  92. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +70 -72
  93. package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
  94. package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +34 -33
  95. package/dist/components/FormViewer/helpers/conditions.d.ts +84 -84
  96. package/dist/components/FormViewer/helpers/helpers.d.ts +84 -84
  97. package/dist/components/FormViewer/helpers/steps.d.ts +84 -84
  98. package/dist/components/FormViewer/helpers/steps.d.ts.map +1 -1
  99. package/dist/components/FormViewer/helpers/steps.js +22 -21
  100. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +71 -71
  101. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +84 -84
  102. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +3 -3
  103. package/dist/components/FormViewer/store/formStore.d.ts +357 -357
  104. package/dist/components/FormViewer/store/formStoreApi.d.ts +178 -178
  105. package/dist/components/FormViewer/store/selectors.d.ts +23861 -23861
  106. package/dist/components/FormViewer/types/schemes.d.ts +1139 -1139
  107. package/dist/components/Logotype.d.ts +6 -4
  108. package/dist/components/Logotype.d.ts.map +1 -1
  109. package/dist/components/Logotype.js +62 -30
  110. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  111. package/dist/components/NavMenu/components/NavMenuItem.js +122 -107
  112. package/dist/components/NavMenu/types.d.ts +1 -0
  113. package/dist/components/NavMenu/types.d.ts.map +1 -1
  114. package/dist/components/OnBoarding/OnBoardingPage.js +35 -35
  115. package/dist/components/ProjectIcon/ProjectIcon.js +13 -13
  116. package/dist/components/TreeIndent/TreeIndent.d.ts +9 -0
  117. package/dist/components/TreeIndent/TreeIndent.d.ts.map +1 -0
  118. package/dist/components/TreeIndent/TreeIndent.js +15 -0
  119. package/dist/components/TreeIndent/TreeIndent.module.css.js +11 -0
  120. package/dist/components/TreeIndent/index.d.ts +2 -0
  121. package/dist/components/TreeIndent/index.d.ts.map +1 -0
  122. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +6 -6
  123. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  124. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +97 -101
  125. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  126. package/dist/config/brand.d.ts +49 -0
  127. package/dist/config/brand.d.ts.map +1 -0
  128. package/dist/config/brand.js +77 -0
  129. package/dist/config/envConfig.d.ts +110 -0
  130. package/dist/config/envConfig.d.ts.map +1 -0
  131. package/dist/config/envConfig.js +48 -0
  132. package/dist/constants.d.ts +1 -1
  133. package/dist/constants.d.ts.map +1 -1
  134. package/dist/constants.js +19 -7
  135. package/dist/helpers/getFileIcons.d.ts.map +1 -1
  136. package/dist/helpers/getFileIcons.js +34 -29
  137. package/dist/helpers/getFileType.d.ts +1 -1
  138. package/dist/helpers/getFileType.d.ts.map +1 -1
  139. package/dist/helpers/getFileType.js +3 -3
  140. package/dist/helpers/hotjar.d.ts.map +1 -1
  141. package/dist/helpers/hotjar.js +11 -7
  142. package/dist/helpers/platform.js +4 -4
  143. package/dist/helpers/showNotifications.d.ts +3 -0
  144. package/dist/helpers/showNotifications.d.ts.map +1 -1
  145. package/dist/helpers/showNotifications.js +79 -44
  146. package/dist/hooks/useDateFnsLocale.d.ts +2 -0
  147. package/dist/hooks/useDateFnsLocale.d.ts.map +1 -1
  148. package/dist/hooks/useDateFnsLocale.js +9 -8
  149. package/dist/hooks/useDateUtils.d.ts.map +1 -1
  150. package/dist/hooks/useDateUtils.js +19 -19
  151. package/dist/hooks/useDisableWindowScroll.js +3 -3
  152. package/dist/hooks/useFormatDistance.d.ts.map +1 -1
  153. package/dist/hooks/useFormatDistance.js +6 -6
  154. package/dist/hooks/useNumberQueryParam.d.ts +1 -1
  155. package/dist/hooks/useNumberQueryParam.d.ts.map +1 -1
  156. package/dist/index.css +1 -1
  157. package/dist/index.d.ts +5 -0
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +505 -487
  160. package/dist/lang/locales/ui_en.json.js +1 -1
  161. package/dist/lang/locales/ui_es.json.js +5 -5
  162. package/dist/lang/locales/ui_ru.json.js +5 -5
  163. package/dist/utils/formatStorage.d.ts +9 -0
  164. package/dist/utils/formatStorage.d.ts.map +1 -1
  165. package/dist/utils/formatStorage.js +14 -10
  166. package/package.json +3 -6
  167. package/dist/assets/svg/default_icon.svg.js +0 -4
  168. package/dist/assets/svg/layers-logo-full.svg.js +0 -4
@@ -1,79 +1,77 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { useState as l, useMemo as I, useEffect as b, useCallback as S } from "react";
3
- import { useTranslation as P } from "react-i18next";
4
- import { Search01Icon as T } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as w } from "@hugeicons/react";
6
- import { Stack as C, FocusTrap as z, TextInput as G, Loader as L, Box as k, SimpleGrid as j, AspectRatio as D, Button as F } from "@mantine/core";
7
- import { useDebouncedValue as M, useDebouncedCallback as q } from "@mantine/hooks";
8
- import { NoData as B } from "../NoData/NoData.js";
9
- import { FilePickerSkeletonLoader as N } from "./FilePickerSkeletonLoader.js";
10
- import { useGiphyPhotos as Q } from "./api/giphyApi.js";
11
- import R from "./FilePicker.module.css.js";
12
- const v = (c) => (c || []).reduce((r, o) => (r[o.id] = o, r), {}), W = ({
13
- token: c,
14
- onChange: r
2
+ import { useState as l, useMemo as x, useEffect as f, useCallback as I } from "react";
3
+ import { useTranslation as S } from "react-i18next";
4
+ import { Search01Icon as P } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon as T } from "@hugeicons/react";
6
+ import { Stack as b, FocusTrap as w, TextInput as z, Loader as G, Box as C, SimpleGrid as L, AspectRatio as j, Button as D } from "@mantine/core";
7
+ import { useDebouncedValue as F, useDebouncedCallback as M } from "@mantine/hooks";
8
+ import { NoData as q } from "../NoData/NoData.js";
9
+ import { FilePickerSkeletonLoader as B } from "./FilePickerSkeletonLoader.js";
10
+ import { useGiphyPhotos as N } from "./api/giphyApi.js";
11
+ import Q from "./FilePicker.module.css.js";
12
+ const k = (c) => (c || []).reduce((o, i) => (o[i.id] = i, o), {}), U = ({
13
+ onChange: c
15
14
  }) => {
16
- const { t: o } = P("ui"), [m, y] = l(""), [u] = M(m, 800), [d, p] = l(1), [h, g] = l({}), { data: i, isLoading: s } = Q(
17
- { q: u, limit: 24, offset: (d - 1) * 24 + 1 },
18
- d,
19
- c
20
- ), a = I(
21
- () => Object.values({ ...h, ...v(i?.items) }),
22
- [h, i?.items]
23
- ), f = q(() => {
15
+ const { t: o } = S("ui"), [i, v] = l(""), [m] = F(i, 800), [u, d] = l(1), [p, h] = l({}), { data: r, isLoading: s } = N(
16
+ { q: m, limit: 24, offset: (u - 1) * 24 + 1 },
17
+ u
18
+ ), a = x(
19
+ () => Object.values({ ...p, ...k(r?.items) }),
20
+ [p, r?.items]
21
+ ), g = M(() => {
24
22
  setTimeout(() => {
25
- g((t) => ({ ...t, ...v(i?.items) }));
23
+ h((t) => ({ ...t, ...k(r?.items) }));
26
24
  }, 0);
27
25
  }, 100);
28
- b(() => {
29
- f();
30
- }, [i?.items, f]), b(() => {
31
- g({});
32
- }, [u]);
33
- const x = S(
26
+ f(() => {
27
+ g();
28
+ }, [r?.items, g]), f(() => {
29
+ h({});
30
+ }, [m]);
31
+ const y = I(
34
32
  (t) => {
35
- y(t.currentTarget.value), p(1);
33
+ v(t.currentTarget.value), d(1);
36
34
  },
37
35
  []
38
36
  );
39
- return /* @__PURE__ */ n(C, { gap: "sm", children: [
40
- /* @__PURE__ */ e(z, { active: !0, children: /* @__PURE__ */ e(
41
- G,
37
+ return /* @__PURE__ */ n(b, { gap: "sm", children: [
38
+ /* @__PURE__ */ e(w, { active: !0, children: /* @__PURE__ */ e(
39
+ z,
42
40
  {
43
- leftSection: s ? /* @__PURE__ */ e(L, { size: 16 }) : /* @__PURE__ */ e(w, { size: 16, icon: T }),
41
+ leftSection: s ? /* @__PURE__ */ e(G, { size: 16 }) : /* @__PURE__ */ e(T, { size: 16, icon: P }),
44
42
  maxLength: 50,
45
43
  placeholder: o("changeCover.searchGifs"),
46
44
  "data-autofocus": !0,
47
- value: m,
48
- onChange: x
45
+ value: i,
46
+ onChange: y
49
47
  }
50
48
  ) }),
51
- /* @__PURE__ */ n(k, { mah: 300, w: "100%", style: { overflowY: "auto" }, children: [
52
- !!a.length && /* @__PURE__ */ n(C, { gap: 8, children: [
53
- /* @__PURE__ */ e(j, { cols: 4, spacing: 10, children: a.map((t) => /* @__PURE__ */ e(
54
- D,
49
+ /* @__PURE__ */ n(C, { mah: 300, w: "100%", style: { overflowY: "auto" }, children: [
50
+ !!a.length && /* @__PURE__ */ n(b, { gap: 8, children: [
51
+ /* @__PURE__ */ e(L, { cols: 4, spacing: 10, children: a.map((t) => /* @__PURE__ */ e(
52
+ j,
55
53
  {
56
- onClick: () => r?.(t.images.original.url),
54
+ onClick: () => c?.(t.images.original.url),
57
55
  ratio: 120 / 65,
58
- className: R.itemImage,
56
+ className: Q.itemImage,
59
57
  style: {
60
58
  backgroundImage: `url(${t.images.preview_webp.url})`
61
59
  }
62
60
  },
63
61
  t.id
64
62
  )) }),
65
- i?.hasMore && /* @__PURE__ */ e(
66
- F,
63
+ r?.hasMore && /* @__PURE__ */ e(
64
+ D,
67
65
  {
68
66
  variant: "subtle",
69
67
  loading: s,
70
- onClick: () => p((t) => t + 1),
68
+ onClick: () => d((t) => t + 1),
71
69
  children: o("loadMode")
72
70
  }
73
71
  )
74
72
  ] }),
75
- !a.length && !s && /* @__PURE__ */ e(k, { pb: 16, children: /* @__PURE__ */ e(
76
- B,
73
+ !a.length && !s && /* @__PURE__ */ e(C, { pb: 16, children: /* @__PURE__ */ e(
74
+ q,
77
75
  {
78
76
  size: 120,
79
77
  illustration: "noImage",
@@ -81,10 +79,10 @@ const v = (c) => (c || []).reduce((r, o) => (r[o.id] = o, r), {}), W = ({
81
79
  titleProps: { size: "xs", c: "dimmed" }
82
80
  }
83
81
  ) }),
84
- !a.length && s && /* @__PURE__ */ e(N, {})
82
+ !a.length && s && /* @__PURE__ */ e(B, {})
85
83
  ] })
86
84
  ] });
87
85
  };
88
86
  export {
89
- W as FilePickerGiphy
87
+ U as FilePickerGiphy
90
88
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FilePickerLink.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerLink.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMnC,eAAO,MAAM,cAAc,GAAI,sCAI5B;IACD,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CAC5C,4CAkEA,CAAC"}
1
+ {"version":3,"file":"FilePickerLink.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerLink.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAInC,eAAO,MAAM,cAAc,GAAI,sCAI5B;IACD,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CAC5C,4CAkEA,CAAC"}
@@ -1,45 +1,45 @@
1
1
  import { jsxs as u, jsx as r } from "react/jsx-runtime";
2
2
  import { useTranslation as c } from "react-i18next";
3
- import { Stack as m, FocusTrap as d, TextInput as f, Flex as p, Button as h } from "@mantine/core";
4
- import { useForm as g } from "@mantine/form";
5
- import { isValidUrl as v, isImageUrl as k, isVideoUrl as x, isAudioUrl as F } from "../../helpers/validation.js";
6
- import I from "./FilePicker.module.css.js";
7
- import { Search01Icon as L } from "@hugeicons/core-free-icons";
8
- import { HugeiconsIcon as w } from "@hugeicons/react";
3
+ import { Search01Icon as m } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon as d } from "@hugeicons/react";
5
+ import { Stack as f, FocusTrap as p, TextInput as h, Flex as g, Button as v } from "@mantine/core";
6
+ import { useForm as k } from "@mantine/form";
7
+ import { isValidUrl as x, isImageUrl as F, isVideoUrl as I, isAudioUrl as L } from "../../helpers/validation.js";
8
+ import w from "./FilePicker.module.css.js";
9
9
  const P = ({
10
10
  onChange: a,
11
11
  type: o,
12
12
  isValidMediaUrl: s
13
13
  }) => {
14
- const { t } = c("ui"), l = g({
14
+ const { t } = c("ui"), l = k({
15
15
  initialValues: {
16
16
  url: ""
17
17
  },
18
18
  validate: {
19
- url: (e) => (e || "").trim().length > 0 && v(e) ? null : t("changeCover.invalidLink")
19
+ url: (e) => (e || "").trim().length > 0 && x(e) ? null : t("changeCover.invalidLink")
20
20
  }
21
21
  }), n = async () => {
22
22
  const { values: e } = l;
23
23
  let i;
24
- o === "image" ? i = await k(e.url) : o === "video" ? s && s(e.url) ? i = !0 : i = await x(e.url) : o === "audio" ? i = await F(e.url) : i = !0, i ? a?.(e.url) : l.setFieldError("url", t("changeCover.invalidLink"));
24
+ o === "image" ? i = await F(e.url) : o === "video" ? s && s(e.url) ? i = !0 : i = await I(e.url) : o === "audio" ? i = await L(e.url) : i = !0, i ? a?.(e.url) : l.setFieldError("url", t("changeCover.invalidLink"));
25
25
  };
26
- return /* @__PURE__ */ u(m, { gap: "sm", children: [
27
- /* @__PURE__ */ r(d, { active: !0, children: /* @__PURE__ */ r(
28
- f,
26
+ return /* @__PURE__ */ u(f, { gap: "sm", children: [
27
+ /* @__PURE__ */ r(p, { active: !0, children: /* @__PURE__ */ r(
28
+ h,
29
29
  {
30
30
  maxLength: 500,
31
31
  size: "sm",
32
32
  placeholder: t("changeCover.pasteLink"),
33
- leftSection: /* @__PURE__ */ r(w, { size: 16, icon: L }),
33
+ leftSection: /* @__PURE__ */ r(d, { size: 16, icon: m }),
34
34
  "data-autofocus": !0,
35
35
  ...l.getInputProps("url")
36
36
  }
37
37
  ) }),
38
- /* @__PURE__ */ r(p, { justify: "flex-end", align: "center", mt: "sm", children: /* @__PURE__ */ r(
39
- h,
38
+ /* @__PURE__ */ r(g, { justify: "flex-end", align: "center", mt: "sm", children: /* @__PURE__ */ r(
39
+ v,
40
40
  {
41
41
  onClick: n,
42
- className: I.button,
42
+ className: w.button,
43
43
  disabled: !l.values.url,
44
44
  children: t("customDrawer.save")
45
45
  }
@@ -1,4 +1,4 @@
1
- export declare const FilePickerUnsplash: ({ onChange, clientId, }: {
1
+ export declare const FilePickerUnsplash: ({ onChange, }: {
2
2
  clientId?: string;
3
3
  onChange?: (v: string) => void;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"FilePickerUnsplash.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerUnsplash.tsx"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB,GAAI,yBAGhC;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,4CA0HA,CAAC"}
1
+ {"version":3,"file":"FilePickerUnsplash.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerUnsplash.tsx"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB,GAAI,eAEhC;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,4CAyHA,CAAC"}
@@ -1,100 +1,98 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { useState as m, useMemo as T, useEffect as k, useCallback as z } from "react";
3
- import { useTranslation as L } from "react-i18next";
4
- import { Search01Icon as j } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as B } from "@hugeicons/react";
6
- import { Stack as C, FocusTrap as D, TextInput as F, Loader as M, Box as c, SimpleGrid as N, AspectRatio as _, Text as b, Button as q } from "@mantine/core";
7
- import { useDebouncedValue as w, useDebouncedCallback as A } from "@mantine/hooks";
8
- import { NoData as Q } from "../NoData/NoData.js";
9
- import { FilePickerSkeletonLoader as R } from "./FilePickerSkeletonLoader.js";
10
- import { useUnsplashPhotos as U } from "./api/unsplashApi.js";
11
- import y from "./FilePicker.module.css.js";
12
- const v = (l) => (l || []).reduce((s, r) => (s[r.id] = r, s), {}), Z = ({
13
- onChange: l,
14
- clientId: s
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { useState as m, useMemo as P, useEffect as f, useCallback as T } from "react";
3
+ import { useTranslation as z } from "react-i18next";
4
+ import { Search01Icon as L } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon as j } from "@hugeicons/react";
6
+ import { Stack as k, FocusTrap as B, TextInput as D, Loader as F, Box as c, SimpleGrid as M, AspectRatio as N, Text as C, Button as _ } from "@mantine/core";
7
+ import { useDebouncedValue as q, useDebouncedCallback as w } from "@mantine/hooks";
8
+ import { NoData as A } from "../NoData/NoData.js";
9
+ import { FilePickerSkeletonLoader as Q } from "./FilePickerSkeletonLoader.js";
10
+ import { useUnsplashPhotos as R } from "./api/unsplashApi.js";
11
+ import b from "./FilePicker.module.css.js";
12
+ const y = (l) => (l || []).reduce((r, o) => (r[o.id] = o, r), {}), X = ({
13
+ onChange: l
15
14
  }) => {
16
- const { t: r } = L("ui"), [u, x] = m(""), [h] = w(u, 800), [I, p] = m(1), [d, g] = m({}), { data: o, isLoading: n } = U(
15
+ const { t: r } = z("ui"), [o, v] = m(""), [u] = q(o, 800), [x, h] = m(1), [p, d] = m({}), { data: a, isLoading: n } = R(
17
16
  {
18
- query: h,
19
- page: I,
17
+ query: u,
18
+ page: x,
20
19
  per_page: 24,
21
20
  order_by: "popular"
22
- },
23
- s
24
- ), i = T(
25
- () => Object.values({ ...d, ...v(o?.items) }),
26
- [d, o?.items]
27
- ), f = A(() => {
21
+ }
22
+ ), i = P(
23
+ () => Object.values({ ...p, ...y(a?.items) }),
24
+ [p, a?.items]
25
+ ), g = w(() => {
28
26
  setTimeout(() => {
29
- g((t) => ({ ...t, ...v(o?.items) }));
27
+ d((t) => ({ ...t, ...y(a?.items) }));
30
28
  }, 0);
31
29
  }, 100);
32
- k(() => {
33
- f();
34
- }, [o?.items, f]), k(() => {
35
- g({});
36
- }, [h]);
37
- const S = z(
30
+ f(() => {
31
+ g();
32
+ }, [a?.items, g]), f(() => {
33
+ d({});
34
+ }, [u]);
35
+ const I = T(
38
36
  (t) => {
39
- x(t.currentTarget.value), p(1);
37
+ v(t.currentTarget.value), h(1);
40
38
  },
41
39
  []
42
40
  );
43
- return /* @__PURE__ */ a(C, { gap: "sm", children: [
44
- /* @__PURE__ */ e(D, { active: !0, children: /* @__PURE__ */ e(
45
- F,
41
+ return /* @__PURE__ */ s(k, { gap: "sm", children: [
42
+ /* @__PURE__ */ e(B, { active: !0, children: /* @__PURE__ */ e(
43
+ D,
46
44
  {
47
- leftSection: n ? /* @__PURE__ */ e(M, { size: 16 }) : /* @__PURE__ */ e(B, { size: 16, icon: j }),
45
+ leftSection: n ? /* @__PURE__ */ e(F, { size: 16 }) : /* @__PURE__ */ e(j, { size: 16, icon: L }),
48
46
  maxLength: 50,
49
47
  placeholder: r("changeCover.searchImage"),
50
48
  "data-autofocus": !0,
51
- value: u,
52
- onChange: S
49
+ value: o,
50
+ onChange: I
53
51
  }
54
52
  ) }),
55
- /* @__PURE__ */ a(c, { mah: 300, w: "100%", style: { overflowY: "auto" }, children: [
56
- !!i.length && /* @__PURE__ */ a(C, { gap: 8, children: [
57
- /* @__PURE__ */ e(N, { cols: 4, spacing: 10, children: i.map((t) => /* @__PURE__ */ a(c, { children: [
53
+ /* @__PURE__ */ s(c, { mah: 300, w: "100%", style: { overflowY: "auto" }, children: [
54
+ !!i.length && /* @__PURE__ */ s(k, { gap: 8, children: [
55
+ /* @__PURE__ */ e(M, { cols: 4, spacing: 10, children: i.map((t) => /* @__PURE__ */ s(c, { children: [
58
56
  /* @__PURE__ */ e(
59
- _,
57
+ N,
60
58
  {
61
59
  onClick: () => l?.(t.urls.regular),
62
60
  ratio: 120 / 65,
63
- className: y.itemImage,
61
+ className: b.itemImage,
64
62
  style: {
65
63
  backgroundImage: `url(${t.urls.small})`
66
64
  }
67
65
  }
68
66
  ),
69
- /* @__PURE__ */ e(c, { className: y.imageAuthor, children: /* @__PURE__ */ a(b, { truncate: !0, c: "gray", size: "xs", children: [
67
+ /* @__PURE__ */ e(c, { className: b.imageAuthor, children: /* @__PURE__ */ s(C, { truncate: !0, c: "gray", size: "xs", children: [
70
68
  r("changeCover.photoBy"),
71
69
  " ",
72
70
  /* @__PURE__ */ e(
73
- b,
71
+ C,
74
72
  {
75
73
  component: "a",
76
74
  inherit: !0,
77
75
  href: t.user.links.html,
78
76
  target: "_blank",
79
77
  rel: "noopener noreferrer",
80
- onClick: (P) => P.stopPropagation(),
78
+ onClick: (S) => S.stopPropagation(),
81
79
  children: t.user.name
82
80
  }
83
81
  )
84
82
  ] }) })
85
83
  ] }, t.id)) }),
86
- o?.hasMore && /* @__PURE__ */ e(
87
- q,
84
+ a?.hasMore && /* @__PURE__ */ e(
85
+ _,
88
86
  {
89
87
  variant: "subtle",
90
88
  loading: n,
91
- onClick: () => p((t) => t + 1),
89
+ onClick: () => h((t) => t + 1),
92
90
  children: r("loadMore")
93
91
  }
94
92
  )
95
93
  ] }),
96
94
  !i.length && !n && /* @__PURE__ */ e(c, { pb: 16, children: /* @__PURE__ */ e(
97
- Q,
95
+ A,
98
96
  {
99
97
  size: 120,
100
98
  illustration: "noImage",
@@ -102,10 +100,10 @@ const v = (l) => (l || []).reduce((s, r) => (s[r.id] = r, s), {}), Z = ({
102
100
  titleProps: { size: "xs", c: "dimmed" }
103
101
  }
104
102
  ) }),
105
- !i.length && n && /* @__PURE__ */ e(R, {})
103
+ !i.length && n && /* @__PURE__ */ e(Q, {})
106
104
  ] })
107
105
  ] });
108
106
  };
109
107
  export {
110
- Z as FilePickerUnsplash
108
+ X as FilePickerUnsplash
111
109
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FilePickerUpload.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerUpload.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,aAAa,EAEb,YAAY,EAEb,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,8BAA8B,CAAC;AAEtC,eAAO,MAAM,gBAAgB,GAAI,+CAK9B;IACD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IAC9C,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;CAC3C,4CA2GA,CAAC"}
1
+ {"version":3,"file":"FilePickerUpload.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePickerUpload.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,aAAa,EAEb,YAAY,EAEb,MAAM,mBAAmB,CAAC;AAK3B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,8BAA8B,CAAC;AAEtC,eAAO,MAAM,gBAAgB,GAAI,+CAK9B;IACD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IAC9C,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;CAC3C,4CA8GA,CAAC"}
@@ -1,27 +1,28 @@
1
- import { jsx as o, jsxs as f } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as d } from "react/jsx-runtime";
2
2
  import { useCallback as p } from "react";
3
- import { useTranslation as k, Trans as z } from "react-i18next";
4
- import { Image02Icon as M } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as v } from "@hugeicons/react";
6
- import { Stack as d, Text as l } from "@mantine/core";
7
- import { Dropzone as I, IMAGE_MIME_TYPE as E } from "@mantine/dropzone";
3
+ import { useTranslation as F, Trans as k } from "react-i18next";
4
+ import { Image02Icon as v } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon as I } from "@hugeicons/react";
6
+ import { Stack as x, Text as s } from "@mantine/core";
7
+ import { Dropzone as E, IMAGE_MIME_TYPE as N } from "@mantine/dropzone";
8
8
  import { showNotification as h } from "@mantine/notifications";
9
- import { showErrorNotification as N } from "../../helpers/showNotifications.js";
10
- import S from "./FilePicker.module.css.js";
9
+ import { getMaxUploadSize as g } from "../../config/envConfig.js";
10
+ import { showErrorNotification as T } from "../../helpers/showNotifications.js";
11
+ import b from "./FilePicker.module.css.js";
11
12
  import "@mantine/dropzone/styles.css";
12
- const C = ({
13
- type: s = "image",
14
- uploading: g,
15
- dropZoneProps: n,
13
+ const Y = ({
14
+ type: a = "image",
15
+ uploading: u,
16
+ dropZoneProps: i,
16
17
  onUpload: c
17
18
  }) => {
18
- const { t: e } = k("ui"), u = n?.maxSize != null ? Math.round(n.maxSize / (1024 * 1024)) : 5, a = `filePicker.description.${s}`, x = `filePicker.dropFileHere.${s}`, m = (() => {
19
- const r = e(a, { maxSize: u });
20
- return r !== a ? r : null;
21
- })(), y = p(
19
+ const { t: e } = F("ui"), l = i?.maxSize != null ? Math.round(i.maxSize / (1024 * 1024)) : Math.round((g() ?? 5 * 1024 * 1024) / (1024 * 1024)), m = `filePicker.description.${a}`, y = `filePicker.dropFileHere.${a}`, f = (() => {
20
+ const r = e(m, { maxSize: l });
21
+ return r !== m ? r : null;
22
+ })(), z = p(
22
23
  (r) => {
23
24
  if (r.filter(
24
- (i) => i.errors.some((t) => t.code === "file-invalid-type")
25
+ (t) => t.errors.some((n) => n.code === "file-invalid-type")
25
26
  ).length > 0) {
26
27
  h({
27
28
  color: "blue",
@@ -29,15 +30,15 @@ const C = ({
29
30
  });
30
31
  return;
31
32
  }
32
- if (r.some((i) => i.errors.some((t) => t.code === "file-too-large"))) {
33
- N({
33
+ if (r.some((t) => t.errors.some((n) => n.code === "file-too-large"))) {
34
+ T({
34
35
  title: e("errorMessage"),
35
- message: e("filePicker.errors.shouldNotExceed")
36
+ message: e("filePicker.errors.shouldNotExceed", { maxSize: l })
36
37
  });
37
38
  return;
38
39
  }
39
40
  if (r.filter(
40
- (i) => i.errors.some((t) => t.code === "too-many-files")
41
+ (t) => t.errors.some((n) => n.code === "too-many-files")
41
42
  ).length > 0) {
42
43
  h({
43
44
  color: "blue",
@@ -46,22 +47,23 @@ const C = ({
46
47
  return;
47
48
  }
48
49
  },
49
- [e]
50
- ), F = p(c, [c]);
50
+ [e, l]
51
+ ), M = p(c, [c]), S = i?.maxSize ?? g() ?? 5 * 1024 * 1024;
51
52
  return /* @__PURE__ */ o(
52
- I,
53
+ E,
53
54
  {
54
- loading: g,
55
- onDrop: F,
56
- onReject: y,
57
- maxFiles: n?.maxFiles || 1,
58
- accept: E,
55
+ loading: u,
56
+ onDrop: M,
57
+ onReject: z,
58
+ maxFiles: i?.maxFiles || 1,
59
+ maxSize: S,
60
+ accept: N,
59
61
  px: 60,
60
62
  py: "xl",
61
- className: `${S.pickerDropZone}`,
62
- ...n || {},
63
- children: /* @__PURE__ */ f(
64
- d,
63
+ className: `${b.pickerDropZone}`,
64
+ ...i || {},
65
+ children: /* @__PURE__ */ d(
66
+ x,
65
67
  {
66
68
  justify: "center",
67
69
  gap: "var(--mantine-font-size-xs",
@@ -70,22 +72,22 @@ const C = ({
70
72
  style: { pointerEvents: "none" },
71
73
  children: [
72
74
  /* @__PURE__ */ o(
73
- v,
75
+ I,
74
76
  {
75
77
  size: 32,
76
78
  color: "var(--mantine-color-bright)",
77
- icon: M
79
+ icon: v
78
80
  }
79
81
  ),
80
- /* @__PURE__ */ f(d, { gap: 8, align: "center", children: [
81
- /* @__PURE__ */ o(l, { fw: 500, fz: "sm", c: "bright", lh: "sm", ta: "center", children: /* @__PURE__ */ o(
82
- z,
82
+ /* @__PURE__ */ d(x, { gap: 8, align: "center", children: [
83
+ /* @__PURE__ */ o(s, { fw: 500, fz: "sm", c: "bright", lh: "sm", ta: "center", children: /* @__PURE__ */ o(
84
+ k,
83
85
  {
84
86
  ns: "ui",
85
- i18nKey: x,
87
+ i18nKey: y,
86
88
  components: {
87
89
  choose: /* @__PURE__ */ o(
88
- l,
90
+ s,
89
91
  {
90
92
  component: "span",
91
93
  td: "underline",
@@ -95,7 +97,7 @@ const C = ({
95
97
  }
96
98
  }
97
99
  ) }),
98
- m && /* @__PURE__ */ o(l, { fz: "xs", fw: 400, lh: "140%", c: "dimmed", ta: "center", children: m })
100
+ f && /* @__PURE__ */ o(s, { fz: "xs", fw: 400, lh: "140%", c: "dimmed", ta: "center", children: f })
99
101
  ] })
100
102
  ]
101
103
  }
@@ -104,5 +106,5 @@ const C = ({
104
106
  );
105
107
  };
106
108
  export {
107
- C as FilePickerUpload
109
+ Y as FilePickerUpload
108
110
  };
@@ -5,7 +5,7 @@ type Data = {
5
5
  totalPages: number;
6
6
  hasMore: boolean;
7
7
  };
8
- export declare const fetchGiphyPhotos: (params: ApiGiphy.Request, page?: number, token?: string) => Promise<Data>;
9
- export declare const useGiphyPhotos: (params: ApiGiphy.Request, page: number, token?: string) => import("@tanstack/react-query").UseQueryResult<Data, Error>;
8
+ export declare const fetchGiphyPhotos: (params: ApiGiphy.Request, page?: number, _token?: string) => Promise<Data>;
9
+ export declare const useGiphyPhotos: (params: ApiGiphy.Request, page: number, _token?: string) => import("@tanstack/react-query").UseQueryResult<Data, Error>;
10
10
  export {};
11
11
  //# sourceMappingURL=giphyApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"giphyApi.d.ts","sourceRoot":"","sources":["../../../../src/components/FilePicker/api/giphyApi.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAI9C,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,QAAQ,CAAC,OAAO,EACxB,aAAQ,EACR,QAAQ,MAAM,KACb,OAAO,CAAC,IAAI,CA8Bd,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,QAAQ,QAAQ,CAAC,OAAO,EACxB,MAAM,MAAM,EACZ,QAAQ,MAAM,gEAMf,CAAC"}
1
+ {"version":3,"file":"giphyApi.d.ts","sourceRoot":"","sources":["../../../../src/components/FilePicker/api/giphyApi.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,QAAQ,CAAC,OAAO,EACxB,aAAQ,EACR,SAAS,MAAM,KACd,OAAO,CAAC,IAAI,CA2Bd,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,QAAQ,QAAQ,CAAC,OAAO,EACxB,MAAM,MAAM,EACZ,SAAS,MAAM,gEAMhB,CAAC"}
@@ -1,26 +1,23 @@
1
1
  import { useQuery as h } from "@tanstack/react-query";
2
- import p from "query-string";
3
- const u = "1kKxu8nbV5rsb4ieGGw0zERUSw0knTNr", y = async (o, n = 1, i) => {
4
- const a = o.q ? "/gifs/search" : "/gifs/trending", s = await fetch(
5
- `https://api.giphy.com/v1${a}?${p.stringify({
6
- ...o,
7
- api_key: i || u
8
- })}`
2
+ import u from "query-string";
3
+ const g = async (o, n = 1, e) => {
4
+ const a = o.q ? "/gifs/search" : "/gifs/trending", i = await fetch(
5
+ `/v1/media/giphy${a}?${u.stringify(o)}`
9
6
  );
10
- if (!s.ok)
7
+ if (!i.ok)
11
8
  throw new Error("Failed to fetch Giphy photos");
12
- const t = await s.json(), e = t.data, r = Math.ceil(t.pagination.total_count / 12), c = t.pagination.total_count % 12 === 0 || t.pagination.total_count > t.pagination.count + t.pagination.offset;
9
+ const t = await i.json(), s = t.data, r = Math.ceil(t.pagination.total_count / 12), c = t.pagination.total_count % 12 === 0 || t.pagination.total_count > t.pagination.count + t.pagination.offset;
13
10
  return {
14
- items: e,
11
+ items: s,
15
12
  page: n,
16
13
  totalPages: r,
17
14
  hasMore: c
18
15
  };
19
- }, w = (o, n, i) => h({
16
+ }, l = (o, n, e) => h({
20
17
  queryKey: ["giphyPhotos", o, n],
21
- queryFn: () => y(o, n, i)
18
+ queryFn: () => g(o, n)
22
19
  });
23
20
  export {
24
- y as fetchGiphyPhotos,
25
- w as useGiphyPhotos
21
+ g as fetchGiphyPhotos,
22
+ l as useGiphyPhotos
26
23
  };
@@ -5,7 +5,7 @@ type Data = {
5
5
  totalPages: number;
6
6
  hasMore: boolean;
7
7
  };
8
- export declare const fetchUnsplashPhotos: (params: ApiUnsplash.Request, clientId?: string, previousData?: Data) => Promise<Data>;
9
- export declare const useUnsplashPhotos: (params: ApiUnsplash.Request, clientId?: string, rest?: any) => import("@tanstack/react-query").DefinedUseQueryResult<Data, Error>;
8
+ export declare const fetchUnsplashPhotos: (params: ApiUnsplash.Request, _clientId?: string, previousData?: Data) => Promise<Data>;
9
+ export declare const useUnsplashPhotos: (params: ApiUnsplash.Request, _clientId?: string, rest?: any) => import("@tanstack/react-query").DefinedUseQueryResult<Data, Error>;
10
10
  export {};
11
11
  //# sourceMappingURL=unsplashApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unsplashApi.d.ts","sourceRoot":"","sources":["../../../../src/components/FilePicker/api/unsplashApi.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIpD,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,WAAW,CAAC,OAAO,EAC3B,WAAW,MAAM,EACjB,eAAe,IAAI,KAClB,OAAO,CAAC,IAAI,CA4Bd,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,WAAW,CAAC,OAAO,EAC3B,WAAW,MAAM,EACjB,OAAO,GAAG,uEAOX,CAAC"}
1
+ {"version":3,"file":"unsplashApi.d.ts","sourceRoot":"","sources":["../../../../src/components/FilePicker/api/unsplashApi.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,WAAW,CAAC,OAAO,EAC3B,YAAY,MAAM,EAClB,eAAe,IAAI,KAClB,OAAO,CAAC,IAAI,CAuBd,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,WAAW,CAAC,OAAO,EAC3B,YAAY,MAAM,EAClB,OAAO,GAAG,uEAOX,CAAC"}