@shopify/shop-minis-react 0.0.0-snapshot.20251211183509 → 0.0.0-snapshot.20251215163043

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/index.js CHANGED
@@ -4,11 +4,11 @@ import { AddToCartButton as n } from "./components/commerce/add-to-cart.js";
4
4
  import { BuyNowButton as s } from "./components/commerce/buy-now.js";
5
5
  import { ProductCard as u, ProductCardBadge as f, ProductCardContainer as x, ProductCardFavoriteButton as c, ProductCardImage as d, ProductCardImageContainer as C, ProductCardInfo as g, ProductCardPrice as S, ProductCardReviewStars as A, ProductCardTitle as D } from "./components/commerce/product-card.js";
6
6
  import { ProductLink as T } from "./components/commerce/product-link.js";
7
- import { MerchantCard as I, MerchantCardContainer as E, MerchantCardHeader as R, MerchantCardInfo as w, MerchantCardName as F, MerchantCardRating as M } from "./components/commerce/merchant-card.js";
7
+ import { MerchantCard as I, MerchantCardContainer as E, MerchantCardHeader as M, MerchantCardInfo as R, MerchantCardName as w, MerchantCardRating as F } from "./components/commerce/merchant-card.js";
8
8
  import { ProductCardSkeleton as B } from "./components/commerce/product-card-skeleton.js";
9
9
  import { MerchantCardSkeleton as L } from "./components/commerce/merchant-card-skeleton.js";
10
10
  import { QuantitySelector as b } from "./components/commerce/quantity-selector.js";
11
- import { Search as _, SearchInput as G, SearchProvider as O, SearchResultsList as y } from "./components/commerce/search.js";
11
+ import { Search as _, SearchInput as y, SearchProvider as G, SearchResultsList as O } from "./components/commerce/search.js";
12
12
  import { FavoriteButton as V } from "./components/commerce/favorite-button.js";
13
13
  import { ImageContentWrapper as W } from "./components/content/image-content-wrapper.js";
14
14
  import { MinisRouter as q } from "./components/navigation/minis-router.js";
@@ -26,19 +26,19 @@ import { ContentWrapper as cr } from "./components/atoms/content-wrapper.js";
26
26
  import { ProductVariantPrice as Cr } from "./components/atoms/product-variant-price.js";
27
27
  import { Accordion as Sr, AccordionContent as Ar, AccordionItem as Dr, AccordionTrigger as Pr } from "./components/ui/accordion.js";
28
28
  import { Alert as hr, AlertDescription as Ir, AlertTitle as Er } from "./components/ui/alert.js";
29
- import { AlertDialog as wr, AlertDialogAction as Fr, AlertDialogCancel as Mr, AlertDialogContent as vr, AlertDialogDescription as Br, AlertDialogFooter as Ur, AlertDialogHeader as Lr, AlertDialogOverlay as Nr, AlertDialogPortal as br, AlertDialogTitle as kr, AlertDialogTrigger as _r } from "./components/ui/alert-dialog.js";
30
- import { Avatar as Or, AvatarFallback as yr, AvatarImage as Hr } from "./components/ui/avatar.js";
29
+ import { AlertDialog as Rr, AlertDialogAction as wr, AlertDialogCancel as Fr, AlertDialogContent as vr, AlertDialogDescription as Br, AlertDialogFooter as Ur, AlertDialogHeader as Lr, AlertDialogOverlay as Nr, AlertDialogPortal as br, AlertDialogTitle as kr, AlertDialogTrigger as _r } from "./components/ui/alert-dialog.js";
30
+ import { Avatar as Gr, AvatarFallback as Or, AvatarImage as Hr } from "./components/ui/avatar.js";
31
31
  import { Badge as zr, badgeVariants as Wr } from "./components/ui/badge.js";
32
32
  import { Card as qr, CardAction as Kr, CardContent as Qr, CardDescription as Zr, CardFooter as jr, CardHeader as Jr, CardTitle as Xr } from "./components/ui/card.js";
33
33
  import { Carousel as re, CarouselContent as ee, CarouselItem as oe, CarouselNext as te, CarouselPrevious as ae } from "./components/ui/carousel.js";
34
34
  import { Checkbox as pe } from "./components/ui/checkbox.js";
35
35
  import { Dialog as me, DialogClose as se, DialogContent as le, DialogDescription as ue, DialogFooter as fe, DialogHeader as xe, DialogOverlay as ce, DialogPortal as de, DialogTitle as Ce, DialogTrigger as ge } from "./components/ui/dialog.js";
36
- import { Drawer as Ae, DrawerClose as De, DrawerContent as Pe, DrawerDescription as Te, DrawerFooter as he, DrawerHeader as Ie, DrawerOverlay as Ee, DrawerPortal as Re, DrawerTitle as we, DrawerTrigger as Fe } from "./components/ui/drawer.js";
36
+ import { Drawer as Ae, DrawerClose as De, DrawerContent as Pe, DrawerDescription as Te, DrawerFooter as he, DrawerHeader as Ie, DrawerOverlay as Ee, DrawerPortal as Me, DrawerTitle as Re, DrawerTrigger as we } from "./components/ui/drawer.js";
37
37
  import { Input as ve } from "./components/ui/input.js";
38
38
  import { Label as Ue } from "./components/ui/label.js";
39
39
  import { Progress as Ne } from "./components/ui/progress.js";
40
40
  import { RadioGroup as ke, RadioGroupItem as _e } from "./components/ui/radio-group.js";
41
- import { ResizableHandle as Oe, ResizablePanel as ye, ResizablePanelGroup as He } from "./components/ui/resizable.js";
41
+ import { ResizableHandle as Ge, ResizablePanel as Oe, ResizablePanelGroup as He } from "./components/ui/resizable.js";
42
42
  import { ScrollArea as ze, ScrollBar as We } from "./components/ui/scroll-area.js";
43
43
  import { Select as qe, SelectContent as Ke, SelectGroup as Qe, SelectItem as Ze, SelectLabel as je, SelectScrollDownButton as Je, SelectScrollUpButton as Xe, SelectSeparator as $e, SelectTrigger as ro, SelectValue as eo } from "./components/ui/select.js";
44
44
  import { Separator as to } from "./components/ui/separator.js";
@@ -49,13 +49,13 @@ import { Skeleton as Ao } from "./components/ui/skeleton.js";
49
49
  import { useRecentProducts as Po } from "./hooks/user/useRecentProducts.js";
50
50
  import { useRecentShops as ho } from "./hooks/user/useRecentShops.js";
51
51
  import { useSavedProducts as Eo } from "./hooks/user/useSavedProducts.js";
52
- import { useSavedProductsActions as wo } from "./hooks/user/useSavedProductsActions.js";
53
- import { useFollowedShops as Mo } from "./hooks/user/useFollowedShops.js";
52
+ import { useSavedProductsActions as Ro } from "./hooks/user/useSavedProductsActions.js";
53
+ import { useFollowedShops as Fo } from "./hooks/user/useFollowedShops.js";
54
54
  import { useFollowedShopsActions as Bo } from "./hooks/user/useFollowedShopsActions.js";
55
55
  import { useCurrentUser as Lo } from "./hooks/user/useCurrentUser.js";
56
56
  import { useOrders as bo } from "./hooks/user/useOrders.js";
57
57
  import { useBuyerAttributes as _o } from "./hooks/user/useBuyerAttributes.js";
58
- import { useGenerateUserToken as Oo } from "./hooks/user/useGenerateUserToken.js";
58
+ import { useGenerateUserToken as Go } from "./hooks/user/useGenerateUserToken.js";
59
59
  import { useProductListActions as Ho } from "./hooks/product/useProductListActions.js";
60
60
  import { useProductLists as zo } from "./hooks/product/useProductLists.js";
61
61
  import { useProductList as Yo } from "./hooks/product/useProductList.js";
@@ -76,13 +76,13 @@ import { useDeeplink as At } from "./hooks/navigation/useDeeplink.js";
76
76
  import { useNavigateWithTransition as Pt } from "./hooks/navigation/useNavigateWithTransition.js";
77
77
  import { useShop as ht } from "./hooks/shop/useShop.js";
78
78
  import { useRecommendedShops as Et } from "./hooks/shop/useRecommendedShops.js";
79
- import { useCreateImageContent as wt } from "./hooks/content/useCreateImageContent.js";
80
- import { useErrorToast as Mt } from "./hooks/util/useErrorToast.js";
79
+ import { useCreateImageContent as Rt } from "./hooks/content/useCreateImageContent.js";
80
+ import { useErrorToast as Ft } from "./hooks/util/useErrorToast.js";
81
81
  import { useErrorScreen as Bt } from "./hooks/util/useErrorScreen.js";
82
82
  import { useShare as Lt } from "./hooks/util/useShare.js";
83
83
  import { useImagePicker as bt } from "./hooks/util/useImagePicker.js";
84
84
  import { useKeyboardAvoidingView as _t } from "./hooks/util/useKeyboardAvoidingView.js";
85
- import { useRequestPermissions as Ot } from "./hooks/util/useRequestPermissions.js";
85
+ import { useRequestPermissions as Gt } from "./hooks/util/useRequestPermissions.js";
86
86
  import { useOnMiniFocus as Ht } from "./hooks/events/useOnMiniFocus.js";
87
87
  import { useOnMiniBlur as zt } from "./hooks/events/useOnMiniBlur.js";
88
88
  import { useOnMiniClose as Yt } from "./hooks/events/useOnMiniClose.js";
@@ -91,10 +91,11 @@ import { MiniEntityNotFoundError as Zt, MiniError as jt, MiniNetworkError as Jt,
91
91
  import { extractBrandTheme as ra, formatReviewCount as ea, getFeaturedImages as oa, normalizeRating as ta } from "./utils/merchant-card.js";
92
92
  import { parseUrl as ia } from "./utils/parseUrl.js";
93
93
  import { fileToDataUri as na, getResizedImageUrl as ma, getThumbhashDataURL as sa } from "./utils/image.js";
94
- import { UserState as ua, UserTokenGenerateUserErrorCode as fa } from "./shop-minis-platform/src/types/user.js";
95
- import { ContentCreateUserErrorCode as ca, MinisContentStatus as da } from "./shop-minis-platform/src/types/content.js";
96
- import { Social as ga } from "./shop-minis-platform/src/types/share.js";
97
- import { DATA_FETCHING_DEFAULT_FETCH_POLICY as Aa, DATA_FETCHING_DEFAULT_PAGE_SIZE as Da } from "./shop-minis-platform/src/constants.js";
94
+ import { formatMoney as ua } from "./utils/formatMoney.js";
95
+ import { UserState as xa, UserTokenGenerateUserErrorCode as ca } from "./shop-minis-platform/src/types/user.js";
96
+ import { ContentCreateUserErrorCode as Ca, MinisContentStatus as ga } from "./shop-minis-platform/src/types/content.js";
97
+ import { Social as Aa } from "./shop-minis-platform/src/types/share.js";
98
+ import { DATA_FETCHING_DEFAULT_FETCH_POLICY as Pa, DATA_FETCHING_DEFAULT_PAGE_SIZE as Ta } from "./shop-minis-platform/src/constants.js";
98
99
  export {
99
100
  Sr as Accordion,
100
101
  Ar as AccordionContent,
@@ -103,10 +104,10 @@ export {
103
104
  n as AddToCartButton,
104
105
  hr as Alert,
105
106
  Ir as AlertDescription,
106
- wr as AlertDialog,
107
- Fr as AlertDialogAction,
107
+ Rr as AlertDialog,
108
+ wr as AlertDialogAction,
108
109
  pr as AlertDialogAtom,
109
- Mr as AlertDialogCancel,
110
+ Fr as AlertDialogCancel,
110
111
  vr as AlertDialogContent,
111
112
  Br as AlertDialogDescription,
112
113
  Ur as AlertDialogFooter,
@@ -116,8 +117,8 @@ export {
116
117
  kr as AlertDialogTitle,
117
118
  _r as AlertDialogTrigger,
118
119
  Er as AlertTitle,
119
- Or as Avatar,
120
- yr as AvatarFallback,
120
+ Gr as Avatar,
121
+ Or as AvatarFallback,
121
122
  Hr as AvatarImage,
122
123
  zr as Badge,
123
124
  j as Button,
@@ -135,10 +136,10 @@ export {
135
136
  te as CarouselNext,
136
137
  ae as CarouselPrevious,
137
138
  pe as Checkbox,
138
- ca as ContentCreateUserErrorCode,
139
+ Ca as ContentCreateUserErrorCode,
139
140
  cr as ContentWrapper,
140
- Aa as DATA_FETCHING_DEFAULT_FETCH_POLICY,
141
- Da as DATA_FETCHING_DEFAULT_PAGE_SIZE,
141
+ Pa as DATA_FETCHING_DEFAULT_FETCH_POLICY,
142
+ Ta as DATA_FETCHING_DEFAULT_PAGE_SIZE,
142
143
  o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
143
144
  me as Dialog,
144
145
  se as DialogClose,
@@ -157,9 +158,9 @@ export {
157
158
  he as DrawerFooter,
158
159
  Ie as DrawerHeader,
159
160
  Ee as DrawerOverlay,
160
- Re as DrawerPortal,
161
- we as DrawerTitle,
162
- Fe as DrawerTrigger,
161
+ Me as DrawerPortal,
162
+ Re as DrawerTitle,
163
+ we as DrawerTrigger,
163
164
  V as FavoriteButton,
164
165
  X as IconButton,
165
166
  rr as Image,
@@ -170,16 +171,16 @@ export {
170
171
  ar as LongPressDetector,
171
172
  I as MerchantCard,
172
173
  E as MerchantCardContainer,
173
- R as MerchantCardHeader,
174
- w as MerchantCardInfo,
175
- F as MerchantCardName,
176
- M as MerchantCardRating,
174
+ M as MerchantCardHeader,
175
+ R as MerchantCardInfo,
176
+ w as MerchantCardName,
177
+ F as MerchantCardRating,
177
178
  L as MerchantCardSkeleton,
178
179
  Zt as MiniEntityNotFoundError,
179
180
  jt as MiniError,
180
181
  Jt as MiniNetworkError,
181
182
  i as MinisContainer,
182
- da as MinisContentStatus,
183
+ ga as MinisContentStatus,
183
184
  q as MinisRouter,
184
185
  t as NAVIGATION_TYPES,
185
186
  u as ProductCard,
@@ -199,15 +200,15 @@ export {
199
200
  b as QuantitySelector,
200
201
  ke as RadioGroup,
201
202
  _e as RadioGroupItem,
202
- Oe as ResizableHandle,
203
- ye as ResizablePanel,
203
+ Ge as ResizableHandle,
204
+ Oe as ResizablePanel,
204
205
  He as ResizablePanelGroup,
205
206
  ze as ScrollArea,
206
207
  We as ScrollBar,
207
208
  _ as Search,
208
- G as SearchInput,
209
- O as SearchProvider,
210
- y as SearchResultsList,
209
+ y as SearchInput,
210
+ G as SearchProvider,
211
+ O as SearchResultsList,
211
212
  qe as Select,
212
213
  Ke as SelectContent,
213
214
  Qe as SelectGroup,
@@ -228,18 +229,19 @@ export {
228
229
  uo as SheetTitle,
229
230
  fo as SheetTrigger,
230
231
  Ao as Skeleton,
231
- ga as Social,
232
+ Aa as Social,
232
233
  fr as TextInput,
233
234
  co as Toaster,
234
235
  or as Touchable,
235
236
  Q as TransitionLink,
236
- ua as UserState,
237
- fa as UserTokenGenerateUserErrorCode,
237
+ xa as UserState,
238
+ ca as UserTokenGenerateUserErrorCode,
238
239
  lr as VideoPlayer,
239
240
  Wr as badgeVariants,
240
241
  ra as extractBrandTheme,
241
242
  na as fileToDataUri,
242
243
  Xt as formatError,
244
+ ua as formatMoney,
243
245
  ea as formatReviewCount,
244
246
  oa as getFeaturedImages,
245
247
  ma as getResizedImageUrl,
@@ -250,15 +252,15 @@ export {
250
252
  st as useAsyncStorage,
251
253
  _o as useBuyerAttributes,
252
254
  gt as useCloseMini,
253
- wt as useCreateImageContent,
255
+ Rt as useCreateImageContent,
254
256
  nt as useCuratedProducts,
255
257
  Lo as useCurrentUser,
256
258
  At as useDeeplink,
257
259
  Bt as useErrorScreen,
258
- Mt as useErrorToast,
259
- Mo as useFollowedShops,
260
+ Ft as useErrorToast,
261
+ Fo as useFollowedShops,
260
262
  Bo as useFollowedShopsActions,
261
- Oo as useGenerateUserToken,
263
+ Go as useGenerateUserToken,
262
264
  bt as useImagePicker,
263
265
  xt as useImageUpload,
264
266
  _t as useKeyboardAvoidingView,
@@ -281,9 +283,9 @@ export {
281
283
  ho as useRecentShops,
282
284
  tt as useRecommendedProducts,
283
285
  Et as useRecommendedShops,
284
- Ot as useRequestPermissions,
286
+ Gt as useRequestPermissions,
285
287
  Eo as useSavedProducts,
286
- wo as useSavedProductsActions,
288
+ Ro as useSavedProductsActions,
287
289
  ut as useSecureStorage,
288
290
  Lt as useShare,
289
291
  ht as useShop,
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}