@shopify/shop-minis-react 0.0.18 → 0.0.19
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 +2 -3
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.js +3 -2
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/components/atoms/alert-dialog.js +41 -0
- package/dist/components/atoms/alert-dialog.js.map +1 -0
- package/dist/components/atoms/thumbhash-image.js +54 -0
- package/dist/components/atoms/thumbhash-image.js.map +1 -0
- package/dist/components/commerce/merchant-card-skeleton.js +29 -0
- package/dist/components/commerce/merchant-card-skeleton.js.map +1 -0
- package/dist/components/commerce/merchant-card.js +28 -22
- package/dist/components/commerce/merchant-card.js.map +1 -1
- package/dist/components/commerce/product-card-skeleton.js +20 -0
- package/dist/components/commerce/product-card-skeleton.js.map +1 -0
- package/dist/components/commerce/product-card.js +105 -78
- package/dist/components/commerce/product-card.js.map +1 -1
- package/dist/components/navigation/transition-container.js +8 -0
- package/dist/components/navigation/transition-container.js.map +1 -0
- package/dist/components/navigation/transition-link.js +27 -0
- package/dist/components/navigation/transition-link.js.map +1 -0
- package/dist/components/ui/skeleton.js +16 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/hooks/navigation/useNavigateWithTransition.js +43 -0
- package/dist/hooks/navigation/useNavigateWithTransition.js.map +1 -0
- package/dist/hooks/navigation/useViewTransitions.js +45 -0
- package/dist/hooks/navigation/useViewTransitions.js.map +1 -0
- package/dist/index.js +215 -196
- package/dist/index.js.map +1 -1
- 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/js-base64@3.7.7/node_modules/js-base64/base64.js +21 -0
- package/dist/shop-minis-react/node_modules/.pnpm/js-base64@3.7.7/node_modules/js-base64/base64.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/react-router@7.7.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-router/dist/development/chunk-EF7DTUVF.js +1298 -0
- package/dist/shop-minis-react/node_modules/.pnpm/react-router@7.7.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-router/dist/development/chunk-EF7DTUVF.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/thumbhash@0.1.1/node_modules/thumbhash/thumbhash.js +145 -0
- package/dist/shop-minis-react/node_modules/.pnpm/thumbhash@0.1.1/node_modules/thumbhash/thumbhash.js.map +1 -0
- package/dist/types/index.js +10 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/image.js +15 -0
- package/dist/utils/image.js.map +1 -0
- package/package.json +13 -3
- package/src/components/atoms/alert-dialog.tsx +67 -0
- package/src/components/atoms/thumbhash-image.tsx +66 -0
- package/src/components/commerce/merchant-card-skeleton.tsx +31 -0
- package/src/components/commerce/merchant-card.tsx +5 -2
- package/src/components/commerce/product-card-skeleton.tsx +30 -0
- package/src/components/commerce/product-card.tsx +49 -8
- package/src/components/index.ts +8 -0
- package/src/components/navigation/transition-container.tsx +7 -0
- package/src/components/navigation/transition-link.tsx +48 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/navigation/useNavigateWithTransition.ts +62 -0
- package/src/hooks/navigation/useViewTransitions.ts +79 -0
- package/src/index.css +1 -0
- package/src/mocks.ts +8 -2
- package/src/stories/Accordion.stories.tsx +124 -0
- package/src/stories/Alert.stories.tsx +38 -0
- package/src/stories/AlertDialog.stories.tsx +48 -0
- package/src/stories/Avatar.stories.tsx +29 -0
- package/src/stories/Badge.stories.tsx +46 -0
- package/src/stories/Button.stories.tsx +81 -0
- package/src/stories/Card.stories.tsx +40 -0
- package/src/stories/Checkbox.stories.tsx +44 -0
- package/src/stories/FavoriteButton.stories.tsx +58 -0
- package/src/stories/IconButton.stories.tsx +68 -0
- package/src/stories/Input.stories.tsx +44 -0
- package/src/stories/Label.stories.tsx +19 -0
- package/src/stories/MerchantCard.stories.tsx +55 -0
- package/src/stories/ProductCard.stories.tsx +85 -0
- package/src/stories/ProductLink.stories.tsx +46 -0
- package/src/stories/Progress.stories.tsx +30 -0
- package/src/stories/RadioGroup.stories.tsx +51 -0
- package/src/stories/Select.stories.tsx +85 -0
- package/src/stories/Skeleton.stories.tsx +19 -0
- package/src/stories/Toaster.stories.tsx +46 -0
- package/src/stories/Touchable.stories.tsx +40 -0
- package/src/styles/animations.css +90 -0
- package/src/styles/globals.css +8 -0
- package/src/styles/theme.css +1 -1
- package/src/types/index.ts +7 -1
- package/src/utils/image.ts +18 -0
package/dist/index.js
CHANGED
|
@@ -1,199 +1,218 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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 {
|
|
1
|
+
import { DATA_NAVIGATION_TYPE_ATTRIBUTE as o, NAVIGATION_TYPES as t } from "./types/index.js";
|
|
2
|
+
import { MinisContainer as l } from "./components/MinisContainer.js";
|
|
3
|
+
import { ProductCard as p } from "./components/commerce/product-card.js";
|
|
4
|
+
import { ProductLink as m } from "./components/commerce/product-link.js";
|
|
5
|
+
import { MerchantCard as u, MerchantCardPrimitive as x } from "./components/commerce/merchant-card.js";
|
|
6
|
+
import { ProductCardSkeleton as c } from "./components/commerce/product-card-skeleton.js";
|
|
7
|
+
import { MerchantCardSkeleton as S } from "./components/commerce/merchant-card-skeleton.js";
|
|
8
|
+
import { TransitionContainer as D } from "./components/navigation/transition-container.js";
|
|
9
|
+
import { TransitionLink as C } from "./components/navigation/transition-link.js";
|
|
10
|
+
import { Button as T } from "./components/atoms/button.js";
|
|
11
|
+
import { FavoriteButton as I } from "./components/atoms/favorite-button.js";
|
|
12
|
+
import { IconButton as v } from "./components/atoms/icon-button.js";
|
|
13
|
+
import { ThumbhashImage as k } from "./components/atoms/thumbhash-image.js";
|
|
14
|
+
import { Touchable as F } from "./components/atoms/touchable.js";
|
|
15
|
+
import { AlertDialogAtom as M } from "./components/atoms/alert-dialog.js";
|
|
16
|
+
import { Accordion as B, AccordionContent as L, AccordionItem as y, AccordionTrigger as G } from "./components/ui/accordion.js";
|
|
17
|
+
import { Alert as O, AlertDescription as U, AlertTitle as V } from "./components/ui/alert.js";
|
|
18
|
+
import { AlertDialog as z, AlertDialogAction as Y, AlertDialogCancel as W, AlertDialogContent as j, AlertDialogDescription as q, AlertDialogFooter as J, AlertDialogHeader as K, AlertDialogOverlay as Q, AlertDialogPortal as X, AlertDialogTitle as Z, AlertDialogTrigger as $ } from "./components/ui/alert-dialog.js";
|
|
19
|
+
import { Avatar as er, AvatarFallback as or, AvatarImage as tr } from "./components/ui/avatar.js";
|
|
20
|
+
import { Card as lr, CardAction as ir, CardContent as pr, CardDescription as sr, CardFooter as mr, CardHeader as nr, CardTitle as ur } from "./components/ui/card.js";
|
|
21
|
+
import { Carousel as fr, CarouselContent as cr, CarouselItem as dr, CarouselNext as Sr, CarouselPrevious as gr } from "./components/ui/carousel.js";
|
|
22
|
+
import { Checkbox as Ar } from "./components/ui/checkbox.js";
|
|
23
|
+
import { Dialog as Pr, DialogClose as Tr, DialogContent as hr, DialogDescription as Ir, DialogFooter as wr, DialogHeader as vr, DialogOverlay as br, DialogPortal as kr, DialogTitle as Er, DialogTrigger as Fr } from "./components/ui/dialog.js";
|
|
24
|
+
import { Drawer as Mr, DrawerClose as Nr, DrawerContent as Br, DrawerDescription as Lr, DrawerFooter as yr, DrawerHeader as Gr, DrawerOverlay as Hr, DrawerPortal as Or, DrawerTitle as Ur, DrawerTrigger as Vr } from "./components/ui/drawer.js";
|
|
25
|
+
import { Input as zr } from "./components/ui/input.js";
|
|
26
|
+
import { Label as Wr } from "./components/ui/label.js";
|
|
27
|
+
import { Progress as qr } from "./components/ui/progress.js";
|
|
28
|
+
import { RadioGroup as Kr, RadioGroupItem as Qr } from "./components/ui/radio-group.js";
|
|
29
|
+
import { ResizableHandle as Zr, ResizablePanel as $r, ResizablePanelGroup as re } from "./components/ui/resizable.js";
|
|
30
|
+
import { ScrollArea as oe, ScrollBar as te } from "./components/ui/scroll-area.js";
|
|
31
|
+
import { Select as le, SelectContent as ie, SelectGroup as pe, SelectItem as se, SelectLabel as me, SelectScrollDownButton as ne, SelectScrollUpButton as ue, SelectSeparator as xe, SelectTrigger as fe, SelectValue as ce } from "./components/ui/select.js";
|
|
32
|
+
import { Separator as Se } from "./components/ui/separator.js";
|
|
33
|
+
import { Sheet as De, SheetClose as Ae, SheetContent as Ce, SheetDescription as Pe, SheetFooter as Te, SheetHeader as he, SheetTitle as Ie, SheetTrigger as we } from "./components/ui/sheet.js";
|
|
34
|
+
import { Toaster as be } from "./components/ui/sonner.js";
|
|
35
|
+
import { Skeleton as Ee } from "./components/ui/skeleton.js";
|
|
36
|
+
import { useRecentProducts as Re } from "./hooks/user/useRecentProducts.js";
|
|
37
|
+
import { useRecentShops as Ne } from "./hooks/user/useRecentShops.js";
|
|
38
|
+
import { useSavedProducts as Le } from "./hooks/user/useSavedProducts.js";
|
|
39
|
+
import { useSavedProductsActions as Ge } from "./hooks/user/useSavedProductsActions.js";
|
|
40
|
+
import { useFollowedShops as Oe } from "./hooks/user/useFollowedShops.js";
|
|
41
|
+
import { useFollowedShopsActions as Ve } from "./hooks/user/useFollowedShopsActions.js";
|
|
42
|
+
import { useCurrentUser as ze } from "./hooks/user/useCurrentUser.js";
|
|
43
|
+
import { useOrders as We } from "./hooks/user/useOrders.js";
|
|
44
|
+
import { useBuyerAttributes as qe } from "./hooks/user/useBuyerAttributes.js";
|
|
45
|
+
import { useProductListActions as Ke } from "./hooks/product/useProductListActions.js";
|
|
46
|
+
import { useProductLists as Xe } from "./hooks/product/useProductLists.js";
|
|
47
|
+
import { useProductList as $e } from "./hooks/product/useProductList.js";
|
|
48
|
+
import { useProduct as eo } from "./hooks/product/useProduct.js";
|
|
49
|
+
import { useProducts as to } from "./hooks/product/useProducts.js";
|
|
50
|
+
import { useProductVariants as lo } from "./hooks/product/useProductVariants.js";
|
|
51
|
+
import { useProductMedia as po } from "./hooks/product/useProductMedia.js";
|
|
52
|
+
import { useProductSearch as mo } from "./hooks/product/useProductSearch.js";
|
|
53
|
+
import { useRecommendedProducts as uo } from "./hooks/product/useRecommendedProducts.js";
|
|
54
|
+
import { usePopularProducts as fo } from "./hooks/product/usePopularProducts.js";
|
|
55
|
+
import { useCuratedProducts as So } from "./hooks/product/useCuratedProducts.js";
|
|
56
|
+
import { useAsyncStorage as Do } from "./hooks/storage/useAsyncStorage.js";
|
|
57
|
+
import { useSecureStorage as Co } from "./hooks/storage/useSecureStorage.js";
|
|
58
|
+
import { useImageUpload as To } from "./hooks/storage/useImageUpload.js";
|
|
59
|
+
import { useShopNavigation as Io } from "./hooks/navigation/useShopNavigation.js";
|
|
60
|
+
import { useCloseMini as vo } from "./hooks/navigation/useCloseMini.js";
|
|
61
|
+
import { useDeeplink as ko } from "./hooks/navigation/useDeeplink.js";
|
|
62
|
+
import { useNavigateWithTransition as Fo } from "./hooks/navigation/useNavigateWithTransition.js";
|
|
63
|
+
import { useShop as Mo } from "./hooks/shop/useShop.js";
|
|
64
|
+
import { useShopCartActions as Bo } from "./hooks/shop/useShopCartActions.js";
|
|
65
|
+
import { useRecommendedShops as yo } from "./hooks/shop/useRecommendedShops.js";
|
|
66
|
+
import { useErrorToast as Ho } from "./hooks/util/useErrorToast.js";
|
|
67
|
+
import { useErrorScreen as Uo } from "./hooks/util/useErrorScreen.js";
|
|
68
|
+
import { useShare as _o } from "./hooks/util/useShare.js";
|
|
69
|
+
import { useImagePicker as Yo } from "./hooks/util/useImagePicker.js";
|
|
70
|
+
import { MiniEntityNotFoundError as jo, MiniError as qo, MiniNetworkError as Jo, formatError as Ko } from "./utils/errors.js";
|
|
71
|
+
import { parseUrl as Xo } from "./utils/parseUrl.js";
|
|
72
|
+
import { Consent as $o, ConsentStatus as rt } from "./shop-minis-platform/src/types/permissions.js";
|
|
64
73
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
M as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
120
|
-
|
|
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
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
|
|
74
|
+
B as Accordion,
|
|
75
|
+
L as AccordionContent,
|
|
76
|
+
y as AccordionItem,
|
|
77
|
+
G as AccordionTrigger,
|
|
78
|
+
O as Alert,
|
|
79
|
+
U as AlertDescription,
|
|
80
|
+
z as AlertDialog,
|
|
81
|
+
Y as AlertDialogAction,
|
|
82
|
+
M as AlertDialogAtom,
|
|
83
|
+
W as AlertDialogCancel,
|
|
84
|
+
j as AlertDialogContent,
|
|
85
|
+
q as AlertDialogDescription,
|
|
86
|
+
J as AlertDialogFooter,
|
|
87
|
+
K as AlertDialogHeader,
|
|
88
|
+
Q as AlertDialogOverlay,
|
|
89
|
+
X as AlertDialogPortal,
|
|
90
|
+
Z as AlertDialogTitle,
|
|
91
|
+
$ as AlertDialogTrigger,
|
|
92
|
+
V as AlertTitle,
|
|
93
|
+
er as Avatar,
|
|
94
|
+
or as AvatarFallback,
|
|
95
|
+
tr as AvatarImage,
|
|
96
|
+
T as Button,
|
|
97
|
+
lr as Card,
|
|
98
|
+
ir as CardAction,
|
|
99
|
+
pr as CardContent,
|
|
100
|
+
sr as CardDescription,
|
|
101
|
+
mr as CardFooter,
|
|
102
|
+
nr as CardHeader,
|
|
103
|
+
ur as CardTitle,
|
|
104
|
+
fr as Carousel,
|
|
105
|
+
cr as CarouselContent,
|
|
106
|
+
dr as CarouselItem,
|
|
107
|
+
Sr as CarouselNext,
|
|
108
|
+
gr as CarouselPrevious,
|
|
109
|
+
Ar as Checkbox,
|
|
110
|
+
$o as Consent,
|
|
111
|
+
rt as ConsentStatus,
|
|
112
|
+
o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
|
|
113
|
+
Pr as Dialog,
|
|
114
|
+
Tr as DialogClose,
|
|
115
|
+
hr as DialogContent,
|
|
116
|
+
Ir as DialogDescription,
|
|
117
|
+
wr as DialogFooter,
|
|
118
|
+
vr as DialogHeader,
|
|
119
|
+
br as DialogOverlay,
|
|
120
|
+
kr as DialogPortal,
|
|
121
|
+
Er as DialogTitle,
|
|
122
|
+
Fr as DialogTrigger,
|
|
123
|
+
Mr as Drawer,
|
|
124
|
+
Nr as DrawerClose,
|
|
125
|
+
Br as DrawerContent,
|
|
126
|
+
Lr as DrawerDescription,
|
|
127
|
+
yr as DrawerFooter,
|
|
128
|
+
Gr as DrawerHeader,
|
|
129
|
+
Hr as DrawerOverlay,
|
|
130
|
+
Or as DrawerPortal,
|
|
131
|
+
Ur as DrawerTitle,
|
|
132
|
+
Vr as DrawerTrigger,
|
|
133
|
+
I as FavoriteButton,
|
|
134
|
+
v as IconButton,
|
|
135
|
+
zr as Input,
|
|
136
|
+
Wr as Label,
|
|
137
|
+
u as MerchantCard,
|
|
138
|
+
x as MerchantCardPrimitive,
|
|
139
|
+
S as MerchantCardSkeleton,
|
|
140
|
+
jo as MiniEntityNotFoundError,
|
|
141
|
+
qo as MiniError,
|
|
142
|
+
Jo as MiniNetworkError,
|
|
143
|
+
l as MinisContainer,
|
|
144
|
+
t as NAVIGATION_TYPES,
|
|
145
|
+
p as ProductCard,
|
|
146
|
+
c as ProductCardSkeleton,
|
|
147
|
+
m as ProductLink,
|
|
148
|
+
qr as Progress,
|
|
149
|
+
Kr as RadioGroup,
|
|
150
|
+
Qr as RadioGroupItem,
|
|
151
|
+
Zr as ResizableHandle,
|
|
152
|
+
$r as ResizablePanel,
|
|
153
|
+
re as ResizablePanelGroup,
|
|
154
|
+
oe as ScrollArea,
|
|
155
|
+
te as ScrollBar,
|
|
156
|
+
le as Select,
|
|
157
|
+
ie as SelectContent,
|
|
158
|
+
pe as SelectGroup,
|
|
159
|
+
se as SelectItem,
|
|
160
|
+
me as SelectLabel,
|
|
161
|
+
ne as SelectScrollDownButton,
|
|
162
|
+
ue as SelectScrollUpButton,
|
|
163
|
+
xe as SelectSeparator,
|
|
164
|
+
fe as SelectTrigger,
|
|
165
|
+
ce as SelectValue,
|
|
166
|
+
Se as Separator,
|
|
167
|
+
De as Sheet,
|
|
168
|
+
Ae as SheetClose,
|
|
169
|
+
Ce as SheetContent,
|
|
170
|
+
Pe as SheetDescription,
|
|
171
|
+
Te as SheetFooter,
|
|
172
|
+
he as SheetHeader,
|
|
173
|
+
Ie as SheetTitle,
|
|
174
|
+
we as SheetTrigger,
|
|
175
|
+
Ee as Skeleton,
|
|
176
|
+
k as ThumbhashImage,
|
|
177
|
+
be as Toaster,
|
|
178
|
+
F as Touchable,
|
|
179
|
+
D as TransitionContainer,
|
|
180
|
+
C as TransitionLink,
|
|
181
|
+
Ko as formatError,
|
|
182
|
+
Xo as parseUrl,
|
|
183
|
+
Do as useAsyncStorage,
|
|
184
|
+
qe as useBuyerAttributes,
|
|
185
|
+
vo as useCloseMini,
|
|
186
|
+
So as useCuratedProducts,
|
|
187
|
+
ze as useCurrentUser,
|
|
188
|
+
ko as useDeeplink,
|
|
189
|
+
Uo as useErrorScreen,
|
|
190
|
+
Ho as useErrorToast,
|
|
191
|
+
Oe as useFollowedShops,
|
|
192
|
+
Ve as useFollowedShopsActions,
|
|
193
|
+
Yo as useImagePicker,
|
|
194
|
+
To as useImageUpload,
|
|
195
|
+
Fo as useNavigateWithTransition,
|
|
196
|
+
We as useOrders,
|
|
197
|
+
fo as usePopularProducts,
|
|
198
|
+
eo as useProduct,
|
|
199
|
+
$e as useProductList,
|
|
200
|
+
Ke as useProductListActions,
|
|
201
|
+
Xe as useProductLists,
|
|
202
|
+
po as useProductMedia,
|
|
203
|
+
mo as useProductSearch,
|
|
204
|
+
lo as useProductVariants,
|
|
205
|
+
to as useProducts,
|
|
206
|
+
Re as useRecentProducts,
|
|
207
|
+
Ne as useRecentShops,
|
|
208
|
+
uo as useRecommendedProducts,
|
|
209
|
+
yo as useRecommendedShops,
|
|
210
|
+
Le as useSavedProducts,
|
|
211
|
+
Ge as useSavedProductsActions,
|
|
212
|
+
Co as useSecureStorage,
|
|
213
|
+
_o as useShare,
|
|
214
|
+
Mo as useShop,
|
|
215
|
+
Bo as useShopCartActions,
|
|
216
|
+
Io as useShopNavigation
|
|
198
217
|
};
|
|
199
218
|
//# 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/shop-minis-react/node_modules/.pnpm/js-base64@3.7.7/node_modules/js-base64/base64.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const l = typeof Buffer == "function";
|
|
2
|
+
typeof TextDecoder == "function" && new TextDecoder();
|
|
3
|
+
typeof TextEncoder == "function" && new TextEncoder();
|
|
4
|
+
const b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", A = Array.prototype.slice.call(b), f = ((t) => {
|
|
5
|
+
let r = {};
|
|
6
|
+
return t.forEach((o, n) => r[o] = n), r;
|
|
7
|
+
})(A), d = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, a = String.fromCharCode.bind(String), i = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (t) => new Uint8Array(Array.prototype.slice.call(t, 0)), y = (t) => t.replace(/[^A-Za-z0-9\+\/]/g, ""), p = (t) => {
|
|
8
|
+
if (t = t.replace(/\s+/g, ""), !d.test(t))
|
|
9
|
+
throw new TypeError("malformed base64.");
|
|
10
|
+
t += "==".slice(2 - (t.length & 3));
|
|
11
|
+
let r, o = "", n, c;
|
|
12
|
+
for (let e = 0; e < t.length; )
|
|
13
|
+
r = f[t.charAt(e++)] << 18 | f[t.charAt(e++)] << 12 | (n = f[t.charAt(e++)]) << 6 | (c = f[t.charAt(e++)]), o += n === 64 ? a(r >> 16 & 255) : c === 64 ? a(r >> 16 & 255, r >> 8 & 255) : a(r >> 16 & 255, r >> 8 & 255, r & 255);
|
|
14
|
+
return o;
|
|
15
|
+
}, s = typeof atob == "function" ? (t) => atob(y(t)) : l ? (t) => Buffer.from(t, "base64").toString("binary") : p, u = l ? (t) => i(Buffer.from(t, "base64")) : (t) => i(s(t).split("").map((r) => r.charCodeAt(0))), m = (t) => u(h(t)), h = (t) => y(t.replace(/[-_]/g, (r) => r == "-" ? "+" : "/"));
|
|
16
|
+
export {
|
|
17
|
+
s as atob,
|
|
18
|
+
p as atobPolyfill,
|
|
19
|
+
m as toUint8Array
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=base64.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64.js","sources":["../../../../../../../node_modules/.pnpm/js-base64@3.7.7/node_modules/js-base64/base64.mjs"],"sourcesContent":["/**\n * base64.ts\n *\n * Licensed under the BSD 3-Clause License.\n * http://opensource.org/licenses/BSD-3-Clause\n *\n * References:\n * http://en.wikipedia.org/wiki/Base64\n *\n * @author Dan Kogai (https://github.com/dankogai)\n */\nconst version = '3.7.7';\n/**\n * @deprecated use lowercase `version`.\n */\nconst VERSION = version;\nconst _hasBuffer = typeof Buffer === 'function';\nconst _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;\nconst _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;\nconst b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\nconst b64chs = Array.prototype.slice.call(b64ch);\nconst b64tab = ((a) => {\n let tab = {};\n a.forEach((c, i) => tab[c] = i);\n return tab;\n})(b64chs);\nconst b64re = /^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/;\nconst _fromCC = String.fromCharCode.bind(String);\nconst _U8Afrom = typeof Uint8Array.from === 'function'\n ? Uint8Array.from.bind(Uint8Array)\n : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));\nconst _mkUriSafe = (src) => src\n .replace(/=/g, '').replace(/[+\\/]/g, (m0) => m0 == '+' ? '-' : '_');\nconst _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\\+\\/]/g, '');\n/**\n * polyfill version of `btoa`\n */\nconst btoaPolyfill = (bin) => {\n // console.log('polyfilled');\n let u32, c0, c1, c2, asc = '';\n const pad = bin.length % 3;\n for (let i = 0; i < bin.length;) {\n if ((c0 = bin.charCodeAt(i++)) > 255 ||\n (c1 = bin.charCodeAt(i++)) > 255 ||\n (c2 = bin.charCodeAt(i++)) > 255)\n throw new TypeError('invalid character found');\n u32 = (c0 << 16) | (c1 << 8) | c2;\n asc += b64chs[u32 >> 18 & 63]\n + b64chs[u32 >> 12 & 63]\n + b64chs[u32 >> 6 & 63]\n + b64chs[u32 & 63];\n }\n return pad ? asc.slice(0, pad - 3) + \"===\".substring(pad) : asc;\n};\n/**\n * does what `window.btoa` of web browsers do.\n * @param {String} bin binary string\n * @returns {string} Base64-encoded string\n */\nconst _btoa = typeof btoa === 'function' ? (bin) => btoa(bin)\n : _hasBuffer ? (bin) => Buffer.from(bin, 'binary').toString('base64')\n : btoaPolyfill;\nconst _fromUint8Array = _hasBuffer\n ? (u8a) => Buffer.from(u8a).toString('base64')\n : (u8a) => {\n // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326\n const maxargs = 0x1000;\n let strs = [];\n for (let i = 0, l = u8a.length; i < l; i += maxargs) {\n strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));\n }\n return _btoa(strs.join(''));\n };\n/**\n * converts a Uint8Array to a Base64 string.\n * @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5\n * @returns {string} Base64 string\n */\nconst fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);\n// This trick is found broken https://github.com/dankogai/js-base64/issues/130\n// const utob = (src: string) => unescape(encodeURIComponent(src));\n// reverting good old fationed regexp\nconst cb_utob = (c) => {\n if (c.length < 2) {\n var cc = c.charCodeAt(0);\n return cc < 0x80 ? c\n : cc < 0x800 ? (_fromCC(0xc0 | (cc >>> 6))\n + _fromCC(0x80 | (cc & 0x3f)))\n : (_fromCC(0xe0 | ((cc >>> 12) & 0x0f))\n + _fromCC(0x80 | ((cc >>> 6) & 0x3f))\n + _fromCC(0x80 | (cc & 0x3f)));\n }\n else {\n var cc = 0x10000\n + (c.charCodeAt(0) - 0xD800) * 0x400\n + (c.charCodeAt(1) - 0xDC00);\n return (_fromCC(0xf0 | ((cc >>> 18) & 0x07))\n + _fromCC(0x80 | ((cc >>> 12) & 0x3f))\n + _fromCC(0x80 | ((cc >>> 6) & 0x3f))\n + _fromCC(0x80 | (cc & 0x3f)));\n }\n};\nconst re_utob = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFFF]|[^\\x00-\\x7F]/g;\n/**\n * @deprecated should have been internal use only.\n * @param {string} src UTF-8 string\n * @returns {string} UTF-16 string\n */\nconst utob = (u) => u.replace(re_utob, cb_utob);\n//\nconst _encode = _hasBuffer\n ? (s) => Buffer.from(s, 'utf8').toString('base64')\n : _TE\n ? (s) => _fromUint8Array(_TE.encode(s))\n : (s) => _btoa(utob(s));\n/**\n * converts a UTF-8-encoded string to a Base64 string.\n * @param {boolean} [urlsafe] if `true` make the result URL-safe\n * @returns {string} Base64 string\n */\nconst encode = (src, urlsafe = false) => urlsafe\n ? _mkUriSafe(_encode(src))\n : _encode(src);\n/**\n * converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.\n * @returns {string} Base64 string\n */\nconst encodeURI = (src) => encode(src, true);\n// This trick is found broken https://github.com/dankogai/js-base64/issues/130\n// const btou = (src: string) => decodeURIComponent(escape(src));\n// reverting good old fationed regexp\nconst re_btou = /[\\xC0-\\xDF][\\x80-\\xBF]|[\\xE0-\\xEF][\\x80-\\xBF]{2}|[\\xF0-\\xF7][\\x80-\\xBF]{3}/g;\nconst cb_btou = (cccc) => {\n switch (cccc.length) {\n case 4:\n var cp = ((0x07 & cccc.charCodeAt(0)) << 18)\n | ((0x3f & cccc.charCodeAt(1)) << 12)\n | ((0x3f & cccc.charCodeAt(2)) << 6)\n | (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000;\n return (_fromCC((offset >>> 10) + 0xD800)\n + _fromCC((offset & 0x3FF) + 0xDC00));\n case 3:\n return _fromCC(((0x0f & cccc.charCodeAt(0)) << 12)\n | ((0x3f & cccc.charCodeAt(1)) << 6)\n | (0x3f & cccc.charCodeAt(2)));\n default:\n return _fromCC(((0x1f & cccc.charCodeAt(0)) << 6)\n | (0x3f & cccc.charCodeAt(1)));\n }\n};\n/**\n * @deprecated should have been internal use only.\n * @param {string} src UTF-16 string\n * @returns {string} UTF-8 string\n */\nconst btou = (b) => b.replace(re_btou, cb_btou);\n/**\n * polyfill version of `atob`\n */\nconst atobPolyfill = (asc) => {\n // console.log('polyfilled');\n asc = asc.replace(/\\s+/g, '');\n if (!b64re.test(asc))\n throw new TypeError('malformed base64.');\n asc += '=='.slice(2 - (asc.length & 3));\n let u24, bin = '', r1, r2;\n for (let i = 0; i < asc.length;) {\n u24 = b64tab[asc.charAt(i++)] << 18\n | b64tab[asc.charAt(i++)] << 12\n | (r1 = b64tab[asc.charAt(i++)]) << 6\n | (r2 = b64tab[asc.charAt(i++)]);\n bin += r1 === 64 ? _fromCC(u24 >> 16 & 255)\n : r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255)\n : _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);\n }\n return bin;\n};\n/**\n * does what `window.atob` of web browsers do.\n * @param {String} asc Base64-encoded string\n * @returns {string} binary string\n */\nconst _atob = typeof atob === 'function' ? (asc) => atob(_tidyB64(asc))\n : _hasBuffer ? (asc) => Buffer.from(asc, 'base64').toString('binary')\n : atobPolyfill;\n//\nconst _toUint8Array = _hasBuffer\n ? (a) => _U8Afrom(Buffer.from(a, 'base64'))\n : (a) => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));\n/**\n * converts a Base64 string to a Uint8Array.\n */\nconst toUint8Array = (a) => _toUint8Array(_unURI(a));\n//\nconst _decode = _hasBuffer\n ? (a) => Buffer.from(a, 'base64').toString('utf8')\n : _TD\n ? (a) => _TD.decode(_toUint8Array(a))\n : (a) => btou(_atob(a));\nconst _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == '-' ? '+' : '/'));\n/**\n * converts a Base64 string to a UTF-8 string.\n * @param {String} src Base64 string. Both normal and URL-safe are supported\n * @returns {string} UTF-8 string\n */\nconst decode = (src) => _decode(_unURI(src));\n/**\n * check if a value is a valid Base64 string\n * @param {String} src a value to check\n */\nconst isValid = (src) => {\n if (typeof src !== 'string')\n return false;\n const s = src.replace(/\\s+/g, '').replace(/={0,2}$/, '');\n return !/[^\\s0-9a-zA-Z\\+/]/.test(s) || !/[^\\s0-9a-zA-Z\\-_]/.test(s);\n};\n//\nconst _noEnum = (v) => {\n return {\n value: v, enumerable: false, writable: true, configurable: true\n };\n};\n/**\n * extend String.prototype with relevant methods\n */\nconst extendString = function () {\n const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));\n _add('fromBase64', function () { return decode(this); });\n _add('toBase64', function (urlsafe) { return encode(this, urlsafe); });\n _add('toBase64URI', function () { return encode(this, true); });\n _add('toBase64URL', function () { return encode(this, true); });\n _add('toUint8Array', function () { return toUint8Array(this); });\n};\n/**\n * extend Uint8Array.prototype with relevant methods\n */\nconst extendUint8Array = function () {\n const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));\n _add('toBase64', function (urlsafe) { return fromUint8Array(this, urlsafe); });\n _add('toBase64URI', function () { return fromUint8Array(this, true); });\n _add('toBase64URL', function () { return fromUint8Array(this, true); });\n};\n/**\n * extend Builtin prototypes with relevant methods\n */\nconst extendBuiltins = () => {\n extendString();\n extendUint8Array();\n};\nconst gBase64 = {\n version: version,\n VERSION: VERSION,\n atob: _atob,\n atobPolyfill: atobPolyfill,\n btoa: _btoa,\n btoaPolyfill: btoaPolyfill,\n fromBase64: decode,\n toBase64: encode,\n encode: encode,\n encodeURI: encodeURI,\n encodeURL: encodeURI,\n utob: utob,\n btou: btou,\n decode: decode,\n isValid: isValid,\n fromUint8Array: fromUint8Array,\n toUint8Array: toUint8Array,\n extendString: extendString,\n extendUint8Array: extendUint8Array,\n extendBuiltins: extendBuiltins\n};\n// makecjs:CUT //\nexport { version };\nexport { VERSION };\nexport { _atob as atob };\nexport { atobPolyfill };\nexport { _btoa as btoa };\nexport { btoaPolyfill };\nexport { decode as fromBase64 };\nexport { encode as toBase64 };\nexport { utob };\nexport { encode };\nexport { encodeURI };\nexport { encodeURI as encodeURL };\nexport { btou };\nexport { decode };\nexport { isValid };\nexport { fromUint8Array };\nexport { toUint8Array };\nexport { extendString };\nexport { extendUint8Array };\nexport { extendBuiltins };\n// and finally,\nexport { gBase64 as Base64 };\n"],"names":["_hasBuffer","b64ch","b64chs","b64tab","a","tab","c","i","b64re","_fromCC","_U8Afrom","it","_tidyB64","s","atobPolyfill","asc","u24","bin","r1","r2","_atob","_toUint8Array","toUint8Array","_unURI","m0"],"mappings":"AAgBA,MAAMA,IAAa,OAAO,UAAW;AACzB,OAAO,eAAgB,cAAa,IAAI;AACxC,OAAO,eAAgB,cAAa,IAAI;AACpD,MAAMC,IAAQ,qEACRC,IAAS,MAAM,UAAU,MAAM,KAAKD,CAAK,GACzCE,KAAU,CAACC,MAAM;AACnB,MAAIC,IAAM,CAAE;AACZ,SAAAD,EAAE,QAAQ,CAACE,GAAGC,MAAMF,EAAIC,CAAC,IAAIC,CAAC,GACvBF;AACX,GAAGH,CAAM,GACHM,IAAQ,2EACRC,IAAU,OAAO,aAAa,KAAK,MAAM,GACzCC,IAAW,OAAO,WAAW,QAAS,aACtC,WAAW,KAAK,KAAK,UAAU,IAC/B,CAACC,MAAO,IAAI,WAAW,MAAM,UAAU,MAAM,KAAKA,GAAI,CAAC,CAAC,GAGxDC,IAAW,CAACC,MAAMA,EAAE,QAAQ,qBAAqB,EAAE,GA8HnDC,IAAe,CAACC,MAAQ;AAG1B,MADAA,IAAMA,EAAI,QAAQ,QAAQ,EAAE,GACxB,CAACP,EAAM,KAAKO,CAAG;AACf,UAAM,IAAI,UAAU,mBAAmB;AAC3C,EAAAA,KAAO,KAAK,MAAM,KAAKA,EAAI,SAAS,EAAE;AACtC,MAAIC,GAAKC,IAAM,IAAIC,GAAIC;AACvB,WAASZ,IAAI,GAAGA,IAAIQ,EAAI;AACpB,IAAAC,IAAMb,EAAOY,EAAI,OAAOR,GAAG,CAAC,KAAK,KAC3BJ,EAAOY,EAAI,OAAOR,GAAG,CAAC,KAAK,MAC1BW,IAAKf,EAAOY,EAAI,OAAOR,GAAG,CAAC,MAAM,KACjCY,IAAKhB,EAAOY,EAAI,OAAOR,GAAG,CAAC,IAClCU,KAAOC,MAAO,KAAKT,EAAQO,KAAO,KAAK,GAAG,IACpCG,MAAO,KAAKV,EAAQO,KAAO,KAAK,KAAKA,KAAO,IAAI,GAAG,IAC/CP,EAAQO,KAAO,KAAK,KAAKA,KAAO,IAAI,KAAKA,IAAM,GAAG;AAEhE,SAAOC;AACX,GAMMG,IAAQ,OAAO,QAAS,aAAa,CAACL,MAAQ,KAAKH,EAASG,CAAG,CAAC,IAChEf,IAAa,CAACe,MAAQ,OAAO,KAAKA,GAAK,QAAQ,EAAE,SAAS,QAAQ,IAC9DD,GAEJO,IAAgBrB,IAChB,CAACI,MAAMM,EAAS,OAAO,KAAKN,GAAG,QAAQ,CAAC,IACxC,CAACA,MAAMM,EAASU,EAAMhB,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAAE,MAAKA,EAAE,WAAW,CAAC,CAAC,CAAC,GAI5DgB,IAAe,CAAClB,MAAMiB,EAAcE,EAAOnB,CAAC,CAAC,GAO7CmB,IAAS,CAACnB,MAAMQ,EAASR,EAAE,QAAQ,SAAS,CAACoB,MAAOA,KAAM,MAAM,MAAM,GAAG,CAAC;","x_google_ignoreList":[0]}
|