@shopify/shop-minis-react 0.0.32 → 0.0.34

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 (50) hide show
  1. package/dist/_virtual/index2.js +4 -4
  2. package/dist/_virtual/index3.js +4 -4
  3. package/dist/_virtual/index4.js +2 -2
  4. package/dist/_virtual/index5.js +3 -2
  5. package/dist/_virtual/index5.js.map +1 -1
  6. package/dist/_virtual/index6.js +2 -2
  7. package/dist/_virtual/index7.js +2 -3
  8. package/dist/_virtual/index7.js.map +1 -1
  9. package/dist/_virtual/index8.js +2 -2
  10. package/dist/_virtual/index9.js +2 -2
  11. package/dist/components/atoms/image.js +52 -0
  12. package/dist/components/atoms/image.js.map +1 -0
  13. package/dist/components/commerce/merchant-card.js +188 -245
  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/hooks/content/useCreateImageContent.js +16 -22
  20. package/dist/hooks/content/useCreateImageContent.js.map +1 -1
  21. package/dist/hooks/storage/useImageUpload.js +36 -37
  22. package/dist/hooks/storage/useImageUpload.js.map +1 -1
  23. package/dist/index.js +252 -246
  24. package/dist/shop-minis-platform/src/types/content.js.map +1 -1
  25. 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
  26. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/index.js +1 -1
  27. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/index.js +1 -1
  28. package/dist/shop-minis-react/node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js +1 -1
  29. package/dist/shop-minis-react/node_modules/.pnpm/mpd-parser@1.3.1/node_modules/mpd-parser/dist/mpd-parser.es.js +1 -1
  30. package/dist/shop-minis-react/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.js +1 -1
  31. package/dist/shop-minis-react/node_modules/.pnpm/video.js@8.23.3/node_modules/video.js/dist/video.es.js +1 -1
  32. package/dist/utils/colors.js +1 -1
  33. package/dist/utils/image.js +45 -9
  34. package/dist/utils/image.js.map +1 -1
  35. package/package.json +2 -2
  36. package/src/components/atoms/{thumbhash-image.tsx → image.tsx} +14 -14
  37. package/src/components/commerce/merchant-card.tsx +224 -225
  38. package/src/components/commerce/product-card.tsx +2 -2
  39. package/src/components/content/image-content-wrapper.tsx +9 -2
  40. package/src/components/index.ts +1 -1
  41. package/src/hooks/content/useCreateImageContent.ts +1 -7
  42. package/src/hooks/storage/useImageUpload.ts +22 -20
  43. package/src/stories/MerchantCard.stories.tsx +0 -3
  44. package/src/utils/image.ts +72 -0
  45. package/src/utils/index.ts +1 -1
  46. package/dist/components/atoms/thumbhash-image.js +0 -54
  47. package/dist/components/atoms/thumbhash-image.js.map +0 -1
  48. package/dist/utils/imageToDataUri.js +0 -10
  49. package/dist/utils/imageToDataUri.js.map +0 -1
  50. package/src/utils/imageToDataUri.ts +0 -8
package/dist/index.js CHANGED
@@ -1,260 +1,266 @@
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 m, ProductCardBadge as l, ProductCardContainer as s, ProductCardFavoriteButton as n, ProductCardImage as u, ProductCardImageContainer as f, ProductCardInfo as x, ProductCardPrice as c, 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 c, ProductCardPrice as x, 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, MerchantCardPrimitive as P } from "./components/commerce/merchant-card.js";
6
- import { ProductCardSkeleton as h } from "./components/commerce/product-card-skeleton.js";
7
- import { MerchantCardSkeleton as I } from "./components/commerce/merchant-card-skeleton.js";
8
- import { QuantitySelector as w } from "./components/commerce/quantity-selector.js";
9
- import { Search as k, SearchInput as B, SearchProvider as E, SearchResultsList as F } from "./components/commerce/search.js";
10
- import { ImageContentWrapper as U } from "./components/content/image-content-wrapper.js";
11
- import { MinisRouter as M } from "./components/navigation/minis-router.js";
12
- import { TransitionLink as y } from "./components/navigation/transition-link.js";
13
- import { Button as H } from "./components/atoms/button.js";
14
- import { FavoriteButton as V } from "./components/atoms/favorite-button.js";
15
- import { IconButton as _ } from "./components/atoms/icon-button.js";
16
- import { ThumbhashImage as Y } from "./components/atoms/thumbhash-image.js";
17
- import { Touchable as j } from "./components/atoms/touchable.js";
18
- import { LongPressDetector as J } from "./components/atoms/long-press-detector.js";
19
- import { AlertDialogAtom as X } from "./components/atoms/alert-dialog.js";
20
- import { List as $ } from "./components/atoms/list.js";
21
- import { VideoPlayer as er } from "./components/atoms/video-player.js";
22
- import { Accordion as tr, AccordionContent as ar, AccordionItem as ir, AccordionTrigger as pr } from "./components/ui/accordion.js";
23
- import { Alert as lr, AlertDescription as sr, AlertTitle as nr } from "./components/ui/alert.js";
24
- import { AlertDialog as fr, AlertDialogAction as xr, AlertDialogCancel as cr, AlertDialogContent as dr, AlertDialogDescription as Cr, AlertDialogFooter as gr, AlertDialogHeader as Sr, AlertDialogOverlay as Dr, AlertDialogPortal as Pr, AlertDialogTitle as Ar, AlertDialogTrigger as hr } from "./components/ui/alert-dialog.js";
25
- import { Avatar as Ir, AvatarFallback as vr, AvatarImage as wr } from "./components/ui/avatar.js";
26
- import { Badge as kr, badgeVariants as Br } from "./components/ui/badge.js";
27
- import { Card as Fr, CardAction as br, CardContent as Ur, CardDescription as Lr, CardFooter as Mr, CardHeader as Nr, CardTitle as yr } from "./components/ui/card.js";
28
- import { Carousel as Hr, CarouselContent as Or, CarouselItem as Vr, CarouselNext as zr, CarouselPrevious as _r } from "./components/ui/carousel.js";
29
- import { Checkbox as Yr } from "./components/ui/checkbox.js";
30
- import { Dialog as jr, DialogClose as qr, DialogContent as Jr, DialogDescription as Kr, DialogFooter as Xr, DialogHeader as Zr, DialogOverlay as $r, DialogPortal as re, DialogTitle as ee, DialogTrigger as oe } from "./components/ui/dialog.js";
31
- import { Drawer as ae, DrawerClose as ie, DrawerContent as pe, DrawerDescription as me, DrawerFooter as le, DrawerHeader as se, DrawerOverlay as ne, DrawerPortal as ue, DrawerTitle as fe, DrawerTrigger as xe } from "./components/ui/drawer.js";
32
- import { Input as de } from "./components/ui/input.js";
33
- import { Label as ge } from "./components/ui/label.js";
34
- import { Progress as De } from "./components/ui/progress.js";
35
- import { RadioGroup as Ae, RadioGroupItem as he } from "./components/ui/radio-group.js";
36
- import { ResizableHandle as Ie, ResizablePanel as ve, ResizablePanelGroup as we } from "./components/ui/resizable.js";
37
- import { ScrollArea as ke, ScrollBar as Be } from "./components/ui/scroll-area.js";
38
- import { Select as Fe, SelectContent as be, SelectGroup as Ue, SelectItem as Le, SelectLabel as Me, SelectScrollDownButton as Ne, SelectScrollUpButton as ye, SelectSeparator as Ge, SelectTrigger as He, SelectValue as Oe } from "./components/ui/select.js";
39
- import { Separator as ze } from "./components/ui/separator.js";
40
- import { Sheet as We, SheetClose as Ye, SheetContent as Qe, SheetDescription as je, SheetFooter as qe, SheetHeader as Je, SheetTitle as Ke, SheetTrigger as Xe } from "./components/ui/sheet.js";
41
- import { Toaster as $e } from "./components/ui/sonner.js";
42
- import { Skeleton as eo } from "./components/ui/skeleton.js";
43
- import { useRecentProducts as to } from "./hooks/user/useRecentProducts.js";
44
- import { useRecentShops as io } from "./hooks/user/useRecentShops.js";
45
- import { useSavedProducts as mo } from "./hooks/user/useSavedProducts.js";
46
- import { useSavedProductsActions as so } from "./hooks/user/useSavedProductsActions.js";
47
- import { useFollowedShops as uo } from "./hooks/user/useFollowedShops.js";
48
- import { useFollowedShopsActions as xo } from "./hooks/user/useFollowedShopsActions.js";
49
- import { useCurrentUser as Co } from "./hooks/user/useCurrentUser.js";
50
- import { useOrders as So } from "./hooks/user/useOrders.js";
51
- import { useBuyerAttributes as Po } from "./hooks/user/useBuyerAttributes.js";
52
- import { useGenerateUserToken as ho } from "./hooks/user/useGenerateUserToken.js";
53
- import { useProductListActions as Io } from "./hooks/product/useProductListActions.js";
54
- import { useProductLists as wo } from "./hooks/product/useProductLists.js";
55
- import { useProductList as ko } from "./hooks/product/useProductList.js";
56
- import { useProduct as Eo } from "./hooks/product/useProduct.js";
57
- import { useProducts as bo } from "./hooks/product/useProducts.js";
58
- import { useProductVariants as Lo } from "./hooks/product/useProductVariants.js";
59
- import { useProductMedia as No } from "./hooks/product/useProductMedia.js";
60
- import { useProductSearch as Go } from "./hooks/product/useProductSearch.js";
61
- import { useRecommendedProducts as Oo } from "./hooks/product/useRecommendedProducts.js";
62
- import { usePopularProducts as zo } from "./hooks/product/usePopularProducts.js";
63
- import { useCuratedProducts as Wo } from "./hooks/product/useCuratedProducts.js";
64
- import { useAsyncStorage as Qo } from "./hooks/storage/useAsyncStorage.js";
65
- import { useSecureStorage as qo } from "./hooks/storage/useSecureStorage.js";
66
- import { useImageUpload as Ko } from "./hooks/storage/useImageUpload.js";
67
- import { useShopNavigation as Zo } from "./hooks/navigation/useShopNavigation.js";
68
- import { useCloseMini as rt } from "./hooks/navigation/useCloseMini.js";
69
- import { useDeeplink as ot } from "./hooks/navigation/useDeeplink.js";
70
- import { useNavigateWithTransition as at } from "./hooks/navigation/useNavigateWithTransition.js";
71
- import { useShop as pt } from "./hooks/shop/useShop.js";
72
- import { useShopCartActions as lt } from "./hooks/shop/useShopCartActions.js";
73
- import { useRecommendedShops as nt } from "./hooks/shop/useRecommendedShops.js";
74
- import { useCreateImageContent as ft } from "./hooks/content/useCreateImageContent.js";
75
- import { useErrorToast as ct } from "./hooks/util/useErrorToast.js";
76
- import { useErrorScreen as Ct } from "./hooks/util/useErrorScreen.js";
77
- import { useShare as St } from "./hooks/util/useShare.js";
78
- import { useImagePicker as Pt } from "./hooks/util/useImagePicker.js";
79
- import { MiniEntityNotFoundError as ht, MiniError as Tt, MiniNetworkError as It, formatError as vt } from "./utils/errors.js";
80
- import { extractBrandTheme as Rt, formatReviewCount as kt, getFeaturedImages as Bt, normalizeRating as Et } from "./utils/merchant-card.js";
81
- import { parseUrl as bt } from "./utils/parseUrl.js";
82
- import { fileToDataUri as Lt } from "./utils/imageToDataUri.js";
83
- import { UserState as Nt, UserTokenGenerateUserErrorCode as yt } from "./shop-minis-platform/src/types/user.js";
84
- import { ContentCreateUserErrorCode as Ht } from "./shop-minis-platform/src/types/content.js";
85
- import { Consent as Vt, ConsentStatus as zt } from "./shop-minis-platform/src/types/permissions.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 v } from "./components/commerce/product-card-skeleton.js";
7
+ import { MerchantCardSkeleton as M } from "./components/commerce/merchant-card-skeleton.js";
8
+ import { QuantitySelector as k } from "./components/commerce/quantity-selector.js";
9
+ import { Search as E, SearchInput as F, SearchProvider as b, SearchResultsList as L } from "./components/commerce/search.js";
10
+ import { ImageContentWrapper as y } from "./components/content/image-content-wrapper.js";
11
+ import { MinisRouter as H } from "./components/navigation/minis-router.js";
12
+ import { TransitionLink as V } from "./components/navigation/transition-link.js";
13
+ import { Button as _ } from "./components/atoms/button.js";
14
+ import { FavoriteButton as Y } from "./components/atoms/favorite-button.js";
15
+ import { IconButton as j } from "./components/atoms/icon-button.js";
16
+ import { Image as J } from "./components/atoms/image.js";
17
+ import { Touchable as X } from "./components/atoms/touchable.js";
18
+ import { LongPressDetector as $ } from "./components/atoms/long-press-detector.js";
19
+ import { AlertDialogAtom as er } from "./components/atoms/alert-dialog.js";
20
+ import { List as tr } from "./components/atoms/list.js";
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 Rr, AlertDialogTrigger as vr } from "./components/ui/alert-dialog.js";
25
+ import { Avatar as Mr, AvatarFallback as Ur, AvatarImage as kr } from "./components/ui/avatar.js";
26
+ import { Badge as Er, badgeVariants as Fr } 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 Re, RadioGroupItem as ve } from "./components/ui/radio-group.js";
36
+ import { ResizableHandle as Me, ResizablePanel as Ue, ResizablePanelGroup as ke } from "./components/ui/resizable.js";
37
+ import { ScrollArea as Ee, ScrollBar as Fe } 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 vo } from "./hooks/user/useGenerateUserToken.js";
53
+ import { useProductListActions as Mo } from "./hooks/product/useProductListActions.js";
54
+ import { useProductLists as ko } from "./hooks/product/useProductLists.js";
55
+ import { useProductList as Eo } from "./hooks/product/useProductList.js";
56
+ import { useProduct as bo } 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 vt, MiniError as wt, MiniNetworkError as Mt, formatError as Ut } from "./utils/errors.js";
80
+ import { extractBrandTheme as Bt, formatReviewCount as Et, getFeaturedImages as Ft, normalizeRating as bt } from "./utils/merchant-card.js";
81
+ import { parseUrl as Nt } from "./utils/parseUrl.js";
82
+ import { fileToDataUri as Gt, getResizedImageUrl as Ht, getThumbhashDataURL as Ot } from "./utils/image.js";
83
+ import { UserState as zt, UserTokenGenerateUserErrorCode as _t } from "./shop-minis-platform/src/types/user.js";
84
+ import { ContentCreateUserErrorCode as Yt } from "./shop-minis-platform/src/types/content.js";
85
+ import { Consent as jt, ConsentStatus as qt } from "./shop-minis-platform/src/types/permissions.js";
86
86
  export {
87
- tr as Accordion,
88
- ar as AccordionContent,
89
- ir as AccordionItem,
90
- pr as AccordionTrigger,
91
- lr as Alert,
92
- sr as AlertDescription,
93
- fr as AlertDialog,
94
- xr as AlertDialogAction,
95
- X as AlertDialogAtom,
96
- cr as AlertDialogCancel,
97
- dr as AlertDialogContent,
98
- Cr as AlertDialogDescription,
99
- gr as AlertDialogFooter,
100
- Sr as AlertDialogHeader,
101
- Dr as AlertDialogOverlay,
102
- Pr as AlertDialogPortal,
103
- Ar as AlertDialogTitle,
104
- hr as AlertDialogTrigger,
105
- nr as AlertTitle,
106
- Ir as Avatar,
107
- vr as AvatarFallback,
108
- wr as AvatarImage,
109
- kr as Badge,
110
- H as Button,
111
- Fr as Card,
112
- br as CardAction,
113
- Ur as CardContent,
114
- Lr as CardDescription,
115
- Mr as CardFooter,
116
- Nr as CardHeader,
117
- yr as CardTitle,
118
- Hr as Carousel,
119
- Or as CarouselContent,
120
- Vr as CarouselItem,
121
- zr as CarouselNext,
122
- _r as CarouselPrevious,
123
- Yr as Checkbox,
124
- Vt as Consent,
125
- zt as ConsentStatus,
126
- Ht as ContentCreateUserErrorCode,
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,
95
+ 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
+ Rr as AlertDialogTitle,
104
+ vr as AlertDialogTrigger,
105
+ xr as AlertTitle,
106
+ Mr as Avatar,
107
+ Ur as AvatarFallback,
108
+ kr as AvatarImage,
109
+ Er as Badge,
110
+ _ 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
+ jt as Consent,
125
+ qt as ConsentStatus,
126
+ Yt as ContentCreateUserErrorCode,
127
127
  o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
128
- jr as Dialog,
129
- qr as DialogClose,
130
- Jr as DialogContent,
131
- Kr as DialogDescription,
132
- Xr as DialogFooter,
133
- Zr as DialogHeader,
134
- $r as DialogOverlay,
135
- re as DialogPortal,
136
- ee as DialogTitle,
137
- oe as DialogTrigger,
138
- ae as Drawer,
139
- ie as DrawerClose,
140
- pe as DrawerContent,
141
- me as DrawerDescription,
142
- le as DrawerFooter,
143
- se as DrawerHeader,
144
- ne as DrawerOverlay,
145
- ue as DrawerPortal,
146
- fe as DrawerTitle,
147
- xe as DrawerTrigger,
148
- V as FavoriteButton,
149
- _ as IconButton,
150
- U as ImageContentWrapper,
151
- de as Input,
152
- ge as Label,
153
- $ as List,
154
- J as LongPressDetector,
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,
148
+ Y as FavoriteButton,
149
+ j as IconButton,
150
+ J as Image,
151
+ y as ImageContentWrapper,
152
+ De as Input,
153
+ Ae as Label,
154
+ tr as List,
155
+ $ as LongPressDetector,
155
156
  D as MerchantCard,
156
- P as MerchantCardPrimitive,
157
- I as MerchantCardSkeleton,
158
- ht as MiniEntityNotFoundError,
159
- Tt as MiniError,
160
- It as MiniNetworkError,
157
+ P as MerchantCardContainer,
158
+ A as MerchantCardHeader,
159
+ h as MerchantCardInfo,
160
+ T as MerchantCardName,
161
+ I as MerchantCardRating,
162
+ M as MerchantCardSkeleton,
163
+ vt as MiniEntityNotFoundError,
164
+ wt as MiniError,
165
+ Mt as MiniNetworkError,
161
166
  i as MinisContainer,
162
- M as MinisRouter,
167
+ H as MinisRouter,
163
168
  t as NAVIGATION_TYPES,
164
- m as ProductCard,
165
- l as ProductCardBadge,
166
- s as ProductCardContainer,
167
- n as ProductCardFavoriteButton,
169
+ n as ProductCard,
170
+ m as ProductCardBadge,
171
+ l as ProductCardContainer,
172
+ s as ProductCardFavoriteButton,
168
173
  u as ProductCardImage,
169
174
  f as ProductCardImageContainer,
170
- x as ProductCardInfo,
171
- c as ProductCardPrice,
172
- h as ProductCardSkeleton,
175
+ c as ProductCardInfo,
176
+ x as ProductCardPrice,
177
+ v as ProductCardSkeleton,
173
178
  d as ProductCardTitle,
174
179
  g as ProductLink,
175
- De as Progress,
176
- w as QuantitySelector,
177
- Ae as RadioGroup,
178
- he as RadioGroupItem,
179
- Ie as ResizableHandle,
180
- ve as ResizablePanel,
181
- we as ResizablePanelGroup,
182
- ke as ScrollArea,
183
- Be as ScrollBar,
184
- k as Search,
185
- B as SearchInput,
186
- E as SearchProvider,
187
- F as SearchResultsList,
188
- Fe as Select,
189
- be as SelectContent,
190
- Ue as SelectGroup,
191
- Le as SelectItem,
192
- Me as SelectLabel,
193
- Ne as SelectScrollDownButton,
194
- ye as SelectScrollUpButton,
195
- Ge as SelectSeparator,
196
- He as SelectTrigger,
197
- Oe as SelectValue,
198
- ze as Separator,
199
- We as Sheet,
200
- Ye as SheetClose,
201
- Qe as SheetContent,
202
- je as SheetDescription,
203
- qe as SheetFooter,
204
- Je as SheetHeader,
205
- Ke as SheetTitle,
206
- Xe as SheetTrigger,
207
- eo as Skeleton,
208
- Y as ThumbhashImage,
209
- $e as Toaster,
210
- j as Touchable,
211
- y as TransitionLink,
212
- Nt as UserState,
213
- yt as UserTokenGenerateUserErrorCode,
214
- er as VideoPlayer,
215
- Br as badgeVariants,
216
- Rt as extractBrandTheme,
217
- Lt as fileToDataUri,
218
- vt as formatError,
219
- kt as formatReviewCount,
220
- Bt as getFeaturedImages,
221
- Et as normalizeRating,
222
- bt as parseUrl,
223
- Qo as useAsyncStorage,
224
- Po as useBuyerAttributes,
225
- rt as useCloseMini,
226
- ft as useCreateImageContent,
227
- Wo as useCuratedProducts,
228
- Co as useCurrentUser,
229
- ot as useDeeplink,
230
- Ct as useErrorScreen,
231
- ct as useErrorToast,
232
- uo as useFollowedShops,
233
- xo as useFollowedShopsActions,
234
- ho as useGenerateUserToken,
235
- Pt as useImagePicker,
236
- Ko as useImageUpload,
237
- at as useNavigateWithTransition,
238
- So as useOrders,
239
- zo as usePopularProducts,
240
- Eo as useProduct,
241
- ko as useProductList,
242
- Io as useProductListActions,
243
- wo as useProductLists,
244
- No as useProductMedia,
245
- Go as useProductSearch,
246
- Lo as useProductVariants,
247
- bo as useProducts,
248
- to as useRecentProducts,
249
- io as useRecentShops,
250
- Oo as useRecommendedProducts,
251
- nt as useRecommendedShops,
252
- mo as useSavedProducts,
253
- so as useSavedProductsActions,
254
- qo as useSecureStorage,
255
- St as useShare,
256
- pt as useShop,
257
- lt as useShopCartActions,
258
- Zo as useShopNavigation
180
+ Te as Progress,
181
+ k as QuantitySelector,
182
+ Re as RadioGroup,
183
+ ve as RadioGroupItem,
184
+ Me as ResizableHandle,
185
+ Ue as ResizablePanel,
186
+ ke as ResizablePanelGroup,
187
+ Ee as ScrollArea,
188
+ Fe as ScrollBar,
189
+ E as Search,
190
+ F as SearchInput,
191
+ b as SearchProvider,
192
+ L as SearchResultsList,
193
+ Le as Select,
194
+ Ne as SelectContent,
195
+ ye as SelectGroup,
196
+ Ge as SelectItem,
197
+ He as SelectLabel,
198
+ Oe as SelectScrollDownButton,
199
+ Ve as SelectScrollUpButton,
200
+ ze as SelectSeparator,
201
+ _e as SelectTrigger,
202
+ We as SelectValue,
203
+ Qe as Separator,
204
+ qe as Sheet,
205
+ Je as SheetClose,
206
+ Ke as SheetContent,
207
+ Xe as SheetDescription,
208
+ Ze as SheetFooter,
209
+ $e as SheetHeader,
210
+ ro as SheetTitle,
211
+ eo as SheetTrigger,
212
+ io as Skeleton,
213
+ to as Toaster,
214
+ X as Touchable,
215
+ V as TransitionLink,
216
+ zt as UserState,
217
+ _t as UserTokenGenerateUserErrorCode,
218
+ ir as VideoPlayer,
219
+ Fr as badgeVariants,
220
+ Bt as extractBrandTheme,
221
+ Gt as fileToDataUri,
222
+ Ut as formatError,
223
+ Et as formatReviewCount,
224
+ Ft as getFeaturedImages,
225
+ Ht as getResizedImageUrl,
226
+ Ot as getThumbhashDataURL,
227
+ bt as normalizeRating,
228
+ Nt as parseUrl,
229
+ Ko as useAsyncStorage,
230
+ Io as useBuyerAttributes,
231
+ at as useCloseMini,
232
+ Ct as useCreateImageContent,
233
+ qo as useCuratedProducts,
234
+ Po as useCurrentUser,
235
+ pt as useDeeplink,
236
+ Pt as useErrorScreen,
237
+ St as useErrorToast,
238
+ Co as useFollowedShops,
239
+ So as useFollowedShopsActions,
240
+ vo as useGenerateUserToken,
241
+ It as useImagePicker,
242
+ rt as useImageUpload,
243
+ mt as useNavigateWithTransition,
244
+ ho as useOrders,
245
+ Qo as usePopularProducts,
246
+ bo as useProduct,
247
+ Eo as useProductList,
248
+ Mo as useProductListActions,
249
+ ko as useProductLists,
250
+ Oo as useProductMedia,
251
+ zo as useProductSearch,
252
+ Go as useProductVariants,
253
+ No as useProducts,
254
+ no as useRecentProducts,
255
+ lo as useRecentShops,
256
+ Wo as useRecommendedProducts,
257
+ xt as useRecommendedShops,
258
+ uo as useSavedProducts,
259
+ co as useSavedProductsActions,
260
+ Zo as useSecureStorage,
261
+ ht as useShare,
262
+ st as useShop,
263
+ ft as useShopCartActions,
264
+ ot as useShopNavigation
259
265
  };
260
266
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","sources":["../../../../../shop-minis-platform/src/types/content.ts"],"sourcesContent":["/* eslint-disable @shopify/typescript/prefer-pascal-case-enums */\nexport interface Image {\n url: string\n altText?: string | null\n height?: number | null\n width?: number | null\n /**\n * @deprecated This property will be removed in a future version\n */\n sensitive: boolean\n thumbhash?: string | null\n}\n\nexport interface ContentImage {\n id?: string | null\n url: string\n width?: number | null\n height?: number | null\n}\n\nexport interface ContentProduct {\n id: string\n title: string\n featuredImage?: ContentImage | null\n}\n\nexport type ContentVisibility = 'DISCOVERABLE' | 'LINKABLE'\n\nexport interface Content {\n publicId: string\n externalId?: string | null\n image: ContentImage\n title: string\n description?: string | null\n visibility: ContentVisibility[]\n shareableUrl?: string | null\n products?: ContentProduct[] | null\n}\n\nexport enum ContentCreateUserErrorCode {\n DUPLICATE_EXTERNAL_ID = 'DUPLICATE_EXTERNAL_ID',\n INELIGIBLE_PRODUCTS = 'INELIGIBLE_PRODUCTS',\n}\n\nexport interface ContentCreateUserErrors {\n code: ContentCreateUserErrorCode\n message: string\n}\n\nexport interface ContentIdentifierInput {\n externalId?: string | null\n publicId?: string | null\n}\n"],"names":["ContentCreateUserErrorCode"],"mappings":"AAuCY,IAAAA,sBAAAA,OACVA,EAAA,wBAAwB,yBACxBA,EAAA,sBAAsB,uBAFZA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"content.js","sources":["../../../../../shop-minis-platform/src/types/content.ts"],"sourcesContent":["/* eslint-disable @shopify/typescript/prefer-pascal-case-enums */\nexport interface ImageType {\n url: string\n altText?: string | null\n height?: number | null\n width?: number | null\n /**\n * @deprecated This property will be removed in a future version\n */\n sensitive: boolean\n thumbhash?: string | null\n}\n\nexport interface ContentImage {\n id?: string | null\n url: string\n width?: number | null\n height?: number | null\n thumbhash?: string | null\n altText?: string | null\n}\n\nexport interface ContentProduct {\n id: string\n title: string\n featuredImage?: ContentImage | null\n}\n\nexport type ContentVisibility = 'DISCOVERABLE' | 'LINKABLE'\n\nexport interface Content {\n publicId: string\n externalId?: string | null\n image: ContentImage\n title: string\n description?: string | null\n visibility: ContentVisibility[]\n shareableUrl?: string | null\n products?: ContentProduct[] | null\n}\n\nexport enum ContentCreateUserErrorCode {\n DUPLICATE_EXTERNAL_ID = 'DUPLICATE_EXTERNAL_ID',\n INELIGIBLE_PRODUCTS = 'INELIGIBLE_PRODUCTS',\n}\n\nexport interface ContentCreateUserErrors {\n code: ContentCreateUserErrorCode\n message: string\n}\n\nexport interface ContentIdentifierInput {\n externalId?: string | null\n publicId?: string | null\n}\n"],"names":["ContentCreateUserErrorCode"],"mappings":"AAyCY,IAAAA,sBAAAA,OACVA,EAAA,wBAAwB,yBACxBA,EAAA,sBAAsB,uBAFZA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,4 +1,4 @@
1
- import { s as r } from "../../../../../../../../_virtual/index7.js";
1
+ import { s as r } from "../../../../../../../../_virtual/index6.js";
2
2
  function s() {
3
3
  return r.useSyncExternalStore(
4
4
  e,
@@ -1,4 +1,4 @@
1
- import { __module as q } from "../../../../../../../../_virtual/index5.js";
1
+ import { __module as q } from "../../../../../../../../_virtual/index4.js";
2
2
  import { __require as F } from "../../../../../global@4.4.0/node_modules/global/window.js";
3
3
  import { __require as N } from "../../../../../@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/extends.js";
4
4
  import { __require as J } from "../../../../../is-function@1.0.2/node_modules/is-function/index.js";
@@ -1,4 +1,4 @@
1
- import { __exports as r } from "../../../../../../../../_virtual/index8.js";
1
+ import { __exports as r } from "../../../../../../../../_virtual/index9.js";
2
2
  import { __require as a } from "./dom.js";
3
3
  import { __require as o } from "./dom-parser.js";
4
4
  var i;
@@ -1,4 +1,4 @@
1
- import { __module as p } from "../../../../../../_virtual/index9.js";
1
+ import { __module as p } from "../../../../../../_virtual/index8.js";
2
2
  import { __require as F } from "../../../color-name@1.1.4/node_modules/color-name/index.js";
3
3
  import { __require as x } from "../../../simple-swizzle@0.2.2/node_modules/simple-swizzle/index.js";
4
4
  var M;
@@ -2,7 +2,7 @@ import L from "../../../../@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-ut
2
2
  import T from "../../../../../../../_virtual/window.js";
3
3
  import { forEachMediaGroup as Z } from "../../../../@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/media-groups.js";
4
4
  import J from "../../../../@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js";
5
- import { l as Q } from "../../../../../../../_virtual/index6.js";
5
+ import { l as Q } from "../../../../../../../_virtual/index5.js";
6
6
  /*! @name mpd-parser @version 1.3.1 @license Apache-2.0 */
7
7
  const w = (e) => !!e && typeof e == "object", E = (...e) => e.reduce((n, t) => (typeof t != "object" || Object.keys(t).forEach((r) => {
8
8
  Array.isArray(n[r]) && Array.isArray(t[r]) ? n[r] = n[r].concat(t[r]) : w(n[r]) && w(t[r]) ? n[r] = E(n[r], t[r]) : n[r] = t[r];
@@ -1,4 +1,4 @@
1
- import { __exports as i } from "../../../../../../_virtual/index4.js";
1
+ import { __exports as i } from "../../../../../../_virtual/index7.js";
2
2
  var c;
3
3
  function d() {
4
4
  if (c) return i;
@@ -1,6 +1,6 @@
1
1
  import S from "../../../../../../../_virtual/window.js";
2
2
  import B from "../../../../../../../_virtual/document.js";
3
- import il from "../../../../../../../_virtual/index2.js";
3
+ import il from "../../../../../../../_virtual/index3.js";
4
4
  import ao from "../../../../../../../_virtual/browser-index.js";
5
5
  import xe from "../../../../@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js";
6
6
  import Kc from "../../../../@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/resolve-url.js";
@@ -1,4 +1,4 @@
1
- import o from "../_virtual/index3.js";
1
+ import o from "../_virtual/index2.js";
2
2
  const a = (r) => o(r).darken(0.2).isDark();
3
3
  export {
4
4
  a as isDarkColor