@shopify/shop-minis-react 0.0.33 → 0.0.35

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 (86) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index2.js +4 -4
  3. package/dist/_virtual/index3.js +4 -4
  4. package/dist/_virtual/index8.js +2 -2
  5. package/dist/_virtual/index9.js +2 -2
  6. package/dist/components/atoms/alert-dialog.js.map +1 -1
  7. package/dist/components/atoms/icon-button.js +12 -12
  8. package/dist/components/atoms/icon-button.js.map +1 -1
  9. package/dist/components/atoms/image.js +52 -0
  10. package/dist/components/atoms/image.js.map +1 -0
  11. package/dist/components/atoms/text-input.js +22 -0
  12. package/dist/components/atoms/text-input.js.map +1 -0
  13. package/dist/components/commerce/merchant-card.js +2 -1
  14. package/dist/components/commerce/merchant-card.js.map +1 -1
  15. package/dist/components/commerce/product-card.js +11 -11
  16. package/dist/components/commerce/product-card.js.map +1 -1
  17. package/dist/components/content/image-content-wrapper.js +29 -22
  18. package/dist/components/content/image-content-wrapper.js.map +1 -1
  19. package/dist/components/ui/input.js +15 -9
  20. package/dist/components/ui/input.js.map +1 -1
  21. package/dist/hooks/content/useCreateImageContent.js +16 -22
  22. package/dist/hooks/content/useCreateImageContent.js.map +1 -1
  23. package/dist/hooks/storage/useImageUpload.js +36 -37
  24. package/dist/hooks/storage/useImageUpload.js.map +1 -1
  25. package/dist/hooks/util/useKeyboardAvoidingView.js +23 -0
  26. package/dist/hooks/util/useKeyboardAvoidingView.js.map +1 -0
  27. package/dist/index.js +218 -212
  28. package/dist/index.js.map +1 -1
  29. package/dist/mocks.js +4 -1
  30. package/dist/mocks.js.map +1 -1
  31. package/dist/shop-minis-platform/src/types/content.js.map +1 -1
  32. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/index.js +1 -1
  33. package/dist/shop-minis-react/node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js +1 -1
  34. package/dist/shop-minis-react/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.0/node_modules/use-sync-external-store/shim/index.js +1 -1
  35. package/dist/shop-minis-react/node_modules/.pnpm/video.js@8.23.3/node_modules/video.js/dist/video.es.js +1 -1
  36. package/dist/utils/colors.js +1 -1
  37. package/dist/utils/image.js +46 -9
  38. package/dist/utils/image.js.map +1 -1
  39. package/package.json +21 -4
  40. package/src/components/atoms/alert-dialog.test.tsx +67 -0
  41. package/src/components/atoms/alert-dialog.tsx +13 -11
  42. package/src/components/atoms/favorite-button.test.tsx +56 -0
  43. package/src/components/atoms/icon-button.tsx +1 -1
  44. package/src/components/atoms/image.test.tsx +108 -0
  45. package/src/components/atoms/{thumbhash-image.tsx → image.tsx} +14 -14
  46. package/src/components/atoms/product-variant-price.test.tsx +128 -0
  47. package/src/components/atoms/text-input.test.tsx +104 -0
  48. package/src/components/atoms/text-input.tsx +31 -0
  49. package/src/components/commerce/merchant-card.test.tsx +261 -0
  50. package/src/components/commerce/merchant-card.tsx +4 -2
  51. package/src/components/commerce/product-card.test.tsx +364 -0
  52. package/src/components/commerce/product-card.tsx +2 -2
  53. package/src/components/commerce/product-link.test.tsx +483 -0
  54. package/src/components/commerce/quantity-selector.test.tsx +382 -0
  55. package/src/components/commerce/search.test.tsx +487 -0
  56. package/src/components/content/image-content-wrapper.test.tsx +92 -0
  57. package/src/components/content/image-content-wrapper.tsx +9 -2
  58. package/src/components/index.ts +2 -1
  59. package/src/components/navigation/transition-link.test.tsx +155 -0
  60. package/src/components/ui/input.test.tsx +21 -0
  61. package/src/components/ui/input.tsx +10 -1
  62. package/src/hooks/content/useCreateImageContent.test.ts +352 -0
  63. package/src/hooks/content/useCreateImageContent.ts +1 -7
  64. package/src/hooks/index.ts +1 -0
  65. package/src/hooks/navigation/useNavigateWithTransition.test.ts +371 -0
  66. package/src/hooks/navigation/useViewTransitions.test.ts +469 -0
  67. package/src/hooks/product/useProductSearch.test.ts +470 -0
  68. package/src/hooks/storage/useAsyncStorage.test.ts +225 -0
  69. package/src/hooks/storage/useImageUpload.test.ts +322 -0
  70. package/src/hooks/storage/useImageUpload.ts +22 -20
  71. package/src/hooks/util/useKeyboardAvoidingView.ts +37 -0
  72. package/src/internal/useHandleAction.test.ts +265 -0
  73. package/src/internal/useShopActionsDataFetching.test.ts +465 -0
  74. package/src/mocks.ts +3 -1
  75. package/src/providers/ImagePickerProvider.test.tsx +467 -0
  76. package/src/stories/ProductCard.stories.tsx +2 -2
  77. package/src/stories/TextInput.stories.tsx +26 -0
  78. package/src/test-setup.ts +34 -0
  79. package/src/test-utils.tsx +167 -0
  80. package/src/utils/image.ts +73 -0
  81. package/src/utils/index.ts +1 -1
  82. package/dist/components/atoms/thumbhash-image.js +0 -54
  83. package/dist/components/atoms/thumbhash-image.js.map +0 -1
  84. package/dist/utils/imageToDataUri.js +0 -10
  85. package/dist/utils/imageToDataUri.js.map +0 -1
  86. package/src/utils/imageToDataUri.ts +0 -8
package/dist/index.js CHANGED
@@ -1,167 +1,170 @@
1
1
  import { DATA_NAVIGATION_TYPE_ATTRIBUTE as o, NAVIGATION_TYPES as t } from "./types/index.js";
2
2
  import { MinisContainer as i } from "./components/MinisContainer.js";
3
- import { ProductCard as n, ProductCardBadge as m, ProductCardContainer as l, ProductCardFavoriteButton as s, ProductCardImage as u, ProductCardImageContainer as f, ProductCardInfo as c, ProductCardPrice as x, ProductCardTitle as d } from "./components/commerce/product-card.js";
3
+ import { ProductCard as n, ProductCardBadge as m, ProductCardContainer as l, ProductCardFavoriteButton as s, ProductCardImage as u, ProductCardImageContainer as f, ProductCardInfo as x, ProductCardPrice as c, ProductCardTitle as d } from "./components/commerce/product-card.js";
4
4
  import { ProductLink as g } from "./components/commerce/product-link.js";
5
- import { MerchantCard as D, MerchantCardContainer as P, MerchantCardHeader as A, MerchantCardInfo as h, MerchantCardName as T, MerchantCardRating as I } from "./components/commerce/merchant-card.js";
6
- import { ProductCardSkeleton as w } from "./components/commerce/product-card-skeleton.js";
5
+ import { MerchantCard as D, MerchantCardContainer as A, MerchantCardHeader as P, MerchantCardInfo as h, MerchantCardName as T, MerchantCardRating as I } from "./components/commerce/merchant-card.js";
6
+ import { ProductCardSkeleton as v } from "./components/commerce/product-card-skeleton.js";
7
7
  import { MerchantCardSkeleton as M } from "./components/commerce/merchant-card-skeleton.js";
8
- import { QuantitySelector as B } from "./components/commerce/quantity-selector.js";
9
- import { Search as F, SearchInput as b, SearchProvider as U, SearchResultsList as L } from "./components/commerce/search.js";
8
+ import { QuantitySelector as b } from "./components/commerce/quantity-selector.js";
9
+ import { Search as B, SearchInput as E, SearchProvider as F, SearchResultsList as L } from "./components/commerce/search.js";
10
10
  import { ImageContentWrapper as y } from "./components/content/image-content-wrapper.js";
11
11
  import { MinisRouter as H } from "./components/navigation/minis-router.js";
12
- import { TransitionLink as V } from "./components/navigation/transition-link.js";
12
+ import { TransitionLink as O } from "./components/navigation/transition-link.js";
13
13
  import { Button as _ } from "./components/atoms/button.js";
14
14
  import { FavoriteButton as Y } from "./components/atoms/favorite-button.js";
15
- import { IconButton as j } from "./components/atoms/icon-button.js";
16
- import { ThumbhashImage as J } from "./components/atoms/thumbhash-image.js";
15
+ import { IconButton as Q } from "./components/atoms/icon-button.js";
16
+ import { Image as q } from "./components/atoms/image.js";
17
17
  import { Touchable as X } from "./components/atoms/touchable.js";
18
18
  import { LongPressDetector as $ } from "./components/atoms/long-press-detector.js";
19
19
  import { AlertDialogAtom as er } from "./components/atoms/alert-dialog.js";
20
20
  import { List as tr } from "./components/atoms/list.js";
21
21
  import { VideoPlayer as ir } from "./components/atoms/video-player.js";
22
- import { Accordion as nr, AccordionContent as mr, AccordionItem as lr, AccordionTrigger as sr } from "./components/ui/accordion.js";
23
- import { Alert as fr, AlertDescription as cr, AlertTitle as xr } from "./components/ui/alert.js";
24
- import { AlertDialog as Cr, AlertDialogAction as gr, AlertDialogCancel as Sr, AlertDialogContent as Dr, AlertDialogDescription as Pr, AlertDialogFooter as Ar, AlertDialogHeader as hr, AlertDialogOverlay as Tr, AlertDialogPortal as Ir, AlertDialogTitle as vr, AlertDialogTrigger as wr } from "./components/ui/alert-dialog.js";
25
- import { Avatar as Mr, AvatarFallback as kr, AvatarImage as Br } from "./components/ui/avatar.js";
26
- import { Badge as Fr, badgeVariants as br } from "./components/ui/badge.js";
27
- import { Card as Lr, CardAction as Nr, CardContent as yr, CardDescription as Gr, CardFooter as Hr, CardHeader as Or, CardTitle as Vr } from "./components/ui/card.js";
28
- import { Carousel as _r, CarouselContent as Wr, CarouselItem as Yr, CarouselNext as Qr, CarouselPrevious as jr } from "./components/ui/carousel.js";
29
- import { Checkbox as Jr } from "./components/ui/checkbox.js";
30
- import { Dialog as Xr, DialogClose as Zr, DialogContent as $r, DialogDescription as re, DialogFooter as ee, DialogHeader as oe, DialogOverlay as te, DialogPortal as ae, DialogTitle as ie, DialogTrigger as pe } from "./components/ui/dialog.js";
31
- import { Drawer as me, DrawerClose as le, DrawerContent as se, DrawerDescription as ue, DrawerFooter as fe, DrawerHeader as ce, DrawerOverlay as xe, DrawerPortal as de, DrawerTitle as Ce, DrawerTrigger as ge } from "./components/ui/drawer.js";
32
- import { Input as De } from "./components/ui/input.js";
33
- import { Label as Ae } from "./components/ui/label.js";
34
- import { Progress as Te } from "./components/ui/progress.js";
35
- import { RadioGroup as ve, RadioGroupItem as we } from "./components/ui/radio-group.js";
36
- import { ResizableHandle as Me, ResizablePanel as ke, ResizablePanelGroup as Be } from "./components/ui/resizable.js";
37
- import { ScrollArea as Fe, ScrollBar as be } from "./components/ui/scroll-area.js";
38
- import { Select as Le, SelectContent as Ne, SelectGroup as ye, SelectItem as Ge, SelectLabel as He, SelectScrollDownButton as Oe, SelectScrollUpButton as Ve, SelectSeparator as ze, SelectTrigger as _e, SelectValue as We } from "./components/ui/select.js";
39
- import { Separator as Qe } from "./components/ui/separator.js";
40
- import { Sheet as qe, SheetClose as Je, SheetContent as Ke, SheetDescription as Xe, SheetFooter as Ze, SheetHeader as $e, SheetTitle as ro, SheetTrigger as eo } from "./components/ui/sheet.js";
41
- import { Toaster as to } from "./components/ui/sonner.js";
42
- import { Skeleton as io } from "./components/ui/skeleton.js";
43
- import { useRecentProducts as no } from "./hooks/user/useRecentProducts.js";
44
- import { useRecentShops as lo } from "./hooks/user/useRecentShops.js";
45
- import { useSavedProducts as uo } from "./hooks/user/useSavedProducts.js";
46
- import { useSavedProductsActions as co } from "./hooks/user/useSavedProductsActions.js";
47
- import { useFollowedShops as Co } from "./hooks/user/useFollowedShops.js";
48
- import { useFollowedShopsActions as So } from "./hooks/user/useFollowedShopsActions.js";
49
- import { useCurrentUser as Po } from "./hooks/user/useCurrentUser.js";
50
- import { useOrders as ho } from "./hooks/user/useOrders.js";
51
- import { useBuyerAttributes as Io } from "./hooks/user/useBuyerAttributes.js";
52
- import { useGenerateUserToken as wo } from "./hooks/user/useGenerateUserToken.js";
53
- import { useProductListActions as Mo } from "./hooks/product/useProductListActions.js";
22
+ import { TextInput as nr } from "./components/atoms/text-input.js";
23
+ import { Accordion as lr, AccordionContent as sr, AccordionItem as ur, AccordionTrigger as fr } from "./components/ui/accordion.js";
24
+ import { Alert as cr, AlertDescription as dr, AlertTitle as Cr } from "./components/ui/alert.js";
25
+ import { AlertDialog as Sr, AlertDialogAction as Dr, AlertDialogCancel as Ar, AlertDialogContent as Pr, AlertDialogDescription as hr, AlertDialogFooter as Tr, AlertDialogHeader as Ir, AlertDialogOverlay as Rr, AlertDialogPortal as vr, AlertDialogTitle as wr, AlertDialogTrigger as Mr } from "./components/ui/alert-dialog.js";
26
+ import { Avatar as br, AvatarFallback as kr, AvatarImage as Br } from "./components/ui/avatar.js";
27
+ import { Badge as Fr, badgeVariants as Lr } from "./components/ui/badge.js";
28
+ import { Card as yr, CardAction as Gr, CardContent as Hr, CardDescription as Vr, CardFooter as Or, CardHeader as zr, CardTitle as _r } from "./components/ui/card.js";
29
+ import { Carousel as Yr, CarouselContent as Kr, CarouselItem as Qr, CarouselNext as jr, CarouselPrevious as qr } from "./components/ui/carousel.js";
30
+ import { Checkbox as Xr } from "./components/ui/checkbox.js";
31
+ import { Dialog as $r, DialogClose as re, DialogContent as ee, DialogDescription as oe, DialogFooter as te, DialogHeader as ae, DialogOverlay as ie, DialogPortal as pe, DialogTitle as ne, DialogTrigger as me } from "./components/ui/dialog.js";
32
+ import { Drawer as se, DrawerClose as ue, DrawerContent as fe, DrawerDescription as xe, DrawerFooter as ce, DrawerHeader as de, DrawerOverlay as Ce, DrawerPortal as ge, DrawerTitle as Se, DrawerTrigger as De } from "./components/ui/drawer.js";
33
+ import { Input as Pe } from "./components/ui/input.js";
34
+ import { Label as Te } from "./components/ui/label.js";
35
+ import { Progress as Re } from "./components/ui/progress.js";
36
+ import { RadioGroup as we, RadioGroupItem as Me } from "./components/ui/radio-group.js";
37
+ import { ResizableHandle as be, ResizablePanel as ke, ResizablePanelGroup as Be } from "./components/ui/resizable.js";
38
+ import { ScrollArea as Fe, ScrollBar as Le } from "./components/ui/scroll-area.js";
39
+ import { Select as ye, SelectContent as Ge, SelectGroup as He, SelectItem as Ve, SelectLabel as Oe, SelectScrollDownButton as ze, SelectScrollUpButton as _e, SelectSeparator as We, SelectTrigger as Ye, SelectValue as Ke } from "./components/ui/select.js";
40
+ import { Separator as je } from "./components/ui/separator.js";
41
+ import { Sheet as Je, SheetClose as Xe, SheetContent as Ze, SheetDescription as $e, SheetFooter as ro, SheetHeader as eo, SheetTitle as oo, SheetTrigger as to } from "./components/ui/sheet.js";
42
+ import { Toaster as io } from "./components/ui/sonner.js";
43
+ import { Skeleton as no } from "./components/ui/skeleton.js";
44
+ import { useRecentProducts as lo } from "./hooks/user/useRecentProducts.js";
45
+ import { useRecentShops as uo } from "./hooks/user/useRecentShops.js";
46
+ import { useSavedProducts as xo } from "./hooks/user/useSavedProducts.js";
47
+ import { useSavedProductsActions as Co } from "./hooks/user/useSavedProductsActions.js";
48
+ import { useFollowedShops as So } from "./hooks/user/useFollowedShops.js";
49
+ import { useFollowedShopsActions as Ao } from "./hooks/user/useFollowedShopsActions.js";
50
+ import { useCurrentUser as ho } from "./hooks/user/useCurrentUser.js";
51
+ import { useOrders as Io } from "./hooks/user/useOrders.js";
52
+ import { useBuyerAttributes as vo } from "./hooks/user/useBuyerAttributes.js";
53
+ import { useGenerateUserToken as Mo } from "./hooks/user/useGenerateUserToken.js";
54
+ import { useProductListActions as bo } from "./hooks/product/useProductListActions.js";
54
55
  import { useProductLists as Bo } from "./hooks/product/useProductLists.js";
55
56
  import { useProductList as Fo } from "./hooks/product/useProductList.js";
56
- import { useProduct as Uo } from "./hooks/product/useProduct.js";
57
- import { useProducts as No } from "./hooks/product/useProducts.js";
58
- import { useProductVariants as Go } from "./hooks/product/useProductVariants.js";
59
- import { useProductMedia as Oo } from "./hooks/product/useProductMedia.js";
60
- import { useProductSearch as zo } from "./hooks/product/useProductSearch.js";
61
- import { useRecommendedProducts as Wo } from "./hooks/product/useRecommendedProducts.js";
62
- import { usePopularProducts as Qo } from "./hooks/product/usePopularProducts.js";
63
- import { useCuratedProducts as qo } from "./hooks/product/useCuratedProducts.js";
64
- import { useAsyncStorage as Ko } from "./hooks/storage/useAsyncStorage.js";
65
- import { useSecureStorage as Zo } from "./hooks/storage/useSecureStorage.js";
66
- import { useImageUpload as rt } from "./hooks/storage/useImageUpload.js";
67
- import { useShopNavigation as ot } from "./hooks/navigation/useShopNavigation.js";
68
- import { useCloseMini as at } from "./hooks/navigation/useCloseMini.js";
69
- import { useDeeplink as pt } from "./hooks/navigation/useDeeplink.js";
70
- import { useNavigateWithTransition as mt } from "./hooks/navigation/useNavigateWithTransition.js";
71
- import { useShop as st } from "./hooks/shop/useShop.js";
72
- import { useShopCartActions as ft } from "./hooks/shop/useShopCartActions.js";
73
- import { useRecommendedShops as xt } from "./hooks/shop/useRecommendedShops.js";
74
- import { useCreateImageContent as Ct } from "./hooks/content/useCreateImageContent.js";
75
- import { useErrorToast as St } from "./hooks/util/useErrorToast.js";
76
- import { useErrorScreen as Pt } from "./hooks/util/useErrorScreen.js";
77
- import { useShare as ht } from "./hooks/util/useShare.js";
78
- import { useImagePicker as It } from "./hooks/util/useImagePicker.js";
79
- import { MiniEntityNotFoundError as wt, MiniError as Rt, MiniNetworkError as Mt, formatError as kt } from "./utils/errors.js";
80
- import { extractBrandTheme as Et, formatReviewCount as Ft, getFeaturedImages as bt, normalizeRating as Ut } from "./utils/merchant-card.js";
81
- import { parseUrl as Nt } from "./utils/parseUrl.js";
82
- import { fileToDataUri as Gt } from "./utils/imageToDataUri.js";
83
- import { UserState as Ot, UserTokenGenerateUserErrorCode as Vt } from "./shop-minis-platform/src/types/user.js";
84
- import { ContentCreateUserErrorCode as _t } from "./shop-minis-platform/src/types/content.js";
85
- import { Consent as Yt, ConsentStatus as Qt } from "./shop-minis-platform/src/types/permissions.js";
57
+ import { useProduct as No } from "./hooks/product/useProduct.js";
58
+ import { useProducts as Go } from "./hooks/product/useProducts.js";
59
+ import { useProductVariants as Vo } from "./hooks/product/useProductVariants.js";
60
+ import { useProductMedia as zo } from "./hooks/product/useProductMedia.js";
61
+ import { useProductSearch as Wo } from "./hooks/product/useProductSearch.js";
62
+ import { useRecommendedProducts as Ko } from "./hooks/product/useRecommendedProducts.js";
63
+ import { usePopularProducts as jo } from "./hooks/product/usePopularProducts.js";
64
+ import { useCuratedProducts as Jo } from "./hooks/product/useCuratedProducts.js";
65
+ import { useAsyncStorage as Zo } from "./hooks/storage/useAsyncStorage.js";
66
+ import { useSecureStorage as rt } from "./hooks/storage/useSecureStorage.js";
67
+ import { useImageUpload as ot } from "./hooks/storage/useImageUpload.js";
68
+ import { useShopNavigation as at } from "./hooks/navigation/useShopNavigation.js";
69
+ import { useCloseMini as pt } from "./hooks/navigation/useCloseMini.js";
70
+ import { useDeeplink as mt } from "./hooks/navigation/useDeeplink.js";
71
+ import { useNavigateWithTransition as st } from "./hooks/navigation/useNavigateWithTransition.js";
72
+ import { useShop as ft } from "./hooks/shop/useShop.js";
73
+ import { useShopCartActions as ct } from "./hooks/shop/useShopCartActions.js";
74
+ import { useRecommendedShops as Ct } from "./hooks/shop/useRecommendedShops.js";
75
+ import { useCreateImageContent as St } from "./hooks/content/useCreateImageContent.js";
76
+ import { useErrorToast as At } from "./hooks/util/useErrorToast.js";
77
+ import { useErrorScreen as ht } from "./hooks/util/useErrorScreen.js";
78
+ import { useShare as It } from "./hooks/util/useShare.js";
79
+ import { useImagePicker as vt } from "./hooks/util/useImagePicker.js";
80
+ import { useKeyboardAvoidingView as Mt } from "./hooks/util/useKeyboardAvoidingView.js";
81
+ import { MiniEntityNotFoundError as bt, MiniError as kt, MiniNetworkError as Bt, formatError as Et } from "./utils/errors.js";
82
+ import { extractBrandTheme as Lt, formatReviewCount as Nt, getFeaturedImages as yt, normalizeRating as Gt } from "./utils/merchant-card.js";
83
+ import { parseUrl as Vt } from "./utils/parseUrl.js";
84
+ import { fileToDataUri as zt, getResizedImageUrl as _t, getThumbhashDataURL as Wt } from "./utils/image.js";
85
+ import { UserState as Kt, UserTokenGenerateUserErrorCode as Qt } from "./shop-minis-platform/src/types/user.js";
86
+ import { ContentCreateUserErrorCode as qt } from "./shop-minis-platform/src/types/content.js";
87
+ import { Consent as Xt, ConsentStatus as Zt } from "./shop-minis-platform/src/types/permissions.js";
86
88
  export {
87
- nr as Accordion,
88
- mr as AccordionContent,
89
- lr as AccordionItem,
90
- sr as AccordionTrigger,
91
- fr as Alert,
92
- cr as AlertDescription,
93
- Cr as AlertDialog,
94
- gr as AlertDialogAction,
89
+ lr as Accordion,
90
+ sr as AccordionContent,
91
+ ur as AccordionItem,
92
+ fr as AccordionTrigger,
93
+ cr as Alert,
94
+ dr as AlertDescription,
95
+ Sr as AlertDialog,
96
+ Dr as AlertDialogAction,
95
97
  er as AlertDialogAtom,
96
- Sr as AlertDialogCancel,
97
- Dr as AlertDialogContent,
98
- Pr as AlertDialogDescription,
99
- Ar as AlertDialogFooter,
100
- hr as AlertDialogHeader,
101
- Tr as AlertDialogOverlay,
102
- Ir as AlertDialogPortal,
103
- vr as AlertDialogTitle,
104
- wr as AlertDialogTrigger,
105
- xr as AlertTitle,
106
- Mr as Avatar,
98
+ Ar as AlertDialogCancel,
99
+ Pr as AlertDialogContent,
100
+ hr as AlertDialogDescription,
101
+ Tr as AlertDialogFooter,
102
+ Ir as AlertDialogHeader,
103
+ Rr as AlertDialogOverlay,
104
+ vr as AlertDialogPortal,
105
+ wr as AlertDialogTitle,
106
+ Mr as AlertDialogTrigger,
107
+ Cr as AlertTitle,
108
+ br as Avatar,
107
109
  kr as AvatarFallback,
108
110
  Br as AvatarImage,
109
111
  Fr as Badge,
110
112
  _ as Button,
111
- Lr as Card,
112
- Nr as CardAction,
113
- yr as CardContent,
114
- Gr as CardDescription,
115
- Hr as CardFooter,
116
- Or as CardHeader,
117
- Vr as CardTitle,
118
- _r as Carousel,
119
- Wr as CarouselContent,
120
- Yr as CarouselItem,
121
- Qr as CarouselNext,
122
- jr as CarouselPrevious,
123
- Jr as Checkbox,
124
- Yt as Consent,
125
- Qt as ConsentStatus,
126
- _t as ContentCreateUserErrorCode,
113
+ yr as Card,
114
+ Gr as CardAction,
115
+ Hr as CardContent,
116
+ Vr as CardDescription,
117
+ Or as CardFooter,
118
+ zr as CardHeader,
119
+ _r as CardTitle,
120
+ Yr as Carousel,
121
+ Kr as CarouselContent,
122
+ Qr as CarouselItem,
123
+ jr as CarouselNext,
124
+ qr as CarouselPrevious,
125
+ Xr as Checkbox,
126
+ Xt as Consent,
127
+ Zt as ConsentStatus,
128
+ qt as ContentCreateUserErrorCode,
127
129
  o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
128
- Xr as Dialog,
129
- Zr as DialogClose,
130
- $r as DialogContent,
131
- re as DialogDescription,
132
- ee as DialogFooter,
133
- oe as DialogHeader,
134
- te as DialogOverlay,
135
- ae as DialogPortal,
136
- ie as DialogTitle,
137
- pe as DialogTrigger,
138
- me as Drawer,
139
- le as DrawerClose,
140
- se as DrawerContent,
141
- ue as DrawerDescription,
142
- fe as DrawerFooter,
143
- ce as DrawerHeader,
144
- xe as DrawerOverlay,
145
- de as DrawerPortal,
146
- Ce as DrawerTitle,
147
- ge as DrawerTrigger,
130
+ $r as Dialog,
131
+ re as DialogClose,
132
+ ee as DialogContent,
133
+ oe as DialogDescription,
134
+ te as DialogFooter,
135
+ ae as DialogHeader,
136
+ ie as DialogOverlay,
137
+ pe as DialogPortal,
138
+ ne as DialogTitle,
139
+ me as DialogTrigger,
140
+ se as Drawer,
141
+ ue as DrawerClose,
142
+ fe as DrawerContent,
143
+ xe as DrawerDescription,
144
+ ce as DrawerFooter,
145
+ de as DrawerHeader,
146
+ Ce as DrawerOverlay,
147
+ ge as DrawerPortal,
148
+ Se as DrawerTitle,
149
+ De as DrawerTrigger,
148
150
  Y as FavoriteButton,
149
- j as IconButton,
151
+ Q as IconButton,
152
+ q as Image,
150
153
  y as ImageContentWrapper,
151
- De as Input,
152
- Ae as Label,
154
+ Pe as Input,
155
+ Te as Label,
153
156
  tr as List,
154
157
  $ as LongPressDetector,
155
158
  D as MerchantCard,
156
- P as MerchantCardContainer,
157
- A as MerchantCardHeader,
159
+ A as MerchantCardContainer,
160
+ P as MerchantCardHeader,
158
161
  h as MerchantCardInfo,
159
162
  T as MerchantCardName,
160
163
  I as MerchantCardRating,
161
164
  M as MerchantCardSkeleton,
162
- wt as MiniEntityNotFoundError,
163
- Rt as MiniError,
164
- Mt as MiniNetworkError,
165
+ bt as MiniEntityNotFoundError,
166
+ kt as MiniError,
167
+ Bt as MiniNetworkError,
165
168
  i as MinisContainer,
166
169
  H as MinisRouter,
167
170
  t as NAVIGATION_TYPES,
@@ -171,94 +174,97 @@ export {
171
174
  s as ProductCardFavoriteButton,
172
175
  u as ProductCardImage,
173
176
  f as ProductCardImageContainer,
174
- c as ProductCardInfo,
175
- x as ProductCardPrice,
176
- w as ProductCardSkeleton,
177
+ x as ProductCardInfo,
178
+ c as ProductCardPrice,
179
+ v as ProductCardSkeleton,
177
180
  d as ProductCardTitle,
178
181
  g as ProductLink,
179
- Te as Progress,
180
- B as QuantitySelector,
181
- ve as RadioGroup,
182
- we as RadioGroupItem,
183
- Me as ResizableHandle,
182
+ Re as Progress,
183
+ b as QuantitySelector,
184
+ we as RadioGroup,
185
+ Me as RadioGroupItem,
186
+ be as ResizableHandle,
184
187
  ke as ResizablePanel,
185
188
  Be as ResizablePanelGroup,
186
189
  Fe as ScrollArea,
187
- be as ScrollBar,
188
- F as Search,
189
- b as SearchInput,
190
- U as SearchProvider,
190
+ Le as ScrollBar,
191
+ B as Search,
192
+ E as SearchInput,
193
+ F as SearchProvider,
191
194
  L as SearchResultsList,
192
- Le as Select,
193
- Ne as SelectContent,
194
- ye as SelectGroup,
195
- Ge as SelectItem,
196
- He as SelectLabel,
197
- Oe as SelectScrollDownButton,
198
- Ve as SelectScrollUpButton,
199
- ze as SelectSeparator,
200
- _e as SelectTrigger,
201
- We as SelectValue,
202
- Qe as Separator,
203
- qe as Sheet,
204
- Je as SheetClose,
205
- Ke as SheetContent,
206
- Xe as SheetDescription,
207
- Ze as SheetFooter,
208
- $e as SheetHeader,
209
- ro as SheetTitle,
210
- eo as SheetTrigger,
211
- io as Skeleton,
212
- J as ThumbhashImage,
213
- to as Toaster,
195
+ ye as Select,
196
+ Ge as SelectContent,
197
+ He as SelectGroup,
198
+ Ve as SelectItem,
199
+ Oe as SelectLabel,
200
+ ze as SelectScrollDownButton,
201
+ _e as SelectScrollUpButton,
202
+ We as SelectSeparator,
203
+ Ye as SelectTrigger,
204
+ Ke as SelectValue,
205
+ je as Separator,
206
+ Je as Sheet,
207
+ Xe as SheetClose,
208
+ Ze as SheetContent,
209
+ $e as SheetDescription,
210
+ ro as SheetFooter,
211
+ eo as SheetHeader,
212
+ oo as SheetTitle,
213
+ to as SheetTrigger,
214
+ no as Skeleton,
215
+ nr as TextInput,
216
+ io as Toaster,
214
217
  X as Touchable,
215
- V as TransitionLink,
216
- Ot as UserState,
217
- Vt as UserTokenGenerateUserErrorCode,
218
+ O as TransitionLink,
219
+ Kt as UserState,
220
+ Qt as UserTokenGenerateUserErrorCode,
218
221
  ir as VideoPlayer,
219
- br as badgeVariants,
220
- Et as extractBrandTheme,
221
- Gt as fileToDataUri,
222
- kt as formatError,
223
- Ft as formatReviewCount,
224
- bt as getFeaturedImages,
225
- Ut as normalizeRating,
226
- Nt as parseUrl,
227
- Ko as useAsyncStorage,
228
- Io as useBuyerAttributes,
229
- at as useCloseMini,
230
- Ct as useCreateImageContent,
231
- qo as useCuratedProducts,
232
- Po as useCurrentUser,
233
- pt as useDeeplink,
234
- Pt as useErrorScreen,
235
- St as useErrorToast,
236
- Co as useFollowedShops,
237
- So as useFollowedShopsActions,
238
- wo as useGenerateUserToken,
239
- It as useImagePicker,
240
- rt as useImageUpload,
241
- mt as useNavigateWithTransition,
242
- ho as useOrders,
243
- Qo as usePopularProducts,
244
- Uo as useProduct,
222
+ Lr as badgeVariants,
223
+ Lt as extractBrandTheme,
224
+ zt as fileToDataUri,
225
+ Et as formatError,
226
+ Nt as formatReviewCount,
227
+ yt as getFeaturedImages,
228
+ _t as getResizedImageUrl,
229
+ Wt as getThumbhashDataURL,
230
+ Gt as normalizeRating,
231
+ Vt as parseUrl,
232
+ Zo as useAsyncStorage,
233
+ vo as useBuyerAttributes,
234
+ pt as useCloseMini,
235
+ St as useCreateImageContent,
236
+ Jo as useCuratedProducts,
237
+ ho as useCurrentUser,
238
+ mt as useDeeplink,
239
+ ht as useErrorScreen,
240
+ At as useErrorToast,
241
+ So as useFollowedShops,
242
+ Ao as useFollowedShopsActions,
243
+ Mo as useGenerateUserToken,
244
+ vt as useImagePicker,
245
+ ot as useImageUpload,
246
+ Mt as useKeyboardAvoidingView,
247
+ st as useNavigateWithTransition,
248
+ Io as useOrders,
249
+ jo as usePopularProducts,
250
+ No as useProduct,
245
251
  Fo as useProductList,
246
- Mo as useProductListActions,
252
+ bo as useProductListActions,
247
253
  Bo as useProductLists,
248
- Oo as useProductMedia,
249
- zo as useProductSearch,
250
- Go as useProductVariants,
251
- No as useProducts,
252
- no as useRecentProducts,
253
- lo as useRecentShops,
254
- Wo as useRecommendedProducts,
255
- xt as useRecommendedShops,
256
- uo as useSavedProducts,
257
- co as useSavedProductsActions,
258
- Zo as useSecureStorage,
259
- ht as useShare,
260
- st as useShop,
261
- ft as useShopCartActions,
262
- ot as useShopNavigation
254
+ zo as useProductMedia,
255
+ Wo as useProductSearch,
256
+ Vo as useProductVariants,
257
+ Go as useProducts,
258
+ lo as useRecentProducts,
259
+ uo as useRecentShops,
260
+ Ko as useRecommendedProducts,
261
+ Ct as useRecommendedShops,
262
+ xo as useSavedProducts,
263
+ Co as useSavedProductsActions,
264
+ rt as useSecureStorage,
265
+ It as useShare,
266
+ ft as useShop,
267
+ ct as useShopCartActions,
268
+ at as useShopNavigation
263
269
  };
264
270
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/mocks.js CHANGED
@@ -51,6 +51,8 @@ function l(t, o) {
51
51
  }
52
52
  function u() {
53
53
  const t = {
54
+ translateContentUp: void 0,
55
+ translateContentDown: void 0,
54
56
  followShop: !0,
55
57
  unfollowShop: !1,
56
58
  favorite: void 0,
@@ -329,6 +331,7 @@ const m = () => {
329
331
  export {
330
332
  e as createProduct,
331
333
  i as createShop,
332
- h as injectMocks
334
+ h as injectMocks,
335
+ u as makeMockActions
333
336
  };
334
337
  //# sourceMappingURL=mocks.js.map