@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
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/* Shared look for login, OTP and loading screens (Figma: From Recap On screen, 18597:26837) */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Neo Zine';
|
|
4
|
+
src: url('/fonts/NeoZine-Regular.woff2') format('woff2'),
|
|
5
|
+
url('/fonts/NeoZine-Regular.woff') format('woff'),
|
|
6
|
+
url('/fonts/NeoZine-Regular.otf') format('opentype');
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
/* The cut-out letters look nothing like a fallback font, so hide the wordmark briefly rather than swap */
|
|
10
|
+
font-display: block;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.recap-intro {
|
|
14
|
+
--recap-intro-primary-400: #A5A3EE;
|
|
15
|
+
--recap-intro-surface: #F2F4F6;
|
|
16
|
+
--recap-intro-accent: #FF9900;
|
|
17
|
+
|
|
18
|
+
position: relative;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
background: linear-gradient(to bottom, #4F4CD8, #2A2872);
|
|
23
|
+
color: var(--recap-intro-surface);
|
|
24
|
+
font-family: 'Aileron', sans-serif;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* 800×800 frame centered on the screen, clipping the 619×619 dot tunnel */
|
|
28
|
+
.recap-intro__tunnel {
|
|
29
|
+
position: absolute;
|
|
30
|
+
left: 50%;
|
|
31
|
+
top: 50%;
|
|
32
|
+
width: 800px;
|
|
33
|
+
height: 800px;
|
|
34
|
+
transform: translate(-50%, -50%);
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.recap-intro__tunnel-group {
|
|
40
|
+
position: absolute;
|
|
41
|
+
left: 86px;
|
|
42
|
+
top: 90px;
|
|
43
|
+
width: 619px;
|
|
44
|
+
height: 619px;
|
|
45
|
+
will-change: transform;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.recap-intro__tunnel-group img {
|
|
49
|
+
display: block;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.recap-intro__column {
|
|
53
|
+
position: relative;
|
|
54
|
+
z-index: 1;
|
|
55
|
+
height: 100%;
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
align-items: center;
|
|
59
|
+
padding-top: calc(env(safe-area-inset-top) + 8px);
|
|
60
|
+
padding-bottom: calc(env(safe-area-inset-bottom) + 40px);
|
|
61
|
+
overflow-y: auto;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.recap-intro__top-bar {
|
|
65
|
+
flex: none;
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: flex-end;
|
|
68
|
+
width: 100%;
|
|
69
|
+
min-height: 64px;
|
|
70
|
+
padding: 12px 16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* 164px gaps from the design; they shrink evenly on short screens */
|
|
74
|
+
.recap-intro__spacer {
|
|
75
|
+
flex: 0 1 164px;
|
|
76
|
+
min-height: 24px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.recap-intro__close {
|
|
80
|
+
display: block;
|
|
81
|
+
width: 40px;
|
|
82
|
+
height: 40px;
|
|
83
|
+
padding: 0;
|
|
84
|
+
border: none;
|
|
85
|
+
background: transparent;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.recap-intro__close img {
|
|
90
|
+
display: block;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Text intentionally overflows the 324×53 black box, as in the design */
|
|
94
|
+
.recap-wordmark {
|
|
95
|
+
flex: none;
|
|
96
|
+
position: relative;
|
|
97
|
+
width: 324px;
|
|
98
|
+
height: 53px;
|
|
99
|
+
background: #000;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.recap-wordmark__text {
|
|
103
|
+
position: absolute;
|
|
104
|
+
left: -4px;
|
|
105
|
+
top: -3.92px;
|
|
106
|
+
width: 342px;
|
|
107
|
+
font-family: 'Neo Zine', 'Aileron', sans-serif;
|
|
108
|
+
font-weight: 400;
|
|
109
|
+
font-size: 82.41px;
|
|
110
|
+
line-height: 73.242px;
|
|
111
|
+
text-transform: capitalize;
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
color: #FFFFFF;
|
|
114
|
+
text-shadow: 0 4.12px 4.12px rgba(0, 0, 0, 0.25);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.recap-wordmark__year {
|
|
118
|
+
color: var(--recap-intro-accent);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.recap-intro__content {
|
|
122
|
+
flex: none;
|
|
123
|
+
width: min(343px, calc(100% - 32px));
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-direction: column;
|
|
126
|
+
gap: 32px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.recap-intro__copy {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
gap: 32px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Box heights match the design's cap-height trimming (eyebrow 10px, headline 3 × 36px − 14px);
|
|
136
|
+
CSS text-box trimming isn't used because Aileron's cap-height metric trims too much */
|
|
137
|
+
.recap-intro__eyebrow {
|
|
138
|
+
margin: 0;
|
|
139
|
+
font-weight: 600;
|
|
140
|
+
font-size: 14px;
|
|
141
|
+
line-height: 10px;
|
|
142
|
+
letter-spacing: 1.12px;
|
|
143
|
+
text-transform: uppercase;
|
|
144
|
+
color: var(--recap-intro-primary-400);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.recap-intro__headline {
|
|
148
|
+
margin: -7px 0;
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
font-size: 32px;
|
|
151
|
+
line-height: 36px;
|
|
152
|
+
letter-spacing: -0.64px;
|
|
153
|
+
color: var(--recap-intro-surface);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Forms on the gradient (login + OTP) */
|
|
157
|
+
.recap-intro .form-group {
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
gap: 8px;
|
|
161
|
+
width: 100%;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.recap-intro .form-label {
|
|
165
|
+
font-weight: 600;
|
|
166
|
+
font-size: 12px;
|
|
167
|
+
line-height: 1.2;
|
|
168
|
+
letter-spacing: 0.96px;
|
|
169
|
+
text-transform: uppercase;
|
|
170
|
+
color: var(--recap-intro-primary-400);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.recap-intro .form-input,
|
|
174
|
+
.recap-intro .otp-input {
|
|
175
|
+
height: 48px;
|
|
176
|
+
min-height: 48px;
|
|
177
|
+
padding: 12px 16px;
|
|
178
|
+
border: 1px solid var(--recap-intro-primary-400);
|
|
179
|
+
background: rgba(255, 255, 255, 0.06);
|
|
180
|
+
color: var(--recap-intro-surface);
|
|
181
|
+
font-family: 'Aileron', sans-serif;
|
|
182
|
+
font-size: 16px;
|
|
183
|
+
line-height: 1.2;
|
|
184
|
+
outline: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.recap-intro .form-input {
|
|
188
|
+
width: 100%;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.recap-intro .form-input:focus,
|
|
192
|
+
.recap-intro .otp-input:focus {
|
|
193
|
+
border-color: var(--recap-intro-surface);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.recap-intro .form-input::placeholder {
|
|
197
|
+
color: var(--recap-intro-primary-400);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.recap-intro .btn-primary {
|
|
201
|
+
display: flex;
|
|
202
|
+
justify-content: center;
|
|
203
|
+
align-items: center;
|
|
204
|
+
width: 100%;
|
|
205
|
+
height: 48px;
|
|
206
|
+
min-height: 48px;
|
|
207
|
+
padding: 12px 16px;
|
|
208
|
+
border: none;
|
|
209
|
+
background: var(--recap-intro-surface);
|
|
210
|
+
color: #2A2872;
|
|
211
|
+
font-family: 'Aileron', sans-serif;
|
|
212
|
+
font-weight: 700;
|
|
213
|
+
font-size: 16px;
|
|
214
|
+
line-height: 1.2;
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
transition: opacity 0.2s;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.recap-intro .btn-primary:hover {
|
|
220
|
+
opacity: 0.9;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.recap-intro .btn-primary:active {
|
|
224
|
+
opacity: 0.8;
|
|
225
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './RecapIntroLayout.css';
|
|
3
|
+
/** Length of one loop of the intro animations, in seconds (Figma timeline: 3000ms). */
|
|
4
|
+
export declare const RECAP_INTRO_LOOP_S = 3;
|
|
5
|
+
interface RecapIntroLayoutProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
year?: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* RecapIntroLayout - Shared shell for the pre-story screens (login, OTP, loading):
|
|
12
|
+
* gradient background, rotating dot tunnel, close button and the "Recap 26" wordmark.
|
|
13
|
+
*/
|
|
14
|
+
declare function RecapIntroLayout({ children, onClose, year }: RecapIntroLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default RecapIntroLayout;
|
|
16
|
+
//# sourceMappingURL=RecapIntroLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecapIntroLayout.d.ts","sourceRoot":"","sources":["../../src/components/RecapIntroLayout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,wBAAwB,CAAC;AAEhC,uFAAuF;AACvF,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAEpC,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAW,EAAE,EAAE,qBAAqB,2CAyClF;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { motion, useReducedMotion } from 'framer-motion';
|
|
3
|
+
import tunnel from '../assets/recap-intro/tunnel.svg';
|
|
4
|
+
import closeIcon from '../assets/recap-intro/close.svg';
|
|
5
|
+
import './RecapIntroLayout.css';
|
|
6
|
+
/** Length of one loop of the intro animations, in seconds (Figma timeline: 3000ms). */
|
|
7
|
+
export const RECAP_INTRO_LOOP_S = 3;
|
|
8
|
+
/**
|
|
9
|
+
* RecapIntroLayout - Shared shell for the pre-story screens (login, OTP, loading):
|
|
10
|
+
* gradient background, rotating dot tunnel, close button and the "Recap 26" wordmark.
|
|
11
|
+
*/
|
|
12
|
+
function RecapIntroLayout({ children, onClose, year = 2026 }) {
|
|
13
|
+
const reduceMotion = useReducedMotion();
|
|
14
|
+
return (_jsxs("div", { className: "recap-intro", children: [_jsx("div", { className: "recap-intro__tunnel", "aria-hidden": "true", children: _jsx(motion.div, { className: "recap-intro__tunnel-group", animate: reduceMotion ? undefined : { rotate: [0, 360], scale: [1, 1.08, 1] }, transition: {
|
|
15
|
+
rotate: { duration: RECAP_INTRO_LOOP_S, times: [0, 1], ease: 'linear', repeat: Infinity },
|
|
16
|
+
scale: { duration: RECAP_INTRO_LOOP_S, times: [0, 0.9999, 1], ease: 'easeInOut', repeat: Infinity },
|
|
17
|
+
}, children: _jsx("img", { src: tunnel, alt: "", width: 619, height: 619 }) }) }), _jsxs("div", { className: "recap-intro__column", children: [_jsx("div", { className: "recap-intro__top-bar", children: onClose && (_jsx("button", { type: "button", className: "recap-intro__close", onClick: onClose, "aria-label": "Close", children: _jsx("img", { src: closeIcon, alt: "", width: 40, height: 40 }) })) }), _jsx("div", { className: "recap-intro__spacer", "aria-hidden": "true" }), _jsx("div", { className: "recap-wordmark", role: "img", "aria-label": `Recap ${year}`, children: _jsxs("span", { className: "recap-wordmark__text", "aria-hidden": "true", children: ["Recap ", _jsx("span", { className: "recap-wordmark__year", children: String(year).slice(-2) })] }) }), _jsx("div", { className: "recap-intro__spacer", "aria-hidden": "true" }), _jsx("div", { className: "recap-intro__content", children: children })] })] }));
|
|
18
|
+
}
|
|
19
|
+
export default RecapIntroLayout;
|
package/dist/data/mock.d.ts
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import type { RecapData } from "../types";
|
|
2
2
|
/**
|
|
3
|
-
* Mock
|
|
4
|
-
*
|
|
3
|
+
* Mock RecapData per 2026 category — only fields the story reads for that category.
|
|
4
|
+
* Synthetic values exercise the Figma frames and their evidence rules.
|
|
5
5
|
*/
|
|
6
|
+
/** Top 10 (`top_10`) — full story: orders → closing. */
|
|
6
7
|
export declare const mockRecapData: RecapData;
|
|
8
|
+
/** Steady (`steady`) — bag / calendar / order-count milestone. */
|
|
9
|
+
export declare const mockSteadyRecapData: RecapData;
|
|
10
|
+
/** Fluctuating (`fluctuating`) — busy-month story. */
|
|
11
|
+
export declare const mockFluctuatingRecapData: RecapData;
|
|
12
|
+
/** Low data (`low_data`) — new store with a few orders. */
|
|
13
|
+
export declare const mockLowDataRecapData: RecapData;
|
|
14
|
+
/** Zero order (`zero_order`) — store opened, catalogue only, no orders / no favourite. */
|
|
15
|
+
export declare const mockZeroOrderRecapData: RecapData;
|
|
16
|
+
/** @deprecated Prefer per-slide timing in the story registry. */
|
|
7
17
|
export declare const slideDurations: Record<string, number>;
|
|
8
18
|
//# sourceMappingURL=mock.d.ts.map
|
package/dist/data/mock.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/data/mock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/data/mock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,UAAU,CAAC;AAc1D;;;GAGG;AAEH,wDAAwD;AACxD,eAAO,MAAM,aAAa,EAAE,SAqB3B,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,EAAE,SAqBjC,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,wBAAwB,EAAE,SAgBtC,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,oBAAoB,EAAE,SAclC,CAAC;AAEF,0FAA0F;AAC1F,eAAO,MAAM,sBAAsB,EAAE,SASpC,CAAC;AAEF,iEAAiE;AACjE,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWjD,CAAC"}
|
package/dist/data/mock.js
CHANGED
|
@@ -1,67 +1,107 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RECAP_CATEGORIES } from "../categories";
|
|
2
|
+
const PRODUCT_IMAGE = "https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80";
|
|
3
|
+
const favouriteProduct = (name, units) => ({
|
|
4
|
+
name,
|
|
5
|
+
units,
|
|
6
|
+
productImage: PRODUCT_IMAGE,
|
|
7
|
+
});
|
|
8
|
+
const SHARE_VIDEO = "https://katajereassets.blob.core.windows.net/recap-videos/recap_4e5f6a7b-8c9d-0e1f-2a3b-4c5d6e7f8a9b_738c9226abe1a8f1a07263948a2d175e.mp4";
|
|
2
9
|
/**
|
|
3
|
-
* Mock
|
|
4
|
-
*
|
|
10
|
+
* Mock RecapData per 2026 category — only fields the story reads for that category.
|
|
11
|
+
* Synthetic values exercise the Figma frames and their evidence rules.
|
|
5
12
|
*/
|
|
13
|
+
/** Top 10 (`top_10`) — full story: orders → closing. */
|
|
6
14
|
export const mockRecapData = {
|
|
7
|
-
businessName: "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
orders: 487,
|
|
12
|
-
firstTimeBuyers: 234,
|
|
13
|
-
repeatBuyers: 65,
|
|
14
|
-
topCustomerName: "Micheal Scoffy",
|
|
15
|
+
businessName: "Fabrics Uni",
|
|
16
|
+
businessCategory: RECAP_CATEGORIES.TOP_10,
|
|
17
|
+
businessLogo: undefined,
|
|
18
|
+
year: 2026,
|
|
15
19
|
currency: "NGN",
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
name: "Spicy Crunch",
|
|
32
|
-
units: 33,
|
|
33
|
-
productImage: "https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: "Fresh Plantain Chips",
|
|
37
|
-
units: 29,
|
|
38
|
-
productImage: "https://images.unsplash.com/photo-1506084868230-bb9d95c24759?auto=format&fit=crop&w=400&q=80",
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: "Mango Juice",
|
|
42
|
-
units: 27,
|
|
43
|
-
productImage: "https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80",
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
productImages: [
|
|
47
|
-
"https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80",
|
|
48
|
-
"https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=400&q=80",
|
|
49
|
-
"https://images.unsplash.com/photo-1506084868230-bb9d95c24759?auto=format&fit=crop&w=400&q=80",
|
|
50
|
-
"https://images.unsplash.com/photo-1447078806655-40579c2520d6?auto=format&fit=crop&w=400&q=80",
|
|
51
|
-
"https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=400&q=80",
|
|
52
|
-
"https://images.unsplash.com/photo-1470337458703-46ad1756a187?auto=format&fit=crop&w=400&q=80",
|
|
53
|
-
],
|
|
54
|
-
businessCategory: BUSINESS_CATEGORIES.THRIVING,
|
|
55
|
-
busiestMonth: "Oct",
|
|
56
|
-
videoUrl: "https://katajereassets.blob.core.windows.net/recap-videos/recap_4e5f6a7b-8c9d-0e1f-2a3b-4c5d6e7f8a9b_738c9226abe1a8f1a07263948a2d175e.mp4",
|
|
57
|
-
downloadUrl: "https://api.huxxle.com/api/download?fileUrl=https://katajereassets.blob.core.windows.net/recap-videos/recap_4e5f6a7b-8c9d-0e1f-2a3b-4c5d6e7f8a9b_738c9226abe1a8f1a07263948a2d175e.mp4",
|
|
58
|
-
isVideo: false,
|
|
59
|
-
websiteLink: "https://vendor.huxxle.com",
|
|
60
|
-
websiteVisits: 123400,
|
|
61
|
-
mostViewedProduct: "Vanilla Yoghurt",
|
|
62
|
-
mostViewedProductCount: 567,
|
|
20
|
+
videoUrl: SHARE_VIDEO,
|
|
21
|
+
orders: 307,
|
|
22
|
+
firstTimeBuyers: 86,
|
|
23
|
+
repeatBuyers: 44,
|
|
24
|
+
busiestMonth: "Nov",
|
|
25
|
+
biggestDay: { date: "2026-11-28", orders: 12, revenue: 212000 },
|
|
26
|
+
growthMultiplier: 4,
|
|
27
|
+
growthComparison: { baselineMonth: 'Jan', comparisonMonth: 'Dec' },
|
|
28
|
+
bestWeekday: { day: "Thursday", salesShare: 25, orders: 77 },
|
|
29
|
+
milestone: { amount: 5000000, reachedOn: "2026-12-19" },
|
|
30
|
+
personality: {
|
|
31
|
+
title: "Top Plug",
|
|
32
|
+
description: "Your paid order count put you in the top 10% of sellers on Huxxle.",
|
|
33
|
+
},
|
|
34
|
+
favouriteProduct: favouriteProduct("Chewing Gum Lace", 74),
|
|
63
35
|
};
|
|
64
|
-
|
|
36
|
+
/** Steady (`steady`) — bag / calendar / order-count milestone. */
|
|
37
|
+
export const mockSteadyRecapData = {
|
|
38
|
+
businessName: "Fabrics Uni",
|
|
39
|
+
businessCategory: RECAP_CATEGORIES.STEADY,
|
|
40
|
+
year: 2026,
|
|
41
|
+
currency: "NGN",
|
|
42
|
+
videoUrl: SHARE_VIDEO,
|
|
43
|
+
orders: 212,
|
|
44
|
+
firstTimeBuyers: 86,
|
|
45
|
+
repeatBuyers: 44,
|
|
46
|
+
busiestMonth: "Nov",
|
|
47
|
+
busiestMonthOrders: 52,
|
|
48
|
+
activeMonths: 12,
|
|
49
|
+
biggestDay: { date: "2026-11-28", orders: 12, revenue: 212000 },
|
|
50
|
+
growthMultiplier: 4,
|
|
51
|
+
growthComparison: { baselineMonth: 'Jan', comparisonMonth: 'Dec' },
|
|
52
|
+
orderMilestone: { orders: 100, reachedOn: "2026-07-17" },
|
|
53
|
+
personality: {
|
|
54
|
+
title: "The Constant",
|
|
55
|
+
description: "A business that kept showing up, month after month.",
|
|
56
|
+
},
|
|
57
|
+
favouriteProduct: favouriteProduct("Chewing Gum Lace", 74),
|
|
58
|
+
};
|
|
59
|
+
/** Fluctuating (`fluctuating`) — busy-month story. */
|
|
60
|
+
export const mockFluctuatingRecapData = {
|
|
61
|
+
businessName: "Fabrics Uni",
|
|
62
|
+
businessCategory: RECAP_CATEGORIES.FLUCTUATING,
|
|
63
|
+
year: 2026,
|
|
64
|
+
currency: "NGN",
|
|
65
|
+
videoUrl: SHARE_VIDEO,
|
|
66
|
+
orders: 152,
|
|
67
|
+
totalCustomers: 118,
|
|
68
|
+
busiestMonth: "Nov",
|
|
69
|
+
busiestMonthOrders: 43,
|
|
70
|
+
biggestDay: { date: "2026-11-28", orders: 12, revenue: 212000 },
|
|
71
|
+
personality: {
|
|
72
|
+
title: "Your Sales Moments",
|
|
73
|
+
description: "November stood out in your recorded sales this year.",
|
|
74
|
+
},
|
|
75
|
+
favouriteProduct: favouriteProduct("Chewing Gum Lace", 39),
|
|
76
|
+
};
|
|
77
|
+
/** Low data (`low_data`) — new store with a few orders. */
|
|
78
|
+
export const mockLowDataRecapData = {
|
|
79
|
+
businessName: "Fabrics Uni",
|
|
80
|
+
businessCategory: RECAP_CATEGORIES.LOW_DATA,
|
|
81
|
+
year: 2026,
|
|
82
|
+
currency: "NGN",
|
|
83
|
+
videoUrl: SHARE_VIDEO,
|
|
84
|
+
orders: 4,
|
|
85
|
+
totalCustomers: 3,
|
|
86
|
+
storeOpenedOn: "2026-08-14",
|
|
87
|
+
firstOrderOn: "2026-09-19",
|
|
88
|
+
websiteVisits: 620,
|
|
89
|
+
storefrontOrders: 2,
|
|
90
|
+
daysOnHuxxle: 141,
|
|
91
|
+
favouriteProduct: favouriteProduct("Chewing Gum Lace", 12),
|
|
92
|
+
};
|
|
93
|
+
/** Zero order (`zero_order`) — store opened, catalogue only, no orders / no favourite. */
|
|
94
|
+
export const mockZeroOrderRecapData = {
|
|
95
|
+
businessName: "Fabrics Uni",
|
|
96
|
+
businessCategory: RECAP_CATEGORIES.ZERO_ORDER,
|
|
97
|
+
year: 2026,
|
|
98
|
+
videoUrl: SHARE_VIDEO,
|
|
99
|
+
orders: 0,
|
|
100
|
+
storeOpenedOn: "2026-08-14",
|
|
101
|
+
catalogueProducts: 8,
|
|
102
|
+
storefrontReady: true,
|
|
103
|
+
};
|
|
104
|
+
/** @deprecated Prefer per-slide timing in the story registry. */
|
|
65
105
|
export const slideDurations = {
|
|
66
106
|
intro: 8,
|
|
67
107
|
days: 8,
|
package/dist/data/recapCopy.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export interface RecapSlideCopy {
|
|
|
6
6
|
revenueFooter: string;
|
|
7
7
|
yearHeadline: string;
|
|
8
8
|
}
|
|
9
|
+
/** 2025 slide copy. 2026 category keys reuse the 2025 copy they map to in `categories.ts`. */
|
|
9
10
|
export declare const recapCopy: Record<BusinessCategory, RecapSlideCopy>;
|
|
10
11
|
//# sourceMappingURL=recapCopy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recapCopy.d.ts","sourceRoot":"","sources":["../../src/data/recapCopy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;IACpD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"recapCopy.d.ts","sourceRoot":"","sources":["../../src/data/recapCopy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;IACpD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB;AA0BD,8FAA8F;AAC9F,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,gBAAgB,EAAE,cAAc,CAS9D,CAAC"}
|
package/dist/data/recapCopy.js
CHANGED
|
@@ -1,23 +1,32 @@
|
|
|
1
|
+
const thriving = {
|
|
2
|
+
introHeadline: 'This Year You Carry Your Hustle For Head',
|
|
3
|
+
introSubtitle: 'Make we look the numbers 🔥',
|
|
4
|
+
introVariant: 'default',
|
|
5
|
+
revenueFooter: 'More money dey come!',
|
|
6
|
+
yearHeadline: 'You really kill am this year, You are the real MVP'
|
|
7
|
+
};
|
|
8
|
+
const notThriving = {
|
|
9
|
+
introHeadline: 'Omoor! We See Your Hustle, But….',
|
|
10
|
+
introSubtitle: 'Make we talk small 🤫',
|
|
11
|
+
introVariant: 'default',
|
|
12
|
+
revenueFooter: 'Consistency go pay, we dey your back.',
|
|
13
|
+
yearHeadline: 'This year rough, but you are the real MVP'
|
|
14
|
+
};
|
|
15
|
+
const newUser = {
|
|
16
|
+
introHeadline: 'You Be New Face OOO....',
|
|
17
|
+
introSubtitle: 'Come back for 6 days time, we dey for you 😉',
|
|
18
|
+
introVariant: 'new-user',
|
|
19
|
+
revenueFooter: 'Draft the plan, then the sales go follow.',
|
|
20
|
+
yearHeadline: 'You really kill am this year, You are the real MVP'
|
|
21
|
+
};
|
|
22
|
+
/** 2025 slide copy. 2026 category keys reuse the 2025 copy they map to in `categories.ts`. */
|
|
1
23
|
export const recapCopy = {
|
|
2
|
-
thriving
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
introHeadline: 'Omoor! We See Your Hustle, But….',
|
|
11
|
-
introSubtitle: 'Make we talk small 🤫',
|
|
12
|
-
introVariant: 'default',
|
|
13
|
-
revenueFooter: 'Consistency go pay, we dey your back.',
|
|
14
|
-
yearHeadline: 'This year rough, but you are the real MVP'
|
|
15
|
-
},
|
|
16
|
-
new_user: {
|
|
17
|
-
introHeadline: 'You Be New Face OOO....',
|
|
18
|
-
introSubtitle: 'Come back for 6 days time, we dey for you 😉',
|
|
19
|
-
introVariant: 'new-user',
|
|
20
|
-
revenueFooter: 'Draft the plan, then the sales go follow.',
|
|
21
|
-
yearHeadline: 'You really kill am this year, You are the real MVP'
|
|
22
|
-
}
|
|
24
|
+
thriving,
|
|
25
|
+
not_thriving: notThriving,
|
|
26
|
+
new_user: newUser,
|
|
27
|
+
top_10: thriving,
|
|
28
|
+
steady: thriving,
|
|
29
|
+
fluctuating: notThriving,
|
|
30
|
+
low_data: newUser,
|
|
31
|
+
zero_order: newUser,
|
|
23
32
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const RECAP_MUSIC_URL = "https://katajereassets.blob.core.windows.net/recap-videos/recap-music.mp3";
|
|
2
|
+
export declare const MONEY_RAIN_GIF_URL = "https://katajereassets.blob.core.windows.net/recap-videos/raining-money.gif";
|
|
3
|
+
//# sourceMappingURL=remoteAssets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remoteAssets.d.ts","sourceRoot":"","sources":["../../src/data/remoteAssets.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,8EAA8E,CAAC;AAC3G,eAAO,MAAM,kBAAkB,gFAAgF,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Large media is served from the CDN rather than bundled, to keep the package small.
|
|
2
|
+
export const RECAP_MUSIC_URL = 'https://katajereassets.blob.core.windows.net/recap-videos/recap-music.mp3';
|
|
3
|
+
export const MONEY_RAIN_GIF_URL = 'https://katajereassets.blob.core.windows.net/recap-videos/raining-money.gif';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
interface UseBackgroundMusicOptions {
|
|
2
2
|
src: string;
|
|
3
3
|
volume?: number;
|
|
4
|
-
autoPlay?: boolean;
|
|
5
4
|
loop?: boolean;
|
|
5
|
+
/** Desired playback state; the hook keeps the audio element in sync with it. */
|
|
6
|
+
shouldPlay: boolean;
|
|
7
|
+
/** When playback stops, rewind to the start (e.g. on the outro, so a replay starts fresh). */
|
|
8
|
+
rewindOnStop?: boolean;
|
|
6
9
|
}
|
|
7
10
|
/**
|
|
8
|
-
* useBackgroundMusic -
|
|
9
|
-
*
|
|
11
|
+
* useBackgroundMusic - background track that follows the story player's state.
|
|
12
|
+
* Browsers may block the first autoplay attempt; call `unlock` from a user gesture to retry.
|
|
10
13
|
*/
|
|
11
|
-
export declare function useBackgroundMusic({ src, volume,
|
|
12
|
-
isPlaying: boolean;
|
|
14
|
+
export declare function useBackgroundMusic({ src, volume, loop, shouldPlay, rewindOnStop, }: UseBackgroundMusicOptions): {
|
|
13
15
|
isMuted: boolean;
|
|
14
|
-
play: () => void;
|
|
15
|
-
pause: () => void | undefined;
|
|
16
|
-
stop: () => void;
|
|
17
16
|
toggleMute: () => void;
|
|
17
|
+
unlock: () => void;
|
|
18
18
|
};
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=useBackgroundMusic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBackgroundMusic.d.ts","sourceRoot":"","sources":["../../src/hooks/useBackgroundMusic.ts"],"names":[],"mappings":"AAEA,UAAU,yBAAyB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"useBackgroundMusic.d.ts","sourceRoot":"","sources":["../../src/hooks/useBackgroundMusic.ts"],"names":[],"mappings":"AAEA,UAAU,yBAAyB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gFAAgF;IAChF,UAAU,EAAE,OAAO,CAAC;IACpB,8FAA8F;IAC9F,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,GAAG,EACH,MAAY,EACZ,IAAW,EACX,UAAU,EACV,YAAoB,GACrB,EAAE,yBAAyB;;;;EAsD3B"}
|