motionary 16.2.0 → 16.9.0
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/CHANGELOG.md +82 -0
- package/README.md +44 -49
- package/README_ja.md +40 -14
- package/README_zh.md +41 -15
- package/bin/motionary.mjs +93 -1
- package/bin/public-paths.mjs +4 -3
- package/dist/chunks/{anim-image-DnLMJuJQ.cjs → anim-image-BLOS4bI2.cjs} +2 -2
- package/dist/chunks/{anim-image-Bg8fMuxp.js → anim-image-Cl-ITu_4.js} +2 -2
- package/dist/chunks/audio-CWxlWX4e.js +1 -1
- package/dist/chunks/audio-D0LwPShE.cjs +1 -1
- package/dist/chunks/badge-wall-Bj-RRR7j.js +1 -1
- package/dist/chunks/badge-wall-CITexuW7.cjs +1 -1
- package/dist/chunks/base-BvH4nAcv.cjs +1 -1
- package/dist/chunks/base-QrtwTUOO.js +1 -1
- package/dist/chunks/bg-generator-CML8tPN8.cjs +1 -1
- package/dist/chunks/bg-generator-Dj1hH67O.js +1 -1
- package/dist/chunks/bind-B_CTL6Qn.js +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
- package/dist/chunks/builtins-DQ_KD-84.js +1 -1
- package/dist/chunks/builtins-DweCp29Z.cjs +1 -1
- package/dist/chunks/carousel-DEgoYGFx.js +1 -1
- package/dist/chunks/carousel-DU3rHTq0.cjs +1 -1
- package/dist/chunks/cart-drawer-C0pY0dmc.js +1 -1
- package/dist/chunks/cart-drawer-CkFMKMhx.cjs +1 -1
- package/dist/chunks/code-export-B-eHxa4Z.js +1 -1
- package/dist/chunks/code-export-PdGSl9WE.cjs +1 -1
- package/dist/chunks/color-picker-B_xWVH8H.cjs +1 -1
- package/dist/chunks/color-picker-D15wk7nJ.js +1 -1
- package/dist/chunks/command-palette-BDNe1gMK.js +1 -1
- package/dist/chunks/command-palette-ISetAeX1.cjs +1 -1
- package/dist/chunks/core-BgR-tTTI.js +1 -1
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/core-CC1UXXEC.js +1 -1
- package/dist/chunks/core-DbAYRKnS.cjs +1 -1
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/core-DjjKLmZ6.cjs +1 -1
- package/dist/chunks/countdown-CG0Ihedq.js +1 -1
- package/dist/chunks/countdown-RQViryt7.cjs +1 -1
- package/dist/chunks/date-picker-BgApzPNn.cjs +1 -1
- package/dist/chunks/date-picker-DdlDcukY.js +1 -1
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/equalizer--Sk1CWfZ.js +1 -1
- package/dist/chunks/equalizer-_eD_ZdCl.cjs +1 -1
- package/dist/chunks/festival-banner-BBqV8cdf.js +1 -1
- package/dist/chunks/festival-banner-Bs18K0MJ.cjs +1 -1
- package/dist/chunks/field-DDv6HlpL.js +1 -1
- package/dist/chunks/field-Dwq8-CLN.cjs +1 -1
- package/dist/chunks/format-BSTz6pm_.js +1 -1
- package/dist/chunks/format-b5fQz-vc.cjs +1 -1
- package/dist/chunks/fx-DaVuB89C.cjs +1 -1
- package/dist/chunks/fx-cO_b2EVv.js +1 -1
- package/dist/chunks/generative-BKoxWOSP.cjs +1 -1
- package/dist/chunks/generative-BNmS-QUD.js +1 -1
- package/dist/chunks/{gl-scene-VtVH9WZO.js → gl-scene-B4Vq-7LM.js} +2 -2
- package/dist/chunks/{gl-scene-g5adl0wI.cjs → gl-scene-BKFjOiw9.cjs} +2 -2
- package/dist/chunks/globe-DA0jyb6s.cjs +1 -1
- package/dist/chunks/globe-l0QidRYi.js +1 -1
- package/dist/chunks/gpu-B5AZJvCt.js +1 -1
- package/dist/chunks/gpu-C2C6iBQC.cjs +1 -1
- package/dist/chunks/gpu-particles-BCpT6_0b.js +1 -1
- package/dist/chunks/gpu-particles-wEO_rds1.cjs +1 -1
- package/dist/chunks/history-B0Ml40k1.cjs +1 -1
- package/dist/chunks/history-W7ot2kyl.js +1 -1
- package/dist/chunks/index-C9_FEsfz.cjs +1 -1
- package/dist/chunks/index-Pkno706C.js +1 -1
- package/dist/chunks/index-tags-B-JBecYg.js +1 -1
- package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
- package/dist/chunks/key-click-BLm3BI8_.js +1 -1
- package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
- package/dist/chunks/{keyframes-CFLu2rZj.cjs → keyframes-CSjvnBpm.cjs} +2 -2
- package/dist/chunks/{keyframes-DeZhknpI.js → keyframes-DZb1Q9k3.js} +2 -2
- package/dist/chunks/leaderboard-CbiWHJt6.js +1 -1
- package/dist/chunks/leaderboard-DvSSQ8o3.cjs +1 -1
- package/dist/chunks/location-card-BZn9anlf.js +1 -1
- package/dist/chunks/location-card-DSPTApUe.cjs +1 -1
- package/dist/chunks/lottie-icon-BoxkukMd.cjs +1 -1
- package/dist/chunks/lottie-icon-DeHawSTn.js +1 -1
- package/dist/chunks/{lottie-player-CIDKtEUS.cjs → lottie-player-BmmIK5c3.cjs} +2 -2
- package/dist/chunks/{lottie-player-1cydIJ5T.js → lottie-player-vafP8f36.js} +2 -2
- package/dist/chunks/lyrics-CRB7dA1j.cjs +1 -1
- package/dist/chunks/lyrics-DVbmLBlN.js +1 -1
- package/dist/chunks/manifest-B0WJg6hn.js +1 -1
- package/dist/chunks/manifest-xr3WET80.cjs +1 -1
- package/dist/chunks/menu-CZ1zHTT9.cjs +1 -1
- package/dist/chunks/menu-CnQ_M2MQ.js +1 -1
- package/dist/chunks/menu-toggle-5XOYiIyd.js +1 -1
- package/dist/chunks/menu-toggle-DGXN4VsN.cjs +1 -1
- package/dist/chunks/nav-morph-C4rD3wrU.cjs +1 -1
- package/dist/chunks/nav-morph-ziuI5hHS.js +1 -1
- package/dist/chunks/otp-Cb48zoUe.js +1 -1
- package/dist/chunks/otp-DUyEWYMi.cjs +1 -1
- package/dist/chunks/pagination-BIufB-g3.js +1 -1
- package/dist/chunks/pagination-DHmYZZU9.cjs +1 -1
- package/dist/chunks/{physics-playground-B7o7Z2Hn.cjs → physics-playground-BvTzK33V.cjs} +2 -2
- package/dist/chunks/{physics-playground-BSwEYi1v.js → physics-playground-DMMT9mUt.js} +2 -2
- package/dist/chunks/play-D9Utt9rO.cjs +1 -1
- package/dist/chunks/play-DZ_ho9zJ.js +1 -1
- package/dist/chunks/player-core-CeaR3esR.cjs +1 -1
- package/dist/chunks/player-core-DAEKafsQ.js +1 -1
- package/dist/chunks/presence-C-dO1CU4.js +1 -1
- package/dist/chunks/presence-DAthlALi.cjs +1 -1
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/preview-DdgqW96I.js +1 -1
- package/dist/chunks/preview-kiMCBqSF.cjs +1 -1
- package/dist/chunks/prize-wheel-emDopI5c.cjs +1 -1
- package/dist/chunks/prize-wheel-xiuulNSI.js +1 -1
- package/dist/chunks/product-gallery-BoiBGX9H.js +1 -1
- package/dist/chunks/product-gallery-CKtSVhZk.cjs +1 -1
- package/dist/chunks/progress-ring-BsEz1MN3.js +1 -1
- package/dist/chunks/progress-ring-C75O4MUi.cjs +1 -1
- package/dist/chunks/project-CCfILvjg.js +1 -1
- package/dist/chunks/project-DiTOvzic.cjs +1 -1
- package/dist/chunks/prop-panel-DFqga6H5.cjs +1 -1
- package/dist/chunks/prop-panel-DqIbmWmc.js +1 -1
- package/dist/chunks/radar-D-bZRrgs.cjs +1 -1
- package/dist/chunks/radar-t201zj2r.js +1 -1
- package/dist/chunks/reactions-BL2iO8iy.cjs +1 -1
- package/dist/chunks/reactions-CX-_6Suh.js +1 -1
- package/dist/chunks/registry-B1ipgYF7.js +1 -1
- package/dist/chunks/registry-CibnX7Ui.cjs +1 -1
- package/dist/chunks/{registry-Ce3_sUto.js → registry-dVWIAYAv.js} +2 -2
- package/dist/chunks/{registry-z74WGGq9.cjs → registry-sRiTWT0H.cjs} +2 -2
- package/dist/chunks/retro-button-CPAMUUZ2.js +1 -1
- package/dist/chunks/retro-button-DrrBZ6w8.cjs +1 -1
- package/dist/chunks/rive-D6X4J0Mi.cjs +1 -1
- package/dist/chunks/rive-uSPb8arE.js +1 -1
- package/dist/chunks/{runtime-link-BdtHln5B.cjs → runtime-link-B1KVsOtJ.cjs} +2 -2
- package/dist/chunks/{runtime-link-Dvt75tZs.js → runtime-link-C83ELEq3.js} +2 -2
- package/dist/chunks/scene-C7-PUIZK.js +1 -1
- package/dist/chunks/scene-U2YkjCm0.cjs +1 -1
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-B48FJKBo.js → scroll-scene-CKoDuwdJ.js} +3 -3
- package/dist/chunks/{scroll-scene-BwuAuMJN.cjs → scroll-scene-OyBWeyX_.cjs} +3 -3
- package/dist/chunks/segmented-CpB4mKIn.cjs +1 -1
- package/dist/chunks/segmented-KPw5KH1W.js +1 -1
- package/dist/chunks/shader-backdrop-BodjXMhw.cjs +1 -1
- package/dist/chunks/shader-backdrop-JPI5yk7O.js +1 -1
- package/dist/chunks/shared-Bf72wLyt.cjs +1 -1
- package/dist/chunks/shared-CkKHWrtJ.js +1 -1
- package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
- package/dist/chunks/shared-o9CtwHmi.js +1 -1
- package/dist/chunks/sheet-B38ylIEW.cjs +1 -1
- package/dist/chunks/sheet-CheLvhW_.js +1 -1
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/skeleton-reveal-DDDWXmcC.js +1 -1
- package/dist/chunks/skeleton-reveal-Dsd3Wp0n.cjs +1 -1
- package/dist/chunks/sparkline-DeKhZpVo.cjs +1 -1
- package/dist/chunks/sparkline-u-Oxv7YR.js +1 -1
- package/dist/chunks/spring-XEl_diDJ.cjs +1 -1
- package/dist/chunks/spring-YKWCyYGf.js +1 -1
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/suggestion-chips-BlX6Fmt-.js +1 -1
- package/dist/chunks/suggestion-chips-CAcbFTr4.cjs +1 -1
- package/dist/chunks/switch-DiTlApGd.cjs +1 -1
- package/dist/chunks/switch-kilxiPM3.js +1 -1
- package/dist/chunks/tab-bar-BBlVAqbq.cjs +1 -1
- package/dist/chunks/tab-bar-CBtsdbcT.js +1 -1
- package/dist/chunks/{ticker-B3sTb85k.cjs → ticker-Dc8oIrfx.cjs} +2 -2
- package/dist/chunks/{ticker-EuEw6Awo.js → ticker-dt29UaqX.js} +2 -2
- package/dist/chunks/tip-UhHR-P4Q.js +1 -1
- package/dist/chunks/tip-VGS3qAUm.cjs +1 -1
- package/dist/chunks/toast-stack-B_bO4fVO.js +1 -1
- package/dist/chunks/toast-stack-DprisNp_.cjs +1 -1
- package/dist/chunks/{tween-C5T1YCsy.cjs → tween-CLYPTo7k.cjs} +2 -2
- package/dist/chunks/{tween-u2cYpA33.js → tween-D-LZg3kR.js} +2 -2
- package/dist/chunks/upload-progress-CEAWkP-p.cjs +1 -1
- package/dist/chunks/upload-progress-kJz9Mw10.js +1 -1
- package/dist/chunks/v2-C_rZCsjr.js +1 -1
- package/dist/chunks/v2-El9dfBqV.cjs +1 -1
- package/dist/chunks/v3-read-BNhrN3tL.cjs +1 -1
- package/dist/chunks/v3-read-BqgIjLQP.js +1 -1
- package/dist/chunks/variants-BtqEJuki.cjs +1 -1
- package/dist/chunks/variants-CDG1W49e.js +1 -1
- package/dist/chunks/viewport-BAXHhZLV.js +1 -1
- package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
- package/dist/chunks/voice-button-9UauxvT9.cjs +1 -1
- package/dist/chunks/voice-button-leTq2whK.js +1 -1
- package/dist/chunks/weather-card-4Eg6e43D.cjs +1 -1
- package/dist/chunks/weather-card-CL5yJ4rw.js +1 -1
- package/dist/chunks/worker-canvas-BMBXAFWp.cjs +1 -1
- package/dist/chunks/worker-canvas-RGGXvIxH.js +1 -1
- package/dist/chunks/xp-bar-DgVUXJYh.js +1 -1
- package/dist/chunks/xp-bar-DkWfCTfB.cjs +1 -1
- package/dist/components/a11y.cjs +1 -1
- package/dist/components/a11y.js +1 -1
- package/dist/components/ai.cjs +1 -1
- package/dist/components/ai.js +1 -1
- package/dist/components/angular.cjs +1 -1
- package/dist/components/angular.js +1 -1
- package/dist/components/background.cjs +1 -1
- package/dist/components/background.js +1 -1
- package/dist/components/bridge.cjs +1 -1
- package/dist/components/bridge.js +1 -1
- package/dist/components/cards.cjs +1 -1
- package/dist/components/cards.js +1 -1
- package/dist/components/click.cjs +1 -1
- package/dist/components/click.js +1 -1
- package/dist/components/core.cjs +1 -1
- package/dist/components/core.js +1 -1
- package/dist/components/depth.cjs +1 -1
- package/dist/components/depth.js +1 -1
- package/dist/components/design.cjs +1 -1
- package/dist/components/design.js +1 -1
- package/dist/components/dotlottie.cjs +3 -3
- package/dist/components/dotlottie.js +3 -3
- package/dist/components/dsl.cjs +1 -1
- package/dist/components/dsl.js +1 -1
- package/dist/components/effects.cjs +1 -1
- package/dist/components/effects.js +1 -1
- package/dist/components/engine.cjs +1 -1
- package/dist/components/engine.js +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.js +1 -1
- package/dist/components/fx-3d.cjs +1 -1
- package/dist/components/fx-3d.js +1 -1
- package/dist/components/fx-ai.cjs +1 -1
- package/dist/components/fx-ai.js +1 -1
- package/dist/components/fx-chart.cjs +1 -1
- package/dist/components/fx-chart.js +1 -1
- package/dist/components/fx-cinema.cjs +1 -1
- package/dist/components/fx-cinema.js +1 -1
- package/dist/components/fx-cyber.cjs +1 -1
- package/dist/components/fx-cyber.js +1 -1
- package/dist/components/fx-festival.cjs +1 -1
- package/dist/components/fx-festival.js +1 -1
- package/dist/components/fx-focus.cjs +1 -1
- package/dist/components/fx-focus.js +1 -1
- package/dist/components/fx-form.cjs +1 -1
- package/dist/components/fx-form.js +1 -1
- package/dist/components/fx-game.cjs +1 -1
- package/dist/components/fx-game.js +1 -1
- package/dist/components/fx-genart.cjs +1 -1
- package/dist/components/fx-genart.js +1 -1
- package/dist/components/fx-geo.cjs +1 -1
- package/dist/components/fx-geo.js +1 -1
- package/dist/components/fx-gesture.cjs +1 -1
- package/dist/components/fx-gesture.js +1 -1
- package/dist/components/fx-gpu.cjs +1 -1
- package/dist/components/fx-gpu.js +1 -1
- package/dist/components/fx-light.cjs +1 -1
- package/dist/components/fx-light.js +1 -1
- package/dist/components/fx-lottie.cjs +1 -1
- package/dist/components/fx-lottie.js +1 -1
- package/dist/components/fx-morph.cjs +1 -1
- package/dist/components/fx-morph.js +1 -1
- package/dist/components/fx-music.cjs +1 -1
- package/dist/components/fx-music.js +1 -1
- package/dist/components/fx-organic.cjs +1 -1
- package/dist/components/fx-organic.js +1 -1
- package/dist/components/fx-paper.cjs +1 -1
- package/dist/components/fx-paper.js +1 -1
- package/dist/components/fx-perf.cjs +1 -1
- package/dist/components/fx-perf.js +1 -1
- package/dist/components/fx-physics.cjs +1 -1
- package/dist/components/fx-physics.js +1 -1
- package/dist/components/fx-retro.cjs +1 -1
- package/dist/components/fx-retro.js +1 -1
- package/dist/components/fx-safe.cjs +1 -1
- package/dist/components/fx-safe.js +1 -1
- package/dist/components/fx-shop.cjs +1 -1
- package/dist/components/fx-shop.js +1 -1
- package/dist/components/fx-social.cjs +1 -1
- package/dist/components/fx-social.js +1 -1
- package/dist/components/fx-spatial.cjs +1 -1
- package/dist/components/fx-spatial.js +1 -1
- package/dist/components/fx-surface.cjs +1 -1
- package/dist/components/fx-surface.js +1 -1
- package/dist/components/fx-text.cjs +1 -1
- package/dist/components/fx-text.js +1 -1
- package/dist/components/fx-transitions.cjs +1 -1
- package/dist/components/fx-transitions.js +1 -1
- package/dist/components/fx-video.cjs +1 -1
- package/dist/components/fx-video.js +1 -1
- package/dist/components/fx-weather.cjs +1 -1
- package/dist/components/fx-weather.js +1 -1
- package/dist/components/fx.cjs +1 -1
- package/dist/components/fx.js +1 -1
- package/dist/components/fx2.cjs +1 -1
- package/dist/components/fx2.js +1 -1
- package/dist/components/gesture.cjs +1 -1
- package/dist/components/gesture.js +1 -1
- package/dist/components/gl-model.cjs +3 -3
- package/dist/components/gl-model.js +3 -3
- package/dist/components/gl-pool.cjs +1 -1
- package/dist/components/gl-pool.js +1 -1
- package/dist/components/interaction.cjs +1 -1
- package/dist/components/interaction.js +1 -1
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +1 -1
- package/dist/components/lite.js +1 -1
- package/dist/components/marketplace.cjs +1 -1
- package/dist/components/marketplace.js +1 -1
- package/dist/components/motion-layout.cjs +1 -1
- package/dist/components/motion-layout.js +1 -1
- package/dist/components/motion-scene.cjs +1 -1
- package/dist/components/motion-scene.js +1 -1
- package/dist/components/motion-tokens.cjs +1 -1
- package/dist/components/motion-tokens.js +1 -1
- package/dist/components/motion.cjs +1 -1
- package/dist/components/motion.js +1 -1
- package/dist/components/native.cjs +1 -1
- package/dist/components/native.js +1 -1
- package/dist/components/offscreen.cjs +1 -1
- package/dist/components/offscreen.js +1 -1
- package/dist/components/packs.cjs +1 -1
- package/dist/components/packs.js +1 -1
- package/dist/components/page.cjs +1 -1
- package/dist/components/page.js +1 -1
- package/dist/components/perf-tasks.cjs +1 -1
- package/dist/components/perf-tasks.js +1 -1
- package/dist/components/perf.cjs +1 -1
- package/dist/components/perf.js +1 -1
- package/dist/components/physics.cjs +1 -1
- package/dist/components/physics.js +1 -1
- package/dist/components/plugins.cjs +1 -1
- package/dist/components/plugins.js +1 -1
- package/dist/components/react.cjs +1 -1
- package/dist/components/react.js +1 -1
- package/dist/components/reveal.cjs +1 -1
- package/dist/components/reveal.js +1 -1
- package/dist/components/scene-symbols.cjs +1 -1
- package/dist/components/scene-symbols.js +1 -1
- package/dist/components/scene-v2.cjs +1 -1
- package/dist/components/scene-v2.js +1 -1
- package/dist/components/scene-v3-preview.cjs +37 -0
- package/dist/components/scene-v3-preview.d.cts +4 -0
- package/dist/components/scene-v3-preview.d.ts +4 -0
- package/dist/components/scene-v3-preview.js +24 -0
- package/dist/components/scene-v3.cjs +1 -1
- package/dist/components/scene-v3.js +1 -1
- package/dist/components/snap-carousel.cjs +2 -2
- package/dist/components/snap-carousel.js +2 -2
- package/dist/components/solid.cjs +1 -1
- package/dist/components/solid.js +1 -1
- package/dist/components/studio-a11y.cjs +1 -1
- package/dist/components/studio-a11y.js +1 -1
- package/dist/components/studio-ai.cjs +1 -1
- package/dist/components/studio-ai.js +1 -1
- package/dist/components/studio-app.cjs +1 -1
- package/dist/components/studio-app.js +1 -1
- package/dist/components/studio-assets.cjs +1 -1
- package/dist/components/studio-assets.js +1 -1
- package/dist/components/studio-budget.cjs +127 -0
- package/dist/components/studio-budget.d.cts +159 -0
- package/dist/components/studio-budget.d.ts +159 -0
- package/dist/components/studio-budget.js +119 -0
- package/dist/components/studio-canvas.cjs +1 -1
- package/dist/components/studio-canvas.js +1 -1
- package/dist/components/studio-export.cjs +1 -1
- package/dist/components/studio-export.js +1 -1
- package/dist/components/studio-native.cjs +1 -1
- package/dist/components/studio-native.js +1 -1
- package/dist/components/studio-plugins.cjs +1 -1
- package/dist/components/studio-plugins.js +1 -1
- package/dist/components/studio-provenance.cjs +1 -1
- package/dist/components/studio-provenance.js +1 -1
- package/dist/components/studio-store.cjs +1 -1
- package/dist/components/studio-store.js +1 -1
- package/dist/components/studio-templates.cjs +1 -1
- package/dist/components/studio-templates.js +1 -1
- package/dist/components/studio.cjs +1 -1
- package/dist/components/studio.js +1 -1
- package/dist/components/svelte.cjs +1 -1
- package/dist/components/svelte.js +1 -1
- package/dist/components/svg.cjs +1 -1
- package/dist/components/svg.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/timeline-editor.cjs +1 -1
- package/dist/components/timeline-editor.js +1 -1
- package/dist/components/timeline.cjs +1 -1
- package/dist/components/timeline.js +1 -1
- package/dist/components/tokens.cjs +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/transitions.cjs +1 -1
- package/dist/components/transitions.js +1 -1
- package/dist/components/ui.cjs +1 -1
- package/dist/components/ui.js +1 -1
- package/dist/components/vue.cjs +1 -1
- package/dist/components/vue.js +1 -1
- package/dist/components/webgl.cjs +1 -1
- package/dist/components/webgl.js +1 -1
- package/dist/components/widgets.cjs +5 -5
- package/dist/components/widgets.js +7 -7
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/components.umd.js +1 -1
- package/dist/effects/achievement-unlock.cjs +1 -1
- package/dist/effects/achievement-unlock.js +1 -1
- package/dist/effects/aurora-veil.cjs +1 -1
- package/dist/effects/aurora-veil.js +1 -1
- package/dist/effects/badge-pop.cjs +1 -1
- package/dist/effects/badge-pop.js +1 -1
- package/dist/effects/bars-grow.cjs +1 -1
- package/dist/effects/bars-grow.js +1 -1
- package/dist/effects/beat-bounce.cjs +1 -1
- package/dist/effects/beat-bounce.js +1 -1
- package/dist/effects/blob-button.cjs +1 -1
- package/dist/effects/blob-button.js +1 -1
- package/dist/effects/bloom.cjs +1 -1
- package/dist/effects/bloom.js +1 -1
- package/dist/effects/breathe.cjs +1 -1
- package/dist/effects/breathe.js +1 -1
- package/dist/effects/brushed-metal.cjs +1 -1
- package/dist/effects/brushed-metal.js +1 -1
- package/dist/effects/camera-dolly.cjs +1 -1
- package/dist/effects/camera-dolly.js +1 -1
- package/dist/effects/card-flip-3d.cjs +1 -1
- package/dist/effects/card-flip-3d.js +1 -1
- package/dist/effects/chest-open.cjs +1 -1
- package/dist/effects/chest-open.js +1 -1
- package/dist/effects/cloth.cjs +1 -1
- package/dist/effects/cloth.js +1 -1
- package/dist/effects/coin-burst.cjs +1 -1
- package/dist/effects/coin-burst.js +1 -1
- package/dist/effects/color-pulse.cjs +1 -1
- package/dist/effects/color-pulse.js +1 -1
- package/dist/effects/crt-power.cjs +1 -1
- package/dist/effects/crt-power.js +1 -1
- package/dist/effects/crumple.cjs +1 -1
- package/dist/effects/crumple.js +1 -1
- package/dist/effects/data-decode.cjs +1 -1
- package/dist/effects/data-decode.js +1 -1
- package/dist/effects/day-cycle.cjs +1 -1
- package/dist/effects/day-cycle.js +1 -1
- package/dist/effects/depth-in.cjs +1 -1
- package/dist/effects/depth-in.js +1 -1
- package/dist/effects/depth-pop.cjs +1 -1
- package/dist/effects/depth-pop.js +1 -1
- package/dist/effects/depth-stack.cjs +1 -1
- package/dist/effects/depth-stack.js +1 -1
- package/dist/effects/dolly-in.cjs +1 -1
- package/dist/effects/dolly-in.js +1 -1
- package/dist/effects/dots-pop.cjs +1 -1
- package/dist/effects/dots-pop.js +1 -1
- package/dist/effects/field-shake.cjs +1 -1
- package/dist/effects/field-shake.js +1 -1
- package/dist/effects/field-success.cjs +1 -1
- package/dist/effects/field-success.js +1 -1
- package/dist/effects/film-burn.cjs +1 -1
- package/dist/effects/film-burn.js +1 -1
- package/dist/effects/fire.cjs +1 -1
- package/dist/effects/fire.js +1 -1
- package/dist/effects/fireflies.cjs +1 -1
- package/dist/effects/fireflies.js +1 -1
- package/dist/effects/firework-burst.cjs +1 -1
- package/dist/effects/firework-burst.js +1 -1
- package/dist/effects/flip-chars.cjs +1 -1
- package/dist/effects/flip-chars.js +1 -1
- package/dist/effects/fluid.cjs +1 -1
- package/dist/effects/fluid.js +1 -1
- package/dist/effects/fly-to-cart.cjs +1 -1
- package/dist/effects/fly-to-cart.js +1 -1
- package/dist/effects/focus-draw.cjs +1 -1
- package/dist/effects/focus-draw.js +1 -1
- package/dist/effects/focus-glow.cjs +1 -1
- package/dist/effects/focus-glow.js +1 -1
- package/dist/effects/fog.cjs +1 -1
- package/dist/effects/fog.js +1 -1
- package/dist/effects/font-breathe.cjs +1 -1
- package/dist/effects/font-breathe.js +1 -1
- package/dist/effects/form-cascade.cjs +1 -1
- package/dist/effects/form-cascade.js +1 -1
- package/dist/effects/gen-skeleton.cjs +1 -1
- package/dist/effects/gen-skeleton.js +1 -1
- package/dist/effects/glass-frost.cjs +1 -1
- package/dist/effects/glass-frost.js +1 -1
- package/dist/effects/glitch-text.cjs +1 -1
- package/dist/effects/glitch-text.js +1 -1
- package/dist/effects/globe-spin.cjs +1 -1
- package/dist/effects/globe-spin.js +1 -1
- package/dist/effects/god-rays.cjs +1 -1
- package/dist/effects/god-rays.js +1 -1
- package/dist/effects/gpu-lift.cjs +1 -1
- package/dist/effects/gpu-lift.js +1 -1
- package/dist/effects/grain-flicker.cjs +1 -1
- package/dist/effects/grain-flicker.js +1 -1
- package/dist/effects/halftone-in.cjs +1 -1
- package/dist/effects/halftone-in.js +1 -1
- package/dist/effects/highlight-sweep.cjs +1 -1
- package/dist/effects/highlight-sweep.js +1 -1
- package/dist/effects/hologram.cjs +1 -1
- package/dist/effects/hologram.js +1 -1
- package/dist/effects/hud-frame.cjs +1 -1
- package/dist/effects/hud-frame.js +1 -1
- package/dist/effects/icon-pop.cjs +1 -1
- package/dist/effects/icon-pop.js +1 -1
- package/dist/effects/icon-swap.cjs +1 -1
- package/dist/effects/icon-swap.js +1 -1
- package/dist/effects/idle-reveal.cjs +1 -1
- package/dist/effects/idle-reveal.js +1 -1
- package/dist/effects/ink.cjs +1 -1
- package/dist/effects/ink.js +1 -1
- package/dist/effects/jump-cut.cjs +1 -1
- package/dist/effects/jump-cut.js +1 -1
- package/dist/effects/kaleido.cjs +1 -1
- package/dist/effects/kaleido.js +1 -1
- package/dist/effects/label-float.cjs +1 -1
- package/dist/effects/label-float.js +1 -1
- package/dist/effects/lantern-rise.cjs +1 -1
- package/dist/effects/lantern-rise.js +1 -1
- package/dist/effects/leaves.cjs +1 -1
- package/dist/effects/leaves.js +1 -1
- package/dist/effects/letterbox.cjs +1 -1
- package/dist/effects/letterbox.js +1 -1
- package/dist/effects/level-up.cjs +1 -1
- package/dist/effects/level-up.js +1 -1
- package/dist/effects/light-follow.cjs +1 -1
- package/dist/effects/light-follow.js +1 -1
- package/dist/effects/lightning.cjs +1 -1
- package/dist/effects/lightning.js +1 -1
- package/dist/effects/line-draw.cjs +1 -1
- package/dist/effects/line-draw.js +1 -1
- package/dist/effects/liquid-text.cjs +1 -1
- package/dist/effects/liquid-text.js +1 -1
- package/dist/effects/liquid-wipe.cjs +1 -1
- package/dist/effects/liquid-wipe.js +1 -1
- package/dist/effects/lottie-play.cjs +1 -1
- package/dist/effects/lottie-play.js +1 -1
- package/dist/effects/magnet.cjs +1 -1
- package/dist/effects/magnet.js +1 -1
- package/dist/effects/marching-ants.cjs +1 -1
- package/dist/effects/marching-ants.js +1 -1
- package/dist/effects/marker-pulse.cjs +1 -1
- package/dist/effects/marker-pulse.js +1 -1
- package/dist/effects/mention-glow.cjs +1 -1
- package/dist/effects/mention-glow.js +1 -1
- package/dist/effects/mesh-drift.cjs +1 -1
- package/dist/effects/mesh-drift.js +1 -1
- package/dist/effects/message-in.cjs +1 -1
- package/dist/effects/message-in.js +1 -1
- package/dist/effects/mosaic-flip.cjs +1 -1
- package/dist/effects/mosaic-flip.js +1 -1
- package/dist/effects/neon-ignite.cjs +1 -1
- package/dist/effects/neon-ignite.js +1 -1
- package/dist/effects/neon-pulse.cjs +1 -1
- package/dist/effects/neon-pulse.js +1 -1
- package/dist/effects/neon-write.cjs +1 -1
- package/dist/effects/neon-write.js +1 -1
- package/dist/effects/neu-press.cjs +1 -1
- package/dist/effects/neu-press.js +1 -1
- package/dist/effects/noise-reveal.cjs +1 -1
- package/dist/effects/noise-reveal.js +1 -1
- package/dist/effects/number-roll.cjs +1 -1
- package/dist/effects/number-roll.js +1 -1
- package/dist/effects/orbit-camera.cjs +1 -1
- package/dist/effects/orbit-camera.js +1 -1
- package/dist/effects/orbit-in.cjs +1 -1
- package/dist/effects/orbit-in.js +1 -1
- package/dist/effects/origami.cjs +1 -1
- package/dist/effects/origami.js +1 -1
- package/dist/effects/page-curl.cjs +1 -1
- package/dist/effects/page-curl.js +1 -1
- package/dist/effects/pan-reveal.cjs +1 -1
- package/dist/effects/pan-reveal.js +1 -1
- package/dist/effects/paper-unfold.cjs +1 -1
- package/dist/effects/paper-unfold.js +1 -1
- package/dist/effects/particle-text.cjs +1 -1
- package/dist/effects/particle-text.js +1 -1
- package/dist/effects/path-morph.cjs +1 -1
- package/dist/effects/path-morph.js +1 -1
- package/dist/effects/pearlescent.cjs +1 -1
- package/dist/effects/pearlescent.js +1 -1
- package/dist/effects/pencil-sketch.cjs +1 -1
- package/dist/effects/pencil-sketch.js +1 -1
- package/dist/effects/pin-drop.cjs +1 -1
- package/dist/effects/pin-drop.js +1 -1
- package/dist/effects/pinball.cjs +1 -1
- package/dist/effects/pinball.js +1 -1
- package/dist/effects/pinch-hint.cjs +1 -1
- package/dist/effects/pinch-hint.js +1 -1
- package/dist/effects/pixelate-in.cjs +1 -1
- package/dist/effects/pixelate-in.js +1 -1
- package/dist/effects/pointer-shadow.cjs +1 -1
- package/dist/effects/pointer-shadow.js +1 -1
- package/dist/effects/portal-open.cjs +1 -1
- package/dist/effects/portal-open.js +1 -1
- package/dist/effects/price-flip.cjs +1 -1
- package/dist/effects/price-flip.js +1 -1
- package/dist/effects/product-spin.cjs +1 -1
- package/dist/effects/product-spin.js +1 -1
- package/dist/effects/rack-focus.cjs +1 -1
- package/dist/effects/rack-focus.js +1 -1
- package/dist/effects/radial-spectrum.cjs +1 -1
- package/dist/effects/radial-spectrum.js +1 -1
- package/dist/effects/rain-glass.cjs +1 -1
- package/dist/effects/rain-glass.js +1 -1
- package/dist/effects/reaction-burst.cjs +1 -1
- package/dist/effects/reaction-burst.js +1 -1
- package/dist/effects/read-receipt.cjs +1 -1
- package/dist/effects/read-receipt.js +1 -1
- package/dist/effects/refraction.cjs +1 -1
- package/dist/effects/refraction.js +1 -1
- package/dist/effects/ring-sweep.cjs +1 -1
- package/dist/effects/ring-sweep.js +1 -1
- package/dist/effects/ripple-dissolve.cjs +1 -1
- package/dist/effects/ripple-dissolve.js +1 -1
- package/dist/effects/rope.cjs +1 -1
- package/dist/effects/rope.js +1 -1
- package/dist/effects/route-draw.cjs +1 -1
- package/dist/effects/route-draw.js +1 -1
- package/dist/effects/safe-fade.cjs +1 -1
- package/dist/effects/safe-fade.js +1 -1
- package/dist/effects/sakura.cjs +1 -1
- package/dist/effects/sakura.js +1 -1
- package/dist/effects/sale-shine.cjs +1 -1
- package/dist/effects/sale-shine.js +1 -1
- package/dist/effects/sankey-flow.cjs +1 -1
- package/dist/effects/sankey-flow.js +1 -1
- package/dist/effects/scanline-sweep.cjs +1 -1
- package/dist/effects/scanline-sweep.js +1 -1
- package/dist/effects/shatter.cjs +1 -1
- package/dist/effects/shatter.js +1 -1
- package/dist/effects/smoke.cjs +1 -1
- package/dist/effects/smoke.js +1 -1
- package/dist/effects/snowfall.cjs +1 -1
- package/dist/effects/snowfall.js +1 -1
- package/dist/effects/soft-body.cjs +1 -1
- package/dist/effects/soft-body.js +1 -1
- package/dist/effects/sound-particles.cjs +1 -1
- package/dist/effects/sound-particles.js +1 -1
- package/dist/effects/spatial-float.cjs +1 -1
- package/dist/effects/spatial-float.js +1 -1
- package/dist/effects/spectrum-mirror.cjs +1 -1
- package/dist/effects/spectrum-mirror.js +1 -1
- package/dist/effects/splash.cjs +1 -1
- package/dist/effects/splash.js +1 -1
- package/dist/effects/spooky-float.cjs +1 -1
- package/dist/effects/spooky-float.js +1 -1
- package/dist/effects/stock-pulse.cjs +1 -1
- package/dist/effects/stock-pulse.js +1 -1
- package/dist/effects/stream-text.cjs +1 -1
- package/dist/effects/stream-text.js +1 -1
- package/dist/effects/stroke-draw.cjs +1 -1
- package/dist/effects/stroke-draw.js +1 -1
- package/dist/effects/success-check.cjs +1 -1
- package/dist/effects/success-check.js +1 -1
- package/dist/effects/swipe-hint.cjs +1 -1
- package/dist/effects/swipe-hint.js +1 -1
- package/dist/effects/text-trail.cjs +1 -1
- package/dist/effects/text-trail.js +1 -1
- package/dist/effects/thinking-glow.cjs +1 -1
- package/dist/effects/thinking-glow.js +1 -1
- package/dist/effects/tilt-wobble.cjs +1 -1
- package/dist/effects/tilt-wobble.js +1 -1
- package/dist/effects/typing-dots.cjs +1 -1
- package/dist/effects/typing-dots.js +1 -1
- package/dist/effects/underline-sweep.cjs +1 -1
- package/dist/effects/underline-sweep.js +1 -1
- package/dist/effects/vhs-glitch.cjs +1 -1
- package/dist/effects/vhs-glitch.js +1 -1
- package/dist/effects/vine-grow.cjs +1 -1
- package/dist/effects/vine-grow.js +1 -1
- package/dist/effects/vinyl-spin.cjs +1 -1
- package/dist/effects/vinyl-spin.js +1 -1
- package/dist/effects/voice-wave.cjs +1 -1
- package/dist/effects/voice-wave.js +1 -1
- package/dist/effects/water-drop.cjs +1 -1
- package/dist/effects/water-drop.js +1 -1
- package/dist/effects/watercolor.cjs +1 -1
- package/dist/effects/watercolor.js +1 -1
- package/dist/effects/waveform-scope.cjs +1 -1
- package/dist/effects/waveform-scope.js +1 -1
- package/dist/effects/xmas-snow.cjs +1 -1
- package/dist/effects/xmas-snow.js +1 -1
- package/dist/effects/xp-gain.cjs +1 -1
- package/dist/effects/xp-gain.js +1 -1
- package/dist/effects/y2k-shine.cjs +1 -1
- package/dist/effects/y2k-shine.js +1 -1
- package/dist/element.cjs +1 -1
- package/dist/element.js +1 -1
- package/dist/element.umd.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/llms.txt +1 -1
- package/dist/manifest.json +1 -1
- package/dist/presets/extended.cjs +1 -1
- package/dist/presets/extended.js +1 -1
- package/dist/presets-extended.umd.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/runtime/drag-snap.cjs +2 -2
- package/dist/runtime/drag-snap.iife.js +1 -1
- package/dist/runtime/drag-snap.js +2 -2
- package/dist/runtime/format-apng.cjs +3 -3
- package/dist/runtime/format-apng.iife.js +1 -1
- package/dist/runtime/format-apng.js +3 -3
- package/dist/runtime/format-css.cjs +3 -3
- package/dist/runtime/format-css.iife.js +1 -1
- package/dist/runtime/format-css.js +3 -3
- package/dist/runtime/format-gif.cjs +3 -3
- package/dist/runtime/format-gif.iife.js +1 -1
- package/dist/runtime/format-gif.js +3 -3
- package/dist/runtime/format-gltf.cjs +2 -2
- package/dist/runtime/format-gltf.iife.js +1 -1
- package/dist/runtime/format-gltf.js +2 -2
- package/dist/runtime/format-motion.cjs +4 -4
- package/dist/runtime/format-motion.iife.js +1 -1
- package/dist/runtime/format-motion.js +4 -4
- package/dist/runtime/format-obj.cjs +2 -2
- package/dist/runtime/format-obj.iife.js +1 -1
- package/dist/runtime/format-obj.js +2 -2
- package/dist/runtime/format-scene.cjs +2 -2
- package/dist/runtime/format-scene.iife.js +1 -1
- package/dist/runtime/format-scene.js +2 -2
- package/dist/runtime/format-sprite.cjs +3 -3
- package/dist/runtime/format-sprite.iife.js +1 -1
- package/dist/runtime/format-sprite.js +3 -3
- package/dist/runtime/format-svg.cjs +3 -3
- package/dist/runtime/format-svg.iife.js +1 -1
- package/dist/runtime/format-svg.js +3 -3
- package/dist/runtime/format-webp.cjs +3 -3
- package/dist/runtime/format-webp.iife.js +1 -1
- package/dist/runtime/format-webp.js +3 -3
- package/dist/runtime/gl.cjs +2 -2
- package/dist/runtime/gl.iife.js +1 -1
- package/dist/runtime/gl.js +2 -2
- package/dist/runtime/gltf-anim.cjs +2 -2
- package/dist/runtime/gltf-anim.iife.js +1 -1
- package/dist/runtime/gltf-anim.js +2 -2
- package/dist/runtime/gltf-decoders.cjs +2 -2
- package/dist/runtime/gltf-decoders.iife.js +1 -1
- package/dist/runtime/gltf-decoders.js +2 -2
- package/dist/runtime/lottie-state.cjs +2 -2
- package/dist/runtime/lottie-state.iife.js +1 -1
- package/dist/runtime/lottie-state.js +2 -2
- package/dist/runtime/physics.cjs +2 -2
- package/dist/runtime/physics.iife.js +1 -1
- package/dist/runtime/physics.js +2 -2
- package/dist/runtime/scroll.cjs +3 -3
- package/dist/runtime/scroll.iife.js +1 -1
- package/dist/runtime/scroll.js +3 -3
- package/dist/runtime/smooth.cjs +2 -2
- package/dist/runtime/smooth.iife.js +1 -1
- package/dist/runtime/smooth.js +2 -2
- package/dist/runtime/text.cjs +2 -2
- package/dist/runtime/text.iife.js +1 -1
- package/dist/runtime/text.js +2 -2
- package/dist/runtime/vector.cjs +3 -3
- package/dist/runtime/vector.iife.js +1 -1
- package/dist/runtime/vector.js +3 -3
- package/dist/runtime.cjs +4 -4
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +2 -2
- package/dist/runtime.js +6 -6
- package/dist/solid.cjs +1 -1
- package/dist/solid.js +1 -1
- package/dist/svelte.cjs +1 -1
- package/dist/svelte.js +1 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +1 -1
- package/dist/widgets/add-to-cart.cjs +1 -1
- package/dist/widgets/add-to-cart.js +1 -1
- package/dist/widgets/badge-wall.cjs +1 -1
- package/dist/widgets/badge-wall.js +1 -1
- package/dist/widgets/bar-chart.cjs +1 -1
- package/dist/widgets/bar-chart.js +1 -1
- package/dist/widgets/bg-generator.cjs +1 -1
- package/dist/widgets/bg-generator.js +1 -1
- package/dist/widgets/carousel.cjs +1 -1
- package/dist/widgets/carousel.js +1 -1
- package/dist/widgets/cart-drawer.cjs +1 -1
- package/dist/widgets/cart-drawer.js +1 -1
- package/dist/widgets/chapter-nav.cjs +1 -1
- package/dist/widgets/chapter-nav.js +1 -1
- package/dist/widgets/chat-composer.cjs +1 -1
- package/dist/widgets/chat-composer.js +1 -1
- package/dist/widgets/clock-control.cjs +1 -1
- package/dist/widgets/clock-control.js +1 -1
- package/dist/widgets/code-export.cjs +1 -1
- package/dist/widgets/code-export.js +1 -1
- package/dist/widgets/color-picker.cjs +1 -1
- package/dist/widgets/color-picker.js +1 -1
- package/dist/widgets/command-palette.cjs +1 -1
- package/dist/widgets/command-palette.js +1 -1
- package/dist/widgets/compare.cjs +1 -1
- package/dist/widgets/compare.js +1 -1
- package/dist/widgets/countdown.cjs +1 -1
- package/dist/widgets/countdown.js +1 -1
- package/dist/widgets/cube-gallery.cjs +1 -1
- package/dist/widgets/cube-gallery.js +1 -1
- package/dist/widgets/date-picker.cjs +1 -1
- package/dist/widgets/date-picker.js +1 -1
- package/dist/widgets/disclosure.cjs +1 -1
- package/dist/widgets/disclosure.js +1 -1
- package/dist/widgets/dock.cjs +1 -1
- package/dist/widgets/dock.js +1 -1
- package/dist/widgets/dotlottie.cjs +1 -1
- package/dist/widgets/dotlottie.js +1 -1
- package/dist/widgets/equalizer.cjs +1 -1
- package/dist/widgets/equalizer.js +1 -1
- package/dist/widgets/festival-banner.cjs +1 -1
- package/dist/widgets/festival-banner.js +1 -1
- package/dist/widgets/field.cjs +1 -1
- package/dist/widgets/field.js +1 -1
- package/dist/widgets/file-drop.cjs +1 -1
- package/dist/widgets/file-drop.js +1 -1
- package/dist/widgets/gauge.cjs +1 -1
- package/dist/widgets/gauge.js +1 -1
- package/dist/widgets/gen-art.cjs +1 -1
- package/dist/widgets/gen-art.js +1 -1
- package/dist/widgets/gesture-sticker.cjs +1 -1
- package/dist/widgets/gesture-sticker.js +1 -1
- package/dist/widgets/gl-model.cjs +1 -1
- package/dist/widgets/gl-model.js +1 -1
- package/dist/widgets/gl-scene.cjs +2 -2
- package/dist/widgets/gl-scene.js +2 -2
- package/dist/widgets/globe.cjs +1 -1
- package/dist/widgets/globe.js +1 -1
- package/dist/widgets/gpu-particles.cjs +1 -1
- package/dist/widgets/gpu-particles.js +1 -1
- package/dist/widgets/gyro-card.cjs +1 -1
- package/dist/widgets/gyro-card.js +1 -1
- package/dist/widgets/hero-video.cjs +1 -1
- package/dist/widgets/hero-video.js +1 -1
- package/dist/widgets/hud-panel.cjs +1 -1
- package/dist/widgets/hud-panel.js +1 -1
- package/dist/widgets/hydrate.cjs +1 -1
- package/dist/widgets/hydrate.js +1 -1
- package/dist/widgets/install-button.cjs +1 -1
- package/dist/widgets/install-button.js +1 -1
- package/dist/widgets/kanban.cjs +1 -1
- package/dist/widgets/kanban.js +1 -1
- package/dist/widgets/keyframe-editor.cjs +1 -1
- package/dist/widgets/keyframe-editor.js +1 -1
- package/dist/widgets/kpi.cjs +1 -1
- package/dist/widgets/kpi.js +1 -1
- package/dist/widgets/leaderboard.cjs +1 -1
- package/dist/widgets/leaderboard.js +1 -1
- package/dist/widgets/liquid-nav.cjs +1 -1
- package/dist/widgets/liquid-nav.js +1 -1
- package/dist/widgets/location-card.cjs +1 -1
- package/dist/widgets/location-card.js +1 -1
- package/dist/widgets/lottie-icon.cjs +1 -1
- package/dist/widgets/lottie-icon.js +1 -1
- package/dist/widgets/lottie-player.cjs +2 -2
- package/dist/widgets/lottie-player.js +2 -2
- package/dist/widgets/lottie.cjs +1 -1
- package/dist/widgets/lottie.js +1 -1
- package/dist/widgets/lyrics.cjs +1 -1
- package/dist/widgets/lyrics.js +1 -1
- package/dist/widgets/masonry-flow.cjs +1 -1
- package/dist/widgets/masonry-flow.js +1 -1
- package/dist/widgets/menu-toggle.cjs +1 -1
- package/dist/widgets/menu-toggle.js +1 -1
- package/dist/widgets/menu.cjs +1 -1
- package/dist/widgets/menu.js +1 -1
- package/dist/widgets/message-list.cjs +1 -1
- package/dist/widgets/message-list.js +1 -1
- package/dist/widgets/milestones.cjs +1 -1
- package/dist/widgets/milestones.js +1 -1
- package/dist/widgets/modal.cjs +1 -1
- package/dist/widgets/modal.js +1 -1
- package/dist/widgets/motion-inspector.cjs +2 -2
- package/dist/widgets/motion-inspector.js +2 -2
- package/dist/widgets/motion-prefs.cjs +1 -1
- package/dist/widgets/motion-prefs.js +1 -1
- package/dist/widgets/motion-prompt.cjs +1 -1
- package/dist/widgets/motion-prompt.js +1 -1
- package/dist/widgets/motion-spec.cjs +1 -1
- package/dist/widgets/motion-spec.js +1 -1
- package/dist/widgets/motion.cjs +1 -1
- package/dist/widgets/motion.js +1 -1
- package/dist/widgets/music-player.cjs +1 -1
- package/dist/widgets/music-player.js +1 -1
- package/dist/widgets/native-preview.cjs +1 -1
- package/dist/widgets/native-preview.js +1 -1
- package/dist/widgets/nav-morph.cjs +1 -1
- package/dist/widgets/nav-morph.js +1 -1
- package/dist/widgets/notification-bell.cjs +1 -1
- package/dist/widgets/notification-bell.js +1 -1
- package/dist/widgets/odometer.cjs +1 -1
- package/dist/widgets/odometer.js +1 -1
- package/dist/widgets/organic-card.cjs +1 -1
- package/dist/widgets/organic-card.js +1 -1
- package/dist/widgets/otp.cjs +1 -1
- package/dist/widgets/otp.js +1 -1
- package/dist/widgets/pagination.cjs +1 -1
- package/dist/widgets/pagination.js +1 -1
- package/dist/widgets/panorama.cjs +1 -1
- package/dist/widgets/panorama.js +1 -1
- package/dist/widgets/parallax-layers.cjs +1 -1
- package/dist/widgets/parallax-layers.js +1 -1
- package/dist/widgets/pause-all.cjs +1 -1
- package/dist/widgets/pause-all.js +1 -1
- package/dist/widgets/perf-monitor.cjs +1 -1
- package/dist/widgets/perf-monitor.js +1 -1
- package/dist/widgets/physics-playground.cjs +2 -2
- package/dist/widgets/physics-playground.js +2 -2
- package/dist/widgets/plugin-card.cjs +3 -3
- package/dist/widgets/plugin-card.js +3 -3
- package/dist/widgets/plugin-store.cjs +1 -1
- package/dist/widgets/plugin-store.js +1 -1
- package/dist/widgets/presence.cjs +1 -1
- package/dist/widgets/presence.js +1 -1
- package/dist/widgets/prize-wheel.cjs +1 -1
- package/dist/widgets/prize-wheel.js +1 -1
- package/dist/widgets/product-gallery.cjs +1 -1
- package/dist/widgets/product-gallery.js +1 -1
- package/dist/widgets/progress-ring.cjs +1 -1
- package/dist/widgets/progress-ring.js +1 -1
- package/dist/widgets/prop-panel.cjs +1 -1
- package/dist/widgets/prop-panel.js +1 -1
- package/dist/widgets/pull-cord.cjs +1 -1
- package/dist/widgets/pull-cord.js +1 -1
- package/dist/widgets/radar.cjs +1 -1
- package/dist/widgets/radar.js +1 -1
- package/dist/widgets/reactions.cjs +1 -1
- package/dist/widgets/reactions.js +1 -1
- package/dist/widgets/red-envelope.cjs +1 -1
- package/dist/widgets/red-envelope.js +1 -1
- package/dist/widgets/retro-button.cjs +1 -1
- package/dist/widgets/retro-button.js +1 -1
- package/dist/widgets/rive.cjs +1 -1
- package/dist/widgets/rive.js +1 -1
- package/dist/widgets/route-transition.cjs +1 -1
- package/dist/widgets/route-transition.js +1 -1
- package/dist/widgets/scene.cjs +1 -1
- package/dist/widgets/scene.js +1 -1
- package/dist/widgets/scroll-ring.cjs +1 -1
- package/dist/widgets/scroll-ring.js +1 -1
- package/dist/widgets/scroll-scene.cjs +2 -2
- package/dist/widgets/scroll-scene.js +2 -2
- package/dist/widgets/segmented.cjs +1 -1
- package/dist/widgets/segmented.js +1 -1
- package/dist/widgets/shader-backdrop.cjs +1 -1
- package/dist/widgets/shader-backdrop.js +1 -1
- package/dist/widgets/sheet.cjs +1 -1
- package/dist/widgets/sheet.js +1 -1
- package/dist/widgets/shortcut.cjs +1 -1
- package/dist/widgets/shortcut.js +1 -1
- package/dist/widgets/skeleton-reveal.cjs +1 -1
- package/dist/widgets/skeleton-reveal.js +1 -1
- package/dist/widgets/sketch-chart.cjs +1 -1
- package/dist/widgets/sketch-chart.js +1 -1
- package/dist/widgets/smooth-scroll.cjs +2 -2
- package/dist/widgets/smooth-scroll.js +2 -2
- package/dist/widgets/snap-carousel.cjs +1 -1
- package/dist/widgets/snap-carousel.js +1 -1
- package/dist/widgets/sparkline.cjs +1 -1
- package/dist/widgets/sparkline.js +1 -1
- package/dist/widgets/spatial-card.cjs +1 -1
- package/dist/widgets/spatial-card.js +1 -1
- package/dist/widgets/star-rating.cjs +1 -1
- package/dist/widgets/star-rating.js +1 -1
- package/dist/widgets/stepper.cjs +1 -1
- package/dist/widgets/stepper.js +1 -1
- package/dist/widgets/sticky-wall.cjs +1 -1
- package/dist/widgets/sticky-wall.js +1 -1
- package/dist/widgets/stories.cjs +1 -1
- package/dist/widgets/stories.js +1 -1
- package/dist/widgets/suggestion-chips.cjs +1 -1
- package/dist/widgets/suggestion-chips.js +1 -1
- package/dist/widgets/swipe-deck.cjs +1 -1
- package/dist/widgets/swipe-deck.js +1 -1
- package/dist/widgets/switch.cjs +1 -1
- package/dist/widgets/switch.js +1 -1
- package/dist/widgets/tab-bar.cjs +1 -1
- package/dist/widgets/tab-bar.js +1 -1
- package/dist/widgets/terminal.cjs +1 -1
- package/dist/widgets/terminal.js +1 -1
- package/dist/widgets/text-splitter.cjs +3 -3
- package/dist/widgets/text-splitter.js +3 -3
- package/dist/widgets/theme-surface.cjs +1 -1
- package/dist/widgets/theme-surface.js +1 -1
- package/dist/widgets/theme-switcher.cjs +1 -1
- package/dist/widgets/theme-switcher.js +1 -1
- package/dist/widgets/tip.cjs +1 -1
- package/dist/widgets/tip.js +1 -1
- package/dist/widgets/toast-stack.cjs +1 -1
- package/dist/widgets/toast-stack.js +1 -1
- package/dist/widgets/token-editor.cjs +1 -1
- package/dist/widgets/token-editor.js +1 -1
- package/dist/widgets/upload-progress.cjs +1 -1
- package/dist/widgets/upload-progress.js +1 -1
- package/dist/widgets/video-card.cjs +1 -1
- package/dist/widgets/video-card.js +1 -1
- package/dist/widgets/voice-button.cjs +1 -1
- package/dist/widgets/voice-button.js +1 -1
- package/dist/widgets/volume-knob.cjs +1 -1
- package/dist/widgets/volume-knob.js +1 -1
- package/dist/widgets/weather-card.cjs +1 -1
- package/dist/widgets/weather-card.js +1 -1
- package/dist/widgets/worker-canvas.cjs +1 -1
- package/dist/widgets/worker-canvas.js +1 -1
- package/dist/widgets/xp-bar.cjs +1 -1
- package/dist/widgets/xp-bar.js +1 -1
- package/dist/widgets.umd.js +2 -2
- package/docs/ai-provider.md +2 -0
- package/docs/cdn-sri.md +43 -0
- package/docs/cross-platform.md +2 -0
- package/docs/deprecations-v17.md +40 -0
- package/docs/mcp.md +2 -0
- package/docs/migrating-to-v17.md +23 -0
- package/docs/source-maps.md +4 -2
- package/docs/stability.md +41 -0
- package/docs/studio-ai.md +2 -0
- package/docs/studio-app.md +2 -0
- package/docs/studio-assets.md +2 -0
- package/docs/studio-budget.md +39 -0
- package/docs/studio-canvas.md +2 -0
- package/docs/studio-export.md +2 -0
- package/docs/studio-native.md +2 -0
- package/docs/studio-plugins.md +2 -0
- package/docs/studio-provenance.md +2 -0
- package/docs/studio-store.md +2 -0
- package/docs/studio-templates.md +2 -0
- package/docs/studio.md +2 -0
- package/docs/supply-chain.md +21 -0
- package/docs/timeline-editor.md +2 -0
- package/docs/versions.md +7 -1
- package/package.json +43 -18
- package/docs/audit-10.9.md +0 -53
- package/docs/upgrading-3.md +0 -21
- package/docs/upgrading-4.md +0 -65
- package/docs/upgrading-5.md +0 -31
- package/docs/upgrading-6.md +0 -32
- package/docs/upgrading-7.md +0 -43
- package/docs/upgrading-8.md +0 -37
- package/docs/upgrading-9.md +0 -37
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var components_studioExport = require('./studio-export.cjs');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 16.3: performance budget in Studio. While you edit, measure what the export will cost — the bytes of the 14.7
|
|
7
|
+
* standalone export (raw, and gzip where `CompressionStream` exists) and a frame cost from the baked tracks (each
|
|
8
|
+
* property changing in a frame adds its class cost: composite 1, paint 4, layout 10) — check it against your limits,
|
|
9
|
+
* block "publish export" when it is over budget (the publish callback is never called), and show a small live meter.
|
|
10
|
+
* Opt-in entry `motionary/studio/budget` (= `motionary/components/studio-budget`); not in lite or studio.
|
|
11
|
+
*/
|
|
12
|
+
const PROP_COST = { composite: 1, paint: 4, layout: 10 };
|
|
13
|
+
const COMPOSITE = /^(opacity|transform|translate|rotate|scale)$/;
|
|
14
|
+
const LAYOUT = /^((min-|max-)?(width|height)|top|left|right|bottom|inset(-.+)?|(margin|padding)(-.+)?|font-size|line-height|(letter|word)-spacing|border(-(top|right|bottom|left))?-width|flex(-basis|-grow|-shrink)?|(row-|column-)?gap|grid-template-(rows|columns))$/;
|
|
15
|
+
const kebab = (p) => (p.startsWith('--') ? p : p.replace(/[A-Z]/g, (c) => '-' + c.toLowerCase()));
|
|
16
|
+
const r2 = (n) => Math.round(n * 100) / 100;
|
|
17
|
+
const utf8 = (v) => (typeof v === 'string' ? new TextEncoder().encode(v) : v);
|
|
18
|
+
/** Rendering class of a CSS property (camelCase or kebab-case); unknown and custom properties count as paint. */
|
|
19
|
+
function propClass(prop) {
|
|
20
|
+
const p = kebab(prop);
|
|
21
|
+
return COMPOSITE.test(p) ? 'composite' : LAYOUT.test(p) ? 'layout' : 'paint';
|
|
22
|
+
}
|
|
23
|
+
/** Cost of every frame at `fps` (default 60): the sum of the costs of the properties whose value changes in it. */
|
|
24
|
+
function frameCost(input, o = {}) {
|
|
25
|
+
const b = components_studioExport.bakeScene(input, o);
|
|
26
|
+
const dt = 1000 / b.fps, frames = Math.max(1, Math.ceil((b.duration * b.fps) / 1000 - 1e-9));
|
|
27
|
+
const layout = [], paint = [];
|
|
28
|
+
const segs = []; // [from, to, cost] of every changing segment
|
|
29
|
+
for (const t of b.tracks)
|
|
30
|
+
for (const p of Object.keys(t.props)) {
|
|
31
|
+
const pts = t.props[p], cls = propClass(p);
|
|
32
|
+
let moved = false;
|
|
33
|
+
for (let k = 0; k + 1 < pts.length; k++)
|
|
34
|
+
if (JSON.stringify(pts[k][1]) !== JSON.stringify(pts[k + 1][1])) {
|
|
35
|
+
segs.push([pts[k][0], pts[k + 1][0], PROP_COST[cls]]);
|
|
36
|
+
moved = true;
|
|
37
|
+
}
|
|
38
|
+
const name = `${t.target} ${p}`;
|
|
39
|
+
if (moved && cls !== 'composite')
|
|
40
|
+
(cls === 'layout' ? layout : paint).push(name);
|
|
41
|
+
}
|
|
42
|
+
let peak = 0, peakAt = 0;
|
|
43
|
+
for (let i = 0; i < frames; i++) {
|
|
44
|
+
const a = i * dt, z = a + dt;
|
|
45
|
+
let c = 0;
|
|
46
|
+
for (const s of segs)
|
|
47
|
+
if (s[0] < z && s[1] > a)
|
|
48
|
+
c += s[2];
|
|
49
|
+
if (c > peak) {
|
|
50
|
+
peak = c;
|
|
51
|
+
peakAt = r2(a);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return { peak, peakAt, frames, layout: [...new Set(layout)], paint: [...new Set(paint)] };
|
|
55
|
+
}
|
|
56
|
+
async function gzipSize(bytes) {
|
|
57
|
+
const r = new ReadableStream({ start(c) { c.enqueue(bytes); c.close(); } }).pipeThrough(new CompressionStream('gzip')).getReader();
|
|
58
|
+
let n = 0;
|
|
59
|
+
for (let x = await r.read(); !x.done; x = await r.read())
|
|
60
|
+
n += x.value.byteLength;
|
|
61
|
+
return n;
|
|
62
|
+
}
|
|
63
|
+
async function run(input, o) {
|
|
64
|
+
const { files } = components_studioExport.exportStandalone(input, o);
|
|
65
|
+
const sizes = {};
|
|
66
|
+
let bytes = 0, gz = typeof CompressionStream === 'function' && typeof ReadableStream === 'function' ? 0 : null;
|
|
67
|
+
for (const k of [...files.keys()].sort()) {
|
|
68
|
+
const u = utf8(files.get(k));
|
|
69
|
+
sizes[k] = u.length;
|
|
70
|
+
bytes += u.length;
|
|
71
|
+
if (gz !== null)
|
|
72
|
+
gz += await gzipSize(u);
|
|
73
|
+
}
|
|
74
|
+
return { files, measure: { bytes, gzipBytes: gz, files: sizes, cost: frameCost(input, o) } };
|
|
75
|
+
}
|
|
76
|
+
/** Measure the standalone export of a project (same options as `exportStandalone`). Deterministic. */
|
|
77
|
+
async function measureExport(input, o = {}) {
|
|
78
|
+
return (await run(input, o)).measure;
|
|
79
|
+
}
|
|
80
|
+
/** Every metric over its limit (order: kb, gzipKb, frameCost, layout). */
|
|
81
|
+
function checkBudget(m, l) {
|
|
82
|
+
const over = [];
|
|
83
|
+
const kb = r2(m.bytes / 1024);
|
|
84
|
+
if (l.kb !== undefined && kb > l.kb)
|
|
85
|
+
over.push({ metric: 'kb', value: kb, limit: l.kb });
|
|
86
|
+
if (l.gzipKb !== undefined && m.gzipBytes !== null && r2(m.gzipBytes / 1024) > l.gzipKb)
|
|
87
|
+
over.push({ metric: 'gzipKb', value: r2(m.gzipBytes / 1024), limit: l.gzipKb });
|
|
88
|
+
if (l.frameCost !== undefined && m.cost.peak > l.frameCost)
|
|
89
|
+
over.push({ metric: 'frameCost', value: m.cost.peak, limit: l.frameCost });
|
|
90
|
+
if (l.layout === false && m.cost.layout.length)
|
|
91
|
+
over.push({ metric: 'layout', value: m.cost.layout.length, limit: 0 });
|
|
92
|
+
return { ok: !over.length, over };
|
|
93
|
+
}
|
|
94
|
+
/** "Publish export" with a budget: over budget → `{ ok: false, over }` and `publish` is not called. */
|
|
95
|
+
async function guardPublish(input, limits, publish, o = {}) {
|
|
96
|
+
const { files, measure } = await run(input, o);
|
|
97
|
+
const c = checkBudget(measure, limits);
|
|
98
|
+
return c.ok ? { ok: true, value: await publish(files, measure), measure } : { ok: false, over: c.over, measure };
|
|
99
|
+
}
|
|
100
|
+
/** A live meter (`role="status"`, polite): "12.3 KB / 20 KB · gzip 4.1 KB · cost 14 / 30"; `data-over` names the first metric over. */
|
|
101
|
+
function createBudgetMeter(el, limits) {
|
|
102
|
+
el.setAttribute('role', 'status');
|
|
103
|
+
el.setAttribute('aria-live', 'polite');
|
|
104
|
+
return {
|
|
105
|
+
update(m) {
|
|
106
|
+
const c = checkBudget(m, limits);
|
|
107
|
+
const lim = (v, u = '') => (v !== undefined ? ` / ${v}${u}` : '');
|
|
108
|
+
el.textContent = `${r2(m.bytes / 1024)} KB${lim(limits.kb, ' KB')}${m.gzipBytes !== null ? ` · gzip ${r2(m.gzipBytes / 1024)} KB` : ''} · cost ${m.cost.peak}${lim(limits.frameCost)}`;
|
|
109
|
+
c.ok ? el.removeAttribute('data-over') : el.setAttribute('data-over', c.over[0].metric);
|
|
110
|
+
return c;
|
|
111
|
+
},
|
|
112
|
+
destroy() {
|
|
113
|
+
el.textContent = '';
|
|
114
|
+
for (const a of ['role', 'aria-live', 'data-over'])
|
|
115
|
+
el.removeAttribute(a);
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
exports.PROP_COST = PROP_COST;
|
|
121
|
+
exports.checkBudget = checkBudget;
|
|
122
|
+
exports.createBudgetMeter = createBudgetMeter;
|
|
123
|
+
exports.frameCost = frameCost;
|
|
124
|
+
exports.guardPublish = guardPublish;
|
|
125
|
+
exports.measureExport = measureExport;
|
|
126
|
+
exports.propClass = propClass;
|
|
127
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-budget.cjs.map
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
declare const TIMELINE_DOC_FORMAT = "motionary-timeline";
|
|
2
|
+
type TimelineValue = number | string;
|
|
3
|
+
interface TimelineKeyframe {
|
|
4
|
+
/** Unique within the document. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** ms from the start of the timeline. */
|
|
7
|
+
time: number;
|
|
8
|
+
/** CSS property → value (`opacity: 0`, `transform: 'translateX(20px)'`, `--x: 4`). */
|
|
9
|
+
props: Record<string, TimelineValue>;
|
|
10
|
+
/** Easing of the segment from this keyframe to the next (CSS easing / named ease). Default `linear`. */
|
|
11
|
+
easing?: string;
|
|
12
|
+
}
|
|
13
|
+
interface TimelineLayer {
|
|
14
|
+
id: string;
|
|
15
|
+
type: 'track' | 'group';
|
|
16
|
+
name?: string;
|
|
17
|
+
/** Id of the group this layer belongs to. */
|
|
18
|
+
parent?: string;
|
|
19
|
+
/** Locked layers (or layers in a locked group) are not changed by editing operations. */
|
|
20
|
+
locked?: boolean;
|
|
21
|
+
/** Muted layers (or layers in a muted group) are left out of the preview and exports. */
|
|
22
|
+
muted?: boolean;
|
|
23
|
+
/** When any layer is solo, only solo layers (and their children) play. */
|
|
24
|
+
solo?: boolean;
|
|
25
|
+
/** Tracks: selector inside the preview root (`:scope` = the root). */
|
|
26
|
+
target?: string;
|
|
27
|
+
/** Tracks: keyframes, kept sorted by time. */
|
|
28
|
+
keyframes?: TimelineKeyframe[];
|
|
29
|
+
}
|
|
30
|
+
interface TimelineDoc {
|
|
31
|
+
format: typeof TIMELINE_DOC_FORMAT;
|
|
32
|
+
version: 1;
|
|
33
|
+
name?: string;
|
|
34
|
+
/** Total length in ms (default: the last keyframe). */
|
|
35
|
+
duration?: number;
|
|
36
|
+
/** Seed for `random(a, b)` values (default 1). */
|
|
37
|
+
seed?: number;
|
|
38
|
+
/** Layers, top to bottom; a group's children follow it. */
|
|
39
|
+
layers: TimelineLayer[];
|
|
40
|
+
/** Anything JSON — kept verbatim through parse / serialize. */
|
|
41
|
+
meta?: unknown;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 14.5 project & asset workflow (`motionary/studio/assets`): image, SVG, font, video and audio references in a Studio
|
|
46
|
+
* project, relative path resolution confined to the project directory, an offline project pack (one JSON file holding
|
|
47
|
+
* the project and every referenced local asset) and missing-asset reports / relinking after a project moved to another
|
|
48
|
+
* device. Pure: no DOM, no network, no file system — callers pass bytes and file lists in and get bytes and reports out.
|
|
49
|
+
* Nothing is ever executed: script-like files (`.js`, `.html`, `.wasm`, …) are reported and never packed, unpacked
|
|
50
|
+
* or suggested.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
type AssetFiles = Record<string, Uint8Array> | Map<string, Uint8Array>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 14.7 output & preview reliability — `motionary/studio/export` (= `motionary/components/studio-export`).
|
|
57
|
+
*
|
|
58
|
+
* - `bakeScene` turns a Studio project / Scene v2 / timeline document into per-property points: linear segments the
|
|
59
|
+
* browser interpolates exactly like the preview keep only their end points, every other segment (eased, discrete,
|
|
60
|
+
* custom properties) is sampled at each frame with `sampleTimelineDoc`, so the value at every frame time is the
|
|
61
|
+
* reference value. `random()` is resolved by seed.
|
|
62
|
+
* - `exportStandalone` writes a work that plays without the editor and without a network: `index.html`, `scene.css`
|
|
63
|
+
* (CSS `@keyframes`, works with scripts off), `scene.js` (a small player, optional) and `assets/` (or one inline
|
|
64
|
+
* HTML file). Deterministic to the byte. Values, selectors, titles and stage markup are checked so nothing can
|
|
65
|
+
* leave its CSS declaration or HTML element; unsafe asset paths become `about:invalid`.
|
|
66
|
+
* - `frameDigest` fingerprints "the same animation" (every frame at a frame rate).
|
|
67
|
+
* - `createFrameExportJob` feeds frames to an adapter (the seam for GIF / video encoders) and can fail, keep a
|
|
68
|
+
* checkpoint and resume — fully independent of the basic export.
|
|
69
|
+
*
|
|
70
|
+
* Pure: the exporter reads no DOM, opens no network and evaluates nothing. The player is a string.
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
type ExportInput = string | TimelineDoc | Record<string, unknown> | {
|
|
74
|
+
pack: string;
|
|
75
|
+
};
|
|
76
|
+
interface ExportOptions {
|
|
77
|
+
fps?: number;
|
|
78
|
+
/** Project-relative path → bytes (the 14.5 asset files). A pack input brings its own. */
|
|
79
|
+
assets?: AssetFiles;
|
|
80
|
+
/** One HTML file: CSS, data and player inline, local assets as data: URIs. */
|
|
81
|
+
inline?: boolean;
|
|
82
|
+
/** Include the player (default true). `false` = CSS only, no script. */
|
|
83
|
+
js?: boolean;
|
|
84
|
+
title?: string;
|
|
85
|
+
lang?: string;
|
|
86
|
+
loop?: boolean;
|
|
87
|
+
/** Your stage markup (what the tracks target). Scripts, frames, inline handlers and javascript: URLs are removed. Default: one element per simple `#id` / `.class` / tag target. */
|
|
88
|
+
stage?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 16.3: performance budget in Studio. While you edit, measure what the export will cost — the bytes of the 14.7
|
|
93
|
+
* standalone export (raw, and gzip where `CompressionStream` exists) and a frame cost from the baked tracks (each
|
|
94
|
+
* property changing in a frame adds its class cost: composite 1, paint 4, layout 10) — check it against your limits,
|
|
95
|
+
* block "publish export" when it is over budget (the publish callback is never called), and show a small live meter.
|
|
96
|
+
* Opt-in entry `motionary/studio/budget` (= `motionary/components/studio-budget`); not in lite or studio.
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
type PropClass = 'composite' | 'paint' | 'layout';
|
|
100
|
+
declare const PROP_COST: Record<PropClass, number>;
|
|
101
|
+
interface FrameCost {
|
|
102
|
+
/** Highest frame cost, the start time (ms) of its first frame, and how many frames were checked. */
|
|
103
|
+
peak: number;
|
|
104
|
+
peakAt: number;
|
|
105
|
+
frames: number;
|
|
106
|
+
/** `target property` pairs that animate layout / paint properties (in document order). */
|
|
107
|
+
layout: string[];
|
|
108
|
+
paint: string[];
|
|
109
|
+
}
|
|
110
|
+
interface BudgetMeasure {
|
|
111
|
+
bytes: number;
|
|
112
|
+
gzipBytes: number | null;
|
|
113
|
+
files: Record<string, number>;
|
|
114
|
+
cost: FrameCost;
|
|
115
|
+
}
|
|
116
|
+
interface BudgetLimits {
|
|
117
|
+
/** Raw export size limit in KB (1024 bytes). */
|
|
118
|
+
kb?: number;
|
|
119
|
+
/** Gzip size limit in KB, checked only where gzip could be measured. */
|
|
120
|
+
gzipKb?: number;
|
|
121
|
+
frameCost?: number;
|
|
122
|
+
/** `false` = no layout property may animate. */
|
|
123
|
+
layout?: boolean;
|
|
124
|
+
}
|
|
125
|
+
interface BudgetOver {
|
|
126
|
+
metric: 'kb' | 'gzipKb' | 'frameCost' | 'layout';
|
|
127
|
+
value: number;
|
|
128
|
+
limit: number;
|
|
129
|
+
}
|
|
130
|
+
interface BudgetCheck {
|
|
131
|
+
ok: boolean;
|
|
132
|
+
over: BudgetOver[];
|
|
133
|
+
}
|
|
134
|
+
interface GuardResult<R> {
|
|
135
|
+
ok: boolean;
|
|
136
|
+
value?: R;
|
|
137
|
+
over?: BudgetOver[];
|
|
138
|
+
measure: BudgetMeasure;
|
|
139
|
+
}
|
|
140
|
+
/** Rendering class of a CSS property (camelCase or kebab-case); unknown and custom properties count as paint. */
|
|
141
|
+
declare function propClass(prop: string): PropClass;
|
|
142
|
+
/** Cost of every frame at `fps` (default 60): the sum of the costs of the properties whose value changes in it. */
|
|
143
|
+
declare function frameCost(input: ExportInput, o?: {
|
|
144
|
+
fps?: number;
|
|
145
|
+
}): FrameCost;
|
|
146
|
+
/** Measure the standalone export of a project (same options as `exportStandalone`). Deterministic. */
|
|
147
|
+
declare function measureExport(input: ExportInput, o?: ExportOptions): Promise<BudgetMeasure>;
|
|
148
|
+
/** Every metric over its limit (order: kb, gzipKb, frameCost, layout). */
|
|
149
|
+
declare function checkBudget(m: BudgetMeasure, l: BudgetLimits): BudgetCheck;
|
|
150
|
+
/** "Publish export" with a budget: over budget → `{ ok: false, over }` and `publish` is not called. */
|
|
151
|
+
declare function guardPublish<R>(input: ExportInput, limits: BudgetLimits, publish: (files: Map<string, string | Uint8Array>, measure: BudgetMeasure) => R | Promise<R>, o?: ExportOptions): Promise<GuardResult<Awaited<R>>>;
|
|
152
|
+
/** A live meter (`role="status"`, polite): "12.3 KB / 20 KB · gzip 4.1 KB · cost 14 / 30"; `data-over` names the first metric over. */
|
|
153
|
+
declare function createBudgetMeter(el: HTMLElement, limits: BudgetLimits): {
|
|
154
|
+
update(m: BudgetMeasure): BudgetCheck;
|
|
155
|
+
destroy(): void;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export { PROP_COST, checkBudget, createBudgetMeter, frameCost, guardPublish, measureExport, propClass };
|
|
159
|
+
export type { BudgetCheck, BudgetLimits, BudgetMeasure, BudgetOver, FrameCost, GuardResult, PropClass };
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
declare const TIMELINE_DOC_FORMAT = "motionary-timeline";
|
|
2
|
+
type TimelineValue = number | string;
|
|
3
|
+
interface TimelineKeyframe {
|
|
4
|
+
/** Unique within the document. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** ms from the start of the timeline. */
|
|
7
|
+
time: number;
|
|
8
|
+
/** CSS property → value (`opacity: 0`, `transform: 'translateX(20px)'`, `--x: 4`). */
|
|
9
|
+
props: Record<string, TimelineValue>;
|
|
10
|
+
/** Easing of the segment from this keyframe to the next (CSS easing / named ease). Default `linear`. */
|
|
11
|
+
easing?: string;
|
|
12
|
+
}
|
|
13
|
+
interface TimelineLayer {
|
|
14
|
+
id: string;
|
|
15
|
+
type: 'track' | 'group';
|
|
16
|
+
name?: string;
|
|
17
|
+
/** Id of the group this layer belongs to. */
|
|
18
|
+
parent?: string;
|
|
19
|
+
/** Locked layers (or layers in a locked group) are not changed by editing operations. */
|
|
20
|
+
locked?: boolean;
|
|
21
|
+
/** Muted layers (or layers in a muted group) are left out of the preview and exports. */
|
|
22
|
+
muted?: boolean;
|
|
23
|
+
/** When any layer is solo, only solo layers (and their children) play. */
|
|
24
|
+
solo?: boolean;
|
|
25
|
+
/** Tracks: selector inside the preview root (`:scope` = the root). */
|
|
26
|
+
target?: string;
|
|
27
|
+
/** Tracks: keyframes, kept sorted by time. */
|
|
28
|
+
keyframes?: TimelineKeyframe[];
|
|
29
|
+
}
|
|
30
|
+
interface TimelineDoc {
|
|
31
|
+
format: typeof TIMELINE_DOC_FORMAT;
|
|
32
|
+
version: 1;
|
|
33
|
+
name?: string;
|
|
34
|
+
/** Total length in ms (default: the last keyframe). */
|
|
35
|
+
duration?: number;
|
|
36
|
+
/** Seed for `random(a, b)` values (default 1). */
|
|
37
|
+
seed?: number;
|
|
38
|
+
/** Layers, top to bottom; a group's children follow it. */
|
|
39
|
+
layers: TimelineLayer[];
|
|
40
|
+
/** Anything JSON — kept verbatim through parse / serialize. */
|
|
41
|
+
meta?: unknown;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 14.5 project & asset workflow (`motionary/studio/assets`): image, SVG, font, video and audio references in a Studio
|
|
46
|
+
* project, relative path resolution confined to the project directory, an offline project pack (one JSON file holding
|
|
47
|
+
* the project and every referenced local asset) and missing-asset reports / relinking after a project moved to another
|
|
48
|
+
* device. Pure: no DOM, no network, no file system — callers pass bytes and file lists in and get bytes and reports out.
|
|
49
|
+
* Nothing is ever executed: script-like files (`.js`, `.html`, `.wasm`, …) are reported and never packed, unpacked
|
|
50
|
+
* or suggested.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
type AssetFiles = Record<string, Uint8Array> | Map<string, Uint8Array>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 14.7 output & preview reliability — `motionary/studio/export` (= `motionary/components/studio-export`).
|
|
57
|
+
*
|
|
58
|
+
* - `bakeScene` turns a Studio project / Scene v2 / timeline document into per-property points: linear segments the
|
|
59
|
+
* browser interpolates exactly like the preview keep only their end points, every other segment (eased, discrete,
|
|
60
|
+
* custom properties) is sampled at each frame with `sampleTimelineDoc`, so the value at every frame time is the
|
|
61
|
+
* reference value. `random()` is resolved by seed.
|
|
62
|
+
* - `exportStandalone` writes a work that plays without the editor and without a network: `index.html`, `scene.css`
|
|
63
|
+
* (CSS `@keyframes`, works with scripts off), `scene.js` (a small player, optional) and `assets/` (or one inline
|
|
64
|
+
* HTML file). Deterministic to the byte. Values, selectors, titles and stage markup are checked so nothing can
|
|
65
|
+
* leave its CSS declaration or HTML element; unsafe asset paths become `about:invalid`.
|
|
66
|
+
* - `frameDigest` fingerprints "the same animation" (every frame at a frame rate).
|
|
67
|
+
* - `createFrameExportJob` feeds frames to an adapter (the seam for GIF / video encoders) and can fail, keep a
|
|
68
|
+
* checkpoint and resume — fully independent of the basic export.
|
|
69
|
+
*
|
|
70
|
+
* Pure: the exporter reads no DOM, opens no network and evaluates nothing. The player is a string.
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
type ExportInput = string | TimelineDoc | Record<string, unknown> | {
|
|
74
|
+
pack: string;
|
|
75
|
+
};
|
|
76
|
+
interface ExportOptions {
|
|
77
|
+
fps?: number;
|
|
78
|
+
/** Project-relative path → bytes (the 14.5 asset files). A pack input brings its own. */
|
|
79
|
+
assets?: AssetFiles;
|
|
80
|
+
/** One HTML file: CSS, data and player inline, local assets as data: URIs. */
|
|
81
|
+
inline?: boolean;
|
|
82
|
+
/** Include the player (default true). `false` = CSS only, no script. */
|
|
83
|
+
js?: boolean;
|
|
84
|
+
title?: string;
|
|
85
|
+
lang?: string;
|
|
86
|
+
loop?: boolean;
|
|
87
|
+
/** Your stage markup (what the tracks target). Scripts, frames, inline handlers and javascript: URLs are removed. Default: one element per simple `#id` / `.class` / tag target. */
|
|
88
|
+
stage?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 16.3: performance budget in Studio. While you edit, measure what the export will cost — the bytes of the 14.7
|
|
93
|
+
* standalone export (raw, and gzip where `CompressionStream` exists) and a frame cost from the baked tracks (each
|
|
94
|
+
* property changing in a frame adds its class cost: composite 1, paint 4, layout 10) — check it against your limits,
|
|
95
|
+
* block "publish export" when it is over budget (the publish callback is never called), and show a small live meter.
|
|
96
|
+
* Opt-in entry `motionary/studio/budget` (= `motionary/components/studio-budget`); not in lite or studio.
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
type PropClass = 'composite' | 'paint' | 'layout';
|
|
100
|
+
declare const PROP_COST: Record<PropClass, number>;
|
|
101
|
+
interface FrameCost {
|
|
102
|
+
/** Highest frame cost, the start time (ms) of its first frame, and how many frames were checked. */
|
|
103
|
+
peak: number;
|
|
104
|
+
peakAt: number;
|
|
105
|
+
frames: number;
|
|
106
|
+
/** `target property` pairs that animate layout / paint properties (in document order). */
|
|
107
|
+
layout: string[];
|
|
108
|
+
paint: string[];
|
|
109
|
+
}
|
|
110
|
+
interface BudgetMeasure {
|
|
111
|
+
bytes: number;
|
|
112
|
+
gzipBytes: number | null;
|
|
113
|
+
files: Record<string, number>;
|
|
114
|
+
cost: FrameCost;
|
|
115
|
+
}
|
|
116
|
+
interface BudgetLimits {
|
|
117
|
+
/** Raw export size limit in KB (1024 bytes). */
|
|
118
|
+
kb?: number;
|
|
119
|
+
/** Gzip size limit in KB, checked only where gzip could be measured. */
|
|
120
|
+
gzipKb?: number;
|
|
121
|
+
frameCost?: number;
|
|
122
|
+
/** `false` = no layout property may animate. */
|
|
123
|
+
layout?: boolean;
|
|
124
|
+
}
|
|
125
|
+
interface BudgetOver {
|
|
126
|
+
metric: 'kb' | 'gzipKb' | 'frameCost' | 'layout';
|
|
127
|
+
value: number;
|
|
128
|
+
limit: number;
|
|
129
|
+
}
|
|
130
|
+
interface BudgetCheck {
|
|
131
|
+
ok: boolean;
|
|
132
|
+
over: BudgetOver[];
|
|
133
|
+
}
|
|
134
|
+
interface GuardResult<R> {
|
|
135
|
+
ok: boolean;
|
|
136
|
+
value?: R;
|
|
137
|
+
over?: BudgetOver[];
|
|
138
|
+
measure: BudgetMeasure;
|
|
139
|
+
}
|
|
140
|
+
/** Rendering class of a CSS property (camelCase or kebab-case); unknown and custom properties count as paint. */
|
|
141
|
+
declare function propClass(prop: string): PropClass;
|
|
142
|
+
/** Cost of every frame at `fps` (default 60): the sum of the costs of the properties whose value changes in it. */
|
|
143
|
+
declare function frameCost(input: ExportInput, o?: {
|
|
144
|
+
fps?: number;
|
|
145
|
+
}): FrameCost;
|
|
146
|
+
/** Measure the standalone export of a project (same options as `exportStandalone`). Deterministic. */
|
|
147
|
+
declare function measureExport(input: ExportInput, o?: ExportOptions): Promise<BudgetMeasure>;
|
|
148
|
+
/** Every metric over its limit (order: kb, gzipKb, frameCost, layout). */
|
|
149
|
+
declare function checkBudget(m: BudgetMeasure, l: BudgetLimits): BudgetCheck;
|
|
150
|
+
/** "Publish export" with a budget: over budget → `{ ok: false, over }` and `publish` is not called. */
|
|
151
|
+
declare function guardPublish<R>(input: ExportInput, limits: BudgetLimits, publish: (files: Map<string, string | Uint8Array>, measure: BudgetMeasure) => R | Promise<R>, o?: ExportOptions): Promise<GuardResult<Awaited<R>>>;
|
|
152
|
+
/** A live meter (`role="status"`, polite): "12.3 KB / 20 KB · gzip 4.1 KB · cost 14 / 30"; `data-over` names the first metric over. */
|
|
153
|
+
declare function createBudgetMeter(el: HTMLElement, limits: BudgetLimits): {
|
|
154
|
+
update(m: BudgetMeasure): BudgetCheck;
|
|
155
|
+
destroy(): void;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export { PROP_COST, checkBudget, createBudgetMeter, frameCost, guardPublish, measureExport, propClass };
|
|
159
|
+
export type { BudgetCheck, BudgetLimits, BudgetMeasure, BudgetOver, FrameCost, GuardResult, PropClass };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { bakeScene, exportStandalone } from './studio-export.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 16.3: performance budget in Studio. While you edit, measure what the export will cost — the bytes of the 14.7
|
|
5
|
+
* standalone export (raw, and gzip where `CompressionStream` exists) and a frame cost from the baked tracks (each
|
|
6
|
+
* property changing in a frame adds its class cost: composite 1, paint 4, layout 10) — check it against your limits,
|
|
7
|
+
* block "publish export" when it is over budget (the publish callback is never called), and show a small live meter.
|
|
8
|
+
* Opt-in entry `motionary/studio/budget` (= `motionary/components/studio-budget`); not in lite or studio.
|
|
9
|
+
*/
|
|
10
|
+
const PROP_COST = { composite: 1, paint: 4, layout: 10 };
|
|
11
|
+
const COMPOSITE = /^(opacity|transform|translate|rotate|scale)$/;
|
|
12
|
+
const LAYOUT = /^((min-|max-)?(width|height)|top|left|right|bottom|inset(-.+)?|(margin|padding)(-.+)?|font-size|line-height|(letter|word)-spacing|border(-(top|right|bottom|left))?-width|flex(-basis|-grow|-shrink)?|(row-|column-)?gap|grid-template-(rows|columns))$/;
|
|
13
|
+
const kebab = (p) => (p.startsWith('--') ? p : p.replace(/[A-Z]/g, (c) => '-' + c.toLowerCase()));
|
|
14
|
+
const r2 = (n) => Math.round(n * 100) / 100;
|
|
15
|
+
const utf8 = (v) => (typeof v === 'string' ? new TextEncoder().encode(v) : v);
|
|
16
|
+
/** Rendering class of a CSS property (camelCase or kebab-case); unknown and custom properties count as paint. */
|
|
17
|
+
function propClass(prop) {
|
|
18
|
+
const p = kebab(prop);
|
|
19
|
+
return COMPOSITE.test(p) ? 'composite' : LAYOUT.test(p) ? 'layout' : 'paint';
|
|
20
|
+
}
|
|
21
|
+
/** Cost of every frame at `fps` (default 60): the sum of the costs of the properties whose value changes in it. */
|
|
22
|
+
function frameCost(input, o = {}) {
|
|
23
|
+
const b = bakeScene(input, o);
|
|
24
|
+
const dt = 1000 / b.fps, frames = Math.max(1, Math.ceil((b.duration * b.fps) / 1000 - 1e-9));
|
|
25
|
+
const layout = [], paint = [];
|
|
26
|
+
const segs = []; // [from, to, cost] of every changing segment
|
|
27
|
+
for (const t of b.tracks)
|
|
28
|
+
for (const p of Object.keys(t.props)) {
|
|
29
|
+
const pts = t.props[p], cls = propClass(p);
|
|
30
|
+
let moved = false;
|
|
31
|
+
for (let k = 0; k + 1 < pts.length; k++)
|
|
32
|
+
if (JSON.stringify(pts[k][1]) !== JSON.stringify(pts[k + 1][1])) {
|
|
33
|
+
segs.push([pts[k][0], pts[k + 1][0], PROP_COST[cls]]);
|
|
34
|
+
moved = true;
|
|
35
|
+
}
|
|
36
|
+
const name = `${t.target} ${p}`;
|
|
37
|
+
if (moved && cls !== 'composite')
|
|
38
|
+
(cls === 'layout' ? layout : paint).push(name);
|
|
39
|
+
}
|
|
40
|
+
let peak = 0, peakAt = 0;
|
|
41
|
+
for (let i = 0; i < frames; i++) {
|
|
42
|
+
const a = i * dt, z = a + dt;
|
|
43
|
+
let c = 0;
|
|
44
|
+
for (const s of segs)
|
|
45
|
+
if (s[0] < z && s[1] > a)
|
|
46
|
+
c += s[2];
|
|
47
|
+
if (c > peak) {
|
|
48
|
+
peak = c;
|
|
49
|
+
peakAt = r2(a);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return { peak, peakAt, frames, layout: [...new Set(layout)], paint: [...new Set(paint)] };
|
|
53
|
+
}
|
|
54
|
+
async function gzipSize(bytes) {
|
|
55
|
+
const r = new ReadableStream({ start(c) { c.enqueue(bytes); c.close(); } }).pipeThrough(new CompressionStream('gzip')).getReader();
|
|
56
|
+
let n = 0;
|
|
57
|
+
for (let x = await r.read(); !x.done; x = await r.read())
|
|
58
|
+
n += x.value.byteLength;
|
|
59
|
+
return n;
|
|
60
|
+
}
|
|
61
|
+
async function run(input, o) {
|
|
62
|
+
const { files } = exportStandalone(input, o);
|
|
63
|
+
const sizes = {};
|
|
64
|
+
let bytes = 0, gz = typeof CompressionStream === 'function' && typeof ReadableStream === 'function' ? 0 : null;
|
|
65
|
+
for (const k of [...files.keys()].sort()) {
|
|
66
|
+
const u = utf8(files.get(k));
|
|
67
|
+
sizes[k] = u.length;
|
|
68
|
+
bytes += u.length;
|
|
69
|
+
if (gz !== null)
|
|
70
|
+
gz += await gzipSize(u);
|
|
71
|
+
}
|
|
72
|
+
return { files, measure: { bytes, gzipBytes: gz, files: sizes, cost: frameCost(input, o) } };
|
|
73
|
+
}
|
|
74
|
+
/** Measure the standalone export of a project (same options as `exportStandalone`). Deterministic. */
|
|
75
|
+
async function measureExport(input, o = {}) {
|
|
76
|
+
return (await run(input, o)).measure;
|
|
77
|
+
}
|
|
78
|
+
/** Every metric over its limit (order: kb, gzipKb, frameCost, layout). */
|
|
79
|
+
function checkBudget(m, l) {
|
|
80
|
+
const over = [];
|
|
81
|
+
const kb = r2(m.bytes / 1024);
|
|
82
|
+
if (l.kb !== undefined && kb > l.kb)
|
|
83
|
+
over.push({ metric: 'kb', value: kb, limit: l.kb });
|
|
84
|
+
if (l.gzipKb !== undefined && m.gzipBytes !== null && r2(m.gzipBytes / 1024) > l.gzipKb)
|
|
85
|
+
over.push({ metric: 'gzipKb', value: r2(m.gzipBytes / 1024), limit: l.gzipKb });
|
|
86
|
+
if (l.frameCost !== undefined && m.cost.peak > l.frameCost)
|
|
87
|
+
over.push({ metric: 'frameCost', value: m.cost.peak, limit: l.frameCost });
|
|
88
|
+
if (l.layout === false && m.cost.layout.length)
|
|
89
|
+
over.push({ metric: 'layout', value: m.cost.layout.length, limit: 0 });
|
|
90
|
+
return { ok: !over.length, over };
|
|
91
|
+
}
|
|
92
|
+
/** "Publish export" with a budget: over budget → `{ ok: false, over }` and `publish` is not called. */
|
|
93
|
+
async function guardPublish(input, limits, publish, o = {}) {
|
|
94
|
+
const { files, measure } = await run(input, o);
|
|
95
|
+
const c = checkBudget(measure, limits);
|
|
96
|
+
return c.ok ? { ok: true, value: await publish(files, measure), measure } : { ok: false, over: c.over, measure };
|
|
97
|
+
}
|
|
98
|
+
/** A live meter (`role="status"`, polite): "12.3 KB / 20 KB · gzip 4.1 KB · cost 14 / 30"; `data-over` names the first metric over. */
|
|
99
|
+
function createBudgetMeter(el, limits) {
|
|
100
|
+
el.setAttribute('role', 'status');
|
|
101
|
+
el.setAttribute('aria-live', 'polite');
|
|
102
|
+
return {
|
|
103
|
+
update(m) {
|
|
104
|
+
const c = checkBudget(m, limits);
|
|
105
|
+
const lim = (v, u = '') => (v !== undefined ? ` / ${v}${u}` : '');
|
|
106
|
+
el.textContent = `${r2(m.bytes / 1024)} KB${lim(limits.kb, ' KB')}${m.gzipBytes !== null ? ` · gzip ${r2(m.gzipBytes / 1024)} KB` : ''} · cost ${m.cost.peak}${lim(limits.frameCost)}`;
|
|
107
|
+
c.ok ? el.removeAttribute('data-over') : el.setAttribute('data-over', c.over[0].metric);
|
|
108
|
+
return c;
|
|
109
|
+
},
|
|
110
|
+
destroy() {
|
|
111
|
+
el.textContent = '';
|
|
112
|
+
for (const a of ['role', 'aria-live', 'data-over'])
|
|
113
|
+
el.removeAttribute(a);
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export { PROP_COST, checkBudget, createBudgetMeter, frameCost, guardPublish, measureExport, propClass };
|
|
119
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-budget.js.map
|
|
@@ -995,4 +995,4 @@ exports.snapLines = snapLines;
|
|
|
995
995
|
exports.snapRect = snapRect;
|
|
996
996
|
exports.snapToGrid = snapToGrid;
|
|
997
997
|
exports.snapValue = snapValue;
|
|
998
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
998
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-canvas.cjs.map
|
|
@@ -975,4 +975,4 @@ function createStudioCanvas(root, o) {
|
|
|
975
975
|
}
|
|
976
976
|
|
|
977
977
|
export { STUDIO_CANVAS_VERSION, applyCanvasOps, canvasBounds, canvasBox, canvasMove, canvasReorder, canvasSetBox, canvasSetHidden, canvasSetLocked, createStudioCanvas, marqueeHits, readCanvasGeometry, rectsIntersect, resizeBox, rotationFromPointer, snapLines, snapRect, snapToGrid, snapValue };
|
|
978
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
978
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-canvas.js.map
|
|
@@ -476,4 +476,4 @@ exports.createJsonFramesAdapter = createJsonFramesAdapter;
|
|
|
476
476
|
exports.exportStandalone = exportStandalone;
|
|
477
477
|
exports.frameDigest = frameDigest;
|
|
478
478
|
exports.sampleBaked = sampleBaked;
|
|
479
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
479
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-export.cjs.map
|
|
@@ -463,4 +463,4 @@ const PLAYER_JS = ('(function(){var W=window,D=document,E=D.getElementById("mot
|
|
|
463
463
|
'if(q)seek(+q[1]);else if(rm)seek(S.d);else{seek(0);play()}})();');
|
|
464
464
|
|
|
465
465
|
export { BAKED_FORMAT, EXPORT_LIMITS, FRAME_JOB_FORMAT, PLAYER_JS, STUDIO_EXPORT_VERSION, bakeScene, cleanStage, createFrameExportJob, createJsonFramesAdapter, exportStandalone, frameDigest, sampleBaked };
|
|
466
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
466
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-export.js.map
|
|
@@ -341,4 +341,4 @@ exports.NATIVE_TARGETS = NATIVE_TARGETS;
|
|
|
341
341
|
exports.STUDIO_NATIVE_VERSION = STUDIO_NATIVE_VERSION;
|
|
342
342
|
exports.exportNative = exportNative;
|
|
343
343
|
exports.nativeSupport = nativeSupport;
|
|
344
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
344
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-native.cjs.map
|
|
@@ -336,4 +336,4 @@ function exportNative(input, opts) {
|
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
export { NATIVE_TARGETS, STUDIO_NATIVE_VERSION, exportNative, nativeSupport };
|
|
339
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
339
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-native.js.map
|
|
@@ -268,4 +268,4 @@ exports.createWorkerTransport = createWorkerTransport;
|
|
|
268
268
|
exports.parsePluginManifest = parsePluginManifest;
|
|
269
269
|
exports.pluginFrameSource = pluginFrameSource;
|
|
270
270
|
exports.pluginWorkerSource = pluginWorkerSource;
|
|
271
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
271
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-plugins.cjs.map
|
|
@@ -259,4 +259,4 @@ function createPluginHost(o) {
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
export { PLUGIN_PERMISSIONS, createIframeTransport, createLocalTransport, createPluginHost, createWorkerTransport, parsePluginManifest, pluginFrameSource, pluginWorkerSource };
|
|
262
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
262
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-plugins.js.map
|
|
@@ -155,4 +155,4 @@ exports.provenanceOf = provenanceOf;
|
|
|
155
155
|
exports.recordProvenance = recordProvenance;
|
|
156
156
|
exports.validateProvenance = validateProvenance;
|
|
157
157
|
exports.withProvenance = withProvenance;
|
|
158
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
158
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-provenance.cjs.map
|
|
@@ -142,4 +142,4 @@ function createProvenancePanel(root, history) {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
export { PROVENANCE_LIMITS, PROVENANCE_META_KEY, REQUEST_ID_RE, STUDIO_PROVENANCE_VERSION, aiChanges, changedLayers, createProvenancePanel, matchLineage, provenanceOf, recordProvenance, validateProvenance, withProvenance };
|
|
145
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
145
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-provenance.js.map
|
|
@@ -261,4 +261,4 @@ exports.createMemoryProjectStore = createMemoryProjectStore;
|
|
|
261
261
|
exports.detectConflict = detectConflict;
|
|
262
262
|
exports.mergeProjects = mergeProjects;
|
|
263
263
|
exports.toAppStorage = toAppStorage;
|
|
264
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
264
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-store.cjs.map
|
|
@@ -250,4 +250,4 @@ function toAppStorage(store, o = {}) {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
export { STORE_LIMITS, STUDIO_STORE_VERSION, StoreError, contentTag, createHttpProjectStore, createIndexedDBProjectStore, createMemoryProjectStore, detectConflict, mergeProjects, toAppStorage };
|
|
253
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.
|
|
253
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.9.0/dist/components/studio-store.js.map
|