@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,9 @@
|
|
|
1
|
+
import { type SlideProps } from './slides';
|
|
2
|
+
export declare function LowDataIntroSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function LowDataFirstChapterSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function LowDataFirstOrderSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function LowDataCustomersSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function LowDataStoreSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function LowDataRecognitionSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function LowDataSignatureSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=lowDataSlides.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lowDataSlides.d.ts","sourceRoot":"","sources":["../../src/top10/lowDataSlides.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAkE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3G,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CAQrD;AAGD,wBAAgB,wBAAwB,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CAmB5D;AAGD,wBAAgB,sBAAsB,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CAwB1D;AAGD,wBAAgB,qBAAqB,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CA6BzD;AAGD,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CA8BrD;AAGD,wBAAgB,uBAAuB,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CAyB3D;AAGD,wBAAgB,qBAAqB,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CASzD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import { BagIllustration, BookIllustration, CustomersIllustration, OpenSignIllustration, StorePageIllustration, } from './illustrations';
|
|
4
|
+
import { countInWords, dayAndMonth, shortDateUpper } from './format';
|
|
5
|
+
import { fadeIn } from './motion';
|
|
6
|
+
import { At, Illustration, IntroSlide, RecognitionSlide, SignatureSlide } from './slides';
|
|
7
|
+
/* Low data (`low_data`) story frames. Motion from docs/design/.../low-data-motion.md (preview video). */
|
|
8
|
+
export function LowDataIntroSlide({ data }) {
|
|
9
|
+
return (_jsx(IntroSlide, { data: data, headline: "Here\u2019s to Your Business.", body: "There\u2019s a lot that goes into running a business. Here\u2019s a look at yours on Huxxle." }));
|
|
10
|
+
}
|
|
11
|
+
// Low data First chapter (18941:8436): OPEN sign swings from the pin
|
|
12
|
+
export function LowDataFirstChapterSlide({ data }) {
|
|
13
|
+
return (_jsxs(_Fragment, { children: [_jsxs(At, { top: 100, className: "s26-stack", style: { gap: 24 }, children: [_jsx("p", { className: "s26-text s26-eyebrow", children: "Your first chapter" }), _jsxs(motion.p, { className: "s26-text s26-h4", ...fadeIn(0.25), children: ["Your Storefront Opened on ", dayAndMonth(data.storeOpenedOn), "."] })] }), _jsx(Illustration, { top: 216.77, height: 320, children: _jsx(OpenSignIllustration, {}) }), _jsx(At, { top: 556.5, anchor: "bottom", delay: 1.2, children: _jsx("p", { className: "s26-text s26-body s26-body--strong", children: "The day your business opened its Huxxle storefront." }) })] }));
|
|
14
|
+
}
|
|
15
|
+
// Low data First order (18941:8557): Steady bag lift loop on the primary gradient
|
|
16
|
+
export function LowDataFirstOrderSlide({ data }) {
|
|
17
|
+
return (_jsxs(_Fragment, { children: [_jsxs(At, { top: 100, className: "s26-stack", style: { gap: 24 }, children: [_jsx("p", { className: "s26-text s26-eyebrow", children: "The first one" }), _jsxs(motion.p, { className: "s26-text s26-h4", ...fadeIn(0.25), children: ["Your First Paid", _jsx("br", {}), "Order on Huxxle."] })] }), _jsx(Illustration, { top: 230, height: 394, children: _jsx(BagIllustration, {}) }), _jsxs(At, { top: 556.5, anchor: "bottom", className: "s26-stack", style: { gap: 40 }, children: [_jsx(motion.p, { className: "s26-text s26-h4", ...fadeIn(1.1), children: shortDateUpper(data.firstOrderOn) }), _jsx(motion.p, { className: "s26-text s26-body s26-body--strong", ...fadeIn(1.4), children: "The date Huxxle recorded that order. A moment worth remembering." })] })] }));
|
|
18
|
+
}
|
|
19
|
+
// Low data Customers (18941:8754): Steady count layout over the Top 10 return-arrow illustration
|
|
20
|
+
export function LowDataCustomersSlide({ data }) {
|
|
21
|
+
const customers = data.totalCustomers;
|
|
22
|
+
const hasOneCustomer = customers === 1;
|
|
23
|
+
return (_jsxs(_Fragment, { children: [_jsxs(At, { top: 100, className: "s26-stack", style: { gap: 24 }, children: [_jsx("p", { className: "s26-text s26-eyebrow", children: "Your people" }), _jsxs(motion.div, { className: "s26-steady-count", ...fadeIn(0.15), children: [_jsx("p", { className: "s26-text s26-h2 s26-steady-count__value", children: customers.toLocaleString('en-NG') }), _jsx("p", { className: "s26-text s26-body s26-body--strong s26-upper", children: hasOneCustomer ? 'Customer' : 'Customers' })] }), _jsx(motion.p, { className: "s26-text s26-h4", ...fadeIn(0.55), children: "Part of Your Story." })] }), _jsx(Illustration, { top: 337, height: 240, children: _jsx(CustomersIllustration, {}) }), _jsx(At, { top: 661, anchor: "bottom", delay: 2.2, children: _jsxs("p", { className: "s26-text s26-body s26-body--strong", children: [hasOneCustomer ? 'This customer placed a paid order' : 'These customers placed paid orders', ' ', "recorded on Huxxle this year."] }) })] }));
|
|
24
|
+
}
|
|
25
|
+
// Low data Store online (18947:182941): browser pops in; cursor clicks the shop
|
|
26
|
+
export function LowDataStoreSlide({ data }) {
|
|
27
|
+
const orders = data.storefrontOrders ?? 0;
|
|
28
|
+
const attributed = orders > 0
|
|
29
|
+
? ` ${countInWords(orders)} paid ${orders === 1 ? 'order was' : 'orders were'} linked to your storefront.`
|
|
30
|
+
: '';
|
|
31
|
+
return (_jsxs(_Fragment, { children: [_jsxs(At, { top: 100, className: "s26-stack", style: { gap: 24 }, children: [_jsx("p", { className: "s26-text s26-eyebrow", children: "Your store online" }), _jsxs(motion.div, { className: "s26-steady-count", ...fadeIn(0.15), children: [_jsx("p", { className: "s26-text s26-h2 s26-steady-count__value", children: data.websiteVisits.toLocaleString('en-NG') }), _jsx("p", { className: "s26-text s26-body s26-body--strong s26-upper", children: "Visits" })] }), _jsxs(motion.p, { className: "s26-text s26-h4", ...fadeIn(0.55), children: ["Your Store\u2019s", _jsx("br", {}), "Recorded Visits."] })] }), _jsx(Illustration, { top: 282, height: 350, children: _jsx(StorePageIllustration, {}) }), _jsx(At, { top: 661, anchor: "bottom", delay: 1.6, children: _jsxs("p", { className: "s26-text s26-body s26-body--strong", children: ["Visits Huxxle recorded for your storefront this year.", attributed] }) })] }));
|
|
32
|
+
}
|
|
33
|
+
// Low data Recognition (18939:6836): keep the book layout and show recorded activity.
|
|
34
|
+
export function LowDataRecognitionSlide({ data }) {
|
|
35
|
+
const customers = data.totalCustomers ?? 0;
|
|
36
|
+
const catalogue = data.catalogueProducts ?? 0;
|
|
37
|
+
const days = data.daysOnHuxxle ?? 0;
|
|
38
|
+
return (_jsx(RecognitionSlide, { data: data, art: _jsx(BookIllustration, {}), title: "Your Business Story So Far", description: "Keep your Huxxle records up to date to see more of your business story next time.", chips: [
|
|
39
|
+
data.orders > 0 ? `${data.orders.toLocaleString('en-NG')} paid ${data.orders === 1 ? 'order' : 'orders'}` : null,
|
|
40
|
+
customers > 0 ? `${customers.toLocaleString('en-NG')} ${customers === 1 ? 'customer' : 'customers'}` : null,
|
|
41
|
+
data.orders === 0 && catalogue > 0
|
|
42
|
+
? `${catalogue.toLocaleString('en-NG')} catalogue ${catalogue === 1 ? 'entry' : 'entries'}`
|
|
43
|
+
: null,
|
|
44
|
+
days > 0 ? `${days.toLocaleString('en-NG')} ${days === 1 ? 'day' : 'days'} on Huxxle` : null,
|
|
45
|
+
], bodyClassName: "s26-body s26-body--strong", top: 100, anchor: "top", compact: true }));
|
|
46
|
+
}
|
|
47
|
+
// Low data Signature (18939:6880): the Top 10 horizon with new copy
|
|
48
|
+
export function LowDataSignatureSlide({ data }) {
|
|
49
|
+
return (_jsx(SignatureSlide, { data: data, headline: "Your Story Keeps Going", body: "Here\u2019s to what comes next for your business.", bodyClassName: "s26-body s26-body--strong" }));
|
|
50
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Transition, Variants } from 'framer-motion';
|
|
2
|
+
import type { LayerMotion } from './illustrations/IllustrationLayers';
|
|
3
|
+
export declare const SLIDE_CROSSFADE_S = 0.3;
|
|
4
|
+
export declare const slideCrossfade: Variants;
|
|
5
|
+
/** Opacity-only reveal; the video never slides text, it only fades it in place. */
|
|
6
|
+
export declare const fadeIn: (delay: number) => LayerMotion;
|
|
7
|
+
/** Entrance for a whole illustration group. */
|
|
8
|
+
export declare const popIn: (delay: number, from?: {
|
|
9
|
+
scale?: number;
|
|
10
|
+
y?: number;
|
|
11
|
+
x?: number;
|
|
12
|
+
rotate?: number;
|
|
13
|
+
}) => LayerMotion;
|
|
14
|
+
/** Keyframes that repeat every `period` seconds, starting after `delay`. `at` are seconds into the cycle. */
|
|
15
|
+
export declare const loop: (delay: number, period: number, at: number[], values: Record<string, number[]>, ease?: Transition["ease"]) => LayerMotion;
|
|
16
|
+
/** Keyframes that play once; `at` are seconds after `delay`. */
|
|
17
|
+
export declare const sequence: (delay: number, at: number[], values: Record<string, number[]>, ease?: Transition["ease"]) => LayerMotion;
|
|
18
|
+
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../src/top10/motion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAKtE,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,eAAO,MAAM,cAAc,EAAE,QAI5B,CAAC;AAIF,mFAAmF;AACnF,eAAO,MAAM,MAAM,GAAI,OAAO,MAAM,KAAG,WAIrC,CAAC;AAEH,+CAA+C;AAC/C,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,OAAM;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,KAAG,WAI5G,CAAC;AAMH,6GAA6G;AAC7G,eAAO,MAAM,IAAI,GACf,OAAO,MAAM,EACb,QAAQ,MAAM,EACd,IAAI,MAAM,EAAE,EACZ,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAChC,OAAM,UAAU,CAAC,MAAM,CAAa,KACnC,WAOF,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,QAAQ,GACnB,OAAO,MAAM,EACb,IAAI,MAAM,EAAE,EACZ,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAChC,OAAM,UAAU,CAAC,MAAM,CAAe,KACrC,WAQF,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* Timings measured from the designer's recap video (docs/design/yQQp3IaorPCHFJ2QkY9atK/top10-motion.md).
|
|
2
|
+
Delays are seconds from the moment a slide starts fading in. */
|
|
3
|
+
export const SLIDE_CROSSFADE_S = 0.3;
|
|
4
|
+
export const slideCrossfade = {
|
|
5
|
+
initial: { opacity: 0 },
|
|
6
|
+
animate: { opacity: 1, transition: { duration: SLIDE_CROSSFADE_S, ease: 'easeOut' } },
|
|
7
|
+
exit: { opacity: 0, transition: { duration: SLIDE_CROSSFADE_S, ease: 'easeIn' } },
|
|
8
|
+
};
|
|
9
|
+
const FADE = { duration: 0.35, ease: 'easeOut' };
|
|
10
|
+
/** Opacity-only reveal; the video never slides text, it only fades it in place. */
|
|
11
|
+
export const fadeIn = (delay) => ({
|
|
12
|
+
initial: { opacity: 0 },
|
|
13
|
+
animate: { opacity: 1 },
|
|
14
|
+
transition: { ...FADE, delay },
|
|
15
|
+
});
|
|
16
|
+
/** Entrance for a whole illustration group. */
|
|
17
|
+
export const popIn = (delay, from = {}) => ({
|
|
18
|
+
initial: { opacity: 0, scale: 1, x: 0, y: 0, rotate: 0, ...from },
|
|
19
|
+
animate: { opacity: 1, scale: 1, x: 0, y: 0, rotate: 0 },
|
|
20
|
+
transition: { duration: 0.45, ease: [0.22, 1, 0.36, 1], delay },
|
|
21
|
+
});
|
|
22
|
+
/* One easing per segment: a single easing is applied across the whole keyframe track when framer-motion
|
|
23
|
+
hands opacity to the browser's animation engine, which stretches short fades. */
|
|
24
|
+
const perSegment = (ease, frames) => Array.from({ length: frames - 1 }, () => ease);
|
|
25
|
+
/** Keyframes that repeat every `period` seconds, starting after `delay`. `at` are seconds into the cycle. */
|
|
26
|
+
export const loop = (delay, period, at, values, ease = 'easeOut') => {
|
|
27
|
+
const initial = Object.fromEntries(Object.entries(values).map(([key, frames]) => [key, frames[0]]));
|
|
28
|
+
return {
|
|
29
|
+
initial,
|
|
30
|
+
animate: values,
|
|
31
|
+
transition: { duration: period, times: at.map((t) => t / period), ease: perSegment(ease, at.length), delay, repeat: Infinity },
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
/** Keyframes that play once; `at` are seconds after `delay`. */
|
|
35
|
+
export const sequence = (delay, at, values, ease = 'easeInOut') => {
|
|
36
|
+
const duration = at[at.length - 1];
|
|
37
|
+
const initial = Object.fromEntries(Object.entries(values).map(([key, frames]) => [key, frames[0]]));
|
|
38
|
+
return {
|
|
39
|
+
initial,
|
|
40
|
+
animate: values,
|
|
41
|
+
transition: { duration, times: at.map((t) => t / duration), ease: perSegment(ease, at.length), delay },
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { RecapData } from '../types';
|
|
2
|
+
import { type StoryDefinition } from '../story';
|
|
3
|
+
/** Themes whose light background needs the dark close icon. */
|
|
4
|
+
export declare const LIGHT_THEMES: string[];
|
|
5
|
+
/** Status bar color per theme: the solid color, or the top of the gradient. */
|
|
6
|
+
export declare const THEME_STATUS_BAR_COLORS: Record<string, string>;
|
|
7
|
+
/** The 2026 story, in Figma order. Slides without the data they need are skipped. */
|
|
8
|
+
export declare const top10Stories: StoryDefinition<RecapData>[];
|
|
9
|
+
/** The Steady story: Top 10 slides where the frames match, Steady frames where they differ.
|
|
10
|
+
* Designer video order: Intro → Orders → Biggest Day → Months → … */
|
|
11
|
+
export declare const steadyStories: StoryDefinition<RecapData>[];
|
|
12
|
+
/** The Fluctuating story: Steady's Biggest Day, its own Customers, Milestone and Recognition, Top 10 for the rest.
|
|
13
|
+
* Designer video order: Intro → Favourite → Milestone → Biggest Day → Customers → … */
|
|
14
|
+
export declare const fluctuatingStories: StoryDefinition<RecapData>[];
|
|
15
|
+
/** The Low Data story can describe recorded sales and catalogue work. */
|
|
16
|
+
export declare const lowDataStories: StoryDefinition<RecapData>[];
|
|
17
|
+
/** The Zero Order story for businesses without qualifying paid orders. */
|
|
18
|
+
export declare const zeroOrderStories: StoryDefinition<RecapData>[];
|
|
19
|
+
export declare function storiesForCategory(data: RecapData): StoryDefinition<RecapData>[];
|
|
20
|
+
export declare function buildStories(data: RecapData): import("../story").ResolvedStory<RecapData>[];
|
|
21
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/top10/registry.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AA2GhE,+DAA+D;AAC/D,eAAO,MAAM,YAAY,EAAE,MAAM,EAAc,CAAC;AAEhD,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAO1D,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,SAAS,CAAC,EAkEpD,CAAC;AAIF;sEACsE;AACtE,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,SAAS,CAAC,EAsCrD,CAAC;AAIF;wFACwF;AACxF,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,SAAS,CAAC,EA4B1D,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,SAAS,CAAC,EA6BtD,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAAC,SAAS,CAAC,EAmBxD,CAAC;AAmBF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,gCAQjD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,iDAmB3C"}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { resolveStories } from '../story';
|
|
3
|
+
import { ILLUSTRATION_ASSETS } from './illustrations';
|
|
4
|
+
import { BiggestDaySlide, BuildUpSlide, ClosingSlide, CustomersSlide, FavouriteSlide, GrowthSlide, IntroSlide, MilestoneSlide, OrdersSlide, RecognitionSlide, SignatureSlide, SurpriseSlide, } from './slides';
|
|
5
|
+
import { STEADY_ASSETS, SteadyBiggestDaySlide, SteadyMilestoneSlide, SteadyMonthsSlide, SteadyOrdersSlide, SteadyRecognitionSlide, } from './steadySlides';
|
|
6
|
+
import { FluctuatingCustomersSlide, FluctuatingMilestoneSlide, FluctuatingRecognitionSlide } from './fluctuatingSlides';
|
|
7
|
+
import { LowDataCustomersSlide, LowDataFirstChapterSlide, LowDataFirstOrderSlide, LowDataIntroSlide, LowDataRecognitionSlide, LowDataSignatureSlide, LowDataStoreSlide, } from './lowDataSlides';
|
|
8
|
+
import { ZeroOrderFirstChapterSlide, ZeroOrderIntroSlide, ZeroOrderOnlineSlide, ZeroOrderProductsSlide, ZeroOrderSignatureSlide, } from './zeroOrderSlides';
|
|
9
|
+
import { RECAP_CATEGORIES, resolveRecapCategory } from '../categories';
|
|
10
|
+
import milestoneIllustration from '../assets/top10/milestone/illustration.png';
|
|
11
|
+
import { fullMonthName } from './format';
|
|
12
|
+
const MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
13
|
+
function monthNumber(value) {
|
|
14
|
+
if (!value)
|
|
15
|
+
return 0;
|
|
16
|
+
const month = fullMonthName(value);
|
|
17
|
+
return [month.toLowerCase(), month.slice(0, 3).toLowerCase()].includes(value.toLowerCase())
|
|
18
|
+
? MONTHS.indexOf(month) + 1
|
|
19
|
+
: 0;
|
|
20
|
+
}
|
|
21
|
+
function hasCount(value) {
|
|
22
|
+
return typeof value === 'number' && Number.isSafeInteger(value) && value >= 0;
|
|
23
|
+
}
|
|
24
|
+
function hasPositiveCount(value) {
|
|
25
|
+
return hasCount(value) && value > 0;
|
|
26
|
+
}
|
|
27
|
+
function hasCustomerCount(data) {
|
|
28
|
+
return hasPositiveCount(data.totalCustomers) && data.totalCustomers <= data.orders;
|
|
29
|
+
}
|
|
30
|
+
function isCalendarDate(value) {
|
|
31
|
+
if (!value || !/^\d{4}-\d{2}-\d{2}$/.test(value))
|
|
32
|
+
return false;
|
|
33
|
+
const date = new Date(`${value}T00:00:00Z`);
|
|
34
|
+
return Number.isFinite(date.getTime()) && date.toISOString().slice(0, 10) === value;
|
|
35
|
+
}
|
|
36
|
+
function hasBiggestDay(data) {
|
|
37
|
+
const day = data.biggestDay;
|
|
38
|
+
return Boolean(day && isCalendarDate(day.date) && hasPositiveCount(day.orders) && day.orders <= data.orders);
|
|
39
|
+
}
|
|
40
|
+
function hasGrowth(data) {
|
|
41
|
+
const baseline = monthNumber(data.growthComparison?.baselineMonth);
|
|
42
|
+
const comparison = monthNumber(data.growthComparison?.comparisonMonth);
|
|
43
|
+
const completed = data.completedMonths ?? (data.periodMode === 'preview' ? 0 : 12);
|
|
44
|
+
return hasPositiveCount(completed) && completed <= 12
|
|
45
|
+
&& baseline > 0 && comparison > baseline && comparison <= completed
|
|
46
|
+
&& typeof data.growthMultiplier === 'number' && Number.isFinite(data.growthMultiplier) && data.growthMultiplier > 1;
|
|
47
|
+
}
|
|
48
|
+
function hasBusiestMonth(data) {
|
|
49
|
+
return monthNumber(data.busiestMonth) > 0 && hasPositiveCount(data.busiestMonthOrders)
|
|
50
|
+
&& data.busiestMonthOrders <= data.orders;
|
|
51
|
+
}
|
|
52
|
+
function hasSteadyCalendar(data) {
|
|
53
|
+
const completed = data.completedMonths ?? (data.periodMode === 'preview' ? 0 : 12);
|
|
54
|
+
const busiest = monthNumber(data.busiestMonth);
|
|
55
|
+
return hasCount(data.activeMonths) && data.activeMonths >= 3 && data.activeMonths <= completed
|
|
56
|
+
&& hasPositiveCount(completed) && completed <= 12 && busiest > 0 && busiest <= completed
|
|
57
|
+
&& (!data.sellingMonths || (data.sellingMonths.length === data.activeMonths
|
|
58
|
+
&& new Set(data.sellingMonths).size === data.activeMonths
|
|
59
|
+
&& data.sellingMonths.every((month) => Number.isInteger(month) && month >= 1 && month <= completed)
|
|
60
|
+
&& data.sellingMonths.includes(busiest)));
|
|
61
|
+
}
|
|
62
|
+
function hasLowDataRecognition(data) {
|
|
63
|
+
return hasPositiveCount(data.orders) || hasPositiveCount(data.catalogueProducts);
|
|
64
|
+
}
|
|
65
|
+
/** Themes whose light background needs the dark close icon. */
|
|
66
|
+
export const LIGHT_THEMES = ['light'];
|
|
67
|
+
/** Status bar color per theme: the solid color, or the top of the gradient. */
|
|
68
|
+
export const THEME_STATUS_BAR_COLORS = {
|
|
69
|
+
dark: '#141619',
|
|
70
|
+
light: '#FFFFFF',
|
|
71
|
+
primary: '#4F4CD8',
|
|
72
|
+
secondary: '#CC6240',
|
|
73
|
+
'secondary-flat': '#CC6240',
|
|
74
|
+
night: '#11102C',
|
|
75
|
+
};
|
|
76
|
+
/** The 2026 story, in Figma order. Slides without the data they need are skipped. */
|
|
77
|
+
export const top10Stories = [
|
|
78
|
+
{ id: 'intro', theme: 'primary', render: (data) => _jsx(IntroSlide, { data: data }) },
|
|
79
|
+
{ id: 'orders', theme: 'dark', assets: () => ILLUSTRATION_ASSETS.orders, render: (data) => _jsx(OrdersSlide, { data: data }) },
|
|
80
|
+
{
|
|
81
|
+
id: 'biggest-day',
|
|
82
|
+
theme: 'light',
|
|
83
|
+
include: (data) => hasBiggestDay(data) && Number.isFinite(data.biggestDay?.revenue)
|
|
84
|
+
&& (data.biggestDay?.revenue ?? 0) > 0 && Boolean(data.currency),
|
|
85
|
+
assets: () => ILLUSTRATION_ASSETS.biggestDay,
|
|
86
|
+
render: (data) => _jsx(BiggestDaySlide, { data: data }),
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: 'growth',
|
|
90
|
+
theme: 'primary',
|
|
91
|
+
include: (data) => hasGrowth(data) || hasBusiestMonth(data),
|
|
92
|
+
assets: () => ILLUSTRATION_ASSETS.growth,
|
|
93
|
+
render: (data) => _jsx(GrowthSlide, { data: data, showGrowth: hasGrowth(data) }),
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: 'customers', theme: 'secondary', assets: () => ILLUSTRATION_ASSETS.customers,
|
|
97
|
+
include: (data) => hasCount(data.firstTimeBuyers) && hasCount(data.repeatBuyers)
|
|
98
|
+
&& data.firstTimeBuyers <= data.orders && data.repeatBuyers <= data.orders
|
|
99
|
+
&& (data.firstTimeBuyers > 0 || data.repeatBuyers > 0),
|
|
100
|
+
render: (data) => _jsx(CustomersSlide, { data: data }),
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 'favourite',
|
|
104
|
+
theme: 'dark',
|
|
105
|
+
include: (data) => Boolean(data.favouriteProduct?.name.trim())
|
|
106
|
+
&& Number.isFinite(data.favouriteProduct?.units) && (data.favouriteProduct?.units ?? 0) > 0,
|
|
107
|
+
assets: (data) => [data.favouriteProduct?.productImage].filter(Boolean),
|
|
108
|
+
render: (data) => _jsx(FavouriteSlide, { data: data }),
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 'surprise',
|
|
112
|
+
// Figma returned no colors for this frame; its illustration has a white backdrop
|
|
113
|
+
theme: 'light',
|
|
114
|
+
include: (data) => Boolean(data.bestWeekday?.day.trim())
|
|
115
|
+
&& hasPositiveCount(data.bestWeekday?.orders) && data.bestWeekday.orders <= data.orders,
|
|
116
|
+
assets: () => ILLUSTRATION_ASSETS.surprise,
|
|
117
|
+
render: (data) => _jsx(SurpriseSlide, { data: data }),
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: 'milestone',
|
|
121
|
+
theme: 'primary',
|
|
122
|
+
include: (data) => data.currency === 'NGN' && isCalendarDate(data.milestone?.reachedOn)
|
|
123
|
+
&& Number.isFinite(data.milestone?.amount) && (data.milestone?.amount ?? 0) >= 1000000,
|
|
124
|
+
assets: () => [milestoneIllustration],
|
|
125
|
+
render: (data) => _jsx(MilestoneSlide, { data: data }),
|
|
126
|
+
},
|
|
127
|
+
{ id: 'build-up', theme: 'night', include: (data) => !!data.personality, render: (data) => _jsx(BuildUpSlide, { data: data }) },
|
|
128
|
+
{
|
|
129
|
+
id: 'recognition',
|
|
130
|
+
theme: 'night',
|
|
131
|
+
include: (data) => !!data.personality,
|
|
132
|
+
assets: () => ILLUSTRATION_ASSETS.plug,
|
|
133
|
+
render: (data) => _jsx(RecognitionSlide, { data: data, title: "Top Plug" }),
|
|
134
|
+
},
|
|
135
|
+
{ id: 'signature', theme: 'night', assets: () => ILLUSTRATION_ASSETS.horizon, render: (data) => _jsx(SignatureSlide, { data: data }) },
|
|
136
|
+
{
|
|
137
|
+
id: 'closing',
|
|
138
|
+
theme: 'light',
|
|
139
|
+
outro: true,
|
|
140
|
+
assets: () => ILLUSTRATION_ASSETS.closing,
|
|
141
|
+
render: (data, controls) => _jsx(ClosingSlide, { data: data, controls: controls }),
|
|
142
|
+
},
|
|
143
|
+
];
|
|
144
|
+
const top10 = (id) => top10Stories.find((story) => story.id === id);
|
|
145
|
+
/** The Steady story: Top 10 slides where the frames match, Steady frames where they differ.
|
|
146
|
+
* Designer video order: Intro → Orders → Biggest Day → Months → … */
|
|
147
|
+
export const steadyStories = [
|
|
148
|
+
top10('intro'),
|
|
149
|
+
{ id: 'orders', theme: 'light', assets: () => STEADY_ASSETS.orders, render: (data) => _jsx(SteadyOrdersSlide, { data: data }) },
|
|
150
|
+
{
|
|
151
|
+
id: 'biggest-day',
|
|
152
|
+
// Figma fills this frame flat #CC6240, not the secondary gradient
|
|
153
|
+
theme: 'secondary-flat',
|
|
154
|
+
include: hasBiggestDay,
|
|
155
|
+
assets: () => ILLUSTRATION_ASSETS.surprise,
|
|
156
|
+
render: (data) => _jsx(SteadyBiggestDaySlide, { data: data }),
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: 'months',
|
|
160
|
+
theme: 'light',
|
|
161
|
+
include: hasSteadyCalendar,
|
|
162
|
+
assets: () => STEADY_ASSETS.months,
|
|
163
|
+
render: (data) => _jsx(SteadyMonthsSlide, { data: data }),
|
|
164
|
+
},
|
|
165
|
+
top10('customers'),
|
|
166
|
+
top10('favourite'),
|
|
167
|
+
{
|
|
168
|
+
id: 'milestone',
|
|
169
|
+
theme: 'dark',
|
|
170
|
+
include: (data) => isCalendarDate(data.orderMilestone?.reachedOn)
|
|
171
|
+
&& hasPositiveCount(data.orderMilestone?.orders) && data.orderMilestone.orders <= data.orders,
|
|
172
|
+
assets: () => STEADY_ASSETS.milestone,
|
|
173
|
+
render: (data) => _jsx(SteadyMilestoneSlide, { data: data }),
|
|
174
|
+
},
|
|
175
|
+
top10('build-up'),
|
|
176
|
+
{
|
|
177
|
+
id: 'recognition',
|
|
178
|
+
theme: 'night',
|
|
179
|
+
include: (data) => !!data.personality,
|
|
180
|
+
assets: () => STEADY_ASSETS.recognition,
|
|
181
|
+
render: (data) => _jsx(SteadyRecognitionSlide, { data: data }),
|
|
182
|
+
},
|
|
183
|
+
top10('signature'),
|
|
184
|
+
top10('closing'),
|
|
185
|
+
];
|
|
186
|
+
const steady = (id) => steadyStories.find((story) => story.id === id);
|
|
187
|
+
/** The Fluctuating story: Steady's Biggest Day, its own Customers, Milestone and Recognition, Top 10 for the rest.
|
|
188
|
+
* Designer video order: Intro → Favourite → Milestone → Biggest Day → Customers → … */
|
|
189
|
+
export const fluctuatingStories = [
|
|
190
|
+
top10('intro'),
|
|
191
|
+
top10('favourite'),
|
|
192
|
+
{
|
|
193
|
+
id: 'milestone',
|
|
194
|
+
theme: 'primary',
|
|
195
|
+
include: hasBusiestMonth,
|
|
196
|
+
assets: () => ILLUSTRATION_ASSETS.busyPhone,
|
|
197
|
+
render: (data) => _jsx(FluctuatingMilestoneSlide, { data: data }),
|
|
198
|
+
},
|
|
199
|
+
steady('biggest-day'),
|
|
200
|
+
{
|
|
201
|
+
id: 'customers',
|
|
202
|
+
theme: 'secondary',
|
|
203
|
+
include: hasCustomerCount,
|
|
204
|
+
assets: () => ILLUSTRATION_ASSETS.customers,
|
|
205
|
+
render: (data) => _jsx(FluctuatingCustomersSlide, { data: data }),
|
|
206
|
+
},
|
|
207
|
+
top10('build-up'),
|
|
208
|
+
{
|
|
209
|
+
id: 'recognition',
|
|
210
|
+
theme: 'night',
|
|
211
|
+
include: (data) => !!data.personality,
|
|
212
|
+
assets: () => ILLUSTRATION_ASSETS.seasonalWave,
|
|
213
|
+
render: (data) => _jsx(FluctuatingRecognitionSlide, { data: data }),
|
|
214
|
+
},
|
|
215
|
+
top10('signature'),
|
|
216
|
+
top10('closing'),
|
|
217
|
+
];
|
|
218
|
+
/** The Low Data story can describe recorded sales and catalogue work. */
|
|
219
|
+
export const lowDataStories = [
|
|
220
|
+
{ id: 'intro', theme: 'primary', render: (data) => _jsx(LowDataIntroSlide, { data: data }) },
|
|
221
|
+
{
|
|
222
|
+
id: 'first-chapter',
|
|
223
|
+
theme: 'dark',
|
|
224
|
+
include: (data) => isCalendarDate(data.storeOpenedOn),
|
|
225
|
+
assets: () => ILLUSTRATION_ASSETS.openSign,
|
|
226
|
+
render: (data) => _jsx(LowDataFirstChapterSlide, { data: data }),
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: 'first-order',
|
|
230
|
+
theme: 'primary',
|
|
231
|
+
include: (data) => hasPositiveCount(data.orders) && isCalendarDate(data.firstOrderOn),
|
|
232
|
+
assets: () => ILLUSTRATION_ASSETS.bag,
|
|
233
|
+
render: (data) => _jsx(LowDataFirstOrderSlide, { data: data }),
|
|
234
|
+
},
|
|
235
|
+
{ id: 'customers', theme: 'light', include: hasCustomerCount, assets: () => ILLUSTRATION_ASSETS.customers, render: (data) => _jsx(LowDataCustomersSlide, { data: data }) },
|
|
236
|
+
top10('favourite'),
|
|
237
|
+
{
|
|
238
|
+
id: 'store',
|
|
239
|
+
theme: 'light',
|
|
240
|
+
include: (data) => hasPositiveCount(data.websiteVisits),
|
|
241
|
+
assets: () => ILLUSTRATION_ASSETS.storePage,
|
|
242
|
+
render: (data) => _jsx(LowDataStoreSlide, { data: data }),
|
|
243
|
+
},
|
|
244
|
+
{ ...top10('build-up'), include: hasLowDataRecognition },
|
|
245
|
+
{ id: 'recognition', theme: 'night', include: hasLowDataRecognition, assets: () => ILLUSTRATION_ASSETS.book, render: (data) => _jsx(LowDataRecognitionSlide, { data: data }) },
|
|
246
|
+
{ id: 'signature', theme: 'night', assets: () => ILLUSTRATION_ASSETS.horizon, render: (data) => _jsx(LowDataSignatureSlide, { data: data }) },
|
|
247
|
+
top10('closing'),
|
|
248
|
+
];
|
|
249
|
+
/** The Zero Order story for businesses without qualifying paid orders. */
|
|
250
|
+
export const zeroOrderStories = [
|
|
251
|
+
{ id: 'intro', theme: 'primary', render: (data) => _jsx(ZeroOrderIntroSlide, { data: data }) },
|
|
252
|
+
{
|
|
253
|
+
id: 'first-chapter',
|
|
254
|
+
theme: 'dark',
|
|
255
|
+
assets: () => ILLUSTRATION_ASSETS.openSign,
|
|
256
|
+
render: (data) => isCalendarDate(data.storeOpenedOn)
|
|
257
|
+
? _jsx(LowDataFirstChapterSlide, { data: data })
|
|
258
|
+
: _jsx(ZeroOrderFirstChapterSlide, { joinedOn: isCalendarDate(data.accountJoinedOn) ? data.accountJoinedOn : undefined }),
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
id: 'products',
|
|
262
|
+
theme: 'light',
|
|
263
|
+
assets: () => ILLUSTRATION_ASSETS.catalogue,
|
|
264
|
+
render: (data) => _jsx(ZeroOrderProductsSlide, { data: data }),
|
|
265
|
+
},
|
|
266
|
+
{ id: 'online', theme: 'primary', assets: () => ILLUSTRATION_ASSETS.storefront, render: (data) => _jsx(ZeroOrderOnlineSlide, { data: data }) },
|
|
267
|
+
{ id: 'signature', theme: 'night', assets: () => ILLUSTRATION_ASSETS.horizon, render: (data) => _jsx(ZeroOrderSignatureSlide, { data: data }) },
|
|
268
|
+
top10('closing'),
|
|
269
|
+
];
|
|
270
|
+
const STORIES_BY_CATEGORY = {
|
|
271
|
+
[RECAP_CATEGORIES.STEADY]: steadyStories,
|
|
272
|
+
[RECAP_CATEGORIES.FLUCTUATING]: fluctuatingStories,
|
|
273
|
+
[RECAP_CATEGORIES.LOW_DATA]: lowDataStories,
|
|
274
|
+
[RECAP_CATEGORIES.ZERO_ORDER]: zeroOrderStories,
|
|
275
|
+
};
|
|
276
|
+
const zeroOrderWelcomeStories = [
|
|
277
|
+
{
|
|
278
|
+
id: 'intro',
|
|
279
|
+
theme: 'primary',
|
|
280
|
+
render: (data) => _jsx(IntroSlide, { data: data, headline: "Welcome to Huxxle", body: "Your story starts here." }),
|
|
281
|
+
},
|
|
282
|
+
{ ...zeroOrderStories[1], include: (data) => isCalendarDate(data.accountJoinedOn) },
|
|
283
|
+
{ ...top10('closing'), render: (data, controls) => _jsx(ClosingSlide, { data: data, controls: controls, welcome: true }) },
|
|
284
|
+
];
|
|
285
|
+
export function storiesForCategory(data) {
|
|
286
|
+
const category = resolveRecapCategory(data.businessCategory);
|
|
287
|
+
if (category === RECAP_CATEGORIES.ZERO_ORDER && data.orders === 0
|
|
288
|
+
&& data.hasBusinessProfile === false && data.catalogueProducts === 0
|
|
289
|
+
&& !data.storefrontReady && !isCalendarDate(data.storeOpenedOn)) {
|
|
290
|
+
return zeroOrderWelcomeStories;
|
|
291
|
+
}
|
|
292
|
+
return STORIES_BY_CATEGORY[category] ?? top10Stories;
|
|
293
|
+
}
|
|
294
|
+
export function buildStories(data) {
|
|
295
|
+
const definitions = storiesForCategory(data);
|
|
296
|
+
const stories = resolveStories(definitions, data, data.slideDurations);
|
|
297
|
+
if (data.isVideo !== true)
|
|
298
|
+
return stories;
|
|
299
|
+
const videoDurations = {
|
|
300
|
+
intro: 3,
|
|
301
|
+
orders: 4.5,
|
|
302
|
+
'biggest-day': 5,
|
|
303
|
+
growth: 5,
|
|
304
|
+
customers: 4.5,
|
|
305
|
+
recognition: 4.5,
|
|
306
|
+
closing: 4,
|
|
307
|
+
};
|
|
308
|
+
const isWelcome = definitions === zeroOrderWelcomeStories;
|
|
309
|
+
return stories.map((story) => ({
|
|
310
|
+
...story,
|
|
311
|
+
duration: isWelcome && story.id === 'first-chapter' ? 4 : videoDurations[story.id] ?? 3.5,
|
|
312
|
+
}));
|
|
313
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import type { RecapData } from '../types';
|
|
3
|
+
import type { StoryControls } from '../story';
|
|
4
|
+
import type { LayerMotion } from './illustrations/IllustrationLayers';
|
|
5
|
+
import './Top10Story.css';
|
|
6
|
+
import './Top10Slides.css';
|
|
7
|
+
export interface SlideProps {
|
|
8
|
+
data: RecapData;
|
|
9
|
+
}
|
|
10
|
+
export declare const yearOf: (data: RecapData) => number;
|
|
11
|
+
export declare const isPaidOrderRecap: (data: RecapData) => boolean;
|
|
12
|
+
interface IntroSlideProps extends SlideProps {
|
|
13
|
+
headline?: string;
|
|
14
|
+
body?: string;
|
|
15
|
+
bodyClassName?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function IntroSlide({ data, headline, body, bodyClassName }: IntroSlideProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
interface AtProps {
|
|
19
|
+
top?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Pin the block's bottom edge this many canvas px above the slide bottom.
|
|
22
|
+
* Better than top + translateY centering for tall copy on squeezed phone canvases.
|
|
23
|
+
*/
|
|
24
|
+
bottom?: number;
|
|
25
|
+
/** When phones shorten the canvas: 'top' stays put, 'bottom' moves up with the content shift, 'middle' by half the squeeze. Ignored when `bottom` is set. */
|
|
26
|
+
anchor?: 'top' | 'middle' | 'bottom';
|
|
27
|
+
/** Fade in this many seconds after the slide appears. Fades opacity only, so a `style.transform` is safe. */
|
|
28
|
+
delay?: number;
|
|
29
|
+
className?: string;
|
|
30
|
+
style?: CSSProperties;
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
/** Absolutely positioned at a canvas y (Figma y − 42), or pinned from the slide bottom. */
|
|
34
|
+
export declare const At: ({ top, bottom, anchor, delay, className, style, children }: AtProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
interface IllustrationProps {
|
|
36
|
+
top: number;
|
|
37
|
+
height: number;
|
|
38
|
+
/** Entrance for the whole illustration; layered illustrations animate their own parts instead. */
|
|
39
|
+
entrance?: LayerMotion;
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
}
|
|
42
|
+
/** Centered illustration; shrinks from its top edge by the content shift so content below keeps its spacing. */
|
|
43
|
+
export declare const Illustration: ({ top, height, entrance, children }: IllustrationProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare function OrdersSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function BiggestDaySlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element | null;
|
|
46
|
+
export declare function GrowthSlide({ data, showGrowth }: SlideProps & {
|
|
47
|
+
showGrowth: boolean;
|
|
48
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare function CustomersSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
export declare function FavouriteSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare function SurpriseSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare function MilestoneSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare function BuildUpSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
interface RecognitionSlideProps extends SlideProps {
|
|
55
|
+
/** Art inside the ring; Top 10 shows the plugs. */
|
|
56
|
+
art?: ReactNode;
|
|
57
|
+
/** Missing stats are passed as null and skipped. */
|
|
58
|
+
chips?: Array<string | null>;
|
|
59
|
+
bodyClassName?: string;
|
|
60
|
+
/** Fixed copy for stories without a personality (Low data). */
|
|
61
|
+
title?: string;
|
|
62
|
+
description?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Canvas y for the block. Top 10 short titles stay middle-centered at 399;
|
|
65
|
+
* taller Low data copy top-anchors under the chrome instead.
|
|
66
|
+
*/
|
|
67
|
+
top?: number;
|
|
68
|
+
anchor?: 'top' | 'middle' | 'bottom';
|
|
69
|
+
/**
|
|
70
|
+
* Tighter stack gaps for long titles (Low data) so the block clears the header
|
|
71
|
+
* and still fits on a squeezed phone canvas.
|
|
72
|
+
*/
|
|
73
|
+
compact?: boolean;
|
|
74
|
+
}
|
|
75
|
+
export declare function RecognitionSlide({ data, art, chips: chipList, bodyClassName, title, description, top, anchor, compact, }: RecognitionSlideProps): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
interface SignatureSlideProps extends SlideProps {
|
|
77
|
+
headline?: string;
|
|
78
|
+
body?: string;
|
|
79
|
+
bodyClassName?: string;
|
|
80
|
+
}
|
|
81
|
+
export declare function SignatureSlide({ headline, body, bodyClassName }: SignatureSlideProps): import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
export declare function ClosingSlide({ data, controls, welcome }: SlideProps & {
|
|
83
|
+
controls: StoryControls;
|
|
84
|
+
welcome?: boolean;
|
|
85
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
export {};
|
|
87
|
+
//# sourceMappingURL=slides.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slides.d.ts","sourceRoot":"","sources":["../../src/top10/slides.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAgB9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAQtE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,mBAAmB,CAAC;AAE3B,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,eAAO,MAAM,MAAM,GAAI,MAAM,SAAS,WAAsB,CAAC;AAE7D,eAAO,MAAM,gBAAgB,GAAI,MAAM,SAAS,YACgE,CAAC;AAEjH,UAAU,eAAgB,SAAQ,UAAU;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAGD,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAiC,EAAE,EAAE,eAAe,2CA4BtG;AAED,UAAU,OAAO;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6JAA6J;IAC7J,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACrC,6GAA6G;IAC7G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,2FAA2F;AAC3F,eAAO,MAAM,EAAE,GAAI,4DAA6E,OAAO,4CAUtG,CAAC;AAEF,UAAU,iBAAiB;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,gHAAgH;AAChH,eAAO,MAAM,YAAY,GAAI,qCAAqC,iBAAiB,4CAOlF,CAAC;AAGF,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CA4B/C;AAGD,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,kDAqCnD;AAGD,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,UAAU,GAAG;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,2CA+BrF;AAGD,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,kDAoClD;AAGD,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CAmClD;AAGD,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CAkCjD;AAKD,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CA+BlD;AAGD,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CAYhD;AAQD,UAAU,qBAAsB,SAAQ,UAAU;IAChD,mDAAmD;IACnD,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,oDAAoD;IACpD,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAGD,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,GAA0B,EAC1B,KAAK,EAAE,QAAQ,EACf,aAA0B,EAC1B,KAA+B,EAC/B,WAA2C,EAC3C,GAAS,EACT,MAAiB,EACjB,OAAe,GAChB,EAAE,qBAAqB,2CAwCvB;AAED,UAAU,mBAAoB,SAAQ,UAAU;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAGD,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,aAA0B,EAAE,EAAE,mBAAmB,2CAqBjG;AAeD,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAe,EAAE,EAAE,UAAU,GAAG;IAAE,QAAQ,EAAE,aAAa,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,2CAyC5H"}
|