@shopify/shop-minis-react 0.0.25 → 0.0.26

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 (42) 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.js +12 -16
  12. package/dist/components/commerce/product-link.js.map +1 -1
  13. package/dist/components/content/content-monitor.js +17 -0
  14. package/dist/components/content/content-monitor.js.map +1 -0
  15. package/dist/components/content/content-wrapper.js +17 -0
  16. package/dist/components/content/content-wrapper.js.map +1 -0
  17. package/dist/hooks/content/useContent.js +24 -0
  18. package/dist/hooks/content/useContent.js.map +1 -0
  19. package/dist/hooks/content/useCreateImageContent.js +21 -18
  20. package/dist/hooks/content/useCreateImageContent.js.map +1 -1
  21. package/dist/index.js +227 -223
  22. package/dist/index.js.map +1 -1
  23. package/dist/mocks.js +21 -6
  24. package/dist/mocks.js.map +1 -1
  25. package/dist/shop-minis-platform/src/types/content.js +5 -0
  26. package/dist/shop-minis-platform/src/types/content.js.map +1 -0
  27. 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
  28. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/index.js +1 -1
  29. package/dist/shop-minis-react/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.js +1 -1
  30. 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
  31. package/package.json +5 -4
  32. package/src/components/atoms/product-variant-price.tsx +74 -0
  33. package/src/components/commerce/product-card.tsx +7 -56
  34. package/src/components/commerce/product-link.tsx +0 -2
  35. package/src/components/content/content-monitor.tsx +23 -0
  36. package/src/components/content/content-wrapper.tsx +56 -0
  37. package/src/components/index.ts +2 -0
  38. package/src/hooks/content/useContent.ts +50 -0
  39. package/src/hooks/content/useCreateImageContent.ts +20 -5
  40. package/src/mocks.ts +15 -0
  41. package/src/stories/ProductVariantPrice.stories.tsx +73 -0
  42. package/src/stories/Toaster.stories.tsx +2 -2
package/dist/index.js CHANGED
@@ -1,236 +1,240 @@
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";
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";
3
+ import { ProductCard as l } from "./components/commerce/product-card.js";
4
+ import { ProductLink as n } from "./components/commerce/product-link.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 S } from "./components/commerce/quantity-selector.js";
9
+ import { ContentWrapper as A } from "./components/content/content-wrapper.js";
10
+ import { TransitionContainer as T } from "./components/navigation/transition-container.js";
11
+ import { TransitionLink as I } from "./components/navigation/transition-link.js";
12
+ import { Button as v } from "./components/atoms/button.js";
13
+ import { FavoriteButton as b } from "./components/atoms/favorite-button.js";
14
+ import { IconButton as F } from "./components/atoms/icon-button.js";
15
+ import { ThumbhashImage as B } from "./components/atoms/thumbhash-image.js";
16
+ import { Touchable as N } from "./components/atoms/touchable.js";
17
+ import { AlertDialogAtom as L } from "./components/atoms/alert-dialog.js";
18
+ import { List as G } from "./components/atoms/list.js";
19
+ import { VideoPlayer as O } from "./components/atoms/video-player.js";
20
+ import { Accordion as z, AccordionContent as _, AccordionItem as W, AccordionTrigger as Y } from "./components/ui/accordion.js";
21
+ import { Alert as j, AlertDescription as q, AlertTitle as J } from "./components/ui/alert.js";
22
+ import { AlertDialog as X, AlertDialogAction as Z, AlertDialogCancel as $, AlertDialogContent as rr, AlertDialogDescription as er, AlertDialogFooter as or, AlertDialogHeader as tr, AlertDialogOverlay as ar, AlertDialogPortal as ir, AlertDialogTitle as pr, AlertDialogTrigger as lr } from "./components/ui/alert-dialog.js";
23
+ import { Avatar as nr, AvatarFallback as sr, AvatarImage as fr } from "./components/ui/avatar.js";
24
+ import { Badge as ur, badgeVariants as cr } from "./components/ui/badge.js";
25
+ import { Card as gr, CardAction as Cr, CardContent as Sr, CardDescription as Dr, CardFooter as Ar, CardHeader as Pr, CardTitle as Tr } from "./components/ui/card.js";
26
+ import { Carousel as Ir, CarouselContent as wr, CarouselItem as vr, CarouselNext as Rr, CarouselPrevious as br } from "./components/ui/carousel.js";
27
+ import { Checkbox as Fr } from "./components/ui/checkbox.js";
28
+ import { Dialog as Br, DialogClose as Mr, DialogContent as Nr, DialogDescription as yr, DialogFooter as Lr, DialogHeader as Ur, DialogOverlay as Gr, DialogPortal as Hr, DialogTitle as Or, DialogTrigger as Vr } from "./components/ui/dialog.js";
29
+ import { Drawer as _r, DrawerClose as Wr, DrawerContent as Yr, DrawerDescription as Qr, DrawerFooter as jr, DrawerHeader as qr, DrawerOverlay as Jr, DrawerPortal as Kr, DrawerTitle as Xr, DrawerTrigger as Zr } from "./components/ui/drawer.js";
30
+ import { Input as re } from "./components/ui/input.js";
31
+ import { Label as oe } from "./components/ui/label.js";
32
+ import { Progress as ae } from "./components/ui/progress.js";
33
+ import { RadioGroup as pe, RadioGroupItem as le } from "./components/ui/radio-group.js";
34
+ import { ResizableHandle as ne, ResizablePanel as se, ResizablePanelGroup as fe } from "./components/ui/resizable.js";
35
+ import { ScrollArea as ue, ScrollBar as ce } from "./components/ui/scroll-area.js";
36
+ import { Select as ge, SelectContent as Ce, SelectGroup as Se, SelectItem as De, SelectLabel as Ae, SelectScrollDownButton as Pe, SelectScrollUpButton as Te, SelectSeparator as he, SelectTrigger as Ie, SelectValue as we } from "./components/ui/select.js";
37
+ import { Separator as Re } from "./components/ui/separator.js";
38
+ import { Sheet as Ee, SheetClose as Fe, SheetContent as ke, SheetDescription as Be, SheetFooter as Me, SheetHeader as Ne, SheetTitle as ye, SheetTrigger as Le } from "./components/ui/sheet.js";
39
+ import { Toaster as Ge } from "./components/ui/sonner.js";
40
+ import { Skeleton as Oe } from "./components/ui/skeleton.js";
41
+ import { useRecentProducts as ze } from "./hooks/user/useRecentProducts.js";
42
+ import { useRecentShops as We } from "./hooks/user/useRecentShops.js";
43
+ import { useSavedProducts as Qe } from "./hooks/user/useSavedProducts.js";
44
+ import { useSavedProductsActions as qe } from "./hooks/user/useSavedProductsActions.js";
45
+ import { useFollowedShops as Ke } from "./hooks/user/useFollowedShops.js";
46
+ import { useFollowedShopsActions as Ze } from "./hooks/user/useFollowedShopsActions.js";
47
+ import { useCurrentUser as ro } from "./hooks/user/useCurrentUser.js";
48
+ import { useOrders as oo } from "./hooks/user/useOrders.js";
49
+ import { useBuyerAttributes as ao } from "./hooks/user/useBuyerAttributes.js";
50
+ import { useProductListActions as po } from "./hooks/product/useProductListActions.js";
51
+ import { useProductLists as mo } from "./hooks/product/useProductLists.js";
52
+ import { useProductList as so } from "./hooks/product/useProductList.js";
53
+ import { useProduct as xo } from "./hooks/product/useProduct.js";
54
+ import { useProducts as co } from "./hooks/product/useProducts.js";
55
+ import { useProductVariants as Co } from "./hooks/product/useProductVariants.js";
56
+ import { useProductMedia as Do } from "./hooks/product/useProductMedia.js";
57
+ import { useProductSearch as Po } from "./hooks/product/useProductSearch.js";
58
+ import { useRecommendedProducts as ho } from "./hooks/product/useRecommendedProducts.js";
59
+ import { usePopularProducts as wo } from "./hooks/product/usePopularProducts.js";
60
+ import { useCuratedProducts as Ro } from "./hooks/product/useCuratedProducts.js";
61
+ import { useAsyncStorage as Eo } from "./hooks/storage/useAsyncStorage.js";
62
+ import { useSecureStorage as ko } from "./hooks/storage/useSecureStorage.js";
63
+ import { useImageUpload as Mo } from "./hooks/storage/useImageUpload.js";
64
+ import { useShopNavigation as yo } from "./hooks/navigation/useShopNavigation.js";
65
+ import { useCloseMini as Uo } from "./hooks/navigation/useCloseMini.js";
66
+ import { useDeeplink as Ho } from "./hooks/navigation/useDeeplink.js";
67
+ import { useNavigateWithTransition as Vo } from "./hooks/navigation/useNavigateWithTransition.js";
68
+ import { useShop as _o } from "./hooks/shop/useShop.js";
69
+ import { useShopCartActions as Yo } from "./hooks/shop/useShopCartActions.js";
70
+ import { useRecommendedShops as jo } from "./hooks/shop/useRecommendedShops.js";
71
+ import { useCreateImageContent as Jo } from "./hooks/content/useCreateImageContent.js";
72
+ import { useErrorToast as Xo } from "./hooks/util/useErrorToast.js";
73
+ import { useErrorScreen as $o } from "./hooks/util/useErrorScreen.js";
74
+ import { useShare as et } from "./hooks/util/useShare.js";
75
+ import { useImagePicker as tt } from "./hooks/util/useImagePicker.js";
76
+ import { MiniEntityNotFoundError as it, MiniError as pt, MiniNetworkError as lt, formatError as mt } from "./utils/errors.js";
77
+ import { extractBrandTheme as st, formatReviewCount as ft, getFeaturedImages as xt, normalizeRating as ut } from "./utils/merchant-card.js";
78
+ import { parseUrl as dt } from "./utils/parseUrl.js";
79
+ import { fileToDataUri as Ct } from "./utils/imageToDataUri.js";
80
+ import { ContentCreateUserErrorCode as Dt } from "./shop-minis-platform/src/types/content.js";
81
+ import { Consent as Pt, ConsentStatus as Tt } from "./shop-minis-platform/src/types/permissions.js";
80
82
  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,
83
+ z as Accordion,
84
+ _ as AccordionContent,
85
+ W as AccordionItem,
86
+ Y as AccordionTrigger,
87
+ j as Alert,
88
+ q as AlertDescription,
89
+ X as AlertDialog,
90
+ Z as AlertDialogAction,
91
+ L as AlertDialogAtom,
92
+ $ as AlertDialogCancel,
93
+ rr as AlertDialogContent,
94
+ er as AlertDialogDescription,
95
+ or as AlertDialogFooter,
96
+ tr as AlertDialogHeader,
97
+ ar as AlertDialogOverlay,
98
+ ir as AlertDialogPortal,
99
+ pr as AlertDialogTitle,
100
+ lr as AlertDialogTrigger,
101
+ J as AlertTitle,
102
+ nr as Avatar,
103
+ sr as AvatarFallback,
104
+ fr as AvatarImage,
105
+ ur as Badge,
106
+ v as Button,
107
+ gr as Card,
108
+ Cr as CardAction,
109
+ Sr as CardContent,
110
+ Dr as CardDescription,
111
+ Ar as CardFooter,
112
+ Pr as CardHeader,
113
+ Tr as CardTitle,
114
+ Ir as Carousel,
115
+ wr as CarouselContent,
116
+ vr as CarouselItem,
117
+ Rr as CarouselNext,
118
+ br as CarouselPrevious,
119
+ Fr as Checkbox,
120
+ Pt as Consent,
121
+ Tt as ConsentStatus,
122
+ Dt as ContentCreateUserErrorCode,
123
+ A as ContentWrapper,
120
124
  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,
125
+ Br as Dialog,
126
+ Mr as DialogClose,
127
+ Nr as DialogContent,
128
+ yr as DialogDescription,
129
+ Lr as DialogFooter,
130
+ Ur as DialogHeader,
131
+ Gr as DialogOverlay,
132
+ Hr as DialogPortal,
133
+ Or as DialogTitle,
134
+ Vr as DialogTrigger,
135
+ _r as Drawer,
136
+ Wr as DrawerClose,
137
+ Yr as DrawerContent,
138
+ Qr as DrawerDescription,
139
+ jr as DrawerFooter,
140
+ qr as DrawerHeader,
141
+ Jr as DrawerOverlay,
142
+ Kr as DrawerPortal,
143
+ Xr as DrawerTitle,
144
+ Zr as DrawerTrigger,
145
+ b as FavoriteButton,
146
+ F as IconButton,
147
+ re as Input,
148
+ oe as Label,
149
+ G as List,
146
150
  f as MerchantCard,
147
- u as MerchantCardPrimitive,
151
+ x as MerchantCardPrimitive,
148
152
  g as MerchantCardSkeleton,
149
- tt as MiniEntityNotFoundError,
150
- at as MiniError,
151
- it as MiniNetworkError,
153
+ it as MiniEntityNotFoundError,
154
+ pt as MiniError,
155
+ lt as MiniNetworkError,
152
156
  i as MinisContainer,
153
157
  t as NAVIGATION_TYPES,
154
- p as ProductCard,
158
+ l as ProductCard,
155
159
  c as ProductCardSkeleton,
156
- 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
160
+ n as ProductLink,
161
+ ae as Progress,
162
+ S as QuantitySelector,
163
+ pe as RadioGroup,
164
+ le as RadioGroupItem,
165
+ ne as ResizableHandle,
166
+ se as ResizablePanel,
167
+ fe as ResizablePanelGroup,
168
+ ue as ScrollArea,
169
+ ce as ScrollBar,
170
+ ge as Select,
171
+ Ce as SelectContent,
172
+ Se as SelectGroup,
173
+ De as SelectItem,
174
+ Ae as SelectLabel,
175
+ Pe as SelectScrollDownButton,
176
+ Te as SelectScrollUpButton,
177
+ he as SelectSeparator,
178
+ Ie as SelectTrigger,
179
+ we as SelectValue,
180
+ Re as Separator,
181
+ Ee as Sheet,
182
+ Fe as SheetClose,
183
+ ke as SheetContent,
184
+ Be as SheetDescription,
185
+ Me as SheetFooter,
186
+ Ne as SheetHeader,
187
+ ye as SheetTitle,
188
+ Le as SheetTrigger,
189
+ Oe as Skeleton,
190
+ B as ThumbhashImage,
191
+ Ge as Toaster,
192
+ N as Touchable,
193
+ T as TransitionContainer,
194
+ I as TransitionLink,
195
+ O as VideoPlayer,
196
+ cr as badgeVariants,
197
+ st as extractBrandTheme,
198
+ Ct as fileToDataUri,
199
+ mt as formatError,
200
+ ft as formatReviewCount,
201
+ xt as getFeaturedImages,
202
+ ut as normalizeRating,
203
+ dt as parseUrl,
204
+ Eo as useAsyncStorage,
205
+ ao as useBuyerAttributes,
206
+ Uo as useCloseMini,
207
+ Jo as useCreateImageContent,
208
+ Ro as useCuratedProducts,
209
+ ro as useCurrentUser,
210
+ Ho as useDeeplink,
211
+ $o as useErrorScreen,
212
+ Xo as useErrorToast,
213
+ Ke as useFollowedShops,
214
+ Ze as useFollowedShopsActions,
215
+ tt as useImagePicker,
216
+ Mo as useImageUpload,
217
+ Vo as useNavigateWithTransition,
218
+ oo as useOrders,
219
+ wo as usePopularProducts,
220
+ xo as useProduct,
221
+ so as useProductList,
222
+ po as useProductListActions,
223
+ mo as useProductLists,
224
+ Do as useProductMedia,
225
+ Po as useProductSearch,
226
+ Co as useProductVariants,
227
+ co as useProducts,
228
+ ze as useRecentProducts,
229
+ We as useRecentShops,
230
+ ho as useRecommendedProducts,
231
+ jo as useRecommendedShops,
232
+ Qe as useSavedProducts,
233
+ qe as useSavedProductsActions,
234
+ ko as useSecureStorage,
235
+ et as useShare,
236
+ _o as useShop,
237
+ Yo as useShopCartActions,
238
+ yo as useShopNavigation
235
239
  };
236
240
  //# 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)