@shopify/shop-minis-react 0.7.0 → 0.7.1

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.
@@ -0,0 +1,23 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ function n({
3
+ position: i,
4
+ children: t
5
+ }) {
6
+ return /* @__PURE__ */ e(
7
+ "div",
8
+ {
9
+ style: {
10
+ position: "fixed",
11
+ left: 0,
12
+ right: 0,
13
+ [i]: 0,
14
+ viewTransitionName: `minis-fixed-${i}`
15
+ },
16
+ children: t
17
+ }
18
+ );
19
+ }
20
+ export {
21
+ n as StaticArea
22
+ };
23
+ //# sourceMappingURL=static-area.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-area.js","sources":["../../../src/components/atoms/static-area.tsx"],"sourcesContent":["export interface StaticAreaDocProps {\n /** Position of the fixed area on screen - either pinned to top or bottom */\n position: 'top' | 'bottom'\n /** Static area content */\n children?: React.ReactNode\n}\n\nexport function StaticArea({\n position,\n children,\n}: {\n position: 'top' | 'bottom'\n children: React.ReactNode\n}) {\n return (\n <div\n style={{\n position: 'fixed',\n left: 0,\n right: 0,\n [position]: 0,\n viewTransitionName: `minis-fixed-${position}`,\n }}\n >\n {children}\n </div>\n )\n}\n"],"names":["StaticArea","position","children","jsx"],"mappings":";AAOO,SAASA,EAAW;AAAA,EACzB,UAAAC;AAAA,EACA,UAAAC;AACF,GAGG;AAEC,SAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,UAAU;AAAA,QACV,MAAM;AAAA,QACN,OAAO;AAAA,QACP,CAACF,CAAQ,GAAG;AAAA,QACZ,oBAAoB,eAAeA,CAAQ;AAAA,MAC7C;AAAA,MAEC,UAAAC;AAAA,IAAA;AAAA,EACH;AAEJ;"}
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
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 { AddToCartButton as n } from "./components/commerce/add-to-cart.js";
3
+ import { AddToCartButton as m } from "./components/commerce/add-to-cart.js";
4
4
  import { BuyNowButton as s } from "./components/commerce/buy-now.js";
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 D, ProductCardTitle as A } from "./components/commerce/product-card.js";
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
7
  import { MerchantCard as I, MerchantCardContainer as R, MerchantCardHeader as v, MerchantCardInfo as w, MerchantCardName as B, MerchantCardRating as E } from "./components/commerce/merchant-card.js";
8
8
  import { ProductCardSkeleton as F } from "./components/commerce/product-card-skeleton.js";
@@ -19,157 +19,158 @@ import { Image as rr } from "./components/atoms/image.js";
19
19
  import { Touchable as or } from "./components/atoms/touchable.js";
20
20
  import { LongPressDetector as ar } from "./components/atoms/long-press-detector.js";
21
21
  import { AlertDialogAtom as pr } from "./components/atoms/alert-dialog.js";
22
- import { List as mr } from "./components/atoms/list.js";
22
+ import { List as nr } from "./components/atoms/list.js";
23
23
  import { VideoPlayer as lr } from "./components/atoms/video-player.js";
24
24
  import { TextInput as fr } from "./components/atoms/text-input.js";
25
25
  import { ContentWrapper as cr } from "./components/atoms/content-wrapper.js";
26
26
  import { ProductVariantPrice as Cr } from "./components/atoms/product-variant-price.js";
27
- import { Accordion as Sr, AccordionContent as Dr, AccordionItem as Ar, AccordionTrigger as Pr } from "./components/ui/accordion.js";
28
- import { Alert as hr, AlertDescription as Ir, AlertTitle as Rr } from "./components/ui/alert.js";
29
- import { AlertDialog as wr, AlertDialogAction as Br, AlertDialogCancel as Er, AlertDialogContent as Mr, AlertDialogDescription as Fr, AlertDialogFooter as Ur, AlertDialogHeader as br, AlertDialogOverlay as Lr, AlertDialogPortal as kr, AlertDialogTitle as Nr, AlertDialogTrigger as Or } from "./components/ui/alert-dialog.js";
30
- import { Avatar as yr, AvatarFallback as Gr, AvatarImage as Hr } from "./components/ui/avatar.js";
31
- import { Badge as zr, badgeVariants as Wr } from "./components/ui/badge.js";
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
- import { Carousel as re, CarouselContent as ee, CarouselItem as oe, CarouselNext as te, CarouselPrevious as ae } from "./components/ui/carousel.js";
34
- import { Checkbox as pe } from "./components/ui/checkbox.js";
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 De, DrawerClose as Ae, DrawerContent as Pe, DrawerDescription as Te, DrawerFooter as he, DrawerHeader as Ie, DrawerOverlay as Re, DrawerPortal as ve, DrawerTitle as we, DrawerTrigger as Be } from "./components/ui/drawer.js";
37
- import { Input as Me } from "./components/ui/input.js";
38
- import { Label as Ue } from "./components/ui/label.js";
39
- import { Progress as Le } from "./components/ui/progress.js";
40
- import { RadioGroup as Ne, RadioGroupItem as Oe } from "./components/ui/radio-group.js";
41
- import { ResizableHandle as ye, ResizablePanel as Ge, ResizablePanelGroup as He } from "./components/ui/resizable.js";
42
- import { ScrollArea as ze, ScrollBar as We } from "./components/ui/scroll-area.js";
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
- import { Separator as to } from "./components/ui/separator.js";
45
- import { Sheet as io, SheetClose as po, SheetContent as no, SheetDescription as mo, SheetFooter as so, SheetHeader as lo, SheetTitle as uo, SheetTrigger as fo } from "./components/ui/sheet.js";
46
- import { Toaster as co } from "./components/ui/sonner.js";
47
- import { toast as go } from "./shop-minis-react/node_modules/.pnpm/sonner@2.0.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/sonner/dist/index.js";
48
- import { Skeleton as Do } from "./components/ui/skeleton.js";
49
- import { useRecentProducts as Po } from "./hooks/user/useRecentProducts.js";
50
- import { useRecentShops as ho } from "./hooks/user/useRecentShops.js";
51
- import { useSavedProducts as Ro } from "./hooks/user/useSavedProducts.js";
52
- import { useSavedProductsActions as wo } from "./hooks/user/useSavedProductsActions.js";
53
- import { useFollowedShops as Eo } from "./hooks/user/useFollowedShops.js";
54
- import { useFollowedShopsActions as Fo } from "./hooks/user/useFollowedShopsActions.js";
55
- import { useCurrentUser as bo } from "./hooks/user/useCurrentUser.js";
56
- import { useOrders as ko } from "./hooks/user/useOrders.js";
57
- import { useBuyerAttributes as Oo } from "./hooks/user/useBuyerAttributes.js";
58
- import { useGenerateUserToken as yo } from "./hooks/user/useGenerateUserToken.js";
59
- import { useProductListActions as Ho } from "./hooks/product/useProductListActions.js";
60
- import { useProductLists as zo } from "./hooks/product/useProductLists.js";
61
- import { useProductList as Yo } from "./hooks/product/useProductList.js";
62
- import { useProduct as Ko } from "./hooks/product/useProduct.js";
63
- import { useProducts as Zo } from "./hooks/product/useProducts.js";
64
- import { useProductVariants as Jo } from "./hooks/product/useProductVariants.js";
65
- import { useProductMedia as $o } from "./hooks/product/useProductMedia.js";
66
- import { useProductReviews as et } from "./hooks/product/useProductReviews.js";
67
- import { useProductSearch as tt } from "./hooks/product/useProductSearch.js";
68
- import { useRecommendedProducts as it } from "./hooks/product/useRecommendedProducts.js";
69
- import { usePopularProducts as nt } from "./hooks/product/usePopularProducts.js";
70
- import { useAsyncStorage as st } from "./hooks/storage/useAsyncStorage.js";
71
- import { useSecureStorage as ut } from "./hooks/storage/useSecureStorage.js";
72
- import { useImageUpload as xt } from "./hooks/storage/useImageUpload.js";
73
- import { useShopNavigation as dt } from "./hooks/navigation/useShopNavigation.js";
74
- import { useCloseMini as gt } from "./hooks/navigation/useCloseMini.js";
75
- import { useDeeplink as Dt } from "./hooks/navigation/useDeeplink.js";
76
- import { useNavigateWithTransition as Pt } from "./hooks/navigation/useNavigateWithTransition.js";
77
- import { useShop as ht } from "./hooks/shop/useShop.js";
78
- import { useRecommendedShops as Rt } from "./hooks/shop/useRecommendedShops.js";
79
- import { useCreateImageContent as wt } from "./hooks/content/useCreateImageContent.js";
80
- import { useErrorToast as Et } from "./hooks/util/useErrorToast.js";
81
- import { useErrorScreen as Ft } from "./hooks/util/useErrorScreen.js";
82
- import { useShare as bt } from "./hooks/util/useShare.js";
83
- import { useImagePicker as kt } from "./hooks/util/useImagePicker.js";
84
- import { useKeyboardAvoidingView as Ot } from "./hooks/util/useKeyboardAvoidingView.js";
85
- import { useRequestPermissions as yt } from "./hooks/util/useRequestPermissions.js";
86
- import { useOnMiniFocus as Ht } from "./hooks/events/useOnMiniFocus.js";
87
- import { useOnMiniBlur as zt } from "./hooks/events/useOnMiniBlur.js";
88
- import { useOnMiniClose as Yt } from "./hooks/events/useOnMiniClose.js";
89
- import { useOnAppStateChange as Kt } from "./hooks/events/useOnAppStateChange.js";
90
- import { useOnNavigateBack as Zt } from "./hooks/events/useOnNavigateBack.js";
91
- import { buildDeeplinkUrl as Jt } from "./utils/buildDeeplinkUrl.js";
92
- import { MiniEntityNotFoundError as $t, MiniError as ra, MiniNetworkError as ea, formatError as oa } from "./utils/errors.js";
93
- import { extractBrandTheme as aa, formatReviewCount as ia, getFeaturedImages as pa, normalizeRating as na } from "./utils/merchant-card.js";
94
- import { parseUrl as sa } from "./utils/parseUrl.js";
95
- import { dataURLToBlob as ua, fileToDataUri as fa, getResizedImageUrl as xa, getThumbhashBlobURL as ca, getThumbhashDataURL as da } from "./utils/image.js";
96
- import { formatMoney as ga } from "./utils/formatMoney.js";
97
- import { UserState as Da, UserTokenGenerateUserErrorCode as Aa } from "./shop-minis-platform/src/types/user.js";
98
- import { ContentCreateUserErrorCode as Ta, MinisContentStatus as ha } from "./shop-minis-platform/src/types/content.js";
99
- import { Social as Ra } from "./shop-minis-platform/src/types/share.js";
100
- import { DATA_FETCHING_DEFAULT_FETCH_POLICY as wa, DATA_FETCHING_DEFAULT_PAGE_SIZE as Ba } from "./shop-minis-platform/src/constants.js";
27
+ import { StaticArea as Sr } from "./components/atoms/static-area.js";
28
+ import { Accordion as Dr, AccordionContent as Pr, AccordionItem as Tr, AccordionTrigger as hr } from "./components/ui/accordion.js";
29
+ import { Alert as Rr, AlertDescription as vr, AlertTitle as wr } from "./components/ui/alert.js";
30
+ import { AlertDialog as Er, AlertDialogAction as Mr, AlertDialogCancel as Fr, AlertDialogContent as Ur, AlertDialogDescription as br, AlertDialogFooter as Lr, AlertDialogHeader as kr, AlertDialogOverlay as Nr, AlertDialogPortal as Or, AlertDialogTitle as _r, AlertDialogTrigger as yr } from "./components/ui/alert-dialog.js";
31
+ import { Avatar as Hr, AvatarFallback as Vr, AvatarImage as zr } from "./components/ui/avatar.js";
32
+ import { Badge as Yr, badgeVariants as qr } from "./components/ui/badge.js";
33
+ import { Card as Qr, CardAction as Zr, CardContent as jr, CardDescription as Jr, CardFooter as Xr, CardHeader as $r, CardTitle as re } from "./components/ui/card.js";
34
+ import { Carousel as oe, CarouselContent as te, CarouselItem as ae, CarouselNext as ie, CarouselPrevious as pe } from "./components/ui/carousel.js";
35
+ import { Checkbox as ne } from "./components/ui/checkbox.js";
36
+ import { Dialog as le, DialogClose as ue, DialogContent as fe, DialogDescription as xe, DialogFooter as ce, DialogHeader as de, DialogOverlay as Ce, DialogPortal as ge, DialogTitle as Se, DialogTrigger as Ae } from "./components/ui/dialog.js";
37
+ import { Drawer as Pe, DrawerClose as Te, DrawerContent as he, DrawerDescription as Ie, DrawerFooter as Re, DrawerHeader as ve, DrawerOverlay as we, DrawerPortal as Be, DrawerTitle as Ee, DrawerTrigger as Me } from "./components/ui/drawer.js";
38
+ import { Input as Ue } from "./components/ui/input.js";
39
+ import { Label as Le } from "./components/ui/label.js";
40
+ import { Progress as Ne } from "./components/ui/progress.js";
41
+ import { RadioGroup as _e, RadioGroupItem as ye } from "./components/ui/radio-group.js";
42
+ import { ResizableHandle as He, ResizablePanel as Ve, ResizablePanelGroup as ze } from "./components/ui/resizable.js";
43
+ import { ScrollArea as Ye, ScrollBar as qe } from "./components/ui/scroll-area.js";
44
+ import { Select as Qe, SelectContent as Ze, SelectGroup as je, SelectItem as Je, SelectLabel as Xe, SelectScrollDownButton as $e, SelectScrollUpButton as ro, SelectSeparator as eo, SelectTrigger as oo, SelectValue as to } from "./components/ui/select.js";
45
+ import { Separator as io } from "./components/ui/separator.js";
46
+ import { Sheet as mo, SheetClose as no, SheetContent as so, SheetDescription as lo, SheetFooter as uo, SheetHeader as fo, SheetTitle as xo, SheetTrigger as co } from "./components/ui/sheet.js";
47
+ import { Toaster as go } from "./components/ui/sonner.js";
48
+ import { toast as Ao } from "./shop-minis-react/node_modules/.pnpm/sonner@2.0.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/sonner/dist/index.js";
49
+ import { Skeleton as Po } from "./components/ui/skeleton.js";
50
+ import { useRecentProducts as ho } from "./hooks/user/useRecentProducts.js";
51
+ import { useRecentShops as Ro } from "./hooks/user/useRecentShops.js";
52
+ import { useSavedProducts as wo } from "./hooks/user/useSavedProducts.js";
53
+ import { useSavedProductsActions as Eo } from "./hooks/user/useSavedProductsActions.js";
54
+ import { useFollowedShops as Fo } from "./hooks/user/useFollowedShops.js";
55
+ import { useFollowedShopsActions as bo } from "./hooks/user/useFollowedShopsActions.js";
56
+ import { useCurrentUser as ko } from "./hooks/user/useCurrentUser.js";
57
+ import { useOrders as Oo } from "./hooks/user/useOrders.js";
58
+ import { useBuyerAttributes as yo } from "./hooks/user/useBuyerAttributes.js";
59
+ import { useGenerateUserToken as Ho } from "./hooks/user/useGenerateUserToken.js";
60
+ import { useProductListActions as zo } from "./hooks/product/useProductListActions.js";
61
+ import { useProductLists as Yo } from "./hooks/product/useProductLists.js";
62
+ import { useProductList as Ko } from "./hooks/product/useProductList.js";
63
+ import { useProduct as Zo } from "./hooks/product/useProduct.js";
64
+ import { useProducts as Jo } from "./hooks/product/useProducts.js";
65
+ import { useProductVariants as $o } from "./hooks/product/useProductVariants.js";
66
+ import { useProductMedia as et } from "./hooks/product/useProductMedia.js";
67
+ import { useProductReviews as tt } from "./hooks/product/useProductReviews.js";
68
+ import { useProductSearch as it } from "./hooks/product/useProductSearch.js";
69
+ import { useRecommendedProducts as mt } from "./hooks/product/useRecommendedProducts.js";
70
+ import { usePopularProducts as st } from "./hooks/product/usePopularProducts.js";
71
+ import { useAsyncStorage as ut } from "./hooks/storage/useAsyncStorage.js";
72
+ import { useSecureStorage as xt } from "./hooks/storage/useSecureStorage.js";
73
+ import { useImageUpload as dt } from "./hooks/storage/useImageUpload.js";
74
+ import { useShopNavigation as gt } from "./hooks/navigation/useShopNavigation.js";
75
+ import { useCloseMini as At } from "./hooks/navigation/useCloseMini.js";
76
+ import { useDeeplink as Pt } from "./hooks/navigation/useDeeplink.js";
77
+ import { useNavigateWithTransition as ht } from "./hooks/navigation/useNavigateWithTransition.js";
78
+ import { useShop as Rt } from "./hooks/shop/useShop.js";
79
+ import { useRecommendedShops as wt } from "./hooks/shop/useRecommendedShops.js";
80
+ import { useCreateImageContent as Et } from "./hooks/content/useCreateImageContent.js";
81
+ import { useErrorToast as Ft } from "./hooks/util/useErrorToast.js";
82
+ import { useErrorScreen as bt } from "./hooks/util/useErrorScreen.js";
83
+ import { useShare as kt } from "./hooks/util/useShare.js";
84
+ import { useImagePicker as Ot } from "./hooks/util/useImagePicker.js";
85
+ import { useKeyboardAvoidingView as yt } from "./hooks/util/useKeyboardAvoidingView.js";
86
+ import { useRequestPermissions as Ht } from "./hooks/util/useRequestPermissions.js";
87
+ import { useOnMiniFocus as zt } from "./hooks/events/useOnMiniFocus.js";
88
+ import { useOnMiniBlur as Yt } from "./hooks/events/useOnMiniBlur.js";
89
+ import { useOnMiniClose as Kt } from "./hooks/events/useOnMiniClose.js";
90
+ import { useOnAppStateChange as Zt } from "./hooks/events/useOnAppStateChange.js";
91
+ import { useOnNavigateBack as Jt } from "./hooks/events/useOnNavigateBack.js";
92
+ import { buildDeeplinkUrl as $t } from "./utils/buildDeeplinkUrl.js";
93
+ import { MiniEntityNotFoundError as ea, MiniError as oa, MiniNetworkError as ta, formatError as aa } from "./utils/errors.js";
94
+ import { extractBrandTheme as pa, formatReviewCount as ma, getFeaturedImages as na, normalizeRating as sa } from "./utils/merchant-card.js";
95
+ import { parseUrl as ua } from "./utils/parseUrl.js";
96
+ import { dataURLToBlob as xa, fileToDataUri as ca, getResizedImageUrl as da, getThumbhashBlobURL as Ca, getThumbhashDataURL as ga } from "./utils/image.js";
97
+ import { formatMoney as Aa } from "./utils/formatMoney.js";
98
+ import { UserState as Pa, UserTokenGenerateUserErrorCode as Ta } from "./shop-minis-platform/src/types/user.js";
99
+ import { ContentCreateUserErrorCode as Ia, MinisContentStatus as Ra } from "./shop-minis-platform/src/types/content.js";
100
+ import { Social as wa } from "./shop-minis-platform/src/types/share.js";
101
+ import { DATA_FETCHING_DEFAULT_FETCH_POLICY as Ea, DATA_FETCHING_DEFAULT_PAGE_SIZE as Ma } from "./shop-minis-platform/src/constants.js";
101
102
  export {
102
- Sr as Accordion,
103
- Dr as AccordionContent,
104
- Ar as AccordionItem,
105
- Pr as AccordionTrigger,
106
- n as AddToCartButton,
107
- hr as Alert,
108
- Ir as AlertDescription,
109
- wr as AlertDialog,
110
- Br as AlertDialogAction,
103
+ Dr as Accordion,
104
+ Pr as AccordionContent,
105
+ Tr as AccordionItem,
106
+ hr as AccordionTrigger,
107
+ m as AddToCartButton,
108
+ Rr as Alert,
109
+ vr as AlertDescription,
110
+ Er as AlertDialog,
111
+ Mr as AlertDialogAction,
111
112
  pr as AlertDialogAtom,
112
- Er as AlertDialogCancel,
113
- Mr as AlertDialogContent,
114
- Fr as AlertDialogDescription,
115
- Ur as AlertDialogFooter,
116
- br as AlertDialogHeader,
117
- Lr as AlertDialogOverlay,
118
- kr as AlertDialogPortal,
119
- Nr as AlertDialogTitle,
120
- Or as AlertDialogTrigger,
121
- Rr as AlertTitle,
122
- yr as Avatar,
123
- Gr as AvatarFallback,
124
- Hr as AvatarImage,
125
- zr as Badge,
113
+ Fr as AlertDialogCancel,
114
+ Ur as AlertDialogContent,
115
+ br as AlertDialogDescription,
116
+ Lr as AlertDialogFooter,
117
+ kr as AlertDialogHeader,
118
+ Nr as AlertDialogOverlay,
119
+ Or as AlertDialogPortal,
120
+ _r as AlertDialogTitle,
121
+ yr as AlertDialogTrigger,
122
+ wr as AlertTitle,
123
+ Hr as Avatar,
124
+ Vr as AvatarFallback,
125
+ zr as AvatarImage,
126
+ Yr as Badge,
126
127
  j as Button,
127
128
  s as BuyNowButton,
128
- qr as Card,
129
- Kr as CardAction,
130
- Qr as CardContent,
131
- Zr as CardDescription,
132
- jr as CardFooter,
133
- Jr as CardHeader,
134
- Xr as CardTitle,
135
- re as Carousel,
136
- ee as CarouselContent,
137
- oe as CarouselItem,
138
- te as CarouselNext,
139
- ae as CarouselPrevious,
140
- pe as Checkbox,
141
- Ta as ContentCreateUserErrorCode,
129
+ Qr as Card,
130
+ Zr as CardAction,
131
+ jr as CardContent,
132
+ Jr as CardDescription,
133
+ Xr as CardFooter,
134
+ $r as CardHeader,
135
+ re as CardTitle,
136
+ oe as Carousel,
137
+ te as CarouselContent,
138
+ ae as CarouselItem,
139
+ ie as CarouselNext,
140
+ pe as CarouselPrevious,
141
+ ne as Checkbox,
142
+ Ia as ContentCreateUserErrorCode,
142
143
  cr as ContentWrapper,
143
- wa as DATA_FETCHING_DEFAULT_FETCH_POLICY,
144
- Ba as DATA_FETCHING_DEFAULT_PAGE_SIZE,
144
+ Ea as DATA_FETCHING_DEFAULT_FETCH_POLICY,
145
+ Ma as DATA_FETCHING_DEFAULT_PAGE_SIZE,
145
146
  o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
146
- me as Dialog,
147
- se as DialogClose,
148
- le as DialogContent,
149
- ue as DialogDescription,
150
- fe as DialogFooter,
151
- xe as DialogHeader,
152
- ce as DialogOverlay,
153
- de as DialogPortal,
154
- Ce as DialogTitle,
155
- ge as DialogTrigger,
156
- De as Drawer,
157
- Ae as DrawerClose,
158
- Pe as DrawerContent,
159
- Te as DrawerDescription,
160
- he as DrawerFooter,
161
- Ie as DrawerHeader,
162
- Re as DrawerOverlay,
163
- ve as DrawerPortal,
164
- we as DrawerTitle,
165
- Be as DrawerTrigger,
147
+ le as Dialog,
148
+ ue as DialogClose,
149
+ fe as DialogContent,
150
+ xe as DialogDescription,
151
+ ce as DialogFooter,
152
+ de as DialogHeader,
153
+ Ce as DialogOverlay,
154
+ ge as DialogPortal,
155
+ Se as DialogTitle,
156
+ Ae as DialogTrigger,
157
+ Pe as Drawer,
158
+ Te as DrawerClose,
159
+ he as DrawerContent,
160
+ Ie as DrawerDescription,
161
+ Re as DrawerFooter,
162
+ ve as DrawerHeader,
163
+ we as DrawerOverlay,
164
+ Be as DrawerPortal,
165
+ Ee as DrawerTitle,
166
+ Me as DrawerTrigger,
166
167
  V as FavoriteButton,
167
168
  X as IconButton,
168
169
  rr as Image,
169
170
  W as ImageContentWrapper,
170
- Me as Input,
171
- Ue as Label,
172
- mr as List,
171
+ Ue as Input,
172
+ Le as Label,
173
+ nr as List,
173
174
  ar as LongPressDetector,
174
175
  I as MerchantCard,
175
176
  R as MerchantCardContainer,
@@ -178,11 +179,11 @@ export {
178
179
  B as MerchantCardName,
179
180
  E as MerchantCardRating,
180
181
  b as MerchantCardSkeleton,
181
- $t as MiniEntityNotFoundError,
182
- ra as MiniError,
183
- ea as MiniNetworkError,
182
+ ea as MiniEntityNotFoundError,
183
+ oa as MiniError,
184
+ ta as MiniNetworkError,
184
185
  i as MinisContainer,
185
- ha as MinisContentStatus,
186
+ Ra as MinisContentStatus,
186
187
  q as MinisRouter,
187
188
  t as NAVIGATION_TYPES,
188
189
  u as ProductCard,
@@ -193,108 +194,109 @@ export {
193
194
  C as ProductCardImageContainer,
194
195
  g as ProductCardInfo,
195
196
  S as ProductCardPrice,
196
- D as ProductCardReviewStars,
197
+ A as ProductCardReviewStars,
197
198
  F as ProductCardSkeleton,
198
- A as ProductCardTitle,
199
+ D as ProductCardTitle,
199
200
  T as ProductLink,
200
201
  Cr as ProductVariantPrice,
201
- Le as Progress,
202
+ Ne as Progress,
202
203
  k as QuantitySelector,
203
- Ne as RadioGroup,
204
- Oe as RadioGroupItem,
205
- ye as ResizableHandle,
206
- Ge as ResizablePanel,
207
- He as ResizablePanelGroup,
208
- ze as ScrollArea,
209
- We as ScrollBar,
204
+ _e as RadioGroup,
205
+ ye as RadioGroupItem,
206
+ He as ResizableHandle,
207
+ Ve as ResizablePanel,
208
+ ze as ResizablePanelGroup,
209
+ Ye as ScrollArea,
210
+ qe as ScrollBar,
210
211
  O as Search,
211
212
  _ as SearchInput,
212
213
  y as SearchProvider,
213
214
  G as SearchResultsList,
214
- qe as Select,
215
- Ke as SelectContent,
216
- Qe as SelectGroup,
217
- Ze as SelectItem,
218
- je as SelectLabel,
219
- Je as SelectScrollDownButton,
220
- Xe as SelectScrollUpButton,
221
- $e as SelectSeparator,
222
- ro as SelectTrigger,
223
- eo as SelectValue,
224
- to as Separator,
225
- io as Sheet,
226
- po as SheetClose,
227
- no as SheetContent,
228
- mo as SheetDescription,
229
- so as SheetFooter,
230
- lo as SheetHeader,
231
- uo as SheetTitle,
232
- fo as SheetTrigger,
233
- Do as Skeleton,
234
- Ra as Social,
215
+ Qe as Select,
216
+ Ze as SelectContent,
217
+ je as SelectGroup,
218
+ Je as SelectItem,
219
+ Xe as SelectLabel,
220
+ $e as SelectScrollDownButton,
221
+ ro as SelectScrollUpButton,
222
+ eo as SelectSeparator,
223
+ oo as SelectTrigger,
224
+ to as SelectValue,
225
+ io as Separator,
226
+ mo as Sheet,
227
+ no as SheetClose,
228
+ so as SheetContent,
229
+ lo as SheetDescription,
230
+ uo as SheetFooter,
231
+ fo as SheetHeader,
232
+ xo as SheetTitle,
233
+ co as SheetTrigger,
234
+ Po as Skeleton,
235
+ wa as Social,
236
+ Sr as StaticArea,
235
237
  fr as TextInput,
236
- co as Toaster,
238
+ go as Toaster,
237
239
  or as Touchable,
238
240
  Q as TransitionLink,
239
- Da as UserState,
240
- Aa as UserTokenGenerateUserErrorCode,
241
+ Pa as UserState,
242
+ Ta as UserTokenGenerateUserErrorCode,
241
243
  lr as VideoPlayer,
242
- Wr as badgeVariants,
243
- Jt as buildDeeplinkUrl,
244
- ua as dataURLToBlob,
245
- aa as extractBrandTheme,
246
- fa as fileToDataUri,
247
- oa as formatError,
248
- ga as formatMoney,
249
- ia as formatReviewCount,
250
- pa as getFeaturedImages,
251
- xa as getResizedImageUrl,
252
- ca as getThumbhashBlobURL,
253
- da as getThumbhashDataURL,
254
- na as normalizeRating,
255
- sa as parseUrl,
256
- go as toast,
257
- st as useAsyncStorage,
258
- Oo as useBuyerAttributes,
259
- gt as useCloseMini,
260
- wt as useCreateImageContent,
261
- bo as useCurrentUser,
262
- Dt as useDeeplink,
263
- Ft as useErrorScreen,
264
- Et as useErrorToast,
265
- Eo as useFollowedShops,
266
- Fo as useFollowedShopsActions,
267
- yo as useGenerateUserToken,
268
- kt as useImagePicker,
269
- xt as useImageUpload,
270
- Ot as useKeyboardAvoidingView,
271
- Pt as useNavigateWithTransition,
272
- Kt as useOnAppStateChange,
273
- zt as useOnMiniBlur,
274
- Yt as useOnMiniClose,
275
- Ht as useOnMiniFocus,
276
- Zt as useOnNavigateBack,
277
- ko as useOrders,
278
- nt as usePopularProducts,
279
- Ko as useProduct,
280
- Yo as useProductList,
281
- Ho as useProductListActions,
282
- zo as useProductLists,
283
- $o as useProductMedia,
284
- et as useProductReviews,
285
- tt as useProductSearch,
286
- Jo as useProductVariants,
287
- Zo as useProducts,
288
- Po as useRecentProducts,
289
- ho as useRecentShops,
290
- it as useRecommendedProducts,
291
- Rt as useRecommendedShops,
292
- yt as useRequestPermissions,
293
- Ro as useSavedProducts,
294
- wo as useSavedProductsActions,
295
- ut as useSecureStorage,
296
- bt as useShare,
297
- ht as useShop,
298
- dt as useShopNavigation
244
+ qr as badgeVariants,
245
+ $t as buildDeeplinkUrl,
246
+ xa as dataURLToBlob,
247
+ pa as extractBrandTheme,
248
+ ca as fileToDataUri,
249
+ aa as formatError,
250
+ Aa as formatMoney,
251
+ ma as formatReviewCount,
252
+ na as getFeaturedImages,
253
+ da as getResizedImageUrl,
254
+ Ca as getThumbhashBlobURL,
255
+ ga as getThumbhashDataURL,
256
+ sa as normalizeRating,
257
+ ua as parseUrl,
258
+ Ao as toast,
259
+ ut as useAsyncStorage,
260
+ yo as useBuyerAttributes,
261
+ At as useCloseMini,
262
+ Et as useCreateImageContent,
263
+ ko as useCurrentUser,
264
+ Pt as useDeeplink,
265
+ bt as useErrorScreen,
266
+ Ft as useErrorToast,
267
+ Fo as useFollowedShops,
268
+ bo as useFollowedShopsActions,
269
+ Ho as useGenerateUserToken,
270
+ Ot as useImagePicker,
271
+ dt as useImageUpload,
272
+ yt as useKeyboardAvoidingView,
273
+ ht as useNavigateWithTransition,
274
+ Zt as useOnAppStateChange,
275
+ Yt as useOnMiniBlur,
276
+ Kt as useOnMiniClose,
277
+ zt as useOnMiniFocus,
278
+ Jt as useOnNavigateBack,
279
+ Oo as useOrders,
280
+ st as usePopularProducts,
281
+ Zo as useProduct,
282
+ Ko as useProductList,
283
+ zo as useProductListActions,
284
+ Yo as useProductLists,
285
+ et as useProductMedia,
286
+ tt as useProductReviews,
287
+ it as useProductSearch,
288
+ $o as useProductVariants,
289
+ Jo as useProducts,
290
+ ho as useRecentProducts,
291
+ Ro as useRecentShops,
292
+ mt as useRecommendedProducts,
293
+ wt as useRecommendedShops,
294
+ Ht as useRequestPermissions,
295
+ wo as useSavedProducts,
296
+ Eo as useSavedProductsActions,
297
+ xt as useSecureStorage,
298
+ kt as useShare,
299
+ Rt as useShop,
300
+ gt as useShopNavigation
299
301
  };
300
302
  //# 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shopify/shop-minis-react",
3
3
  "license": "SEE LICENSE IN LICENSE.txt",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "engines": {
@@ -0,0 +1,28 @@
1
+ export interface StaticAreaDocProps {
2
+ /** Position of the fixed area on screen - either pinned to top or bottom */
3
+ position: 'top' | 'bottom'
4
+ /** Static area content */
5
+ children?: React.ReactNode
6
+ }
7
+
8
+ export function StaticArea({
9
+ position,
10
+ children,
11
+ }: {
12
+ position: 'top' | 'bottom'
13
+ children: React.ReactNode
14
+ }) {
15
+ return (
16
+ <div
17
+ style={{
18
+ position: 'fixed',
19
+ left: 0,
20
+ right: 0,
21
+ [position]: 0,
22
+ viewTransitionName: `minis-fixed-${position}`,
23
+ }}
24
+ >
25
+ {children}
26
+ </div>
27
+ )
28
+ }
@@ -27,6 +27,7 @@ export * from './atoms/video-player'
27
27
  export * from './atoms/text-input'
28
28
  export * from './atoms/content-wrapper'
29
29
  export * from './atoms/product-variant-price'
30
+ export * from './atoms/static-area'
30
31
 
31
32
  export * from './ui/accordion'
32
33
  export * from './ui/alert'
@@ -141,4 +141,16 @@
141
141
  animation: 0 !important;
142
142
  opacity: 0 !important;
143
143
  }
144
+
145
+ /* Fixed elements that persist across view transitions */
146
+ ::view-transition-group(minis-fixed-top),
147
+ ::view-transition-old(minis-fixed-top),
148
+ ::view-transition-new(minis-fixed-top),
149
+ ::view-transition-group(minis-fixed-bottom),
150
+ ::view-transition-old(minis-fixed-bottom),
151
+ ::view-transition-new(minis-fixed-bottom) {
152
+ animation: none !important;
153
+ }
144
154
  }
155
+
156
+