@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.
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/components/commerce/product-card.js +195 -199
- package/dist/components/commerce/product-card.js.map +1 -1
- package/dist/components/ui/badge.js +21 -19
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/index.js +253 -245
- package/dist/mocks.js +2 -2
- package/dist/mocks.js.map +1 -1
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/index.js +1 -1
- package/dist/shop-minis-react/node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js +1 -1
- package/package.json +1 -1
- package/src/components/commerce/product-card.tsx +211 -182
- package/src/components/ui/badge.tsx +7 -9
- package/src/mocks.ts +3 -3
|
@@ -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
|
|
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
|
|
3
|
-
import { ProductCard as m } from "./components/commerce/product-card.js";
|
|
4
|
-
import { ProductLink as
|
|
5
|
-
import { MerchantCard as
|
|
6
|
-
import { ProductCardSkeleton as
|
|
7
|
-
import { MerchantCardSkeleton as
|
|
8
|
-
import { QuantitySelector as
|
|
9
|
-
import { Search as
|
|
10
|
-
import { ImageContentWrapper as
|
|
11
|
-
import { MinisRouter as
|
|
12
|
-
import { TransitionLink as
|
|
13
|
-
import { Button as
|
|
14
|
-
import { FavoriteButton as
|
|
15
|
-
import { IconButton as
|
|
16
|
-
import { ThumbhashImage as
|
|
17
|
-
import { Touchable as
|
|
18
|
-
import { LongPressDetector as
|
|
19
|
-
import { AlertDialogAtom as
|
|
20
|
-
import { List as
|
|
21
|
-
import { VideoPlayer as
|
|
22
|
-
import { Accordion as
|
|
23
|
-
import { Alert as
|
|
24
|
-
import { AlertDialog as
|
|
25
|
-
import { Avatar as
|
|
26
|
-
import { Badge as
|
|
27
|
-
import { Card as
|
|
28
|
-
import { Carousel as
|
|
29
|
-
import { Checkbox as
|
|
30
|
-
import { Dialog as
|
|
31
|
-
import { Drawer as
|
|
32
|
-
import { Input as
|
|
33
|
-
import { Label as
|
|
34
|
-
import { Progress as
|
|
35
|
-
import { RadioGroup as
|
|
36
|
-
import { ResizableHandle as
|
|
37
|
-
import { ScrollArea as
|
|
38
|
-
import { Select as
|
|
39
|
-
import { Separator as
|
|
40
|
-
import { Sheet as
|
|
41
|
-
import { Toaster as
|
|
42
|
-
import { Skeleton as
|
|
43
|
-
import { useRecentProducts as
|
|
44
|
-
import { useRecentShops as
|
|
45
|
-
import { useSavedProducts as
|
|
46
|
-
import { useSavedProductsActions as
|
|
47
|
-
import { useFollowedShops as
|
|
48
|
-
import { useFollowedShopsActions as
|
|
49
|
-
import { useCurrentUser as
|
|
50
|
-
import { useOrders as
|
|
51
|
-
import { useBuyerAttributes as
|
|
52
|
-
import { useGenerateUserToken as
|
|
53
|
-
import { useProductListActions as
|
|
54
|
-
import { useProductLists as
|
|
55
|
-
import { useProductList as
|
|
56
|
-
import { useProduct as
|
|
57
|
-
import { useProducts as
|
|
58
|
-
import { useProductVariants as
|
|
59
|
-
import { useProductMedia as
|
|
60
|
-
import { useProductSearch as
|
|
61
|
-
import { useRecommendedProducts as
|
|
62
|
-
import { usePopularProducts as
|
|
63
|
-
import { useCuratedProducts as
|
|
64
|
-
import { useAsyncStorage as
|
|
65
|
-
import { useSecureStorage as
|
|
66
|
-
import { useImageUpload as
|
|
67
|
-
import { useShopNavigation as
|
|
68
|
-
import { useCloseMini as
|
|
69
|
-
import { useDeeplink as
|
|
70
|
-
import { useNavigateWithTransition as
|
|
71
|
-
import { useShop as
|
|
72
|
-
import { useShopCartActions as
|
|
73
|
-
import { useRecommendedShops as
|
|
74
|
-
import { useCreateImageContent as
|
|
75
|
-
import { useErrorToast as
|
|
76
|
-
import { useErrorScreen as
|
|
77
|
-
import { useShare as
|
|
78
|
-
import { useImagePicker as
|
|
79
|
-
import { MiniEntityNotFoundError as
|
|
80
|
-
import { extractBrandTheme as
|
|
81
|
-
import { parseUrl as
|
|
82
|
-
import { fileToDataUri as
|
|
83
|
-
import { UserState as
|
|
84
|
-
import { ContentCreateUserErrorCode as
|
|
85
|
-
import { Consent as
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
166
|
-
s as
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
Fe as
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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"
|