@shopify/shop-minis-react 0.0.25 → 0.0.27
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-skeleton.js +30 -0
- package/dist/components/commerce/product-link-skeleton.js.map +1 -0
- package/dist/components/commerce/product-link.js +73 -77
- package/dist/components/commerce/product-link.js.map +1 -1
- package/dist/components/commerce/search.js +144 -0
- package/dist/components/commerce/search.js.map +1 -0
- 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/components/ui/input.js +3 -3
- package/dist/components/ui/input.js.map +1 -1
- 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/hooks/product/useProductSearch.js +24 -23
- package/dist/hooks/product/useProductSearch.js.map +1 -1
- package/dist/index.js +230 -221
- 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/lucide-react@0.513.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js +16 -0
- package/dist/shop-minis-react/node_modules/.pnpm/lucide-react@0.513.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js.map +1 -0
- 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/dist/shop-minis-react.css +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-skeleton.tsx +30 -0
- package/src/components/commerce/product-link.tsx +8 -7
- package/src/components/commerce/search.tsx +264 -0
- package/src/components/content/content-monitor.tsx +23 -0
- package/src/components/content/content-wrapper.tsx +56 -0
- package/src/components/index.ts +3 -0
- package/src/components/ui/input.tsx +1 -1
- package/src/hooks/content/useContent.ts +50 -0
- package/src/hooks/content/useCreateImageContent.ts +20 -5
- package/src/hooks/product/useProductSearch.ts +10 -1
- package/src/mocks.ts +15 -0
- package/src/stories/ProductVariantPrice.stories.tsx +73 -0
- package/src/stories/Toaster.stories.tsx +2 -2
- package/src/styles/utilities.css +9 -0
package/dist/index.js
CHANGED
|
@@ -1,236 +1,245 @@
|
|
|
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
|
|
3
|
+
import { ProductCard as l } from "./components/commerce/product-card.js";
|
|
4
4
|
import { ProductLink as s } from "./components/commerce/product-link.js";
|
|
5
|
-
import { MerchantCard as f, MerchantCardPrimitive as
|
|
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 C } from "./components/commerce/quantity-selector.js";
|
|
9
|
+
import { Search as A, SearchInput as h, SearchProvider as P, SearchResultsList as T } from "./components/commerce/search.js";
|
|
10
|
+
import { ContentWrapper as v } from "./components/content/content-wrapper.js";
|
|
11
|
+
import { TransitionContainer as R } from "./components/navigation/transition-container.js";
|
|
12
|
+
import { TransitionLink as E } from "./components/navigation/transition-link.js";
|
|
13
|
+
import { Button as k } from "./components/atoms/button.js";
|
|
14
|
+
import { FavoriteButton as L } from "./components/atoms/favorite-button.js";
|
|
15
|
+
import { IconButton as N } from "./components/atoms/icon-button.js";
|
|
16
|
+
import { ThumbhashImage as U } from "./components/atoms/thumbhash-image.js";
|
|
17
|
+
import { Touchable as H } from "./components/atoms/touchable.js";
|
|
18
|
+
import { AlertDialogAtom as V } from "./components/atoms/alert-dialog.js";
|
|
19
|
+
import { List as _ } from "./components/atoms/list.js";
|
|
20
|
+
import { VideoPlayer as Y } from "./components/atoms/video-player.js";
|
|
21
|
+
import { Accordion as j, AccordionContent as q, AccordionItem as J, AccordionTrigger as K } from "./components/ui/accordion.js";
|
|
22
|
+
import { Alert as Z, AlertDescription as $, AlertTitle as rr } from "./components/ui/alert.js";
|
|
23
|
+
import { AlertDialog as or, AlertDialogAction as tr, AlertDialogCancel as ar, AlertDialogContent as ir, AlertDialogDescription as pr, AlertDialogFooter as lr, AlertDialogHeader as mr, AlertDialogOverlay as sr, AlertDialogPortal as nr, AlertDialogTitle as fr, AlertDialogTrigger as xr } from "./components/ui/alert-dialog.js";
|
|
24
|
+
import { Avatar as cr, AvatarFallback as dr, AvatarImage as gr } from "./components/ui/avatar.js";
|
|
25
|
+
import { Badge as Cr, badgeVariants as Dr } from "./components/ui/badge.js";
|
|
26
|
+
import { Card as hr, CardAction as Pr, CardContent as Tr, CardDescription as Ir, CardFooter as vr, CardHeader as wr, CardTitle as Rr } from "./components/ui/card.js";
|
|
27
|
+
import { Carousel as Er, CarouselContent as Fr, CarouselItem as kr, CarouselNext as Br, CarouselPrevious as Lr } from "./components/ui/carousel.js";
|
|
28
|
+
import { Checkbox as Nr } from "./components/ui/checkbox.js";
|
|
29
|
+
import { Dialog as Ur, DialogClose as Gr, DialogContent as Hr, DialogDescription as Or, DialogFooter as Vr, DialogHeader as zr, DialogOverlay as _r, DialogPortal as Wr, DialogTitle as Yr, DialogTrigger as Qr } from "./components/ui/dialog.js";
|
|
30
|
+
import { Drawer as qr, DrawerClose as Jr, DrawerContent as Kr, DrawerDescription as Xr, DrawerFooter as Zr, DrawerHeader as $r, DrawerOverlay as re, DrawerPortal as ee, DrawerTitle as oe, DrawerTrigger as te } from "./components/ui/drawer.js";
|
|
31
|
+
import { Input as ie } from "./components/ui/input.js";
|
|
32
|
+
import { Label as le } from "./components/ui/label.js";
|
|
33
|
+
import { Progress as se } from "./components/ui/progress.js";
|
|
34
|
+
import { RadioGroup as fe, RadioGroupItem as xe } from "./components/ui/radio-group.js";
|
|
35
|
+
import { ResizableHandle as ce, ResizablePanel as de, ResizablePanelGroup as ge } from "./components/ui/resizable.js";
|
|
36
|
+
import { ScrollArea as Ce, ScrollBar as De } from "./components/ui/scroll-area.js";
|
|
37
|
+
import { Select as he, SelectContent as Pe, SelectGroup as Te, SelectItem as Ie, SelectLabel as ve, SelectScrollDownButton as we, SelectScrollUpButton as Re, SelectSeparator as be, SelectTrigger as Ee, SelectValue as Fe } from "./components/ui/select.js";
|
|
38
|
+
import { Separator as Be } from "./components/ui/separator.js";
|
|
39
|
+
import { Sheet as Me, SheetClose as Ne, SheetContent as ye, SheetDescription as Ue, SheetFooter as Ge, SheetHeader as He, SheetTitle as Oe, SheetTrigger as Ve } from "./components/ui/sheet.js";
|
|
40
|
+
import { Toaster as _e } from "./components/ui/sonner.js";
|
|
41
|
+
import { Skeleton as Ye } from "./components/ui/skeleton.js";
|
|
42
|
+
import { useRecentProducts as je } from "./hooks/user/useRecentProducts.js";
|
|
43
|
+
import { useRecentShops as Je } from "./hooks/user/useRecentShops.js";
|
|
44
|
+
import { useSavedProducts as Xe } from "./hooks/user/useSavedProducts.js";
|
|
45
|
+
import { useSavedProductsActions as $e } from "./hooks/user/useSavedProductsActions.js";
|
|
46
|
+
import { useFollowedShops as eo } from "./hooks/user/useFollowedShops.js";
|
|
47
|
+
import { useFollowedShopsActions as to } from "./hooks/user/useFollowedShopsActions.js";
|
|
48
|
+
import { useCurrentUser as io } from "./hooks/user/useCurrentUser.js";
|
|
49
|
+
import { useOrders as lo } from "./hooks/user/useOrders.js";
|
|
50
|
+
import { useBuyerAttributes as so } from "./hooks/user/useBuyerAttributes.js";
|
|
51
|
+
import { useProductListActions as fo } from "./hooks/product/useProductListActions.js";
|
|
52
|
+
import { useProductLists as uo } from "./hooks/product/useProductLists.js";
|
|
53
|
+
import { useProductList as go } from "./hooks/product/useProductList.js";
|
|
54
|
+
import { useProduct as Co } from "./hooks/product/useProduct.js";
|
|
55
|
+
import { useProducts as Ao } from "./hooks/product/useProducts.js";
|
|
56
|
+
import { useProductVariants as Po } from "./hooks/product/useProductVariants.js";
|
|
57
|
+
import { useProductMedia as Io } from "./hooks/product/useProductMedia.js";
|
|
58
|
+
import { useProductSearch as wo } from "./hooks/product/useProductSearch.js";
|
|
59
|
+
import { useRecommendedProducts as bo } from "./hooks/product/useRecommendedProducts.js";
|
|
60
|
+
import { usePopularProducts as Fo } from "./hooks/product/usePopularProducts.js";
|
|
61
|
+
import { useCuratedProducts as Bo } from "./hooks/product/useCuratedProducts.js";
|
|
62
|
+
import { useAsyncStorage as Mo } from "./hooks/storage/useAsyncStorage.js";
|
|
63
|
+
import { useSecureStorage as yo } from "./hooks/storage/useSecureStorage.js";
|
|
64
|
+
import { useImageUpload as Go } from "./hooks/storage/useImageUpload.js";
|
|
65
|
+
import { useShopNavigation as Oo } from "./hooks/navigation/useShopNavigation.js";
|
|
66
|
+
import { useCloseMini as zo } from "./hooks/navigation/useCloseMini.js";
|
|
67
|
+
import { useDeeplink as Wo } from "./hooks/navigation/useDeeplink.js";
|
|
68
|
+
import { useNavigateWithTransition as Qo } from "./hooks/navigation/useNavigateWithTransition.js";
|
|
69
|
+
import { useShop as qo } from "./hooks/shop/useShop.js";
|
|
70
|
+
import { useShopCartActions as Ko } from "./hooks/shop/useShopCartActions.js";
|
|
71
|
+
import { useRecommendedShops as Zo } from "./hooks/shop/useRecommendedShops.js";
|
|
72
|
+
import { useCreateImageContent as rt } from "./hooks/content/useCreateImageContent.js";
|
|
73
|
+
import { useErrorToast as ot } from "./hooks/util/useErrorToast.js";
|
|
74
|
+
import { useErrorScreen as at } from "./hooks/util/useErrorScreen.js";
|
|
75
|
+
import { useShare as pt } from "./hooks/util/useShare.js";
|
|
76
|
+
import { useImagePicker as mt } from "./hooks/util/useImagePicker.js";
|
|
77
|
+
import { MiniEntityNotFoundError as nt, MiniError as ft, MiniNetworkError as xt, formatError as ut } from "./utils/errors.js";
|
|
78
|
+
import { extractBrandTheme as dt, formatReviewCount as gt, getFeaturedImages as St, normalizeRating as Ct } from "./utils/merchant-card.js";
|
|
79
|
+
import { parseUrl as At } from "./utils/parseUrl.js";
|
|
80
|
+
import { fileToDataUri as Pt } from "./utils/imageToDataUri.js";
|
|
81
|
+
import { ContentCreateUserErrorCode as It } from "./shop-minis-platform/src/types/content.js";
|
|
82
|
+
import { Consent as wt, ConsentStatus as Rt } from "./shop-minis-platform/src/types/permissions.js";
|
|
80
83
|
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
|
-
|
|
84
|
+
j as Accordion,
|
|
85
|
+
q as AccordionContent,
|
|
86
|
+
J as AccordionItem,
|
|
87
|
+
K as AccordionTrigger,
|
|
88
|
+
Z as Alert,
|
|
89
|
+
$ as AlertDescription,
|
|
90
|
+
or as AlertDialog,
|
|
91
|
+
tr as AlertDialogAction,
|
|
92
|
+
V as AlertDialogAtom,
|
|
93
|
+
ar as AlertDialogCancel,
|
|
94
|
+
ir as AlertDialogContent,
|
|
95
|
+
pr as AlertDialogDescription,
|
|
96
|
+
lr as AlertDialogFooter,
|
|
97
|
+
mr as AlertDialogHeader,
|
|
98
|
+
sr as AlertDialogOverlay,
|
|
99
|
+
nr as AlertDialogPortal,
|
|
100
|
+
fr as AlertDialogTitle,
|
|
101
|
+
xr as AlertDialogTrigger,
|
|
102
|
+
rr as AlertTitle,
|
|
103
|
+
cr as Avatar,
|
|
104
|
+
dr as AvatarFallback,
|
|
105
|
+
gr as AvatarImage,
|
|
106
|
+
Cr as Badge,
|
|
107
|
+
k as Button,
|
|
108
|
+
hr as Card,
|
|
109
|
+
Pr as CardAction,
|
|
110
|
+
Tr as CardContent,
|
|
111
|
+
Ir as CardDescription,
|
|
112
|
+
vr as CardFooter,
|
|
113
|
+
wr as CardHeader,
|
|
114
|
+
Rr as CardTitle,
|
|
115
|
+
Er as Carousel,
|
|
116
|
+
Fr as CarouselContent,
|
|
117
|
+
kr as CarouselItem,
|
|
118
|
+
Br as CarouselNext,
|
|
119
|
+
Lr as CarouselPrevious,
|
|
120
|
+
Nr as Checkbox,
|
|
121
|
+
wt as Consent,
|
|
122
|
+
Rt as ConsentStatus,
|
|
123
|
+
It as ContentCreateUserErrorCode,
|
|
124
|
+
v as ContentWrapper,
|
|
120
125
|
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
|
-
|
|
126
|
+
Ur as Dialog,
|
|
127
|
+
Gr as DialogClose,
|
|
128
|
+
Hr as DialogContent,
|
|
129
|
+
Or as DialogDescription,
|
|
130
|
+
Vr as DialogFooter,
|
|
131
|
+
zr as DialogHeader,
|
|
132
|
+
_r as DialogOverlay,
|
|
133
|
+
Wr as DialogPortal,
|
|
134
|
+
Yr as DialogTitle,
|
|
135
|
+
Qr as DialogTrigger,
|
|
136
|
+
qr as Drawer,
|
|
137
|
+
Jr as DrawerClose,
|
|
138
|
+
Kr as DrawerContent,
|
|
139
|
+
Xr as DrawerDescription,
|
|
140
|
+
Zr as DrawerFooter,
|
|
141
|
+
$r as DrawerHeader,
|
|
142
|
+
re as DrawerOverlay,
|
|
143
|
+
ee as DrawerPortal,
|
|
144
|
+
oe as DrawerTitle,
|
|
145
|
+
te as DrawerTrigger,
|
|
146
|
+
L as FavoriteButton,
|
|
147
|
+
N as IconButton,
|
|
148
|
+
ie as Input,
|
|
149
|
+
le as Label,
|
|
150
|
+
_ as List,
|
|
146
151
|
f as MerchantCard,
|
|
147
|
-
|
|
152
|
+
x as MerchantCardPrimitive,
|
|
148
153
|
g as MerchantCardSkeleton,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
154
|
+
nt as MiniEntityNotFoundError,
|
|
155
|
+
ft as MiniError,
|
|
156
|
+
xt as MiniNetworkError,
|
|
152
157
|
i as MinisContainer,
|
|
153
158
|
t as NAVIGATION_TYPES,
|
|
154
|
-
|
|
159
|
+
l as ProductCard,
|
|
155
160
|
c as ProductCardSkeleton,
|
|
156
161
|
s as ProductLink,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
Fe as
|
|
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
|
-
uo as
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
Po as
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
162
|
+
se as Progress,
|
|
163
|
+
C as QuantitySelector,
|
|
164
|
+
fe as RadioGroup,
|
|
165
|
+
xe as RadioGroupItem,
|
|
166
|
+
ce as ResizableHandle,
|
|
167
|
+
de as ResizablePanel,
|
|
168
|
+
ge as ResizablePanelGroup,
|
|
169
|
+
Ce as ScrollArea,
|
|
170
|
+
De as ScrollBar,
|
|
171
|
+
A as Search,
|
|
172
|
+
h as SearchInput,
|
|
173
|
+
P as SearchProvider,
|
|
174
|
+
T as SearchResultsList,
|
|
175
|
+
he as Select,
|
|
176
|
+
Pe as SelectContent,
|
|
177
|
+
Te as SelectGroup,
|
|
178
|
+
Ie as SelectItem,
|
|
179
|
+
ve as SelectLabel,
|
|
180
|
+
we as SelectScrollDownButton,
|
|
181
|
+
Re as SelectScrollUpButton,
|
|
182
|
+
be as SelectSeparator,
|
|
183
|
+
Ee as SelectTrigger,
|
|
184
|
+
Fe as SelectValue,
|
|
185
|
+
Be as Separator,
|
|
186
|
+
Me as Sheet,
|
|
187
|
+
Ne as SheetClose,
|
|
188
|
+
ye as SheetContent,
|
|
189
|
+
Ue as SheetDescription,
|
|
190
|
+
Ge as SheetFooter,
|
|
191
|
+
He as SheetHeader,
|
|
192
|
+
Oe as SheetTitle,
|
|
193
|
+
Ve as SheetTrigger,
|
|
194
|
+
Ye as Skeleton,
|
|
195
|
+
U as ThumbhashImage,
|
|
196
|
+
_e as Toaster,
|
|
197
|
+
H as Touchable,
|
|
198
|
+
R as TransitionContainer,
|
|
199
|
+
E as TransitionLink,
|
|
200
|
+
Y as VideoPlayer,
|
|
201
|
+
Dr as badgeVariants,
|
|
202
|
+
dt as extractBrandTheme,
|
|
203
|
+
Pt as fileToDataUri,
|
|
204
|
+
ut as formatError,
|
|
205
|
+
gt as formatReviewCount,
|
|
206
|
+
St as getFeaturedImages,
|
|
207
|
+
Ct as normalizeRating,
|
|
208
|
+
At as parseUrl,
|
|
209
|
+
Mo as useAsyncStorage,
|
|
210
|
+
so as useBuyerAttributes,
|
|
211
|
+
zo as useCloseMini,
|
|
212
|
+
rt as useCreateImageContent,
|
|
213
|
+
Bo as useCuratedProducts,
|
|
214
|
+
io as useCurrentUser,
|
|
215
|
+
Wo as useDeeplink,
|
|
216
|
+
at as useErrorScreen,
|
|
217
|
+
ot as useErrorToast,
|
|
218
|
+
eo as useFollowedShops,
|
|
219
|
+
to as useFollowedShopsActions,
|
|
220
|
+
mt as useImagePicker,
|
|
221
|
+
Go as useImageUpload,
|
|
222
|
+
Qo as useNavigateWithTransition,
|
|
223
|
+
lo as useOrders,
|
|
224
|
+
Fo as usePopularProducts,
|
|
225
|
+
Co as useProduct,
|
|
226
|
+
go as useProductList,
|
|
227
|
+
fo as useProductListActions,
|
|
228
|
+
uo as useProductLists,
|
|
229
|
+
Io as useProductMedia,
|
|
230
|
+
wo as useProductSearch,
|
|
231
|
+
Po as useProductVariants,
|
|
232
|
+
Ao as useProducts,
|
|
233
|
+
je as useRecentProducts,
|
|
234
|
+
Je as useRecentShops,
|
|
235
|
+
bo as useRecommendedProducts,
|
|
236
|
+
Zo as useRecommendedShops,
|
|
237
|
+
Xe as useSavedProducts,
|
|
238
|
+
$e as useSavedProductsActions,
|
|
239
|
+
yo as useSecureStorage,
|
|
240
|
+
pt as useShare,
|
|
241
|
+
qo as useShop,
|
|
242
|
+
Ko as useShopCartActions,
|
|
243
|
+
Oo as useShopNavigation
|
|
235
244
|
};
|
|
236
245
|
//# 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)
|