@katajere/recap 2.1.7 → 2.1.9
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/App.css +8 -0
- package/dist/LoginScreen.css +6 -139
- package/dist/OtpScreen.css +5 -127
- package/dist/RecapApp.d.ts +4 -1
- package/dist/RecapApp.d.ts.map +1 -1
- package/dist/RecapApp.js +2 -2
- package/dist/RecapLoadingScreen.css +11 -0
- package/dist/RecapStory.d.ts +8 -4
- package/dist/RecapStory.d.ts.map +1 -1
- package/dist/RecapStory.js +5 -254
- package/dist/StoryProgress.d.ts +2 -2
- package/dist/StoryProgress.d.ts.map +1 -1
- package/dist/StoryProgress.js +11 -68
- package/dist/assets/fluctuating/notification-left.svg +30 -0
- package/dist/assets/fluctuating/notification-right.svg +30 -0
- package/dist/assets/fluctuating/notification-top.svg +30 -0
- package/dist/assets/fluctuating/phone-body.svg +18 -0
- package/dist/assets/fluctuating/phone-detail.svg +6 -0
- package/dist/assets/fluctuating/phone-floor.svg +5 -0
- package/dist/assets/fluctuating/phone-marks.svg +8 -0
- package/dist/assets/fluctuating/phone-pulse.svg +7 -0
- package/dist/assets/fluctuating/wave-mask.svg +5 -0
- package/dist/assets/fluctuating/wave.svg +24 -0
- package/dist/assets/low-data/book-left-page.svg +7 -0
- package/dist/assets/low-data/book-right-leaf.svg +6 -0
- package/dist/assets/low-data/book-right-page.svg +5 -0
- package/dist/assets/low-data/book-spine.svg +5 -0
- package/dist/assets/low-data/sign-cord-left.svg +17 -0
- package/dist/assets/low-data/sign-cord-right.svg +17 -0
- package/dist/assets/low-data/sign-edge.svg +5 -0
- package/dist/assets/low-data/sign-eyelet-left.svg +15 -0
- package/dist/assets/low-data/sign-eyelet-right.svg +15 -0
- package/dist/assets/low-data/sign-face-detail.svg +18 -0
- package/dist/assets/low-data/sign-face.svg +10 -0
- package/dist/assets/low-data/sign-inner-bevel.svg +11 -0
- package/dist/assets/low-data/sign-lettering.svg +26 -0
- package/dist/assets/low-data/sign-pin.svg +15 -0
- package/dist/assets/low-data/sign-plaque.svg +19 -0
- package/dist/assets/low-data/sign-rim-bottom.svg +3 -0
- package/dist/assets/low-data/sign-rim-top.svg +3 -0
- package/dist/assets/low-data/store-browser.svg +10 -0
- package/dist/assets/low-data/store-cursor.svg +5 -0
- package/dist/assets/low-data/store-ground.svg +5 -0
- package/dist/assets/recap-intro/close.svg +5 -0
- package/dist/assets/recap-intro/loading-bar-1.png +0 -0
- package/dist/assets/recap-intro/loading-bar-2.png +0 -0
- package/dist/assets/recap-intro/tunnel.svg +516 -0
- package/dist/assets/steady/bag/badge.svg +9 -0
- package/dist/assets/steady/bag/body.svg +105 -0
- package/dist/assets/steady/bag/front-handle-inner.svg +353 -0
- package/dist/assets/steady/bag/front-handle.svg +10 -0
- package/dist/assets/steady/bag/hand.svg +208 -0
- package/dist/assets/steady/bag/rear-handle-inner.svg +297 -0
- package/dist/assets/steady/bag/rear-handle-top.svg +3 -0
- package/dist/assets/steady/bag/rear-handle.svg +10 -0
- package/dist/assets/steady/bag/shadow.svg +7 -0
- package/dist/assets/steady/calendar/base.png +0 -0
- package/dist/assets/steady/calendar/tick.svg +6 -0
- package/dist/assets/steady/coin/shimmer-mask.svg +5 -0
- package/dist/assets/steady/coin/shimmer.svg +16 -0
- package/dist/assets/steady/coin.png +0 -0
- package/dist/assets/steady/tree.svg +790 -0
- package/dist/assets/top10/biggest-day/coin-left.svg +21 -0
- package/dist/assets/top10/biggest-day/coin-right.svg +21 -0
- package/dist/assets/top10/biggest-day/coin-top.svg +21 -0
- package/dist/assets/top10/biggest-day/floor.svg +5 -0
- package/dist/assets/top10/biggest-day/illustration.png +0 -0
- package/dist/assets/top10/biggest-day/marks.svg +8 -0
- package/dist/assets/top10/biggest-day/mask.svg +5 -0
- package/dist/assets/top10/biggest-day/phone-body.svg +18 -0
- package/dist/assets/top10/biggest-day/phone-detail.svg +6 -0
- package/dist/assets/top10/closing/imgHccStaticHaloScale.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticHaloScale1.svg +12 -0
- package/dist/assets/top10/closing/imgHccStaticP0Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP10Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP11Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP12Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP13Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP14Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP15Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP16Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP17Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP18Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP19Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP1Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP20Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP21Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP22Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP23Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP24Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP25Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP26Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP27Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP28Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP29Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP2Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP30Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP31Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP32Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP33Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP34Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP35Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP36Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP37Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP38Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP39Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP3Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP40Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP41Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP42Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP43Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP44Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP45Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP46Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP47Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP48Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP49Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP4Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP50Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP51Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP52Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP53Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP54Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP55Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP5Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP6Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP7Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP8Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP9Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgVector.png +0 -0
- package/dist/assets/top10/closing/replay.svg +7 -0
- package/dist/assets/top10/closing/share.svg +6 -0
- package/dist/assets/top10/customers/arrow.svg +6 -0
- package/dist/assets/top10/customers/avatar.svg +61 -0
- package/dist/assets/top10/customers/illustration.png +0 -0
- package/dist/assets/top10/favourite/emoji.svg +9 -0
- package/dist/assets/top10/favourite/heart.svg +8 -0
- package/dist/assets/top10/growth/coin.svg +10 -0
- package/dist/assets/top10/growth/counter-shadow.svg +12 -0
- package/dist/assets/top10/growth/counter.svg +8 -0
- package/dist/assets/top10/growth/highlight.svg +12 -0
- package/dist/assets/top10/growth/illustration.png +0 -0
- package/dist/assets/top10/milestone/illustration.png +0 -0
- package/dist/assets/top10/orders/giver.svg +18 -0
- package/dist/assets/top10/orders/illustration.png +0 -0
- package/dist/assets/top10/orders/mask.svg +5 -0
- package/dist/assets/top10/orders/parcel.svg +16 -0
- package/dist/assets/top10/orders/receiver.svg +20 -0
- package/dist/assets/top10/orders/seal.svg +8 -0
- package/dist/assets/top10/recognition/contact-mask.svg +6 -0
- package/dist/assets/top10/recognition/contact.svg +14 -0
- package/dist/assets/top10/recognition/mask.svg +5 -0
- package/dist/assets/top10/recognition/plug-left.svg +27 -0
- package/dist/assets/top10/recognition/plug-right.svg +23 -0
- package/dist/assets/top10/recognition/pulse.svg +15 -0
- package/dist/assets/top10/recognition/ring.svg +3 -0
- package/dist/assets/top10/shared/avatar.png +0 -0
- package/dist/assets/top10/shared/close-dark.svg +5 -0
- package/dist/assets/top10/shared/close-light.svg +5 -0
- package/dist/assets/top10/signature/glow.svg +13 -0
- package/dist/assets/top10/signature/horizon.svg +12 -0
- package/dist/assets/top10/signature/inner-glow.svg +13 -0
- package/dist/assets/top10/signature/mask.svg +5 -0
- package/dist/assets/top10/signature/rim-glow.svg +13 -0
- package/dist/assets/top10/signature/rim.svg +13 -0
- package/dist/assets/top10/signature/year-mask.svg +5 -0
- package/dist/assets/top10/signature/year-shadow.svg +8 -0
- package/dist/assets/top10/signature/year.svg +30 -0
- package/dist/assets/top10/surprise/illustration.png +0 -0
- package/dist/assets/top10/surprise/note-front.svg +275 -0
- package/dist/assets/zero-order/catalogue-card.svg +15 -0
- package/dist/assets/zero-order/catalogue-ground.svg +3 -0
- package/dist/assets/zero-order/catalogue-window.svg +15 -0
- package/dist/assets/zero-order/storefront-awning.svg +145 -0
- package/dist/assets/zero-order/storefront-chrome.svg +15 -0
- package/dist/assets/zero-order/storefront-door-frame.svg +3 -0
- package/dist/assets/zero-order/storefront-door-glass.svg +14 -0
- package/dist/assets/zero-order/storefront-door-handle-light.svg +3 -0
- package/dist/assets/zero-order/storefront-door-handle-shadow.svg +3 -0
- package/dist/assets/zero-order/storefront-door-handle.svg +3 -0
- package/dist/assets/zero-order/storefront-door-mask.svg +5 -0
- package/dist/assets/zero-order/storefront-door-pane.svg +10 -0
- package/dist/assets/zero-order/storefront-door-panel.svg +3 -0
- package/dist/assets/zero-order/storefront-door-sill.svg +3 -0
- package/dist/assets/zero-order/storefront-ground.svg +3 -0
- package/dist/assets/zero-order/storefront-shell.svg +19 -0
- package/dist/assets/zero-order/storefront-step.svg +8 -0
- package/dist/assets/zero-order/storefront-wall.svg +13 -0
- package/dist/assets/zero-order/storefront-window-frame.svg +3 -0
- package/dist/assets/zero-order/storefront-window-glass.svg +16 -0
- package/dist/assets/zero-order/storefront-window-ledge-edge.svg +3 -0
- package/dist/assets/zero-order/storefront-window-ledge-line.svg +3 -0
- package/dist/assets/zero-order/storefront-window-ledge.svg +3 -0
- package/dist/assets/zero-order/storefront-window-mask.svg +5 -0
- package/dist/assets/zero-order/storefront-window-pane.svg +10 -0
- package/dist/assets/zero-order/storefront-window-sill.svg +3 -0
- package/dist/categories.d.ts +15 -0
- package/dist/categories.d.ts.map +1 -0
- package/dist/categories.js +25 -0
- package/dist/components/RecapIntroLayout.css +225 -0
- package/dist/components/RecapIntroLayout.d.ts +16 -0
- package/dist/components/RecapIntroLayout.d.ts.map +1 -0
- package/dist/components/RecapIntroLayout.js +19 -0
- package/dist/data/mock.d.ts +12 -2
- package/dist/data/mock.d.ts.map +1 -1
- package/dist/data/mock.js +99 -59
- package/dist/data/recapCopy.d.ts +1 -0
- package/dist/data/recapCopy.d.ts.map +1 -1
- package/dist/data/recapCopy.js +30 -21
- package/dist/data/remoteAssets.d.ts +3 -0
- package/dist/data/remoteAssets.d.ts.map +1 -0
- package/dist/data/remoteAssets.js +3 -0
- package/dist/hooks/useBackgroundMusic.d.ts +8 -8
- package/dist/hooks/useBackgroundMusic.d.ts.map +1 -1
- package/dist/hooks/useBackgroundMusic.js +38 -43
- package/dist/hooks/useCountUp.d.ts +16 -0
- package/dist/hooks/useCountUp.d.ts.map +1 -0
- package/dist/hooks/useCountUp.js +15 -0
- package/dist/hooks/useFrameImages.d.ts +5 -0
- package/dist/hooks/useFrameImages.d.ts.map +1 -0
- package/dist/hooks/useFrameImages.js +18 -0
- package/dist/hooks/useSessionValidator.d.ts +14 -0
- package/dist/hooks/useSessionValidator.d.ts.map +1 -0
- package/dist/hooks/useSessionValidator.js +97 -0
- package/dist/hooks/useShareCardPrecapture.d.ts +17 -0
- package/dist/hooks/useShareCardPrecapture.d.ts.map +1 -0
- package/dist/hooks/useShareCardPrecapture.js +35 -0
- package/dist/hooks/useStatusBarColor.d.ts +6 -0
- package/dist/hooks/useStatusBarColor.d.ts.map +1 -0
- package/dist/hooks/useStatusBarColor.js +34 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/slides/Slide10Final.d.ts.map +1 -1
- package/dist/slides/Slide10Final.js +2 -50
- package/dist/slides/Slide1Intro.css +1 -2
- package/dist/slides/Slide1Intro.d.ts.map +1 -1
- package/dist/slides/Slide1Intro.js +21 -25
- package/dist/slides/Slide2Days.d.ts.map +1 -1
- package/dist/slides/Slide2Days.js +7 -44
- package/dist/slides/Slide3Revenue.d.ts.map +1 -1
- package/dist/slides/Slide3Revenue.js +5 -22
- package/dist/slides/Slide4Orders.d.ts.map +1 -1
- package/dist/slides/Slide4Orders.js +12 -41
- package/dist/slides/Slide5Buyers.d.ts.map +1 -1
- package/dist/slides/Slide5Buyers.js +9 -43
- package/dist/slides/Slide6Customer.d.ts.map +1 -1
- package/dist/slides/Slide6Customer.js +3 -19
- package/dist/slides/Slide9Year.d.ts.map +1 -1
- package/dist/slides/Slide9Year.js +3 -21
- package/dist/slides/registry.d.ts +7 -0
- package/dist/slides/registry.d.ts.map +1 -0
- package/dist/slides/registry.js +84 -0
- package/dist/store/auth.d.ts +40 -0
- package/dist/store/auth.d.ts.map +1 -0
- package/dist/store/auth.js +40 -0
- package/dist/story/StoryProgressBars.d.ts +13 -0
- package/dist/story/StoryProgressBars.d.ts.map +1 -0
- package/dist/story/StoryProgressBars.js +12 -0
- package/dist/story/index.d.ts +12 -0
- package/dist/story/index.d.ts.map +1 -0
- package/dist/story/index.js +10 -0
- package/dist/story/resolveStories.d.ts +9 -0
- package/dist/story/resolveStories.d.ts.map +1 -0
- package/dist/story/resolveStories.js +23 -0
- package/dist/story/storyPlayerReducer.d.ts +33 -0
- package/dist/story/storyPlayerReducer.d.ts.map +1 -0
- package/dist/story/storyPlayerReducer.js +55 -0
- package/dist/story/types.d.ts +55 -0
- package/dist/story/types.d.ts.map +1 -0
- package/dist/story/types.js +1 -0
- package/dist/story/usePreloadAssets.d.ts +8 -0
- package/dist/story/usePreloadAssets.d.ts.map +1 -0
- package/dist/story/usePreloadAssets.js +21 -0
- package/dist/story/useStoryGestures.d.ts +23 -0
- package/dist/story/useStoryGestures.d.ts.map +1 -0
- package/dist/story/useStoryGestures.js +60 -0
- package/dist/story/useStoryKeyboard.d.ts +10 -0
- package/dist/story/useStoryKeyboard.d.ts.map +1 -0
- package/dist/story/useStoryKeyboard.js +43 -0
- package/dist/story/useStoryPlayer.d.ts +26 -0
- package/dist/story/useStoryPlayer.d.ts.map +1 -0
- package/dist/story/useStoryPlayer.js +64 -0
- package/dist/story/useStoryTimer.d.ts +16 -0
- package/dist/story/useStoryTimer.d.ts.map +1 -0
- package/dist/story/useStoryTimer.js +34 -0
- package/dist/story/useVideoCaptureBridge.d.ts +6 -0
- package/dist/story/useVideoCaptureBridge.d.ts.map +1 -0
- package/dist/story/useVideoCaptureBridge.js +22 -0
- package/dist/top10/RecapStory2026.d.ts +20 -0
- package/dist/top10/RecapStory2026.d.ts.map +1 -0
- package/dist/top10/RecapStory2026.js +67 -0
- package/dist/top10/Top10Chrome.d.ts +16 -0
- package/dist/top10/Top10Chrome.d.ts.map +1 -0
- package/dist/top10/Top10Chrome.js +15 -0
- package/dist/top10/Top10Slides.css +308 -0
- package/dist/top10/Top10Story.css +250 -0
- package/dist/top10/fluctuatingSlides.d.ts +5 -0
- package/dist/top10/fluctuatingSlides.d.ts.map +1 -0
- package/dist/top10/fluctuatingSlides.js +30 -0
- package/dist/top10/format.d.ts +17 -0
- package/dist/top10/format.d.ts.map +1 -0
- package/dist/top10/format.js +57 -0
- package/dist/top10/illustrations/IllustrationLayers.d.ts +51 -0
- package/dist/top10/illustrations/IllustrationLayers.d.ts.map +1 -0
- package/dist/top10/illustrations/IllustrationLayers.js +51 -0
- package/dist/top10/illustrations/closingAssets.d.ts +2 -0
- package/dist/top10/illustrations/closingAssets.d.ts.map +1 -0
- package/dist/top10/illustrations/closingAssets.js +119 -0
- package/dist/top10/illustrations/closingLayers.json +461 -0
- package/dist/top10/illustrations/index.d.ts +45 -0
- package/dist/top10/illustrations/index.d.ts.map +1 -0
- package/dist/top10/illustrations/index.js +646 -0
- package/dist/top10/lowDataSlides.d.ts +9 -0
- package/dist/top10/lowDataSlides.d.ts.map +1 -0
- package/dist/top10/lowDataSlides.js +50 -0
- package/dist/top10/motion.d.ts +18 -0
- package/dist/top10/motion.d.ts.map +1 -0
- package/dist/top10/motion.js +43 -0
- package/dist/top10/registry.d.ts +21 -0
- package/dist/top10/registry.d.ts.map +1 -0
- package/dist/top10/registry.js +313 -0
- package/dist/top10/slides.d.ts +87 -0
- package/dist/top10/slides.d.ts.map +1 -0
- package/dist/top10/slides.js +137 -0
- package/dist/top10/steadySlides.d.ts +16 -0
- package/dist/top10/steadySlides.d.ts.map +1 -0
- package/dist/top10/steadySlides.js +78 -0
- package/dist/top10/useCanvasScale.d.ts +18 -0
- package/dist/top10/useCanvasScale.d.ts.map +1 -0
- package/dist/top10/useCanvasScale.js +50 -0
- package/dist/top10/zeroOrderSlides.d.ts +9 -0
- package/dist/top10/zeroOrderSlides.d.ts.map +1 -0
- package/dist/top10/zeroOrderSlides.js +34 -0
- package/dist/types.d.ts +74 -14
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/utils/Helpers.d.ts +7 -0
- package/dist/utils/Helpers.d.ts.map +1 -0
- package/dist/utils/Helpers.js +21 -0
- package/dist/utils/RecapApi.d.ts +3 -0
- package/dist/utils/RecapApi.d.ts.map +1 -0
- package/dist/utils/RecapApi.js +35 -0
- package/dist/utils/Services/AuthServices.d.ts +49 -0
- package/dist/utils/Services/AuthServices.d.ts.map +1 -0
- package/dist/utils/Services/AuthServices.js +16 -0
- package/dist/utils/Services/mockApi.d.ts +49 -0
- package/dist/utils/Services/mockApi.d.ts.map +1 -0
- package/dist/utils/Services/mockApi.js +60 -0
- package/dist/utils/analytics.d.ts +4 -0
- package/dist/utils/analytics.d.ts.map +1 -0
- package/dist/utils/analytics.js +12 -0
- package/dist/utils/shareRecapVideo.d.ts +6 -0
- package/dist/utils/shareRecapVideo.d.ts.map +1 -0
- package/dist/utils/shareRecapVideo.js +40 -0
- package/dist/utils/vendorApp.d.ts +2 -0
- package/dist/utils/vendorApp.d.ts.map +1 -0
- package/dist/utils/vendorApp.js +4 -0
- package/package.json +25 -10
- package/src/App.css +8 -0
- package/src/App.tsx +75 -22
- package/src/LoginScreen.css +6 -139
- package/src/LoginScreen.tsx +126 -36
- package/src/OtpScreen.css +5 -127
- package/src/OtpScreen.tsx +84 -37
- package/src/RecapApp.tsx +6 -3
- package/src/RecapLoadingScreen.css +11 -0
- package/src/RecapLoadingScreen.tsx +64 -0
- package/src/RecapStory.tsx +11 -423
- package/src/StoryProgress.tsx +18 -104
- package/src/categories.ts +30 -0
- package/src/components/RecapIntroLayout.css +225 -0
- package/src/components/RecapIntroLayout.tsx +64 -0
- package/src/data/mock.ts +110 -67
- package/src/data/recapCopy.ts +33 -21
- package/src/data/remoteAssets.ts +3 -0
- package/src/hooks/useBackgroundMusic.ts +46 -48
- package/src/hooks/useCountUp.ts +36 -0
- package/src/hooks/useFrameImages.ts +19 -0
- package/src/hooks/useSessionValidator.ts +115 -0
- package/src/hooks/useShareCardPrecapture.ts +50 -0
- package/src/hooks/useStatusBarColor.ts +36 -0
- package/src/index.css +1 -1
- package/src/index.ts +24 -0
- package/src/lib/queryClient.ts +34 -0
- package/src/main.tsx +44 -0
- package/src/queries/recap.ts +15 -0
- package/src/slides/Slide10Final.tsx +2 -56
- package/src/slides/Slide1Intro.css +1 -2
- package/src/slides/Slide1Intro.tsx +22 -32
- package/src/slides/Slide2Days.tsx +7 -55
- package/src/slides/Slide3Revenue.tsx +5 -29
- package/src/slides/Slide4Orders.tsx +12 -53
- package/src/slides/Slide5Buyers.tsx +9 -52
- package/src/slides/Slide6Customer.tsx +3 -21
- package/src/slides/Slide9Year.tsx +3 -26
- package/src/slides/registry.tsx +129 -0
- package/src/store/auth.tsx +72 -0
- package/src/story/StoryProgressBars.tsx +42 -0
- package/src/story/index.ts +11 -0
- package/src/story/resolveStories.ts +31 -0
- package/src/story/storyPlayerReducer.ts +80 -0
- package/src/story/types.ts +49 -0
- package/src/story/usePreloadAssets.ts +28 -0
- package/src/story/useStoryGestures.ts +95 -0
- package/src/story/useStoryKeyboard.ts +56 -0
- package/src/story/useStoryPlayer.ts +120 -0
- package/src/story/useStoryTimer.ts +55 -0
- package/src/story/useVideoCaptureBridge.ts +30 -0
- package/src/top10/RecapStory2026.tsx +136 -0
- package/src/top10/Top10Chrome.tsx +66 -0
- package/src/top10/Top10Slides.css +308 -0
- package/src/top10/Top10Story.css +250 -0
- package/src/top10/fluctuatingSlides.tsx +88 -0
- package/src/top10/format.ts +61 -0
- package/src/top10/illustrations/IllustrationLayers.tsx +150 -0
- package/src/top10/illustrations/closingAssets.ts +120 -0
- package/src/top10/illustrations/index.tsx +753 -0
- package/src/top10/lowDataSlides.tsx +178 -0
- package/src/top10/motion.ts +65 -0
- package/src/top10/registry.tsx +370 -0
- package/src/top10/slides.tsx +560 -0
- package/src/top10/steadySlides.tsx +199 -0
- package/src/top10/useCanvasScale.ts +66 -0
- package/src/top10/zeroOrderSlides.tsx +120 -0
- package/src/types.ts +95 -19
- package/src/utils/Helpers.tsx +25 -0
- package/src/utils/RecapApi.tsx +39 -0
- package/src/utils/Services/AuthServices.tsx +18 -0
- package/src/utils/Services/mockApi.ts +77 -0
- package/src/utils/analytics.ts +15 -0
- package/src/utils/shareRecapVideo.ts +44 -0
- package/src/utils/vendorApp.ts +5 -0
- package/src/vite-env.d.ts +1 -0
- package/src/react-app-env.d.ts +0 -26
|
@@ -1,52 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import { useCountUp } from '../hooks/useCountUp';
|
|
4
|
+
import { frameImageStyle, useRandomFrameImages } from '../hooks/useFrameImages';
|
|
4
5
|
import './Slide2Days.css';
|
|
5
|
-
/**
|
|
6
|
-
* Custom hook for number counter animation
|
|
7
|
-
*/
|
|
8
|
-
function useCountAnimation(target, duration = 2, delay = 0) {
|
|
9
|
-
const count = useMotionValue(0);
|
|
10
|
-
const rounded = useTransform(count, (latest) => Math.round(latest));
|
|
11
|
-
React.useEffect(() => {
|
|
12
|
-
const controls = animate(count, target, {
|
|
13
|
-
duration,
|
|
14
|
-
delay,
|
|
15
|
-
ease: 'easeOut',
|
|
16
|
-
});
|
|
17
|
-
return controls.stop;
|
|
18
|
-
}, [count, target, duration, delay]);
|
|
19
|
-
return rounded;
|
|
20
|
-
}
|
|
21
6
|
/**
|
|
22
7
|
* Slide2Days - Days active and streak statistics
|
|
23
8
|
*/
|
|
24
9
|
function Slide2Days({ days, streak, frameImages }) {
|
|
25
|
-
const daysCount =
|
|
26
|
-
const streakCount =
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
}, [frameImages]);
|
|
30
|
-
const frameSources = React.useMemo(() => {
|
|
31
|
-
if (!frameImagePool.length) {
|
|
32
|
-
return [];
|
|
33
|
-
}
|
|
34
|
-
return Array.from({ length: 3 }, () => frameImagePool[Math.floor(Math.random() * frameImagePool.length)]);
|
|
35
|
-
}, [frameImagePool]);
|
|
36
|
-
const getFrameStyle = (index) => {
|
|
37
|
-
if (!frameSources.length) {
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
|
-
const image = frameSources[index % frameSources.length];
|
|
41
|
-
if (!image) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
backgroundImage: `url('${image}')`,
|
|
46
|
-
backgroundSize: 'cover',
|
|
47
|
-
backgroundPosition: 'center',
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
return (_jsxs("div", { className: "slide2-days", children: [_jsx(motion.div, { className: "slide2-days__heading", initial: { opacity: 0, y: -20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, ease: 'easeOut' }, children: "Make we look the numbers \uD83D\uDD25" }), _jsx(motion.div, { className: "slide2-days__frames", initial: { opacity: 0, x: -50 }, animate: { opacity: 1, x: 0 }, transition: { duration: 0.8, delay: 0.2 }, children: Array.from({ length: 3 }).map((_, index) => (_jsx(motion.div, { className: "frame-rect", style: getFrameStyle(index), animate: { x: [-20, 20] }, transition: { duration: 4, repeat: Infinity, repeatType: 'reverse', ease: 'linear' } }, `frame-${index}-${frameSources[index] ?? 'no-image'}`))) }), _jsxs(motion.div, { className: "slide2-days__stats-section", initial: { opacity: 0, y: 30 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.7, delay: 0.4 }, children: [_jsx("p", { className: "stats-label", children: "You don spend over" }), _jsxs(motion.div, { className: "stats-container", initial: { opacity: 0, scale: 0.9 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.6, delay: 0.6 }, children: [_jsx(motion.div, { className: "stats-number", children: daysCount }), _jsx("p", { className: "stats-sublabel", children: "days dey hustle with Huxxle" })] })] }), _jsx(motion.div, { className: "slide2-days__divider", initial: { scaleX: 0 }, animate: { scaleX: 1 }, transition: { duration: 0.8, delay: 0.9, ease: 'easeInOut' } }), _jsxs(motion.div, { className: "slide2-days__streak-section", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 1.1 }, children: [_jsx(motion.div, { className: "streak-number", children: streakCount }), _jsx("p", { className: "streak-label", children: "day streak, You no dey play oh \uD83E\uDD2F" })] })] }));
|
|
10
|
+
const daysCount = useCountUp(days, { duration: 1.6, delay: 0.4 }); // 1.6s + 0.4s delay = 2s total
|
|
11
|
+
const streakCount = useCountUp(streak, { duration: 1.2, delay: 0.8 }); // 1.2s + 0.8s delay = 2s total
|
|
12
|
+
const frameSources = useRandomFrameImages(frameImages, 3);
|
|
13
|
+
return (_jsxs("div", { className: "slide2-days", children: [_jsx(motion.div, { className: "slide2-days__heading", initial: { opacity: 0, y: -20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, ease: 'easeOut' }, children: "Make we look the numbers \uD83D\uDD25" }), _jsx(motion.div, { className: "slide2-days__frames", initial: { opacity: 0, x: -50 }, animate: { opacity: 1, x: 0 }, transition: { duration: 0.8, delay: 0.2 }, children: Array.from({ length: 3 }).map((_, index) => (_jsx(motion.div, { className: "frame-rect", style: frameImageStyle(frameSources[index]), animate: { x: [-20, 20] }, transition: { duration: 4, repeat: Infinity, repeatType: 'reverse', ease: 'linear' } }, `frame-${index}-${frameSources[index] ?? 'no-image'}`))) }), _jsxs(motion.div, { className: "slide2-days__stats-section", initial: { opacity: 0, y: 30 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.7, delay: 0.4 }, children: [_jsx("p", { className: "stats-label", children: "You don spend over" }), _jsxs(motion.div, { className: "stats-container", initial: { opacity: 0, scale: 0.9 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.6, delay: 0.6 }, children: [_jsx(motion.div, { className: "stats-number", children: daysCount }), _jsx("p", { className: "stats-sublabel", children: "days dey hustle with Huxxle" })] })] }), _jsx(motion.div, { className: "slide2-days__divider", initial: { scaleX: 0 }, animate: { scaleX: 1 }, transition: { duration: 0.8, delay: 0.9, ease: 'easeInOut' } }), _jsxs(motion.div, { className: "slide2-days__streak-section", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 1.1 }, children: [_jsx(motion.div, { className: "streak-number", children: streakCount }), _jsx("p", { className: "streak-label", children: "day streak, You no dey play oh \uD83E\uDD2F" })] })] }));
|
|
51
14
|
}
|
|
52
15
|
export default Slide2Days;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slide3Revenue.d.ts","sourceRoot":"","sources":["../../src/slides/Slide3Revenue.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slide3Revenue.d.ts","sourceRoot":"","sources":["../../src/slides/Slide3Revenue.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIjE,OAAO,qBAAqB,CAAC;AAE7B,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAuEjF;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { motion, useMotionValue, useTransform, animate } from 'framer-motion';
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
4
3
|
import { BUSINESS_CATEGORIES } from '../types';
|
|
5
4
|
import { recapCopy } from '../data/recapCopy';
|
|
5
|
+
import { MONEY_RAIN_GIF_URL } from '../data/remoteAssets';
|
|
6
|
+
import { useCountUp, withThousandsSeparators } from '../hooks/useCountUp';
|
|
6
7
|
import './Slide3Revenue.css';
|
|
7
|
-
// External CDN URL for raining money GIF (reduces package size)
|
|
8
|
-
const moneyRainGif = "https://katajereassets.blob.core.windows.net/recap-videos/raining-money.gif";
|
|
9
|
-
/**
|
|
10
|
-
* Custom hook for number counter animation with formatting
|
|
11
|
-
*/
|
|
12
|
-
function useCountAnimation(target, duration = 2, delay = 0) {
|
|
13
|
-
const count = useMotionValue(0);
|
|
14
|
-
const formatted = useTransform(count, (latest) => Math.round(latest).toLocaleString());
|
|
15
|
-
React.useEffect(() => {
|
|
16
|
-
const controls = animate(count, target, {
|
|
17
|
-
duration,
|
|
18
|
-
delay,
|
|
19
|
-
ease: 'easeOut',
|
|
20
|
-
});
|
|
21
|
-
return controls.stop;
|
|
22
|
-
}, [count, target, duration, delay]);
|
|
23
|
-
return formatted;
|
|
24
|
-
}
|
|
25
8
|
/**
|
|
26
9
|
* Slide3Revenue - Revenue display with money rain overlay
|
|
27
10
|
*/
|
|
@@ -29,7 +12,7 @@ function Slide3Revenue({ revenue, businessCategory, currency }) {
|
|
|
29
12
|
const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
|
|
30
13
|
const footerText = copy.revenueFooter;
|
|
31
14
|
// Counter animation for revenue
|
|
32
|
-
const revenueCount =
|
|
15
|
+
const revenueCount = useCountUp(revenue, { duration: 1.6, delay: 0.4, format: withThousandsSeparators }); // 1.6s + 0.4s delay = 2s total
|
|
33
16
|
// Get currency symbol
|
|
34
17
|
const getCurrencySymbol = (curr) => {
|
|
35
18
|
const symbols = {
|
|
@@ -40,6 +23,6 @@ function Slide3Revenue({ revenue, businessCategory, currency }) {
|
|
|
40
23
|
};
|
|
41
24
|
return symbols[curr ?? 'GBP'] ?? '£';
|
|
42
25
|
};
|
|
43
|
-
return (_jsxs("div", { className: "slide3-revenue", children: [_jsx("div", { className: "slide3-revenue__overlay", style: { backgroundImage: `url(${
|
|
26
|
+
return (_jsxs("div", { className: "slide3-revenue", children: [_jsx("div", { className: "slide3-revenue__overlay", style: { backgroundImage: `url(${MONEY_RAIN_GIF_URL})` }, "aria-hidden": "true" }), _jsxs("div", { className: "slide3-revenue__content", children: [_jsx(motion.h2, { className: "slide3-revenue__title", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5 }, children: "You don make" }), _jsxs(motion.div, { className: "slide3-revenue__amount", initial: { opacity: 0, scale: 0.9 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.8, delay: 0.3 }, children: [_jsx("span", { className: "slide3-revenue__currency", children: getCurrencySymbol(currency) }), _jsx(motion.span, { children: revenueCount })] }), _jsx(motion.p, { className: "slide3-revenue__subline", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5, delay: 0.6 }, children: "Walahi you no small rara" })] }), _jsx(motion.div, { className: "slide3-revenue__footer", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5, delay: 0.9 }, children: footerText })] }));
|
|
44
27
|
}
|
|
45
28
|
export default Slide3Revenue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slide4Orders.d.ts","sourceRoot":"","sources":["../../src/slides/Slide4Orders.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slide4Orders.d.ts","sourceRoot":"","sources":["../../src/slides/Slide4Orders.tsx"],"names":[],"mappings":"AAIA,OAAO,oBAAoB,CAAC;AAE5B,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AASD;;GAEG;AACH,iBAAS,YAAY,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,iBAAiB,2CA2D/D;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,57 +1,28 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { motion
|
|
3
|
+
import { motion } from 'framer-motion';
|
|
4
|
+
import { useCountUp } from '../hooks/useCountUp';
|
|
5
|
+
import { frameImageStyle, useRandomFrameImages } from '../hooks/useFrameImages';
|
|
4
6
|
import './Slide4Orders.css';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
React.useEffect(() => {
|
|
12
|
-
const controls = animate(count, target, {
|
|
13
|
-
duration,
|
|
14
|
-
delay,
|
|
15
|
-
ease: 'easeOut',
|
|
16
|
-
});
|
|
17
|
-
return controls.stop;
|
|
18
|
-
}, [count, target, duration, delay]);
|
|
19
|
-
return rounded;
|
|
20
|
-
}
|
|
7
|
+
const rectGroups = [
|
|
8
|
+
{ id: 'group-1', rects: ['r5', 'r6', 'r7', 'r8'], groupClass: 'group-1' },
|
|
9
|
+
{ id: 'group-2', rects: ['r1', 'r2', 'r3', 'r4'], groupClass: 'group-2' },
|
|
10
|
+
{ id: 'group-3', rects: ['r10', 'r11', 'r12'], groupClass: 'group-3' }
|
|
11
|
+
];
|
|
12
|
+
const totalRects = rectGroups.reduce((sum, group) => sum + group.rects.length, 0);
|
|
21
13
|
/**
|
|
22
14
|
* Slide4Orders - Emphasizes the order volume with rotated card outlines in the background
|
|
23
15
|
*/
|
|
24
16
|
function Slide4Orders({ orders, frameImages }) {
|
|
25
|
-
const ordersCount =
|
|
26
|
-
const
|
|
27
|
-
{ id: 'group-1', rects: ['r5', 'r6', 'r7', 'r8'], groupClass: 'group-1' },
|
|
28
|
-
{ id: 'group-2', rects: ['r1', 'r2', 'r3', 'r4'], groupClass: 'group-2' },
|
|
29
|
-
{ id: 'group-3', rects: ['r10', 'r11', 'r12'], groupClass: 'group-3' }
|
|
30
|
-
];
|
|
31
|
-
const frameImagePool = React.useMemo(() => {
|
|
32
|
-
return frameImages && frameImages.length > 0 ? frameImages : [];
|
|
33
|
-
}, [frameImages]);
|
|
34
|
-
const totalRects = rectGroups.reduce((sum, group) => sum + group.rects.length, 0);
|
|
35
|
-
const rectImageAssignments = React.useMemo(() => {
|
|
36
|
-
if (!frameImagePool.length) {
|
|
37
|
-
return [];
|
|
38
|
-
}
|
|
39
|
-
return Array.from({ length: totalRects }, () => frameImagePool[Math.floor(Math.random() * frameImagePool.length)]);
|
|
40
|
-
}, [frameImagePool, totalRects]);
|
|
17
|
+
const ordersCount = useCountUp(orders, { duration: 1.6, delay: 0.4 }); // 1.6s + 0.4s delay = 2s total
|
|
18
|
+
const rectImageAssignments = useRandomFrameImages(frameImages, totalRects);
|
|
41
19
|
return (_jsxs("div", { className: "slide4-orders", children: [_jsx("div", { className: "slide4-orders__grid", "aria-hidden": "true", children: rectGroups.map((group, groupIndex) => {
|
|
42
20
|
const groupStartIndex = rectGroups
|
|
43
21
|
.slice(0, groupIndex)
|
|
44
22
|
.reduce((sum, current) => sum + current.rects.length, 0);
|
|
45
23
|
return (_jsx(React.Fragment, { children: group.rects.map((rect, rectIndex) => {
|
|
46
24
|
const rectIndexOverall = groupStartIndex + rectIndex;
|
|
47
|
-
|
|
48
|
-
return (_jsx("span", { className: `slide4-orders__rect ${rect} ${group.groupClass}`, style: image
|
|
49
|
-
? {
|
|
50
|
-
backgroundImage: `url('${image}')`,
|
|
51
|
-
backgroundSize: 'cover',
|
|
52
|
-
backgroundPosition: 'center',
|
|
53
|
-
}
|
|
54
|
-
: undefined }, rect));
|
|
25
|
+
return (_jsx("span", { className: `slide4-orders__rect ${rect} ${group.groupClass}`, style: frameImageStyle(rectImageAssignments[rectIndexOverall]) }, rect));
|
|
55
26
|
}) }, group.id));
|
|
56
27
|
}) }), _jsxs("div", { className: "slide4-orders__content", children: [_jsx(motion.p, { className: "slide4-orders__label", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5 }, children: "orders choke" }), _jsx(motion.div, { className: "slide4-orders__number", initial: { opacity: 0, scale: 0.95 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.8, delay: 0.3 }, children: _jsx(motion.span, { children: ordersCount }) }), _jsxs(motion.p, { className: "slide4-orders__caption", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5, delay: 0.6 }, children: ["Na serious hustle be this ", _jsx("span", { "aria-hidden": "true", children: "\uD83D\uDCAA" })] })] })] }));
|
|
57
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slide5Buyers.d.ts","sourceRoot":"","sources":["../../src/slides/Slide5Buyers.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slide5Buyers.d.ts","sourceRoot":"","sources":["../../src/slides/Slide5Buyers.tsx"],"names":[],"mappings":"AAIA,OAAO,oBAAoB,CAAC;AAE5B,UAAU,iBAAiB;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAKD;;GAEG;AACH,iBAAS,YAAY,CAAC,EAAE,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,iBAAiB,2CAqEtF;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,52 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import { useCountUp } from '../hooks/useCountUp';
|
|
4
|
+
import { frameImageStyle, useRandomFrameImages } from '../hooks/useFrameImages';
|
|
4
5
|
import './Slide5Buyers.css';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
function useCountAnimation(target, duration = 2, delay = 0) {
|
|
9
|
-
const count = useMotionValue(0);
|
|
10
|
-
const rounded = useTransform(count, (latest) => Math.round(latest));
|
|
11
|
-
React.useEffect(() => {
|
|
12
|
-
const controls = animate(count, target, {
|
|
13
|
-
duration,
|
|
14
|
-
delay,
|
|
15
|
-
ease: 'easeOut',
|
|
16
|
-
});
|
|
17
|
-
return controls.stop;
|
|
18
|
-
}, [count, target, duration, delay]);
|
|
19
|
-
return rounded;
|
|
20
|
-
}
|
|
6
|
+
const leftRects = ['l1', 'l2', 'l3', 'l4', 'l5', 'l6'];
|
|
7
|
+
const rightRects = ['r1', 'r2', 'r3', 'r4', 'r5', 'r6'];
|
|
21
8
|
/**
|
|
22
9
|
* Slide5Buyers - Displays first-time and returning buyer counts with vertical animated columns
|
|
23
10
|
*/
|
|
24
11
|
function Slide5Buyers({ firstTimeBuyers, repeatBuyers, frameImages }) {
|
|
25
|
-
const firstTimeBuyersCount =
|
|
26
|
-
const repeatBuyersCount =
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const frameImagePool = React.useMemo(() => {
|
|
30
|
-
return frameImages && frameImages.length > 0 ? frameImages : [];
|
|
31
|
-
}, [frameImages]);
|
|
32
|
-
const totalRects = leftRects.length + rightRects.length;
|
|
33
|
-
const rectSources = React.useMemo(() => {
|
|
34
|
-
if (!frameImagePool.length) {
|
|
35
|
-
return [];
|
|
36
|
-
}
|
|
37
|
-
return Array.from({ length: totalRects }, () => frameImagePool[Math.floor(Math.random() * frameImagePool.length)]);
|
|
38
|
-
}, [frameImagePool, totalRects]);
|
|
39
|
-
const getRectStyle = (index) => {
|
|
40
|
-
const image = rectSources[index];
|
|
41
|
-
if (!image) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
backgroundImage: `url('${image}')`,
|
|
46
|
-
backgroundSize: 'cover',
|
|
47
|
-
backgroundPosition: 'center',
|
|
48
|
-
};
|
|
49
|
-
};
|
|
12
|
+
const firstTimeBuyersCount = useCountUp(firstTimeBuyers, { duration: 1.7, delay: 0.3 }); // 1.7s + 0.3s delay = 2s total
|
|
13
|
+
const repeatBuyersCount = useCountUp(repeatBuyers, { duration: 1.2, delay: 0.8 }); // 1.2s + 0.8s delay = 2s total
|
|
14
|
+
const rectSources = useRandomFrameImages(frameImages, leftRects.length + rightRects.length);
|
|
15
|
+
const getRectStyle = (index) => frameImageStyle(rectSources[index]);
|
|
50
16
|
return (_jsxs("div", { className: "slide5-buyers", children: [_jsxs("div", { className: "slide5-buyers__grid", "aria-hidden": "true", children: [_jsx("div", { className: "column column-left", children: _jsx("div", { className: "column-inner", children: leftRects.map((rect, index) => (_jsx("span", { className: `rect ${rect}`, style: getRectStyle(index) }, rect))) }) }), _jsx("div", { className: "column column-right", children: _jsx("div", { className: "column-inner", children: rightRects.map((rect, index) => (_jsx("span", { className: `rect ${rect}`, style: getRectStyle(leftRects.length + index) }, rect))) }) })] }), _jsxs("div", { className: "slide5-buyers__content", children: [_jsxs("div", { className: "slide5-buyers__section", children: [_jsx(motion.div, { className: "slide5-buyers__number", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6 }, children: _jsx(motion.span, { children: firstTimeBuyersCount }) }), _jsx(motion.p, { className: "slide5-buyers__label", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.2 }, children: "people don buy from you" })] }), _jsxs("div", { className: "slide5-buyers__section", children: [_jsx(motion.div, { className: "slide5-buyers__number slide5-buyers__number--secondary", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.4 }, children: _jsx(motion.span, { children: repeatBuyersCount }) }), _jsx(motion.p, { className: "slide5-buyers__label", initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.6 }, children: "people come buy again" })] })] })] }));
|
|
51
17
|
}
|
|
52
18
|
export default Slide5Buyers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slide6Customer.d.ts","sourceRoot":"","sources":["../../src/slides/Slide6Customer.tsx"],"names":[],"mappings":"AAGA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Slide6Customer.d.ts","sourceRoot":"","sources":["../../src/slides/Slide6Customer.tsx"],"names":[],"mappings":"AAGA,OAAO,sBAAsB,CAAC;AAI9B,UAAU,mBAAmB;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,iBAAS,cAAc,CAAC,EACtB,WAAgB,EAChB,aAAiB,EACjB,iBAAsB,EACtB,sBAA0B,EAC3B,EAAE,mBAAmB,2CA0CrB;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,31 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { useMotionValue, useTransform, animate } from 'framer-motion';
|
|
4
2
|
import { motion } from 'framer-motion';
|
|
3
|
+
import { useCountUp, withThousandsSeparators } from '../hooks/useCountUp';
|
|
5
4
|
import './Slide6Customer.css';
|
|
6
5
|
import webIcon from '../assets/web-icon.png';
|
|
7
6
|
import searchIcon from '../assets/search-icon.svg';
|
|
8
|
-
// Counter animation hook with optional comma formatting
|
|
9
|
-
function useCountAnimation(target, duration = 2, delay = 0, formatWithCommas = false) {
|
|
10
|
-
const count = useMotionValue(0);
|
|
11
|
-
const formatted = useTransform(count, (v) => {
|
|
12
|
-
const rounded = Math.round(v);
|
|
13
|
-
return formatWithCommas ? rounded.toLocaleString() : rounded.toString();
|
|
14
|
-
});
|
|
15
|
-
React.useEffect(() => {
|
|
16
|
-
const timeout = setTimeout(() => {
|
|
17
|
-
animate(count, target, { duration, ease: 'easeOut' });
|
|
18
|
-
}, delay * 1000);
|
|
19
|
-
return () => clearTimeout(timeout);
|
|
20
|
-
}, [count, target, duration, delay]);
|
|
21
|
-
return formatted;
|
|
22
|
-
}
|
|
23
7
|
/**
|
|
24
8
|
* Slide6Customer - Website visits and most viewed product slide
|
|
25
9
|
*/
|
|
26
10
|
function Slide6Customer({ websiteLink = "", websiteVisits = 0, mostViewedProduct = "", mostViewedProductCount = 0 }) {
|
|
27
|
-
const visitsCount =
|
|
28
|
-
const productCount =
|
|
11
|
+
const visitsCount = useCountUp(websiteVisits, { duration: 1.7, delay: 0.3, format: withThousandsSeparators }); // 1.7s + 0.3s delay = 2s total
|
|
12
|
+
const productCount = useCountUp(mostViewedProductCount, { duration: 1.5, delay: 0.5, format: withThousandsSeparators }); // 1.5s + 0.5s delay = 2s total
|
|
29
13
|
return (_jsxs("div", { className: "slide6-customer", children: [_jsx("div", { className: "slide6-customer__rect slide6-customer__rect--1", "aria-hidden": "true" }), _jsx("div", { className: "slide6-customer__rect slide6-customer__rect--2", "aria-hidden": "true" }), _jsx("div", { className: "slide6-customer__globe-wrapper", children: _jsx("img", { src: webIcon, alt: "Website", className: "slide6-customer__globe" }) }), _jsxs("div", { className: "slide6-customer__link-bar", children: [_jsx("img", { src: searchIcon, alt: "", className: "slide6-customer__search-icon" }), _jsx("span", { className: "slide6-customer__link-text", children: websiteLink })] }), _jsxs("div", { className: "slide6-customer__content", children: [_jsxs("div", { className: "slide6-customer__section", children: [_jsx(motion.span, { className: "slide6-customer__number", children: visitsCount }), _jsx("span", { className: "slide6-customer__label", children: "times dem visit your website," })] }), _jsxs("div", { className: "slide6-customer__section", children: [_jsx(motion.span, { className: "slide6-customer__number slide6-customer__number--secondary", children: productCount }), _jsxs("span", { className: "slide6-customer__label", children: ["times wey people check \"", mostViewedProduct, "\""] })] })] }), _jsx("p", { className: "slide6-customer__footer", children: "even your enemy visit am \uD83D\uDE0E" })] }));
|
|
30
14
|
}
|
|
31
15
|
export default Slide6Customer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slide9Year.d.ts","sourceRoot":"","sources":["../../src/slides/Slide9Year.tsx"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Slide9Year.d.ts","sourceRoot":"","sources":["../../src/slides/Slide9Year.tsx"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD,UAAU,eAAe;IACvB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,iBAAS,UAAU,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,eAAe,2CA2B3E;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1,32 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import './Slide9Year.css';
|
|
4
3
|
import { recapCopy } from '../data/recapCopy';
|
|
5
4
|
import { BUSINESS_CATEGORIES } from '../types';
|
|
5
|
+
import { frameImageStyle, useRandomFrameImages } from '../hooks/useFrameImages';
|
|
6
6
|
function Slide9Year({ businessCategory, year, frameImages }) {
|
|
7
7
|
const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
|
|
8
8
|
const baseYear = year ?? 2025;
|
|
9
9
|
const nextYear = baseYear + 1;
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
}, [frameImages]);
|
|
13
|
-
const rectSources = React.useMemo(() => {
|
|
14
|
-
if (!frameImagePool.length) {
|
|
15
|
-
return [];
|
|
16
|
-
}
|
|
17
|
-
return Array.from({ length: 6 }, () => frameImagePool[Math.floor(Math.random() * frameImagePool.length)]);
|
|
18
|
-
}, [frameImagePool]);
|
|
19
|
-
const getRectStyle = (index) => {
|
|
20
|
-
const image = rectSources[index];
|
|
21
|
-
if (!image) {
|
|
22
|
-
return undefined;
|
|
23
|
-
}
|
|
24
|
-
return {
|
|
25
|
-
backgroundImage: `url('${image}')`,
|
|
26
|
-
backgroundSize: 'cover',
|
|
27
|
-
backgroundPosition: 'center',
|
|
28
|
-
};
|
|
29
|
-
};
|
|
10
|
+
const rectSources = useRandomFrameImages(frameImages, 6);
|
|
11
|
+
const getRectStyle = (index) => frameImageStyle(rectSources[index]);
|
|
30
12
|
return (_jsxs("div", { className: "slide9-year", children: [_jsx("div", { className: "slide9-year__message", children: copy.yearHeadline }), _jsxs("div", { className: "slide9-year__title", children: [nextYear, " na your year"] }), _jsx("div", { className: "slide9-year__crown", children: "\uD83D\uDC51" }), _jsxs("div", { className: "slide9-year__rect-layer slide9-year__rect-layer--top", children: [_jsx("span", { className: "slide9-year__rect slide9-year__rect--top-1 top-group", style: getRectStyle(0) }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--top-2 top-group", style: getRectStyle(1) }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--top-3 top-group", style: getRectStyle(2) })] }), _jsxs("div", { className: "slide9-year__rect-layer slide9-year__rect-layer--bottom", children: [_jsx("span", { className: "slide9-year__rect slide9-year__rect--bottom-1 bottom-group", style: getRectStyle(3) }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--bottom-2 bottom-group", style: getRectStyle(4) }), _jsx("span", { className: "slide9-year__rect slide9-year__rect--bottom-3 bottom-group", style: getRectStyle(5) })] })] }));
|
|
31
13
|
}
|
|
32
14
|
export default Slide9Year;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecapData } from '../types';
|
|
2
|
+
import { type StoryDefinition } from '../story';
|
|
3
|
+
/** The recap playlist, in order. New users only see the intro. */
|
|
4
|
+
export declare const recapStories: StoryDefinition<RecapData>[];
|
|
5
|
+
/** Resolves the playlist for one recap; backend-provided `slideDurations` override the defaults per slide. */
|
|
6
|
+
export declare function buildRecapStories(data: RecapData): import("../story").ResolvedStory<RecapData>[];
|
|
7
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/slides/registry.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAuB,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhE,kEAAkE;AAClE,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,SAAS,CAAC,EAqGpD,CAAC;AAEF,8GAA8G;AAC9G,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,iDAEhD"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Slide1Intro from './Slide1Intro';
|
|
3
|
+
import Slide2Days from './Slide2Days';
|
|
4
|
+
import Slide3Revenue from './Slide3Revenue';
|
|
5
|
+
import Slide4Orders from './Slide4Orders';
|
|
6
|
+
import Slide5Buyers from './Slide5Buyers';
|
|
7
|
+
import Slide6Customer from './Slide6Customer';
|
|
8
|
+
import Slide7Products from './Slide7Products';
|
|
9
|
+
import Slide8Months from './Slide8Months';
|
|
10
|
+
import Slide9Year from './Slide9Year';
|
|
11
|
+
import Slide10Final from './Slide10Final';
|
|
12
|
+
import webIcon from '../assets/web-icon.png';
|
|
13
|
+
import searchIcon from '../assets/search-icon.svg';
|
|
14
|
+
import { MONEY_RAIN_GIF_URL } from '../data/remoteAssets';
|
|
15
|
+
import { slideDurations } from '../data/mock';
|
|
16
|
+
import { BUSINESS_CATEGORIES } from '../types';
|
|
17
|
+
import { resolveStories } from '../story';
|
|
18
|
+
const hasFullRecap = (data) => data.businessCategory !== BUSINESS_CATEGORIES.NEW_USER;
|
|
19
|
+
const productImages = (data) => data.productImages ?? [];
|
|
20
|
+
/** The recap playlist, in order. New users only see the intro. */
|
|
21
|
+
export const recapStories = [
|
|
22
|
+
{
|
|
23
|
+
id: 'intro',
|
|
24
|
+
assets: productImages,
|
|
25
|
+
render: (data) => (_jsx(Slide1Intro, { businessName: data.businessName, businessCategory: data.businessCategory, introHeadline: data.introHeadline, introSubtitle: data.introSubtitle, frameImages: data.productImages })),
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'days',
|
|
29
|
+
include: hasFullRecap,
|
|
30
|
+
assets: productImages,
|
|
31
|
+
render: (data) => (_jsx(Slide2Days, { days: data.days ?? 0, streak: data.streak ?? 0, frameImages: data.productImages })),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: 'revenue',
|
|
35
|
+
include: hasFullRecap,
|
|
36
|
+
assets: () => [MONEY_RAIN_GIF_URL],
|
|
37
|
+
render: (data) => (_jsx(Slide3Revenue, { revenue: data.revenue ?? 0, currency: data.currency, businessCategory: data.businessCategory })),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: 'orders',
|
|
41
|
+
include: hasFullRecap,
|
|
42
|
+
assets: productImages,
|
|
43
|
+
render: (data) => _jsx(Slide4Orders, { orders: data.orders, frameImages: data.productImages }),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'buyers',
|
|
47
|
+
include: hasFullRecap,
|
|
48
|
+
assets: productImages,
|
|
49
|
+
render: (data) => (_jsx(Slide5Buyers, { firstTimeBuyers: data.firstTimeBuyers ?? 0, repeatBuyers: data.repeatBuyers ?? 0, frameImages: data.productImages })),
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'customer',
|
|
53
|
+
include: hasFullRecap,
|
|
54
|
+
assets: () => [webIcon, searchIcon],
|
|
55
|
+
render: (data) => (_jsx(Slide6Customer, { websiteLink: data.websiteLink ?? '', websiteVisits: data.websiteVisits ?? 0, mostViewedProduct: data.mostViewedProduct ?? '', mostViewedProductCount: data.mostViewedProductCount ?? 0 })),
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'products',
|
|
59
|
+
include: hasFullRecap,
|
|
60
|
+
assets: (data) => (data.favouriteProduct?.productImage ? [data.favouriteProduct.productImage] : []),
|
|
61
|
+
render: (data) => _jsx(Slide7Products, { products: data.favouriteProduct ? [data.favouriteProduct] : [] }),
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'months',
|
|
65
|
+
include: hasFullRecap,
|
|
66
|
+
render: (data) => _jsx(Slide8Months, { busiestMonth: data.busiestMonth ?? 'Jan' }),
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'year',
|
|
70
|
+
include: hasFullRecap,
|
|
71
|
+
assets: productImages,
|
|
72
|
+
render: (data) => (_jsx(Slide9Year, { businessCategory: data.businessCategory, year: data.year, frameImages: data.productImages })),
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'final',
|
|
76
|
+
include: hasFullRecap,
|
|
77
|
+
outro: true,
|
|
78
|
+
render: (data, controls) => (_jsx(Slide10Final, { videoUrl: data.videoUrl, downloadUrl: data.downloadUrl ?? data.videoUrl, year: data.year, onReplay: controls.restart })),
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
/** Resolves the playlist for one recap; backend-provided `slideDurations` override the defaults per slide. */
|
|
82
|
+
export function buildRecapStories(data) {
|
|
83
|
+
return resolveStories(recapStories, data, { ...slideDurations, ...data.slideDurations });
|
|
84
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type AuthState = {
|
|
2
|
+
token: string;
|
|
3
|
+
business: {
|
|
4
|
+
business_name: string;
|
|
5
|
+
business_image: string;
|
|
6
|
+
business_type: string;
|
|
7
|
+
business_phone: string;
|
|
8
|
+
business_website: string;
|
|
9
|
+
business_address: string;
|
|
10
|
+
business_city: string;
|
|
11
|
+
business_state: string;
|
|
12
|
+
business_zip_code: string;
|
|
13
|
+
subdomain: string;
|
|
14
|
+
website_status: string;
|
|
15
|
+
website_status_by_admin: string;
|
|
16
|
+
social_facebook: string;
|
|
17
|
+
social_instagram: string;
|
|
18
|
+
social_twitter: string;
|
|
19
|
+
social_tiktok: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type AuthActions = {
|
|
23
|
+
updateToken: (token: string) => void;
|
|
24
|
+
updateBusiness: (businessData: AuthState["business"]) => void;
|
|
25
|
+
};
|
|
26
|
+
export declare const useAuthStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<AuthState & AuthActions>, "setState" | "persist"> & {
|
|
27
|
+
setState(partial: (AuthState & AuthActions) | Partial<AuthState & AuthActions> | ((state: AuthState & AuthActions) => (AuthState & AuthActions) | Partial<AuthState & AuthActions>), replace?: false | undefined): unknown;
|
|
28
|
+
setState(state: (AuthState & AuthActions) | ((state: AuthState & AuthActions) => AuthState & AuthActions), replace: true): unknown;
|
|
29
|
+
persist: {
|
|
30
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<AuthState & AuthActions, unknown, unknown>>) => void;
|
|
31
|
+
clearStorage: () => void;
|
|
32
|
+
rehydrate: () => Promise<void> | void;
|
|
33
|
+
hasHydrated: () => boolean;
|
|
34
|
+
onHydrate: (fn: (state: AuthState & AuthActions) => void) => () => void;
|
|
35
|
+
onFinishHydration: (fn: (state: AuthState & AuthActions) => void) => () => void;
|
|
36
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<AuthState & AuthActions, unknown, unknown>>;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/store/auth.tsx"],"names":[],"mappings":"AAGA,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE;QACR,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,EAAE,MAAM,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;QACvB,uBAAuB,EAAE,MAAM,CAAC;QAChC,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;QACzB,cAAc,EAAE,MAAM,CAAC;QACvB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AACF,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,cAAc,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;CAC/D,CAAC;AAuBF,eAAO,MAAM,YAAY;;;;;;;;;;;;EAqBxB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { persist, createJSONStorage } from "zustand/middleware";
|
|
2
|
+
import { create } from "zustand";
|
|
3
|
+
const initialState = {
|
|
4
|
+
token: "",
|
|
5
|
+
business: {
|
|
6
|
+
business_name: "",
|
|
7
|
+
business_image: "",
|
|
8
|
+
business_type: "",
|
|
9
|
+
business_phone: "",
|
|
10
|
+
business_website: "",
|
|
11
|
+
business_address: "",
|
|
12
|
+
business_city: "",
|
|
13
|
+
business_state: "",
|
|
14
|
+
business_zip_code: "",
|
|
15
|
+
subdomain: "",
|
|
16
|
+
website_status: "",
|
|
17
|
+
website_status_by_admin: "",
|
|
18
|
+
social_facebook: "",
|
|
19
|
+
social_instagram: "",
|
|
20
|
+
social_tiktok: "",
|
|
21
|
+
social_twitter: "",
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export const useAuthStore = create()(persist((set) => ({
|
|
25
|
+
...initialState,
|
|
26
|
+
updateToken: (token) => set(() => ({ token })),
|
|
27
|
+
clearToken: () => {
|
|
28
|
+
set(() => ({
|
|
29
|
+
token: "",
|
|
30
|
+
}));
|
|
31
|
+
},
|
|
32
|
+
updateBusiness: (businessData) => {
|
|
33
|
+
set(() => ({
|
|
34
|
+
business: businessData,
|
|
35
|
+
}));
|
|
36
|
+
},
|
|
37
|
+
}), {
|
|
38
|
+
name: "auth-storage",
|
|
39
|
+
storage: createJSONStorage(() => localStorage),
|
|
40
|
+
}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type MotionValue } from 'framer-motion';
|
|
2
|
+
import '../StoryProgress.css';
|
|
3
|
+
interface StoryProgressBarsProps {
|
|
4
|
+
total: number;
|
|
5
|
+
active: number;
|
|
6
|
+
progress: MotionValue<number>;
|
|
7
|
+
onBarClick: (index: number) => void;
|
|
8
|
+
hideBorder?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** Segmented story progress bars; the active segment's fill is bound to `progress` (0→1). */
|
|
11
|
+
declare function StoryProgressBars({ total, active, progress, onBarClick, hideBorder }: StoryProgressBarsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default StoryProgressBars;
|
|
13
|
+
//# sourceMappingURL=StoryProgressBars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoryProgressBars.d.ts","sourceRoot":"","sources":["../../src/story/StoryProgressBars.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,sBAAsB,CAAC;AAE9B,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,6FAA6F;AAC7F,iBAAS,iBAAiB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,sBAAsB,2CA0BrG;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import '../StoryProgress.css';
|
|
4
|
+
/** Segmented story progress bars; the active segment's fill is bound to `progress` (0→1). */
|
|
5
|
+
function StoryProgressBars({ total, active, progress, onBarClick, hideBorder }) {
|
|
6
|
+
return (_jsx("div", { className: `story-progress${hideBorder ? ' story-progress--no-border' : ''}`, children: Array.from({ length: total }).map((_, index) => {
|
|
7
|
+
const isActive = index === active;
|
|
8
|
+
const isCompleted = index < active;
|
|
9
|
+
return (_jsx("div", { className: "story-progress__bar-container", onClick: () => onBarClick(index), children: _jsx("div", { className: `story-progress__bar ${isCompleted ? 'completed' : ''}`, children: isActive && (_jsx(motion.div, { className: "story-progress__bar-fill", style: { scaleX: progress, transformOrigin: 'left' } })) }) }, index));
|
|
10
|
+
}) }));
|
|
11
|
+
}
|
|
12
|
+
export default StoryProgressBars;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './storyPlayerReducer';
|
|
3
|
+
export * from './resolveStories';
|
|
4
|
+
export { useStoryTimer } from './useStoryTimer';
|
|
5
|
+
export { useStoryPlayer } from './useStoryPlayer';
|
|
6
|
+
export type { StoryPlayer } from './useStoryPlayer';
|
|
7
|
+
export { useStoryGestures } from './useStoryGestures';
|
|
8
|
+
export { useStoryKeyboard } from './useStoryKeyboard';
|
|
9
|
+
export { usePreloadAssets, preloadImage } from './usePreloadAssets';
|
|
10
|
+
export { useVideoCaptureBridge } from './useVideoCaptureBridge';
|
|
11
|
+
export { default as StoryProgressBars } from './StoryProgressBars';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/story/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './storyPlayerReducer';
|
|
3
|
+
export * from './resolveStories';
|
|
4
|
+
export { useStoryTimer } from './useStoryTimer';
|
|
5
|
+
export { useStoryPlayer } from './useStoryPlayer';
|
|
6
|
+
export { useStoryGestures } from './useStoryGestures';
|
|
7
|
+
export { useStoryKeyboard } from './useStoryKeyboard';
|
|
8
|
+
export { usePreloadAssets, preloadImage } from './usePreloadAssets';
|
|
9
|
+
export { useVideoCaptureBridge } from './useVideoCaptureBridge';
|
|
10
|
+
export { default as StoryProgressBars } from './StoryProgressBars';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ResolvedStory, StoryDefinition } from './types';
|
|
2
|
+
export declare const DEFAULT_STORY_DURATION = 8;
|
|
3
|
+
/**
|
|
4
|
+
* Turns story definitions into the concrete playlist for a given context:
|
|
5
|
+
* drops excluded cards and settles each card's duration and asset list.
|
|
6
|
+
* `durationOverrides` (seconds, keyed by story id) wins over a definition's own duration.
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveStories<TContext>(definitions: StoryDefinition<TContext>[], context: TContext, durationOverrides?: Record<string, number | undefined>): ResolvedStory<TContext>[];
|
|
9
|
+
//# sourceMappingURL=resolveStories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveStories.d.ts","sourceRoot":"","sources":["../../src/story/resolveStories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE9D,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EACrC,WAAW,EAAE,eAAe,CAAC,QAAQ,CAAC,EAAE,EACxC,OAAO,EAAE,QAAQ,EACjB,iBAAiB,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAM,GACzD,aAAa,CAAC,QAAQ,CAAC,EAAE,CAiB3B"}
|