motionary 16.1.0 → 16.2.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 +27 -0
- package/README_ja.md +1 -1
- package/bin/public-paths.mjs +1 -0
- package/dist/chunks/{anim-image-CTMieF0F.js → anim-image-Bg8fMuxp.js} +2 -2
- package/dist/chunks/{anim-image-C6FOWZKe.cjs → anim-image-DnLMJuJQ.cjs} +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-BqiVwX2S.js → gl-scene-VtVH9WZO.js} +2 -2
- package/dist/chunks/{gl-scene-Ca1IpbCm.cjs → gl-scene-g5adl0wI.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-fbaCwDGM.cjs → keyframes-CFLu2rZj.cjs} +2 -2
- package/dist/chunks/{keyframes-Dxt0T1BH.js → keyframes-DeZhknpI.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-BZQpJ3mP.js → lottie-player-1cydIJ5T.js} +2 -2
- package/dist/chunks/{lottie-player-CrWU23Ax.cjs → lottie-player-CIDKtEUS.cjs} +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-76T6wtNB.cjs → physics-playground-B7o7Z2Hn.cjs} +2 -2
- package/dist/chunks/{physics-playground-BG1XGp6Q.js → physics-playground-BSwEYi1v.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-Dk7T0M7p.js → registry-Ce3_sUto.js} +2 -2
- package/dist/chunks/registry-CibnX7Ui.cjs +1 -1
- package/dist/chunks/{registry-re1x_8yZ.cjs → registry-z74WGGq9.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-CjHKZNFa.cjs → runtime-link-BdtHln5B.cjs} +2 -2
- package/dist/chunks/{runtime-link-CVudH41X.js → runtime-link-Dvt75tZs.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-Chh_nc5L.js → scroll-scene-B48FJKBo.js} +3 -3
- package/dist/chunks/{scroll-scene-CN21eDNW.cjs → scroll-scene-BwuAuMJN.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-BHDp3bM2.cjs → ticker-B3sTb85k.cjs} +2 -2
- package/dist/chunks/{ticker-D5dmHHiF.js → ticker-EuEw6Awo.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-BDiN74XV.cjs → tween-C5T1YCsy.cjs} +2 -2
- package/dist/chunks/{tween-QxulEo-G.js → tween-u2cYpA33.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.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-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 +271 -0
- package/dist/components/studio-plugins.d.cts +104 -0
- package/dist/components/studio-plugins.d.ts +104 -0
- package/dist/components/studio-plugins.js +262 -0
- 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/component-contract.md +1 -1
- package/docs/mcp-gateway-interop.md +1 -1
- package/docs/studio-plugins.md +73 -0
- package/docs/versions.md +1 -1
- package/package.json +24 -2
- package/docs/contract-report.json +0 -1
- package/docs/contract-report.md +0 -60
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 16.2: Studio plugin API (preview, `@experimental` until it is frozen as v1 in 17.0). Third-party panels and
|
|
5
|
+
* exporters run in a sandbox (a Worker, or an iframe with `sandbox="allow-scripts"` and a `default-src 'none'` CSP)
|
|
6
|
+
* and talk to the Studio only through messages. A manifest declares the permissions; the host answers a call only
|
|
7
|
+
* when its permission was granted and audits every call. Proposals never write the project: the host hands a copy
|
|
8
|
+
* to the Studio's `propose` callback, which decides (one undo step). A plugin that throws, times out or floods the
|
|
9
|
+
* host is marked `crashed` and terminated; the host and every other plugin keep working, and no host method throws.
|
|
10
|
+
* Opt-in entry `motionary/studio/plugins` (= `motionary/components/studio-plugins`); not in lite or studio.
|
|
11
|
+
*/
|
|
12
|
+
const PLUGIN_PERMISSIONS = ['project:read', 'project:propose', 'panel', 'exporter'];
|
|
13
|
+
const isObj = (v) => !!v && typeof v === 'object' && !Array.isArray(v);
|
|
14
|
+
const bad = (m) => new Error(`[motionary] plugins: ${m}`);
|
|
15
|
+
const msg = (x) => String((x && x.message) || x);
|
|
16
|
+
const fail = (error) => ({ ok: false, error });
|
|
17
|
+
const clone = (v) => (v === undefined ? v : JSON.parse(JSON.stringify(v)));
|
|
18
|
+
const NEEDS = { 'project.get': 'project:read', 'project.propose': 'project:propose', 'panel.set': 'panel', 'exporter.register': 'exporter' };
|
|
19
|
+
/** Validate a manifest (object or JSON text); unknown fields are dropped, anything unclear is refused. */
|
|
20
|
+
function parsePluginManifest(input) {
|
|
21
|
+
const text = typeof input === 'string' ? input : JSON.stringify(input);
|
|
22
|
+
if (!text || text.length > 16384)
|
|
23
|
+
throw bad('manifest too large');
|
|
24
|
+
const m = JSON.parse(text);
|
|
25
|
+
if (!isObj(m))
|
|
26
|
+
throw bad('manifest must be an object');
|
|
27
|
+
if (typeof m.id !== 'string' || !/^[a-z0-9][a-z0-9.-]{1,63}$/.test(m.id))
|
|
28
|
+
throw bad(`bad id "${m.id}"`);
|
|
29
|
+
if (typeof m.name !== 'string' || !m.name)
|
|
30
|
+
throw bad('name required');
|
|
31
|
+
if (typeof m.version !== 'string' || !/^\d+\.\d+\.\d+(-[\w.-]+)?$/.test(m.version))
|
|
32
|
+
throw bad(`bad version "${m.version}"`);
|
|
33
|
+
if (m.api !== 1)
|
|
34
|
+
throw bad('api must be 1');
|
|
35
|
+
const ps = Array.isArray(m.permissions) ? m.permissions : [];
|
|
36
|
+
for (const p of ps)
|
|
37
|
+
if (!PLUGIN_PERMISSIONS.includes(p))
|
|
38
|
+
throw bad(`permission "${p}" unknown`);
|
|
39
|
+
return { id: m.id, name: m.name, version: m.version, api: 1, permissions: [...new Set(ps)] };
|
|
40
|
+
}
|
|
41
|
+
/** Plugin side of the protocol. Self-contained: it is also serialized into the Worker / iframe source. */
|
|
42
|
+
function pluginRuntime(post, listen) {
|
|
43
|
+
let n = 0, exp;
|
|
44
|
+
const wait = new Map();
|
|
45
|
+
listen((m) => {
|
|
46
|
+
if (m && m.t === 'res') {
|
|
47
|
+
const w = wait.get(m.id);
|
|
48
|
+
if (w) {
|
|
49
|
+
wait.delete(m.id);
|
|
50
|
+
m.ok ? w[0](m.value) : w[1](new Error(m.error));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else if (m && m.t === 'export')
|
|
54
|
+
new Promise((r) => r(exp(m.project))).then((files) => post({ t: 'exported', id: m.id, files }), (e) => post({ t: 'exported', id: m.id, error: String((e && e.message) || e) }));
|
|
55
|
+
});
|
|
56
|
+
const call = (method, ...args) => new Promise((res, rej) => { wait.set(++n, [res, rej]); post({ t: 'call', id: n, method, args }); });
|
|
57
|
+
return { getProject: () => call('project.get'), propose: (p, note) => call('project.propose', p, note), setPanel: (p) => call('panel.set', p), onExport: (fn) => { exp = fn; return call('exporter.register'); } };
|
|
58
|
+
}
|
|
59
|
+
const report = (post) => `addEventListener('error',e=>${post}({t:'error',message:String(e.message)}));addEventListener('unhandledrejection',e=>${post}({t:'error',message:String(e.reason&&e.reason.message||e.reason)}));`;
|
|
60
|
+
/** Worker source: the runtime as a `motionary` global, error reporting, then the plugin code. */
|
|
61
|
+
function pluginWorkerSource(code) {
|
|
62
|
+
return `const motionary=(${pluginRuntime})(m=>postMessage(m),f=>addEventListener('message',e=>f(e.data)));${report('postMessage')}\n${code}`;
|
|
63
|
+
}
|
|
64
|
+
/** iframe `srcdoc`: scripts only (CSP `default-src 'none'`), messages only to and from the parent. */
|
|
65
|
+
function pluginFrameSource(code) {
|
|
66
|
+
return `<!doctype html><meta id="sandbox-csp" http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'"><script>const P=m=>parent.postMessage(m,'*');const motionary=(${pluginRuntime})(P,f=>addEventListener('message',e=>{if(e.source===parent)f(e.data)}));${report('P')}\n${code.replace(/<\/(script)/gi, '<\\/$1')}\n</script>`;
|
|
67
|
+
}
|
|
68
|
+
/** Run plugin code in a dedicated Worker (no DOM, own thread: an endless loop cannot block the Studio). */
|
|
69
|
+
function createWorkerTransport(code) {
|
|
70
|
+
if (typeof Worker !== 'function')
|
|
71
|
+
throw bad('Worker is not available here');
|
|
72
|
+
const url = URL.createObjectURL(new Blob([pluginWorkerSource(code)], { type: 'text/javascript' }));
|
|
73
|
+
const w = new Worker(url);
|
|
74
|
+
return {
|
|
75
|
+
send: (m) => w.postMessage(m),
|
|
76
|
+
onMessage: (f) => { w.onmessage = (e) => f(e.data); },
|
|
77
|
+
onError: (f) => { w.onerror = (e) => { e.preventDefault(); f(e.message); }; },
|
|
78
|
+
terminate: () => { w.terminate(); URL.revokeObjectURL(url); },
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
/** Run plugin code in a hidden `sandbox="allow-scripts"` iframe (opaque origin: no cookies, storage or parent DOM). */
|
|
82
|
+
function createIframeTransport(code, parent = document.body) {
|
|
83
|
+
const f = document.createElement('iframe');
|
|
84
|
+
f.setAttribute('sandbox', 'allow-scripts');
|
|
85
|
+
f.style.display = 'none';
|
|
86
|
+
f.srcdoc = pluginFrameSource(code);
|
|
87
|
+
let q = [], on = () => { }, err = () => { };
|
|
88
|
+
const listen = (e) => { if (e.source && e.source === f.contentWindow) {
|
|
89
|
+
const m = e.data;
|
|
90
|
+
isObj(m) && m.t === 'error' ? err(m.message) : on(m);
|
|
91
|
+
} };
|
|
92
|
+
addEventListener('message', listen);
|
|
93
|
+
f.onload = () => { for (const m of q || [])
|
|
94
|
+
f.contentWindow?.postMessage(m, '*'); q = null; };
|
|
95
|
+
parent.appendChild(f);
|
|
96
|
+
return {
|
|
97
|
+
send: (m) => (q ? q.push(m) : f.contentWindow?.postMessage(m, '*')),
|
|
98
|
+
onMessage: (fn) => { on = fn; },
|
|
99
|
+
onError: (fn) => { err = fn; },
|
|
100
|
+
terminate: () => { removeEventListener('message', listen); f.remove(); },
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
/** In-process transport for tests and trusted code (NO sandbox). Messages are copied and delivered asynchronously. */
|
|
104
|
+
function createLocalTransport(plugin) {
|
|
105
|
+
let host, err, inbox, dead = false;
|
|
106
|
+
const later = (f) => queueMicrotask(() => { if (!dead)
|
|
107
|
+
f(); });
|
|
108
|
+
later(() => {
|
|
109
|
+
const mo = pluginRuntime((m) => later(() => host?.(clone(m))), (f) => { inbox = f; });
|
|
110
|
+
new Promise((r) => r(plugin(mo))).catch((e) => later(() => err?.(e)));
|
|
111
|
+
});
|
|
112
|
+
return { send: (m) => later(() => inbox?.(clone(m))), onMessage: (f) => { host = f; }, onError: (f) => { err = f; }, terminate: () => { dead = true; } };
|
|
113
|
+
}
|
|
114
|
+
function files(f) {
|
|
115
|
+
if (!isObj(f))
|
|
116
|
+
return fail('exporter must return { path: text }');
|
|
117
|
+
let size = 0;
|
|
118
|
+
const keys = Object.keys(f);
|
|
119
|
+
if (keys.length > 500)
|
|
120
|
+
return fail('too many files');
|
|
121
|
+
for (const k of keys) {
|
|
122
|
+
if (!/^[\w-][\w.-]*(\/[\w-][\w.-]*)*$/.test(k) || k.includes('..'))
|
|
123
|
+
return fail(`bad path "${k}"`);
|
|
124
|
+
if (typeof f[k] !== 'string')
|
|
125
|
+
return fail(`file "${k}" is not text`);
|
|
126
|
+
if ((size += f[k].length) > 1e7)
|
|
127
|
+
return fail('export too large');
|
|
128
|
+
}
|
|
129
|
+
return { ok: true, value: { files: f } };
|
|
130
|
+
}
|
|
131
|
+
/** The Studio side: loads plugins, answers their calls by permission, runs exporters, isolates crashes. */
|
|
132
|
+
function createPluginHost(o) {
|
|
133
|
+
const all = new Map();
|
|
134
|
+
const audit = [];
|
|
135
|
+
const timeout = o.timeoutMs ?? 2000, max = o.maxMessages ?? 200;
|
|
136
|
+
let seq = 0;
|
|
137
|
+
const end = (e) => {
|
|
138
|
+
try {
|
|
139
|
+
e.t.terminate();
|
|
140
|
+
}
|
|
141
|
+
catch { /* already gone */ }
|
|
142
|
+
for (const w of e.wait.values())
|
|
143
|
+
w(fail(e.error || 'stopped'));
|
|
144
|
+
e.wait.clear();
|
|
145
|
+
};
|
|
146
|
+
const crash = (e, why) => {
|
|
147
|
+
if (e.status !== 'running')
|
|
148
|
+
return;
|
|
149
|
+
e.status = 'crashed';
|
|
150
|
+
e.error = why;
|
|
151
|
+
end(e);
|
|
152
|
+
try {
|
|
153
|
+
o.onCrash?.(e.m.id, why);
|
|
154
|
+
}
|
|
155
|
+
catch { /* the host never throws */ }
|
|
156
|
+
};
|
|
157
|
+
const info = (e) => ({ id: e.m.id, name: e.m.name, version: e.m.version, permissions: e.m.permissions, status: e.status, exporter: e.exporter, ...(e.error ? { error: e.error } : {}) });
|
|
158
|
+
const onMsg = (e, m) => {
|
|
159
|
+
if (e.status !== 'running' || !isObj(m))
|
|
160
|
+
return;
|
|
161
|
+
const now = Date.now();
|
|
162
|
+
if (now - e.win >= 1000) {
|
|
163
|
+
e.win = now;
|
|
164
|
+
e.n = 0;
|
|
165
|
+
}
|
|
166
|
+
if (++e.n > max)
|
|
167
|
+
return crash(e, 'message flood');
|
|
168
|
+
if (m.t === 'error')
|
|
169
|
+
return crash(e, String(m.message));
|
|
170
|
+
if (m.t === 'exported') {
|
|
171
|
+
const w = e.wait.get(m.id);
|
|
172
|
+
if (w) {
|
|
173
|
+
e.wait.delete(m.id);
|
|
174
|
+
w(m.error !== undefined ? fail(String(m.error)) : files(m.files));
|
|
175
|
+
}
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
if (m.t !== 'call')
|
|
179
|
+
return;
|
|
180
|
+
const need = NEEDS[m.method], a = Array.isArray(m.args) ? m.args : [];
|
|
181
|
+
const allowed = !!need && e.m.permissions.includes(need);
|
|
182
|
+
audit.push({ plugin: e.m.id, method: String(m.method), allowed, at: now });
|
|
183
|
+
new Promise((res) => {
|
|
184
|
+
if (!need)
|
|
185
|
+
throw bad(`unknown method "${m.method}"`);
|
|
186
|
+
if (!allowed)
|
|
187
|
+
throw bad(`permission "${need}" not granted`);
|
|
188
|
+
if (need === 'project:read')
|
|
189
|
+
return res(clone(o.getProject()));
|
|
190
|
+
if (need === 'project:propose') {
|
|
191
|
+
if (!o.propose)
|
|
192
|
+
throw bad('proposals are not accepted here');
|
|
193
|
+
return res(Promise.resolve(o.propose(clone(a[0]), { plugin: e.m.id, note: String(a[1] ?? '') })).then(Boolean));
|
|
194
|
+
}
|
|
195
|
+
if (need === 'panel') {
|
|
196
|
+
const p = a[0];
|
|
197
|
+
if (!isObj(p) || typeof p.text !== 'string' || (p.title !== undefined && typeof p.title !== 'string'))
|
|
198
|
+
throw bad('panel needs { title?, text }');
|
|
199
|
+
if (p.text.length + (p.title || '').length > 8192)
|
|
200
|
+
throw bad('panel text too large');
|
|
201
|
+
e.panel = p.title !== undefined ? { title: p.title, text: p.text } : { text: p.text };
|
|
202
|
+
}
|
|
203
|
+
else
|
|
204
|
+
e.exporter = true;
|
|
205
|
+
res(true);
|
|
206
|
+
}).then((value) => ({ t: 'res', id: m.id, ok: true, value }), (x) => ({ t: 'res', id: m.id, ok: false, error: msg(x) }))
|
|
207
|
+
.then((r) => { if (e.status === 'running')
|
|
208
|
+
try {
|
|
209
|
+
e.t.send(r);
|
|
210
|
+
}
|
|
211
|
+
catch (x) {
|
|
212
|
+
crash(e, msg(x));
|
|
213
|
+
} });
|
|
214
|
+
};
|
|
215
|
+
return {
|
|
216
|
+
audit,
|
|
217
|
+
load(manifest, t) {
|
|
218
|
+
try {
|
|
219
|
+
const m = parsePluginManifest(manifest);
|
|
220
|
+
if (all.has(m.id))
|
|
221
|
+
return fail(`plugin "${m.id}" is already loaded`);
|
|
222
|
+
const tr = typeof t === 'string' ? createWorkerTransport(t) : t;
|
|
223
|
+
const e = { m, t: tr, status: 'running', wait: new Map(), n: 0, win: 0, exporter: false };
|
|
224
|
+
all.set(m.id, e);
|
|
225
|
+
tr.onMessage((x) => onMsg(e, x));
|
|
226
|
+
tr.onError((x) => crash(e, msg(x)));
|
|
227
|
+
return { ok: true, value: info(e) };
|
|
228
|
+
}
|
|
229
|
+
catch (x) {
|
|
230
|
+
return fail(msg(x));
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
plugins: () => [...all.values()].map(info),
|
|
234
|
+
panels: () => [...all.values()].filter((e) => e.panel && e.status === 'running').map((e) => ({ plugin: e.m.id, ...e.panel })),
|
|
235
|
+
runExporter(id) {
|
|
236
|
+
const e = all.get(id);
|
|
237
|
+
if (!e || e.status !== 'running')
|
|
238
|
+
return Promise.resolve(fail(`plugin "${id}" is not running`));
|
|
239
|
+
if (!e.exporter)
|
|
240
|
+
return Promise.resolve(fail(`plugin "${id}" has no exporter`));
|
|
241
|
+
const n = ++seq;
|
|
242
|
+
return new Promise((res) => {
|
|
243
|
+
const timer = setTimeout(() => { e.wait.delete(n); res(fail(`timeout after ${timeout} ms`)); crash(e, `exporter timeout after ${timeout} ms`); }, timeout);
|
|
244
|
+
e.wait.set(n, (r) => { clearTimeout(timer); res(r); });
|
|
245
|
+
try {
|
|
246
|
+
e.t.send({ t: 'export', id: n, project: clone(o.getProject()) });
|
|
247
|
+
}
|
|
248
|
+
catch (x) {
|
|
249
|
+
crash(e, msg(x));
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
},
|
|
253
|
+
stop(id) {
|
|
254
|
+
const e = all.get(id);
|
|
255
|
+
if (e && e.status === 'running') {
|
|
256
|
+
e.status = 'stopped';
|
|
257
|
+
end(e);
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
exports.PLUGIN_PERMISSIONS = PLUGIN_PERMISSIONS;
|
|
264
|
+
exports.createIframeTransport = createIframeTransport;
|
|
265
|
+
exports.createLocalTransport = createLocalTransport;
|
|
266
|
+
exports.createPluginHost = createPluginHost;
|
|
267
|
+
exports.createWorkerTransport = createWorkerTransport;
|
|
268
|
+
exports.parsePluginManifest = parsePluginManifest;
|
|
269
|
+
exports.pluginFrameSource = pluginFrameSource;
|
|
270
|
+
exports.pluginWorkerSource = pluginWorkerSource;
|
|
271
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v16.2.0/dist/components/studio-plugins.cjs.map
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 16.2: Studio plugin API (preview, `@experimental` until it is frozen as v1 in 17.0). Third-party panels and
|
|
3
|
+
* exporters run in a sandbox (a Worker, or an iframe with `sandbox="allow-scripts"` and a `default-src 'none'` CSP)
|
|
4
|
+
* and talk to the Studio only through messages. A manifest declares the permissions; the host answers a call only
|
|
5
|
+
* when its permission was granted and audits every call. Proposals never write the project: the host hands a copy
|
|
6
|
+
* to the Studio's `propose` callback, which decides (one undo step). A plugin that throws, times out or floods the
|
|
7
|
+
* host is marked `crashed` and terminated; the host and every other plugin keep working, and no host method throws.
|
|
8
|
+
* Opt-in entry `motionary/studio/plugins` (= `motionary/components/studio-plugins`); not in lite or studio.
|
|
9
|
+
*/
|
|
10
|
+
declare const PLUGIN_PERMISSIONS: readonly ["project:read", "project:propose", "panel", "exporter"];
|
|
11
|
+
type PluginPermission = (typeof PLUGIN_PERMISSIONS)[number];
|
|
12
|
+
interface PluginManifest {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
version: string;
|
|
16
|
+
api: 1;
|
|
17
|
+
permissions: PluginPermission[];
|
|
18
|
+
}
|
|
19
|
+
type PluginResult<T> = {
|
|
20
|
+
ok: true;
|
|
21
|
+
value: T;
|
|
22
|
+
error?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
ok: false;
|
|
25
|
+
error: string;
|
|
26
|
+
value?: undefined;
|
|
27
|
+
};
|
|
28
|
+
interface PluginTransport {
|
|
29
|
+
send(message: unknown): void;
|
|
30
|
+
onMessage(fn: (message: any) => void): void;
|
|
31
|
+
onError(fn: (error: unknown) => void): void;
|
|
32
|
+
terminate(): void;
|
|
33
|
+
}
|
|
34
|
+
/** The `motionary` object a plugin sees. */
|
|
35
|
+
interface PluginApi {
|
|
36
|
+
getProject(): Promise<any>;
|
|
37
|
+
propose(project: unknown, note?: string): Promise<boolean>;
|
|
38
|
+
setPanel(panel: {
|
|
39
|
+
title?: string;
|
|
40
|
+
text: string;
|
|
41
|
+
}): Promise<boolean>;
|
|
42
|
+
onExport(fn: (project: any) => Record<string, string> | Promise<Record<string, string>>): Promise<boolean>;
|
|
43
|
+
}
|
|
44
|
+
interface PluginInfo {
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
version: string;
|
|
48
|
+
permissions: PluginPermission[];
|
|
49
|
+
status: 'running' | 'crashed' | 'stopped';
|
|
50
|
+
exporter: boolean;
|
|
51
|
+
error?: string;
|
|
52
|
+
}
|
|
53
|
+
interface PluginAuditEntry {
|
|
54
|
+
plugin: string;
|
|
55
|
+
method: string;
|
|
56
|
+
allowed: boolean;
|
|
57
|
+
at: number;
|
|
58
|
+
}
|
|
59
|
+
interface PluginPanel {
|
|
60
|
+
plugin: string;
|
|
61
|
+
title?: string;
|
|
62
|
+
text: string;
|
|
63
|
+
}
|
|
64
|
+
interface PluginHostOptions {
|
|
65
|
+
getProject: () => unknown;
|
|
66
|
+
/** Receives a copy of the proposed project; return true when the Studio applied it. Without it proposals are refused. */
|
|
67
|
+
propose?: (project: any, meta: {
|
|
68
|
+
plugin: string;
|
|
69
|
+
note: string;
|
|
70
|
+
}) => boolean | Promise<boolean>;
|
|
71
|
+
/** Exporter answer limit (default 2000 ms); a plugin that misses it is crashed. */
|
|
72
|
+
timeoutMs?: number;
|
|
73
|
+
/** Messages per second before a plugin counts as flooding (default 200). */
|
|
74
|
+
maxMessages?: number;
|
|
75
|
+
onCrash?: (plugin: string, reason: string) => void;
|
|
76
|
+
}
|
|
77
|
+
interface PluginHost {
|
|
78
|
+
/** Load a plugin from its code (run in a Worker) or through a transport (`createIframeTransport`, `createLocalTransport`). */
|
|
79
|
+
load(manifest: unknown, codeOrTransport: string | PluginTransport): PluginResult<PluginInfo>;
|
|
80
|
+
plugins(): PluginInfo[];
|
|
81
|
+
panels(): PluginPanel[];
|
|
82
|
+
runExporter(id: string): Promise<PluginResult<{
|
|
83
|
+
files: Record<string, string>;
|
|
84
|
+
}>>;
|
|
85
|
+
stop(id: string): void;
|
|
86
|
+
readonly audit: PluginAuditEntry[];
|
|
87
|
+
}
|
|
88
|
+
/** Validate a manifest (object or JSON text); unknown fields are dropped, anything unclear is refused. */
|
|
89
|
+
declare function parsePluginManifest(input: unknown): PluginManifest;
|
|
90
|
+
/** Worker source: the runtime as a `motionary` global, error reporting, then the plugin code. */
|
|
91
|
+
declare function pluginWorkerSource(code: string): string;
|
|
92
|
+
/** iframe `srcdoc`: scripts only (CSP `default-src 'none'`), messages only to and from the parent. */
|
|
93
|
+
declare function pluginFrameSource(code: string): string;
|
|
94
|
+
/** Run plugin code in a dedicated Worker (no DOM, own thread: an endless loop cannot block the Studio). */
|
|
95
|
+
declare function createWorkerTransport(code: string): PluginTransport;
|
|
96
|
+
/** Run plugin code in a hidden `sandbox="allow-scripts"` iframe (opaque origin: no cookies, storage or parent DOM). */
|
|
97
|
+
declare function createIframeTransport(code: string, parent?: Element): PluginTransport;
|
|
98
|
+
/** In-process transport for tests and trusted code (NO sandbox). Messages are copied and delivered asynchronously. */
|
|
99
|
+
declare function createLocalTransport(plugin: (motionary: PluginApi) => unknown): PluginTransport;
|
|
100
|
+
/** The Studio side: loads plugins, answers their calls by permission, runs exporters, isolates crashes. */
|
|
101
|
+
declare function createPluginHost(o: PluginHostOptions): PluginHost;
|
|
102
|
+
|
|
103
|
+
export { PLUGIN_PERMISSIONS, createIframeTransport, createLocalTransport, createPluginHost, createWorkerTransport, parsePluginManifest, pluginFrameSource, pluginWorkerSource };
|
|
104
|
+
export type { PluginApi, PluginAuditEntry, PluginHost, PluginHostOptions, PluginInfo, PluginManifest, PluginPanel, PluginPermission, PluginResult, PluginTransport };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 16.2: Studio plugin API (preview, `@experimental` until it is frozen as v1 in 17.0). Third-party panels and
|
|
3
|
+
* exporters run in a sandbox (a Worker, or an iframe with `sandbox="allow-scripts"` and a `default-src 'none'` CSP)
|
|
4
|
+
* and talk to the Studio only through messages. A manifest declares the permissions; the host answers a call only
|
|
5
|
+
* when its permission was granted and audits every call. Proposals never write the project: the host hands a copy
|
|
6
|
+
* to the Studio's `propose` callback, which decides (one undo step). A plugin that throws, times out or floods the
|
|
7
|
+
* host is marked `crashed` and terminated; the host and every other plugin keep working, and no host method throws.
|
|
8
|
+
* Opt-in entry `motionary/studio/plugins` (= `motionary/components/studio-plugins`); not in lite or studio.
|
|
9
|
+
*/
|
|
10
|
+
declare const PLUGIN_PERMISSIONS: readonly ["project:read", "project:propose", "panel", "exporter"];
|
|
11
|
+
type PluginPermission = (typeof PLUGIN_PERMISSIONS)[number];
|
|
12
|
+
interface PluginManifest {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
version: string;
|
|
16
|
+
api: 1;
|
|
17
|
+
permissions: PluginPermission[];
|
|
18
|
+
}
|
|
19
|
+
type PluginResult<T> = {
|
|
20
|
+
ok: true;
|
|
21
|
+
value: T;
|
|
22
|
+
error?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
ok: false;
|
|
25
|
+
error: string;
|
|
26
|
+
value?: undefined;
|
|
27
|
+
};
|
|
28
|
+
interface PluginTransport {
|
|
29
|
+
send(message: unknown): void;
|
|
30
|
+
onMessage(fn: (message: any) => void): void;
|
|
31
|
+
onError(fn: (error: unknown) => void): void;
|
|
32
|
+
terminate(): void;
|
|
33
|
+
}
|
|
34
|
+
/** The `motionary` object a plugin sees. */
|
|
35
|
+
interface PluginApi {
|
|
36
|
+
getProject(): Promise<any>;
|
|
37
|
+
propose(project: unknown, note?: string): Promise<boolean>;
|
|
38
|
+
setPanel(panel: {
|
|
39
|
+
title?: string;
|
|
40
|
+
text: string;
|
|
41
|
+
}): Promise<boolean>;
|
|
42
|
+
onExport(fn: (project: any) => Record<string, string> | Promise<Record<string, string>>): Promise<boolean>;
|
|
43
|
+
}
|
|
44
|
+
interface PluginInfo {
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
version: string;
|
|
48
|
+
permissions: PluginPermission[];
|
|
49
|
+
status: 'running' | 'crashed' | 'stopped';
|
|
50
|
+
exporter: boolean;
|
|
51
|
+
error?: string;
|
|
52
|
+
}
|
|
53
|
+
interface PluginAuditEntry {
|
|
54
|
+
plugin: string;
|
|
55
|
+
method: string;
|
|
56
|
+
allowed: boolean;
|
|
57
|
+
at: number;
|
|
58
|
+
}
|
|
59
|
+
interface PluginPanel {
|
|
60
|
+
plugin: string;
|
|
61
|
+
title?: string;
|
|
62
|
+
text: string;
|
|
63
|
+
}
|
|
64
|
+
interface PluginHostOptions {
|
|
65
|
+
getProject: () => unknown;
|
|
66
|
+
/** Receives a copy of the proposed project; return true when the Studio applied it. Without it proposals are refused. */
|
|
67
|
+
propose?: (project: any, meta: {
|
|
68
|
+
plugin: string;
|
|
69
|
+
note: string;
|
|
70
|
+
}) => boolean | Promise<boolean>;
|
|
71
|
+
/** Exporter answer limit (default 2000 ms); a plugin that misses it is crashed. */
|
|
72
|
+
timeoutMs?: number;
|
|
73
|
+
/** Messages per second before a plugin counts as flooding (default 200). */
|
|
74
|
+
maxMessages?: number;
|
|
75
|
+
onCrash?: (plugin: string, reason: string) => void;
|
|
76
|
+
}
|
|
77
|
+
interface PluginHost {
|
|
78
|
+
/** Load a plugin from its code (run in a Worker) or through a transport (`createIframeTransport`, `createLocalTransport`). */
|
|
79
|
+
load(manifest: unknown, codeOrTransport: string | PluginTransport): PluginResult<PluginInfo>;
|
|
80
|
+
plugins(): PluginInfo[];
|
|
81
|
+
panels(): PluginPanel[];
|
|
82
|
+
runExporter(id: string): Promise<PluginResult<{
|
|
83
|
+
files: Record<string, string>;
|
|
84
|
+
}>>;
|
|
85
|
+
stop(id: string): void;
|
|
86
|
+
readonly audit: PluginAuditEntry[];
|
|
87
|
+
}
|
|
88
|
+
/** Validate a manifest (object or JSON text); unknown fields are dropped, anything unclear is refused. */
|
|
89
|
+
declare function parsePluginManifest(input: unknown): PluginManifest;
|
|
90
|
+
/** Worker source: the runtime as a `motionary` global, error reporting, then the plugin code. */
|
|
91
|
+
declare function pluginWorkerSource(code: string): string;
|
|
92
|
+
/** iframe `srcdoc`: scripts only (CSP `default-src 'none'`), messages only to and from the parent. */
|
|
93
|
+
declare function pluginFrameSource(code: string): string;
|
|
94
|
+
/** Run plugin code in a dedicated Worker (no DOM, own thread: an endless loop cannot block the Studio). */
|
|
95
|
+
declare function createWorkerTransport(code: string): PluginTransport;
|
|
96
|
+
/** Run plugin code in a hidden `sandbox="allow-scripts"` iframe (opaque origin: no cookies, storage or parent DOM). */
|
|
97
|
+
declare function createIframeTransport(code: string, parent?: Element): PluginTransport;
|
|
98
|
+
/** In-process transport for tests and trusted code (NO sandbox). Messages are copied and delivered asynchronously. */
|
|
99
|
+
declare function createLocalTransport(plugin: (motionary: PluginApi) => unknown): PluginTransport;
|
|
100
|
+
/** The Studio side: loads plugins, answers their calls by permission, runs exporters, isolates crashes. */
|
|
101
|
+
declare function createPluginHost(o: PluginHostOptions): PluginHost;
|
|
102
|
+
|
|
103
|
+
export { PLUGIN_PERMISSIONS, createIframeTransport, createLocalTransport, createPluginHost, createWorkerTransport, parsePluginManifest, pluginFrameSource, pluginWorkerSource };
|
|
104
|
+
export type { PluginApi, PluginAuditEntry, PluginHost, PluginHostOptions, PluginInfo, PluginManifest, PluginPanel, PluginPermission, PluginResult, PluginTransport };
|