@shopify/shop-minis-react 0.0.31 → 0.0.32

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.
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","sources":["../../../src/components/ui/badge.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport {cva, type VariantProps} from 'class-variance-authority'\nimport {Slot as SlotPrimitive} from 'radix-ui'\n\nimport {cn} from '../../lib/utils'\n\nconst badgeVariants = cva(\n 'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden',\n {\n variants: {\n variant: {\n default:\n 'border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90',\n secondary:\n 'border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90',\n destructive:\n 'border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',\n outline:\n 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n)\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<'span'> &\n VariantProps<typeof badgeVariants> & {asChild?: boolean}) {\n const Comp = asChild ? SlotPrimitive.Slot : 'span'\n\n return (\n <Comp\n data-slot=\"badge\"\n className={cn(badgeVariants({variant}), className)}\n {...props}\n />\n )\n}\n\nexport {Badge, badgeVariants}\n"],"names":["badgeVariants","cva","Badge","className","variant","asChild","props","jsx","SlotPrimitive.Slot","cn"],"mappings":";;;;AAOA,MAAMA,IAAgBC;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,MAAA;AAAA,IAEN;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAEA,SAASC,EAAM;AAAA,EACb,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,GAAGC;AACL,GAC4D;AAIxD,SAAA,gBAAAC;AAAA,IAHWF,IAAUG,IAAqB;AAAA,IAGzC;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,EAAGT,EAAc,EAAC,SAAAI,EAAQ,CAAA,GAAGD,CAAS;AAAA,MAChD,GAAGG;AAAA,IAAA;AAAA,EACN;AAEJ;"}
1
+ {"version":3,"file":"badge.js","sources":["../../../src/components/ui/badge.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport {cva, type VariantProps} from 'class-variance-authority'\nimport {Slot as SlotPrimitive} from 'radix-ui'\n\nimport {cn} from '../../lib/utils'\n\nconst badgeVariants = cva(\n 'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none transition-[color,box-shadow] overflow-hidden',\n {\n variants: {\n variant: {\n primary: 'border-transparent bg-primary text-primary-foreground',\n secondary: 'border-transparent bg-secondary text-secondary-foreground',\n destructive:\n 'border-transparent bg-destructive text-white dark:bg-destructive/60',\n outline: 'bg-white text-foreground',\n none: '', // Allows custom classes\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n }\n)\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<'span'> &\n VariantProps<typeof badgeVariants> & {asChild?: boolean}) {\n const Comp = asChild ? SlotPrimitive.Slot : 'span'\n\n return (\n <Comp\n data-slot=\"badge\"\n className={cn(badgeVariants({variant}), className)}\n {...props}\n />\n )\n}\n\nexport {Badge, badgeVariants}\n"],"names":["badgeVariants","cva","Badge","className","variant","asChild","props","jsx","SlotPrimitive.Slot","cn"],"mappings":";;;;AAOA,MAAMA,IAAgBC;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,WAAW;AAAA,QACX,aACE;AAAA,QACF,SAAS;AAAA,QACT,MAAM;AAAA;AAAA,MAAA;AAAA,IAEV;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAEA,SAASC,EAAM;AAAA,EACb,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,GAAGC;AACL,GAC4D;AAIxD,SAAA,gBAAAC;AAAA,IAHWF,IAAUG,IAAqB;AAAA,IAGzC;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,EAAGT,EAAc,EAAC,SAAAI,EAAQ,CAAA,GAAGD,CAAS;AAAA,MAChD,GAAGG;AAAA,IAAA;AAAA,EACN;AAEJ;"}
package/dist/index.js CHANGED
@@ -1,252 +1,260 @@
1
1
  import { DATA_NAVIGATION_TYPE_ATTRIBUTE as o, NAVIGATION_TYPES as t } from "./types/index.js";
2
- import { MinisContainer as p } from "./components/MinisContainer.js";
3
- import { ProductCard as m } from "./components/commerce/product-card.js";
4
- import { ProductLink as s } from "./components/commerce/product-link.js";
5
- import { MerchantCard as f, MerchantCardPrimitive as x } from "./components/commerce/merchant-card.js";
6
- import { ProductCardSkeleton as c } from "./components/commerce/product-card-skeleton.js";
7
- import { MerchantCardSkeleton as g } from "./components/commerce/merchant-card-skeleton.js";
8
- import { QuantitySelector as C } from "./components/commerce/quantity-selector.js";
9
- import { Search as A, SearchInput as P, SearchProvider as h, SearchResultsList as T } from "./components/commerce/search.js";
10
- import { ImageContentWrapper as v } from "./components/content/image-content-wrapper.js";
11
- import { MinisRouter as R } from "./components/navigation/minis-router.js";
12
- import { TransitionLink as E } from "./components/navigation/transition-link.js";
13
- import { Button as F } from "./components/atoms/button.js";
14
- import { FavoriteButton as B } from "./components/atoms/favorite-button.js";
15
- import { IconButton as M } from "./components/atoms/icon-button.js";
16
- import { ThumbhashImage as y } from "./components/atoms/thumbhash-image.js";
17
- import { Touchable as H } from "./components/atoms/touchable.js";
18
- import { LongPressDetector as V } from "./components/atoms/long-press-detector.js";
19
- import { AlertDialogAtom as _ } from "./components/atoms/alert-dialog.js";
20
- import { List as Y } from "./components/atoms/list.js";
21
- import { VideoPlayer as j } from "./components/atoms/video-player.js";
22
- import { Accordion as J, AccordionContent as K, AccordionItem as X, AccordionTrigger as Z } from "./components/ui/accordion.js";
23
- import { Alert as rr, AlertDescription as er, AlertTitle as or } from "./components/ui/alert.js";
24
- import { AlertDialog as ar, AlertDialogAction as pr, AlertDialogCancel as ir, AlertDialogContent as mr, AlertDialogDescription as lr, AlertDialogFooter as sr, AlertDialogHeader as nr, AlertDialogOverlay as fr, AlertDialogPortal as xr, AlertDialogTitle as ur, AlertDialogTrigger as cr } from "./components/ui/alert-dialog.js";
25
- import { Avatar as gr, AvatarFallback as Sr, AvatarImage as Cr } from "./components/ui/avatar.js";
26
- import { Badge as Ar, badgeVariants as Pr } from "./components/ui/badge.js";
27
- import { Card as Tr, CardAction as Ir, CardContent as vr, CardDescription as wr, CardFooter as Rr, CardHeader as kr, CardTitle as Er } from "./components/ui/card.js";
28
- import { Carousel as Fr, CarouselContent as Ur, CarouselItem as Br, CarouselNext as Lr, CarouselPrevious as Mr } from "./components/ui/carousel.js";
29
- import { Checkbox as yr } from "./components/ui/checkbox.js";
30
- import { Dialog as Hr, DialogClose as Or, DialogContent as Vr, DialogDescription as zr, DialogFooter as _r, DialogHeader as Wr, DialogOverlay as Yr, DialogPortal as Qr, DialogTitle as jr, DialogTrigger as qr } from "./components/ui/dialog.js";
31
- import { Drawer as Kr, DrawerClose as Xr, DrawerContent as Zr, DrawerDescription as $r, DrawerFooter as re, DrawerHeader as ee, DrawerOverlay as oe, DrawerPortal as te, DrawerTitle as ae, DrawerTrigger as pe } from "./components/ui/drawer.js";
32
- import { Input as me } from "./components/ui/input.js";
33
- import { Label as se } from "./components/ui/label.js";
34
- import { Progress as fe } from "./components/ui/progress.js";
35
- import { RadioGroup as ue, RadioGroupItem as ce } from "./components/ui/radio-group.js";
36
- import { ResizableHandle as ge, ResizablePanel as Se, ResizablePanelGroup as Ce } from "./components/ui/resizable.js";
37
- import { ScrollArea as Ae, ScrollBar as Pe } from "./components/ui/scroll-area.js";
38
- import { Select as Te, SelectContent as Ie, SelectGroup as ve, SelectItem as we, SelectLabel as Re, SelectScrollDownButton as ke, SelectScrollUpButton as Ee, SelectSeparator as be, SelectTrigger as Fe, SelectValue as Ue } from "./components/ui/select.js";
39
- import { Separator as Le } from "./components/ui/separator.js";
40
- import { Sheet as Ne, SheetClose as ye, SheetContent as Ge, SheetDescription as He, SheetFooter as Oe, SheetHeader as Ve, SheetTitle as ze, SheetTrigger as _e } from "./components/ui/sheet.js";
41
- import { Toaster as Ye } from "./components/ui/sonner.js";
42
- import { Skeleton as je } from "./components/ui/skeleton.js";
43
- import { useRecentProducts as Je } from "./hooks/user/useRecentProducts.js";
44
- import { useRecentShops as Xe } from "./hooks/user/useRecentShops.js";
45
- import { useSavedProducts as $e } from "./hooks/user/useSavedProducts.js";
46
- import { useSavedProductsActions as eo } from "./hooks/user/useSavedProductsActions.js";
47
- import { useFollowedShops as to } from "./hooks/user/useFollowedShops.js";
48
- import { useFollowedShopsActions as po } from "./hooks/user/useFollowedShopsActions.js";
49
- import { useCurrentUser as mo } from "./hooks/user/useCurrentUser.js";
50
- import { useOrders as so } from "./hooks/user/useOrders.js";
51
- import { useBuyerAttributes as fo } from "./hooks/user/useBuyerAttributes.js";
52
- import { useGenerateUserToken as uo } from "./hooks/user/useGenerateUserToken.js";
53
- import { useProductListActions as go } from "./hooks/product/useProductListActions.js";
54
- import { useProductLists as Co } from "./hooks/product/useProductLists.js";
55
- import { useProductList as Ao } from "./hooks/product/useProductList.js";
56
- import { useProduct as ho } from "./hooks/product/useProduct.js";
57
- import { useProducts as Io } from "./hooks/product/useProducts.js";
58
- import { useProductVariants as wo } from "./hooks/product/useProductVariants.js";
59
- import { useProductMedia as ko } from "./hooks/product/useProductMedia.js";
60
- import { useProductSearch as bo } from "./hooks/product/useProductSearch.js";
61
- import { useRecommendedProducts as Uo } from "./hooks/product/useRecommendedProducts.js";
62
- import { usePopularProducts as Lo } from "./hooks/product/usePopularProducts.js";
63
- import { useCuratedProducts as No } from "./hooks/product/useCuratedProducts.js";
64
- import { useAsyncStorage as Go } from "./hooks/storage/useAsyncStorage.js";
65
- import { useSecureStorage as Oo } from "./hooks/storage/useSecureStorage.js";
66
- import { useImageUpload as zo } from "./hooks/storage/useImageUpload.js";
67
- import { useShopNavigation as Wo } from "./hooks/navigation/useShopNavigation.js";
68
- import { useCloseMini as Qo } from "./hooks/navigation/useCloseMini.js";
69
- import { useDeeplink as qo } from "./hooks/navigation/useDeeplink.js";
70
- import { useNavigateWithTransition as Ko } from "./hooks/navigation/useNavigateWithTransition.js";
71
- import { useShop as Zo } from "./hooks/shop/useShop.js";
72
- import { useShopCartActions as rt } from "./hooks/shop/useShopCartActions.js";
73
- import { useRecommendedShops as ot } from "./hooks/shop/useRecommendedShops.js";
74
- import { useCreateImageContent as at } from "./hooks/content/useCreateImageContent.js";
75
- import { useErrorToast as it } from "./hooks/util/useErrorToast.js";
76
- import { useErrorScreen as lt } from "./hooks/util/useErrorScreen.js";
77
- import { useShare as nt } from "./hooks/util/useShare.js";
78
- import { useImagePicker as xt } from "./hooks/util/useImagePicker.js";
79
- import { MiniEntityNotFoundError as ct, MiniError as dt, MiniNetworkError as gt, formatError as St } from "./utils/errors.js";
80
- import { extractBrandTheme as Dt, formatReviewCount as At, getFeaturedImages as Pt, normalizeRating as ht } from "./utils/merchant-card.js";
81
- import { parseUrl as It } from "./utils/parseUrl.js";
82
- import { fileToDataUri as wt } from "./utils/imageToDataUri.js";
83
- import { UserState as kt, UserTokenGenerateUserErrorCode as Et } from "./shop-minis-platform/src/types/user.js";
84
- import { ContentCreateUserErrorCode as Ft } from "./shop-minis-platform/src/types/content.js";
85
- import { Consent as Bt, ConsentStatus as Lt } from "./shop-minis-platform/src/types/permissions.js";
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";
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";
86
86
  export {
87
- J as Accordion,
88
- K as AccordionContent,
89
- X as AccordionItem,
90
- Z as AccordionTrigger,
91
- rr as Alert,
92
- er as AlertDescription,
93
- ar as AlertDialog,
94
- pr as AlertDialogAction,
95
- _ as AlertDialogAtom,
96
- ir as AlertDialogCancel,
97
- mr as AlertDialogContent,
98
- lr as AlertDialogDescription,
99
- sr as AlertDialogFooter,
100
- nr as AlertDialogHeader,
101
- fr as AlertDialogOverlay,
102
- xr as AlertDialogPortal,
103
- ur as AlertDialogTitle,
104
- cr as AlertDialogTrigger,
105
- or as AlertTitle,
106
- gr as Avatar,
107
- Sr as AvatarFallback,
108
- Cr as AvatarImage,
109
- Ar as Badge,
110
- F as Button,
111
- Tr as Card,
112
- Ir as CardAction,
113
- vr as CardContent,
114
- wr as CardDescription,
115
- Rr as CardFooter,
116
- kr as CardHeader,
117
- Er as CardTitle,
118
- Fr as Carousel,
119
- Ur as CarouselContent,
120
- Br as CarouselItem,
121
- Lr as CarouselNext,
122
- Mr as CarouselPrevious,
123
- yr as Checkbox,
124
- Bt as Consent,
125
- Lt as ConsentStatus,
126
- Ft as ContentCreateUserErrorCode,
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,
127
127
  o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
128
- Hr as Dialog,
129
- Or as DialogClose,
130
- Vr as DialogContent,
131
- zr as DialogDescription,
132
- _r as DialogFooter,
133
- Wr as DialogHeader,
134
- Yr as DialogOverlay,
135
- Qr as DialogPortal,
136
- jr as DialogTitle,
137
- qr as DialogTrigger,
138
- Kr as Drawer,
139
- Xr as DrawerClose,
140
- Zr as DrawerContent,
141
- $r as DrawerDescription,
142
- re as DrawerFooter,
143
- ee as DrawerHeader,
144
- oe as DrawerOverlay,
145
- te as DrawerPortal,
146
- ae as DrawerTitle,
147
- pe as DrawerTrigger,
148
- B as FavoriteButton,
149
- M as IconButton,
150
- v as ImageContentWrapper,
151
- me as Input,
152
- se as Label,
153
- Y as List,
154
- V as LongPressDetector,
155
- f as MerchantCard,
156
- x as MerchantCardPrimitive,
157
- g as MerchantCardSkeleton,
158
- ct as MiniEntityNotFoundError,
159
- dt as MiniError,
160
- gt as MiniNetworkError,
161
- p as MinisContainer,
162
- R as MinisRouter,
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,
155
+ D as MerchantCard,
156
+ P as MerchantCardPrimitive,
157
+ I as MerchantCardSkeleton,
158
+ ht as MiniEntityNotFoundError,
159
+ Tt as MiniError,
160
+ It as MiniNetworkError,
161
+ i as MinisContainer,
162
+ M as MinisRouter,
163
163
  t as NAVIGATION_TYPES,
164
164
  m as ProductCard,
165
- c as ProductCardSkeleton,
166
- s as ProductLink,
167
- fe as Progress,
168
- C as QuantitySelector,
169
- ue as RadioGroup,
170
- ce as RadioGroupItem,
171
- ge as ResizableHandle,
172
- Se as ResizablePanel,
173
- Ce as ResizablePanelGroup,
174
- Ae as ScrollArea,
175
- Pe as ScrollBar,
176
- A as Search,
177
- P as SearchInput,
178
- h as SearchProvider,
179
- T as SearchResultsList,
180
- Te as Select,
181
- Ie as SelectContent,
182
- ve as SelectGroup,
183
- we as SelectItem,
184
- Re as SelectLabel,
185
- ke as SelectScrollDownButton,
186
- Ee as SelectScrollUpButton,
187
- be as SelectSeparator,
188
- Fe as SelectTrigger,
189
- Ue as SelectValue,
190
- Le as Separator,
191
- Ne as Sheet,
192
- ye as SheetClose,
193
- Ge as SheetContent,
194
- He as SheetDescription,
195
- Oe as SheetFooter,
196
- Ve as SheetHeader,
197
- ze as SheetTitle,
198
- _e as SheetTrigger,
199
- je as Skeleton,
200
- y as ThumbhashImage,
201
- Ye as Toaster,
202
- H as Touchable,
203
- E as TransitionLink,
204
- kt as UserState,
205
- Et as UserTokenGenerateUserErrorCode,
206
- j as VideoPlayer,
207
- Pr as badgeVariants,
208
- Dt as extractBrandTheme,
209
- wt as fileToDataUri,
210
- St as formatError,
211
- At as formatReviewCount,
212
- Pt as getFeaturedImages,
213
- ht as normalizeRating,
214
- It as parseUrl,
215
- Go as useAsyncStorage,
216
- fo as useBuyerAttributes,
217
- Qo as useCloseMini,
218
- at as useCreateImageContent,
219
- No as useCuratedProducts,
220
- mo as useCurrentUser,
221
- qo as useDeeplink,
222
- lt as useErrorScreen,
223
- it as useErrorToast,
224
- to as useFollowedShops,
225
- po as useFollowedShopsActions,
226
- uo as useGenerateUserToken,
227
- xt as useImagePicker,
228
- zo as useImageUpload,
229
- Ko as useNavigateWithTransition,
230
- so as useOrders,
231
- Lo as usePopularProducts,
232
- ho as useProduct,
233
- Ao as useProductList,
234
- go as useProductListActions,
235
- Co as useProductLists,
236
- ko as useProductMedia,
237
- bo as useProductSearch,
238
- wo as useProductVariants,
239
- Io as useProducts,
240
- Je as useRecentProducts,
241
- Xe as useRecentShops,
242
- Uo as useRecommendedProducts,
243
- ot as useRecommendedShops,
244
- $e as useSavedProducts,
245
- eo as useSavedProductsActions,
246
- Oo as useSecureStorage,
247
- nt as useShare,
248
- Zo as useShop,
249
- rt as useShopCartActions,
250
- Wo as useShopNavigation
165
+ l as ProductCardBadge,
166
+ s as ProductCardContainer,
167
+ n as ProductCardFavoriteButton,
168
+ u as ProductCardImage,
169
+ f as ProductCardImageContainer,
170
+ x as ProductCardInfo,
171
+ c as ProductCardPrice,
172
+ h as ProductCardSkeleton,
173
+ d as ProductCardTitle,
174
+ 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
251
259
  };
252
260
  //# sourceMappingURL=index.js.map
package/dist/mocks.js CHANGED
@@ -319,8 +319,8 @@ function u() {
319
319
  const m = () => {
320
320
  const t = navigator.userAgent.toLowerCase(), o = /iphone|ipad|ipod/.test(t), r = /android/.test(t);
321
321
  return o || r;
322
- }, h = () => {
323
- m() || window.minisSDK || (window.minisSDK = u(), window.minisParams = {
322
+ }, h = ({ force: t } = {}) => {
323
+ m() && !t || window.minisSDK || (window.minisSDK = u(), window.minisParams = {
324
324
  handle: "mock-handle",
325
325
  initialUrl: "/mock-initial-url",
326
326
  platform: "web"