@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.
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index4.js +2 -3
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/_virtual/index7.js +3 -2
- package/dist/_virtual/index7.js.map +1 -1
- package/dist/_virtual/index9.js +2 -2
- package/dist/components/atoms/product-variant-price.js +61 -0
- package/dist/components/atoms/product-variant-price.js.map +1 -0
- package/dist/components/commerce/product-card.js +120 -153
- package/dist/components/commerce/product-card.js.map +1 -1
- package/dist/components/commerce/product-link.js +12 -16
- package/dist/components/commerce/product-link.js.map +1 -1
- package/dist/components/content/content-monitor.js +17 -0
- package/dist/components/content/content-monitor.js.map +1 -0
- package/dist/components/content/content-wrapper.js +17 -0
- package/dist/components/content/content-wrapper.js.map +1 -0
- package/dist/hooks/content/useContent.js +24 -0
- package/dist/hooks/content/useContent.js.map +1 -0
- package/dist/hooks/content/useCreateImageContent.js +21 -18
- package/dist/hooks/content/useCreateImageContent.js.map +1 -1
- package/dist/index.js +227 -223
- package/dist/index.js.map +1 -1
- package/dist/mocks.js +21 -6
- package/dist/mocks.js.map +1 -1
- package/dist/shop-minis-platform/src/types/content.js +5 -0
- package/dist/shop-minis-platform/src/types/content.js.map +1 -0
- 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
- 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/querystringify@2.2.0/node_modules/querystringify/index.js +1 -1
- 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
- package/package.json +5 -4
- package/src/components/atoms/product-variant-price.tsx +74 -0
- package/src/components/commerce/product-card.tsx +7 -56
- package/src/components/commerce/product-link.tsx +0 -2
- package/src/components/content/content-monitor.tsx +23 -0
- package/src/components/content/content-wrapper.tsx +56 -0
- package/src/components/index.ts +2 -0
- package/src/hooks/content/useContent.ts +50 -0
- package/src/hooks/content/useCreateImageContent.ts +20 -5
- package/src/mocks.ts +15 -0
- package/src/stories/ProductVariantPrice.stories.tsx +73 -0
- 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
|
|
4
|
-
import { ProductLink as
|
|
5
|
-
import { MerchantCard as f, MerchantCardPrimitive as
|
|
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
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
151
|
+
x as MerchantCardPrimitive,
|
|
148
152
|
g as MerchantCardSkeleton,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
it as MiniEntityNotFoundError,
|
|
154
|
+
pt as MiniError,
|
|
155
|
+
lt as MiniNetworkError,
|
|
152
156
|
i as MinisContainer,
|
|
153
157
|
t as NAVIGATION_TYPES,
|
|
154
|
-
|
|
158
|
+
l as ProductCard,
|
|
155
159
|
c as ProductCardSkeleton,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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
|
-
|
|
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",
|
|
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
|
-
...
|
|
6
|
-
compareAtPrice: { amount:
|
|
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,
|
|
18
|
-
url: `https://picsum.photos/400/400?random=${t}-${
|
|
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 ${
|
|
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)
|