UNPKG

@shopify/shop-minis-react

Version:

React component library for Shopify Shop Minis with Tailwind CSS v4 support (source-only, requires TypeScript)

309 lines (308 loc) 14.7 kB
import { DATA_NAVIGATION_TYPE_ATTRIBUTE as o, NAVIGATION_TYPES as t } from "./types/index.js"; import { MinisContainer as p } from "./components/MinisContainer.js"; import { AddToCartButton as m } from "./components/commerce/add-to-cart.js"; import { BuyNowButton as s } from "./components/commerce/buy-now.js"; 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"; import { ProductLink as T } from "./components/commerce/product-link.js"; 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"; import { ProductCardSkeleton as F } from "./components/commerce/product-card-skeleton.js"; import { MerchantCardSkeleton as b } from "./components/commerce/merchant-card-skeleton.js"; import { QuantitySelector as k } from "./components/commerce/quantity-selector.js"; import { Search as O, SearchInput as _, SearchProvider as y, SearchResultsList as G } from "./components/commerce/search.js"; import { FavoriteButton as V } from "./components/commerce/favorite-button.js"; import { ImageContentWrapper as W } from "./components/content/image-content-wrapper.js"; import { MinisRouter as q } from "./components/navigation/minis-router.js"; import { TransitionLink as Q } from "./components/navigation/transition-link.js"; import { Button as j } from "./components/atoms/button.js"; import { IconButton as X } from "./components/atoms/icon-button.js"; import { Image as rr } from "./components/atoms/image.js"; import { Touchable as or } from "./components/atoms/touchable.js"; import { LongPressDetector as ar } from "./components/atoms/long-press-detector.js"; import { AlertDialogAtom as ir } from "./components/atoms/alert-dialog.js"; import { List as nr } from "./components/atoms/list.js"; import { VideoPlayer as lr } from "./components/atoms/video-player.js"; import { TextInput as fr } from "./components/atoms/text-input.js"; import { ContentWrapper as cr } from "./components/atoms/content-wrapper.js"; import { ProductVariantPrice as Cr } from "./components/atoms/product-variant-price.js"; import { SafeArea as Sr } from "./components/atoms/safe-area.js"; import { StaticArea as Dr } from "./components/atoms/static-area.js"; import { Accordion as Tr, AccordionContent as hr, AccordionItem as Ir, AccordionTrigger as Rr } from "./components/ui/accordion.js"; import { Alert as wr, AlertDescription as Br, AlertTitle as Er } from "./components/ui/alert.js"; import { AlertDialog as Fr, AlertDialogAction as Ur, AlertDialogCancel as br, AlertDialogContent as Lr, AlertDialogDescription as kr, AlertDialogFooter as Nr, AlertDialogHeader as Or, AlertDialogOverlay as _r, AlertDialogPortal as yr, AlertDialogTitle as Gr, AlertDialogTrigger as Hr } from "./components/ui/alert-dialog.js"; import { Avatar as zr, AvatarFallback as Wr, AvatarImage as Yr } from "./components/ui/avatar.js"; import { Badge as Kr, badgeVariants as Qr } from "./components/ui/badge.js"; import { Card as jr, CardAction as Jr, CardContent as Xr, CardDescription as $r, CardFooter as re, CardHeader as ee, CardTitle as oe } from "./components/ui/card.js"; import { Carousel as ae, CarouselContent as pe, CarouselItem as ie, CarouselNext as me, CarouselPrevious as ne } from "./components/ui/carousel.js"; import { Checkbox as le } from "./components/ui/checkbox.js"; import { Dialog as fe, DialogClose as xe, DialogContent as ce, DialogDescription as de, DialogFooter as Ce, DialogHeader as ge, DialogOverlay as Se, DialogPortal as Ae, DialogTitle as De, DialogTrigger as Pe } from "./components/ui/dialog.js"; import { Drawer as he, DrawerClose as Ie, DrawerContent as Re, DrawerDescription as ve, DrawerFooter as we, DrawerHeader as Be, DrawerOverlay as Ee, DrawerPortal as Me, DrawerTitle as Fe, DrawerTrigger as Ue } from "./components/ui/drawer.js"; import { Input as Le } from "./components/ui/input.js"; import { Label as Ne } from "./components/ui/label.js"; import { Progress as _e } from "./components/ui/progress.js"; import { RadioGroup as Ge, RadioGroupItem as He } from "./components/ui/radio-group.js"; import { ResizableHandle as ze, ResizablePanel as We, ResizablePanelGroup as Ye } from "./components/ui/resizable.js"; import { ScrollArea as Ke, ScrollBar as Qe } from "./components/ui/scroll-area.js"; import { Select as je, SelectContent as Je, SelectGroup as Xe, SelectItem as $e, SelectLabel as ro, SelectScrollDownButton as eo, SelectScrollUpButton as oo, SelectSeparator as to, SelectTrigger as ao, SelectValue as po } from "./components/ui/select.js"; import { Separator as mo } from "./components/ui/separator.js"; import { Sheet as so, SheetClose as lo, SheetContent as uo, SheetDescription as fo, SheetFooter as xo, SheetHeader as co, SheetTitle as Co, SheetTrigger as go } from "./components/ui/sheet.js"; import { Toaster as Ao } from "./components/ui/sonner.js"; import { toast as Po } 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"; import { Skeleton as ho } from "./components/ui/skeleton.js"; import { useRecentProducts as Ro } from "./hooks/user/useRecentProducts.js"; import { useRecentShops as wo } from "./hooks/user/useRecentShops.js"; import { useSavedProducts as Eo } from "./hooks/user/useSavedProducts.js"; import { useSavedProductsActions as Fo } from "./hooks/user/useSavedProductsActions.js"; import { useFollowedShops as bo } from "./hooks/user/useFollowedShops.js"; import { useFollowedShopsActions as ko } from "./hooks/user/useFollowedShopsActions.js"; import { useCurrentUser as Oo } from "./hooks/user/useCurrentUser.js"; import { useOrders as yo } from "./hooks/user/useOrders.js"; import { useBuyerAttributes as Ho } from "./hooks/user/useBuyerAttributes.js"; import { useGenerateUserToken as zo } from "./hooks/user/useGenerateUserToken.js"; import { useProductListActions as Yo } from "./hooks/product/useProductListActions.js"; import { useProductLists as Ko } from "./hooks/product/useProductLists.js"; import { useProductList as Zo } from "./hooks/product/useProductList.js"; import { useProduct as Jo } from "./hooks/product/useProduct.js"; import { useProducts as $o } from "./hooks/product/useProducts.js"; import { useProductVariants as et } from "./hooks/product/useProductVariants.js"; import { useProductMedia as tt } from "./hooks/product/useProductMedia.js"; import { useProductReviews as pt } from "./hooks/product/useProductReviews.js"; import { useProductSearch as mt } from "./hooks/product/useProductSearch.js"; import { useRecommendedProducts as st } from "./hooks/product/useRecommendedProducts.js"; import { usePopularProducts as ut } from "./hooks/product/usePopularProducts.js"; import { useARPreview as xt } from "./hooks/product/useARPreview.js"; import { useAsyncStorage as dt } from "./hooks/storage/useAsyncStorage.js"; import { useSecureStorage as gt } from "./hooks/storage/useSecureStorage.js"; import { useImageUpload as At } from "./hooks/storage/useImageUpload.js"; import { useShopNavigation as Pt } from "./hooks/navigation/useShopNavigation.js"; import { useCloseMini as ht } from "./hooks/navigation/useCloseMini.js"; import { useDeeplink as Rt } from "./hooks/navigation/useDeeplink.js"; import { useNavigateWithTransition as wt } from "./hooks/navigation/useNavigateWithTransition.js"; import { useShop as Et } from "./hooks/shop/useShop.js"; import { useRecommendedShops as Ft } from "./hooks/shop/useRecommendedShops.js"; import { useCreateImageContent as bt } from "./hooks/content/useCreateImageContent.js"; import { useErrorToast as kt } from "./hooks/util/useErrorToast.js"; import { useErrorScreen as Ot } from "./hooks/util/useErrorScreen.js"; import { useSafeArea as yt } from "./hooks/util/useSafeArea.js"; import { useShare as Ht } from "./hooks/util/useShare.js"; import { useImagePicker as zt } from "./hooks/util/useImagePicker.js"; import { useKeyboardAvoidingView as Yt } from "./hooks/util/useKeyboardAvoidingView.js"; import { useRequestPermissions as Kt } from "./hooks/util/useRequestPermissions.js"; import { useOnMiniFocus as Zt } from "./hooks/events/useOnMiniFocus.js"; import { useOnMiniBlur as Jt } from "./hooks/events/useOnMiniBlur.js"; import { useOnMiniClose as $t } from "./hooks/events/useOnMiniClose.js"; import { useOnAppStateChange as ea } from "./hooks/events/useOnAppStateChange.js"; import { useOnNavigateBack as ta } from "./hooks/events/useOnNavigateBack.js"; import { buildDeeplinkUrl as pa } from "./utils/buildDeeplinkUrl.js"; import { MiniEntityNotFoundError as ma, MiniError as na, MiniNetworkError as sa, formatError as la } from "./utils/errors.js"; import { extractBrandTheme as fa, formatReviewCount as xa, getFeaturedImages as ca, normalizeRating as da } from "./utils/merchant-card.js"; import { parseUrl as ga } from "./utils/parseUrl.js"; import { dataURLToBlob as Aa, fileToDataUri as Da, getResizedImageUrl as Pa, getThumbhashBlobURL as Ta, getThumbhashDataURL as ha } from "./utils/image.js"; import { formatMoney as Ra } from "./utils/formatMoney.js"; import { UserState as wa, UserTokenGenerateUserErrorCode as Ba } from "./shop-minis-platform/src/types/user.js"; import { ContentCreateUserErrorCode as Ma, MinisContentStatus as Fa } from "./shop-minis-platform/src/types/content.js"; import { Social as ba } from "./shop-minis-platform/src/types/share.js"; import { DATA_FETCHING_DEFAULT_FETCH_POLICY as ka, DATA_FETCHING_DEFAULT_PAGE_SIZE as Na } from "./shop-minis-platform/src/constants.js"; export { Tr as Accordion, hr as AccordionContent, Ir as AccordionItem, Rr as AccordionTrigger, m as AddToCartButton, wr as Alert, Br as AlertDescription, Fr as AlertDialog, Ur as AlertDialogAction, ir as AlertDialogAtom, br as AlertDialogCancel, Lr as AlertDialogContent, kr as AlertDialogDescription, Nr as AlertDialogFooter, Or as AlertDialogHeader, _r as AlertDialogOverlay, yr as AlertDialogPortal, Gr as AlertDialogTitle, Hr as AlertDialogTrigger, Er as AlertTitle, zr as Avatar, Wr as AvatarFallback, Yr as AvatarImage, Kr as Badge, j as Button, s as BuyNowButton, jr as Card, Jr as CardAction, Xr as CardContent, $r as CardDescription, re as CardFooter, ee as CardHeader, oe as CardTitle, ae as Carousel, pe as CarouselContent, ie as CarouselItem, me as CarouselNext, ne as CarouselPrevious, le as Checkbox, Ma as ContentCreateUserErrorCode, cr as ContentWrapper, ka as DATA_FETCHING_DEFAULT_FETCH_POLICY, Na as DATA_FETCHING_DEFAULT_PAGE_SIZE, o as DATA_NAVIGATION_TYPE_ATTRIBUTE, fe as Dialog, xe as DialogClose, ce as DialogContent, de as DialogDescription, Ce as DialogFooter, ge as DialogHeader, Se as DialogOverlay, Ae as DialogPortal, De as DialogTitle, Pe as DialogTrigger, he as Drawer, Ie as DrawerClose, Re as DrawerContent, ve as DrawerDescription, we as DrawerFooter, Be as DrawerHeader, Ee as DrawerOverlay, Me as DrawerPortal, Fe as DrawerTitle, Ue as DrawerTrigger, V as FavoriteButton, X as IconButton, rr as Image, W as ImageContentWrapper, Le as Input, Ne as Label, nr as List, ar as LongPressDetector, I as MerchantCard, R as MerchantCardContainer, v as MerchantCardHeader, w as MerchantCardInfo, B as MerchantCardName, E as MerchantCardRating, b as MerchantCardSkeleton, ma as MiniEntityNotFoundError, na as MiniError, sa as MiniNetworkError, p as MinisContainer, Fa as MinisContentStatus, q as MinisRouter, t as NAVIGATION_TYPES, u as ProductCard, f as ProductCardBadge, x as ProductCardContainer, c as ProductCardFavoriteButton, d as ProductCardImage, C as ProductCardImageContainer, g as ProductCardInfo, S as ProductCardPrice, A as ProductCardReviewStars, F as ProductCardSkeleton, D as ProductCardTitle, T as ProductLink, Cr as ProductVariantPrice, _e as Progress, k as QuantitySelector, Ge as RadioGroup, He as RadioGroupItem, ze as ResizableHandle, We as ResizablePanel, Ye as ResizablePanelGroup, Sr as SafeArea, Ke as ScrollArea, Qe as ScrollBar, O as Search, _ as SearchInput, y as SearchProvider, G as SearchResultsList, je as Select, Je as SelectContent, Xe as SelectGroup, $e as SelectItem, ro as SelectLabel, eo as SelectScrollDownButton, oo as SelectScrollUpButton, to as SelectSeparator, ao as SelectTrigger, po as SelectValue, mo as Separator, so as Sheet, lo as SheetClose, uo as SheetContent, fo as SheetDescription, xo as SheetFooter, co as SheetHeader, Co as SheetTitle, go as SheetTrigger, ho as Skeleton, ba as Social, Dr as StaticArea, fr as TextInput, Ao as Toaster, or as Touchable, Q as TransitionLink, wa as UserState, Ba as UserTokenGenerateUserErrorCode, lr as VideoPlayer, Qr as badgeVariants, pa as buildDeeplinkUrl, Aa as dataURLToBlob, fa as extractBrandTheme, Da as fileToDataUri, la as formatError, Ra as formatMoney, xa as formatReviewCount, ca as getFeaturedImages, Pa as getResizedImageUrl, Ta as getThumbhashBlobURL, ha as getThumbhashDataURL, da as normalizeRating, ga as parseUrl, Po as toast, xt as useARPreview, dt as useAsyncStorage, Ho as useBuyerAttributes, ht as useCloseMini, bt as useCreateImageContent, Oo as useCurrentUser, Rt as useDeeplink, Ot as useErrorScreen, kt as useErrorToast, bo as useFollowedShops, ko as useFollowedShopsActions, zo as useGenerateUserToken, zt as useImagePicker, At as useImageUpload, Yt as useKeyboardAvoidingView, wt as useNavigateWithTransition, ea as useOnAppStateChange, Jt as useOnMiniBlur, $t as useOnMiniClose, Zt as useOnMiniFocus, ta as useOnNavigateBack, yo as useOrders, ut as usePopularProducts, Jo as useProduct, Zo as useProductList, Yo as useProductListActions, Ko as useProductLists, tt as useProductMedia, pt as useProductReviews, mt as useProductSearch, et as useProductVariants, $o as useProducts, Ro as useRecentProducts, wo as useRecentShops, st as useRecommendedProducts, Ft as useRecommendedShops, Kt as useRequestPermissions, yt as useSafeArea, Eo as useSavedProducts, Fo as useSavedProductsActions, gt as useSecureStorage, Ht as useShare, Et as useShop, Pt as useShopNavigation }; //# sourceMappingURL=index.js.map