@shopify/shop-minis-react 0.0.34 → 0.0.36
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/index2.js +4 -4
- package/dist/_virtual/index3.js +4 -4
- package/dist/components/atoms/alert-dialog.js.map +1 -1
- package/dist/components/atoms/icon-button.js +12 -12
- package/dist/components/atoms/icon-button.js.map +1 -1
- package/dist/components/atoms/text-input.js +22 -0
- package/dist/components/atoms/text-input.js.map +1 -0
- package/dist/components/commerce/merchant-card.js +1 -0
- package/dist/components/commerce/merchant-card.js.map +1 -1
- package/dist/components/ui/input.js +15 -9
- package/dist/components/ui/input.js.map +1 -1
- package/dist/hooks/util/useKeyboardAvoidingView.js +23 -0
- package/dist/hooks/util/useKeyboardAvoidingView.js.map +1 -0
- package/dist/hooks/util/useShare.js +7 -6
- package/dist/hooks/util/useShare.js.map +1 -1
- package/dist/index.js +228 -222
- package/dist/index.js.map +1 -1
- package/dist/mocks.js +17 -10
- package/dist/mocks.js.map +1 -1
- package/dist/shop-minis-platform/src/types/share.js +5 -0
- package/dist/shop-minis-platform/src/types/share.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/video.js@8.23.3/node_modules/video.js/dist/video.es.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/image.js +5 -4
- package/dist/utils/image.js.map +1 -1
- package/package.json +21 -4
- package/src/components/atoms/alert-dialog.test.tsx +67 -0
- package/src/components/atoms/alert-dialog.tsx +13 -11
- package/src/components/atoms/favorite-button.test.tsx +56 -0
- package/src/components/atoms/icon-button.tsx +1 -1
- package/src/components/atoms/image.test.tsx +108 -0
- package/src/components/atoms/product-variant-price.test.tsx +128 -0
- package/src/components/atoms/text-input.test.tsx +104 -0
- package/src/components/atoms/text-input.tsx +31 -0
- package/src/components/commerce/merchant-card.test.tsx +261 -0
- package/src/components/commerce/merchant-card.tsx +2 -0
- package/src/components/commerce/product-card.test.tsx +364 -0
- package/src/components/commerce/product-link.test.tsx +483 -0
- package/src/components/commerce/quantity-selector.test.tsx +382 -0
- package/src/components/commerce/search.test.tsx +487 -0
- package/src/components/content/image-content-wrapper.test.tsx +92 -0
- package/src/components/index.ts +1 -0
- package/src/components/navigation/transition-link.test.tsx +155 -0
- package/src/components/ui/input.test.tsx +21 -0
- package/src/components/ui/input.tsx +10 -1
- package/src/hooks/content/useCreateImageContent.test.ts +352 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/navigation/useNavigateWithTransition.test.ts +371 -0
- package/src/hooks/navigation/useViewTransitions.test.ts +469 -0
- package/src/hooks/product/useProductSearch.test.ts +470 -0
- package/src/hooks/storage/useAsyncStorage.test.ts +225 -0
- package/src/hooks/storage/useImageUpload.test.ts +322 -0
- package/src/hooks/util/useKeyboardAvoidingView.ts +37 -0
- package/src/hooks/util/useShare.ts +13 -3
- package/src/internal/useHandleAction.test.ts +265 -0
- package/src/internal/useShopActionsDataFetching.test.ts +465 -0
- package/src/mocks.ts +7 -1
- package/src/providers/ImagePickerProvider.test.tsx +467 -0
- package/src/stories/ProductCard.stories.tsx +2 -2
- package/src/stories/TextInput.stories.tsx +26 -0
- package/src/test-setup.ts +34 -0
- package/src/test-utils.tsx +167 -0
- package/src/utils/image.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1,168 +1,171 @@
|
|
|
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 n, ProductCardBadge as m, ProductCardContainer as l, ProductCardFavoriteButton as s, ProductCardImage as u, ProductCardImageContainer as f, ProductCardInfo as
|
|
3
|
+
import { ProductCard as n, ProductCardBadge as m, ProductCardContainer as l, ProductCardFavoriteButton as s, ProductCardImage as u, ProductCardImageContainer as f, ProductCardInfo as x, ProductCardPrice as c, ProductCardTitle as d } from "./components/commerce/product-card.js";
|
|
4
4
|
import { ProductLink as g } from "./components/commerce/product-link.js";
|
|
5
|
-
import { MerchantCard as D, MerchantCardContainer as
|
|
5
|
+
import { MerchantCard as D, MerchantCardContainer as A, MerchantCardHeader as P, MerchantCardInfo as h, MerchantCardName as T, MerchantCardRating as I } from "./components/commerce/merchant-card.js";
|
|
6
6
|
import { ProductCardSkeleton as v } from "./components/commerce/product-card-skeleton.js";
|
|
7
7
|
import { MerchantCardSkeleton as M } from "./components/commerce/merchant-card-skeleton.js";
|
|
8
|
-
import { QuantitySelector as
|
|
9
|
-
import { Search as
|
|
8
|
+
import { QuantitySelector as b } from "./components/commerce/quantity-selector.js";
|
|
9
|
+
import { Search as B, SearchInput as E, SearchProvider as F, SearchResultsList as L } from "./components/commerce/search.js";
|
|
10
10
|
import { ImageContentWrapper as y } from "./components/content/image-content-wrapper.js";
|
|
11
11
|
import { MinisRouter as H } from "./components/navigation/minis-router.js";
|
|
12
|
-
import { TransitionLink as
|
|
12
|
+
import { TransitionLink as O } from "./components/navigation/transition-link.js";
|
|
13
13
|
import { Button as _ } from "./components/atoms/button.js";
|
|
14
14
|
import { FavoriteButton as Y } from "./components/atoms/favorite-button.js";
|
|
15
|
-
import { IconButton as
|
|
16
|
-
import { Image as
|
|
15
|
+
import { IconButton as Q } from "./components/atoms/icon-button.js";
|
|
16
|
+
import { Image as q } from "./components/atoms/image.js";
|
|
17
17
|
import { Touchable as X } from "./components/atoms/touchable.js";
|
|
18
18
|
import { LongPressDetector as $ } from "./components/atoms/long-press-detector.js";
|
|
19
19
|
import { AlertDialogAtom as er } from "./components/atoms/alert-dialog.js";
|
|
20
20
|
import { List as tr } from "./components/atoms/list.js";
|
|
21
21
|
import { VideoPlayer as ir } from "./components/atoms/video-player.js";
|
|
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 {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
22
|
+
import { TextInput as nr } from "./components/atoms/text-input.js";
|
|
23
|
+
import { Accordion as lr, AccordionContent as sr, AccordionItem as ur, AccordionTrigger as fr } from "./components/ui/accordion.js";
|
|
24
|
+
import { Alert as cr, AlertDescription as dr, AlertTitle as Cr } from "./components/ui/alert.js";
|
|
25
|
+
import { AlertDialog as Sr, AlertDialogAction as Dr, AlertDialogCancel as Ar, AlertDialogContent as Pr, AlertDialogDescription as hr, AlertDialogFooter as Tr, AlertDialogHeader as Ir, AlertDialogOverlay as Rr, AlertDialogPortal as vr, AlertDialogTitle as wr, AlertDialogTrigger as Mr } from "./components/ui/alert-dialog.js";
|
|
26
|
+
import { Avatar as br, AvatarFallback as kr, AvatarImage as Br } from "./components/ui/avatar.js";
|
|
27
|
+
import { Badge as Fr, badgeVariants as Lr } from "./components/ui/badge.js";
|
|
28
|
+
import { Card as yr, CardAction as Gr, CardContent as Hr, CardDescription as Vr, CardFooter as Or, CardHeader as zr, CardTitle as _r } from "./components/ui/card.js";
|
|
29
|
+
import { Carousel as Yr, CarouselContent as Kr, CarouselItem as Qr, CarouselNext as jr, CarouselPrevious as qr } from "./components/ui/carousel.js";
|
|
30
|
+
import { Checkbox as Xr } from "./components/ui/checkbox.js";
|
|
31
|
+
import { Dialog as $r, DialogClose as re, DialogContent as ee, DialogDescription as oe, DialogFooter as te, DialogHeader as ae, DialogOverlay as ie, DialogPortal as pe, DialogTitle as ne, DialogTrigger as me } from "./components/ui/dialog.js";
|
|
32
|
+
import { Drawer as se, DrawerClose as ue, DrawerContent as fe, DrawerDescription as xe, DrawerFooter as ce, DrawerHeader as de, DrawerOverlay as Ce, DrawerPortal as ge, DrawerTitle as Se, DrawerTrigger as De } from "./components/ui/drawer.js";
|
|
33
|
+
import { Input as Pe } from "./components/ui/input.js";
|
|
34
|
+
import { Label as Te } from "./components/ui/label.js";
|
|
35
|
+
import { Progress as Re } from "./components/ui/progress.js";
|
|
36
|
+
import { RadioGroup as we, RadioGroupItem as Me } from "./components/ui/radio-group.js";
|
|
37
|
+
import { ResizableHandle as be, ResizablePanel as ke, ResizablePanelGroup as Be } from "./components/ui/resizable.js";
|
|
38
|
+
import { ScrollArea as Fe, ScrollBar as Le } from "./components/ui/scroll-area.js";
|
|
39
|
+
import { Select as ye, SelectContent as Ge, SelectGroup as He, SelectItem as Ve, SelectLabel as Oe, SelectScrollDownButton as ze, SelectScrollUpButton as _e, SelectSeparator as We, SelectTrigger as Ye, SelectValue as Ke } from "./components/ui/select.js";
|
|
40
|
+
import { Separator as je } from "./components/ui/separator.js";
|
|
41
|
+
import { Sheet as Je, SheetClose as Xe, SheetContent as Ze, SheetDescription as $e, SheetFooter as ro, SheetHeader as eo, SheetTitle as oo, SheetTrigger as to } from "./components/ui/sheet.js";
|
|
42
|
+
import { Toaster as io } from "./components/ui/sonner.js";
|
|
43
|
+
import { Skeleton as no } from "./components/ui/skeleton.js";
|
|
44
|
+
import { useRecentProducts as lo } from "./hooks/user/useRecentProducts.js";
|
|
45
|
+
import { useRecentShops as uo } from "./hooks/user/useRecentShops.js";
|
|
46
|
+
import { useSavedProducts as xo } from "./hooks/user/useSavedProducts.js";
|
|
47
|
+
import { useSavedProductsActions as Co } from "./hooks/user/useSavedProductsActions.js";
|
|
48
|
+
import { useFollowedShops as So } from "./hooks/user/useFollowedShops.js";
|
|
49
|
+
import { useFollowedShopsActions as Ao } from "./hooks/user/useFollowedShopsActions.js";
|
|
50
|
+
import { useCurrentUser as ho } from "./hooks/user/useCurrentUser.js";
|
|
51
|
+
import { useOrders as Io } from "./hooks/user/useOrders.js";
|
|
52
|
+
import { useBuyerAttributes as vo } from "./hooks/user/useBuyerAttributes.js";
|
|
53
|
+
import { useGenerateUserToken as Mo } from "./hooks/user/useGenerateUserToken.js";
|
|
54
|
+
import { useProductListActions as bo } from "./hooks/product/useProductListActions.js";
|
|
55
|
+
import { useProductLists as Bo } from "./hooks/product/useProductLists.js";
|
|
56
|
+
import { useProductList as Fo } from "./hooks/product/useProductList.js";
|
|
57
|
+
import { useProduct as No } from "./hooks/product/useProduct.js";
|
|
58
|
+
import { useProducts as Go } from "./hooks/product/useProducts.js";
|
|
59
|
+
import { useProductVariants as Vo } from "./hooks/product/useProductVariants.js";
|
|
60
|
+
import { useProductMedia as zo } from "./hooks/product/useProductMedia.js";
|
|
61
|
+
import { useProductSearch as Wo } from "./hooks/product/useProductSearch.js";
|
|
62
|
+
import { useRecommendedProducts as Ko } from "./hooks/product/useRecommendedProducts.js";
|
|
63
|
+
import { usePopularProducts as jo } from "./hooks/product/usePopularProducts.js";
|
|
64
|
+
import { useCuratedProducts as Jo } from "./hooks/product/useCuratedProducts.js";
|
|
65
|
+
import { useAsyncStorage as Zo } from "./hooks/storage/useAsyncStorage.js";
|
|
66
|
+
import { useSecureStorage as rt } from "./hooks/storage/useSecureStorage.js";
|
|
67
|
+
import { useImageUpload as ot } from "./hooks/storage/useImageUpload.js";
|
|
68
|
+
import { useShopNavigation as at } from "./hooks/navigation/useShopNavigation.js";
|
|
69
|
+
import { useCloseMini as pt } from "./hooks/navigation/useCloseMini.js";
|
|
70
|
+
import { useDeeplink as mt } from "./hooks/navigation/useDeeplink.js";
|
|
71
|
+
import { useNavigateWithTransition as st } from "./hooks/navigation/useNavigateWithTransition.js";
|
|
72
|
+
import { useShop as ft } from "./hooks/shop/useShop.js";
|
|
73
|
+
import { useShopCartActions as ct } from "./hooks/shop/useShopCartActions.js";
|
|
74
|
+
import { useRecommendedShops as Ct } from "./hooks/shop/useRecommendedShops.js";
|
|
75
|
+
import { useCreateImageContent as St } from "./hooks/content/useCreateImageContent.js";
|
|
76
|
+
import { useErrorToast as At } from "./hooks/util/useErrorToast.js";
|
|
77
|
+
import { useErrorScreen as ht } from "./hooks/util/useErrorScreen.js";
|
|
78
|
+
import { useShare as It } from "./hooks/util/useShare.js";
|
|
79
|
+
import { useImagePicker as vt } from "./hooks/util/useImagePicker.js";
|
|
80
|
+
import { useKeyboardAvoidingView as Mt } from "./hooks/util/useKeyboardAvoidingView.js";
|
|
81
|
+
import { MiniEntityNotFoundError as bt, MiniError as kt, MiniNetworkError as Bt, formatError as Et } from "./utils/errors.js";
|
|
82
|
+
import { extractBrandTheme as Lt, formatReviewCount as Nt, getFeaturedImages as yt, normalizeRating as Gt } from "./utils/merchant-card.js";
|
|
83
|
+
import { parseUrl as Vt } from "./utils/parseUrl.js";
|
|
84
|
+
import { fileToDataUri as zt, getResizedImageUrl as _t, getThumbhashDataURL as Wt } from "./utils/image.js";
|
|
85
|
+
import { UserState as Kt, UserTokenGenerateUserErrorCode as Qt } from "./shop-minis-platform/src/types/user.js";
|
|
86
|
+
import { ContentCreateUserErrorCode as qt } from "./shop-minis-platform/src/types/content.js";
|
|
87
|
+
import { Consent as Xt, ConsentStatus as Zt } from "./shop-minis-platform/src/types/permissions.js";
|
|
88
|
+
import { Social as ra } from "./shop-minis-platform/src/types/share.js";
|
|
86
89
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
lr as Accordion,
|
|
91
|
+
sr as AccordionContent,
|
|
92
|
+
ur as AccordionItem,
|
|
93
|
+
fr as AccordionTrigger,
|
|
94
|
+
cr as Alert,
|
|
95
|
+
dr as AlertDescription,
|
|
96
|
+
Sr as AlertDialog,
|
|
97
|
+
Dr as AlertDialogAction,
|
|
95
98
|
er as AlertDialogAtom,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
99
|
+
Ar as AlertDialogCancel,
|
|
100
|
+
Pr as AlertDialogContent,
|
|
101
|
+
hr as AlertDialogDescription,
|
|
102
|
+
Tr as AlertDialogFooter,
|
|
103
|
+
Ir as AlertDialogHeader,
|
|
104
|
+
Rr as AlertDialogOverlay,
|
|
105
|
+
vr as AlertDialogPortal,
|
|
106
|
+
wr as AlertDialogTitle,
|
|
107
|
+
Mr as AlertDialogTrigger,
|
|
108
|
+
Cr as AlertTitle,
|
|
109
|
+
br as Avatar,
|
|
110
|
+
kr as AvatarFallback,
|
|
111
|
+
Br as AvatarImage,
|
|
112
|
+
Fr as Badge,
|
|
110
113
|
_ as Button,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
114
|
+
yr as Card,
|
|
115
|
+
Gr as CardAction,
|
|
116
|
+
Hr as CardContent,
|
|
117
|
+
Vr as CardDescription,
|
|
118
|
+
Or as CardFooter,
|
|
119
|
+
zr as CardHeader,
|
|
120
|
+
_r as CardTitle,
|
|
121
|
+
Yr as Carousel,
|
|
122
|
+
Kr as CarouselContent,
|
|
123
|
+
Qr as CarouselItem,
|
|
124
|
+
jr as CarouselNext,
|
|
125
|
+
qr as CarouselPrevious,
|
|
126
|
+
Xr as Checkbox,
|
|
127
|
+
Xt as Consent,
|
|
128
|
+
Zt as ConsentStatus,
|
|
129
|
+
qt as ContentCreateUserErrorCode,
|
|
127
130
|
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
|
-
|
|
131
|
+
$r as Dialog,
|
|
132
|
+
re as DialogClose,
|
|
133
|
+
ee as DialogContent,
|
|
134
|
+
oe as DialogDescription,
|
|
135
|
+
te as DialogFooter,
|
|
136
|
+
ae as DialogHeader,
|
|
137
|
+
ie as DialogOverlay,
|
|
138
|
+
pe as DialogPortal,
|
|
139
|
+
ne as DialogTitle,
|
|
140
|
+
me as DialogTrigger,
|
|
141
|
+
se as Drawer,
|
|
142
|
+
ue as DrawerClose,
|
|
143
|
+
fe as DrawerContent,
|
|
144
|
+
xe as DrawerDescription,
|
|
145
|
+
ce as DrawerFooter,
|
|
146
|
+
de as DrawerHeader,
|
|
147
|
+
Ce as DrawerOverlay,
|
|
148
|
+
ge as DrawerPortal,
|
|
149
|
+
Se as DrawerTitle,
|
|
150
|
+
De as DrawerTrigger,
|
|
148
151
|
Y as FavoriteButton,
|
|
149
|
-
|
|
150
|
-
|
|
152
|
+
Q as IconButton,
|
|
153
|
+
q as Image,
|
|
151
154
|
y as ImageContentWrapper,
|
|
152
|
-
|
|
153
|
-
|
|
155
|
+
Pe as Input,
|
|
156
|
+
Te as Label,
|
|
154
157
|
tr as List,
|
|
155
158
|
$ as LongPressDetector,
|
|
156
159
|
D as MerchantCard,
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
A as MerchantCardContainer,
|
|
161
|
+
P as MerchantCardHeader,
|
|
159
162
|
h as MerchantCardInfo,
|
|
160
163
|
T as MerchantCardName,
|
|
161
164
|
I as MerchantCardRating,
|
|
162
165
|
M as MerchantCardSkeleton,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
bt as MiniEntityNotFoundError,
|
|
167
|
+
kt as MiniError,
|
|
168
|
+
Bt as MiniNetworkError,
|
|
166
169
|
i as MinisContainer,
|
|
167
170
|
H as MinisRouter,
|
|
168
171
|
t as NAVIGATION_TYPES,
|
|
@@ -172,95 +175,98 @@ export {
|
|
|
172
175
|
s as ProductCardFavoriteButton,
|
|
173
176
|
u as ProductCardImage,
|
|
174
177
|
f as ProductCardImageContainer,
|
|
175
|
-
|
|
176
|
-
|
|
178
|
+
x as ProductCardInfo,
|
|
179
|
+
c as ProductCardPrice,
|
|
177
180
|
v as ProductCardSkeleton,
|
|
178
181
|
d as ProductCardTitle,
|
|
179
182
|
g as ProductLink,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
183
|
+
Re as Progress,
|
|
184
|
+
b as QuantitySelector,
|
|
185
|
+
we as RadioGroup,
|
|
186
|
+
Me as RadioGroupItem,
|
|
187
|
+
be as ResizableHandle,
|
|
188
|
+
ke as ResizablePanel,
|
|
189
|
+
Be as ResizablePanelGroup,
|
|
190
|
+
Fe as ScrollArea,
|
|
191
|
+
Le as ScrollBar,
|
|
192
|
+
B as Search,
|
|
193
|
+
E as SearchInput,
|
|
194
|
+
F as SearchProvider,
|
|
192
195
|
L as SearchResultsList,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
196
|
+
ye as Select,
|
|
197
|
+
Ge as SelectContent,
|
|
198
|
+
He as SelectGroup,
|
|
199
|
+
Ve as SelectItem,
|
|
200
|
+
Oe as SelectLabel,
|
|
201
|
+
ze as SelectScrollDownButton,
|
|
202
|
+
_e as SelectScrollUpButton,
|
|
203
|
+
We as SelectSeparator,
|
|
204
|
+
Ye as SelectTrigger,
|
|
205
|
+
Ke as SelectValue,
|
|
206
|
+
je as Separator,
|
|
207
|
+
Je as Sheet,
|
|
208
|
+
Xe as SheetClose,
|
|
209
|
+
Ze as SheetContent,
|
|
210
|
+
$e as SheetDescription,
|
|
211
|
+
ro as SheetFooter,
|
|
212
|
+
eo as SheetHeader,
|
|
213
|
+
oo as SheetTitle,
|
|
214
|
+
to as SheetTrigger,
|
|
215
|
+
no as Skeleton,
|
|
216
|
+
ra as Social,
|
|
217
|
+
nr as TextInput,
|
|
218
|
+
io as Toaster,
|
|
214
219
|
X as Touchable,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
220
|
+
O as TransitionLink,
|
|
221
|
+
Kt as UserState,
|
|
222
|
+
Qt as UserTokenGenerateUserErrorCode,
|
|
218
223
|
ir as VideoPlayer,
|
|
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
|
-
|
|
251
|
-
zo as
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
lo as
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
ft as
|
|
264
|
-
|
|
224
|
+
Lr as badgeVariants,
|
|
225
|
+
Lt as extractBrandTheme,
|
|
226
|
+
zt as fileToDataUri,
|
|
227
|
+
Et as formatError,
|
|
228
|
+
Nt as formatReviewCount,
|
|
229
|
+
yt as getFeaturedImages,
|
|
230
|
+
_t as getResizedImageUrl,
|
|
231
|
+
Wt as getThumbhashDataURL,
|
|
232
|
+
Gt as normalizeRating,
|
|
233
|
+
Vt as parseUrl,
|
|
234
|
+
Zo as useAsyncStorage,
|
|
235
|
+
vo as useBuyerAttributes,
|
|
236
|
+
pt as useCloseMini,
|
|
237
|
+
St as useCreateImageContent,
|
|
238
|
+
Jo as useCuratedProducts,
|
|
239
|
+
ho as useCurrentUser,
|
|
240
|
+
mt as useDeeplink,
|
|
241
|
+
ht as useErrorScreen,
|
|
242
|
+
At as useErrorToast,
|
|
243
|
+
So as useFollowedShops,
|
|
244
|
+
Ao as useFollowedShopsActions,
|
|
245
|
+
Mo as useGenerateUserToken,
|
|
246
|
+
vt as useImagePicker,
|
|
247
|
+
ot as useImageUpload,
|
|
248
|
+
Mt as useKeyboardAvoidingView,
|
|
249
|
+
st as useNavigateWithTransition,
|
|
250
|
+
Io as useOrders,
|
|
251
|
+
jo as usePopularProducts,
|
|
252
|
+
No as useProduct,
|
|
253
|
+
Fo as useProductList,
|
|
254
|
+
bo as useProductListActions,
|
|
255
|
+
Bo as useProductLists,
|
|
256
|
+
zo as useProductMedia,
|
|
257
|
+
Wo as useProductSearch,
|
|
258
|
+
Vo as useProductVariants,
|
|
259
|
+
Go as useProducts,
|
|
260
|
+
lo as useRecentProducts,
|
|
261
|
+
uo as useRecentShops,
|
|
262
|
+
Ko as useRecommendedProducts,
|
|
263
|
+
Ct as useRecommendedShops,
|
|
264
|
+
xo as useSavedProducts,
|
|
265
|
+
Co as useSavedProductsActions,
|
|
266
|
+
rt as useSecureStorage,
|
|
267
|
+
It as useShare,
|
|
268
|
+
ft as useShop,
|
|
269
|
+
ct as useShopCartActions,
|
|
270
|
+
at as useShopNavigation
|
|
265
271
|
};
|
|
266
272
|
//# 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,10 +1,10 @@
|
|
|
1
1
|
import { UserState as p } from "./shop-minis-platform/src/types/user.js";
|
|
2
|
-
const e = (t, o, r = "99.99",
|
|
2
|
+
const e = (t, o, r = "99.99", d) => ({
|
|
3
3
|
id: t,
|
|
4
4
|
title: o,
|
|
5
5
|
price: { amount: r, currencyCode: "USD" },
|
|
6
|
-
...
|
|
7
|
-
compareAtPrice: { amount:
|
|
6
|
+
...d && {
|
|
7
|
+
compareAtPrice: { amount: d, currencyCode: "USD" }
|
|
8
8
|
},
|
|
9
9
|
reviewAnalytics: { averageRating: 4.5, reviewCount: 10 },
|
|
10
10
|
shop: i("shop1", "Mock Shop"),
|
|
@@ -40,7 +40,7 @@ const e = (t, o, r = "99.99", s) => ({
|
|
|
40
40
|
}, a = (t = !1) => ({
|
|
41
41
|
hasNextPage: t,
|
|
42
42
|
endCursor: t ? "cursor123" : null
|
|
43
|
-
}),
|
|
43
|
+
}), s = (t, o, r = []) => ({
|
|
44
44
|
id: t,
|
|
45
45
|
publicId: `public-${t}`,
|
|
46
46
|
name: o,
|
|
@@ -51,6 +51,8 @@ function l(t, o) {
|
|
|
51
51
|
}
|
|
52
52
|
function u() {
|
|
53
53
|
const t = {
|
|
54
|
+
translateContentUp: void 0,
|
|
55
|
+
translateContentDown: void 0,
|
|
54
56
|
followShop: !0,
|
|
55
57
|
unfollowShop: !1,
|
|
56
58
|
favorite: void 0,
|
|
@@ -124,20 +126,20 @@ function u() {
|
|
|
124
126
|
reportContentImpression: void 0,
|
|
125
127
|
getProductLists: {
|
|
126
128
|
data: [
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
s("list-1", "Wishlist"),
|
|
130
|
+
s("list-2", "Favorites")
|
|
129
131
|
],
|
|
130
132
|
pageInfo: a()
|
|
131
133
|
},
|
|
132
134
|
getProductList: {
|
|
133
|
-
data:
|
|
135
|
+
data: s("list-1", "Wishlist", [
|
|
134
136
|
e("prod-1", "Sample Product")
|
|
135
137
|
]),
|
|
136
138
|
pageInfo: a()
|
|
137
139
|
},
|
|
138
|
-
addProductList:
|
|
140
|
+
addProductList: s("list-3", "New List"),
|
|
139
141
|
removeProductList: void 0,
|
|
140
|
-
renameProductList:
|
|
142
|
+
renameProductList: s("list-1", "Updated Wishlist"),
|
|
141
143
|
addProductListItem: void 0,
|
|
142
144
|
removeProductListItem: void 0,
|
|
143
145
|
getRecommendedProducts: {
|
|
@@ -215,6 +217,10 @@ function u() {
|
|
|
215
217
|
message: "Shared!",
|
|
216
218
|
success: !0
|
|
217
219
|
},
|
|
220
|
+
shareSingle: {
|
|
221
|
+
message: "Shared!",
|
|
222
|
+
success: !0
|
|
223
|
+
},
|
|
218
224
|
getCuratedProducts: {
|
|
219
225
|
data: [
|
|
220
226
|
e("cur-1", "Curated Product 1", "79.99"),
|
|
@@ -329,6 +335,7 @@ const m = () => {
|
|
|
329
335
|
export {
|
|
330
336
|
e as createProduct,
|
|
331
337
|
i as createShop,
|
|
332
|
-
h as injectMocks
|
|
338
|
+
h as injectMocks,
|
|
339
|
+
u as makeMockActions
|
|
333
340
|
};
|
|
334
341
|
//# sourceMappingURL=mocks.js.map
|