@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
package/dist/App.css
CHANGED
|
@@ -162,6 +162,14 @@ body {
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
/* Gradient text utility class */
|
|
165
|
+
.app.app--recording {
|
|
166
|
+
padding: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.app--recording .app__shell {
|
|
170
|
+
box-shadow: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
165
173
|
.gradient-text {
|
|
166
174
|
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
167
175
|
-webkit-background-clip: text;
|
package/dist/LoginScreen.css
CHANGED
|
@@ -1,147 +1,14 @@
|
|
|
1
|
-
/* LoginScreen.css */
|
|
2
|
-
.login-screen {
|
|
3
|
-
position: relative;
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: 100%;
|
|
6
|
-
background: transparent;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
padding: clamp(20px, 3dvh, 32px) clamp(16px, 4.1vw, 20px) calc(clamp(32px, 5dvh, 48px) + env(safe-area-inset-bottom));
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* Top logo area - 3% margin from top via padding */
|
|
15
|
-
.login-screen__header {
|
|
16
|
-
flex: none;
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: 3.79%;
|
|
19
|
-
min-height: 32px;
|
|
20
|
-
margin-bottom: 6%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Middle hero section - grows to fill space */
|
|
24
|
-
.login-screen__hero {
|
|
25
|
-
flex: 1;
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
align-items: flex-start;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
gap: 1.9%;
|
|
31
|
-
width: 100%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.login-screen__title {
|
|
35
|
-
width: 100%;
|
|
36
|
-
font-family: 'Lora', serif;
|
|
37
|
-
font-style: normal;
|
|
38
|
-
font-weight: 700;
|
|
39
|
-
font-size: clamp(48px, 18.46vw, 72px);
|
|
40
|
-
line-height: 1.28;
|
|
41
|
-
text-transform: capitalize;
|
|
42
|
-
color: var(--primary-blue);
|
|
43
|
-
margin: 0;
|
|
44
|
-
white-space: normal;
|
|
45
|
-
word-wrap: break-word;
|
|
46
|
-
display: inline;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.login-screen__title::after {
|
|
50
|
-
content: " 25'";
|
|
51
|
-
color: var(--bg-white);
|
|
52
|
-
-webkit-text-stroke: 1.5px var(--primary-blue);
|
|
53
|
-
paint-order: stroke fill;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.login-screen__subtitle {
|
|
57
|
-
width: 100%;
|
|
58
|
-
font-family: 'Lora', serif;
|
|
59
|
-
font-style: normal;
|
|
60
|
-
font-weight: 400;
|
|
61
|
-
font-size: clamp(14px, 4.1vw, 16px);
|
|
62
|
-
line-height: 1.5;
|
|
63
|
-
color: var(--text-primary);
|
|
64
|
-
margin: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* Bottom form section - 5% margin from bottom via parent padding */
|
|
1
|
+
/* LoginScreen.css - layout and colors come from RecapIntroLayout.css */
|
|
68
2
|
.login-screen__form {
|
|
69
|
-
flex: none;
|
|
70
3
|
display: flex;
|
|
71
4
|
flex-direction: column;
|
|
72
|
-
align-items: flex-start;
|
|
73
5
|
gap: 16px;
|
|
74
6
|
width: 100%;
|
|
75
7
|
}
|
|
76
8
|
|
|
77
|
-
.form-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
width: 100%;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.form-label {
|
|
86
|
-
width: 100%;
|
|
87
|
-
font-family: 'Lora', serif;
|
|
88
|
-
font-style: normal;
|
|
89
|
-
font-weight: 400;
|
|
90
|
-
font-size: clamp(10px, 3.08vw, 12px);
|
|
91
|
-
line-height: 120%;
|
|
92
|
-
color: var(--text-secondary);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.form-input {
|
|
96
|
-
box-sizing: border-box;
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: row;
|
|
99
|
-
align-items: center;
|
|
100
|
-
padding: 12px 16px;
|
|
101
|
-
width: 100%;
|
|
102
|
-
height: 48px;
|
|
103
|
-
min-height: 48px;
|
|
104
|
-
background: transparent;
|
|
105
|
-
border: 1px solid var(--primary-purple);
|
|
106
|
-
font-family: 'Lora', serif;
|
|
107
|
-
font-style: normal;
|
|
108
|
-
font-weight: 400;
|
|
109
|
-
font-size: clamp(14px, 4.1vw, 16px);
|
|
110
|
-
line-height: 120%;
|
|
111
|
-
color: var(--text-primary);
|
|
112
|
-
outline: none;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.form-input::placeholder {
|
|
116
|
-
color: var(--text-primary);
|
|
117
|
-
opacity: 0.7;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.btn-primary {
|
|
121
|
-
display: flex;
|
|
122
|
-
flex-direction: row;
|
|
123
|
-
justify-content: center;
|
|
124
|
-
align-items: center;
|
|
125
|
-
padding: 12px 16px;
|
|
126
|
-
width: 100%;
|
|
127
|
-
height: 48px;
|
|
128
|
-
min-height: 48px;
|
|
129
|
-
background: var(--bg-gradient);
|
|
130
|
-
border: none;
|
|
131
|
-
font-family: 'Lora', serif;
|
|
132
|
-
font-style: normal;
|
|
133
|
-
font-weight: 600;
|
|
134
|
-
font-size: clamp(14px, 4.1vw, 16px);
|
|
135
|
-
line-height: 120%;
|
|
136
|
-
color: var(--text-white);
|
|
137
|
-
cursor: pointer;
|
|
138
|
-
transition: opacity 0.2s;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.btn-primary:hover {
|
|
142
|
-
opacity: 0.9;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.btn-primary:active {
|
|
146
|
-
opacity: 0.8;
|
|
9
|
+
.form-error {
|
|
10
|
+
font-family: 'Aileron', sans-serif;
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
line-height: 1.2;
|
|
13
|
+
color: #FFB4A8;
|
|
147
14
|
}
|
package/dist/OtpScreen.css
CHANGED
|
@@ -1,136 +1,14 @@
|
|
|
1
|
-
/* OtpScreen.css */
|
|
2
|
-
.otp-screen {
|
|
3
|
-
position: relative;
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: 100%;
|
|
6
|
-
background: transparent;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
padding: clamp(20px, 3dvh, 32px) clamp(16px, 4.1vw, 20px) calc(clamp(32px, 5dvh, 48px) + env(safe-area-inset-bottom));
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* Top logo area - 3% margin from top via padding */
|
|
15
|
-
.otp-screen__header {
|
|
16
|
-
flex: none;
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: 3.79%;
|
|
19
|
-
min-height: 32px;
|
|
20
|
-
margin-bottom: 6%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Middle hero section - grows to fill space */
|
|
24
|
-
.otp-screen__hero {
|
|
25
|
-
flex: 1;
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
align-items: flex-start;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
gap: 1.9%;
|
|
31
|
-
width: 100%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.otp-screen__title {
|
|
35
|
-
width: 100%;
|
|
36
|
-
font-family: 'Lora', serif;
|
|
37
|
-
font-style: normal;
|
|
38
|
-
font-weight: 700;
|
|
39
|
-
font-size: clamp(48px, 18.46vw, 72px);
|
|
40
|
-
line-height: 1.28;
|
|
41
|
-
text-transform: capitalize;
|
|
42
|
-
color: var(--primary-blue);
|
|
43
|
-
margin: 0;
|
|
44
|
-
white-space: normal;
|
|
45
|
-
word-wrap: break-word;
|
|
46
|
-
display: inline;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.otp-screen__title::after {
|
|
50
|
-
content: " 25'";
|
|
51
|
-
color: var(--bg-white);
|
|
52
|
-
-webkit-text-stroke: 1.5px var(--primary-blue);
|
|
53
|
-
paint-order: stroke fill;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.otp-screen__subtitle {
|
|
57
|
-
width: 100%;
|
|
58
|
-
font-family: 'Lora', serif;
|
|
59
|
-
font-style: normal;
|
|
60
|
-
font-weight: 400;
|
|
61
|
-
font-size: clamp(14px, 4.1vw, 16px);
|
|
62
|
-
line-height: 1.5;
|
|
63
|
-
color: var(--text-primary);
|
|
64
|
-
margin: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* OTP Inputs */
|
|
1
|
+
/* OtpScreen.css - layout and colors come from RecapIntroLayout.css */
|
|
68
2
|
.otp-inputs {
|
|
69
3
|
display: flex;
|
|
70
|
-
|
|
71
|
-
align-items: flex-start;
|
|
72
|
-
gap: 0.95%;
|
|
4
|
+
gap: 8px;
|
|
73
5
|
width: 100%;
|
|
74
|
-
height: 5.69%;
|
|
75
|
-
min-height: 48px;
|
|
76
6
|
}
|
|
77
7
|
|
|
78
8
|
.otp-input {
|
|
79
|
-
box-sizing: border-box;
|
|
80
|
-
display: flex;
|
|
81
|
-
flex-direction: row;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
align-items: center;
|
|
84
|
-
padding: 12px 16px;
|
|
85
9
|
flex: 1;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
font-family: 'Lora', serif;
|
|
90
|
-
font-style: normal;
|
|
91
|
-
font-weight: 600;
|
|
92
|
-
font-size: clamp(14px, 4.1vw, 16px);
|
|
93
|
-
line-height: 120%;
|
|
94
|
-
color: var(--text-primary);
|
|
10
|
+
min-width: 0;
|
|
11
|
+
padding: 12px 0;
|
|
12
|
+
font-weight: 700;
|
|
95
13
|
text-align: center;
|
|
96
|
-
outline: none;
|
|
97
|
-
width: 5.69%;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.otp-input::placeholder {
|
|
101
|
-
color: var(--text-primary);
|
|
102
|
-
opacity: 0.7;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.otp-input:focus {
|
|
106
|
-
opacity: 1;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.btn-primary {
|
|
110
|
-
display: flex;
|
|
111
|
-
flex-direction: row;
|
|
112
|
-
justify-content: center;
|
|
113
|
-
align-items: center;
|
|
114
|
-
padding: 12px 16px;
|
|
115
|
-
width: 100%;
|
|
116
|
-
height: 48px;
|
|
117
|
-
min-height: 48px;
|
|
118
|
-
background: var(--bg-gradient);
|
|
119
|
-
border: none;
|
|
120
|
-
font-family: 'Lora', serif;
|
|
121
|
-
font-style: normal;
|
|
122
|
-
font-weight: 600;
|
|
123
|
-
font-size: clamp(14px, 4.1vw, 16px);
|
|
124
|
-
line-height: 120%;
|
|
125
|
-
color: var(--text-white);
|
|
126
|
-
cursor: pointer;
|
|
127
|
-
transition: opacity 0.2s;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.btn-primary:hover {
|
|
131
|
-
opacity: 0.9;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.btn-primary:active {
|
|
135
|
-
opacity: 0.8;
|
|
136
14
|
}
|
package/dist/RecapApp.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RecapData } from './types';
|
|
2
|
+
import type { StoryEvent } from './story';
|
|
2
3
|
import './App.css';
|
|
3
4
|
/**
|
|
4
5
|
* RecapApp - Wrapper component that provides the app shell structure
|
|
@@ -11,7 +12,9 @@ import './App.css';
|
|
|
11
12
|
*/
|
|
12
13
|
interface RecapAppProps {
|
|
13
14
|
recapData: RecapData;
|
|
15
|
+
onStoryEvent?: (event: StoryEvent) => void;
|
|
16
|
+
onClose?: () => void;
|
|
14
17
|
}
|
|
15
|
-
declare function RecapApp({ recapData }: RecapAppProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function RecapApp({ recapData, onStoryEvent, onClose }: RecapAppProps): import("react/jsx-runtime").JSX.Element;
|
|
16
19
|
export default RecapApp;
|
|
17
20
|
//# sourceMappingURL=RecapApp.d.ts.map
|
package/dist/RecapApp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecapApp.d.ts","sourceRoot":"","sources":["../src/RecapApp.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,WAAW,CAAC;AAEnB;;;;;;;;GAQG;AAEH,UAAU,aAAa;IACrB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"RecapApp.d.ts","sourceRoot":"","sources":["../src/RecapApp.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,WAAW,CAAC;AAEnB;;;;;;;;GAQG;AAEH,UAAU,aAAa;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,aAAa,2CAYpE;AAED,eAAe,QAAQ,CAAC"}
|
package/dist/RecapApp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import RecapStory from './RecapStory';
|
|
3
3
|
import './App.css';
|
|
4
|
-
function RecapApp({ recapData }) {
|
|
5
|
-
return (_jsxs("div", { className:
|
|
4
|
+
function RecapApp({ recapData, onStoryEvent, onClose }) {
|
|
5
|
+
return (_jsxs("div", { className: recapData.isVideo ? 'app app--recording' : 'app', children: [_jsx("div", { className: "app__backdrop" }), _jsx("div", { className: "app__shell", children: _jsx(RecapStory, { recapData: recapData, onStoryEvent: onStoryEvent, onClose: onClose }) })] }));
|
|
6
6
|
}
|
|
7
7
|
export default RecapApp;
|
package/dist/RecapStory.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { RecapData } from "./types";
|
|
2
|
-
import "./
|
|
1
|
+
import type { RecapData } from "./types";
|
|
2
|
+
import type { StoryEvent } from "./story";
|
|
3
3
|
interface RecapStoryProps {
|
|
4
4
|
recapData: RecapData;
|
|
5
|
+
/** Playback analytics hook (story views, completions, shares, replays). */
|
|
6
|
+
onStoryEvent?: (event: StoryEvent) => void;
|
|
7
|
+
/** Close button in the 2026 story header; hidden when omitted. */
|
|
8
|
+
onClose?: () => void;
|
|
5
9
|
}
|
|
6
10
|
/**
|
|
7
|
-
* RecapStory -
|
|
11
|
+
* RecapStory - 2026 story for every category (including low_data and zero_order).
|
|
8
12
|
*/
|
|
9
|
-
declare function RecapStory(
|
|
13
|
+
declare function RecapStory(props: RecapStoryProps): import("react/jsx-runtime").JSX.Element;
|
|
10
14
|
export default RecapStory;
|
|
11
15
|
//# sourceMappingURL=RecapStory.d.ts.map
|
package/dist/RecapStory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecapStory.d.ts","sourceRoot":"","sources":["../src/RecapStory.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RecapStory.d.ts","sourceRoot":"","sources":["../src/RecapStory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,UAAU,eAAe;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,2CAEzC;AAED,eAAe,UAAU,CAAC"}
|
package/dist/RecapStory.js
CHANGED
|
@@ -1,258 +1,9 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
2
|
-
import
|
|
3
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
4
|
-
import StoryProgress from "./StoryProgress";
|
|
5
|
-
import Header from "./components/Header";
|
|
6
|
-
import Slide1Intro from "./slides/Slide1Intro";
|
|
7
|
-
import Slide2Days from "./slides/Slide2Days";
|
|
8
|
-
import Slide3Revenue from "./slides/Slide3Revenue";
|
|
9
|
-
import Slide4Orders from "./slides/Slide4Orders";
|
|
10
|
-
import Slide5Buyers from "./slides/Slide5Buyers";
|
|
11
|
-
import Slide6Customer from "./slides/Slide6Customer";
|
|
12
|
-
import Slide7Products from "./slides/Slide7Products";
|
|
13
|
-
import Slide8Months from "./slides/Slide8Months";
|
|
14
|
-
import Slide9Year from "./slides/Slide9Year";
|
|
15
|
-
import Slide10Final from "./slides/Slide10Final";
|
|
16
|
-
import { slideVariants } from "./utils";
|
|
17
|
-
import { captureAndShareSlide, preCaptureSlide, clearScreenshotCache } from "./utils/slideScreenshot";
|
|
18
|
-
import { slideDurations as defaultDurations } from "./data/mock";
|
|
19
|
-
import { BUSINESS_CATEGORIES } from "./types";
|
|
20
|
-
import { useBackgroundMusic } from "./hooks/useBackgroundMusic";
|
|
21
|
-
import "./RecapStory.css";
|
|
22
|
-
// External CDN URL for background music (reduces package size)
|
|
23
|
-
const recapMusic = "https://katajereassets.blob.core.windows.net/recap-videos/recap-music.mp3";
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import RecapStory2026 from "./top10/RecapStory2026";
|
|
24
3
|
/**
|
|
25
|
-
* RecapStory -
|
|
4
|
+
* RecapStory - 2026 story for every category (including low_data and zero_order).
|
|
26
5
|
*/
|
|
27
|
-
function RecapStory(
|
|
28
|
-
|
|
29
|
-
const durations = recapData.slideDurations || defaultDurations;
|
|
30
|
-
// Start paused when in video generation mode - orchestrator will unpause via window.__RECAP_START__
|
|
31
|
-
const [isPaused, setIsPaused] = useState(recapData.isVideo === true);
|
|
32
|
-
const [isShareVisible, setIsShareVisible] = useState(false);
|
|
33
|
-
const holdTimerRef = useRef(null);
|
|
34
|
-
const isHoldingRef = useRef(false);
|
|
35
|
-
const slidesContainerRef = useRef(null);
|
|
36
|
-
// Expose global start function for video generation orchestrator
|
|
37
|
-
React.useEffect(() => {
|
|
38
|
-
if (recapData.isVideo) {
|
|
39
|
-
// Expose function to start the story (used by Puppeteer after recording starts)
|
|
40
|
-
window.__RECAP_START__ = () => {
|
|
41
|
-
setIsPaused(false);
|
|
42
|
-
};
|
|
43
|
-
// Also add a ready flag so orchestrator knows the component is mounted
|
|
44
|
-
window.__RECAP_READY__ = true;
|
|
45
|
-
}
|
|
46
|
-
return () => {
|
|
47
|
-
// Cleanup global functions
|
|
48
|
-
if (recapData.isVideo) {
|
|
49
|
-
delete window.__RECAP_START__;
|
|
50
|
-
delete window.__RECAP_READY__;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}, [recapData.isVideo]);
|
|
54
|
-
// Cleanup on unmount to prevent memory leaks
|
|
55
|
-
React.useEffect(() => {
|
|
56
|
-
return () => {
|
|
57
|
-
if (holdTimerRef.current) {
|
|
58
|
-
clearTimeout(holdTimerRef.current);
|
|
59
|
-
}
|
|
60
|
-
// Clear screenshot cache on unmount
|
|
61
|
-
clearScreenshotCache();
|
|
62
|
-
};
|
|
63
|
-
}, []);
|
|
64
|
-
const { isMuted, isPlaying, toggleMute, play, stop } = useBackgroundMusic({
|
|
65
|
-
src: recapMusic,
|
|
66
|
-
volume: 0.6,
|
|
67
|
-
autoPlay: true,
|
|
68
|
-
loop: false,
|
|
69
|
-
});
|
|
70
|
-
const isNewUser = recapData.businessCategory === BUSINESS_CATEGORIES.NEW_USER;
|
|
71
|
-
// Define slides with their durations (new-user only sees the intro)
|
|
72
|
-
const fullSlideSet = [
|
|
73
|
-
{ id: "intro", duration: durations.intro },
|
|
74
|
-
{ id: "days", duration: durations.days },
|
|
75
|
-
{ id: "revenue", duration: durations.revenue },
|
|
76
|
-
{ id: "orders", duration: durations.orders },
|
|
77
|
-
{ id: "buyers", duration: durations.buyers },
|
|
78
|
-
{ id: "customer", duration: durations.customer },
|
|
79
|
-
{ id: "products", duration: durations.products },
|
|
80
|
-
{ id: "months", duration: durations.months },
|
|
81
|
-
{ id: "year", duration: durations.year },
|
|
82
|
-
{ id: "final", duration: durations.final },
|
|
83
|
-
];
|
|
84
|
-
const slides = isNewUser
|
|
85
|
-
? [{ id: "intro", duration: durations.intro }]
|
|
86
|
-
: fullSlideSet;
|
|
87
|
-
const currentSlide = slides[activeIndex];
|
|
88
|
-
const isFinalSlide = currentSlide.id === "final";
|
|
89
|
-
// Pre-capture screenshot and show share button when ready
|
|
90
|
-
React.useEffect(() => {
|
|
91
|
-
// Hide share button immediately on slide change
|
|
92
|
-
setIsShareVisible(false);
|
|
93
|
-
if (isFinalSlide || !slidesContainerRef.current)
|
|
94
|
-
return;
|
|
95
|
-
let isMounted = true;
|
|
96
|
-
// Wait for animations to complete, then pre-capture
|
|
97
|
-
const timer = setTimeout(async () => {
|
|
98
|
-
if (!isMounted || !slidesContainerRef.current)
|
|
99
|
-
return;
|
|
100
|
-
try {
|
|
101
|
-
// Pre-capture the screenshot
|
|
102
|
-
await preCaptureSlide(slidesContainerRef.current, {
|
|
103
|
-
slideId: currentSlide.id,
|
|
104
|
-
businessName: recapData.businessName,
|
|
105
|
-
year: recapData.year ?? 2025,
|
|
106
|
-
});
|
|
107
|
-
// Only show share button AFTER pre-capture is complete
|
|
108
|
-
if (isMounted) {
|
|
109
|
-
setIsShareVisible(true);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
catch (error) {
|
|
113
|
-
console.error('[RecapStory] Pre-capture failed:', error);
|
|
114
|
-
// Still show share button even if pre-capture fails (will fall back to download)
|
|
115
|
-
if (isMounted) {
|
|
116
|
-
setIsShareVisible(true);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}, 2500); // Wait 2.5s for all animations to complete
|
|
120
|
-
return () => {
|
|
121
|
-
isMounted = false;
|
|
122
|
-
clearTimeout(timer);
|
|
123
|
-
};
|
|
124
|
-
}, [activeIndex, currentSlide.id, recapData.businessName, recapData.year, isFinalSlide]);
|
|
125
|
-
// Ensure music plays only on slides 1-9 and stops immediately on the final slide
|
|
126
|
-
React.useEffect(() => {
|
|
127
|
-
if (isFinalSlide) {
|
|
128
|
-
stop();
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
if (!isPlaying) {
|
|
132
|
-
play();
|
|
133
|
-
}
|
|
134
|
-
}, [isFinalSlide, isPlaying, play, stop]);
|
|
135
|
-
// Stop music when reaching the final slide (safety net)
|
|
136
|
-
React.useEffect(() => {
|
|
137
|
-
if (isFinalSlide) {
|
|
138
|
-
stop();
|
|
139
|
-
}
|
|
140
|
-
}, [isFinalSlide, stop]);
|
|
141
|
-
const handleProgressComplete = () => {
|
|
142
|
-
if (isFinalSlide) {
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
if (activeIndex < slides.length - 1) {
|
|
146
|
-
setActiveIndex((prev) => prev + 1);
|
|
147
|
-
setIsPaused(false);
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
const handleReplay = () => {
|
|
151
|
-
setActiveIndex(0);
|
|
152
|
-
setIsPaused(false);
|
|
153
|
-
};
|
|
154
|
-
// Jump to specific slide when bar is clicked
|
|
155
|
-
const handleBarClick = (index) => {
|
|
156
|
-
setActiveIndex(index);
|
|
157
|
-
setIsPaused(false);
|
|
158
|
-
};
|
|
159
|
-
// Handle hold to pause
|
|
160
|
-
const handlePointerDown = (event) => {
|
|
161
|
-
// Ignore if on interactive elements
|
|
162
|
-
const target = event.target;
|
|
163
|
-
if (target.tagName === "BUTTON" || target.closest("button")) {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
isHoldingRef.current = false;
|
|
167
|
-
// Start hold timer - pause after 150ms of holding
|
|
168
|
-
holdTimerRef.current = setTimeout(() => {
|
|
169
|
-
isHoldingRef.current = true;
|
|
170
|
-
setIsPaused(true);
|
|
171
|
-
}, 150);
|
|
172
|
-
};
|
|
173
|
-
const handlePointerUp = (event) => {
|
|
174
|
-
// Clear hold timer
|
|
175
|
-
if (holdTimerRef.current) {
|
|
176
|
-
clearTimeout(holdTimerRef.current);
|
|
177
|
-
holdTimerRef.current = null;
|
|
178
|
-
}
|
|
179
|
-
// If was holding, just unpause and don't navigate
|
|
180
|
-
if (isHoldingRef.current) {
|
|
181
|
-
isHoldingRef.current = false;
|
|
182
|
-
setIsPaused(false);
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
// Ignore clicks on interactive elements
|
|
186
|
-
const target = event.target;
|
|
187
|
-
if (target.tagName === "BUTTON" || target.closest("button")) {
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
const container = event.currentTarget;
|
|
191
|
-
const rect = container.getBoundingClientRect();
|
|
192
|
-
const tapX = event.clientX - rect.left;
|
|
193
|
-
const screenWidth = rect.width;
|
|
194
|
-
// Left 20% of screen = previous slide
|
|
195
|
-
if (tapX < screenWidth * 0.2) {
|
|
196
|
-
if (activeIndex > 0) {
|
|
197
|
-
setActiveIndex((prev) => prev - 1);
|
|
198
|
-
setIsPaused(false);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
// Right 20% of screen = next slide
|
|
202
|
-
else if (tapX > screenWidth * 0.8) {
|
|
203
|
-
if (!isFinalSlide && activeIndex < slides.length - 1) {
|
|
204
|
-
setActiveIndex((prev) => prev + 1);
|
|
205
|
-
setIsPaused(false);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
// Middle 60% = no navigation, just tap (already handled by hold logic)
|
|
209
|
-
};
|
|
210
|
-
const handlePointerLeave = () => {
|
|
211
|
-
// Clear hold timer and unpause if leaving
|
|
212
|
-
if (holdTimerRef.current) {
|
|
213
|
-
clearTimeout(holdTimerRef.current);
|
|
214
|
-
holdTimerRef.current = null;
|
|
215
|
-
}
|
|
216
|
-
if (isHoldingRef.current) {
|
|
217
|
-
isHoldingRef.current = false;
|
|
218
|
-
setIsPaused(false);
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
// Render current slide content
|
|
222
|
-
const renderSlide = () => {
|
|
223
|
-
switch (currentSlide.id) {
|
|
224
|
-
case "intro":
|
|
225
|
-
return (_jsx(Slide1Intro, { businessName: recapData.businessName, businessCategory: recapData.businessCategory, introHeadline: recapData.introHeadline, introSubtitle: recapData.introSubtitle, frameImages: recapData.productImages }));
|
|
226
|
-
case "days":
|
|
227
|
-
return (_jsx(Slide2Days, { days: recapData.days, streak: recapData.streak, frameImages: recapData.productImages }));
|
|
228
|
-
case "revenue":
|
|
229
|
-
return (_jsx(Slide3Revenue, { revenue: recapData.revenue, currency: recapData.currency, businessCategory: recapData.businessCategory }));
|
|
230
|
-
case "orders":
|
|
231
|
-
return (_jsx(Slide4Orders, { orders: recapData.orders, frameImages: recapData.productImages }));
|
|
232
|
-
case "buyers":
|
|
233
|
-
return (_jsx(Slide5Buyers, { firstTimeBuyers: recapData.firstTimeBuyers, repeatBuyers: recapData.repeatBuyers, frameImages: recapData.productImages }));
|
|
234
|
-
case "customer":
|
|
235
|
-
return (_jsx(Slide6Customer, { websiteLink: recapData.websiteLink ?? "", websiteVisits: recapData.websiteVisits ?? 0, mostViewedProduct: recapData.mostViewedProduct ?? "", mostViewedProductCount: recapData.mostViewedProductCount ?? 0 }));
|
|
236
|
-
case "products":
|
|
237
|
-
return _jsx(Slide7Products, { products: recapData.topProducts });
|
|
238
|
-
case "months":
|
|
239
|
-
return _jsx(Slide8Months, { busiestMonth: recapData.busiestMonth });
|
|
240
|
-
case "year":
|
|
241
|
-
return (_jsx(Slide9Year, { businessCategory: recapData.businessCategory, year: recapData.year, frameImages: recapData.productImages }));
|
|
242
|
-
case "final":
|
|
243
|
-
return (_jsx(Slide10Final, { videoUrl: recapData.videoUrl, downloadUrl: recapData.downloadUrl, year: recapData.year, onReplay: handleReplay }));
|
|
244
|
-
default:
|
|
245
|
-
return null;
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
return (_jsxs("div", { className: "recap-story", children: [_jsxs("div", { className: "recap-story__top-group", children: [_jsx("div", { className: "recap-story__header-wrapper", children: _jsx(Header, { showRecapBadge: true, badgeVariant: isNewUser ? "new-user" : "default", year: recapData.year }) }), _jsx("div", { className: "recap-story__progress-wrap", children: _jsx("div", { className: "recap-story__progress", children: _jsx(StoryProgress, { total: slides.length, active: activeIndex, duration: currentSlide.duration, onComplete: handleProgressComplete, onBarClick: handleBarClick, hideBorder: isFinalSlide, isPaused: isPaused }) }) })] }), _jsx("div", { className: "recap-story__slides", ref: slidesContainerRef, onPointerDown: handlePointerDown, onPointerUp: handlePointerUp, onPointerLeave: handlePointerLeave, onPointerCancel: handlePointerLeave, children: _jsx(AnimatePresence, { mode: "wait", children: _jsx(motion.div, { variants: slideVariants, initial: "initial", animate: "animate", exit: "exit", className: "recap-story__slide", children: renderSlide() }, currentSlide.id) }) }), !isFinalSlide && !recapData.isVideo && (_jsxs(_Fragment, { children: [_jsx("button", { className: "recap-story__floating-btn recap-story__sound-btn", onClick: toggleMute, "aria-label": isMuted ? "Unmute" : "Mute", children: _jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M1.66675 8.83333V11.1667C1.66675 13 2.50008 13.8333 4.33341 13.8333H5.51675C5.82508 13.8333 6.12508 13.9417 6.36675 14.1333L8.68341 16.0167C10.3167 17.4 12.5001 16.325 12.5001 14.2333V5.76667C12.5001 3.66667 10.3167 2.6 8.68341 3.98333L6.36675 5.86667C6.12508 6.05833 5.82508 6.16667 5.51675 6.16667H4.33341C2.50008 6.16667 1.66675 7 1.66675 8.83333Z", stroke: "#4F4CD8", strokeWidth: "1.5" }), !isMuted && (_jsxs(_Fragment, { children: [_jsx("path", { d: "M15 6.66667C16.3834 8.30834 16.3834 11.7 15 13.3333", stroke: "#4F4CD8", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M16.825 4.58334C19.3917 7.59168 19.3917 12.4167 16.825 15.4167", stroke: "#4F4CD8", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }))] }) }), !isNewUser && (_jsxs("button", { className: `recap-story__floating-btn recap-story__share-btn ${isShareVisible ? 'recap-story__share-btn--visible' : ''}`, onClick: () => {
|
|
249
|
-
// Call without await - the function handles sharing internally
|
|
250
|
-
// This preserves the user gesture chain for mobile Web Share API
|
|
251
|
-
captureAndShareSlide(slidesContainerRef.current, {
|
|
252
|
-
slideId: currentSlide.id,
|
|
253
|
-
businessName: recapData.businessName,
|
|
254
|
-
year: recapData.year ?? new Date().getFullYear(),
|
|
255
|
-
});
|
|
256
|
-
}, "aria-label": "Share", children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M13.7 7.4165C16.7 7.67484 17.925 9.2165 17.925 12.5915V12.6998C17.925 16.4248 16.4333 17.9165 12.7083 17.9165H7.28332C3.55832 17.9165 2.06665 16.4248 2.06665 12.6998V12.5915C2.06665 9.2415 3.27498 7.69984 6.22498 7.42484", stroke: "#4F4CD8", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M10 12.4999V3.0166", stroke: "#4F4CD8", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M12.7916 4.87516L9.99998 2.0835L7.20831 4.87516", stroke: "#4F4CD8", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("span", { className: "recap-story__share-text", children: "Share" })] }))] }))] }));
|
|
6
|
+
function RecapStory(props) {
|
|
7
|
+
return _jsx(RecapStory2026, { ...props });
|
|
257
8
|
}
|
|
258
9
|
export default RecapStory;
|
package/dist/StoryProgress.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "./StoryProgress.css";
|
|
2
1
|
interface StoryProgressProps {
|
|
3
2
|
total: number;
|
|
4
3
|
active: number;
|
|
@@ -9,7 +8,8 @@ interface StoryProgressProps {
|
|
|
9
8
|
isPaused?: boolean;
|
|
10
9
|
}
|
|
11
10
|
/**
|
|
12
|
-
* StoryProgress -
|
|
11
|
+
* StoryProgress - Self-timed story progress bars for custom layouts.
|
|
12
|
+
* RecapStory drives StoryProgressBars from its player instead.
|
|
13
13
|
*/
|
|
14
14
|
declare function StoryProgress({ total, active, duration, onComplete, onBarClick, hideBorder, isPaused, }: StoryProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default StoryProgress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoryProgress.d.ts","sourceRoot":"","sources":["../src/StoryProgress.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StoryProgress.d.ts","sourceRoot":"","sources":["../src/StoryProgress.tsx"],"names":[],"mappings":"AAIA,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,iBAAS,aAAa,CAAC,EACrB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,QAAQ,GACT,EAAE,kBAAkB,2CAiBpB;AAED,eAAe,aAAa,CAAC"}
|