@ahsan.munir1/reelcart-sdk
v1.1.2
Published
Video carousel SDK for Shopify headless storefronts (shared UI from ReelCart)
Maintainers
Readme
@ahsan.munir1/reelcart-sdk
Video carousel and product-page video widget for Shopify headless storefronts.
Same React components used by the ReelCart Theme App Extension.
Install
npm install @ahsan.munir1/reelcart-sdk react-modal react-toastify swiperPeer dependencies: react, react-dom.
Styles
import "@ahsan.munir1/reelcart-sdk/styles.css";
import "swiper/css";
import "swiper/css/navigation";
import "swiper/css/free-mode";
import "swiper/css/effect-coverflow";
import "react-toastify/dist/ReactToastify.css";Video carousel (collection / homepage)
import { VideoCarousel, VideoModal } from "@ahsan.munir1/reelcart-sdk";
<VideoCarousel
data={videos}
VideoModalComponent={YourHeadlessVideoModal}
/>API: GET {apiUrl}/getStoreVideos/{shop}
Product page video widget (floating draggable video)
import { ProductView, ProductViewModal } from "@ahsan.munir1/reelcart-sdk";
<ProductView
data={videoMeta}
videoUrl={videoMeta.videoUrl}
productData={videoMeta.taggedProduct}
onVideoOpen={trackClick}
ProductViewModalComponent={YourHeadlessProductViewModal}
/>API: GET {apiUrl}/getProductVideo/{productId}
Shared analytics
POST {apiUrl}/postvideostatsPOST {apiUrl}/postcart
Cart and pricing are wired via modal props (Storefront API / Hydrogen).
