@appinternalleads/ui 0.3.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/base.js +25 -0
- package/dist/cjs/agent/base.js.map +1 -0
- package/dist/cjs/agent/catalog.js +0 -32
- package/dist/cjs/agent/catalog.js.map +1 -1
- package/dist/cjs/agent/core.js +22 -20
- package/dist/cjs/agent/core.js.map +1 -1
- package/dist/cjs/agent/index.js +6 -5
- package/dist/cjs/agent/index.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/agent/search/document.js +50 -0
- package/dist/cjs/agent/search/document.js.map +1 -0
- package/dist/cjs/agent/search/embedding.js +107 -0
- package/dist/cjs/agent/search/embedding.js.map +1 -0
- package/dist/cjs/agent/search/index.js +25 -0
- package/dist/cjs/agent/search/index.js.map +1 -0
- package/dist/cjs/agent/search/lexical.js +28 -0
- package/dist/cjs/agent/search/lexical.js.map +1 -0
- package/dist/cjs/agent/search/normalize.js +15 -0
- package/dist/cjs/agent/search/normalize.js.map +1 -0
- package/dist/cjs/agent/search/search.js +123 -0
- package/dist/cjs/agent/search/search.js.map +1 -0
- package/dist/cjs/agent/search/searchIndex.js +120 -0
- package/dist/cjs/agent/search/searchIndex.js.map +1 -0
- package/dist/cjs/agent/search/types.js +8 -0
- package/dist/cjs/agent/search/types.js.map +1 -0
- package/dist/cjs/agent/search/weights.js +34 -0
- package/dist/cjs/agent/search/weights.js.map +1 -0
- package/dist/cjs/agent/search/wordvectors.json +1 -0
- 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/index.js +1 -1
- package/dist/cjs/index.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/base.d.ts +11 -0
- package/dist/esm/agent/base.d.ts.map +1 -0
- package/dist/esm/agent/base.js +11 -0
- package/dist/esm/agent/base.js.map +1 -0
- package/dist/esm/agent/catalog.d.ts +0 -8
- package/dist/esm/agent/catalog.d.ts.map +1 -1
- package/dist/esm/agent/catalog.js +0 -31
- package/dist/esm/agent/catalog.js.map +1 -1
- package/dist/esm/agent/core.d.ts +6 -7
- package/dist/esm/agent/core.d.ts.map +1 -1
- package/dist/esm/agent/core.js +6 -7
- package/dist/esm/agent/core.js.map +1 -1
- package/dist/esm/agent/index.d.ts +6 -5
- package/dist/esm/agent/index.d.ts.map +1 -1
- package/dist/esm/agent/index.js +6 -5
- package/dist/esm/agent/index.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/search/document.d.ts +6 -0
- package/dist/esm/agent/search/document.d.ts.map +1 -0
- package/dist/esm/agent/search/document.js +46 -0
- package/dist/esm/agent/search/document.js.map +1 -0
- package/dist/esm/agent/search/embedding.d.ts +31 -0
- package/dist/esm/agent/search/embedding.d.ts.map +1 -0
- package/dist/esm/agent/search/embedding.js +103 -0
- package/dist/esm/agent/search/embedding.js.map +1 -0
- package/dist/esm/agent/search/index.d.ts +10 -0
- package/dist/esm/agent/search/index.d.ts.map +1 -0
- package/dist/esm/agent/search/index.js +17 -0
- package/dist/esm/agent/search/index.js.map +1 -0
- package/dist/esm/agent/search/lexical.d.ts +3 -0
- package/dist/esm/agent/search/lexical.d.ts.map +1 -0
- package/dist/esm/agent/search/lexical.js +25 -0
- package/dist/esm/agent/search/lexical.js.map +1 -0
- package/dist/esm/agent/search/normalize.d.ts +13 -0
- package/dist/esm/agent/search/normalize.d.ts.map +1 -0
- package/dist/esm/agent/search/normalize.js +12 -0
- package/dist/esm/agent/search/normalize.js.map +1 -0
- package/dist/esm/agent/search/search.d.ts +42 -0
- package/dist/esm/agent/search/search.d.ts.map +1 -0
- package/dist/esm/agent/search/search.js +119 -0
- package/dist/esm/agent/search/search.js.map +1 -0
- package/dist/esm/agent/search/searchIndex.d.ts +42 -0
- package/dist/esm/agent/search/searchIndex.d.ts.map +1 -0
- package/dist/esm/agent/search/searchIndex.js +114 -0
- package/dist/esm/agent/search/searchIndex.js.map +1 -0
- package/dist/esm/agent/search/types.d.ts +67 -0
- package/dist/esm/agent/search/types.d.ts.map +1 -0
- package/dist/esm/agent/search/types.js +7 -0
- package/dist/esm/agent/search/types.js.map +1 -0
- package/dist/esm/agent/search/weights.d.ts +22 -0
- package/dist/esm/agent/search/weights.d.ts.map +1 -0
- package/dist/esm/agent/search/weights.js +31 -0
- package/dist/esm/agent/search/weights.js.map +1 -0
- package/dist/esm/agent/search/wordvectors.json +1 -0
- 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/index.js +1 -1
- package/dist/esm/index.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 +36 -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/base.ts +17 -0
- package/src/agent/catalog.ts +0 -32
- package/src/agent/core.ts +6 -14
- package/src/agent/index.ts +6 -5
- package/src/agent/manifests.ts +83 -1
- package/src/agent/result.ts +6 -0
- package/src/agent/search/document.ts +46 -0
- package/src/agent/search/embedding.ts +95 -0
- package/src/agent/search/index.ts +20 -0
- package/src/agent/search/lexical.ts +25 -0
- package/src/agent/search/normalize.ts +17 -0
- package/src/agent/search/search.ts +148 -0
- package/src/agent/search/searchIndex.ts +107 -0
- package/src/agent/search/types.ts +68 -0
- package/src/agent/search/weights.ts +32 -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/index.ts +1 -1
- 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 +7221 -44
- package/tools/ask/mcp.mjs +80 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The icons a config may name (`ICONS` in controls.ts), drawn from this fixed set of paths. A config
|
|
5
|
+
* picks an icon by name; it can never supply a path or any SVG of its own.
|
|
6
|
+
*/
|
|
7
|
+
const PATHS: Record<string, string> = {
|
|
8
|
+
sparkle: 'M12 2l1.9 6.1L20 10l-6.1 1.9L12 18l-1.9-6.1L4 10l6.1-1.9L12 2zm7 12l.9 2.6 2.6.9-2.6.9L19 21l-.9-2.6-2.6-.9 2.6-.9L19 14z',
|
|
9
|
+
bolt: 'M13 2L4 14h7l-1 8 9-12h-7l1-8z',
|
|
10
|
+
star: 'M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8L12 2.5z',
|
|
11
|
+
check: 'M9.5 16.2L5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7 9.5 16.2z',
|
|
12
|
+
chart: 'M4 20h16v-2H4v2zm1-4h3V9H5v7zm5 0h3V4h-3v12zm5 0h3v-5h-3v5z',
|
|
13
|
+
heart: 'M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.4.7-1.2 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z',
|
|
14
|
+
rocket: 'M14 3c3.5 0 6 1 7 2 1 1 2 3.5 2 7-2 0-3.5.7-5 2.2L15.2 17 7 8.8 9.8 6C11.3 4.5 12 5 14 3zM6 10l8 8-2 2-2.5-.5L8 21l-1-3-3-1 1.5-1.5L5 13l1-3zm10-2.5a1.5 1.5 0 100 3 1.5 1.5 0 000-3z',
|
|
15
|
+
lock: 'M7 10V8a5 5 0 0110 0v2h1a1 1 0 011 1v9a1 1 0 01-1 1H6a1 1 0 01-1-1v-9a1 1 0 011-1h1zm2 0h6V8a3 3 0 00-6 0v2z',
|
|
16
|
+
arrow: 'M5 11h10.2l-4.6-4.6L12 5l7 7-7 7-1.4-1.4 4.6-4.6H5v-2z',
|
|
17
|
+
globe: 'M12 2a10 10 0 100 20 10 10 0 000-20zm6.9 9h-3a15 15 0 00-1.3-5.6A8 8 0 0118.9 11zM12 4c.9 1.2 1.8 3.6 2 7h-4c.2-3.4 1.1-5.8 2-7zM9.4 5.4A15 15 0 008.1 11h-3a8 8 0 014.3-5.6zM5.1 13h3a15 15 0 001.3 5.6A8 8 0 015.1 13zM12 20c-.9-1.2-1.8-3.6-2-7h4c-.2 3.4-1.1 5.8-2 7zm2.6-1.4a15 15 0 001.3-5.6h3a8 8 0 01-4.3 5.6z',
|
|
18
|
+
chat: 'M4 4h16a2 2 0 012 2v10a2 2 0 01-2 2H9l-5 4v-4a2 2 0 01-2-2V6a2 2 0 012-2z',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export function Icon({ name, size, color }: { name: string; size: number; color: string }): ReactElement | null {
|
|
22
|
+
const d = PATHS[name];
|
|
23
|
+
if (!d) return null;
|
|
24
|
+
return (
|
|
25
|
+
<svg width={size} height={size} viewBox="0 0 24 24" aria-hidden="true" style={{ display: 'block', flex: 'none' }}>
|
|
26
|
+
<path d={d} fill={color} />
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* **promo-product-showcase — a configurable-motion template drawn procedurally and rendered by
|
|
3
|
+
* Remotion.** One canonical config (the control table), a pure engine that turns it into frames,
|
|
4
|
+
* and a React/DOM renderer that draws them. `docs/MOTION-TEMPLATES.md`.
|
|
5
|
+
*/
|
|
6
|
+
export {
|
|
7
|
+
CONTROLS, CONTROL_BY_PATH, LISTS, LIST_BY_PATH, GROUPS, EASING_NAMES, ASPECT_RATIOS, FPS_OPTIONS, FONT_FAMILIES, FONT_WEIGHTS, ICONS,
|
|
8
|
+
TEXT_MODES, CARD_ENTRANCES, PLACEHOLDERS, PHASES, LAYOUT_FOR, OVERRIDE_SCOPES, allControls,
|
|
9
|
+
type Control, type ControlType, type ListSpec, type Group, type EasingName, type AspectRatio, type PhaseId,
|
|
10
|
+
} from './controls';
|
|
11
|
+
export {
|
|
12
|
+
CONFIG_SCHEMA_ID, defaultConfig, defaultItem, validateConfig, resolveConfig, applyPatch, diffConfig, configJsonSchema, getPath, controlAt, sceneConfig, isAssetRef,
|
|
13
|
+
PromoConfigError, type PromoConfig, type ConfigError, type ConfigPatch, type PatchOp,
|
|
14
|
+
} from './config';
|
|
15
|
+
export { PRESET_PATCHES, presetConfig, type PresetName } from './presets';
|
|
16
|
+
export {
|
|
17
|
+
frameState, timeline, layout, uiLayout, outputDuration, outputFrameToMotion, textAnim, splitText, blendConfigs, seeded, luminance, mixHex, rgba, MOTION_FPS,
|
|
18
|
+
type FrameState, type Timeline, type PhaseSpan, type SceneSpan, type Layout, type UiLayout, type Anim, type Rect, type TextBlock,
|
|
19
|
+
} from './engine';
|
|
20
|
+
export { ease } from './easing';
|
|
21
|
+
export { PROMO_FONTS_CSS, installPromoFonts } from './fonts';
|
|
22
|
+
export { PromoFrame, FONT_STACK, type PromoFrameProps, type ImageProps } from './PromoFrame';
|
|
23
|
+
export { PromoShowcasePlayer, type PromoShowcasePlayerProps } from './PromoShowcasePlayer';
|
|
24
|
+
export { promoProductShowcase } from './template';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* eslint-disable comppack/no-raw-colour -- preset colours are content, set through the same config as any edit (DECISIONS §25, §26). */
|
|
2
|
+
import { applyPatch, defaultConfig, type PromoConfig } from './config';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* **Presets** — named patches over the reference config. Every preset is the same template with
|
|
6
|
+
* different values; applying one is the same operation as any agent or person edit.
|
|
7
|
+
*/
|
|
8
|
+
export const PRESET_PATCHES: Record<string, { description: string; patch: Record<string, unknown> }> = {
|
|
9
|
+
reference: { description: 'The reference look: luminous purple/pink/blue, a white SaaS window, 16:9 at 3840 × 2160, 60 fps.', patch: {} },
|
|
10
|
+
landscape: { description: '16:9, 3840 × 2160 (layout.landscape).', patch: { 'canvas.aspectRatio': '16:9', 'canvas.width': 3840, 'canvas.height': 2160 } },
|
|
11
|
+
portrait: { description: '9:16, 2160 × 3840: the portrait layout block — headline on top, a tall window with two card columns, the CTA near the bottom.', patch: { 'canvas.aspectRatio': '9:16', 'canvas.width': 2160, 'canvas.height': 3840 } },
|
|
12
|
+
square: { description: '1:1, 2160 × 2160 (layout.square).', patch: { 'canvas.aspectRatio': '1:1', 'canvas.width': 2160, 'canvas.height': 2160 } },
|
|
13
|
+
scenes: {
|
|
14
|
+
description: 'Four scenes over one product: Meet Acme → Generate websites → Ship faster → Try Acme today, with copy and colour changes per scene.',
|
|
15
|
+
patch: {
|
|
16
|
+
'timeline.showcase.durationFrames': 330,
|
|
17
|
+
scenes: [
|
|
18
|
+
{ id: 'meet', durationFrames: 150, contentOverrides: { 'content.eyebrow': 'Introducing', 'content.title': 'Meet Acme', 'content.subtitle': 'Your AI product studio.' } },
|
|
19
|
+
{ id: 'generate', durationFrames: 150, contentOverrides: { 'content.eyebrow': 'Generate', 'content.title': 'Generate websites', 'content.subtitle': 'Describe it. Acme builds it in seconds.' }, productOverrides: { 'productHeader.activeItem': 'Images' }, backgroundOverrides: { 'background.glow.color': '#9fb4ff' } },
|
|
20
|
+
{ id: 'ship', durationFrames: 150, contentOverrides: { 'content.eyebrow': 'Launch', 'content.title': 'Ship faster', 'content.subtitle': 'From prompt to production in one afternoon.' }, backgroundOverrides: { 'background.glow.color': '#ffb4e6' } },
|
|
21
|
+
{ id: 'try', durationFrames: 150, contentOverrides: { 'content.eyebrow': 'Free to start', 'content.title': 'Try Acme today', 'content.subtitle': 'No credit card. Cancel anytime.' } },
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
loop: { description: 'A seamless loop: the settled composition with float, drift, lights, particles and card highlights fitted to 8 s.', patch: { 'loop.enabled': true, 'loop.loopDurationFrames': 480 } },
|
|
26
|
+
minimal: {
|
|
27
|
+
description: 'Quiet: no particles, floating elements, grain or badge; one soft glow.',
|
|
28
|
+
patch: { 'particles.enabled': false, floatingElements: [], 'background.noise.enabled': false, 'content.badge.enabled': false, 'background.secondaryGlow.enabled': false, lights: [], 'glow.intensity': 0.3 },
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
export type PresetName = keyof typeof PRESET_PATCHES;
|
|
32
|
+
|
|
33
|
+
/** A preset as a complete, valid config. */
|
|
34
|
+
export function presetConfig(name: string): PromoConfig {
|
|
35
|
+
const p = PRESET_PATCHES[name];
|
|
36
|
+
if (!p) throw new Error(`Unknown promo-product-showcase preset "${name}". Available: ${Object.keys(PRESET_PATCHES).join(', ')}.`);
|
|
37
|
+
const r = applyPatch(defaultConfig(), { patch: p.patch });
|
|
38
|
+
if (!r.valid) throw new Error(`Preset "${name}" is invalid: ${r.errors.map((e) => e.message).join(' ')}`);
|
|
39
|
+
return r.config;
|
|
40
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ConfigurableMotionTemplate } from '../types';
|
|
2
|
+
import { configJsonSchema, defaultConfig } from './config';
|
|
3
|
+
import { allControls, GROUPS } from './controls';
|
|
4
|
+
import { outputDuration } from './engine';
|
|
5
|
+
import { PRESET_PATCHES } from './presets';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* **promo-product-showcase in the motion registry.** A configurable-motion template (DECISIONS §25,
|
|
9
|
+
* §26) drawn procedurally by React/DOM and rendered to video by Remotion. People and agents edit the
|
|
10
|
+
* same canonical config. Plain data — safe to JSON-serialise.
|
|
11
|
+
*/
|
|
12
|
+
export const promoProductShowcase: ConfigurableMotionTemplate = {
|
|
13
|
+
id: 'promo-product-showcase',
|
|
14
|
+
version: '1.0.0',
|
|
15
|
+
kind: 'configurableMotion',
|
|
16
|
+
renderer: 'remotion',
|
|
17
|
+
title: 'Promo product showcase — a SaaS product promo',
|
|
18
|
+
description: 'A premium SaaS promo: a luminous gradient atmosphere, a large rounded product window with a procedural app UI (navigation, chat, result cards, input), promotional typography, floating badges, particles and a slow camera. Every word, colour, position, timing and easing is configurable; 16:9, 9:16 and 1:1 each have their own layout.',
|
|
19
|
+
fps: 60,
|
|
20
|
+
formats: [
|
|
21
|
+
{ id: 'landscape', aspectRatio: '16:9', width: 3840, height: 2160 },
|
|
22
|
+
{ id: 'portrait', aspectRatio: '9:16', width: 2160, height: 3840 },
|
|
23
|
+
{ id: 'square', aspectRatio: '1:1', width: 2160, height: 2160 },
|
|
24
|
+
],
|
|
25
|
+
durationInFrames: outputDuration(defaultConfig()),
|
|
26
|
+
groups: [...GROUPS],
|
|
27
|
+
controls: allControls(),
|
|
28
|
+
schema: configJsonSchema(),
|
|
29
|
+
presets: PRESET_PATCHES,
|
|
30
|
+
remotion: {
|
|
31
|
+
project: 'remotion-prototype',
|
|
32
|
+
compositions: ['PromoProductShowcaseLandscape', 'PromoProductShowcasePortrait', 'PromoProductShowcaseSquare'],
|
|
33
|
+
reference: 'remotion-prototype/content/promo-product-showcase/reference.json',
|
|
34
|
+
},
|
|
35
|
+
exampleContent: defaultConfig(),
|
|
36
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import { validateConfig, type ConfigError, type Replication2Config } from './config';
|
|
3
|
+
import { createReplication2Driver, type DriverOptions, type Replication2Driver } from './driver';
|
|
4
|
+
import { effectiveSpeed, frameState, MOTION_FPS, timeline } from './engine';
|
|
5
|
+
import { riveValues } from './rive-contract';
|
|
6
|
+
|
|
7
|
+
export type Replication2PlayerProps = {
|
|
8
|
+
/** The canonical config (any subset; defaults fill the rest). Validated before anything is drawn. */
|
|
9
|
+
config: unknown;
|
|
10
|
+
autoPlay?: boolean;
|
|
11
|
+
/** Overrides canvas.loop for this player. */
|
|
12
|
+
loop?: boolean;
|
|
13
|
+
/** Rendered width in CSS px; the height follows the config's aspect ratio. Defaults to 640. */
|
|
14
|
+
width?: number;
|
|
15
|
+
/** Seek to this motion frame and hold (scrubbing). */
|
|
16
|
+
frame?: number;
|
|
17
|
+
onFrame?: (frame: number, status: string) => void;
|
|
18
|
+
onInvalid?: (errors: ConfigError[]) => void;
|
|
19
|
+
/** Where rive.wasm is served from (defaults to the runtime's CDN). */
|
|
20
|
+
wasmUrl?: DriverOptions['wasmUrl'];
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const DESIGN_RATIO: Record<string, number> = { '16:9': 16 / 9, '9:16': 9 / 16, '1:1': 1 };
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* **replication-2 in a React web app.** Validates the config, then draws each frame with the Rive
|
|
28
|
+
* file: the engine decides the frame, the driver writes the view model and draws. The canvas is
|
|
29
|
+
* `aria-hidden` inside a `role="img"` box labelled with the copy (or `text.ariaLabel`). Reduced
|
|
30
|
+
* motion — the OS setting or `motion.reducedMotion` — shows the resolved final frame, still.
|
|
31
|
+
*/
|
|
32
|
+
export function Replication2Player({ config, autoPlay = true, loop, width = 640, frame, onFrame, onInvalid, wasmUrl, className }: Replication2PlayerProps) {
|
|
33
|
+
const key = JSON.stringify(config ?? {});
|
|
34
|
+
const checked = useMemo(() => validateConfig(JSON.parse(key)), [key]);
|
|
35
|
+
const canvasRef = useRef<HTMLCanvasElement>(null);
|
|
36
|
+
const driverRef = useRef<Replication2Driver | null>(null);
|
|
37
|
+
const [ready, setReady] = useState(false);
|
|
38
|
+
const callbacks = useRef({ onFrame, onInvalid });
|
|
39
|
+
callbacks.current = { onFrame, onInvalid };
|
|
40
|
+
|
|
41
|
+
const cfg = checked.config as Replication2Config | undefined;
|
|
42
|
+
const aspect = cfg ? String((cfg.canvas as { aspectRatio: string }).aspectRatio) : '16:9';
|
|
43
|
+
const height = Math.round(width / (DESIGN_RATIO[aspect] ?? 16 / 9));
|
|
44
|
+
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
if (!checked.valid) callbacks.current.onInvalid?.(checked.errors);
|
|
47
|
+
}, [checked]);
|
|
48
|
+
|
|
49
|
+
// One driver per canvas.
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
const canvas = canvasRef.current;
|
|
52
|
+
if (!canvas) return;
|
|
53
|
+
let live = true;
|
|
54
|
+
createReplication2Driver(canvas, { wasmUrl }).then((d) => {
|
|
55
|
+
if (!live) return d.dispose();
|
|
56
|
+
driverRef.current = d;
|
|
57
|
+
setReady(true);
|
|
58
|
+
});
|
|
59
|
+
return () => {
|
|
60
|
+
live = false;
|
|
61
|
+
driverRef.current?.dispose();
|
|
62
|
+
driverRef.current = null;
|
|
63
|
+
setReady(false);
|
|
64
|
+
};
|
|
65
|
+
}, [wasmUrl]);
|
|
66
|
+
|
|
67
|
+
// The clock: requestAnimationFrame → motion frame → engine → Rive.
|
|
68
|
+
useEffect(() => {
|
|
69
|
+
const driver = driverRef.current;
|
|
70
|
+
const canvas = canvasRef.current;
|
|
71
|
+
if (!ready || !driver || !canvas || !cfg) return;
|
|
72
|
+
const dpr = typeof window !== 'undefined' ? Math.min(2, window.devicePixelRatio || 1) : 1;
|
|
73
|
+
canvas.width = Math.round(width * dpr);
|
|
74
|
+
canvas.height = Math.round(height * dpr);
|
|
75
|
+
const total = timeline(cfg).durationFrames;
|
|
76
|
+
const speed = effectiveSpeed(cfg);
|
|
77
|
+
const looping = loop ?? Boolean((cfg.canvas as { loop: boolean }).loop);
|
|
78
|
+
const reduced = Boolean((cfg.motion as { reducedMotion: boolean }).reducedMotion)
|
|
79
|
+
|| (typeof window !== 'undefined' && window.matchMedia?.('(prefers-reduced-motion: reduce)').matches);
|
|
80
|
+
const draw = (f: number) => {
|
|
81
|
+
driver.draw(riveValues(frameState(cfg, f)));
|
|
82
|
+
callbacks.current.onFrame?.(f, driver.status());
|
|
83
|
+
};
|
|
84
|
+
if (frame !== undefined || reduced || !autoPlay) {
|
|
85
|
+
draw(frame ?? (reduced ? total - 1 : 0));
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
let raf = 0;
|
|
89
|
+
const start = performance.now();
|
|
90
|
+
const tick = (now: number) => {
|
|
91
|
+
const m = ((now - start) / 1000) * MOTION_FPS * speed;
|
|
92
|
+
const f = looping ? m % total : Math.min(m, total - 1);
|
|
93
|
+
draw(f);
|
|
94
|
+
if (looping || m < total) raf = requestAnimationFrame(tick);
|
|
95
|
+
};
|
|
96
|
+
raf = requestAnimationFrame(tick);
|
|
97
|
+
return () => cancelAnimationFrame(raf);
|
|
98
|
+
}, [ready, cfg, width, height, frame, autoPlay, loop]);
|
|
99
|
+
|
|
100
|
+
if (!checked.valid) {
|
|
101
|
+
return (
|
|
102
|
+
<div role="alert" className={className} style={{ width, padding: 12, font: '13px/1.4 system-ui', border: '1px solid currentColor' }}>
|
|
103
|
+
<strong>This Replication 2 configuration is not valid.</strong>
|
|
104
|
+
<ul>{checked.errors.slice(0, 8).map((e) => <li key={e.path + e.message}>{e.message}</li>)}</ul>
|
|
105
|
+
</div>
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
const text = cfg!.text as Record<string, string>;
|
|
109
|
+
const label = text.ariaLabel || [`${text.what} ${text.line}`.trim(), text.aiAgent, [text.final1, text.final2, text.final3].filter(Boolean).join(' ')].join(' — ');
|
|
110
|
+
return (
|
|
111
|
+
<div role="img" aria-label={label} className={className} style={{ width, height, position: 'relative' }} data-rive={ready ? 'ready' : 'loading'}>
|
|
112
|
+
<canvas ref={canvasRef} aria-hidden="true" style={{ width, height, display: 'block' }} />
|
|
113
|
+
</div>
|
|
114
|
+
);
|
|
115
|
+
}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CONTROLS, CONTROL_BY_PATH, EASING_NAMES, SCENE_IDS, type AspectRatio, type Control, type EasingValue,
|
|
3
|
+
} from './controls';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* **The canonical configuration** — one nested JSON object, built from the control table. People,
|
|
7
|
+
* the Studio, the site editor and agents all read and write this same object; nothing else exists.
|
|
8
|
+
*
|
|
9
|
+
* Pure: no React, no DOM. Nothing here throws on bad input: validation returns errors.
|
|
10
|
+
*/
|
|
11
|
+
export const CONFIG_SCHEMA_ID = 'replication-2/1';
|
|
12
|
+
|
|
13
|
+
/** The config as plain nested data. Leaves are what the control table says they are. */
|
|
14
|
+
export type Replication2Config = { schema?: typeof CONFIG_SCHEMA_ID } & { [group: string]: unknown };
|
|
15
|
+
export type ConfigError = { path: string; message: string };
|
|
16
|
+
|
|
17
|
+
type Obj = Record<string, unknown>;
|
|
18
|
+
const isObj = (v: unknown): v is Obj => typeof v === 'object' && v !== null && !Array.isArray(v);
|
|
19
|
+
|
|
20
|
+
export function getPath(obj: unknown, path: string): unknown {
|
|
21
|
+
let cur: unknown = obj;
|
|
22
|
+
for (const k of path.split('.')) {
|
|
23
|
+
if (!isObj(cur)) return undefined;
|
|
24
|
+
cur = cur[k];
|
|
25
|
+
}
|
|
26
|
+
return cur;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function setPath(obj: Obj, path: string, value: unknown) {
|
|
30
|
+
const keys = path.split('.');
|
|
31
|
+
let cur = obj;
|
|
32
|
+
for (const k of keys.slice(0, -1)) {
|
|
33
|
+
if (!isObj(cur[k])) cur[k] = {};
|
|
34
|
+
cur = cur[k] as Obj;
|
|
35
|
+
}
|
|
36
|
+
cur[keys.at(-1)!] = value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const clone = <T>(v: T): T => (v === undefined ? v : JSON.parse(JSON.stringify(v)));
|
|
40
|
+
|
|
41
|
+
/** The reference preset: every control at its default. A fresh copy each call. */
|
|
42
|
+
export function defaultConfig(): Replication2Config {
|
|
43
|
+
const out: Obj = { schema: CONFIG_SCHEMA_ID };
|
|
44
|
+
for (const c of CONTROLS) setPath(out, c.path, clone(c.default));
|
|
45
|
+
return out as Replication2Config;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* ─── validation ──────────────────────────────────────────────────────────────────────────── */
|
|
49
|
+
const HEX = /^#[0-9a-fA-F]{6}$/;
|
|
50
|
+
// Single-line text. Copy is only ever drawn by Rive or written with textContent / JSON-escaped, never
|
|
51
|
+
// parsed as markup, so characters like < and > are safe (and the reference's placeholders use them).
|
|
52
|
+
// eslint-disable-next-line no-control-regex -- rejecting control characters is the point
|
|
53
|
+
const UNSAFE_TEXT = /[\u0000-\u001f\u007f]/;
|
|
54
|
+
|
|
55
|
+
function checkEasing(v: unknown, path: string, errors: ConfigError[]) {
|
|
56
|
+
if (typeof v === 'string') {
|
|
57
|
+
if (!(EASING_NAMES as readonly string[]).includes(v)) errors.push({ path, message: `${path} must be one of ${EASING_NAMES.join(', ')}, or a cubicBezier / spring object (got "${v}").` });
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (!isObj(v)) return void errors.push({ path, message: `${path} must be an easing name or a cubicBezier / spring object.` });
|
|
61
|
+
const need = (keys: string[], ranges: Record<string, [number, number]>) => {
|
|
62
|
+
const extra = Object.keys(v).filter((k) => k !== 'type' && !keys.includes(k));
|
|
63
|
+
if (extra.length) errors.push({ path, message: `${path}: ${extra.join(', ')} ${extra.length === 1 ? 'is' : 'are'} not part of a ${String(v.type)} easing.` });
|
|
64
|
+
for (const k of keys) {
|
|
65
|
+
const n = v[k];
|
|
66
|
+
const [lo, hi] = ranges[k]!;
|
|
67
|
+
if (typeof n !== 'number' || !Number.isFinite(n)) errors.push({ path: `${path}.${k}`, message: `${path}.${k} must be a finite number.` });
|
|
68
|
+
else if (n < lo || n > hi) errors.push({ path: `${path}.${k}`, message: `${path}.${k} must be between ${lo} and ${hi} (got ${n}).` });
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
if (v.type === 'cubicBezier') need(['x1', 'y1', 'x2', 'y2'], { x1: [0, 1], y1: [-2, 3], x2: [0, 1], y2: [-2, 3] });
|
|
72
|
+
else if (v.type === 'spring') need(['mass', 'damping', 'stiffness', 'velocity'], { mass: [0.1, 20], damping: [0.1, 200], stiffness: [1, 1000], velocity: [-50, 50] });
|
|
73
|
+
else errors.push({ path, message: `${path}.type must be "cubicBezier" or "spring".` });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function checkLeaf(c: Control, v: unknown, errors: ConfigError[]) {
|
|
77
|
+
const p = c.path;
|
|
78
|
+
switch (c.type) {
|
|
79
|
+
case 'number':
|
|
80
|
+
case 'integer': {
|
|
81
|
+
if (typeof v !== 'number' || !Number.isFinite(v)) return void errors.push({ path: p, message: `${p} must be a finite number (got ${JSON.stringify(v)}).` });
|
|
82
|
+
if (c.type === 'integer' && !Number.isInteger(v)) return void errors.push({ path: p, message: `${p} must be a whole number (got ${v}).` });
|
|
83
|
+
if (v < c.min! || v > c.max!) errors.push({ path: p, message: `${p} must be between ${c.min} and ${c.max}${c.unit && !['fraction', 'factor'].includes(c.unit) ? ` ${c.unit}` : ''} (got ${v}).` });
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
case 'boolean':
|
|
87
|
+
if (typeof v !== 'boolean') errors.push({ path: p, message: `${p} must be true or false.` });
|
|
88
|
+
return;
|
|
89
|
+
case 'color':
|
|
90
|
+
if (typeof v !== 'string' || !HEX.test(v)) errors.push({ path: p, message: `${p} must be a hex colour in the form #rrggbb (got ${JSON.stringify(v)}).` });
|
|
91
|
+
return;
|
|
92
|
+
case 'enum':
|
|
93
|
+
if (!c.options!.includes(v as string | number)) errors.push({ path: p, message: `${p} must be one of ${c.options!.map((o) => JSON.stringify(o)).join(', ')} (got ${JSON.stringify(v)}).` });
|
|
94
|
+
return;
|
|
95
|
+
case 'text': {
|
|
96
|
+
if (typeof v !== 'string') return void errors.push({ path: p, message: `${p} must be a string.` });
|
|
97
|
+
if (UNSAFE_TEXT.test(v)) return void errors.push({ path: p, message: `${p} must be a single line of plain text (no control characters or line breaks).` });
|
|
98
|
+
if (v.trim().length < (c.minLength ?? 0)) errors.push({ path: p, message: `${p} must not be empty.` });
|
|
99
|
+
if (v.length > c.maxLength!) errors.push({ path: p, message: `${p} accepts at most ${c.maxLength} characters (got ${v.length}).` });
|
|
100
|
+
if (p === 'characters.scramble.glyphs' && /[^\x21-\x7e]/.test(v)) errors.push({ path: p, message: `${p} must be printable ASCII with no spaces.` });
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
case 'easing':
|
|
104
|
+
checkEasing(v, p, errors);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const RATIOS: Record<AspectRatio, number> = { '16:9': 16 / 9, '9:16': 9 / 16, '1:1': 1 };
|
|
109
|
+
|
|
110
|
+
/** Cross-field rules: things no single control can check. */
|
|
111
|
+
function checkRelations(cfg: Obj, errors: ConfigError[]) {
|
|
112
|
+
const n = (p: string) => getPath(cfg, p) as number;
|
|
113
|
+
const ratio = RATIOS[getPath(cfg, 'canvas.aspectRatio') as AspectRatio];
|
|
114
|
+
if (ratio && Number.isFinite(n('canvas.width')) && Number.isFinite(n('canvas.height'))) {
|
|
115
|
+
const actual = n('canvas.width') / n('canvas.height');
|
|
116
|
+
if (Math.abs(actual / ratio - 1) > 0.01) errors.push({ path: 'canvas.width', message: `canvas.width × canvas.height (${n('canvas.width')} × ${n('canvas.height')}) does not match canvas.aspectRatio ${String(getPath(cfg, 'canvas.aspectRatio'))}. Set all three together (the portrait, landscape and square presets do).` });
|
|
117
|
+
}
|
|
118
|
+
if (getPath(cfg, 'canvas.timingMode') === 'totalFrames') {
|
|
119
|
+
const motion = SCENE_IDS.reduce((sum, id) => {
|
|
120
|
+
const on = getPath(cfg, `scenes.${id}.enabled`);
|
|
121
|
+
return sum + (on === false ? 0 : n(`scenes.${id}.durationFrames`));
|
|
122
|
+
}, 0);
|
|
123
|
+
const speed = (motion * n('canvas.fps')) / 60 / n('canvas.totalFrames');
|
|
124
|
+
if (speed < 0.25 || speed > 4) {
|
|
125
|
+
const lo = Math.ceil((motion * n('canvas.fps')) / 60 / 4), hi = Math.floor((motion * n('canvas.fps')) / 60 / 0.25);
|
|
126
|
+
errors.push({ path: 'canvas.totalFrames', message: `canvas.totalFrames ${n('canvas.totalFrames')} would play at ${speed.toFixed(2)}× speed; with these scenes at ${n('canvas.fps')} fps it must be between ${lo} and ${hi} frames (0.25×–4×).` });
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
const inside = (scene: string, parts: [string, number][]) => {
|
|
130
|
+
const dur = n(`scenes.${scene}.durationFrames`);
|
|
131
|
+
for (const [label, end] of parts) {
|
|
132
|
+
if (Number.isFinite(end) && Number.isFinite(dur) && end > dur) errors.push({ path: `scenes.${scene}.durationFrames`, message: `scenes.${scene}: ${label} ends at frame ${end}, after the scene's ${dur} frames. Lengthen the scene or shorten the part.` });
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
inside('cursor', [['the intro (introFrames)', n('scenes.cursor.introFrames')]]);
|
|
136
|
+
inside('line', [
|
|
137
|
+
['the brackets (bracketsAtFrame + stagger + duration)', n('scenes.line.bracketsAtFrame') + n('brackets.enter.staggerFrames') + n('brackets.enter.durationFrames')],
|
|
138
|
+
['the background glow (backgroundGlowAtFrame + backgroundGlowFrames)', n('scenes.line.backgroundGlowAtFrame') + n('scenes.line.backgroundGlowFrames')],
|
|
139
|
+
]);
|
|
140
|
+
inside('collapse', [['the hold and collapse (holdFrames + collapseFrames)', n('scenes.collapse.holdFrames') + n('scenes.collapse.collapseFrames')]]);
|
|
141
|
+
inside('aiAgent', [['the track-in (trackInFrames)', n('scenes.aiAgent.trackInFrames')], ['the reveal (revealFrames)', n('scenes.aiAgent.revealFrames')]]);
|
|
142
|
+
inside('developers', [
|
|
143
|
+
['the intro (introFrames)', n('scenes.developers.introFrames')],
|
|
144
|
+
['the third word (word3AtFrame + wordDelayFrames + wordFadeFrames)', n('scenes.developers.word3AtFrame') + n('scenes.developers.wordDelayFrames') + n('scenes.developers.wordFadeFrames')],
|
|
145
|
+
]);
|
|
146
|
+
const w1 = n('scenes.developers.typingAtFrame'), w2 = n('scenes.developers.word2AtFrame'), w3 = n('scenes.developers.word3AtFrame');
|
|
147
|
+
if (w2 <= w1) errors.push({ path: 'scenes.developers.word2AtFrame', message: `scenes.developers.word2AtFrame (${w2}) must come after typingAtFrame (${w1}).` });
|
|
148
|
+
if (w3 <= w2) errors.push({ path: 'scenes.developers.word3AtFrame', message: `scenes.developers.word3AtFrame (${w3}) must come after word2AtFrame (${w2}).` });
|
|
149
|
+
if (getPath(cfg, 'text.final2') === '' && getPath(cfg, 'text.final3') !== '') errors.push({ path: 'text.final3', message: 'text.final3 needs text.final2: the words are added in order.' });
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/** Keys in `value` that no control or group declares, as dotted paths. */
|
|
153
|
+
function unknownKeys(value: Obj, prefix = ''): string[] {
|
|
154
|
+
const out: string[] = [];
|
|
155
|
+
for (const [k, v] of Object.entries(value)) {
|
|
156
|
+
const path = prefix ? `${prefix}.${k}` : k;
|
|
157
|
+
if (!prefix && k === 'schema') continue;
|
|
158
|
+
const control = CONTROL_BY_PATH.get(path);
|
|
159
|
+
if (control) continue; // a leaf (easing objects are checked by the leaf check)
|
|
160
|
+
const isGroup = CONTROLS.some((c) => c.path.startsWith(`${path}.`));
|
|
161
|
+
if (!isGroup) out.push(path);
|
|
162
|
+
else if (isObj(v)) out.push(...unknownKeys(v, path));
|
|
163
|
+
else out.push(path);
|
|
164
|
+
}
|
|
165
|
+
return out;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Check a config. Partial configs are allowed (missing values take their defaults); anything present
|
|
170
|
+
* must be a known control with a valid value. Never throws.
|
|
171
|
+
*/
|
|
172
|
+
export function validateConfig(input: unknown): { valid: boolean; errors: ConfigError[]; config?: Replication2Config } {
|
|
173
|
+
const errors: ConfigError[] = [];
|
|
174
|
+
if (!isObj(input)) return { valid: false, errors: [{ path: '', message: 'The configuration must be a JSON object.' }] };
|
|
175
|
+
if (input.schema !== undefined && input.schema !== CONFIG_SCHEMA_ID) errors.push({ path: 'schema', message: `schema must be "${CONFIG_SCHEMA_ID}" (got ${JSON.stringify(input.schema)}).` });
|
|
176
|
+
for (const path of unknownKeys(input)) {
|
|
177
|
+
errors.push({ path, message: `${path} is not a Replication 2 control. Only the values in the schema can be set — no code, CSS, SVG, HTML or shader of any kind.` });
|
|
178
|
+
}
|
|
179
|
+
const merged = defaultConfig() as Obj;
|
|
180
|
+
for (const c of CONTROLS) {
|
|
181
|
+
const v = getPath(input, c.path);
|
|
182
|
+
if (v === undefined) continue;
|
|
183
|
+
const before = errors.length;
|
|
184
|
+
checkLeaf(c, v, errors);
|
|
185
|
+
if (errors.length === before) setPath(merged, c.path, clone(v));
|
|
186
|
+
}
|
|
187
|
+
if (!errors.length) checkRelations(merged, errors);
|
|
188
|
+
return errors.length ? { valid: false, errors } : { valid: true, errors, config: merged as Replication2Config };
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** A valid, complete config, or an error listing every problem. */
|
|
192
|
+
export class Replication2ConfigError extends Error {
|
|
193
|
+
constructor(readonly errors: ConfigError[]) {
|
|
194
|
+
super(`Invalid Replication 2 configuration:\n${errors.map((e) => ` ${e.path || '(root)'}: ${e.message}`).join('\n')}`);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
export function resolveConfig(input: unknown): Replication2Config {
|
|
198
|
+
const r = validateConfig(input);
|
|
199
|
+
if (!r.valid) throw new Replication2ConfigError(r.errors);
|
|
200
|
+
return r.config!;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* ─── patches ─────────────────────────────────────────────────────────────────────────────── */
|
|
204
|
+
/**
|
|
205
|
+
* One change to the config. `replace` sets a control, `merge` sets several under a group
|
|
206
|
+
* (`{ op: 'merge', path: 'cursor.dark', value: { width: 0.2 } }`), `remove` resets a control or a
|
|
207
|
+
* whole group to its default (every control always has a value).
|
|
208
|
+
*/
|
|
209
|
+
export type PatchOp =
|
|
210
|
+
| { op: 'replace'; path: string; value: unknown }
|
|
211
|
+
| { op: 'merge'; path: string; value: Obj }
|
|
212
|
+
| { op: 'remove'; path: string };
|
|
213
|
+
/** Either a list of operations or the flat form `{ patch: { 'cursor.dark.width': 0.2 } }` (all replaces). */
|
|
214
|
+
export type ConfigPatch = PatchOp[] | { patch: Record<string, unknown> };
|
|
215
|
+
|
|
216
|
+
const flatten = (value: Obj, prefix: string): [string, unknown][] =>
|
|
217
|
+
Object.entries(value).flatMap(([k, v]) => {
|
|
218
|
+
const path = prefix ? `${prefix}.${k}` : k;
|
|
219
|
+
return isObj(v) && !CONTROL_BY_PATH.has(path) ? flatten(v, path) : [[path, v] as [string, unknown]];
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Apply a patch to a config and validate the result. The input is never modified. Nothing is
|
|
224
|
+
* applied unless every operation is well formed and the result is valid.
|
|
225
|
+
*/
|
|
226
|
+
export function applyPatch(config: unknown, patch: unknown): { valid: true; config: Replication2Config; changed: string[] } | { valid: false; errors: ConfigError[] } {
|
|
227
|
+
const start = validateConfig(config);
|
|
228
|
+
if (!start.valid) return { valid: false, errors: start.errors.map((e) => ({ ...e, message: `(before the patch) ${e.message}` })) };
|
|
229
|
+
let ops: PatchOp[];
|
|
230
|
+
if (Array.isArray(patch)) ops = patch as PatchOp[];
|
|
231
|
+
else if (isObj(patch) && isObj(patch.patch) && Object.keys(patch).length === 1) ops = Object.entries(patch.patch).map(([path, value]) => ({ op: 'replace', path, value }));
|
|
232
|
+
else return { valid: false, errors: [{ path: '', message: 'A patch is a list of { op, path, value } operations, or { "patch": { "<path>": value } }.' }] };
|
|
233
|
+
|
|
234
|
+
const next = clone(start.config!) as Obj;
|
|
235
|
+
const errors: ConfigError[] = [];
|
|
236
|
+
const changed: string[] = [];
|
|
237
|
+
const isGroupPath = (path: string) => CONTROLS.some((c) => c.path.startsWith(`${path}.`));
|
|
238
|
+
ops.forEach((o, i) => {
|
|
239
|
+
const where = `patch[${i}]`;
|
|
240
|
+
if (!isObj(o) || typeof o.path !== 'string') return void errors.push({ path: where, message: `${where} must be { op, path, value } with a dotted path.` });
|
|
241
|
+
const extra = Object.keys(o).filter((k) => !['op', 'path', 'value'].includes(k));
|
|
242
|
+
if (extra.length) return void errors.push({ path: where, message: `${where}: ${extra.join(', ')} ${extra.length === 1 ? 'is' : 'are'} not part of a patch operation.` });
|
|
243
|
+
if (o.op === 'replace') {
|
|
244
|
+
if (!CONTROL_BY_PATH.has(o.path)) return void errors.push({ path: o.path, message: `${o.path} is not a Replication 2 control${isGroupPath(o.path) ? ' (it is a group: use "merge")' : ''}.` });
|
|
245
|
+
setPath(next, o.path, clone(o.value));
|
|
246
|
+
changed.push(o.path);
|
|
247
|
+
} else if (o.op === 'merge') {
|
|
248
|
+
if (!isGroupPath(o.path) || !isObj(o.value)) return void errors.push({ path: o.path, message: `merge needs a group path (such as "cursor.dark") and an object value.` });
|
|
249
|
+
for (const [path, value] of flatten(o.value, o.path)) {
|
|
250
|
+
if (!CONTROL_BY_PATH.has(path)) { errors.push({ path, message: `${path} is not a Replication 2 control.` }); continue; }
|
|
251
|
+
setPath(next, path, clone(value));
|
|
252
|
+
changed.push(path);
|
|
253
|
+
}
|
|
254
|
+
} else if (o.op === 'remove') {
|
|
255
|
+
const hits = CONTROLS.filter((c) => c.path === o.path || c.path.startsWith(`${o.path}.`));
|
|
256
|
+
if (!hits.length) return void errors.push({ path: o.path, message: `${o.path} is not a Replication 2 control or group.` });
|
|
257
|
+
for (const c of hits) { setPath(next, c.path, clone(c.default)); changed.push(c.path); }
|
|
258
|
+
} else {
|
|
259
|
+
errors.push({ path: where, message: `${where}.op must be "replace", "merge" or "remove".` });
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
if (errors.length) return { valid: false, errors };
|
|
263
|
+
const end = validateConfig(next);
|
|
264
|
+
if (!end.valid) return { valid: false, errors: end.errors };
|
|
265
|
+
return { valid: true, config: end.config!, changed };
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/** The difference between two configs as a flat patch (only what changed) — handy for sharing edits. */
|
|
269
|
+
export function diffConfig(from: unknown, to: unknown): { patch: Record<string, unknown> } {
|
|
270
|
+
const patch: Record<string, unknown> = {};
|
|
271
|
+
for (const c of CONTROLS) {
|
|
272
|
+
const a = getPath(from, c.path) ?? c.default, b = getPath(to, c.path) ?? c.default;
|
|
273
|
+
if (JSON.stringify(a) !== JSON.stringify(b)) patch[c.path] = clone(b);
|
|
274
|
+
}
|
|
275
|
+
return { patch };
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* ─── JSON Schema ─────────────────────────────────────────────────────────────────────────── */
|
|
279
|
+
const EASING_SCHEMA = {
|
|
280
|
+
oneOf: [
|
|
281
|
+
{ type: 'string', enum: [...EASING_NAMES] },
|
|
282
|
+
{ type: 'object', additionalProperties: false, required: ['type', 'x1', 'y1', 'x2', 'y2'], properties: { type: { const: 'cubicBezier' }, x1: { type: 'number', minimum: 0, maximum: 1 }, y1: { type: 'number', minimum: -2, maximum: 3 }, x2: { type: 'number', minimum: 0, maximum: 1 }, y2: { type: 'number', minimum: -2, maximum: 3 } } },
|
|
283
|
+
{ type: 'object', additionalProperties: false, required: ['type', 'mass', 'damping', 'stiffness', 'velocity'], properties: { type: { const: 'spring' }, mass: { type: 'number', minimum: 0.1, maximum: 20 }, damping: { type: 'number', minimum: 0.1, maximum: 200 }, stiffness: { type: 'number', minimum: 1, maximum: 1000 }, velocity: { type: 'number', minimum: -50, maximum: 50 } } },
|
|
284
|
+
],
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
function leafSchema(c: Control): Obj {
|
|
288
|
+
const meta = { description: c.description, default: c.default, 'x-group': c.group, 'x-userEditable': c.userEditable, 'x-agentEditable': c.agentEditable, ...(c.unit ? { 'x-unit': c.unit } : {}) };
|
|
289
|
+
switch (c.type) {
|
|
290
|
+
case 'number': return { type: 'number', minimum: c.min, maximum: c.max, ...meta };
|
|
291
|
+
case 'integer': return { type: 'integer', minimum: c.min, maximum: c.max, ...meta };
|
|
292
|
+
case 'boolean': return { type: 'boolean', ...meta };
|
|
293
|
+
case 'color': return { type: 'string', pattern: '^#[0-9a-fA-F]{6}$', format: 'hex-color', ...meta };
|
|
294
|
+
case 'enum': return { enum: [...c.options!], ...meta };
|
|
295
|
+
case 'text': return { type: 'string', minLength: c.minLength ?? 0, maxLength: c.maxLength, pattern: '^[^\\u0000-\\u001f\\u007f]*$', ...meta };
|
|
296
|
+
case 'easing': return { ...EASING_SCHEMA, ...meta };
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/** JSON Schema 2020-12 of the whole config. Every property is optional (defaults fill the gaps). */
|
|
301
|
+
export function configJsonSchema(): Obj {
|
|
302
|
+
const root: Obj = {
|
|
303
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
304
|
+
$id: 'https://comppack.vercel.app/schemas/replication-2.json',
|
|
305
|
+
title: 'Replication 2 configuration',
|
|
306
|
+
description: 'The one canonical configuration of the replication-2 configurable-motion template. People and agents edit the same object; only these values exist.',
|
|
307
|
+
type: 'object', additionalProperties: false,
|
|
308
|
+
properties: { schema: { const: CONFIG_SCHEMA_ID } },
|
|
309
|
+
};
|
|
310
|
+
for (const c of CONTROLS) {
|
|
311
|
+
let node = root;
|
|
312
|
+
const keys = c.path.split('.');
|
|
313
|
+
for (const k of keys.slice(0, -1)) {
|
|
314
|
+
const props = node.properties as Obj;
|
|
315
|
+
props[k] ??= { type: 'object', additionalProperties: false, properties: {} };
|
|
316
|
+
node = props[k] as Obj;
|
|
317
|
+
}
|
|
318
|
+
(node.properties as Obj)[keys.at(-1)!] = leafSchema(c);
|
|
319
|
+
}
|
|
320
|
+
return root;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export type { EasingValue };
|