@shopify/shop-minis-react 0.0.25 → 0.0.27

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 (58) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index4.js +2 -3
  3. package/dist/_virtual/index4.js.map +1 -1
  4. package/dist/_virtual/index7.js +3 -2
  5. package/dist/_virtual/index7.js.map +1 -1
  6. package/dist/_virtual/index9.js +2 -2
  7. package/dist/components/atoms/product-variant-price.js +61 -0
  8. package/dist/components/atoms/product-variant-price.js.map +1 -0
  9. package/dist/components/commerce/product-card.js +120 -153
  10. package/dist/components/commerce/product-card.js.map +1 -1
  11. package/dist/components/commerce/product-link-skeleton.js +30 -0
  12. package/dist/components/commerce/product-link-skeleton.js.map +1 -0
  13. package/dist/components/commerce/product-link.js +73 -77
  14. package/dist/components/commerce/product-link.js.map +1 -1
  15. package/dist/components/commerce/search.js +144 -0
  16. package/dist/components/commerce/search.js.map +1 -0
  17. package/dist/components/content/content-monitor.js +17 -0
  18. package/dist/components/content/content-monitor.js.map +1 -0
  19. package/dist/components/content/content-wrapper.js +17 -0
  20. package/dist/components/content/content-wrapper.js.map +1 -0
  21. package/dist/components/ui/input.js +3 -3
  22. package/dist/components/ui/input.js.map +1 -1
  23. package/dist/hooks/content/useContent.js +24 -0
  24. package/dist/hooks/content/useContent.js.map +1 -0
  25. package/dist/hooks/content/useCreateImageContent.js +21 -18
  26. package/dist/hooks/content/useCreateImageContent.js.map +1 -1
  27. package/dist/hooks/product/useProductSearch.js +24 -23
  28. package/dist/hooks/product/useProductSearch.js.map +1 -1
  29. package/dist/index.js +230 -221
  30. package/dist/index.js.map +1 -1
  31. package/dist/mocks.js +21 -6
  32. package/dist/mocks.js.map +1 -1
  33. package/dist/shop-minis-platform/src/types/content.js +5 -0
  34. package/dist/shop-minis-platform/src/types/content.js.map +1 -0
  35. package/dist/shop-minis-react/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.0_@types_react@19.1.6_react@19.1.0/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
  36. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/index.js +1 -1
  37. package/dist/shop-minis-react/node_modules/.pnpm/lucide-react@0.513.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js +16 -0
  38. package/dist/shop-minis-react/node_modules/.pnpm/lucide-react@0.513.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js.map +1 -0
  39. package/dist/shop-minis-react/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.js +1 -1
  40. 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
  41. package/dist/shop-minis-react.css +1 -1
  42. package/package.json +5 -4
  43. package/src/components/atoms/product-variant-price.tsx +74 -0
  44. package/src/components/commerce/product-card.tsx +7 -56
  45. package/src/components/commerce/product-link-skeleton.tsx +30 -0
  46. package/src/components/commerce/product-link.tsx +8 -7
  47. package/src/components/commerce/search.tsx +264 -0
  48. package/src/components/content/content-monitor.tsx +23 -0
  49. package/src/components/content/content-wrapper.tsx +56 -0
  50. package/src/components/index.ts +3 -0
  51. package/src/components/ui/input.tsx +1 -1
  52. package/src/hooks/content/useContent.ts +50 -0
  53. package/src/hooks/content/useCreateImageContent.ts +20 -5
  54. package/src/hooks/product/useProductSearch.ts +10 -1
  55. package/src/mocks.ts +15 -0
  56. package/src/stories/ProductVariantPrice.stories.tsx +73 -0
  57. package/src/stories/Toaster.stories.tsx +2 -2
  58. package/src/styles/utilities.css +9 -0
package/dist/index.js CHANGED
@@ -1,236 +1,245 @@
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 p } from "./components/commerce/product-card.js";
3
+ import { ProductCard as l } from "./components/commerce/product-card.js";
4
4
  import { ProductLink as s } from "./components/commerce/product-link.js";
5
- import { MerchantCard as f, MerchantCardPrimitive as u } from "./components/commerce/merchant-card.js";
5
+ import { MerchantCard as f, MerchantCardPrimitive as x } from "./components/commerce/merchant-card.js";
6
6
  import { ProductCardSkeleton as c } from "./components/commerce/product-card-skeleton.js";
7
7
  import { MerchantCardSkeleton as g } from "./components/commerce/merchant-card-skeleton.js";
8
- import { QuantitySelector as D } from "./components/commerce/quantity-selector.js";
9
- import { TransitionContainer as A } from "./components/navigation/transition-container.js";
10
- import { TransitionLink as T } from "./components/navigation/transition-link.js";
11
- import { Button as I } from "./components/atoms/button.js";
12
- import { FavoriteButton as v } from "./components/atoms/favorite-button.js";
13
- import { IconButton as b } from "./components/atoms/icon-button.js";
14
- import { ThumbhashImage as k } from "./components/atoms/thumbhash-image.js";
15
- import { Touchable as E } from "./components/atoms/touchable.js";
16
- import { AlertDialogAtom as N } from "./components/atoms/alert-dialog.js";
17
- import { List as L } from "./components/atoms/list.js";
18
- import { VideoPlayer as H } from "./components/atoms/video-player.js";
19
- import { Accordion as U, AccordionContent as V, AccordionItem as z, AccordionTrigger as _ } from "./components/ui/accordion.js";
20
- import { Alert as Q, AlertDescription as W, AlertTitle as j } from "./components/ui/alert.js";
21
- import { AlertDialog as J, AlertDialogAction as K, AlertDialogCancel as X, AlertDialogContent as Z, AlertDialogDescription as $, AlertDialogFooter as rr, AlertDialogHeader as er, AlertDialogOverlay as or, AlertDialogPortal as tr, AlertDialogTitle as ar, AlertDialogTrigger as ir } from "./components/ui/alert-dialog.js";
22
- import { Avatar as pr, AvatarFallback as mr, AvatarImage as sr } from "./components/ui/avatar.js";
23
- import { Badge as fr, badgeVariants as ur } from "./components/ui/badge.js";
24
- import { Card as cr, CardAction as dr, CardContent as gr, CardDescription as Sr, CardFooter as Dr, CardHeader as Cr, CardTitle as Ar } from "./components/ui/card.js";
25
- import { Carousel as Tr, CarouselContent as hr, CarouselItem as Ir, CarouselNext as wr, CarouselPrevious as vr } from "./components/ui/carousel.js";
26
- import { Checkbox as br } from "./components/ui/checkbox.js";
27
- import { Dialog as kr, DialogClose as Br, DialogContent as Er, DialogDescription as Mr, DialogFooter as Nr, DialogHeader as yr, DialogOverlay as Lr, DialogPortal as Gr, DialogTitle as Hr, DialogTrigger as Or } from "./components/ui/dialog.js";
28
- import { Drawer as Vr, DrawerClose as zr, DrawerContent as _r, DrawerDescription as Yr, DrawerFooter as Qr, DrawerHeader as Wr, DrawerOverlay as jr, DrawerPortal as qr, DrawerTitle as Jr, DrawerTrigger as Kr } from "./components/ui/drawer.js";
29
- import { Input as Zr } from "./components/ui/input.js";
30
- import { Label as re } from "./components/ui/label.js";
31
- import { Progress as oe } from "./components/ui/progress.js";
32
- import { RadioGroup as ae, RadioGroupItem as ie } from "./components/ui/radio-group.js";
33
- import { ResizableHandle as pe, ResizablePanel as me, ResizablePanelGroup as se } from "./components/ui/resizable.js";
34
- import { ScrollArea as fe, ScrollBar as ue } from "./components/ui/scroll-area.js";
35
- import { Select as ce, SelectContent as de, SelectGroup as ge, SelectItem as Se, SelectLabel as De, SelectScrollDownButton as Ce, SelectScrollUpButton as Ae, SelectSeparator as Pe, SelectTrigger as Te, SelectValue as he } from "./components/ui/select.js";
36
- import { Separator as we } from "./components/ui/separator.js";
37
- import { Sheet as Re, SheetClose as be, SheetContent as Fe, SheetDescription as ke, SheetFooter as Be, SheetHeader as Ee, SheetTitle as Me, SheetTrigger as Ne } from "./components/ui/sheet.js";
38
- import { Toaster as Le } from "./components/ui/sonner.js";
39
- import { Skeleton as He } from "./components/ui/skeleton.js";
40
- import { useRecentProducts as Ue } from "./hooks/user/useRecentProducts.js";
41
- import { useRecentShops as ze } from "./hooks/user/useRecentShops.js";
42
- import { useSavedProducts as Ye } from "./hooks/user/useSavedProducts.js";
43
- import { useSavedProductsActions as We } from "./hooks/user/useSavedProductsActions.js";
44
- import { useFollowedShops as qe } from "./hooks/user/useFollowedShops.js";
45
- import { useFollowedShopsActions as Ke } from "./hooks/user/useFollowedShopsActions.js";
46
- import { useCurrentUser as Ze } from "./hooks/user/useCurrentUser.js";
47
- import { useOrders as ro } from "./hooks/user/useOrders.js";
48
- import { useBuyerAttributes as oo } from "./hooks/user/useBuyerAttributes.js";
49
- import { useProductListActions as ao } from "./hooks/product/useProductListActions.js";
50
- import { useProductLists as lo } from "./hooks/product/useProductLists.js";
51
- import { useProductList as mo } from "./hooks/product/useProductList.js";
52
- import { useProduct as no } from "./hooks/product/useProduct.js";
53
- import { useProducts as uo } from "./hooks/product/useProducts.js";
54
- import { useProductVariants as co } from "./hooks/product/useProductVariants.js";
55
- import { useProductMedia as So } from "./hooks/product/useProductMedia.js";
56
- import { useProductSearch as Co } from "./hooks/product/useProductSearch.js";
57
- import { useRecommendedProducts as Po } from "./hooks/product/useRecommendedProducts.js";
58
- import { usePopularProducts as ho } from "./hooks/product/usePopularProducts.js";
59
- import { useCuratedProducts as wo } from "./hooks/product/useCuratedProducts.js";
60
- import { useAsyncStorage as Ro } from "./hooks/storage/useAsyncStorage.js";
61
- import { useSecureStorage as Fo } from "./hooks/storage/useSecureStorage.js";
62
- import { useImageUpload as Bo } from "./hooks/storage/useImageUpload.js";
63
- import { useShopNavigation as Mo } from "./hooks/navigation/useShopNavigation.js";
64
- import { useCloseMini as yo } from "./hooks/navigation/useCloseMini.js";
65
- import { useDeeplink as Go } from "./hooks/navigation/useDeeplink.js";
66
- import { useNavigateWithTransition as Oo } from "./hooks/navigation/useNavigateWithTransition.js";
67
- import { useShop as Vo } from "./hooks/shop/useShop.js";
68
- import { useShopCartActions as _o } from "./hooks/shop/useShopCartActions.js";
69
- import { useRecommendedShops as Qo } from "./hooks/shop/useRecommendedShops.js";
70
- import { useCreateImageContent as jo } from "./hooks/content/useCreateImageContent.js";
71
- import { useErrorToast as Jo } from "./hooks/util/useErrorToast.js";
72
- import { useErrorScreen as Xo } from "./hooks/util/useErrorScreen.js";
73
- import { useShare as $o } from "./hooks/util/useShare.js";
74
- import { useImagePicker as et } from "./hooks/util/useImagePicker.js";
75
- import { MiniEntityNotFoundError as tt, MiniError as at, MiniNetworkError as it, formatError as lt } from "./utils/errors.js";
76
- import { extractBrandTheme as mt, formatReviewCount as st, getFeaturedImages as nt, normalizeRating as ft } from "./utils/merchant-card.js";
77
- import { parseUrl as xt } from "./utils/parseUrl.js";
78
- import { fileToDataUri as dt } from "./utils/imageToDataUri.js";
79
- import { Consent as St, ConsentStatus as Dt } from "./shop-minis-platform/src/types/permissions.js";
8
+ import { QuantitySelector as C } from "./components/commerce/quantity-selector.js";
9
+ import { Search as A, SearchInput as h, SearchProvider as P, SearchResultsList as T } from "./components/commerce/search.js";
10
+ import { ContentWrapper as v } from "./components/content/content-wrapper.js";
11
+ import { TransitionContainer as R } from "./components/navigation/transition-container.js";
12
+ import { TransitionLink as E } from "./components/navigation/transition-link.js";
13
+ import { Button as k } from "./components/atoms/button.js";
14
+ import { FavoriteButton as L } from "./components/atoms/favorite-button.js";
15
+ import { IconButton as N } from "./components/atoms/icon-button.js";
16
+ import { ThumbhashImage as U } from "./components/atoms/thumbhash-image.js";
17
+ import { Touchable as H } from "./components/atoms/touchable.js";
18
+ import { AlertDialogAtom as V } from "./components/atoms/alert-dialog.js";
19
+ import { List as _ } from "./components/atoms/list.js";
20
+ import { VideoPlayer as Y } from "./components/atoms/video-player.js";
21
+ import { Accordion as j, AccordionContent as q, AccordionItem as J, AccordionTrigger as K } from "./components/ui/accordion.js";
22
+ import { Alert as Z, AlertDescription as $, AlertTitle as rr } from "./components/ui/alert.js";
23
+ import { AlertDialog as or, AlertDialogAction as tr, AlertDialogCancel as ar, AlertDialogContent as ir, AlertDialogDescription as pr, AlertDialogFooter as lr, AlertDialogHeader as mr, AlertDialogOverlay as sr, AlertDialogPortal as nr, AlertDialogTitle as fr, AlertDialogTrigger as xr } from "./components/ui/alert-dialog.js";
24
+ import { Avatar as cr, AvatarFallback as dr, AvatarImage as gr } from "./components/ui/avatar.js";
25
+ import { Badge as Cr, badgeVariants as Dr } from "./components/ui/badge.js";
26
+ import { Card as hr, CardAction as Pr, CardContent as Tr, CardDescription as Ir, CardFooter as vr, CardHeader as wr, CardTitle as Rr } from "./components/ui/card.js";
27
+ import { Carousel as Er, CarouselContent as Fr, CarouselItem as kr, CarouselNext as Br, CarouselPrevious as Lr } from "./components/ui/carousel.js";
28
+ import { Checkbox as Nr } from "./components/ui/checkbox.js";
29
+ import { Dialog as Ur, DialogClose as Gr, DialogContent as Hr, DialogDescription as Or, DialogFooter as Vr, DialogHeader as zr, DialogOverlay as _r, DialogPortal as Wr, DialogTitle as Yr, DialogTrigger as Qr } from "./components/ui/dialog.js";
30
+ import { Drawer as qr, DrawerClose as Jr, DrawerContent as Kr, DrawerDescription as Xr, DrawerFooter as Zr, DrawerHeader as $r, DrawerOverlay as re, DrawerPortal as ee, DrawerTitle as oe, DrawerTrigger as te } from "./components/ui/drawer.js";
31
+ import { Input as ie } from "./components/ui/input.js";
32
+ import { Label as le } from "./components/ui/label.js";
33
+ import { Progress as se } from "./components/ui/progress.js";
34
+ import { RadioGroup as fe, RadioGroupItem as xe } from "./components/ui/radio-group.js";
35
+ import { ResizableHandle as ce, ResizablePanel as de, ResizablePanelGroup as ge } from "./components/ui/resizable.js";
36
+ import { ScrollArea as Ce, ScrollBar as De } from "./components/ui/scroll-area.js";
37
+ import { Select as he, SelectContent as Pe, SelectGroup as Te, SelectItem as Ie, SelectLabel as ve, SelectScrollDownButton as we, SelectScrollUpButton as Re, SelectSeparator as be, SelectTrigger as Ee, SelectValue as Fe } from "./components/ui/select.js";
38
+ import { Separator as Be } from "./components/ui/separator.js";
39
+ import { Sheet as Me, SheetClose as Ne, SheetContent as ye, SheetDescription as Ue, SheetFooter as Ge, SheetHeader as He, SheetTitle as Oe, SheetTrigger as Ve } from "./components/ui/sheet.js";
40
+ import { Toaster as _e } from "./components/ui/sonner.js";
41
+ import { Skeleton as Ye } from "./components/ui/skeleton.js";
42
+ import { useRecentProducts as je } from "./hooks/user/useRecentProducts.js";
43
+ import { useRecentShops as Je } from "./hooks/user/useRecentShops.js";
44
+ import { useSavedProducts as Xe } from "./hooks/user/useSavedProducts.js";
45
+ import { useSavedProductsActions as $e } from "./hooks/user/useSavedProductsActions.js";
46
+ import { useFollowedShops as eo } from "./hooks/user/useFollowedShops.js";
47
+ import { useFollowedShopsActions as to } from "./hooks/user/useFollowedShopsActions.js";
48
+ import { useCurrentUser as io } from "./hooks/user/useCurrentUser.js";
49
+ import { useOrders as lo } from "./hooks/user/useOrders.js";
50
+ import { useBuyerAttributes as so } from "./hooks/user/useBuyerAttributes.js";
51
+ import { useProductListActions as fo } from "./hooks/product/useProductListActions.js";
52
+ import { useProductLists as uo } from "./hooks/product/useProductLists.js";
53
+ import { useProductList as go } from "./hooks/product/useProductList.js";
54
+ import { useProduct as Co } from "./hooks/product/useProduct.js";
55
+ import { useProducts as Ao } from "./hooks/product/useProducts.js";
56
+ import { useProductVariants as Po } from "./hooks/product/useProductVariants.js";
57
+ import { useProductMedia as Io } from "./hooks/product/useProductMedia.js";
58
+ import { useProductSearch as wo } from "./hooks/product/useProductSearch.js";
59
+ import { useRecommendedProducts as bo } from "./hooks/product/useRecommendedProducts.js";
60
+ import { usePopularProducts as Fo } from "./hooks/product/usePopularProducts.js";
61
+ import { useCuratedProducts as Bo } from "./hooks/product/useCuratedProducts.js";
62
+ import { useAsyncStorage as Mo } from "./hooks/storage/useAsyncStorage.js";
63
+ import { useSecureStorage as yo } from "./hooks/storage/useSecureStorage.js";
64
+ import { useImageUpload as Go } from "./hooks/storage/useImageUpload.js";
65
+ import { useShopNavigation as Oo } from "./hooks/navigation/useShopNavigation.js";
66
+ import { useCloseMini as zo } from "./hooks/navigation/useCloseMini.js";
67
+ import { useDeeplink as Wo } from "./hooks/navigation/useDeeplink.js";
68
+ import { useNavigateWithTransition as Qo } from "./hooks/navigation/useNavigateWithTransition.js";
69
+ import { useShop as qo } from "./hooks/shop/useShop.js";
70
+ import { useShopCartActions as Ko } from "./hooks/shop/useShopCartActions.js";
71
+ import { useRecommendedShops as Zo } from "./hooks/shop/useRecommendedShops.js";
72
+ import { useCreateImageContent as rt } from "./hooks/content/useCreateImageContent.js";
73
+ import { useErrorToast as ot } from "./hooks/util/useErrorToast.js";
74
+ import { useErrorScreen as at } from "./hooks/util/useErrorScreen.js";
75
+ import { useShare as pt } from "./hooks/util/useShare.js";
76
+ import { useImagePicker as mt } from "./hooks/util/useImagePicker.js";
77
+ import { MiniEntityNotFoundError as nt, MiniError as ft, MiniNetworkError as xt, formatError as ut } from "./utils/errors.js";
78
+ import { extractBrandTheme as dt, formatReviewCount as gt, getFeaturedImages as St, normalizeRating as Ct } from "./utils/merchant-card.js";
79
+ import { parseUrl as At } from "./utils/parseUrl.js";
80
+ import { fileToDataUri as Pt } from "./utils/imageToDataUri.js";
81
+ import { ContentCreateUserErrorCode as It } from "./shop-minis-platform/src/types/content.js";
82
+ import { Consent as wt, ConsentStatus as Rt } from "./shop-minis-platform/src/types/permissions.js";
80
83
  export {
81
- U as Accordion,
82
- V as AccordionContent,
83
- z as AccordionItem,
84
- _ as AccordionTrigger,
85
- Q as Alert,
86
- W as AlertDescription,
87
- J as AlertDialog,
88
- K as AlertDialogAction,
89
- N as AlertDialogAtom,
90
- X as AlertDialogCancel,
91
- Z as AlertDialogContent,
92
- $ as AlertDialogDescription,
93
- rr as AlertDialogFooter,
94
- er as AlertDialogHeader,
95
- or as AlertDialogOverlay,
96
- tr as AlertDialogPortal,
97
- ar as AlertDialogTitle,
98
- ir as AlertDialogTrigger,
99
- j as AlertTitle,
100
- pr as Avatar,
101
- mr as AvatarFallback,
102
- sr as AvatarImage,
103
- fr as Badge,
104
- I as Button,
105
- cr as Card,
106
- dr as CardAction,
107
- gr as CardContent,
108
- Sr as CardDescription,
109
- Dr as CardFooter,
110
- Cr as CardHeader,
111
- Ar as CardTitle,
112
- Tr as Carousel,
113
- hr as CarouselContent,
114
- Ir as CarouselItem,
115
- wr as CarouselNext,
116
- vr as CarouselPrevious,
117
- br as Checkbox,
118
- St as Consent,
119
- Dt as ConsentStatus,
84
+ j as Accordion,
85
+ q as AccordionContent,
86
+ J as AccordionItem,
87
+ K as AccordionTrigger,
88
+ Z as Alert,
89
+ $ as AlertDescription,
90
+ or as AlertDialog,
91
+ tr as AlertDialogAction,
92
+ V as AlertDialogAtom,
93
+ ar as AlertDialogCancel,
94
+ ir as AlertDialogContent,
95
+ pr as AlertDialogDescription,
96
+ lr as AlertDialogFooter,
97
+ mr as AlertDialogHeader,
98
+ sr as AlertDialogOverlay,
99
+ nr as AlertDialogPortal,
100
+ fr as AlertDialogTitle,
101
+ xr as AlertDialogTrigger,
102
+ rr as AlertTitle,
103
+ cr as Avatar,
104
+ dr as AvatarFallback,
105
+ gr as AvatarImage,
106
+ Cr as Badge,
107
+ k as Button,
108
+ hr as Card,
109
+ Pr as CardAction,
110
+ Tr as CardContent,
111
+ Ir as CardDescription,
112
+ vr as CardFooter,
113
+ wr as CardHeader,
114
+ Rr as CardTitle,
115
+ Er as Carousel,
116
+ Fr as CarouselContent,
117
+ kr as CarouselItem,
118
+ Br as CarouselNext,
119
+ Lr as CarouselPrevious,
120
+ Nr as Checkbox,
121
+ wt as Consent,
122
+ Rt as ConsentStatus,
123
+ It as ContentCreateUserErrorCode,
124
+ v as ContentWrapper,
120
125
  o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
121
- kr as Dialog,
122
- Br as DialogClose,
123
- Er as DialogContent,
124
- Mr as DialogDescription,
125
- Nr as DialogFooter,
126
- yr as DialogHeader,
127
- Lr as DialogOverlay,
128
- Gr as DialogPortal,
129
- Hr as DialogTitle,
130
- Or as DialogTrigger,
131
- Vr as Drawer,
132
- zr as DrawerClose,
133
- _r as DrawerContent,
134
- Yr as DrawerDescription,
135
- Qr as DrawerFooter,
136
- Wr as DrawerHeader,
137
- jr as DrawerOverlay,
138
- qr as DrawerPortal,
139
- Jr as DrawerTitle,
140
- Kr as DrawerTrigger,
141
- v as FavoriteButton,
142
- b as IconButton,
143
- Zr as Input,
144
- re as Label,
145
- L as List,
126
+ Ur as Dialog,
127
+ Gr as DialogClose,
128
+ Hr as DialogContent,
129
+ Or as DialogDescription,
130
+ Vr as DialogFooter,
131
+ zr as DialogHeader,
132
+ _r as DialogOverlay,
133
+ Wr as DialogPortal,
134
+ Yr as DialogTitle,
135
+ Qr as DialogTrigger,
136
+ qr as Drawer,
137
+ Jr as DrawerClose,
138
+ Kr as DrawerContent,
139
+ Xr as DrawerDescription,
140
+ Zr as DrawerFooter,
141
+ $r as DrawerHeader,
142
+ re as DrawerOverlay,
143
+ ee as DrawerPortal,
144
+ oe as DrawerTitle,
145
+ te as DrawerTrigger,
146
+ L as FavoriteButton,
147
+ N as IconButton,
148
+ ie as Input,
149
+ le as Label,
150
+ _ as List,
146
151
  f as MerchantCard,
147
- u as MerchantCardPrimitive,
152
+ x as MerchantCardPrimitive,
148
153
  g as MerchantCardSkeleton,
149
- tt as MiniEntityNotFoundError,
150
- at as MiniError,
151
- it as MiniNetworkError,
154
+ nt as MiniEntityNotFoundError,
155
+ ft as MiniError,
156
+ xt as MiniNetworkError,
152
157
  i as MinisContainer,
153
158
  t as NAVIGATION_TYPES,
154
- p as ProductCard,
159
+ l as ProductCard,
155
160
  c as ProductCardSkeleton,
156
161
  s as ProductLink,
157
- oe as Progress,
158
- D as QuantitySelector,
159
- ae as RadioGroup,
160
- ie as RadioGroupItem,
161
- pe as ResizableHandle,
162
- me as ResizablePanel,
163
- se as ResizablePanelGroup,
164
- fe as ScrollArea,
165
- ue as ScrollBar,
166
- ce as Select,
167
- de as SelectContent,
168
- ge as SelectGroup,
169
- Se as SelectItem,
170
- De as SelectLabel,
171
- Ce as SelectScrollDownButton,
172
- Ae as SelectScrollUpButton,
173
- Pe as SelectSeparator,
174
- Te as SelectTrigger,
175
- he as SelectValue,
176
- we as Separator,
177
- Re as Sheet,
178
- be as SheetClose,
179
- Fe as SheetContent,
180
- ke as SheetDescription,
181
- Be as SheetFooter,
182
- Ee as SheetHeader,
183
- Me as SheetTitle,
184
- Ne as SheetTrigger,
185
- He as Skeleton,
186
- k as ThumbhashImage,
187
- Le as Toaster,
188
- E as Touchable,
189
- A as TransitionContainer,
190
- T as TransitionLink,
191
- H as VideoPlayer,
192
- ur as badgeVariants,
193
- mt as extractBrandTheme,
194
- dt as fileToDataUri,
195
- lt as formatError,
196
- st as formatReviewCount,
197
- nt as getFeaturedImages,
198
- ft as normalizeRating,
199
- xt as parseUrl,
200
- Ro as useAsyncStorage,
201
- oo as useBuyerAttributes,
202
- yo as useCloseMini,
203
- jo as useCreateImageContent,
204
- wo as useCuratedProducts,
205
- Ze as useCurrentUser,
206
- Go as useDeeplink,
207
- Xo as useErrorScreen,
208
- Jo as useErrorToast,
209
- qe as useFollowedShops,
210
- Ke as useFollowedShopsActions,
211
- et as useImagePicker,
212
- Bo as useImageUpload,
213
- Oo as useNavigateWithTransition,
214
- ro as useOrders,
215
- ho as usePopularProducts,
216
- no as useProduct,
217
- mo as useProductList,
218
- ao as useProductListActions,
219
- lo as useProductLists,
220
- So as useProductMedia,
221
- Co as useProductSearch,
222
- co as useProductVariants,
223
- uo as useProducts,
224
- Ue as useRecentProducts,
225
- ze as useRecentShops,
226
- Po as useRecommendedProducts,
227
- Qo as useRecommendedShops,
228
- Ye as useSavedProducts,
229
- We as useSavedProductsActions,
230
- Fo as useSecureStorage,
231
- $o as useShare,
232
- Vo as useShop,
233
- _o as useShopCartActions,
234
- Mo as useShopNavigation
162
+ se as Progress,
163
+ C as QuantitySelector,
164
+ fe as RadioGroup,
165
+ xe as RadioGroupItem,
166
+ ce as ResizableHandle,
167
+ de as ResizablePanel,
168
+ ge as ResizablePanelGroup,
169
+ Ce as ScrollArea,
170
+ De as ScrollBar,
171
+ A as Search,
172
+ h as SearchInput,
173
+ P as SearchProvider,
174
+ T as SearchResultsList,
175
+ he as Select,
176
+ Pe as SelectContent,
177
+ Te as SelectGroup,
178
+ Ie as SelectItem,
179
+ ve as SelectLabel,
180
+ we as SelectScrollDownButton,
181
+ Re as SelectScrollUpButton,
182
+ be as SelectSeparator,
183
+ Ee as SelectTrigger,
184
+ Fe as SelectValue,
185
+ Be as Separator,
186
+ Me as Sheet,
187
+ Ne as SheetClose,
188
+ ye as SheetContent,
189
+ Ue as SheetDescription,
190
+ Ge as SheetFooter,
191
+ He as SheetHeader,
192
+ Oe as SheetTitle,
193
+ Ve as SheetTrigger,
194
+ Ye as Skeleton,
195
+ U as ThumbhashImage,
196
+ _e as Toaster,
197
+ H as Touchable,
198
+ R as TransitionContainer,
199
+ E as TransitionLink,
200
+ Y as VideoPlayer,
201
+ Dr as badgeVariants,
202
+ dt as extractBrandTheme,
203
+ Pt as fileToDataUri,
204
+ ut as formatError,
205
+ gt as formatReviewCount,
206
+ St as getFeaturedImages,
207
+ Ct as normalizeRating,
208
+ At as parseUrl,
209
+ Mo as useAsyncStorage,
210
+ so as useBuyerAttributes,
211
+ zo as useCloseMini,
212
+ rt as useCreateImageContent,
213
+ Bo as useCuratedProducts,
214
+ io as useCurrentUser,
215
+ Wo as useDeeplink,
216
+ at as useErrorScreen,
217
+ ot as useErrorToast,
218
+ eo as useFollowedShops,
219
+ to as useFollowedShopsActions,
220
+ mt as useImagePicker,
221
+ Go as useImageUpload,
222
+ Qo as useNavigateWithTransition,
223
+ lo as useOrders,
224
+ Fo as usePopularProducts,
225
+ Co as useProduct,
226
+ go as useProductList,
227
+ fo as useProductListActions,
228
+ uo as useProductLists,
229
+ Io as useProductMedia,
230
+ wo as useProductSearch,
231
+ Po as useProductVariants,
232
+ Ao as useProducts,
233
+ je as useRecentProducts,
234
+ Je as useRecentShops,
235
+ bo as useRecommendedProducts,
236
+ Zo as useRecommendedShops,
237
+ Xe as useSavedProducts,
238
+ $e as useSavedProductsActions,
239
+ yo as useSecureStorage,
240
+ pt as useShare,
241
+ qo as useShop,
242
+ Ko as useShopCartActions,
243
+ Oo as useShopNavigation
235
244
  };
236
245
  //# 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
@@ -1,9 +1,9 @@
1
- const e = (t, o, r = "99.99", s) => ({
1
+ const e = (t, o, r = "99.99", n) => ({
2
2
  id: t,
3
3
  title: o,
4
4
  price: { amount: r, currencyCode: "USD" },
5
- ...s && {
6
- compareAtPrice: { amount: s, currencyCode: "USD" }
5
+ ...n && {
6
+ compareAtPrice: { amount: n, currencyCode: "USD" }
7
7
  },
8
8
  reviewAnalytics: { averageRating: 4.5, reviewCount: 10 },
9
9
  shop: i("shop1", "Mock Shop"),
@@ -14,10 +14,10 @@ const e = (t, o, r = "99.99", s) => ({
14
14
  altText: o
15
15
  }
16
16
  }), i = (t, o, r) => {
17
- const c = Array.from({ length: 3 }, (m, n) => ({
18
- url: `https://picsum.photos/400/400?random=${t}-${n}`,
17
+ const c = Array.from({ length: 3 }, (m, s) => ({
18
+ url: `https://picsum.photos/400/400?random=${t}-${s}`,
19
19
  sensitive: !1,
20
- altText: `${o} featured image ${n + 1}`
20
+ altText: `${o} featured image ${s + 1}`
21
21
  }));
22
22
  return {
23
23
  id: t,
@@ -284,6 +284,21 @@ function l() {
284
284
  shareableUrl: "https://example.com/content/123",
285
285
  products: null
286
286
  }
287
+ },
288
+ getContent: {
289
+ data: [
290
+ {
291
+ publicId: "content-123",
292
+ image: {
293
+ id: "img-123",
294
+ url: "https://example.com/content-image.jpg",
295
+ width: 800,
296
+ height: 600
297
+ },
298
+ title: "Mock Content",
299
+ visibility: ["DISCOVERABLE"]
300
+ }
301
+ ]
287
302
  }
288
303
  }, o = {};
289
304
  for (const r in t)