@shopify/shop-minis-react 0.0.10 → 0.0.12

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 (93) hide show
  1. package/dist/_virtual/debounce.js +8 -0
  2. package/dist/_virtual/debounce.js.map +1 -0
  3. package/dist/components/commerce/merchant-card.js +201 -0
  4. package/dist/components/commerce/merchant-card.js.map +1 -0
  5. package/dist/components/commerce/product-card.js +11 -9
  6. package/dist/components/commerce/product-card.js.map +1 -1
  7. package/dist/hooks/product/useCuratedProducts.js +20 -0
  8. package/dist/hooks/product/useCuratedProducts.js.map +1 -0
  9. package/dist/hooks/product/useProduct.js +24 -0
  10. package/dist/hooks/product/useProduct.js.map +1 -0
  11. package/dist/hooks/product/useProductMedia.js +24 -0
  12. package/dist/hooks/product/useProductMedia.js.map +1 -0
  13. package/dist/hooks/product/useProductSearch.js +44 -0
  14. package/dist/hooks/product/useProductSearch.js.map +1 -0
  15. package/dist/hooks/product/useProductVariants.js +21 -0
  16. package/dist/hooks/product/useProductVariants.js.map +1 -0
  17. package/dist/hooks/product/useProducts.js +17 -0
  18. package/dist/hooks/product/useProducts.js.map +1 -0
  19. package/dist/hooks/shop/useShop.js +17 -0
  20. package/dist/hooks/shop/useShop.js.map +1 -0
  21. package/dist/hooks/user/useFollowedShops.js +21 -0
  22. package/dist/hooks/user/useFollowedShops.js.map +1 -0
  23. package/dist/hooks/user/useRecentProducts.js +21 -0
  24. package/dist/hooks/user/useRecentProducts.js.map +1 -0
  25. package/dist/hooks/user/useRecentShops.js +21 -0
  26. package/dist/hooks/user/useRecentShops.js.map +1 -0
  27. package/dist/hooks/user/useSavedProducts.js +21 -0
  28. package/dist/hooks/user/useSavedProducts.js.map +1 -0
  29. package/dist/index.js +210 -178
  30. package/dist/index.js.map +1 -1
  31. package/dist/internal/useShopActionsPaginatedDataFetching.js +24 -24
  32. package/dist/internal/useShopActionsPaginatedDataFetching.js.map +1 -1
  33. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +12 -0
  34. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js.map +1 -0
  35. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +17 -0
  36. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js.map +1 -0
  37. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js +15 -0
  38. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js.map +1 -0
  39. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +12 -0
  40. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js.map +1 -0
  41. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +22 -0
  42. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js.map +1 -0
  43. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +14 -0
  44. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js.map +1 -0
  45. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +12 -0
  46. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js.map +1 -0
  47. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js +16 -0
  48. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
  49. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js +61 -0
  50. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js.map +1 -0
  51. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +14 -0
  52. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js.map +1 -0
  53. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +13 -0
  54. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js.map +1 -0
  55. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +16 -0
  56. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js.map +1 -0
  57. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js +14 -0
  58. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js.map +1 -0
  59. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js +29 -0
  60. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js.map +1 -0
  61. package/dist/types/minisSDK.generated.d.js.map +1 -1
  62. package/package.json +18 -17
  63. package/src/base.css +264 -0
  64. package/src/components/commerce/merchant-card.tsx +262 -0
  65. package/src/components/commerce/product-card.tsx +3 -1
  66. package/src/components/index.ts +1 -0
  67. package/src/hooks/index.ts +11 -0
  68. package/src/hooks/product/useCuratedProducts.doc.ts +32 -0
  69. package/src/hooks/product/useCuratedProducts.example.tsx +10 -0
  70. package/src/hooks/product/useCuratedProducts.ts +41 -0
  71. package/src/hooks/product/useProduct.ts +45 -0
  72. package/src/hooks/product/useProductMedia.ts +51 -0
  73. package/src/hooks/product/useProductSearch.doc.ts +32 -0
  74. package/src/hooks/product/useProductSearch.example.tsx +13 -0
  75. package/src/hooks/product/useProductSearch.ts +95 -0
  76. package/src/hooks/product/useProductVariants.ts +48 -0
  77. package/src/hooks/product/useProducts.ts +38 -0
  78. package/src/hooks/shop/useShop.doc.ts +31 -0
  79. package/src/hooks/shop/useShop.example.tsx +7 -0
  80. package/src/hooks/shop/useShop.ts +38 -0
  81. package/src/hooks/user/useFollowedShops.ts +43 -0
  82. package/src/hooks/user/useRecentProducts.doc.ts +32 -0
  83. package/src/hooks/user/useRecentProducts.example.tsx +13 -0
  84. package/src/hooks/user/useRecentProducts.ts +46 -0
  85. package/src/hooks/user/useRecentShops.ts +43 -0
  86. package/src/hooks/user/useSavedProducts.doc.ts +32 -0
  87. package/src/hooks/user/useSavedProducts.example.tsx +13 -0
  88. package/src/hooks/user/useSavedProducts.ts +46 -0
  89. package/src/index.css +1 -221
  90. package/src/internal/useShopActionsPaginatedDataFetching.ts +8 -8
  91. package/src/types/minisSDK.generated.d.ts +239 -4
  92. package/src/dev.tsx +0 -868
  93. package/src/mockActions.ts +0 -237
@@ -0,0 +1,21 @@
1
+ import { useMemo as a } from "react";
2
+ import { useShopActions as l } from "../../internal/useShopActions.js";
3
+ import { useShopActionsPaginatedDataFetching as c } from "../../internal/useShopActionsPaginatedDataFetching.js";
4
+ const u = (s) => {
5
+ const { getFollowedShops: t } = l(), { skip: e = !1, ...r } = s ?? {}, { data: o, ...n } = c(
6
+ t,
7
+ r,
8
+ {
9
+ skip: e,
10
+ hook: "useFollowedShops"
11
+ }
12
+ ), p = a(() => o ?? null, [o]);
13
+ return {
14
+ ...n,
15
+ shops: p
16
+ };
17
+ };
18
+ export {
19
+ u as useFollowedShops
20
+ };
21
+ //# sourceMappingURL=useFollowedShops.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFollowedShops.js","sources":["../../../src/hooks/user/useFollowedShops.ts"],"sourcesContent":["import {useMemo} from 'react'\n\nimport {useShopActions} from '../../internal/useShopActions'\nimport {useShopActionsPaginatedDataFetching} from '../../internal/useShopActionsPaginatedDataFetching'\nimport {\n PaginatedDataHookOptionsBase,\n PaginatedDataHookReturnsBase,\n Shop,\n} from '../../types'\n\nexport interface UseFollowedShopsParams extends PaginatedDataHookOptionsBase {}\n\ninterface UseFollowedShopsReturns extends PaginatedDataHookReturnsBase {\n /**\n * The followed shops returned from the query.\n */\n shops: Shop[] | null\n}\n\nexport const useFollowedShops = (\n params?: UseFollowedShopsParams\n): UseFollowedShopsReturns => {\n const {getFollowedShops} = useShopActions()\n const {skip = false, ...restParams} = params ?? {}\n\n const {data, ...rest} = useShopActionsPaginatedDataFetching(\n getFollowedShops,\n restParams,\n {\n skip,\n hook: 'useFollowedShops',\n }\n )\n\n const shops = useMemo(() => {\n return data ?? null\n }, [data])\n\n return {\n ...rest,\n shops,\n }\n}\n"],"names":["useFollowedShops","params","getFollowedShops","useShopActions","skip","restParams","data","rest","useShopActionsPaginatedDataFetching","shops","useMemo"],"mappings":";;;AAmBa,MAAAA,IAAmB,CAC9BC,MAC4B;AACtB,QAAA,EAAC,kBAAAC,EAAgB,IAAIC,EAAe,GACpC,EAAC,MAAAC,IAAO,IAAO,GAAGC,EAAU,IAAIJ,KAAU,CAAC,GAE3C,EAAC,MAAAK,GAAM,GAAGC,EAAA,IAAQC;AAAA,IACtBN;AAAA,IACAG;AAAA,IACA;AAAA,MACE,MAAAD;AAAA,MACA,MAAM;AAAA,IAAA;AAAA,EAEV,GAEMK,IAAQC,EAAQ,MACbJ,KAAQ,MACd,CAACA,CAAI,CAAC;AAEF,SAAA;AAAA,IACL,GAAGC;AAAA,IACH,OAAAE;AAAA,EACF;AACF;"}
@@ -0,0 +1,21 @@
1
+ import { useMemo as u } from "react";
2
+ import { useShopActions as i } from "../../internal/useShopActions.js";
3
+ import { useShopActionsPaginatedDataFetching as p } from "../../internal/useShopActionsPaginatedDataFetching.js";
4
+ const h = (o) => {
5
+ const { getRecentProducts: s } = i(), { skip: e, ...r } = o ?? {}, { data: t, ...c } = p(
6
+ s,
7
+ r,
8
+ {
9
+ skip: e,
10
+ hook: "useRecentProducts"
11
+ }
12
+ ), n = u(() => t ?? null, [t]);
13
+ return {
14
+ ...c,
15
+ products: n
16
+ };
17
+ };
18
+ export {
19
+ h as useRecentProducts
20
+ };
21
+ //# sourceMappingURL=useRecentProducts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRecentProducts.js","sources":["../../../src/hooks/user/useRecentProducts.ts"],"sourcesContent":["import {useMemo} from 'react'\n\nimport {useShopActions} from '../../internal/useShopActions'\nimport {useShopActionsPaginatedDataFetching} from '../../internal/useShopActionsPaginatedDataFetching'\nimport {\n PaginatedDataHookOptionsBase,\n PaginatedDataHookReturnsBase,\n Product,\n} from '../../types'\n\nexport interface UseRecentProductsParams extends PaginatedDataHookOptionsBase {\n includeSensitive?: boolean\n}\n\nexport interface UseRecentProductsReturns extends PaginatedDataHookReturnsBase {\n products: Product[] | null\n}\n\n/**\n * Hook to fetch recently viewed products.\n * @param params - Options for the hook.\n */\nexport const useRecentProducts = (\n params?: UseRecentProductsParams\n): UseRecentProductsReturns => {\n const {getRecentProducts} = useShopActions()\n const {skip, ...shopActionParams} = params ?? {}\n\n const {data, ...rest} = useShopActionsPaginatedDataFetching(\n getRecentProducts,\n shopActionParams,\n {\n skip,\n hook: 'useRecentProducts',\n }\n )\n\n const products = useMemo(() => {\n return data ?? null\n }, [data])\n\n return {\n ...rest,\n products,\n }\n}\n"],"names":["useRecentProducts","params","getRecentProducts","useShopActions","skip","shopActionParams","data","rest","useShopActionsPaginatedDataFetching","products","useMemo"],"mappings":";;;AAsBa,MAAAA,IAAoB,CAC/BC,MAC6B;AACvB,QAAA,EAAC,mBAAAC,EAAiB,IAAIC,EAAe,GACrC,EAAC,MAAAC,GAAM,GAAGC,EAAgB,IAAIJ,KAAU,CAAC,GAEzC,EAAC,MAAAK,GAAM,GAAGC,EAAA,IAAQC;AAAA,IACtBN;AAAA,IACAG;AAAA,IACA;AAAA,MACE,MAAAD;AAAA,MACA,MAAM;AAAA,IAAA;AAAA,EAEV,GAEMK,IAAWC,EAAQ,MAChBJ,KAAQ,MACd,CAACA,CAAI,CAAC;AAEF,SAAA;AAAA,IACL,GAAGC;AAAA,IACH,UAAAE;AAAA,EACF;AACF;"}
@@ -0,0 +1,21 @@
1
+ import { useMemo as p } from "react";
2
+ import { useShopActions as a } from "../../internal/useShopActions.js";
3
+ import { useShopActionsPaginatedDataFetching as h } from "../../internal/useShopActionsPaginatedDataFetching.js";
4
+ const S = (t) => {
5
+ const { getRecentShops: s } = a(), { skip: e = !1, ...n } = t ?? {}, { data: o, ...r } = h(
6
+ s,
7
+ n,
8
+ {
9
+ skip: e,
10
+ hook: "useRecentShops"
11
+ }
12
+ ), c = p(() => o ?? null, [o]);
13
+ return {
14
+ ...r,
15
+ shops: c
16
+ };
17
+ };
18
+ export {
19
+ S as useRecentShops
20
+ };
21
+ //# sourceMappingURL=useRecentShops.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRecentShops.js","sources":["../../../src/hooks/user/useRecentShops.ts"],"sourcesContent":["import {useMemo} from 'react'\n\nimport {useShopActions} from '../../internal/useShopActions'\nimport {useShopActionsPaginatedDataFetching} from '../../internal/useShopActionsPaginatedDataFetching'\nimport {\n PaginatedDataHookOptionsBase,\n PaginatedDataHookReturnsBase,\n Shop,\n} from '../../types'\n\nexport interface UseRecentShopsParams extends PaginatedDataHookOptionsBase {}\n\ninterface UseRecentShopsReturns extends PaginatedDataHookReturnsBase {\n /**\n * The recent shops returned from the query.\n */\n shops: Shop[] | null\n}\n\nexport const useRecentShops = (\n params?: UseRecentShopsParams\n): UseRecentShopsReturns => {\n const {getRecentShops} = useShopActions()\n const {skip = false, ...restParams} = params ?? {}\n\n const {data, ...rest} = useShopActionsPaginatedDataFetching(\n getRecentShops,\n restParams,\n {\n skip,\n hook: 'useRecentShops',\n }\n )\n\n const shops = useMemo(() => {\n return data ?? null\n }, [data])\n\n return {\n ...rest,\n shops,\n }\n}\n"],"names":["useRecentShops","params","getRecentShops","useShopActions","skip","restParams","data","rest","useShopActionsPaginatedDataFetching","shops","useMemo"],"mappings":";;;AAmBa,MAAAA,IAAiB,CAC5BC,MAC0B;AACpB,QAAA,EAAC,gBAAAC,EAAc,IAAIC,EAAe,GAClC,EAAC,MAAAC,IAAO,IAAO,GAAGC,EAAU,IAAIJ,KAAU,CAAC,GAE3C,EAAC,MAAAK,GAAM,GAAGC,EAAA,IAAQC;AAAA,IACtBN;AAAA,IACAG;AAAA,IACA;AAAA,MACE,MAAAD;AAAA,MACA,MAAM;AAAA,IAAA;AAAA,EAEV,GAEMK,IAAQC,EAAQ,MACbJ,KAAQ,MACd,CAACA,CAAI,CAAC;AAEF,SAAA;AAAA,IACL,GAAGC;AAAA,IACH,OAAAE;AAAA,EACF;AACF;"}
@@ -0,0 +1,21 @@
1
+ import { useMemo as u } from "react";
2
+ import { useShopActions as a } from "../../internal/useShopActions.js";
3
+ import { useShopActionsPaginatedDataFetching as d } from "../../internal/useShopActionsPaginatedDataFetching.js";
4
+ const h = (t) => {
5
+ const { getSavedProducts: s } = a(), { skip: r, ...e } = t ?? {}, { data: o, ...c } = d(
6
+ s,
7
+ e,
8
+ {
9
+ skip: r,
10
+ hook: "useSavedProducts"
11
+ }
12
+ ), n = u(() => o ?? null, [o]);
13
+ return {
14
+ ...c,
15
+ products: n
16
+ };
17
+ };
18
+ export {
19
+ h as useSavedProducts
20
+ };
21
+ //# sourceMappingURL=useSavedProducts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSavedProducts.js","sources":["../../../src/hooks/user/useSavedProducts.ts"],"sourcesContent":["import {useMemo} from 'react'\n\nimport {useShopActions} from '../../internal/useShopActions'\nimport {useShopActionsPaginatedDataFetching} from '../../internal/useShopActionsPaginatedDataFetching'\nimport {\n PaginatedDataHookOptionsBase,\n PaginatedDataHookReturnsBase,\n Product,\n} from '../../types'\n\nexport interface UseSavedProductsParams extends PaginatedDataHookOptionsBase {\n includeSensitive?: boolean\n}\n\nexport interface UseSavedProductsReturns extends PaginatedDataHookReturnsBase {\n products: Product[] | null\n}\n\n/**\n * Hook to fetch saved (favorited) products.\n * @param params - Options for the hook.\n */\nexport const useSavedProducts = (\n params?: UseSavedProductsParams\n): UseSavedProductsReturns => {\n const {getSavedProducts} = useShopActions()\n const {skip, ...shopActionParams} = params ?? {}\n\n const {data, ...rest} = useShopActionsPaginatedDataFetching(\n getSavedProducts,\n shopActionParams,\n {\n skip,\n hook: 'useSavedProducts',\n }\n )\n\n const products = useMemo(() => {\n return data ?? null\n }, [data])\n\n return {\n ...rest,\n products,\n }\n}\n"],"names":["useSavedProducts","params","getSavedProducts","useShopActions","skip","shopActionParams","data","rest","useShopActionsPaginatedDataFetching","products","useMemo"],"mappings":";;;AAsBa,MAAAA,IAAmB,CAC9BC,MAC4B;AACtB,QAAA,EAAC,kBAAAC,EAAgB,IAAIC,EAAe,GACpC,EAAC,MAAAC,GAAM,GAAGC,EAAgB,IAAIJ,KAAU,CAAC,GAEzC,EAAC,MAAAK,GAAM,GAAGC,EAAA,IAAQC;AAAA,IACtBN;AAAA,IACAG;AAAA,IACA;AAAA,MACE,MAAAD;AAAA,MACA,MAAM;AAAA,IAAA;AAAA,EAEV,GAEMK,IAAWC,EAAQ,MAChBJ,KAAQ,MACd,CAACA,CAAI,CAAC;AAEF,SAAA;AAAA,IACL,GAAGC;AAAA,IACH,UAAAE;AAAA,EACF;AACF;"}
package/dist/index.js CHANGED
@@ -1,194 +1,226 @@
1
1
  import { MinisContainer as o } from "./components/MinisContainer.js";
2
- import { ProductCard as a, ProductCardBadge as i, ProductCardCurrentPrice as l, ProductCardFavoriteButton as n, ProductCardImage as c, ProductCardImageContainer as u, ProductCardInfo as d, ProductCardOriginalPrice as p, ProductCardPrice as s, ProductCardRoot as m, ProductCardTitle as f } from "./components/commerce/product-card.js";
3
- import { ProductLink as g, ProductLinkActions as C, ProductLinkCurrentPrice as P, ProductLinkDiscountPrice as D, ProductLinkImage as S, ProductLinkInfo as A, ProductLinkOriginalPrice as k, ProductLinkPrice as L, ProductLinkRating as T, ProductLinkRoot as h, ProductLinkTitle as w } from "./components/commerce/product-link.js";
4
- import { Accordion as b, AccordionContent as v, AccordionItem as R, AccordionTrigger as F } from "./components/atoms/accordion.js";
5
- import { Alert as y, AlertDescription as E, AlertTitle as H } from "./components/atoms/alert.js";
6
- import { AlertDialog as G, AlertDialogAction as M, AlertDialogCancel as N, AlertDialogContent as U, AlertDialogDescription as z, AlertDialogFooter as V, AlertDialogHeader as j, AlertDialogOverlay as q, AlertDialogPortal as J, AlertDialogTitle as K, AlertDialogTrigger as Q } from "./components/atoms/alert-dialog.js";
7
- import { Avatar as X, AvatarFallback as Y, AvatarImage as Z } from "./components/atoms/avatar.js";
8
- import { Badge as $, badgeVariants as rr } from "./components/atoms/badge.js";
9
- import { Button as or, buttonVariants as tr } from "./components/atoms/button.js";
10
- import { Card as ir, CardAction as lr, CardContent as nr, CardDescription as cr, CardFooter as ur, CardHeader as dr, CardTitle as pr } from "./components/atoms/card.js";
11
- import { Carousel as mr, CarouselContent as fr, CarouselItem as xr, CarouselNext as gr, CarouselPrevious as Cr } from "./components/atoms/carousel.js";
12
- import { Checkbox as Dr } from "./components/atoms/checkbox.js";
13
- import { Dialog as Ar, DialogClose as kr, DialogContent as Lr, DialogDescription as Tr, DialogFooter as hr, DialogHeader as wr, DialogOverlay as Ir, DialogPortal as br, DialogTitle as vr, DialogTrigger as Rr } from "./components/atoms/dialog.js";
14
- import { Drawer as Br, DrawerClose as yr, DrawerContent as Er, DrawerDescription as Hr, DrawerFooter as Or, DrawerHeader as Gr, DrawerOverlay as Mr, DrawerPortal as Nr, DrawerTitle as Ur, DrawerTrigger as zr } from "./components/atoms/drawer.js";
15
- import { Input as jr } from "./components/atoms/input.js";
16
- import { Label as Jr } from "./components/atoms/label.js";
17
- import { Progress as Qr } from "./components/atoms/progress.js";
18
- import { RadioGroup as Xr, RadioGroupItem as Yr } from "./components/atoms/radio-group.js";
19
- import { ResizableHandle as _r, ResizablePanel as $r, ResizablePanelGroup as re } from "./components/atoms/resizable.js";
20
- import { ScrollArea as oe, ScrollBar as te } from "./components/atoms/scroll-area.js";
21
- import { Select as ie, SelectContent as le, SelectGroup as ne, SelectItem as ce, SelectLabel as ue, SelectScrollDownButton as de, SelectScrollUpButton as pe, SelectSeparator as se, SelectTrigger as me, SelectValue as fe } from "./components/atoms/select.js";
22
- import { Separator as ge } from "./components/atoms/separator.js";
23
- import { Sheet as Pe, SheetClose as De, SheetContent as Se, SheetDescription as Ae, SheetFooter as ke, SheetHeader as Le, SheetTitle as Te, SheetTrigger as he } from "./components/atoms/sheet.js";
24
- import { Toaster as Ie } from "./components/atoms/sonner.js";
25
- import { useSavedProductsActions as ve } from "./hooks/user/useSavedProductsActions.js";
26
- import { useFollowedShopsActions as Fe } from "./hooks/user/useFollowedShopsActions.js";
27
- import { useCurrentUser as ye } from "./hooks/user/useCurrentUser.js";
28
- import { useOrders as He } from "./hooks/user/useOrders.js";
29
- import { useBuyerAttributes as Ge } from "./hooks/user/useBuyerAttributes.js";
30
- import { useProductListActions as Ne } from "./hooks/product/useProductListActions.js";
31
- import { useProductLists as ze } from "./hooks/product/useProductLists.js";
32
- import { useProductList as je } from "./hooks/product/useProductList.js";
33
- import { useRecommendedProducts as Je } from "./hooks/product/useRecommendedProducts.js";
34
- import { usePopularProducts as Qe } from "./hooks/product/usePopularProducts.js";
35
- import { useAsyncStorage as Xe } from "./hooks/storage/useAsyncStorage.js";
36
- import { useSecureStorage as Ze } from "./hooks/storage/useSecureStorage.js";
37
- import { useImageUpload as $e } from "./hooks/storage/useImageUpload.js";
38
- import { useShopNavigation as eo } from "./hooks/navigation/useShopNavigation.js";
39
- import { useCloseMini as to } from "./hooks/navigation/useCloseMini.js";
40
- import { useDeeplink as io } from "./hooks/navigation/useDeeplink.js";
41
- import { useShopCartActions as no } from "./hooks/shop/useShopCartActions.js";
42
- import { useRecommendedShops as uo } from "./hooks/shop/useRecommendedShops.js";
43
- import { useErrorToast as so } from "./hooks/util/useErrorToast.js";
44
- import { useErrorScreen as fo } from "./hooks/util/useErrorScreen.js";
45
- import { useShare as go } from "./hooks/util/useShare.js";
46
- import { useImagePicker as Po } from "./hooks/util/useImagePicker.js";
47
- import { MiniEntityNotFoundError as So, MiniError as Ao, MiniNetworkError as ko, formatError as Lo } from "./utils/errors.js";
48
- import { parseUrl as ho } from "./utils/parseUrl.js";
49
- import { Consent as Io, ConsentStatus as bo, CurrencyCode as vo, Gender as Ro } from "./types/minisSDK.generated.d.js";
2
+ import { ProductCard as a, ProductCardBadge as i, ProductCardCurrentPrice as n, ProductCardFavoriteButton as c, ProductCardImage as l, ProductCardImageContainer as u, ProductCardInfo as d, ProductCardOriginalPrice as s, ProductCardPrice as p, ProductCardRoot as m, ProductCardTitle as f } from "./components/commerce/product-card.js";
3
+ import { ProductLink as C, ProductLinkActions as g, ProductLinkCurrentPrice as P, ProductLinkDiscountPrice as D, ProductLinkImage as S, ProductLinkInfo as A, ProductLinkOriginalPrice as h, ProductLinkPrice as L, ProductLinkRating as k, ProductLinkRoot as I, ProductLinkTitle as T } from "./components/commerce/product-link.js";
4
+ import { MerchantCard as w, MerchantCardImage as R, MerchantCardImageContainer as v, MerchantCardInfo as b, MerchantCardLogo as F, MerchantCardName as B, MerchantCardPrimitive as y, MerchantCardRating as E, MerchantCardRoot as H } from "./components/commerce/merchant-card.js";
5
+ import { Accordion as G, AccordionContent as N, AccordionItem as U, AccordionTrigger as V } from "./components/atoms/accordion.js";
6
+ import { Alert as j, AlertDescription as q, AlertTitle as J } from "./components/atoms/alert.js";
7
+ import { AlertDialog as Q, AlertDialogAction as W, AlertDialogCancel as X, AlertDialogContent as Y, AlertDialogDescription as Z, AlertDialogFooter as _, AlertDialogHeader as $, AlertDialogOverlay as rr, AlertDialogPortal as er, AlertDialogTitle as or, AlertDialogTrigger as tr } from "./components/atoms/alert-dialog.js";
8
+ import { Avatar as ir, AvatarFallback as nr, AvatarImage as cr } from "./components/atoms/avatar.js";
9
+ import { Badge as ur, badgeVariants as dr } from "./components/atoms/badge.js";
10
+ import { Button as pr, buttonVariants as mr } from "./components/atoms/button.js";
11
+ import { Card as xr, CardAction as Cr, CardContent as gr, CardDescription as Pr, CardFooter as Dr, CardHeader as Sr, CardTitle as Ar } from "./components/atoms/card.js";
12
+ import { Carousel as Lr, CarouselContent as kr, CarouselItem as Ir, CarouselNext as Tr, CarouselPrevious as Mr } from "./components/atoms/carousel.js";
13
+ import { Checkbox as Rr } from "./components/atoms/checkbox.js";
14
+ import { Dialog as br, DialogClose as Fr, DialogContent as Br, DialogDescription as yr, DialogFooter as Er, DialogHeader as Hr, DialogOverlay as Or, DialogPortal as Gr, DialogTitle as Nr, DialogTrigger as Ur } from "./components/atoms/dialog.js";
15
+ import { Drawer as zr, DrawerClose as jr, DrawerContent as qr, DrawerDescription as Jr, DrawerFooter as Kr, DrawerHeader as Qr, DrawerOverlay as Wr, DrawerPortal as Xr, DrawerTitle as Yr, DrawerTrigger as Zr } from "./components/atoms/drawer.js";
16
+ import { Input as $r } from "./components/atoms/input.js";
17
+ import { Label as ee } from "./components/atoms/label.js";
18
+ import { Progress as te } from "./components/atoms/progress.js";
19
+ import { RadioGroup as ie, RadioGroupItem as ne } from "./components/atoms/radio-group.js";
20
+ import { ResizableHandle as le, ResizablePanel as ue, ResizablePanelGroup as de } from "./components/atoms/resizable.js";
21
+ import { ScrollArea as pe, ScrollBar as me } from "./components/atoms/scroll-area.js";
22
+ import { Select as xe, SelectContent as Ce, SelectGroup as ge, SelectItem as Pe, SelectLabel as De, SelectScrollDownButton as Se, SelectScrollUpButton as Ae, SelectSeparator as he, SelectTrigger as Le, SelectValue as ke } from "./components/atoms/select.js";
23
+ import { Separator as Te } from "./components/atoms/separator.js";
24
+ import { Sheet as we, SheetClose as Re, SheetContent as ve, SheetDescription as be, SheetFooter as Fe, SheetHeader as Be, SheetTitle as ye, SheetTrigger as Ee } from "./components/atoms/sheet.js";
25
+ import { Toaster as Oe } from "./components/atoms/sonner.js";
26
+ import { useRecentProducts as Ne } from "./hooks/user/useRecentProducts.js";
27
+ import { useRecentShops as Ve } from "./hooks/user/useRecentShops.js";
28
+ import { useSavedProducts as je } from "./hooks/user/useSavedProducts.js";
29
+ import { useSavedProductsActions as Je } from "./hooks/user/useSavedProductsActions.js";
30
+ import { useFollowedShops as Qe } from "./hooks/user/useFollowedShops.js";
31
+ import { useFollowedShopsActions as Xe } from "./hooks/user/useFollowedShopsActions.js";
32
+ import { useCurrentUser as Ze } from "./hooks/user/useCurrentUser.js";
33
+ import { useOrders as $e } from "./hooks/user/useOrders.js";
34
+ import { useBuyerAttributes as eo } from "./hooks/user/useBuyerAttributes.js";
35
+ import { useProductListActions as to } from "./hooks/product/useProductListActions.js";
36
+ import { useProductLists as io } from "./hooks/product/useProductLists.js";
37
+ import { useProductList as co } from "./hooks/product/useProductList.js";
38
+ import { useProduct as uo } from "./hooks/product/useProduct.js";
39
+ import { useProducts as po } from "./hooks/product/useProducts.js";
40
+ import { useProductVariants as fo } from "./hooks/product/useProductVariants.js";
41
+ import { useProductMedia as Co } from "./hooks/product/useProductMedia.js";
42
+ import { useProductSearch as Po } from "./hooks/product/useProductSearch.js";
43
+ import { useRecommendedProducts as So } from "./hooks/product/useRecommendedProducts.js";
44
+ import { usePopularProducts as ho } from "./hooks/product/usePopularProducts.js";
45
+ import { useCuratedProducts as ko } from "./hooks/product/useCuratedProducts.js";
46
+ import { useAsyncStorage as To } from "./hooks/storage/useAsyncStorage.js";
47
+ import { useSecureStorage as wo } from "./hooks/storage/useSecureStorage.js";
48
+ import { useImageUpload as vo } from "./hooks/storage/useImageUpload.js";
49
+ import { useShopNavigation as Fo } from "./hooks/navigation/useShopNavigation.js";
50
+ import { useCloseMini as yo } from "./hooks/navigation/useCloseMini.js";
51
+ import { useDeeplink as Ho } from "./hooks/navigation/useDeeplink.js";
52
+ import { useShop as Go } from "./hooks/shop/useShop.js";
53
+ import { useShopCartActions as Uo } from "./hooks/shop/useShopCartActions.js";
54
+ import { useRecommendedShops as zo } from "./hooks/shop/useRecommendedShops.js";
55
+ import { useErrorToast as qo } from "./hooks/util/useErrorToast.js";
56
+ import { useErrorScreen as Ko } from "./hooks/util/useErrorScreen.js";
57
+ import { useShare as Wo } from "./hooks/util/useShare.js";
58
+ import { useImagePicker as Yo } from "./hooks/util/useImagePicker.js";
59
+ import { MiniEntityNotFoundError as _o, MiniError as $o, MiniNetworkError as rt, formatError as et } from "./utils/errors.js";
60
+ import { parseUrl as tt } from "./utils/parseUrl.js";
61
+ import { Consent as it, ConsentStatus as nt, CurrencyCode as ct, Gender as lt } from "./types/minisSDK.generated.d.js";
50
62
  export {
51
- b as Accordion,
52
- v as AccordionContent,
53
- R as AccordionItem,
54
- F as AccordionTrigger,
55
- y as Alert,
56
- E as AlertDescription,
57
- G as AlertDialog,
58
- M as AlertDialogAction,
59
- N as AlertDialogCancel,
60
- U as AlertDialogContent,
61
- z as AlertDialogDescription,
62
- V as AlertDialogFooter,
63
- j as AlertDialogHeader,
64
- q as AlertDialogOverlay,
65
- J as AlertDialogPortal,
66
- K as AlertDialogTitle,
67
- Q as AlertDialogTrigger,
68
- H as AlertTitle,
69
- X as Avatar,
70
- Y as AvatarFallback,
71
- Z as AvatarImage,
72
- $ as Badge,
73
- or as Button,
74
- ir as Card,
75
- lr as CardAction,
76
- nr as CardContent,
77
- cr as CardDescription,
78
- ur as CardFooter,
79
- dr as CardHeader,
80
- pr as CardTitle,
81
- mr as Carousel,
82
- fr as CarouselContent,
83
- xr as CarouselItem,
84
- gr as CarouselNext,
85
- Cr as CarouselPrevious,
86
- Dr as Checkbox,
87
- Io as Consent,
88
- bo as ConsentStatus,
89
- vo as CurrencyCode,
90
- Ar as Dialog,
91
- kr as DialogClose,
92
- Lr as DialogContent,
93
- Tr as DialogDescription,
94
- hr as DialogFooter,
95
- wr as DialogHeader,
96
- Ir as DialogOverlay,
97
- br as DialogPortal,
98
- vr as DialogTitle,
99
- Rr as DialogTrigger,
100
- Br as Drawer,
101
- yr as DrawerClose,
102
- Er as DrawerContent,
103
- Hr as DrawerDescription,
104
- Or as DrawerFooter,
105
- Gr as DrawerHeader,
106
- Mr as DrawerOverlay,
107
- Nr as DrawerPortal,
108
- Ur as DrawerTitle,
109
- zr as DrawerTrigger,
110
- Ro as Gender,
111
- jr as Input,
112
- Jr as Label,
113
- So as MiniEntityNotFoundError,
114
- Ao as MiniError,
115
- ko as MiniNetworkError,
63
+ G as Accordion,
64
+ N as AccordionContent,
65
+ U as AccordionItem,
66
+ V as AccordionTrigger,
67
+ j as Alert,
68
+ q as AlertDescription,
69
+ Q as AlertDialog,
70
+ W as AlertDialogAction,
71
+ X as AlertDialogCancel,
72
+ Y as AlertDialogContent,
73
+ Z as AlertDialogDescription,
74
+ _ as AlertDialogFooter,
75
+ $ as AlertDialogHeader,
76
+ rr as AlertDialogOverlay,
77
+ er as AlertDialogPortal,
78
+ or as AlertDialogTitle,
79
+ tr as AlertDialogTrigger,
80
+ J as AlertTitle,
81
+ ir as Avatar,
82
+ nr as AvatarFallback,
83
+ cr as AvatarImage,
84
+ ur as Badge,
85
+ pr as Button,
86
+ xr as Card,
87
+ Cr as CardAction,
88
+ gr as CardContent,
89
+ Pr as CardDescription,
90
+ Dr as CardFooter,
91
+ Sr as CardHeader,
92
+ Ar as CardTitle,
93
+ Lr as Carousel,
94
+ kr as CarouselContent,
95
+ Ir as CarouselItem,
96
+ Tr as CarouselNext,
97
+ Mr as CarouselPrevious,
98
+ Rr as Checkbox,
99
+ it as Consent,
100
+ nt as ConsentStatus,
101
+ ct as CurrencyCode,
102
+ br as Dialog,
103
+ Fr as DialogClose,
104
+ Br as DialogContent,
105
+ yr as DialogDescription,
106
+ Er as DialogFooter,
107
+ Hr as DialogHeader,
108
+ Or as DialogOverlay,
109
+ Gr as DialogPortal,
110
+ Nr as DialogTitle,
111
+ Ur as DialogTrigger,
112
+ zr as Drawer,
113
+ jr as DrawerClose,
114
+ qr as DrawerContent,
115
+ Jr as DrawerDescription,
116
+ Kr as DrawerFooter,
117
+ Qr as DrawerHeader,
118
+ Wr as DrawerOverlay,
119
+ Xr as DrawerPortal,
120
+ Yr as DrawerTitle,
121
+ Zr as DrawerTrigger,
122
+ lt as Gender,
123
+ $r as Input,
124
+ ee as Label,
125
+ w as MerchantCard,
126
+ R as MerchantCardImage,
127
+ v as MerchantCardImageContainer,
128
+ b as MerchantCardInfo,
129
+ F as MerchantCardLogo,
130
+ B as MerchantCardName,
131
+ y as MerchantCardPrimitive,
132
+ E as MerchantCardRating,
133
+ H as MerchantCardRoot,
134
+ _o as MiniEntityNotFoundError,
135
+ $o as MiniError,
136
+ rt as MiniNetworkError,
116
137
  o as MinisContainer,
117
138
  a as ProductCard,
118
139
  i as ProductCardBadge,
119
- l as ProductCardCurrentPrice,
120
- n as ProductCardFavoriteButton,
121
- c as ProductCardImage,
140
+ n as ProductCardCurrentPrice,
141
+ c as ProductCardFavoriteButton,
142
+ l as ProductCardImage,
122
143
  u as ProductCardImageContainer,
123
144
  d as ProductCardInfo,
124
- p as ProductCardOriginalPrice,
125
- s as ProductCardPrice,
145
+ s as ProductCardOriginalPrice,
146
+ p as ProductCardPrice,
126
147
  m as ProductCardRoot,
127
148
  f as ProductCardTitle,
128
- g as ProductLink,
129
- C as ProductLinkActions,
149
+ C as ProductLink,
150
+ g as ProductLinkActions,
130
151
  P as ProductLinkCurrentPrice,
131
152
  D as ProductLinkDiscountPrice,
132
153
  S as ProductLinkImage,
133
154
  A as ProductLinkInfo,
134
- k as ProductLinkOriginalPrice,
155
+ h as ProductLinkOriginalPrice,
135
156
  L as ProductLinkPrice,
136
- T as ProductLinkRating,
137
- h as ProductLinkRoot,
138
- w as ProductLinkTitle,
139
- Qr as Progress,
140
- Xr as RadioGroup,
141
- Yr as RadioGroupItem,
142
- _r as ResizableHandle,
143
- $r as ResizablePanel,
144
- re as ResizablePanelGroup,
145
- oe as ScrollArea,
146
- te as ScrollBar,
147
- ie as Select,
148
- le as SelectContent,
149
- ne as SelectGroup,
150
- ce as SelectItem,
151
- ue as SelectLabel,
152
- de as SelectScrollDownButton,
153
- pe as SelectScrollUpButton,
154
- se as SelectSeparator,
155
- me as SelectTrigger,
156
- fe as SelectValue,
157
- ge as Separator,
158
- Pe as Sheet,
159
- De as SheetClose,
160
- Se as SheetContent,
161
- Ae as SheetDescription,
162
- ke as SheetFooter,
163
- Le as SheetHeader,
164
- Te as SheetTitle,
165
- he as SheetTrigger,
166
- Ie as Toaster,
167
- rr as badgeVariants,
168
- tr as buttonVariants,
169
- Lo as formatError,
170
- ho as parseUrl,
171
- Xe as useAsyncStorage,
172
- Ge as useBuyerAttributes,
173
- to as useCloseMini,
174
- ye as useCurrentUser,
175
- io as useDeeplink,
176
- fo as useErrorScreen,
177
- so as useErrorToast,
178
- Fe as useFollowedShopsActions,
179
- Po as useImagePicker,
180
- $e as useImageUpload,
181
- He as useOrders,
182
- Qe as usePopularProducts,
183
- je as useProductList,
184
- Ne as useProductListActions,
185
- ze as useProductLists,
186
- Je as useRecommendedProducts,
187
- uo as useRecommendedShops,
188
- ve as useSavedProductsActions,
189
- Ze as useSecureStorage,
190
- go as useShare,
191
- no as useShopCartActions,
192
- eo as useShopNavigation
157
+ k as ProductLinkRating,
158
+ I as ProductLinkRoot,
159
+ T as ProductLinkTitle,
160
+ te as Progress,
161
+ ie as RadioGroup,
162
+ ne as RadioGroupItem,
163
+ le as ResizableHandle,
164
+ ue as ResizablePanel,
165
+ de as ResizablePanelGroup,
166
+ pe as ScrollArea,
167
+ me as ScrollBar,
168
+ xe as Select,
169
+ Ce as SelectContent,
170
+ ge as SelectGroup,
171
+ Pe as SelectItem,
172
+ De as SelectLabel,
173
+ Se as SelectScrollDownButton,
174
+ Ae as SelectScrollUpButton,
175
+ he as SelectSeparator,
176
+ Le as SelectTrigger,
177
+ ke as SelectValue,
178
+ Te as Separator,
179
+ we as Sheet,
180
+ Re as SheetClose,
181
+ ve as SheetContent,
182
+ be as SheetDescription,
183
+ Fe as SheetFooter,
184
+ Be as SheetHeader,
185
+ ye as SheetTitle,
186
+ Ee as SheetTrigger,
187
+ Oe as Toaster,
188
+ dr as badgeVariants,
189
+ mr as buttonVariants,
190
+ et as formatError,
191
+ tt as parseUrl,
192
+ To as useAsyncStorage,
193
+ eo as useBuyerAttributes,
194
+ yo as useCloseMini,
195
+ ko as useCuratedProducts,
196
+ Ze as useCurrentUser,
197
+ Ho as useDeeplink,
198
+ Ko as useErrorScreen,
199
+ qo as useErrorToast,
200
+ Qe as useFollowedShops,
201
+ Xe as useFollowedShopsActions,
202
+ Yo as useImagePicker,
203
+ vo as useImageUpload,
204
+ $e as useOrders,
205
+ ho as usePopularProducts,
206
+ uo as useProduct,
207
+ co as useProductList,
208
+ to as useProductListActions,
209
+ io as useProductLists,
210
+ Co as useProductMedia,
211
+ Po as useProductSearch,
212
+ fo as useProductVariants,
213
+ po as useProducts,
214
+ Ne as useRecentProducts,
215
+ Ve as useRecentShops,
216
+ So as useRecommendedProducts,
217
+ zo as useRecommendedShops,
218
+ je as useSavedProducts,
219
+ Je as useSavedProductsActions,
220
+ wo as useSecureStorage,
221
+ Wo as useShare,
222
+ Go as useShop,
223
+ Uo as useShopCartActions,
224
+ Fo as useShopNavigation
193
225
  };
194
226
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,43 +1,43 @@
1
- import { useState as A, useCallback as s, useMemo as O, useEffect as D } from "react";
1
+ import { useState as A, useCallback as l, useMemo as O, useEffect as D } from "react";
2
2
  import { MiniError as M, formatError as b } from "../utils/errors.js";
3
3
  const V = (g, c, h) => {
4
- const [r, l] = A({
4
+ const [r, f] = A({
5
5
  data: null,
6
6
  pageInfo: { hasNextPage: !1, endCursor: null },
7
7
  loading: !1,
8
8
  error: null
9
- }), p = h?.skip === !0, { validator: y, hook: t } = h, w = s(
10
- (f) => {
9
+ }), p = h?.skip === !0, { validator: y, hook: t } = h, w = l(
10
+ (d) => {
11
11
  try {
12
- return y?.(f), null;
13
- } catch (d) {
14
- return d ?? new M({
12
+ return y?.(d), null;
13
+ } catch (o) {
14
+ return o instanceof Error ? o : new M({
15
15
  hook: t,
16
16
  message: "Validation failed"
17
17
  });
18
18
  }
19
19
  },
20
20
  [y, t]
21
- ), I = O(() => c, [JSON.stringify(c)]), e = s(
22
- async (f, {
23
- setLoading: d = !0,
21
+ ), I = O(() => c, [JSON.stringify(c)]), e = l(
22
+ async (d, {
23
+ setLoading: o = !0,
24
24
  setError: N = !0,
25
25
  resetOnError: i = !0,
26
26
  throwOnError: k = !0,
27
27
  appendData: C = !1
28
28
  } = {}) => {
29
29
  let E = null, u = null;
30
- l((a) => ({
30
+ f((a) => ({
31
31
  ...a,
32
- loading: d ? !0 : a.loading
32
+ loading: o ? !0 : a.loading
33
33
  }));
34
34
  try {
35
- const a = await g({ ...I, ...f });
35
+ const a = await g({ ...I, ...d });
36
36
  if (a.ok)
37
- u = w(a.data.data), l((n) => {
37
+ u = w(a.data.data), f((s) => {
38
38
  let P = a.data.data;
39
- return C && n.data && Array.isArray(n.data) && Array.isArray(a.data.data) && (P = [...n.data, ...a.data.data]), {
40
- ...n,
39
+ return C && s.data && Array.isArray(s.data) && Array.isArray(a.data.data) && (P = [...s.data, ...a.data.data]), {
40
+ ...s,
41
41
  data: P,
42
42
  pageInfo: a.data.pageInfo,
43
43
  loading: !1,
@@ -47,25 +47,25 @@ const V = (g, c, h) => {
47
47
  else
48
48
  throw a.error;
49
49
  } catch (a) {
50
- E = b({ hook: t }, a);
50
+ console.log("caught 1", a), E = b({ hook: t }, a);
51
51
  }
52
- const o = u || E;
53
- if (o && (N || i) && l((a) => ({
52
+ const n = u || E;
53
+ if (n && (N || i) && f((a) => ({
54
54
  data: i ? null : a.data,
55
55
  pageInfo: i ? { hasNextPage: !1, endCursor: null } : a.pageInfo,
56
56
  loading: !1,
57
- error: o
58
- })), o && k)
59
- throw o;
57
+ error: n
58
+ })), n && k)
59
+ throw n;
60
60
  },
61
61
  [g, I, t, w]
62
- ), m = s(async () => {
62
+ ), m = l(async () => {
63
63
  await e({ fetchPolicy: "network-only" }, {
64
64
  setLoading: !1,
65
65
  resetOnError: !1,
66
66
  throwOnError: !0
67
67
  });
68
- }, [e]), x = s(async () => {
68
+ }, [e]), x = l(async () => {
69
69
  !r.pageInfo.hasNextPage || !r.pageInfo.endCursor || await e({ after: r.pageInfo.endCursor }, {
70
70
  setLoading: !1,
71
71
  setError: !1,