@appinternalleads/ui 0.4.0 → 0.4.1
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/cjs/agent/AgentComponent.js +1 -1
- package/dist/cjs/agent/AgentComponent.js.map +1 -1
- package/dist/cjs/agent/manifests.js +81 -1
- package/dist/cjs/agent/manifests.js.map +1 -1
- package/dist/cjs/agent/result.js +6 -0
- package/dist/cjs/agent/result.js.map +1 -1
- package/dist/cjs/components/catalog.js +18 -0
- package/dist/cjs/components/catalog.js.map +1 -1
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.js +21 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.types.js +6 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.types.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.web.js +89 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.web.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStatusView.js +62 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStatusView.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStill.js +20 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStill.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/contract.js +87 -0
- package/dist/cjs/components/onboarding/animated-status/contract.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/engine.js +40 -0
- package/dist/cjs/components/onboarding/animated-status/engine.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/index.js +20 -0
- package/dist/cjs/components/onboarding/animated-status/index.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/presets.json +126 -0
- package/dist/cjs/components/onboarding/animated-status/riv.js +7 -0
- package/dist/cjs/components/onboarding/animated-status/riv.js.map +1 -0
- package/dist/cjs/components/onboarding/index.js +4 -0
- package/dist/cjs/components/onboarding/index.js.map +1 -1
- package/dist/cjs/components/onboarding/presets.js +90 -84
- package/dist/cjs/components/onboarding/presets.js.map +1 -1
- package/dist/cjs/components/onboarding/receipt-printer/ReceiptStage.js +43 -6
- package/dist/cjs/components/onboarding/receipt-printer/ReceiptStage.js.map +1 -1
- package/dist/cjs/components/onboarding/send-completion/SendCompletionView.js +111 -0
- package/dist/cjs/components/onboarding/send-completion/SendCompletionView.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.js +37 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.types.js +6 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.types.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.web.js +107 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.web.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/SendStill.js +17 -0
- package/dist/cjs/components/onboarding/send-completion/SendStill.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/contract.js +83 -0
- package/dist/cjs/components/onboarding/send-completion/contract.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/engine.js +32 -0
- package/dist/cjs/components/onboarding/send-completion/engine.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/index.js +22 -0
- package/dist/cjs/components/onboarding/send-completion/index.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/presets.json +132 -0
- package/dist/cjs/components/onboarding/send-completion/riv.js +7 -0
- package/dist/cjs/components/onboarding/send-completion/riv.js.map +1 -0
- package/dist/cjs/components/onboarding/shared/actions-data.js +2 -0
- package/dist/cjs/components/onboarding/shared/actions-data.js.map +1 -1
- package/dist/cjs/components/onboarding/shared/configColor.js +76 -0
- package/dist/cjs/components/onboarding/shared/configColor.js.map +1 -0
- package/dist/cjs/components/onboarding/shared/contract.js +4 -0
- package/dist/cjs/components/onboarding/shared/contract.js.map +1 -1
- package/dist/cjs/components/onboarding/shared/describe.js +1 -1
- package/dist/cjs/components/onboarding/shared/describe.js.map +1 -1
- package/dist/cjs/components/onboarding/shared/mock.js +2 -0
- package/dist/cjs/components/onboarding/shared/mock.js.map +1 -1
- package/dist/cjs/components/onboarding/views.js +8 -0
- package/dist/cjs/components/onboarding/views.js.map +1 -1
- package/dist/cjs/motion/MotionPlayer.js +42 -0
- package/dist/cjs/motion/MotionPlayer.js.map +1 -0
- package/dist/cjs/motion/agent.js +323 -0
- package/dist/cjs/motion/agent.js.map +1 -0
- package/dist/cjs/motion/cat/Cat.js +79 -0
- package/dist/cjs/motion/cat/Cat.js.map +1 -0
- package/dist/cjs/motion/cat/animation.js +204 -0
- package/dist/cjs/motion/cat/animation.js.map +1 -0
- package/dist/cjs/motion/cat/art.generated.js +37 -0
- package/dist/cjs/motion/cat/art.generated.js.map +1 -0
- package/dist/cjs/motion/cat/config.js +136 -0
- package/dist/cjs/motion/cat/config.js.map +1 -0
- package/dist/cjs/motion/cat/index.js +75 -0
- package/dist/cjs/motion/cat/index.js.map +1 -0
- package/dist/cjs/motion/cat/rig.js +99 -0
- package/dist/cjs/motion/cat/rig.js.map +1 -0
- package/dist/cjs/motion/cat/scene.js +148 -0
- package/dist/cjs/motion/cat/scene.js.map +1 -0
- package/dist/cjs/motion/configurable/config.js +477 -0
- package/dist/cjs/motion/configurable/config.js.map +1 -0
- package/dist/cjs/motion/configurable/controls.js +44 -0
- package/dist/cjs/motion/configurable/controls.js.map +1 -0
- package/dist/cjs/motion/easing.js +62 -0
- package/dist/cjs/motion/easing.js.map +1 -0
- package/dist/cjs/motion/fit.js +12 -0
- package/dist/cjs/motion/fit.js.map +1 -0
- package/dist/cjs/motion/index.js +101 -0
- package/dist/cjs/motion/index.js.map +1 -0
- package/dist/cjs/motion/neon/GlowRenderer.js +18 -0
- package/dist/cjs/motion/neon/GlowRenderer.js.map +1 -0
- package/dist/cjs/motion/neon/NeonCanvas.js +97 -0
- package/dist/cjs/motion/neon/NeonCanvas.js.map +1 -0
- package/dist/cjs/motion/neon/NeonText.js +108 -0
- package/dist/cjs/motion/neon/NeonText.js.map +1 -0
- package/dist/cjs/motion/neon/NeonTextFrame.js +36 -0
- package/dist/cjs/motion/neon/NeonTextFrame.js.map +1 -0
- package/dist/cjs/motion/neon/artwork.js +102 -0
- package/dist/cjs/motion/neon/artwork.js.map +1 -0
- package/dist/cjs/motion/neon/audio.js +165 -0
- package/dist/cjs/motion/neon/audio.js.map +1 -0
- package/dist/cjs/motion/neon/config.js +334 -0
- package/dist/cjs/motion/neon/config.js.map +1 -0
- package/dist/cjs/motion/neon/flicker.js +196 -0
- package/dist/cjs/motion/neon/flicker.js.map +1 -0
- package/dist/cjs/motion/neon/fonts.js +52 -0
- package/dist/cjs/motion/neon/fonts.js.map +1 -0
- package/dist/cjs/motion/neon/frame.js +24 -0
- package/dist/cjs/motion/neon/frame.js.map +1 -0
- package/dist/cjs/motion/neon/glitch.js +114 -0
- package/dist/cjs/motion/neon/glitch.js.map +1 -0
- package/dist/cjs/motion/neon/index.js +119 -0
- package/dist/cjs/motion/neon/index.js.map +1 -0
- package/dist/cjs/motion/neon/layers.js +68 -0
- package/dist/cjs/motion/neon/layers.js.map +1 -0
- package/dist/cjs/motion/neon/material.js +56 -0
- package/dist/cjs/motion/neon/material.js.map +1 -0
- package/dist/cjs/motion/neon/random.js +43 -0
- package/dist/cjs/motion/neon/random.js.map +1 -0
- package/dist/cjs/motion/neon/scene.js +549 -0
- package/dist/cjs/motion/neon/scene.js.map +1 -0
- package/dist/cjs/motion/neon/synth.js +213 -0
- package/dist/cjs/motion/neon/synth.js.map +1 -0
- package/dist/cjs/motion/neon/typography.js +81 -0
- package/dist/cjs/motion/neon/typography.js.map +1 -0
- package/dist/cjs/motion/neon/wall.js +113 -0
- package/dist/cjs/motion/neon/wall.js.map +1 -0
- package/dist/cjs/motion/paperfold/PaperFold.js +40 -0
- package/dist/cjs/motion/paperfold/PaperFold.js.map +1 -0
- package/dist/cjs/motion/paperfold/PaperFoldFrame.js +290 -0
- package/dist/cjs/motion/paperfold/PaperFoldFrame.js.map +1 -0
- package/dist/cjs/motion/paperfold/PaperFoldPlayer.js +59 -0
- package/dist/cjs/motion/paperfold/PaperFoldPlayer.js.map +1 -0
- package/dist/cjs/motion/paperfold/art.js +388 -0
- package/dist/cjs/motion/paperfold/art.js.map +1 -0
- package/dist/cjs/motion/paperfold/config.js +103 -0
- package/dist/cjs/motion/paperfold/config.js.map +1 -0
- package/dist/cjs/motion/paperfold/controls.js +493 -0
- package/dist/cjs/motion/paperfold/controls.js.map +1 -0
- package/dist/cjs/motion/paperfold/engine.js +722 -0
- package/dist/cjs/motion/paperfold/engine.js.map +1 -0
- package/dist/cjs/motion/paperfold/fonts.js +25 -0
- package/dist/cjs/motion/paperfold/fonts.js.map +1 -0
- package/dist/cjs/motion/paperfold/index.js +113 -0
- package/dist/cjs/motion/paperfold/index.js.map +1 -0
- package/dist/cjs/motion/paperfold/manipulate.js +170 -0
- package/dist/cjs/motion/paperfold/manipulate.js.map +1 -0
- package/dist/cjs/motion/paperfold/presets.js +119 -0
- package/dist/cjs/motion/paperfold/presets.js.map +1 -0
- package/dist/cjs/motion/paperfold/template.js +40 -0
- package/dist/cjs/motion/paperfold/template.js.map +1 -0
- package/dist/cjs/motion/player.js +203 -0
- package/dist/cjs/motion/player.js.map +1 -0
- package/dist/cjs/motion/promo/PromoFrame.js +293 -0
- package/dist/cjs/motion/promo/PromoFrame.js.map +1 -0
- package/dist/cjs/motion/promo/PromoShowcasePlayer.js +59 -0
- package/dist/cjs/motion/promo/PromoShowcasePlayer.js.map +1 -0
- package/dist/cjs/motion/promo/config.js +565 -0
- package/dist/cjs/motion/promo/config.js.map +1 -0
- package/dist/cjs/motion/promo/controls.js +571 -0
- package/dist/cjs/motion/promo/controls.js.map +1 -0
- package/dist/cjs/motion/promo/easing.js +35 -0
- package/dist/cjs/motion/promo/easing.js.map +1 -0
- package/dist/cjs/motion/promo/engine.js +567 -0
- package/dist/cjs/motion/promo/engine.js.map +1 -0
- package/dist/cjs/motion/promo/fonts.js +20 -0
- package/dist/cjs/motion/promo/fonts.js.map +1 -0
- package/dist/cjs/motion/promo/icons.js +29 -0
- package/dist/cjs/motion/promo/icons.js.map +1 -0
- package/dist/cjs/motion/promo/index.js +73 -0
- package/dist/cjs/motion/promo/index.js.map +1 -0
- package/dist/cjs/motion/promo/presets.js +44 -0
- package/dist/cjs/motion/promo/presets.js.map +1 -0
- package/dist/cjs/motion/promo/template.js +38 -0
- package/dist/cjs/motion/promo/template.js.map +1 -0
- package/dist/cjs/motion/replication2/Replication2Player.js +93 -0
- package/dist/cjs/motion/replication2/Replication2Player.js.map +1 -0
- package/dist/cjs/motion/replication2/config.js +352 -0
- package/dist/cjs/motion/replication2/config.js.map +1 -0
- package/dist/cjs/motion/replication2/controls.js +286 -0
- package/dist/cjs/motion/replication2/controls.js.map +1 -0
- package/dist/cjs/motion/replication2/driver.js +68 -0
- package/dist/cjs/motion/replication2/driver.js.map +1 -0
- package/dist/cjs/motion/replication2/easing.js +97 -0
- package/dist/cjs/motion/replication2/easing.js.map +1 -0
- package/dist/cjs/motion/replication2/engine.js +481 -0
- package/dist/cjs/motion/replication2/engine.js.map +1 -0
- package/dist/cjs/motion/replication2/html.js +88 -0
- package/dist/cjs/motion/replication2/html.js.map +1 -0
- package/dist/cjs/motion/replication2/index.js +61 -0
- package/dist/cjs/motion/replication2/index.js.map +1 -0
- package/dist/cjs/motion/replication2/measure.js +30 -0
- package/dist/cjs/motion/replication2/measure.js.map +1 -0
- package/dist/cjs/motion/replication2/metrics.js +10 -0
- package/dist/cjs/motion/replication2/metrics.js.map +1 -0
- package/dist/cjs/motion/replication2/presets.js +67 -0
- package/dist/cjs/motion/replication2/presets.js.map +1 -0
- package/dist/cjs/motion/replication2/riv.js +7 -0
- package/dist/cjs/motion/replication2/riv.js.map +1 -0
- package/dist/cjs/motion/replication2/rive-contract.js +158 -0
- package/dist/cjs/motion/replication2/rive-contract.js.map +1 -0
- package/dist/cjs/motion/replication2/template.js +35 -0
- package/dist/cjs/motion/replication2/template.js.map +1 -0
- package/dist/cjs/motion/sample.js +149 -0
- package/dist/cjs/motion/sample.js.map +1 -0
- package/dist/cjs/motion/templates/hey-template.js +1552 -0
- package/dist/cjs/motion/templates/hey-template.js.map +1 -0
- package/dist/cjs/motion/templates/index.js +22 -0
- package/dist/cjs/motion/templates/index.js.map +1 -0
- package/dist/cjs/motion/templates/word-motion.js +1165 -0
- package/dist/cjs/motion/templates/word-motion.js.map +1 -0
- package/dist/cjs/motion/types.js +3 -0
- package/dist/cjs/motion/types.js.map +1 -0
- package/dist/cjs/motion/typesurface/TypeSurfaceCanvas.js +62 -0
- package/dist/cjs/motion/typesurface/TypeSurfaceCanvas.js.map +1 -0
- package/dist/cjs/motion/typesurface/art.js +861 -0
- package/dist/cjs/motion/typesurface/art.js.map +1 -0
- package/dist/cjs/motion/typesurface/config.js +269 -0
- package/dist/cjs/motion/typesurface/config.js.map +1 -0
- package/dist/cjs/motion/typesurface/engine.js +607 -0
- package/dist/cjs/motion/typesurface/engine.js.map +1 -0
- package/dist/cjs/motion/typesurface/fonts.js +45 -0
- package/dist/cjs/motion/typesurface/fonts.js.map +1 -0
- package/dist/cjs/motion/typesurface/index.js +72 -0
- package/dist/cjs/motion/typesurface/index.js.map +1 -0
- package/dist/cjs/motion/typesurface/layout.js +130 -0
- package/dist/cjs/motion/typesurface/layout.js.map +1 -0
- package/dist/cjs/motion/typesurface/ops.js +175 -0
- package/dist/cjs/motion/typesurface/ops.js.map +1 -0
- package/dist/cjs/motion/typesurface/presets.js +192 -0
- package/dist/cjs/motion/typesurface/presets.js.map +1 -0
- package/dist/cjs/motion/typesurface/renderer.js +672 -0
- package/dist/cjs/motion/typesurface/renderer.js.map +1 -0
- package/dist/cjs/motion/typesurface/shaders.js +300 -0
- package/dist/cjs/motion/typesurface/shaders.js.map +1 -0
- package/dist/cjs/motion/typesurface/surfaces.js +156 -0
- package/dist/cjs/motion/typesurface/surfaces.js.map +1 -0
- package/dist/cjs/motion/typesurface/text.js +34 -0
- package/dist/cjs/motion/typesurface/text.js.map +1 -0
- package/dist/cjs/motion/typesurface/timeline.js +64 -0
- package/dist/cjs/motion/typesurface/timeline.js.map +1 -0
- package/dist/cjs/motion/validate.js +89 -0
- package/dist/cjs/motion/validate.js.map +1 -0
- package/dist/cjs/native/RiveReceiptStage.js +9 -150
- package/dist/cjs/native/RiveReceiptStage.js.map +1 -1
- package/dist/cjs/native/riveReceiptStageFactory.js +162 -0
- package/dist/cjs/native/riveReceiptStageFactory.js.map +1 -0
- package/dist/cjs/tokens/stage.js +10 -0
- package/dist/cjs/tokens/stage.js.map +1 -0
- package/dist/esm/agent/AgentComponent.js +1 -1
- package/dist/esm/agent/AgentComponent.js.map +1 -1
- package/dist/esm/agent/manifests.d.ts.map +1 -1
- package/dist/esm/agent/manifests.js +81 -1
- package/dist/esm/agent/manifests.js.map +1 -1
- package/dist/esm/agent/result.d.ts.map +1 -1
- package/dist/esm/agent/result.js +6 -0
- package/dist/esm/agent/result.js.map +1 -1
- package/dist/esm/agent/types.d.ts +1 -1
- package/dist/esm/agent/types.d.ts.map +1 -1
- package/dist/esm/components/catalog.d.ts +1 -1
- package/dist/esm/components/catalog.d.ts.map +1 -1
- package/dist/esm/components/catalog.js +18 -0
- package/dist/esm/components/catalog.js.map +1 -1
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.d.ts +9 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.js +18 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.types.d.ts +31 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.types.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.types.js +3 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.types.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.web.d.ts +4 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.web.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.web.js +86 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.web.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStatusView.d.ts +32 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStatusView.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStatusView.js +59 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStatusView.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStill.d.ts +8 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStill.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStill.js +17 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStill.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/contract.d.ts +61 -0
- package/dist/esm/components/onboarding/animated-status/contract.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/contract.js +78 -0
- package/dist/esm/components/onboarding/animated-status/contract.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/engine.d.ts +24 -0
- package/dist/esm/components/onboarding/animated-status/engine.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/engine.js +32 -0
- package/dist/esm/components/onboarding/animated-status/engine.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/index.d.ts +5 -0
- package/dist/esm/components/onboarding/animated-status/index.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/index.js +4 -0
- package/dist/esm/components/onboarding/animated-status/index.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/presets.json +126 -0
- package/dist/esm/components/onboarding/animated-status/riv.d.ts +3 -0
- package/dist/esm/components/onboarding/animated-status/riv.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/riv.js +4 -0
- package/dist/esm/components/onboarding/animated-status/riv.js.map +1 -0
- package/dist/esm/components/onboarding/index.d.ts +2 -0
- package/dist/esm/components/onboarding/index.d.ts.map +1 -1
- package/dist/esm/components/onboarding/index.js +4 -0
- package/dist/esm/components/onboarding/index.js.map +1 -1
- package/dist/esm/components/onboarding/presets.d.ts.map +1 -1
- package/dist/esm/components/onboarding/presets.js +6 -0
- package/dist/esm/components/onboarding/presets.js.map +1 -1
- package/dist/esm/components/onboarding/receipt-printer/ReceiptStage.d.ts +4 -6
- package/dist/esm/components/onboarding/receipt-printer/ReceiptStage.d.ts.map +1 -1
- package/dist/esm/components/onboarding/receipt-printer/ReceiptStage.js +42 -6
- package/dist/esm/components/onboarding/receipt-printer/ReceiptStage.js.map +1 -1
- package/dist/esm/components/onboarding/send-completion/SendCompletionView.d.ts +47 -0
- package/dist/esm/components/onboarding/send-completion/SendCompletionView.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendCompletionView.js +108 -0
- package/dist/esm/components/onboarding/send-completion/SendCompletionView.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.d.ts +9 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.js +34 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.types.d.ts +33 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.types.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.types.js +3 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.types.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.web.d.ts +4 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.web.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.web.js +104 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.web.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStill.d.ts +11 -0
- package/dist/esm/components/onboarding/send-completion/SendStill.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStill.js +14 -0
- package/dist/esm/components/onboarding/send-completion/SendStill.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/contract.d.ts +99 -0
- package/dist/esm/components/onboarding/send-completion/contract.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/contract.js +76 -0
- package/dist/esm/components/onboarding/send-completion/contract.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/engine.d.ts +20 -0
- package/dist/esm/components/onboarding/send-completion/engine.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/engine.js +28 -0
- package/dist/esm/components/onboarding/send-completion/engine.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/index.d.ts +6 -0
- package/dist/esm/components/onboarding/send-completion/index.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/index.js +6 -0
- package/dist/esm/components/onboarding/send-completion/index.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/presets.json +132 -0
- package/dist/esm/components/onboarding/send-completion/riv.d.ts +3 -0
- package/dist/esm/components/onboarding/send-completion/riv.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/riv.js +4 -0
- package/dist/esm/components/onboarding/send-completion/riv.js.map +1 -0
- package/dist/esm/components/onboarding/shared/actions-data.d.ts.map +1 -1
- package/dist/esm/components/onboarding/shared/actions-data.js +2 -0
- package/dist/esm/components/onboarding/shared/actions-data.js.map +1 -1
- package/dist/esm/components/onboarding/shared/configColor.d.ts +29 -0
- package/dist/esm/components/onboarding/shared/configColor.d.ts.map +1 -0
- package/dist/esm/components/onboarding/shared/configColor.js +69 -0
- package/dist/esm/components/onboarding/shared/configColor.js.map +1 -0
- package/dist/esm/components/onboarding/shared/contract.d.ts +1 -1
- package/dist/esm/components/onboarding/shared/contract.d.ts.map +1 -1
- package/dist/esm/components/onboarding/shared/contract.js +4 -0
- package/dist/esm/components/onboarding/shared/contract.js.map +1 -1
- package/dist/esm/components/onboarding/shared/describe.d.ts.map +1 -1
- package/dist/esm/components/onboarding/shared/describe.js +1 -1
- package/dist/esm/components/onboarding/shared/describe.js.map +1 -1
- package/dist/esm/components/onboarding/shared/mock.d.ts +2 -0
- package/dist/esm/components/onboarding/shared/mock.d.ts.map +1 -1
- package/dist/esm/components/onboarding/shared/mock.js +2 -0
- package/dist/esm/components/onboarding/shared/mock.js.map +1 -1
- package/dist/esm/components/onboarding/views.d.ts.map +1 -1
- package/dist/esm/components/onboarding/views.js +8 -0
- package/dist/esm/components/onboarding/views.js.map +1 -1
- package/dist/esm/motion/MotionPlayer.d.ts +22 -0
- package/dist/esm/motion/MotionPlayer.d.ts.map +1 -0
- package/dist/esm/motion/MotionPlayer.js +39 -0
- package/dist/esm/motion/MotionPlayer.js.map +1 -0
- package/dist/esm/motion/agent.d.ts +146 -0
- package/dist/esm/motion/agent.d.ts.map +1 -0
- package/dist/esm/motion/agent.js +278 -0
- package/dist/esm/motion/agent.js.map +1 -0
- package/dist/esm/motion/cat/Cat.d.ts +43 -0
- package/dist/esm/motion/cat/Cat.d.ts.map +1 -0
- package/dist/esm/motion/cat/Cat.js +74 -0
- package/dist/esm/motion/cat/Cat.js.map +1 -0
- package/dist/esm/motion/cat/animation.d.ts +86 -0
- package/dist/esm/motion/cat/animation.d.ts.map +1 -0
- package/dist/esm/motion/cat/animation.js +193 -0
- package/dist/esm/motion/cat/animation.js.map +1 -0
- package/dist/esm/motion/cat/art.generated.d.ts +53 -0
- package/dist/esm/motion/cat/art.generated.d.ts.map +1 -0
- package/dist/esm/motion/cat/art.generated.js +34 -0
- package/dist/esm/motion/cat/art.generated.js.map +1 -0
- package/dist/esm/motion/cat/config.d.ts +103 -0
- package/dist/esm/motion/cat/config.d.ts.map +1 -0
- package/dist/esm/motion/cat/config.js +129 -0
- package/dist/esm/motion/cat/config.js.map +1 -0
- package/dist/esm/motion/cat/index.d.ts +13 -0
- package/dist/esm/motion/cat/index.d.ts.map +1 -0
- package/dist/esm/motion/cat/index.js +13 -0
- package/dist/esm/motion/cat/index.js.map +1 -0
- package/dist/esm/motion/cat/rig.d.ts +44 -0
- package/dist/esm/motion/cat/rig.d.ts.map +1 -0
- package/dist/esm/motion/cat/rig.js +86 -0
- package/dist/esm/motion/cat/rig.js.map +1 -0
- package/dist/esm/motion/cat/scene.d.ts +66 -0
- package/dist/esm/motion/cat/scene.d.ts.map +1 -0
- package/dist/esm/motion/cat/scene.js +137 -0
- package/dist/esm/motion/cat/scene.js.map +1 -0
- package/dist/esm/motion/configurable/config.d.ts +80 -0
- package/dist/esm/motion/configurable/config.d.ts.map +1 -0
- package/dist/esm/motion/configurable/config.js +468 -0
- package/dist/esm/motion/configurable/config.js.map +1 -0
- package/dist/esm/motion/configurable/controls.d.ts +74 -0
- package/dist/esm/motion/configurable/controls.d.ts.map +1 -0
- package/dist/esm/motion/configurable/controls.js +38 -0
- package/dist/esm/motion/configurable/controls.js.map +1 -0
- package/dist/esm/motion/easing.d.ts +4 -0
- package/dist/esm/motion/easing.d.ts.map +1 -0
- package/dist/esm/motion/easing.js +58 -0
- package/dist/esm/motion/easing.js.map +1 -0
- package/dist/esm/motion/fit.d.ts +8 -0
- package/dist/esm/motion/fit.d.ts.map +1 -0
- package/dist/esm/motion/fit.js +8 -0
- package/dist/esm/motion/fit.js.map +1 -0
- package/dist/esm/motion/index.d.ts +27 -0
- package/dist/esm/motion/index.d.ts.map +1 -0
- package/dist/esm/motion/index.js +21 -0
- package/dist/esm/motion/index.js.map +1 -0
- package/dist/esm/motion/neon/GlowRenderer.d.ts +31 -0
- package/dist/esm/motion/neon/GlowRenderer.d.ts.map +1 -0
- package/dist/esm/motion/neon/GlowRenderer.js +14 -0
- package/dist/esm/motion/neon/GlowRenderer.js.map +1 -0
- package/dist/esm/motion/neon/NeonCanvas.d.ts +42 -0
- package/dist/esm/motion/neon/NeonCanvas.d.ts.map +1 -0
- package/dist/esm/motion/neon/NeonCanvas.js +92 -0
- package/dist/esm/motion/neon/NeonCanvas.js.map +1 -0
- package/dist/esm/motion/neon/NeonText.d.ts +26 -0
- package/dist/esm/motion/neon/NeonText.d.ts.map +1 -0
- package/dist/esm/motion/neon/NeonText.js +103 -0
- package/dist/esm/motion/neon/NeonText.js.map +1 -0
- package/dist/esm/motion/neon/NeonTextFrame.d.ts +29 -0
- package/dist/esm/motion/neon/NeonTextFrame.d.ts.map +1 -0
- package/dist/esm/motion/neon/NeonTextFrame.js +33 -0
- package/dist/esm/motion/neon/NeonTextFrame.js.map +1 -0
- package/dist/esm/motion/neon/artwork.d.ts +29 -0
- package/dist/esm/motion/neon/artwork.d.ts.map +1 -0
- package/dist/esm/motion/neon/artwork.js +98 -0
- package/dist/esm/motion/neon/artwork.js.map +1 -0
- package/dist/esm/motion/neon/audio.d.ts +49 -0
- package/dist/esm/motion/neon/audio.d.ts.map +1 -0
- package/dist/esm/motion/neon/audio.js +161 -0
- package/dist/esm/motion/neon/audio.js.map +1 -0
- package/dist/esm/motion/neon/config.d.ts +319 -0
- package/dist/esm/motion/neon/config.d.ts.map +1 -0
- package/dist/esm/motion/neon/config.js +319 -0
- package/dist/esm/motion/neon/config.js.map +1 -0
- package/dist/esm/motion/neon/flicker.d.ts +82 -0
- package/dist/esm/motion/neon/flicker.d.ts.map +1 -0
- package/dist/esm/motion/neon/flicker.js +187 -0
- package/dist/esm/motion/neon/flicker.js.map +1 -0
- package/dist/esm/motion/neon/fonts.d.ts +29 -0
- package/dist/esm/motion/neon/fonts.d.ts.map +1 -0
- package/dist/esm/motion/neon/fonts.js +47 -0
- package/dist/esm/motion/neon/fonts.js.map +1 -0
- package/dist/esm/motion/neon/frame.d.ts +22 -0
- package/dist/esm/motion/neon/frame.d.ts.map +1 -0
- package/dist/esm/motion/neon/frame.js +20 -0
- package/dist/esm/motion/neon/frame.js.map +1 -0
- package/dist/esm/motion/neon/glitch.d.ts +64 -0
- package/dist/esm/motion/neon/glitch.d.ts.map +1 -0
- package/dist/esm/motion/neon/glitch.js +108 -0
- package/dist/esm/motion/neon/glitch.js.map +1 -0
- package/dist/esm/motion/neon/index.d.ts +29 -0
- package/dist/esm/motion/neon/index.d.ts.map +1 -0
- package/dist/esm/motion/neon/index.js +28 -0
- package/dist/esm/motion/neon/index.js.map +1 -0
- package/dist/esm/motion/neon/layers.d.ts +56 -0
- package/dist/esm/motion/neon/layers.d.ts.map +1 -0
- package/dist/esm/motion/neon/layers.js +64 -0
- package/dist/esm/motion/neon/layers.js.map +1 -0
- package/dist/esm/motion/neon/material.d.ts +68 -0
- package/dist/esm/motion/neon/material.d.ts.map +1 -0
- package/dist/esm/motion/neon/material.js +51 -0
- package/dist/esm/motion/neon/material.js.map +1 -0
- package/dist/esm/motion/neon/random.d.ts +15 -0
- package/dist/esm/motion/neon/random.d.ts.map +1 -0
- package/dist/esm/motion/neon/random.js +37 -0
- package/dist/esm/motion/neon/random.js.map +1 -0
- package/dist/esm/motion/neon/scene.d.ts +255 -0
- package/dist/esm/motion/neon/scene.d.ts.map +1 -0
- package/dist/esm/motion/neon/scene.js +532 -0
- package/dist/esm/motion/neon/scene.js.map +1 -0
- package/dist/esm/motion/neon/synth.d.ts +18 -0
- package/dist/esm/motion/neon/synth.d.ts.map +1 -0
- package/dist/esm/motion/neon/synth.js +208 -0
- package/dist/esm/motion/neon/synth.js.map +1 -0
- package/dist/esm/motion/neon/typography.d.ts +53 -0
- package/dist/esm/motion/neon/typography.d.ts.map +1 -0
- package/dist/esm/motion/neon/typography.js +74 -0
- package/dist/esm/motion/neon/typography.js.map +1 -0
- package/dist/esm/motion/neon/wall.d.ts +62 -0
- package/dist/esm/motion/neon/wall.d.ts.map +1 -0
- package/dist/esm/motion/neon/wall.js +106 -0
- package/dist/esm/motion/neon/wall.js.map +1 -0
- package/dist/esm/motion/paperfold/PaperFold.d.ts +36 -0
- package/dist/esm/motion/paperfold/PaperFold.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/PaperFold.js +37 -0
- package/dist/esm/motion/paperfold/PaperFold.js.map +1 -0
- package/dist/esm/motion/paperfold/PaperFoldFrame.d.ts +39 -0
- package/dist/esm/motion/paperfold/PaperFoldFrame.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/PaperFoldFrame.js +283 -0
- package/dist/esm/motion/paperfold/PaperFoldFrame.js.map +1 -0
- package/dist/esm/motion/paperfold/PaperFoldPlayer.d.ts +27 -0
- package/dist/esm/motion/paperfold/PaperFoldPlayer.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/PaperFoldPlayer.js +56 -0
- package/dist/esm/motion/paperfold/PaperFoldPlayer.js.map +1 -0
- package/dist/esm/motion/paperfold/art.d.ts +148 -0
- package/dist/esm/motion/paperfold/art.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/art.js +374 -0
- package/dist/esm/motion/paperfold/art.js.map +1 -0
- package/dist/esm/motion/paperfold/config.d.ts +47 -0
- package/dist/esm/motion/paperfold/config.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/config.js +96 -0
- package/dist/esm/motion/paperfold/config.js.map +1 -0
- package/dist/esm/motion/paperfold/controls.d.ts +57 -0
- package/dist/esm/motion/paperfold/controls.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/controls.js +506 -0
- package/dist/esm/motion/paperfold/controls.js.map +1 -0
- package/dist/esm/motion/paperfold/engine.d.ts +397 -0
- package/dist/esm/motion/paperfold/engine.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/engine.js +699 -0
- package/dist/esm/motion/paperfold/engine.js.map +1 -0
- package/dist/esm/motion/paperfold/fonts.d.ts +3 -0
- package/dist/esm/motion/paperfold/fonts.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/fonts.js +21 -0
- package/dist/esm/motion/paperfold/fonts.js.map +1 -0
- package/dist/esm/motion/paperfold/index.d.ts +17 -0
- package/dist/esm/motion/paperfold/index.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/index.js +17 -0
- package/dist/esm/motion/paperfold/index.js.map +1 -0
- package/dist/esm/motion/paperfold/manipulate.d.ts +59 -0
- package/dist/esm/motion/paperfold/manipulate.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/manipulate.js +161 -0
- package/dist/esm/motion/paperfold/manipulate.js.map +1 -0
- package/dist/esm/motion/paperfold/presets.d.ts +9 -0
- package/dist/esm/motion/paperfold/presets.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/presets.js +115 -0
- package/dist/esm/motion/paperfold/presets.js.map +1 -0
- package/dist/esm/motion/paperfold/template.d.ts +3 -0
- package/dist/esm/motion/paperfold/template.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/template.js +37 -0
- package/dist/esm/motion/paperfold/template.js.map +1 -0
- package/dist/esm/motion/player.d.ts +35 -0
- package/dist/esm/motion/player.d.ts.map +1 -0
- package/dist/esm/motion/player.js +197 -0
- package/dist/esm/motion/player.js.map +1 -0
- package/dist/esm/motion/promo/PromoFrame.d.ts +31 -0
- package/dist/esm/motion/promo/PromoFrame.d.ts.map +1 -0
- package/dist/esm/motion/promo/PromoFrame.js +288 -0
- package/dist/esm/motion/promo/PromoFrame.js.map +1 -0
- package/dist/esm/motion/promo/PromoShowcasePlayer.d.ts +25 -0
- package/dist/esm/motion/promo/PromoShowcasePlayer.d.ts.map +1 -0
- package/dist/esm/motion/promo/PromoShowcasePlayer.js +56 -0
- package/dist/esm/motion/promo/PromoShowcasePlayer.js.map +1 -0
- package/dist/esm/motion/promo/config.d.ts +91 -0
- package/dist/esm/motion/promo/config.d.ts.map +1 -0
- package/dist/esm/motion/promo/config.js +550 -0
- package/dist/esm/motion/promo/config.js.map +1 -0
- package/dist/esm/motion/promo/controls.d.ts +86 -0
- package/dist/esm/motion/promo/controls.d.ts.map +1 -0
- package/dist/esm/motion/promo/controls.js +567 -0
- package/dist/esm/motion/promo/controls.js.map +1 -0
- package/dist/esm/motion/promo/easing.d.ts +3 -0
- package/dist/esm/motion/promo/easing.d.ts.map +1 -0
- package/dist/esm/motion/promo/easing.js +32 -0
- package/dist/esm/motion/promo/easing.js.map +1 -0
- package/dist/esm/motion/promo/engine.d.ts +205 -0
- package/dist/esm/motion/promo/engine.d.ts.map +1 -0
- package/dist/esm/motion/promo/engine.js +551 -0
- package/dist/esm/motion/promo/engine.js.map +1 -0
- package/dist/esm/motion/promo/fonts.d.ts +7 -0
- package/dist/esm/motion/promo/fonts.d.ts.map +1 -0
- package/dist/esm/motion/promo/fonts.js +16 -0
- package/dist/esm/motion/promo/fonts.js.map +1 -0
- package/dist/esm/motion/promo/icons.d.ts +7 -0
- package/dist/esm/motion/promo/icons.d.ts.map +1 -0
- package/dist/esm/motion/promo/icons.js +26 -0
- package/dist/esm/motion/promo/icons.js.map +1 -0
- package/dist/esm/motion/promo/index.d.ts +15 -0
- package/dist/esm/motion/promo/index.d.ts.map +1 -0
- package/dist/esm/motion/promo/index.js +15 -0
- package/dist/esm/motion/promo/index.js.map +1 -0
- package/dist/esm/motion/promo/presets.d.ts +13 -0
- package/dist/esm/motion/promo/presets.d.ts.map +1 -0
- package/dist/esm/motion/promo/presets.js +40 -0
- package/dist/esm/motion/promo/presets.js.map +1 -0
- package/dist/esm/motion/promo/template.d.ts +8 -0
- package/dist/esm/motion/promo/template.d.ts.map +1 -0
- package/dist/esm/motion/promo/template.js +35 -0
- package/dist/esm/motion/promo/template.js.map +1 -0
- package/dist/esm/motion/replication2/Replication2Player.d.ts +26 -0
- package/dist/esm/motion/replication2/Replication2Player.d.ts.map +1 -0
- package/dist/esm/motion/replication2/Replication2Player.js +90 -0
- package/dist/esm/motion/replication2/Replication2Player.js.map +1 -0
- package/dist/esm/motion/replication2/config.d.ts +78 -0
- package/dist/esm/motion/replication2/config.d.ts.map +1 -0
- package/dist/esm/motion/replication2/config.js +341 -0
- package/dist/esm/motion/replication2/config.js.map +1 -0
- package/dist/esm/motion/replication2/controls.d.ts +70 -0
- package/dist/esm/motion/replication2/controls.d.ts.map +1 -0
- package/dist/esm/motion/replication2/controls.js +283 -0
- package/dist/esm/motion/replication2/controls.js.map +1 -0
- package/dist/esm/motion/replication2/driver.d.ts +23 -0
- package/dist/esm/motion/replication2/driver.d.ts.map +1 -0
- package/dist/esm/motion/replication2/driver.js +65 -0
- package/dist/esm/motion/replication2/driver.js.map +1 -0
- package/dist/esm/motion/replication2/easing.d.ts +19 -0
- package/dist/esm/motion/replication2/easing.d.ts.map +1 -0
- package/dist/esm/motion/replication2/easing.js +92 -0
- package/dist/esm/motion/replication2/easing.js.map +1 -0
- package/dist/esm/motion/replication2/engine.d.ts +236 -0
- package/dist/esm/motion/replication2/engine.d.ts.map +1 -0
- package/dist/esm/motion/replication2/engine.js +470 -0
- package/dist/esm/motion/replication2/engine.js.map +1 -0
- package/dist/esm/motion/replication2/html.d.ts +30 -0
- package/dist/esm/motion/replication2/html.d.ts.map +1 -0
- package/dist/esm/motion/replication2/html.js +83 -0
- package/dist/esm/motion/replication2/html.js.map +1 -0
- package/dist/esm/motion/replication2/index.d.ts +15 -0
- package/dist/esm/motion/replication2/index.d.ts.map +1 -0
- package/dist/esm/motion/replication2/index.js +15 -0
- package/dist/esm/motion/replication2/index.js.map +1 -0
- package/dist/esm/motion/replication2/measure.d.ts +3 -0
- package/dist/esm/motion/replication2/measure.d.ts.map +1 -0
- package/dist/esm/motion/replication2/measure.js +27 -0
- package/dist/esm/motion/replication2/measure.js.map +1 -0
- package/dist/esm/motion/replication2/metrics.d.ts +6 -0
- package/dist/esm/motion/replication2/metrics.d.ts.map +1 -0
- package/dist/esm/motion/replication2/metrics.js +7 -0
- package/dist/esm/motion/replication2/metrics.js.map +1 -0
- package/dist/esm/motion/replication2/presets.d.ts +13 -0
- package/dist/esm/motion/replication2/presets.d.ts.map +1 -0
- package/dist/esm/motion/replication2/presets.js +63 -0
- package/dist/esm/motion/replication2/presets.js.map +1 -0
- package/dist/esm/motion/replication2/riv.d.ts +3 -0
- package/dist/esm/motion/replication2/riv.d.ts.map +1 -0
- package/dist/esm/motion/replication2/riv.js +4 -0
- package/dist/esm/motion/replication2/riv.js.map +1 -0
- package/dist/esm/motion/replication2/rive-contract.d.ts +27 -0
- package/dist/esm/motion/replication2/rive-contract.d.ts.map +1 -0
- package/dist/esm/motion/replication2/rive-contract.js +153 -0
- package/dist/esm/motion/replication2/rive-contract.js.map +1 -0
- package/dist/esm/motion/replication2/template.d.ts +8 -0
- package/dist/esm/motion/replication2/template.d.ts.map +1 -0
- package/dist/esm/motion/replication2/template.js +32 -0
- package/dist/esm/motion/replication2/template.js.map +1 -0
- package/dist/esm/motion/sample.d.ts +61 -0
- package/dist/esm/motion/sample.d.ts.map +1 -0
- package/dist/esm/motion/sample.js +138 -0
- package/dist/esm/motion/sample.js.map +1 -0
- package/dist/esm/motion/templates/hey-template.d.ts +3 -0
- package/dist/esm/motion/templates/hey-template.d.ts.map +1 -0
- package/dist/esm/motion/templates/hey-template.js +1549 -0
- package/dist/esm/motion/templates/hey-template.js.map +1 -0
- package/dist/esm/motion/templates/index.d.ts +22 -0
- package/dist/esm/motion/templates/index.d.ts.map +1 -0
- package/dist/esm/motion/templates/index.js +15 -0
- package/dist/esm/motion/templates/index.js.map +1 -0
- package/dist/esm/motion/templates/word-motion.d.ts +3 -0
- package/dist/esm/motion/templates/word-motion.d.ts.map +1 -0
- package/dist/esm/motion/templates/word-motion.js +1162 -0
- package/dist/esm/motion/templates/word-motion.js.map +1 -0
- package/dist/esm/motion/types.d.ts +192 -0
- package/dist/esm/motion/types.d.ts.map +1 -0
- package/dist/esm/motion/types.js +2 -0
- package/dist/esm/motion/types.js.map +1 -0
- package/dist/esm/motion/typesurface/TypeSurfaceCanvas.d.ts +22 -0
- package/dist/esm/motion/typesurface/TypeSurfaceCanvas.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/TypeSurfaceCanvas.js +58 -0
- package/dist/esm/motion/typesurface/TypeSurfaceCanvas.js.map +1 -0
- package/dist/esm/motion/typesurface/art.d.ts +21 -0
- package/dist/esm/motion/typesurface/art.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/art.js +854 -0
- package/dist/esm/motion/typesurface/art.js.map +1 -0
- package/dist/esm/motion/typesurface/config.d.ts +273 -0
- package/dist/esm/motion/typesurface/config.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/config.js +260 -0
- package/dist/esm/motion/typesurface/config.js.map +1 -0
- package/dist/esm/motion/typesurface/engine.d.ts +94 -0
- package/dist/esm/motion/typesurface/engine.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/engine.js +603 -0
- package/dist/esm/motion/typesurface/engine.js.map +1 -0
- package/dist/esm/motion/typesurface/fonts.d.ts +25 -0
- package/dist/esm/motion/typesurface/fonts.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/fonts.js +40 -0
- package/dist/esm/motion/typesurface/fonts.js.map +1 -0
- package/dist/esm/motion/typesurface/index.d.ts +17 -0
- package/dist/esm/motion/typesurface/index.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/index.js +17 -0
- package/dist/esm/motion/typesurface/index.js.map +1 -0
- package/dist/esm/motion/typesurface/layout.d.ts +57 -0
- package/dist/esm/motion/typesurface/layout.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/layout.js +122 -0
- package/dist/esm/motion/typesurface/layout.js.map +1 -0
- package/dist/esm/motion/typesurface/ops.d.ts +70 -0
- package/dist/esm/motion/typesurface/ops.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/ops.js +164 -0
- package/dist/esm/motion/typesurface/ops.js.map +1 -0
- package/dist/esm/motion/typesurface/presets.d.ts +33 -0
- package/dist/esm/motion/typesurface/presets.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/presets.js +185 -0
- package/dist/esm/motion/typesurface/presets.js.map +1 -0
- package/dist/esm/motion/typesurface/renderer.d.ts +78 -0
- package/dist/esm/motion/typesurface/renderer.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/renderer.js +666 -0
- package/dist/esm/motion/typesurface/renderer.js.map +1 -0
- package/dist/esm/motion/typesurface/shaders.d.ts +17 -0
- package/dist/esm/motion/typesurface/shaders.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/shaders.js +297 -0
- package/dist/esm/motion/typesurface/shaders.js.map +1 -0
- package/dist/esm/motion/typesurface/surfaces.d.ts +81 -0
- package/dist/esm/motion/typesurface/surfaces.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/surfaces.js +149 -0
- package/dist/esm/motion/typesurface/surfaces.js.map +1 -0
- package/dist/esm/motion/typesurface/text.d.ts +17 -0
- package/dist/esm/motion/typesurface/text.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/text.js +28 -0
- package/dist/esm/motion/typesurface/text.js.map +1 -0
- package/dist/esm/motion/typesurface/timeline.d.ts +15 -0
- package/dist/esm/motion/typesurface/timeline.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/timeline.js +57 -0
- package/dist/esm/motion/typesurface/timeline.js.map +1 -0
- package/dist/esm/motion/validate.d.ts +22 -0
- package/dist/esm/motion/validate.d.ts.map +1 -0
- package/dist/esm/motion/validate.js +84 -0
- package/dist/esm/motion/validate.js.map +1 -0
- package/dist/esm/native/RiveReceiptStage.d.ts +25 -2
- package/dist/esm/native/RiveReceiptStage.d.ts.map +1 -1
- package/dist/esm/native/RiveReceiptStage.js +7 -148
- package/dist/esm/native/RiveReceiptStage.js.map +1 -1
- package/dist/esm/native/riveReceiptStageFactory.d.ts +26 -0
- package/dist/esm/native/riveReceiptStageFactory.d.ts.map +1 -0
- package/dist/esm/native/riveReceiptStageFactory.js +159 -0
- package/dist/esm/native/riveReceiptStageFactory.js.map +1 -0
- package/dist/esm/tokens/stage.d.ts +7 -0
- package/dist/esm/tokens/stage.d.ts.map +1 -0
- package/dist/esm/tokens/stage.js +7 -0
- package/dist/esm/tokens/stage.js.map +1 -0
- package/package.json +35 -1
- package/spec/examples/components/onboarding/animated-status/case1.json +42 -0
- package/spec/examples/components/onboarding/animated-status/case2.json +42 -0
- package/spec/examples/components/onboarding/animated-status/case3.json +42 -0
- package/spec/examples/components/onboarding/animated-status/case4.json +42 -0
- package/spec/examples/components/onboarding/animated-status/case5.json +42 -0
- package/spec/examples/components/onboarding/send-completion/case1.json +48 -0
- package/spec/examples/components/onboarding/send-completion/case2.json +48 -0
- package/spec/examples/components/onboarding/send-completion/case3.json +48 -0
- package/spec/examples/components/onboarding/send-completion/case4.json +48 -0
- package/spec/examples/components/onboarding/send-completion/case5.json +48 -0
- package/spec/families/onboarding.schema.json +610 -1
- package/src/agent/AgentComponent.tsx +1 -1
- package/src/agent/manifests.ts +83 -1
- package/src/agent/result.ts +6 -0
- package/src/agent/types.ts +1 -1
- package/src/components/catalog.ts +21 -1
- package/src/components/onboarding/animated-status/AnimatedStage.tsx +18 -0
- package/src/components/onboarding/animated-status/AnimatedStage.types.ts +30 -0
- package/src/components/onboarding/animated-status/AnimatedStage.web.tsx +99 -0
- package/src/components/onboarding/animated-status/AnimatedStatusView.tsx +109 -0
- package/src/components/onboarding/animated-status/AnimatedStill.tsx +23 -0
- package/src/components/onboarding/animated-status/contract.ts +105 -0
- package/src/components/onboarding/animated-status/engine.ts +49 -0
- package/src/components/onboarding/animated-status/index.ts +8 -0
- package/src/components/onboarding/animated-status/presets.json +126 -0
- package/src/components/onboarding/animated-status/riv.ts +4 -0
- package/src/components/onboarding/index.ts +4 -0
- package/src/components/onboarding/presets.ts +6 -0
- package/src/components/onboarding/receipt-printer/ReceiptStage.tsx +46 -7
- package/src/components/onboarding/send-completion/SendCompletionView.tsx +164 -0
- package/src/components/onboarding/send-completion/SendStage.tsx +27 -0
- package/src/components/onboarding/send-completion/SendStage.types.ts +32 -0
- package/src/components/onboarding/send-completion/SendStage.web.tsx +116 -0
- package/src/components/onboarding/send-completion/SendStill.tsx +19 -0
- package/src/components/onboarding/send-completion/contract.ts +127 -0
- package/src/components/onboarding/send-completion/engine.ts +37 -0
- package/src/components/onboarding/send-completion/index.ts +10 -0
- package/src/components/onboarding/send-completion/presets.json +132 -0
- package/src/components/onboarding/send-completion/riv.ts +4 -0
- package/src/components/onboarding/shared/actions-data.ts +2 -0
- package/src/components/onboarding/shared/configColor.ts +72 -0
- package/src/components/onboarding/shared/contract.ts +4 -0
- package/src/components/onboarding/shared/describe.ts +1 -1
- package/src/components/onboarding/shared/mock.ts +2 -0
- package/src/components/onboarding/views.ts +8 -0
- package/src/motion/MotionPlayer.tsx +62 -0
- package/src/motion/agent.ts +288 -0
- package/src/motion/cat/Cat.tsx +118 -0
- package/src/motion/cat/animation.ts +206 -0
- package/src/motion/cat/art.generated.ts +44 -0
- package/src/motion/cat/config.ts +186 -0
- package/src/motion/cat/index.ts +26 -0
- package/src/motion/cat/rig.ts +102 -0
- package/src/motion/cat/scene.ts +181 -0
- package/src/motion/configurable/config.ts +420 -0
- package/src/motion/configurable/controls.ts +93 -0
- package/src/motion/easing.ts +55 -0
- package/src/motion/fit.ts +8 -0
- package/src/motion/index.ts +29 -0
- package/src/motion/neon/GlowRenderer.tsx +83 -0
- package/src/motion/neon/NeonCanvas.tsx +175 -0
- package/src/motion/neon/NeonText.tsx +113 -0
- package/src/motion/neon/NeonTextFrame.tsx +67 -0
- package/src/motion/neon/artwork.ts +95 -0
- package/src/motion/neon/audio.ts +162 -0
- package/src/motion/neon/config.ts +484 -0
- package/src/motion/neon/flicker.ts +225 -0
- package/src/motion/neon/fonts.ts +76 -0
- package/src/motion/neon/frame.ts +34 -0
- package/src/motion/neon/glitch.ts +142 -0
- package/src/motion/neon/index.ts +41 -0
- package/src/motion/neon/layers.tsx +209 -0
- package/src/motion/neon/material.ts +88 -0
- package/src/motion/neon/random.ts +40 -0
- package/src/motion/neon/scene.ts +610 -0
- package/src/motion/neon/synth.ts +188 -0
- package/src/motion/neon/typography.ts +102 -0
- package/src/motion/neon/wall.ts +157 -0
- package/src/motion/paperfold/PaperFold.tsx +45 -0
- package/src/motion/paperfold/PaperFoldFrame.tsx +576 -0
- package/src/motion/paperfold/PaperFoldPlayer.tsx +80 -0
- package/src/motion/paperfold/art.ts +455 -0
- package/src/motion/paperfold/config.ts +98 -0
- package/src/motion/paperfold/controls.ts +557 -0
- package/src/motion/paperfold/engine.ts +852 -0
- package/src/motion/paperfold/fonts.ts +21 -0
- package/src/motion/paperfold/index.ts +30 -0
- package/src/motion/paperfold/manipulate.ts +188 -0
- package/src/motion/paperfold/presets.ts +117 -0
- package/src/motion/paperfold/template.ts +38 -0
- package/src/motion/player.ts +207 -0
- package/src/motion/promo/PromoFrame.tsx +501 -0
- package/src/motion/promo/PromoShowcasePlayer.tsx +78 -0
- package/src/motion/promo/config.ts +479 -0
- package/src/motion/promo/controls.ts +643 -0
- package/src/motion/promo/easing.ts +36 -0
- package/src/motion/promo/engine.ts +587 -0
- package/src/motion/promo/fonts.ts +16 -0
- package/src/motion/promo/icons.tsx +29 -0
- package/src/motion/promo/index.ts +24 -0
- package/src/motion/promo/presets.ts +40 -0
- package/src/motion/promo/template.ts +36 -0
- package/src/motion/replication2/Replication2Player.tsx +115 -0
- package/src/motion/replication2/config.ts +323 -0
- package/src/motion/replication2/controls.ts +336 -0
- package/src/motion/replication2/driver.ts +92 -0
- package/src/motion/replication2/easing.ts +88 -0
- package/src/motion/replication2/engine.ts +539 -0
- package/src/motion/replication2/html.ts +87 -0
- package/src/motion/replication2/index.ts +14 -0
- package/src/motion/replication2/measure.ts +28 -0
- package/src/motion/replication2/metrics.ts +7 -0
- package/src/motion/replication2/presets.ts +63 -0
- package/src/motion/replication2/riv.ts +4 -0
- package/src/motion/replication2/rive-contract.ts +165 -0
- package/src/motion/replication2/template.ts +33 -0
- package/src/motion/sample.ts +173 -0
- package/src/motion/templates/hey-template.ts +1553 -0
- package/src/motion/templates/index.ts +17 -0
- package/src/motion/templates/word-motion.ts +1166 -0
- package/src/motion/types.ts +162 -0
- package/src/motion/typesurface/TypeSurfaceCanvas.tsx +73 -0
- package/src/motion/typesurface/art.ts +639 -0
- package/src/motion/typesurface/config.ts +486 -0
- package/src/motion/typesurface/engine.ts +586 -0
- package/src/motion/typesurface/fonts.ts +63 -0
- package/src/motion/typesurface/index.ts +16 -0
- package/src/motion/typesurface/layout.ts +133 -0
- package/src/motion/typesurface/ops.ts +196 -0
- package/src/motion/typesurface/presets.ts +199 -0
- package/src/motion/typesurface/renderer.ts +579 -0
- package/src/motion/typesurface/shaders.ts +303 -0
- package/src/motion/typesurface/surfaces.ts +223 -0
- package/src/motion/typesurface/text.ts +35 -0
- package/src/motion/typesurface/timeline.ts +58 -0
- package/src/motion/validate.ts +101 -0
- package/src/native/RiveReceiptStage.tsx +8 -155
- package/src/native/riveReceiptStageFactory.tsx +175 -0
- package/src/tokens/stage.ts +6 -0
- package/tools/ask/dist/components.mjs +6887 -46
- package/tools/ask/mcp.mjs +80 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { springAt } from '../replication2/easing';
|
|
2
|
+
import type { EasingName } from './controls';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* **The easing registry** — every curve the config can name. A curve is looked up here by name, never
|
|
6
|
+
* carried in the config as a function. Springs are Remotion-style damped springs in closed form, so
|
|
7
|
+
* any frame can be sampled on its own.
|
|
8
|
+
*/
|
|
9
|
+
const pow = (k: number) => ({
|
|
10
|
+
in: (t: number) => t ** k,
|
|
11
|
+
out: (t: number) => 1 - (1 - t) ** k,
|
|
12
|
+
inOut: (t: number) => (t < 0.5 ? 2 ** (k - 1) * t ** k : 1 - (-2 * t + 2) ** k / 2),
|
|
13
|
+
});
|
|
14
|
+
const quad = pow(2), cubic = pow(3), quart = pow(4);
|
|
15
|
+
const SPRINGS = {
|
|
16
|
+
springSoft: { mass: 1, damping: 14, stiffness: 90, velocity: 0 },
|
|
17
|
+
springSnappy: { mass: 0.8, damping: 16, stiffness: 220, velocity: 0 },
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const NAMED: Record<EasingName, (t: number, durationFrames: number) => number> = {
|
|
21
|
+
linear: (t) => t,
|
|
22
|
+
easeIn: quad.in, easeOut: quad.out, easeInOut: (t) => 0.5 - Math.cos(Math.PI * t) / 2,
|
|
23
|
+
easeInCubic: cubic.in, easeOutCubic: cubic.out, easeInOutCubic: cubic.inOut,
|
|
24
|
+
easeOutQuart: quart.out, easeInOutQuart: quart.inOut,
|
|
25
|
+
easeOutExpo: (t) => (t >= 1 ? 1 : 1 - 2 ** (-10 * t)),
|
|
26
|
+
easeOutBack: (t) => 1 + 2.70158 * (t - 1) ** 3 + 1.70158 * (t - 1) ** 2,
|
|
27
|
+
springSoft: (t, d) => (t >= 1 ? 1 : springAt((t * d) / 60, SPRINGS.springSoft)),
|
|
28
|
+
springSnappy: (t, d) => (t >= 1 ? 1 : springAt((t * d) / 60, SPRINGS.springSnappy)),
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const clamp01 = (t: number) => (t < 0 ? 0 : t > 1 ? 1 : t);
|
|
32
|
+
|
|
33
|
+
/** Progress `p` (0‥1, clamped) through a part lasting `durationFrames` (60 fps motion frames), shaped by `name`. */
|
|
34
|
+
export function ease(name: string, p: number, durationFrames = 60): number {
|
|
35
|
+
return (NAMED[name as EasingName] ?? NAMED.linear)(clamp01(p), durationFrames);
|
|
36
|
+
}
|
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
import { getPath, sceneConfig, type PromoConfig } from './config';
|
|
2
|
+
import { CONTROLS, LAYOUT_FOR, LISTS, PHASES, type AspectRatio, type PhaseId } from './controls';
|
|
3
|
+
import { ease } from './easing';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* **The promo engine — a pure function from (config, frame, size) to everything on screen.** No
|
|
7
|
+
* clock, no unseeded randomness, no DOM: the same config, seeds and frame always give the same state, so
|
|
8
|
+
* Remotion can render frames in any order and in parallel, and the live player and the video agree
|
|
9
|
+
* frame for frame. The renderer (`PromoFrame`) only draws what this returns.
|
|
10
|
+
*
|
|
11
|
+
* Frames here are 60 fps motion frames; `outputFrameToMotion` maps an output frame (at canvas.fps)
|
|
12
|
+
* onto them. Geometry is in pixels of the render size, derived from normalized layout values and
|
|
13
|
+
* design units (1 du = 1/1080 of the short side), so the same config reflows for every size.
|
|
14
|
+
*/
|
|
15
|
+
export const MOTION_FPS = 60;
|
|
16
|
+
|
|
17
|
+
type Obj = Record<string, unknown>;
|
|
18
|
+
const clamp = (v: number, lo = 0, hi = 1) => (v < lo ? lo : v > hi ? hi : v);
|
|
19
|
+
const lerp = (a: number, b: number, t: number) => a + (b - a) * t;
|
|
20
|
+
const TAU = Math.PI * 2;
|
|
21
|
+
|
|
22
|
+
/** Typed reads of the config. */
|
|
23
|
+
function reader(cfg: PromoConfig) {
|
|
24
|
+
return {
|
|
25
|
+
n: (p: string) => getPath(cfg, p) as number,
|
|
26
|
+
s: (p: string) => getPath(cfg, p) as string,
|
|
27
|
+
b: (p: string) => getPath(cfg, p) as boolean,
|
|
28
|
+
list: <T = Obj>(p: string) => (getPath(cfg, p) as T[]) ?? [],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function mixHex(a: string, b: string, t: number) {
|
|
33
|
+
const pa = parseInt(a.slice(1), 16), pb = parseInt(b.slice(1), 16);
|
|
34
|
+
const ch = (s: number) => Math.round(lerp((pa >> s) & 255, (pb >> s) & 255, clamp(t)));
|
|
35
|
+
return `#${((ch(16) << 16) | (ch(8) << 8) | ch(0)).toString(16).padStart(6, '0')}`;
|
|
36
|
+
}
|
|
37
|
+
/** A config colour with an alpha, as CSS. */
|
|
38
|
+
export function rgba(hex: string, alpha: number) {
|
|
39
|
+
const v = parseInt(hex.slice(1), 16);
|
|
40
|
+
// eslint-disable-next-line comppack/no-raw-colour -- builds a CSS colour from a config value; no colour literal
|
|
41
|
+
return `rgba(${(v >> 16) & 255}, ${(v >> 8) & 255}, ${v & 255}, ${Math.round(clamp(alpha) * 1000) / 1000})`;
|
|
42
|
+
}
|
|
43
|
+
/** Relative luminance (WCAG) of a #rrggbb colour, 0‥1. */
|
|
44
|
+
export function luminance(hex: string) {
|
|
45
|
+
const v = parseInt(hex.slice(1), 16);
|
|
46
|
+
const lin = (c: number) => { const s = c / 255; return s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4; };
|
|
47
|
+
return 0.2126 * lin((v >> 16) & 255) + 0.7152 * lin((v >> 8) & 255) + 0.0722 * lin(v & 255);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** A small, fast, seeded PRNG (mulberry32). */
|
|
51
|
+
export function seeded(seed: number) {
|
|
52
|
+
let a = seed >>> 0;
|
|
53
|
+
return () => {
|
|
54
|
+
a = (a + 0x6d2b79f5) >>> 0;
|
|
55
|
+
let t = a;
|
|
56
|
+
t = Math.imul(t ^ (t >>> 15), t | 1);
|
|
57
|
+
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
|
|
58
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* ─── time ────────────────────────────────────────────────────────────────────────────────────── */
|
|
63
|
+
export type PhaseSpan = { start: number; end: number; holdEnd: number };
|
|
64
|
+
export type SceneSpan = { index: number; id: string; start: number; end: number };
|
|
65
|
+
export type Timeline = {
|
|
66
|
+
phases: Record<PhaseId, PhaseSpan>;
|
|
67
|
+
/** Where the phases end. */
|
|
68
|
+
timelineEnd: number;
|
|
69
|
+
scenes: SceneSpan[];
|
|
70
|
+
/** The motion length of the video (or of one loop). */
|
|
71
|
+
length: number;
|
|
72
|
+
loop: boolean;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export function timeline(cfg: PromoConfig): Timeline {
|
|
76
|
+
const { n, s, b, list } = reader(cfg);
|
|
77
|
+
const phases = {} as Record<PhaseId, PhaseSpan>;
|
|
78
|
+
let end = 0;
|
|
79
|
+
for (const id of PHASES) {
|
|
80
|
+
const start = Math.max(0, end + n(`timeline.${id}.delayFrames`));
|
|
81
|
+
const e = start + n(`timeline.${id}.durationFrames`);
|
|
82
|
+
phases[id] = { start, end: e, holdEnd: e + n(`timeline.${id}.holdFrames`) };
|
|
83
|
+
end = phases[id].holdEnd;
|
|
84
|
+
}
|
|
85
|
+
let t = 0;
|
|
86
|
+
const scenes = list<{ id: string; durationFrames: number }>('scenes').map((sc, index) => ({ index, id: sc.id, start: t, end: (t += sc.durationFrames) }));
|
|
87
|
+
const loop = b('loop.enabled');
|
|
88
|
+
const length = loop
|
|
89
|
+
? (scenes.length ? t : n('loop.loopDurationFrames'))
|
|
90
|
+
: s('canvas.durationMode') === 'fixed' ? (n('canvas.durationFrames') * MOTION_FPS) / n('canvas.fps') : Math.max(end, t);
|
|
91
|
+
return { phases, timelineEnd: end, scenes, length, loop };
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** Output frames for one play of the video at canvas.fps. */
|
|
95
|
+
export function outputDuration(cfg: PromoConfig): number {
|
|
96
|
+
const { n, s, b } = reader(cfg);
|
|
97
|
+
if (!b('loop.enabled') && s('canvas.durationMode') === 'fixed') return n('canvas.durationFrames');
|
|
98
|
+
return Math.max(1, Math.round((timeline(cfg).length * n('canvas.fps')) / MOTION_FPS));
|
|
99
|
+
}
|
|
100
|
+
export function outputFrameToMotion(cfg: PromoConfig, frame: number): number {
|
|
101
|
+
return (frame * MOTION_FPS) / (getPath(cfg, 'canvas.fps') as number);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* ─── scenes: blend two configs over a transition ─────────────────────────────────────────────── */
|
|
105
|
+
function blendLeaf(type: string, a: unknown, b: unknown, t: number) {
|
|
106
|
+
if (type === 'number' || type === 'integer') return lerp(a as number, b as number, t);
|
|
107
|
+
if (type === 'color') return mixHex(a as string, b as string, t);
|
|
108
|
+
return t < 0.5 ? a : b;
|
|
109
|
+
}
|
|
110
|
+
/** Numbers interpolate, colours mix, everything else switches half way. */
|
|
111
|
+
export function blendConfigs(a: PromoConfig, b: PromoConfig, t: number): PromoConfig {
|
|
112
|
+
if (t <= 0) return a;
|
|
113
|
+
if (t >= 1) return b;
|
|
114
|
+
const out = JSON.parse(JSON.stringify(b)) as Obj;
|
|
115
|
+
const set = (path: string, v: unknown) => {
|
|
116
|
+
const keys = path.split('.');
|
|
117
|
+
let cur = out as Obj;
|
|
118
|
+
for (const k of keys.slice(0, -1)) cur = cur[k] as Obj;
|
|
119
|
+
cur[keys.at(-1)!] = v;
|
|
120
|
+
};
|
|
121
|
+
for (const c of CONTROLS) set(c.path, blendLeaf(c.type, getPath(a, c.path), getPath(b, c.path), t));
|
|
122
|
+
for (const l of LISTS) {
|
|
123
|
+
const la = getPath(a, l.path) as unknown[], lb = getPath(b, l.path) as unknown[];
|
|
124
|
+
if (la.length !== lb.length || (l.item.length === 1 && l.item[0]!.path === '')) continue;
|
|
125
|
+
set(l.path, lb.map((item, i) => Object.fromEntries(l.item.map((c) => [c.path, blendLeaf(c.type, (la[i] as Obj)[c.path], (item as Obj)[c.path], t)]))));
|
|
126
|
+
}
|
|
127
|
+
return out as PromoConfig;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* ─── layout ──────────────────────────────────────────────────────────────────────────────────── */
|
|
131
|
+
export type Rect = { x: number; y: number; width: number; height: number };
|
|
132
|
+
export type UiLayout = {
|
|
133
|
+
topBar: number; header: number; content: Rect;
|
|
134
|
+
greeting?: Rect; greetingLines: number; response?: Rect; hero?: Rect; input?: Rect;
|
|
135
|
+
cards: Rect[]; fontSize: number;
|
|
136
|
+
};
|
|
137
|
+
export type Layout = {
|
|
138
|
+
unit: number;
|
|
139
|
+
text: { x: number; y: number; width: number; align: 'left' | 'center' | 'right'; titleScale: number };
|
|
140
|
+
slot: Rect;
|
|
141
|
+
/** The window's centre and unscaled size. */
|
|
142
|
+
window: { cx: number; cy: number; width: number; height: number };
|
|
143
|
+
ui: UiLayout;
|
|
144
|
+
cta: { x: number; y: number };
|
|
145
|
+
logo: { x: number; y: number };
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/** Where everything sits on a canvas of this size, before any motion. */
|
|
149
|
+
export function layout(cfg: PromoConfig, width: number, height: number): Layout {
|
|
150
|
+
const { n, s } = reader(cfg);
|
|
151
|
+
const unit = Math.min(width, height) / 1080;
|
|
152
|
+
const L = `layout.${LAYOUT_FOR[s('canvas.aspectRatio') as AspectRatio]}`;
|
|
153
|
+
const safe = n('canvas.safeArea') * Math.min(width, height);
|
|
154
|
+
const slot = { x: 0, y: 0, width: n(`${L}.product.width`) * width, height: n(`${L}.product.height`) * height };
|
|
155
|
+
slot.x = n(`${L}.product.x`) * width - slot.width / 2;
|
|
156
|
+
slot.y = n(`${L}.product.y`) * height - slot.height / 2;
|
|
157
|
+
const win = {
|
|
158
|
+
cx: slot.x + n('productWindow.x') * slot.width,
|
|
159
|
+
cy: slot.y + n('productWindow.y') * slot.height,
|
|
160
|
+
width: slot.width * n('productWindow.width'),
|
|
161
|
+
height: slot.height * n('productWindow.height'),
|
|
162
|
+
};
|
|
163
|
+
const textWidth = Math.min(n(`${L}.text.width`) * width, width - 2 * safe);
|
|
164
|
+
const align = s(`${L}.text.align`) as 'left' | 'center' | 'right';
|
|
165
|
+
const tx = clamp(n(`${L}.text.x`) * width, safe + textWidth / 2, width - safe - textWidth / 2);
|
|
166
|
+
const ctaH = n('typography.ctaSize') * unit * 2.6;
|
|
167
|
+
return {
|
|
168
|
+
unit,
|
|
169
|
+
text: { x: tx, y: Math.max(safe, n(`${L}.text.y`) * height), width: textWidth, align, titleScale: n(`${L}.titleScale`) },
|
|
170
|
+
slot,
|
|
171
|
+
window: win,
|
|
172
|
+
ui: uiLayout(cfg, win.width, win.height, unit, n(`${L}.uiColumns`)),
|
|
173
|
+
cta: { x: n(`${L}.cta.x`) * width, y: clamp(n(`${L}.cta.y`) * height, safe + ctaH / 2, height - safe - ctaH / 2) },
|
|
174
|
+
logo: { x: Math.max(safe, n(`${L}.logo.x`) * width), y: Math.max(safe, n(`${L}.logo.y`) * height) },
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** The product UI inside a window of this size: bars, content area, and each block in it. */
|
|
179
|
+
export function uiLayout(cfg: PromoConfig, W: number, H: number, unit: number, columns: number): UiLayout {
|
|
180
|
+
const { n, b, s, list } = reader(cfg);
|
|
181
|
+
const chrome = b('window.showChrome');
|
|
182
|
+
const topBar = chrome && b('window.showTopBar') ? n('window.topBarHeight') * unit : 0;
|
|
183
|
+
const header = b('productHeader.showNavigation') ? n('productHeader.height') * unit : 0;
|
|
184
|
+
const pad = n('productContent.padding') * unit;
|
|
185
|
+
const fs = n('productContent.fontSize') * unit;
|
|
186
|
+
const gap = fs * 0.9;
|
|
187
|
+
const content = { x: pad, y: topBar + header + pad, width: Math.max(0, W - 2 * pad), height: Math.max(0, H - topBar - header - 2 * pad) };
|
|
188
|
+
let y = content.y;
|
|
189
|
+
const bottom = content.y + content.height;
|
|
190
|
+
const out: UiLayout = { topBar, header, content, greetingLines: 0, cards: [], fontSize: fs };
|
|
191
|
+
if (b('productContent.greeting.enabled') && s('productContent.greeting.text')) {
|
|
192
|
+
const maxW = content.width * 0.64;
|
|
193
|
+
const perLine = Math.max(8, Math.floor(maxW / (fs * 0.5)));
|
|
194
|
+
const len = s('productContent.greeting.text').length;
|
|
195
|
+
const lines = Math.min(3, Math.ceil(len / perLine));
|
|
196
|
+
const w = Math.min(maxW, len * fs * 0.5 + fs * 1.8);
|
|
197
|
+
const h = lines * fs * 1.4 + fs * 1.4;
|
|
198
|
+
const right = s('productContent.greeting.align') === 'right';
|
|
199
|
+
out.greeting = { x: right ? content.x + content.width - w : content.x, y, width: w, height: h };
|
|
200
|
+
out.greetingLines = lines;
|
|
201
|
+
y += h + gap;
|
|
202
|
+
}
|
|
203
|
+
if (b('productContent.response.enabled') && s('productContent.response.text')) {
|
|
204
|
+
const h = Math.max(fs * 2, fs * 1.4);
|
|
205
|
+
out.response = { x: content.x, y, width: content.width, height: h };
|
|
206
|
+
y += h + gap;
|
|
207
|
+
}
|
|
208
|
+
let inputH = 0;
|
|
209
|
+
if (b('productContent.input.enabled')) {
|
|
210
|
+
inputH = fs * 2.9;
|
|
211
|
+
out.input = { x: content.x, y: bottom - inputH, width: content.width, height: inputH };
|
|
212
|
+
}
|
|
213
|
+
const areaBottom = bottom - (inputH ? inputH + gap : 0);
|
|
214
|
+
if (b('productContent.hero.enabled')) {
|
|
215
|
+
const h = Math.max(0, (areaBottom - y) * n('productContent.hero.height'));
|
|
216
|
+
out.hero = { x: content.x, y, width: content.width, height: h };
|
|
217
|
+
y += h + gap;
|
|
218
|
+
}
|
|
219
|
+
const cards = list<Obj>('productContent.cards');
|
|
220
|
+
const area = { x: content.x, y, width: content.width, height: Math.max(0, areaBottom - y) };
|
|
221
|
+
if (s('productContent.cardLayout') === 'free') {
|
|
222
|
+
out.cards = cards.map((c) => {
|
|
223
|
+
const w = area.width * (c.width as number), h = area.height * (c.height as number);
|
|
224
|
+
return { x: area.x + (c.x as number) * area.width - w / 2, y: area.y + (c.y as number) * area.height - h / 2, width: w, height: h };
|
|
225
|
+
});
|
|
226
|
+
} else if (cards.length) {
|
|
227
|
+
const cols = Math.max(1, Math.min(columns, cards.length));
|
|
228
|
+
const rows = Math.ceil(cards.length / cols);
|
|
229
|
+
const cg = n('productContent.cardGap') * unit;
|
|
230
|
+
const cellW = (area.width - cg * (cols - 1)) / cols;
|
|
231
|
+
const cellH = Math.max(0, Math.min((area.height - cg * (rows - 1)) / rows, cellW * 1.1));
|
|
232
|
+
out.cards = cards.map((c, i) => {
|
|
233
|
+
const col = i % cols, row = Math.floor(i / cols);
|
|
234
|
+
// The last row is centred when it is not full.
|
|
235
|
+
const inRow = row === rows - 1 ? cards.length - row * cols : cols;
|
|
236
|
+
const offset = ((cols - inRow) * (cellW + cg)) / 2;
|
|
237
|
+
const w = cellW * (c.width as number), h = cellH * (c.height as number);
|
|
238
|
+
const x = area.x + offset + col * (cellW + cg) + (cellW - w) / 2 + (c.x as number) * cellW;
|
|
239
|
+
const yy = area.y + row * (cellH + cg) + (cellH - h) / 2 + (c.y as number) * cellH;
|
|
240
|
+
return { x, y: yy, width: w, height: h };
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
return out;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* ─── animation states ────────────────────────────────────────────────────────────────────────── */
|
|
247
|
+
export type Anim = { opacity: number; x: number; y: number; scale: number; rotation: number; blur: number; clip: number };
|
|
248
|
+
const SETTLED: Anim = { opacity: 1, x: 0, y: 0, scale: 1, rotation: 0, blur: 0, clip: 1 };
|
|
249
|
+
export const TEXT_ELEMENTS = ['eyebrow', 'title', 'subtitle', 'cta'] as const;
|
|
250
|
+
export type TextElement = (typeof TEXT_ELEMENTS)[number];
|
|
251
|
+
|
|
252
|
+
/** One text element (or one word / line of it) at `local` frames after its anchor. */
|
|
253
|
+
export function textAnim(cfg: PromoConfig, el: TextElement, local: number, unit: number, index = 0): Anim {
|
|
254
|
+
const { n, s, b } = reader(cfg);
|
|
255
|
+
const p = `textAnimation.${el}`;
|
|
256
|
+
const endState: Anim = { opacity: n(`${p}.endOpacity`), x: 0, y: n(`${p}.endY`) * unit, scale: n(`${p}.endScale`), rotation: 0, blur: 0, clip: 1 };
|
|
257
|
+
const mode = s(`${p}.mode`);
|
|
258
|
+
if (!b(`${p}.enabled`) || mode === 'none') return endState;
|
|
259
|
+
const dur = n(`${p}.durationFrames`);
|
|
260
|
+
const start = n(`${p}.delayFrames`) + (s(`${p}.split`) === 'none' ? 0 : index * n(`${p}.staggerFrames`));
|
|
261
|
+
const e = ease(s(`${p}.easing`), (local - start) / dur, dur);
|
|
262
|
+
const eo = clamp(e);
|
|
263
|
+
const op = clamp(lerp(n(`${p}.startOpacity`), n(`${p}.endOpacity`), eo));
|
|
264
|
+
const y = lerp(n(`${p}.startY`), n(`${p}.endY`), e) * unit;
|
|
265
|
+
const scale = lerp(n(`${p}.startScale`), n(`${p}.endScale`), e);
|
|
266
|
+
const rotation = lerp(n(`${p}.rotation`), 0, e);
|
|
267
|
+
const blur = Math.max(0, lerp(n(`${p}.blur`), 0, eo)) * unit;
|
|
268
|
+
switch (mode) {
|
|
269
|
+
case 'fade': return { ...endState, opacity: op };
|
|
270
|
+
case 'slide': return { ...endState, opacity: op, y, rotation };
|
|
271
|
+
case 'scale': return { ...endState, opacity: op, scale, rotation, y: lerp(n(`${p}.startY`) * 0.3, n(`${p}.endY`), e) * unit };
|
|
272
|
+
case 'blur': return { ...endState, opacity: op, y, scale, rotation, blur };
|
|
273
|
+
case 'reveal': return { ...endState, opacity: n(`${p}.endOpacity`) * (eo > 0 ? 1 : 0), y, rotation, clip: eo };
|
|
274
|
+
default: return endState;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/** Split copy into the units a text animation staggers: words, or estimated lines. */
|
|
279
|
+
export function splitText(text: string, split: string, widthPx: number, fontPx: number): string[] {
|
|
280
|
+
if (!text) return [];
|
|
281
|
+
const words = text.split(/\s+/).filter(Boolean);
|
|
282
|
+
if (split === 'words') return words;
|
|
283
|
+
if (split !== 'lines') return [text];
|
|
284
|
+
const perLine = Math.max(4, Math.floor(widthPx / (fontPx * 0.55)));
|
|
285
|
+
const lines: string[] = [];
|
|
286
|
+
let cur = '';
|
|
287
|
+
for (const w of words) {
|
|
288
|
+
if (cur && (cur + ' ' + w).length > perLine) { lines.push(cur); cur = w; } else cur = cur ? `${cur} ${w}` : w;
|
|
289
|
+
}
|
|
290
|
+
if (cur) lines.push(cur);
|
|
291
|
+
return lines;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
function enterAnim(kind: string, local: number, dur: number, easingName: string, distance: number, startScale: number, startOpacity: number): Anim {
|
|
295
|
+
if (kind === 'none') return SETTLED;
|
|
296
|
+
const e = ease(easingName, local / dur, dur);
|
|
297
|
+
const eo = clamp(e);
|
|
298
|
+
const op = clamp(lerp(startOpacity, 1, eo));
|
|
299
|
+
switch (kind) {
|
|
300
|
+
case 'fade': return { ...SETTLED, opacity: op };
|
|
301
|
+
case 'slide-up': return { ...SETTLED, opacity: op, y: lerp(distance, 0, e), scale: lerp(1 - (1 - startScale) * 0.3, 1, e) };
|
|
302
|
+
case 'slide-left': return { ...SETTLED, opacity: op, x: lerp(distance, 0, e) };
|
|
303
|
+
case 'scale': case 'pop': return { ...SETTLED, opacity: op, scale: lerp(startScale, 1, e) };
|
|
304
|
+
default: return { ...SETTLED, opacity: op };
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* ─── the frame ───────────────────────────────────────────────────────────────────────────────── */
|
|
309
|
+
export type TextBlock = { text: string; split: string; units: string[]; anims: Anim[] };
|
|
310
|
+
export type FrameState = {
|
|
311
|
+
frame: number;
|
|
312
|
+
length: number;
|
|
313
|
+
phase: PhaseId | 'done';
|
|
314
|
+
scene: { index: number; id: string; transition: number };
|
|
315
|
+
size: { width: number; height: number; unit: number };
|
|
316
|
+
/** The config for this frame: the current scene's, blended with the previous scene's during a transition. */
|
|
317
|
+
cfg: PromoConfig;
|
|
318
|
+
layout: Layout;
|
|
319
|
+
camera: { scale: number; x: number; y: number; rotation: number; tilt: number; perspective: number; driftX: number; driftY: number };
|
|
320
|
+
exit: { opacity: number; toBase: number };
|
|
321
|
+
lightsIn: number;
|
|
322
|
+
lights: { x: number; y: number; radius: number; color: string; opacity: number; blur: number }[];
|
|
323
|
+
particles: { x: number; y: number; size: number; opacity: number }[];
|
|
324
|
+
logo: Anim;
|
|
325
|
+
text: { eyebrow: TextBlock; title: TextBlock; subtitle: TextBlock; cta: Anim; leaving?: { eyebrow: string; title: string; subtitle: string; anim: Anim } };
|
|
326
|
+
product: { visible: boolean; x: number; y: number; scale: number; rotation: number; tilt: number; tiltY: number; opacity: number };
|
|
327
|
+
badge: Anim;
|
|
328
|
+
ui: { greeting: Anim; response: Anim; hero: Anim; typed: string; caret: boolean; cards: Anim[] };
|
|
329
|
+
floating: (Anim & { x: number; y: number })[];
|
|
330
|
+
bloom: { product: number; title: number };
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
/** Fit a frequency to a whole number of cycles per loop, so the loop is seamless. */
|
|
334
|
+
function periodic(freq: number, loopFrames: number | undefined) {
|
|
335
|
+
if (!loopFrames) return freq;
|
|
336
|
+
const seconds = loopFrames / MOTION_FPS;
|
|
337
|
+
return Math.max(1, Math.round(freq * seconds)) / seconds;
|
|
338
|
+
}
|
|
339
|
+
/** A −1‥1 wave shaped by an easing: easeInOut ≈ sine, linear = triangle. */
|
|
340
|
+
function wave(t: number, easingName: string) {
|
|
341
|
+
const frac = ((t % 1) + 1) % 1;
|
|
342
|
+
const tri = frac < 0.5 ? frac * 2 : 2 - frac * 2;
|
|
343
|
+
return ease(easingName, tri) * 2 - 1;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export function frameState(config: PromoConfig, motionFrame: number, width: number, height: number): FrameState {
|
|
347
|
+
const tl = timeline(config);
|
|
348
|
+
const loopFrames = tl.loop ? tl.length : undefined;
|
|
349
|
+
const m = tl.loop ? ((motionFrame % tl.length) + tl.length) % tl.length : Math.min(motionFrame, Math.max(0, tl.length - 1e-6));
|
|
350
|
+
const secs = m / MOTION_FPS;
|
|
351
|
+
|
|
352
|
+
/* scenes */
|
|
353
|
+
let cfg = config, current = config, previous: PromoConfig | undefined, transition = 1, sceneIndex = 0, sceneId = 'main', sceneStart = 0;
|
|
354
|
+
const sceneFrames = reader(config).n('sceneTransition.durationFrames');
|
|
355
|
+
if (tl.scenes.length) {
|
|
356
|
+
const span = tl.scenes.find((sp) => m >= sp.start && m < sp.end) ?? tl.scenes.at(-1)!;
|
|
357
|
+
sceneIndex = span.index; sceneId = span.id; sceneStart = span.start;
|
|
358
|
+
current = sceneConfig(config, span.index);
|
|
359
|
+
const prevIndex = span.index > 0 ? span.index - 1 : tl.loop && tl.scenes.length > 1 ? tl.scenes.length - 1 : -1;
|
|
360
|
+
transition = prevIndex >= 0 ? clamp((m - span.start) / sceneFrames) : 1;
|
|
361
|
+
if (transition < 1) {
|
|
362
|
+
previous = sceneConfig(config, prevIndex);
|
|
363
|
+
cfg = blendConfigs(previous, current, ease('easeInOut', transition));
|
|
364
|
+
} else cfg = current;
|
|
365
|
+
}
|
|
366
|
+
const { n, s, b, list } = reader(cfg);
|
|
367
|
+
const ph = tl.phases;
|
|
368
|
+
const lay = layout(cfg, width, height);
|
|
369
|
+
const u = lay.unit;
|
|
370
|
+
const settled = tl.loop;
|
|
371
|
+
const since = (id: PhaseId) => (settled ? 1e6 : m - ph[id].start);
|
|
372
|
+
|
|
373
|
+
/* camera */
|
|
374
|
+
let camP: number;
|
|
375
|
+
if (tl.loop) camP = 0.5 - 0.5 * Math.cos((TAU * m) / tl.length);
|
|
376
|
+
else camP = ease(s('camera.easing'), (m - n('camera.delayFrames')) / n('camera.durationFrames'), n('camera.durationFrames'));
|
|
377
|
+
const driftF = periodic(n('camera.driftFrequency'), loopFrames);
|
|
378
|
+
const cam = b('camera.enabled');
|
|
379
|
+
const driftX = cam ? n('camera.driftAmplitude') * u * Math.sin(TAU * driftF * secs) : 0;
|
|
380
|
+
const driftY = cam ? n('camera.driftAmplitude') * u * 0.6 * Math.sin(TAU * driftF * 2 * secs + 1) : 0;
|
|
381
|
+
const exitStart = ph.outro.start + n('timeline.outro.durationFrames') / 2;
|
|
382
|
+
const exitKind = s('timeline.outro.exit');
|
|
383
|
+
const exitP = tl.loop || exitKind === 'none' ? 0 : ease('easeInOutCubic', (m - exitStart) / Math.max(1, tl.timelineEnd - exitStart));
|
|
384
|
+
const camera = cam ? {
|
|
385
|
+
scale: lerp(n('camera.startScale'), n('camera.endScale'), camP) * (exitKind === 'zoom' ? 1 + 0.6 * exitP : 1),
|
|
386
|
+
x: lerp(n('camera.startX'), n('camera.endX'), camP) * width,
|
|
387
|
+
y: lerp(n('camera.startY'), n('camera.endY'), camP) * height,
|
|
388
|
+
rotation: lerp(n('camera.startRotation'), n('camera.endRotation'), camP),
|
|
389
|
+
tilt: lerp(n('camera.startTilt'), n('camera.endTilt'), camP),
|
|
390
|
+
perspective: n('camera.perspective') * u,
|
|
391
|
+
driftX, driftY,
|
|
392
|
+
} : { scale: exitKind === 'zoom' ? 1 + 0.6 * exitP : 1, x: 0, y: 0, rotation: 0, tilt: 0, perspective: 3000 * u, driftX: 0, driftY: 0 };
|
|
393
|
+
const exit = { opacity: exitKind === 'fade' || exitKind === 'zoom' ? 1 - (exitKind === 'zoom' ? clamp((exitP - 0.4) / 0.6) : exitP) : 1, toBase: exitKind === 'fadeToBase' ? exitP : 0 };
|
|
394
|
+
|
|
395
|
+
/* lights and particles */
|
|
396
|
+
const lightsIn = settled ? 1 : 0.45 + 0.55 * ease('easeOutCubic', m / Math.max(1, ph.intro.end));
|
|
397
|
+
const short = Math.min(width, height);
|
|
398
|
+
const lights = list<Obj>('lights').map((l) => {
|
|
399
|
+
const f = periodic(l.frequency as number, loopFrames);
|
|
400
|
+
const ang = TAU * (f * secs + (l.phase as number));
|
|
401
|
+
const amp = (l.amplitude as number) * short;
|
|
402
|
+
let x = (l.x as number) * width, y = (l.y as number) * height, r = (l.radius as number) * short, op = l.opacity as number;
|
|
403
|
+
if (l.animation === 'drift') { x += amp * Math.sin(ang); y += amp * 0.7 * Math.sin(2 * ang + 0.5); }
|
|
404
|
+
else if (l.animation === 'orbit') { x += amp * Math.cos(ang); y += amp * Math.sin(ang); }
|
|
405
|
+
else if (l.animation === 'pulse') { r *= 1 + (l.amplitude as number) * 2 * Math.sin(ang); op *= 1 + (l.amplitude as number) * 3 * Math.sin(ang); }
|
|
406
|
+
return { x: x + driftX * n('camera.parallax'), y: y + driftY * n('camera.parallax'), radius: Math.max(0, r), color: l.color as string, opacity: clamp(op * lightsIn), blur: (l.blur as number) * u };
|
|
407
|
+
});
|
|
408
|
+
const particles: FrameState['particles'] = [];
|
|
409
|
+
if (b('particles.enabled')) {
|
|
410
|
+
const rnd = seeded(n('particles.seed'));
|
|
411
|
+
const margin = n('particles.sizeMax') * u * 4;
|
|
412
|
+
const spanX = width + 2 * margin, spanY = height + 2 * margin;
|
|
413
|
+
const fadeIn = settled ? 1 : clamp(m / Math.max(1, n('particles.fadeInFrames')));
|
|
414
|
+
for (let i = 0; i < n('particles.count'); i++) {
|
|
415
|
+
const x0 = rnd(), y0 = rnd(), sz = rnd(), op = rnd(), ang = rnd(), sp = rnd(), tw = rnd();
|
|
416
|
+
const a = ((n('particles.direction') + (ang - 0.5) * 2 * n('particles.spread')) * Math.PI) / 180;
|
|
417
|
+
const v = n('particles.speed') * u * (0.5 + sp);
|
|
418
|
+
let vx = v * Math.cos(a), vy = v * Math.sin(a);
|
|
419
|
+
if (loopFrames) {
|
|
420
|
+
// Whole wraps per loop on each axis, so the last frame leads into the first.
|
|
421
|
+
const T = loopFrames / MOTION_FPS;
|
|
422
|
+
vx = (Math.round((vx * T) / spanX) * spanX) / T;
|
|
423
|
+
vy = (Math.round((vy * T) / spanY) * spanY) / T;
|
|
424
|
+
}
|
|
425
|
+
const px = ((((x0 * spanX + vx * secs) % spanX) + spanX) % spanX) - margin;
|
|
426
|
+
const py = ((((y0 * spanY + vy * secs) % spanY) + spanY) % spanY) - margin;
|
|
427
|
+
const twF = periodic(0.3 + tw * 0.6, loopFrames);
|
|
428
|
+
const flicker = 1 - n('particles.twinkle') * (0.5 + 0.5 * Math.sin(TAU * (twF * secs + tw)));
|
|
429
|
+
particles.push({
|
|
430
|
+
x: px + driftX * n('camera.parallax') * 1.5, y: py + driftY * n('camera.parallax') * 1.5,
|
|
431
|
+
size: lerp(n('particles.sizeMin'), n('particles.sizeMax'), sz) * u,
|
|
432
|
+
opacity: clamp(lerp(n('particles.opacityMin'), n('particles.opacityMax'), op) * flicker * fadeIn),
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* copy */
|
|
438
|
+
const textLocal = tl.scenes.length && (sceneIndex > 0 || tl.loop) ? m - sceneStart : since('intro');
|
|
439
|
+
const block = (el: 'eyebrow' | 'title' | 'subtitle', sizePath: string): TextBlock => {
|
|
440
|
+
const text = reader(current).s(`content.${el}`);
|
|
441
|
+
const split = s(`textAnimation.${el}.split`);
|
|
442
|
+
const font = n(sizePath) * u * (el === 'title' ? lay.text.titleScale : 1);
|
|
443
|
+
const units = splitText(text, split, lay.text.width, font);
|
|
444
|
+
return { text, split: units.length > 1 ? split : 'none', units, anims: units.map((_, i) => textAnim(cfg, el, textLocal, u, i)) };
|
|
445
|
+
};
|
|
446
|
+
let leaving: FrameState['text']['leaving'];
|
|
447
|
+
if (previous && transition < 1) {
|
|
448
|
+
const t = ease('easeInOut', clamp(transition * 1.6));
|
|
449
|
+
const style = s('sceneTransition.style');
|
|
450
|
+
const r = reader(previous);
|
|
451
|
+
leaving = {
|
|
452
|
+
eyebrow: r.s('content.eyebrow'), title: r.s('content.title'), subtitle: r.s('content.subtitle'),
|
|
453
|
+
anim: { ...SETTLED, opacity: 1 - t, y: style === 'slide' ? -60 * u * t : style === 'blur' ? -24 * u * t : 0, blur: style === 'blur' ? 18 * u * t : 0 },
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
// A scene's copy waits for the old copy to leave.
|
|
457
|
+
const enterLocal = (anim: TextBlock) => (leaving ? { ...anim, anims: anim.anims.map((a) => ({ ...a, opacity: a.opacity * clamp(transition * 2.5 - 0.5) })) } : anim);
|
|
458
|
+
const text = {
|
|
459
|
+
eyebrow: enterLocal(block('eyebrow', 'typography.eyebrowSize')),
|
|
460
|
+
title: enterLocal(block('title', 'typography.titleSize')),
|
|
461
|
+
subtitle: enterLocal(block('subtitle', 'typography.subtitleSize')),
|
|
462
|
+
cta: textAnim(cfg, 'cta', since('outro'), u),
|
|
463
|
+
leaving,
|
|
464
|
+
};
|
|
465
|
+
const logo = textAnim(cfg, 'eyebrow', since('intro'), u);
|
|
466
|
+
|
|
467
|
+
/* product */
|
|
468
|
+
const pe = n('productEntrance.durationFrames');
|
|
469
|
+
const eP = !b('productEntrance.enabled') || settled ? 1 : ease(s('productEntrance.easing'), (m - ph.productEntrance.start - n('productEntrance.delayFrames')) / pe, pe);
|
|
470
|
+
const eOp = clamp(eP);
|
|
471
|
+
let fx = 0, fy = 0, fr = 0;
|
|
472
|
+
if (b('productFloat.enabled')) {
|
|
473
|
+
const ramp = settled ? 1 : ease('easeInOut', (m - ph.productSettle.start) / Math.max(1, n('productFloat.rampFrames')));
|
|
474
|
+
const f = periodic(n('productFloat.frequency'), loopFrames);
|
|
475
|
+
const t = f * secs + n('productFloat.phase');
|
|
476
|
+
const shape = s('productFloat.easing');
|
|
477
|
+
fx = n('productFloat.amplitudeX') * u * wave(t + 0.25, shape) * ramp;
|
|
478
|
+
fy = n('productFloat.amplitudeY') * u * wave(t, shape) * ramp;
|
|
479
|
+
fr = n('productFloat.rotationAmplitude') * wave(t + 0.5, shape) * ramp;
|
|
480
|
+
}
|
|
481
|
+
const product = {
|
|
482
|
+
visible: b('productWindow.enabled'),
|
|
483
|
+
x: fx,
|
|
484
|
+
y: lerp(n('productEntrance.startY'), n('productEntrance.endY'), eP) * u + fy,
|
|
485
|
+
scale: lerp(n('productEntrance.startScale'), n('productEntrance.endScale'), eP) * n('productWindow.scale'),
|
|
486
|
+
rotation: lerp(n('productEntrance.startRotation'), n('productEntrance.endRotation'), eP) + n('productWindow.rotation') + fr,
|
|
487
|
+
tilt: lerp(n('productEntrance.startTilt'), n('productEntrance.endTilt'), eP) + n('window.tiltX'),
|
|
488
|
+
tiltY: n('window.tiltY'),
|
|
489
|
+
opacity: clamp(lerp(n('productEntrance.startOpacity'), n('productEntrance.endOpacity'), eOp)) * n('productWindow.opacity'),
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
/* product UI */
|
|
493
|
+
const cr = since('contentReveal');
|
|
494
|
+
const cd = n('cardAnimation.durationFrames'), cEase = s('cardAnimation.easing'), dist = n('cardAnimation.distance') * u;
|
|
495
|
+
const kind = s('cardAnimation.entrance');
|
|
496
|
+
const reveal = (delay: number, k = kind) => enterAnim(k === 'none' ? 'none' : k, cr - delay, cd, cEase, dist, n('cardAnimation.startScale'), n('cardAnimation.opacity'));
|
|
497
|
+
const cards = list<Obj>('productContent.cards');
|
|
498
|
+
const cardAnims = cards.map((_, i) => reveal(n('cardAnimation.delayFrames') + i * n('cardAnimation.staggerFrames')));
|
|
499
|
+
if (b('cardAnimation.highlight.enabled') && cards.length) {
|
|
500
|
+
let every = n('cardAnimation.highlight.everyFrames');
|
|
501
|
+
if (loopFrames) every = loopFrames / (cards.length * Math.max(1, Math.round(loopFrames / (cards.length * every))));
|
|
502
|
+
const hs = settled ? m : m - ph.showcase.start;
|
|
503
|
+
const stop = settled ? 1 : 1 - clamp((m - ph.outro.start) / 20);
|
|
504
|
+
if (hs >= 0 && stop > 0) {
|
|
505
|
+
const k = hs / every;
|
|
506
|
+
const idx = Math.floor(k) % cards.length;
|
|
507
|
+
const bump = (0.5 - 0.5 * Math.cos(TAU * (k - Math.floor(k)))) * stop;
|
|
508
|
+
const a = cardAnims[idx]!;
|
|
509
|
+
cardAnims[idx] = { ...a, scale: a.scale * lerp(1, n('cardAnimation.highlight.scale'), bump), y: a.y - n('cardAnimation.highlight.lift') * u * bump };
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
let typed = '';
|
|
513
|
+
const full = s('productContent.input.typeText');
|
|
514
|
+
if (b('productContent.input.enabled') && full) {
|
|
515
|
+
const cps = n('productContent.input.typeSpeed');
|
|
516
|
+
if (loopFrames) {
|
|
517
|
+
const f = m / loopFrames;
|
|
518
|
+
const k = f < 0.45 ? f / 0.45 : f < 0.8 ? 1 : 1 - (f - 0.8) / 0.2;
|
|
519
|
+
typed = full.slice(0, Math.round(k * full.length));
|
|
520
|
+
} else {
|
|
521
|
+
const since0 = m - ph.showcase.start - 20;
|
|
522
|
+
typed = since0 > 0 ? full.slice(0, Math.floor((since0 / MOTION_FPS) * cps)) : '';
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
const ui = {
|
|
526
|
+
greeting: reveal(0, kind === 'slide-left' ? 'slide-left' : 'slide-up'),
|
|
527
|
+
response: reveal(n('cardAnimation.delayFrames') / 2, 'fade'),
|
|
528
|
+
hero: reveal(n('cardAnimation.delayFrames') / 2),
|
|
529
|
+
typed,
|
|
530
|
+
caret: Math.floor(m / 30) % 2 === 0,
|
|
531
|
+
cards: cardAnims,
|
|
532
|
+
};
|
|
533
|
+
const badge = enterAnim('pop', since('productSettle'), 36, 'springSoft', 0, 0.4, 0);
|
|
534
|
+
|
|
535
|
+
/* floating elements */
|
|
536
|
+
const floating = list<Obj>('floatingElements').map((f) => {
|
|
537
|
+
const local = cr - (f.delayFrames as number);
|
|
538
|
+
const a = enterAnim(f.enter === 'pop' ? 'pop' : (f.enter as string), local, Math.max(24, cd), f.enter === 'pop' ? 'springSoft' : cEase, 40 * u, 0.4, 0);
|
|
539
|
+
const fr2 = periodic(f.frequency as number, loopFrames);
|
|
540
|
+
const t = fr2 * secs + (f.phase as number);
|
|
541
|
+
const amp = (f.amplitude as number) * u;
|
|
542
|
+
// Anchored to the window's resting rect, then kept inside the safe area by its estimated size.
|
|
543
|
+
const win = lay.window;
|
|
544
|
+
const fs = (f.fontSize as number) * u * (f.scale as number);
|
|
545
|
+
const halfW = f.type === 'icon' ? fs * 1.2 : (String(f.content).length * 0.56 + (f.type === 'badge' ? 4.4 : 2)) * fs / 2;
|
|
546
|
+
const safe = n('canvas.safeArea') * short;
|
|
547
|
+
let x = clamp(win.cx + ((f.x as number) - 0.5) * win.width, safe + halfW, width - safe - halfW);
|
|
548
|
+
let y = clamp(win.cy + ((f.y as number) - 0.5) * win.height, safe + fs * 1.3, height - safe - fs * 1.3);
|
|
549
|
+
let rot = f.rotation as number, sc = (f.scale as number) * a.scale;
|
|
550
|
+
if (f.animation === 'float') { y += amp * Math.sin(TAU * t); x += amp * 0.3 * Math.sin(TAU * t * 2); }
|
|
551
|
+
else if (f.animation === 'drift') { x += amp * Math.sin(TAU * t); y += amp * 0.5 * Math.sin(TAU * t * 2 + 1); }
|
|
552
|
+
else if (f.animation === 'pulse') sc *= 1 + ((f.amplitude as number) / 100) * Math.sin(TAU * t);
|
|
553
|
+
else if (f.animation === 'spin') rot += 360 * (((t % 1) + 1) % 1);
|
|
554
|
+
const depth = (f.depth as number) * n('camera.parallax');
|
|
555
|
+
return { ...a, x: x + a.x + driftX * depth, y: y + a.y + driftY * depth, rotation: rot + a.rotation, scale: sc, opacity: a.opacity * (f.opacity as number) };
|
|
556
|
+
});
|
|
557
|
+
|
|
558
|
+
/* bloom: brighter elements glow more */
|
|
559
|
+
const bloomOf = (hex: string) => {
|
|
560
|
+
if (!b('glow.enabled')) return 0;
|
|
561
|
+
const th = n('glow.threshold');
|
|
562
|
+
return clamp((luminance(hex) - th) / Math.max(0.001, 1 - th)) * n('glow.intensity') * n('glow.opacity');
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
const phase: FrameState['phase'] = settled ? 'showcase' : ([...PHASES].reverse().find((id) => m >= ph[id].start) ?? 'intro');
|
|
566
|
+
return {
|
|
567
|
+
frame: m,
|
|
568
|
+
length: tl.length,
|
|
569
|
+
phase: !settled && m >= tl.timelineEnd ? 'done' : phase,
|
|
570
|
+
scene: { index: sceneIndex, id: sceneId, transition },
|
|
571
|
+
size: { width, height, unit: u },
|
|
572
|
+
cfg,
|
|
573
|
+
layout: lay,
|
|
574
|
+
camera,
|
|
575
|
+
exit,
|
|
576
|
+
lightsIn,
|
|
577
|
+
lights,
|
|
578
|
+
particles,
|
|
579
|
+
logo,
|
|
580
|
+
text,
|
|
581
|
+
product,
|
|
582
|
+
badge,
|
|
583
|
+
ui,
|
|
584
|
+
floating,
|
|
585
|
+
bloom: { product: bloomOf(s('productWindow.backgroundColor')), title: bloomOf(s('typography.titleColor')) },
|
|
586
|
+
};
|
|
587
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FONT_FAMILIES } from './controls';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The registered typefaces (all OFL, from Google Fonts). Remotion loads them with
|
|
5
|
+
* `@remotion/google-fonts`; the web player adds this stylesheet once.
|
|
6
|
+
*/
|
|
7
|
+
export const PROMO_FONTS_CSS = `https://fonts.googleapis.com/css2?${FONT_FAMILIES.map((f) => `family=${f.replace(/ /g, '+')}:wght@${f === 'Space Grotesk' ? '300..700' : '300..800'}`).join('&')}&display=swap`;
|
|
8
|
+
|
|
9
|
+
export function installPromoFonts(doc: Document | undefined = typeof document === 'undefined' ? undefined : document) {
|
|
10
|
+
if (!doc || doc.querySelector('link[data-promo-fonts]')) return;
|
|
11
|
+
const link = doc.createElement('link');
|
|
12
|
+
link.rel = 'stylesheet';
|
|
13
|
+
link.href = PROMO_FONTS_CSS;
|
|
14
|
+
link.setAttribute('data-promo-fonts', '');
|
|
15
|
+
doc.head.appendChild(link);
|
|
16
|
+
}
|