@volter/game-editor 0.5.79 → 0.5.81
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/BUNDLED_NOTICES +22 -22
- package/catalog/entries/blender.json +2 -2
- package/catalog/entries/music.json +2 -2
- package/dist/.vite/manifest.json +2135 -2135
- package/dist/assets/{AssetBudgetPanel-oKdjrwih.js → AssetBudgetPanel-CfVYW4ED.js} +3 -3
- package/dist/assets/{AudioViewer-B1k9_wIO.js → AudioViewer-J10BXrtm.js} +1 -1
- package/dist/assets/{CanvasBoardDocument-CidIZfJc.js → CanvasBoardDocument-BgIbuOQF.js} +1 -1
- package/dist/assets/{CanvasSceneViewport-D-a2OjoE.js → CanvasSceneViewport-Z8OReqpB.js} +1 -1
- package/dist/assets/{ColorInput-CsU6nBCb.js → ColorInput-fX1V5l8_.js} +1 -1
- package/dist/assets/{EntityModelDocument-BGtt8kn8.js → EntityModelDocument-BltE1A7W.js} +1 -1
- package/dist/assets/{EnvironmentAssetDocument-Cv_9BvF0.js → EnvironmentAssetDocument-QuLkCom9.js} +1 -1
- package/dist/assets/{GameplaySessionTimeline-c77A4RAA.js → GameplaySessionTimeline-D0z5Mc0R.js} +1 -1
- package/dist/assets/{ImageViewer-BpjPWpIS.js → ImageViewer-DWUPPWRf.js} +1 -1
- package/dist/assets/InspectorObjectPreview-BpttBw3o.js +1 -0
- package/dist/assets/{JsonAssetDocument-BPN3E7Ai.js → JsonAssetDocument-C0Lr6RwY.js} +1 -1
- package/dist/assets/{LiveModuleDocument-CqN29siR.js → LiveModuleDocument-CaGmr0EA.js} +1 -1
- package/dist/assets/{LutAssetDocument-BV6N2-qQ.js → LutAssetDocument-B6GmsOYd.js} +1 -1
- package/dist/assets/{ModelAssetDocument-Bf5JZ8TF.js → ModelAssetDocument-BBDnXTQm.js} +1 -1
- package/dist/assets/{NonThreeAuthoringBootstrap-CZvbouNB.js → NonThreeAuthoringBootstrap-byKqf1kp.js} +1 -1
- package/dist/assets/{Object3DDocumentToolbar-Cm4ma8tv.js → Object3DDocumentToolbar-BHuuMZnS.js} +1 -1
- package/dist/assets/Object3DDocumentViewport-ByDDwGJD.js +2 -0
- package/dist/assets/{Object3DPreview-BlzCte35.js → Object3DPreview-pn9i3vwZ.js} +1 -1
- package/dist/assets/{OnlineAssetDetail-DaIvao3s.js → OnlineAssetDetail-PDCDAcqz.js} +1 -1
- package/dist/assets/{PlayBar-DJ1LfrgS.js → PlayBar-DEnkv3v6.js} +1 -1
- package/dist/assets/{QuarksAssetDocument-DcjHKYru.js → QuarksAssetDocument-2x66XymD.js} +1 -1
- package/dist/assets/{ReactCanvasControls-DSwW_3qn.js → ReactCanvasControls-rFwp2CeP.js} +1 -1
- package/dist/assets/{RootSelectionOverlay-QJRz70Z_.js → RootSelectionOverlay-B9rf-SSV.js} +1 -1
- package/dist/assets/{ShaderAssetDocument-BCAyVHUs.js → ShaderAssetDocument-ImI6jbzB.js} +1 -1
- package/dist/assets/{ShadowEditor-ChBlM7up.js → ShadowEditor-DXxVxTzk.js} +1 -1
- package/dist/assets/{SourceAssetViewer-t8M_wt4P.js → SourceAssetViewer-CMbp_o7v.js} +1 -1
- package/dist/assets/{StageHost-BToQY05P.js → StageHost-D1Sz5aud.js} +2 -2
- package/dist/assets/{StoryPreviewMount-DQQUiOyt.js → StoryPreviewMount-D2zLWzWy.js} +1 -1
- package/dist/assets/{ThreeBoardDocument-B0E8STg7.js → ThreeBoardDocument-nX3UiY3u.js} +2 -2
- package/dist/assets/{ThreeIsolationSceneContent-C5fELwmY.js → ThreeIsolationSceneContent-CGHM0vsg.js} +1 -1
- package/dist/assets/{ToolObject3DPreview-COEdg5Yk.js → ToolObject3DPreview-BfNcqtFv.js} +1 -1
- package/dist/assets/{Toolbar-Dc2590c_.js → Toolbar-BJRJsbHG.js} +1 -1
- package/dist/assets/{TransientHint-Ck6-tCTl.js → TransientHint-CDvYgnzu.js} +1 -1
- package/dist/assets/{VideoViewer-Ceo0o85u.js → VideoViewer-B6Dv2zeQ.js} +1 -1
- package/dist/assets/{ViewportShadingMenu-pE6Hv73N.js → ViewportShadingMenu-CrTY7tnk.js} +1 -1
- package/dist/assets/{active-ingest-DIgBJBWV.js → active-ingest-lrfMBhf9.js} +2 -2
- package/dist/assets/{animation-clock-BsTiJqzv.js → animation-clock-DktVGV5-.js} +1 -1
- package/dist/assets/{animation-mixers.service-DZMXEUKZ.js → animation-mixers.service-fkojNtor.js} +1 -1
- package/dist/assets/{animation-timeline.utility-C1kYhS_b.js → animation-timeline.utility-DDrUZKe8.js} +1 -1
- package/dist/assets/{asset-budget-asset.menu-CgLl0jxU.js → asset-budget-asset.menu-CDlgKSO9.js} +1 -1
- package/dist/assets/{asset-budget.action-BM9nPYFm.js → asset-budget.action-D6n-wIR3.js} +1 -1
- package/dist/assets/{asset-budget.document-CIBwqW8O.js → asset-budget.document-DFByoagB.js} +1 -1
- package/dist/assets/{asset-budget.menu-CIYQlzVL.js → asset-budget.menu-B2u_1dWR.js} +1 -1
- package/dist/assets/{asset-editor-persistence-FoI6VqbB.js → asset-editor-persistence-e6bYhVnm.js} +1 -1
- package/dist/assets/{asset-loaders-DIhOedSj.js → asset-loaders-Bsq-3hNt.js} +1 -1
- package/dist/assets/{asset-preview-J56EM7ai.js → asset-preview-B7j9QV6N.js} +1 -1
- package/dist/assets/{audio-unlock.service-CQhkc6fU.js → audio-unlock.service-7oO4YVIj.js} +1 -1
- package/dist/assets/{audio.utility-ZTVc6wlz.js → audio.utility-9fcsT3YY.js} +1 -1
- package/dist/assets/autoplay.service-DncOrn-K.js +1 -0
- package/dist/assets/{babylon-authoring-adapter-qU-GP8QL.js → babylon-authoring-adapter-BJfYxqDM.js} +1 -1
- package/dist/assets/{binding-resolver-iMKdp_Dm.js → binding-resolver-CBXePHiR.js} +2 -2
- package/dist/assets/{blender-emscripten-engine-CieQeF-r.js → blender-emscripten-engine-DQljvfR7.js} +1 -1
- package/dist/assets/{blender-node-editor.document-BktVlaBT.js → blender-node-editor.document-xA7eGv3-.js} +1 -1
- package/dist/assets/{blender-properties-tab-Bi7EkqZ4.js → blender-properties-tab-nY8UOQUL.js} +1 -1
- package/dist/assets/blender-runtime-host-CcqXT39s.js +4 -0
- package/dist/assets/{blender-runtime-skin-DGPSGVTB.js → blender-runtime-skin-D3Arti9-.js} +1 -1
- package/dist/assets/blender-runtime.document-DDW5jIJe.js +12 -0
- package/dist/assets/{blender-timeline.document-BdKv86rL.js → blender-timeline.document-DXoQ7y8E.js} +1 -1
- package/dist/assets/{blender-uv-editor.document-B8KDPYF0.js → blender-uv-editor.document-CMOyob1N.js} +1 -1
- package/dist/assets/{blender-version.status-Tujyesw9.js → blender-version.status-16xnuezC.js} +1 -1
- package/dist/assets/{blender-wali-engine-KWIxfB_o.js → blender-wali-engine-CO-jG_ik.js} +1 -1
- package/dist/assets/{blender.command-0Er75bJF.js → blender.command-Br2EUk6Q.js} +1 -1
- package/dist/assets/{board-guides-BvzDdD2y.js → board-guides-whelE-Dr.js} +1 -1
- package/dist/assets/{bridge.command-CRyms6ax.js → bridge.command-T93eURWq.js} +3 -3
- package/dist/assets/{browserAll-DUlxC8yY.js → browserAll-BfZu7-UJ.js} +1 -1
- package/dist/assets/{build-player.document-BuFNx_-Q.js → build-player.document-DJQLP4xM.js} +1 -1
- package/dist/assets/{build-profiles.document-xu8oCc9h.js → build-profiles.document-DNncGOL3.js} +1 -1
- package/dist/assets/{build-progress.status-BPDoYt8o.js → build-progress.status-DnJetNft.js} +1 -1
- package/dist/assets/{build-session-BrAG7tBV.js → build-session-BaEmzCkm.js} +1 -1
- package/dist/assets/{build.action-CCppyLBx.js → build.action-exbllMgM.js} +1 -1
- package/dist/assets/{build.command-Inptj7R-.js → build.command-Imykh8LN.js} +1 -1
- package/dist/assets/{build.header-DXGyFt56.js → build.header-9RzLy3UQ.js} +1 -1
- package/dist/assets/{build.menu-8VNdh6Kh.js → build.menu-CRhA3yID.js} +1 -1
- package/dist/assets/{build.service-B98j6yu1.js → build.service-CxIdSEPw.js} +1 -1
- package/dist/assets/{camera-PuR5cfKw.js → camera-BiBGeQQ4.js} +1 -1
- package/dist/assets/{camera-runtime.inspector-DuLoTNGH.js → camera-runtime.inspector-DmRFynxC.js} +1 -1
- package/dist/assets/{canvas-design-mount-DFvmQJTh.js → canvas-design-mount-DJ6zQJKG.js} +3 -3
- package/dist/assets/{canvas-entry-runtime-BVnhMBaW.js → canvas-entry-runtime-Cjga4XYp.js} +2 -2
- package/dist/assets/{canvas-preview-frames-C-dFTVWu.js → canvas-preview-frames-EoYgD6W4.js} +1 -1
- package/dist/assets/{canvas-story-capture.service-Bg4fphDj.js → canvas-story-capture.service-D5UntNCd.js} +2 -2
- package/dist/assets/{capability-coverage-B0oT2N3Z.js → capability-coverage-9qm5WVwt.js} +1 -1
- package/dist/assets/{collaboration-presence-CP5gEnxY.js → collaboration-presence-Q6zcL5v0.js} +1 -1
- package/dist/assets/{collider-DrfGXvUO.js → collider-CTHtUvnl.js} +1 -1
- package/dist/assets/{component-board.service-mzEFwa--.js → component-board.service-Bf-ETQF0.js} +2 -2
- package/dist/assets/{component-board.service-MhNc_Ru3.js → component-board.service-foqmr9Ii.js} +2 -2
- package/dist/assets/{component-board.service-CvEW_Te9.js → component-board.service-yIS2UB-T.js} +2 -2
- package/dist/assets/{component-contracts.service-zrpqDXgQ.js → component-contracts.service-Do9hADdW.js} +1 -1
- package/dist/assets/{component-instance-root-BpMFxtbQ.js → component-instance-root-MBgAuUpp.js} +1 -1
- package/dist/assets/{component-verbs.command-8Kl0HNWX.js → component-verbs.command-DtMdPuyO.js} +1 -1
- package/dist/assets/{component-verbs.service-CxZFYomt.js → component-verbs.service-CJYq28Zw.js} +1 -1
- package/dist/assets/{config-BKyBW2FV.js → config-B6tt9xy3.js} +2 -2
- package/dist/assets/{configurations-B391DE84.js → configurations-BcYOQ7i-.js} +1 -1
- package/dist/assets/{connection.status-CDK2Dxmh.js → connection.status-BNPvWdJD.js} +1 -1
- package/dist/assets/{constraints.inspector-BvDktIDy.js → constraints.inspector-DoOn25Lk.js} +1 -1
- package/dist/assets/{content-bounds-BM2BJV41.js → content-bounds-BFpR_e--.js} +1 -1
- package/dist/assets/{contract-system-adapters-Dv5mUMr_.js → contract-system-adapters-BRHtWOi_.js} +1 -1
- package/dist/assets/{coverage.service-BLbBH9i2.js → coverage.service-BB1XhwsL.js} +1 -1
- package/dist/assets/{create-runtime-BvzMRqkg.js → create-runtime-B6u6x5eK.js} +1 -1
- package/dist/assets/{curve-BbX4M8ka.js → curve-D11mIGoN.js} +1 -1
- package/dist/assets/{data-asset-DEfrCU5L.js → data-asset-DejEwzXj.js} +1 -1
- package/dist/assets/{data-ref-CwypqVYb.js → data-ref-DJNVzksb.js} +1 -1
- package/dist/assets/{debug-bridge-B3ag_ARb.js → debug-bridge-DlGIEyTc.js} +1 -1
- package/dist/assets/{debug-registry-DlrL6r1z.js → debug-registry-Dagj3b6J.js} +1 -1
- package/dist/assets/{deferred-ingest-play-tx7qVcg3.js → deferred-ingest-play-DZiOEH9a.js} +2 -2
- package/dist/assets/{design-time-canvas-mount-L1S8lY0u.js → design-time-canvas-mount-Cpb_jITI.js} +2 -2
- package/dist/assets/{design-time-layers-DxZgHWM2.js → design-time-layers-DT4X-pJp.js} +1 -1
- package/dist/assets/{design-time-mount.service-Bo9K8hZb.js → design-time-mount.service-Ck5Hjxtn.js} +2 -2
- package/dist/assets/{design-time-mount.service-DVYJJr4l.js → design-time-mount.service-DEa-41ij.js} +2 -2
- package/dist/assets/{design-time-react-mount-Cw_YU4iA.js → design-time-react-mount-DCTpYS51.js} +1 -1
- package/dist/assets/{document-preview-three-BS7op9Kh.js → document-preview-three-TjlxMDBR.js} +1 -1
- package/dist/assets/{dom-authoring-adapter-DeVD6HLk.js → dom-authoring-adapter-C3ZsI41l.js} +1 -1
- package/dist/assets/{draco3d-_8eRv2Qk.js → draco3d-Ddr7J1sS.js} +1 -1
- package/dist/assets/{edit-mode-audio.service-BO6CbCXN.js → edit-mode-audio.service-D047aZ6I.js} +1 -1
- package/dist/assets/{edit-mode-authoring-RAf4S6PI.js → edit-mode-authoring-DubxVdEM.js} +1 -1
- package/dist/assets/{edit-mode-networking.service-QiUNWbxh.js → edit-mode-networking.service-DitjC2ZL.js} +1 -1
- package/dist/assets/{editor-api-B_UrHHhL.js → editor-api-CPh65aBN.js} +1 -1
- package/dist/assets/{editor-layers-C47WUNtv.js → editor-layers-BK3fNRb7.js} +1 -1
- package/dist/assets/{editor-shell-store-B-64vpgA.js → editor-shell-store-Bro0arjr.js} +1 -1
- package/dist/assets/{entity-object-DBXB7ABG.js → entity-object-BFppZ54X.js} +1 -1
- package/dist/assets/{extend-hLINO4Zy.js → extend-MkXq6t1H.js} +1 -1
- package/dist/assets/{fork-menu-BWis777M.js → fork-menu-DzoCyQvA.js} +1 -1
- package/dist/assets/{frame-debugger-store-CiuSELDU.js → frame-debugger-store-xbOH83D0.js} +1 -1
- package/dist/assets/{game-contract-seams-D4x_QFfy.js → game-contract-seams-5IUqvr7b.js} +1 -1
- package/dist/assets/{game-css-scope-transform-BFCy45PO.js → game-css-scope-transform-DDAoTvZQ.js} +1 -1
- package/dist/assets/{game-document.service-LgRTA5er.js → game-document.service-CxfiFnxt.js} +1 -1
- package/dist/assets/{game-eval.command-i4tbTEzA.js → game-eval.command-DcFoKUe7.js} +1 -1
- package/dist/assets/{game-module-access-CmfN4vfG.js → game-module-access-ABBzTWg7.js} +1 -1
- package/dist/assets/{game-network-Bs_aLrfo.js → game-network-BPTyOFqA.js} +3 -3
- package/dist/assets/{gameplay-export-DMycxmRI.js → gameplay-export-CRnHCUBb.js} +1 -1
- package/dist/assets/{gameplay-replay-CQwJHBcQ.js → gameplay-replay-yPaMxi2o.js} +1 -1
- package/dist/assets/{gameplay.command-DwbIk4qS.js → gameplay.command-qdQLKC3A.js} +1 -1
- package/dist/assets/{generation-jobs-DHR06-Ow.js → generation-jobs-Cy1oE-Ff.js} +1 -1
- package/dist/assets/{generation.service-C3sjmS56.js → generation.service-CdwRWoIV.js} +1 -1
- package/dist/assets/{generations-QDWWr3sT.js → generations-nW4LG5qG.js} +1 -1
- package/dist/assets/{generations.status-8UpzzSN6.js → generations.status-DgjVrgGL.js} +1 -1
- package/dist/assets/{hierarchy-marks-DDRF3quV.js → hierarchy-marks-Pb6wnNcu.js} +1 -1
- package/dist/assets/{hosted-asset-materialization-DFetjs7r.js → hosted-asset-materialization-BCnTLunr.js} +1 -1
- package/dist/assets/{index-BlOoiZ_I.js → index-BPuw4yre.js} +1 -1
- package/dist/assets/{index-DGgVCKlK.js → index-BYoN6-Qw.js} +1 -1
- package/dist/assets/{index-DL3yQMTk.js → index-BlWeDGvp.js} +2 -2
- package/dist/assets/{index-Cdjg29qG.js → index-Bz4YDJ7o.js} +1 -1
- package/dist/assets/{index-CkpBXMDJ.js → index-CaZZDx3x.js} +1 -1
- package/dist/assets/{index-JjEYIC4G.js → index-CvGsVzTo.js} +7 -7
- package/dist/assets/{index-CUyoEnie.js → index-D7q1gYjq.js} +1 -1
- package/dist/assets/{index-DZg4GXi0.js → index-Db2ixdvK.js} +1 -1
- package/dist/assets/{index-DxV6Akny.js → index-Ds9fZyOU.js} +1 -1
- package/dist/assets/{inference-diagnostics-kHRsQw1P.js → inference-diagnostics-BCwXk-CS.js} +1 -1
- package/dist/assets/{ingest-boot-viewport-BO7yl504.js → ingest-boot-viewport-BPER30gQ.js} +1 -1
- package/dist/assets/{ingest-siblings-C-RhYsUb.js → ingest-siblings-2QHhcCgA.js} +1 -1
- package/dist/assets/{ingest-source-persistence-B52PvpPx.js → ingest-source-persistence-CPlDA2D8.js} +1 -1
- package/dist/assets/{ingest.service-CXx-aW-5.js → ingest.service-BhwFGlqY.js} +1 -1
- package/dist/assets/{inspect-KwcXV5-u.js → inspect-DxfAFkho.js} +1 -1
- package/dist/assets/instances.command-BJ-I9vtW.js +1 -0
- package/dist/assets/{json-history-resource-B0kkSep8.js → json-history-resource-CckDydoO.js} +1 -1
- package/dist/assets/{layered-pick-ClYksj6v.js → layered-pick-BaxBYi7u.js} +1 -1
- package/dist/assets/{light-C33qOzVd.js → light-DF4nTzTq.js} +1 -1
- package/dist/assets/{live-project-verbs-CIlCfET4.js → live-project-verbs-B7S-wGjC.js} +1 -1
- package/dist/assets/{machine.document-KKGimt_o.js → machine.document-DaPLAXaa.js} +1 -1
- package/dist/assets/{machines.finder-DA-qVsE-.js → machines.finder-C9s8SFtp.js} +1 -1
- package/dist/assets/{material-factory-DIU9do_v.js → material-factory-CCcnlv8E.js} +1 -1
- package/dist/assets/{material-BPlHfj-y.js → material-rGFsBrD0.js} +1 -1
- package/dist/assets/{mesh-D3gE3KD_.js → mesh-CVBvSsCX.js} +1 -1
- package/dist/assets/{model-asset-sections.service-HoRKwaP6.js → model-asset-sections.service-vVRv6iOD.js} +1 -1
- package/dist/assets/{model-inspection-BMy0MuzJ.js → model-inspection-Dd-hn5v2.js} +1 -1
- package/dist/assets/{model-thumbnail-ICdHSiW1.js → model-thumbnail-BDU_QU37.js} +1 -1
- package/dist/assets/{models.finder-DvULfruZ.js → models.finder-CQMZz5xX.js} +1 -1
- package/dist/assets/{module-mode-BTXto0oj.js → module-mode-DcBz3aI7.js} +2 -2
- package/dist/assets/{mount-canvas-ingest-root-BFQfgTuE.js → mount-canvas-ingest-root-DMWeT_c3.js} +2 -2
- package/dist/assets/{mount-dom-ingest-root-C4Deoodh.js → mount-dom-ingest-root-Bx1TmleJ.js} +2 -2
- package/dist/assets/{mount-ingest-root-BnX5FYpQ.js → mount-ingest-root-BDP8atUq.js} +2 -2
- package/dist/assets/{mount-manifest-CK1RiS8E.js → mount-manifest-C5QVCZlS.js} +1 -1
- package/dist/assets/{mount-three-ingest-root-C6pYTH-h.js → mount-three-ingest-root-DSmhgOJn.js} +1 -1
- package/dist/assets/{mounted-authoring-BRmJcses.js → mounted-authoring-D-tXkNKH.js} +1 -1
- package/dist/assets/{mounted-story-viewport-source-DghPnLY9.js → mounted-story-viewport-source-Snu9yn1n.js} +1 -1
- package/dist/assets/{native-debug-module-ojTkP52T.js → native-debug-module-XfhvyMrK.js} +1 -1
- package/dist/assets/{navigation-CTZYysxE.js → navigation-CTTcWe0R.js} +1 -1
- package/dist/assets/{navmesh.menu-COJ77FTK.js → navmesh.menu-mFjQ30B0.js} +1 -1
- package/dist/assets/{navmesh.service-tVf8xf8f.js → navmesh.service-BJPp7ZXu.js} +1 -1
- package/dist/assets/network-observer.service-CjeDB1Id.js +1 -0
- package/dist/assets/{network.utility-DNmrBkHK.js → network.utility-C-_7MTIV.js} +1 -1
- package/dist/assets/{object3d-document-session-registry-CIdYrDwO.js → object3d-document-session-registry-CWaOPDYg.js} +2 -2
- package/dist/assets/{oid-transform-BMGB2u8Z.js → oid-transform-Bgdv7kST.js} +1 -1
- package/dist/assets/{particles-CmcHZZqz.js → particles-CHXYb9Jd.js} +1 -1
- package/dist/assets/{pixi-authoring-adapter-BLptyAwL.js → pixi-authoring-adapter-lj5CidSR.js} +1 -1
- package/dist/assets/{pixi-live-write-target-DMGlsQdL.js → pixi-live-write-target-BEL9GCCr.js} +1 -1
- package/dist/assets/{play.command-D0aUzhnI.js → play.command-C9QyYFgv.js} +2 -2
- package/dist/assets/{presentation-BOKcaCle.js → presentation-CmK-bEDi.js} +1 -1
- package/dist/assets/{product-DBhE7XzM.js → product-gjrRHe-K.js} +1 -1
- package/dist/assets/{profiler.action-DFPR0GaW.js → profiler.action-CZ6UQi9A.js} +1 -1
- package/dist/assets/{profiler.menu-Cjq4IMjK.js → profiler.menu-DxbnC3d6.js} +1 -1
- package/dist/assets/{profiler.utility-O_BbyzQ6.js → profiler.utility-BvARl7sM.js} +1 -1
- package/dist/assets/{project-authoring-session-Fg6BVKiU.js → project-authoring-session-CBKXzBlD.js} +2 -2
- package/dist/assets/{properties-bone-constraints.inspector-Df8r9rGo.js → properties-bone-constraints.inspector-Co8UpbhC.js} +1 -1
- package/dist/assets/{properties-bone.inspector-BHOmG-w_.js → properties-bone.inspector-CFXh2lQH.js} +1 -1
- package/dist/assets/{properties-collection.inspector-COUpmMSs.js → properties-collection.inspector-Jq9X8fEq.js} +1 -1
- package/dist/assets/{properties-constraints.inspector-DSDh4Uba.js → properties-constraints.inspector-CMcKD_Jc.js} +1 -1
- package/dist/assets/{properties-data.inspector-DjjFOVxW.js → properties-data.inspector-cP3izSat.js} +1 -1
- package/dist/assets/{properties-material.inspector-DPKY8b2v.js → properties-material.inspector-CrZIovv9.js} +1 -1
- package/dist/assets/{properties-modifiers.inspector-BtNVTrKN.js → properties-modifiers.inspector-DqQMxoiL.js} +1 -1
- package/dist/assets/{properties-object.inspector-DYNpha7x.js → properties-object.inspector-DM63eANJ.js} +1 -1
- package/dist/assets/{properties-output.inspector-CBzwfSQQ.js → properties-output.inspector-B475IBEd.js} +1 -1
- package/dist/assets/{properties-particles.inspector-5DlYLg0u.js → properties-particles.inspector-vGXQ4kWx.js} +1 -1
- package/dist/assets/{properties-physics.inspector-D__Z169g.js → properties-physics.inspector-CfwqpVGS.js} +1 -1
- package/dist/assets/{properties-render.inspector-Dvnehd8j.js → properties-render.inspector-BYLknsM7.js} +1 -1
- package/dist/assets/{properties-scene.inspector-DxGBiL_G.js → properties-scene.inspector-BcIZBfGk.js} +1 -1
- package/dist/assets/{properties-texture.inspector-5qsUhAvc.js → properties-texture.inspector-p3Owurhl.js} +1 -1
- package/dist/assets/{properties-view-layer.inspector-BHv0B73V.js → properties-view-layer.inspector-CN-5jzB9.js} +1 -1
- package/dist/assets/{properties-world.inspector-D53Cc2Fs.js → properties-world.inspector-DVp8fYWx.js} +1 -1
- package/dist/assets/{r3f-design-session-BhddL1e6.js → r3f-design-session-Cyy1sDGH.js} +2 -2
- package/dist/assets/{r3f-physics-binding-D41qQnHD.js → r3f-physics-binding-BcTFD1ZS.js} +1 -1
- package/dist/assets/{r3f-source-authoring-adapter-ZnrWHj5Z.js → r3f-source-authoring-adapter-DVnhzoxp.js} +1 -1
- package/dist/assets/{react-canvas-navigation-DFspvY8K.js → react-canvas-navigation-CBorZtWB.js} +1 -1
- package/dist/assets/{react-inspector.service-Co5AHjHR.js → react-inspector.service-Dc99kogU.js} +1 -1
- package/dist/assets/{react-story-board--jvx8x-C.js → react-story-board-6-BjI32N.js} +1 -1
- package/dist/assets/{react-three-rapier.esm-BS-6eWKp.js → react-three-rapier.esm-BO2XPUEM.js} +1 -1
- package/dist/assets/{react-world-authoring-adapter-CKQ-MAMv.js → react-world-authoring-adapter-B6BiehHR.js} +1 -1
- package/dist/assets/{realm-services-DUEIrJNn.js → realm-services-DCnaxwIb.js} +1 -1
- package/dist/assets/{reflection-probe-capture.inspector-gO0DwTZj.js → reflection-probe-capture.inspector-CWneVfEe.js} +1 -1
- package/dist/assets/{registry-ofLrf5fa.js → registry-BQ9YcFZF.js} +1 -1
- package/dist/assets/{relative-import-specifier-B_Awfdrr.js → relative-import-specifier-BvzqkvYS.js} +1 -1
- package/dist/assets/{render-env-a1pPDP-U.js → render-env-F320_iHT.js} +1 -1
- package/dist/assets/{render-features-CY3KFNVc.js → render-features-DFwHsGxu.js} +1 -1
- package/dist/assets/{render-settings-DgCYPHgH.js → render-settings-BPcHd4LA.js} +1 -1
- package/dist/assets/{resolve-three-fhgJb0Jd.js → resolve-three-CnxafYrg.js} +3 -3
- package/dist/assets/{root-seam-contract-D3r4vEIL.js → root-seam-contract-CueaHgB9.js} +1 -1
- package/dist/assets/{run-selection-DVvs9B9T.js → run-selection-BMQWV9Fn.js} +1 -1
- package/dist/assets/{scene-capture-CCy--ncb.js → scene-capture-DcMYbX9_.js} +1 -1
- package/dist/assets/{scene-document.service-BCliVABQ.js → scene-document.service-CZpLI3b6.js} +2 -2
- package/dist/assets/{scene-framing-B1butaCp.js → scene-framing-nVyYC4Y-.js} +1 -1
- package/dist/assets/{seeded-random-J_tZuhc3.js → seeded-random-D0QPgfm6.js} +1 -1
- package/dist/assets/{session-BMie6EFt.js → session-kSIjcXJT.js} +47 -8
- package/dist/assets/{setup-renderer-DroW21zu.js → setup-renderer-ji8Qt-PP.js} +1 -1
- package/dist/assets/{source-object3d-authoring-adapter-Bansi23s.js → source-object3d-authoring-adapter-owosRx07.js} +1 -1
- package/dist/assets/{source-persistence-backend-B7_XGPrd.js → source-persistence-backend-Djuk0m-7.js} +1 -1
- package/dist/assets/{stage-keyboard-Cj5wm_J_.js → stage-keyboard-G6HMStmP.js} +1 -1
- package/dist/assets/{stage-overlay-set-CddoR5WV.js → stage-overlay-set-ChHqsFiR.js} +1 -1
- package/dist/assets/{stage-presence-markers-B7ikfK7I.js → stage-presence-markers-CQlXR9fX.js} +1 -1
- package/dist/assets/{stage-transform-tools-C9-7W51Q.js → stage-transform-tools-BM9u9Awe.js} +1 -1
- package/dist/assets/{standard-viewport-dressing-BYqJ1RDj.js → standard-viewport-dressing-e4mnLmI6.js} +1 -1
- package/dist/assets/{state-watch.action-Ckl-KiOu.js → state-watch.action-Cv3W67Kr.js} +1 -1
- package/dist/assets/{state-watch.menu-Bua5sNDD.js → state-watch.menu-Cuziz9RM.js} +1 -1
- package/dist/assets/{state-watch.utility-LIkpnIYo.js → state-watch.utility-B1zkFd_6.js} +1 -1
- package/dist/assets/{story-capture-DRezN8hO.js → story-capture-Drqhmo7i.js} +1 -1
- package/dist/assets/{story-documents-QsOjjFN1.js → story-documents-Cjoy-ydN.js} +1 -1
- package/dist/assets/{story-documents.service-s45WvtSH.js → story-documents.service-Csto-LsX.js} +1 -1
- package/dist/assets/{story-documents.service-BBcpnJqG.js → story-documents.service-gVxcUtso.js} +1 -1
- package/dist/assets/{story-media-presence-D3jBkjoV.js → story-media-presence-CYc2fP4y.js} +1 -1
- package/dist/assets/{story-pixi-preview-DR9Z3mjx.js → story-pixi-preview-uA6AevDw.js} +1 -1
- package/dist/assets/{story-presentation-BanrEcxs.js → story-presentation-DgAoj9Qt.js} +1 -1
- package/dist/assets/{story-three-preview-Cc12jMw-.js → story-three-preview-CQYi1rZ_.js} +2 -2
- package/dist/assets/{studio-environment-D3HaysRE.js → studio-environment-DK0ke0m0.js} +1 -1
- package/dist/assets/{surface-state-DgY1sYF4.js → surface-state-DlUcJe84.js} +1 -1
- package/dist/assets/{syntactic-prop-specs-CBGAFjrQ.js → syntactic-prop-specs-92aOVqyZ.js} +1 -1
- package/dist/assets/{team-playtest.service-z2r_7CUE.js → team-playtest.service-CGBismiY.js} +1 -1
- package/dist/assets/{three-authoring-adapter-D-dP-DRa.js → three-authoring-adapter-BuqO9MDt.js} +1 -1
- package/dist/assets/three-authoring.service-CMym8IbB.js +2 -0
- package/dist/assets/{three-CqcAlmZt.js → three-bdxPiUPb.js} +1 -1
- package/dist/assets/{three-ingest-runtime-BOYUnvJa.js → three-ingest-runtime-CwRnwvb0.js} +1 -1
- package/dist/assets/{three-integration-BKGFte0g.js → three-integration-BHoulbny.js} +2 -2
- package/dist/assets/three-integration.service-BlgF9hV3.js +1 -0
- package/dist/assets/{three-projection-core-CMYaSPZP.js → three-projection-core-BO23VKAP.js} +1 -1
- package/dist/assets/{three-state-Bs6NttX2.js → three-state-BhQOBgKC.js} +1 -1
- package/dist/assets/{three-story-capture.service-CV7CaGFK.js → three-story-capture.service-BAtrzxHq.js} +2 -2
- package/dist/assets/{three-story-model-DMsHWVLi.js → three-story-model-D_bo7Gl-.js} +1 -1
- package/dist/assets/{three-viewport-presentation-D8F-c141.js → three-viewport-presentation-CWanX03c.js} +1 -1
- package/dist/assets/{transform-mode-request-nAOkjL7J.js → transform-mode-request-Bg6T_rOC.js} +1 -1
- package/dist/assets/{transport-strip-Do5Y5zz_.js → transport-strip-CFLRAIQd.js} +1 -1
- package/dist/assets/transport.header-B3dK1KaC.js +1 -0
- package/dist/assets/{tuples-T3njUS_v.js → tuples-BKzzn3tK.js} +1 -1
- package/dist/assets/{ui-board-document-Dix9rYE-.js → ui-board-document-DMxgQ-9n.js} +2 -2
- package/dist/assets/{user-data-DcUoY-0j.js → user-data-DfBtZvxw.js} +1 -1
- package/dist/assets/{utility-view-state-BUR2tvAo.js → utility-view-state-CL4NJh3n.js} +1 -1
- package/dist/assets/{viewport-door-Ct3Jwvkd.js → viewport-door-CuJjGYTz.js} +1 -1
- package/dist/assets/{viewport-root-presentation-CM-p4xLg.js → viewport-root-presentation-CkSAEMH-.js} +1 -1
- package/dist/assets/{viewport-surface-status-BlPwrnIq.js → viewport-surface-status-D3t-0oLs.js} +1 -1
- package/dist/assets/{webworkerAll-BbcMGhdJ.js → webworkerAll-DCmB9rsA.js} +1 -1
- package/dist/assets/{worker-Gtu-EAm9.js → worker-CJIsrsP6.js} +1 -1
- package/dist/assets/{workspace-arrangement-D7VBwv9F.js → workspace-arrangement-C9uemwSK.js} +1 -1
- package/dist/assets/{world-documents-g6lvzHMh.js → world-documents-Dvn8e5I0.js} +1 -1
- package/dist/assets/{world-root-stage-binding-DugyiNfT.js → world-root-stage-binding-BB7acZV_.js} +1 -1
- package/dist/assets/{xstate-animation-binding-Qdxeavj_.js → xstate-animation-binding-DctwT981.js} +1 -1
- package/dist/assets/{xstate-animation-meta-CtUROKFq.js → xstate-animation-meta-s4Vc8Wu3.js} +1 -1
- package/dist-node/cli.js +16 -16
- package/package.json +16 -16
- package/dist/assets/InspectorObjectPreview-DA4bXZQD.js +0 -1
- package/dist/assets/Object3DDocumentViewport-BydKspxr.js +0 -2
- package/dist/assets/autoplay.service-CFbSU6Np.js +0 -1
- package/dist/assets/blender-runtime-host-Bw37aE1K.js +0 -4
- package/dist/assets/blender-runtime.document-DwlgMMor.js +0 -12
- package/dist/assets/instances.command--PqjYvLl.js +0 -1
- package/dist/assets/network-observer.service-DZtz0Y5F.js +0 -1
- package/dist/assets/three-authoring.service-BPzGC8dd.js +0 -2
- package/dist/assets/three-integration.service-InYYMues.js +0 -1
- package/dist/assets/transport.header-BhBKpJ9P.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as f,i as c,e as x,u as d}from"./extend-
|
|
1
|
+
import{C as f,i as c,e as x,u as d}from"./extend-MkXq6t1H.js";import{A as z,a as B,c as D}from"./extend-MkXq6t1H.js";import{A as k}from"./index-BlWeDGvp.js";import{r as s}from"./index-nmcBqr7Y.js";import"./jsx-runtime-DPjLkJKQ.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-bQE2NA0D.js";import"./index-D_NuPfjr.js";import"./index-CvGsVzTo.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";function A(){const t=s.useContext(f);return c(t.app instanceof k,"No Context found with `%s`. Make sure to wrap component with `%s`","Application","AppProvider"),t}function R(t){s.useMemo(()=>{x(t)},[t])}function T(t){const{app:p,isInitialised:n}=A();let e,o,i=!0,r;typeof t=="function"?e=t:(e=t.callback,o=t.context,i=t.isEnabled??!0,r=t.priority),c(),d(()=>{if(n){const a=p?.ticker,l=i,m=o,u=e;return i&&a&&a.add(e,o,r),()=>{l&&a?.remove(u,m)}}},[p?.ticker,e,o,i,n,r])}export{z as Application,B as applyProps,D as createRoot,x as extend,A as useApplication,R as useExtend,T as useTick};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cR as nt,aM as st,af as ot,eS as x,dy as U,a0 as at,ho as rt,hp as it}from"./index-JjEYIC4G.js";import{hq as Rt,hr as wt,hs as _t,aR as Nt,dA as Ft,ht as Ot,hu as Ct,hv as kt,hw as Lt,hx as jt,hy as Bt,hz as Gt,eF as Pt,hA as Ht,eX as $t,hB as Vt,hC as zt,hD as Wt,hE as Kt,hF as Jt,d8 as Ut,hG as Yt,dV as qt,a1 as Qt,em as Xt,cK as Zt,g_ as te,hH as ee,hI as ne,cO as se,hJ as oe,hK as ae,hL as re,eV as ie,fb as ce,hM as ue,fc as le,hN as de,cD as pe,hO as fe,aL as he,cM as me,hP as Ee,hQ as xe,hR as Se,cN as ge,e_ as Te,gi as be,cS as De,dj as Me,fH as ye,he as Ae,hS as Ie,aS as ve,hT as Re,hU as we,aT as _e,dh as Ne,hV as Fe,cG as Oe,cL as Ce,ex as ke,hW as Le,hX as je,aK as Be,eY as Ge,hY as Pe,hZ as He,gH as $e,h_ as Ve,cE as ze,h$ as We,i0 as Ke,eo as Je,i1 as Ue,i2 as Ye,i3 as qe,i4 as Qe,i5 as Xe,ek as Ze,el as tn,i6 as en,i7 as nn,i8 as sn,i9 as on,er as an,ia as rn,ib as cn,ic as un,id as ln,ie as dn,a2 as pn,ig as fn,ih as hn,ii as mn,ij as En,ik as xn,il as Sn,es as gn,im as Tn,io as bn,ep as Dn,ip as Mn,iq as yn,ir as An,d9 as In,is as vn,it as Rn,iu as wn,iv as _n,iw as Nn,ix as Fn,iy as On,eT as Cn,iz as kn,iA as Ln,iB as jn,iC as Bn,iD as Gn,iE as Pn,et as Hn,iF as $n,iG as Vn,iH as zn,eZ as Wn,iI as Kn,iJ as Jn,iK as Un,iL as Yn,c$ as qn,en as Qn,iM as Xn,iN as Zn,iO as ts,eq as es,iP as ns,aY as ss,dz as os,iQ as as,iR as rs,iS as is,c_ as cs}from"./index-JjEYIC4G.js";import{C as ls}from"./ColorInput-CsU6nBCb.js";import{a as p}from"./jsx-runtime-DPjLkJKQ.js";import{r as b}from"./index-nmcBqr7Y.js";import{A as ps,k as fs,B as hs,a as ms,l as Es,C as xs,D as Ss,m as gs,F as Ts,h as bs,G as Ds,n as Ms,Q as ys,S as As,f as Is,o as vs,T as Rs,d as ws,c as _s,g as Ns,i as Fs,j as Os,b as Cs,p as ks,e as Ls,u as js,q as Bs}from"./ShadowEditor-ChBlM7up.js";import"./index-CtzuWnCS.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";function Dt({preview:t,children:e,...r}){const[o,a]=b.useState(!1),l=b.useRef(null),c=b.useId(),s=()=>a(!1),d=i=>{l.current=i,a(!0)};let m=e;if(b.isValidElement(e)){const i=[e.props["aria-describedby"],o?c:null].filter(Boolean).join(" ");m=b.cloneElement(e,i?{"aria-describedby":i}:{})}return p.jsxs("span",{className:"volter-tooltip-anchor",onMouseEnter:i=>d(i.currentTarget),onMouseLeave:s,onFocusCapture:i=>d(i.currentTarget),onBlurCapture:i=>{i.currentTarget.contains(i.relatedTarget)||s()},onKeyDown:i=>{i.key!=="Escape"||!o||(i.preventDefault(),i.stopPropagation(),s())},children:[m,o&&l.current&&p.jsx(nt,{...r,anchorRef:l,id:c,role:"tooltip",autoFocusFirst:!1,onDismiss:s,children:t})]})}function Mt({value:t,onCommit:e,style:r,disabled:o=!1}){const a=t===void 0?"":JSON.stringify(t),[l,c]=b.useState(a),[s,d]=b.useState(!1),m=b.useRef(!1);b.useEffect(()=>{c(a),d(!1)},[a]);const i=()=>{if(m.current){m.current=!1;return}if(l===a){d(!1);return}let h;try{h=JSON.parse(l)}catch{d(!0);return}d(!1),e(h)};return p.jsxs("div",{children:[p.jsx(st,{"data-testid":"json-input","aria-invalid":s||void 0,"data-tone":s?"danger":void 0,disabled:o,value:l,onChange:h=>{c(h.target.value),s&&d(!1)},onBlur:i,onKeyDown:h=>{h.key==="Enter"?i():h.key==="Escape"&&(m.current=!0,c(a),d(!1),h.target.blur())},style:r,title:s?"Not valid JSON — nothing written. Fix the JSON or press Escape to revert.":void 0}),s&&p.jsx("div",{"data-testid":"json-input-error",style:{fontSize:"var(--volter-font-sm)",color:ot.semantic.danger,marginTop:2},children:"Not valid JSON — nothing written. Fix the JSON or press Escape to revert."})]})}function v(t,e){return e+1<t.length?t[e+1].start:1}function ct(t){const e=t.map(o=>({time:o.start,value:o.function.p0})),r=t[t.length-1];return r&&e.push({time:1,value:r.function.p3}),e}function G(t){return t.map(e=>({start:e.start,function:{...e.function}}))}const B=.01;function F(t,e,r,o){const a=G(t),l=a.length;if(e<0||e>l)return a;if(e<l){const c=a[e],s=o-c.function.p0;if(c.function.p0=o,c.function.p1+=s,e>0){const d=a[e-1],m=o-d.function.p3;d.function.p3=o,d.function.p2+=m;const i=d.start+B,h=v(a,e)-B;c.start=Math.min(h,Math.max(i,r))}}else{const c=a[l-1],s=o-c.function.p3;c.function.p3=o,c.function.p2+=s}return a}function Y(t,e,r,o){const a=G(t);return r==="out"&&e<a.length?a[e].function.p1=o:r==="in"&&e>0&&e<=a.length&&(a[e-1].function.p2=o),a}function M(t,e,r){return t+(e-t)*r}function yt(t,e){for(let r=0;r<t.length;r++){const o=t[r].start,a=v(t,r);if(e>=o&&e<=a){const l=a>o?(e-o)/(a-o):0,{p0:c,p1:s,p2:d,p3:m}=t[r].function,i=M(c,s,l),h=M(s,d,l),S=M(d,m,l),A=M(i,h,l),I=M(h,S,l);return M(A,I,l)}}return 0}function ut(t,e){for(let r=0;r<t.length;r++){const o=t[r].start,a=v(t,r);if(e<=o+B||e>=a-B||e<o||e>a)continue;const l=(e-o)/(a-o),{p0:c,p1:s,p2:d,p3:m}=t[r].function,i=M(c,s,l),h=M(s,d,l),S=M(d,m,l),A=M(i,h,l),I=M(h,S,l),D=M(A,I,l),g=G(t);return g.splice(r,1,{start:o,function:{p0:c,p1:i,p2:A,p3:D}},{start:e,function:{p0:D,p1:I,p2:S,p3:m}}),g}return t}function q(t,e){if(e<=0||e>=t.length)return t;const r=t[e-1],o=t[e],a=o.start-r.start,l=v(t,e)-o.start,c=a+l;if(c<=0)return t;const s=r.function,d=o.function,m={start:r.start,function:{p0:s.p0,p1:s.p0+(s.p1-s.p0)*(a>0?c/a:1),p2:d.p3+(d.p2-d.p3)*(l>0?c/l:1),p3:d.p3}},i=G(t);return i.splice(e-1,2,m),i}function lt(t){let e=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;for(const o of t)for(const a of[o.function.p0,o.function.p1,o.function.p2,o.function.p3])a<e&&(e=a),a>r&&(r=a);return!Number.isFinite(e)||!Number.isFinite(r)?{min:0,max:1}:{min:e,max:r}}const O=34,Q=6,W=6,dt=14,j=260;function pt(t){return Math.abs(t)>=100?t.toFixed(0):Math.abs(t)>=1?String(Math.round(t*100)/100):String(Math.round(t*1e3)/1e3)}function At({value:t,onChange:e,onChangeEnd:r,disabled:o,height:a=90,color:l,testId:c="curve-editor"}){const[s,d]=b.useState(0),m=b.useRef(null),i=b.useRef(null),h=b.useMemo(()=>ct(t),[t]),S=b.useMemo(()=>{const{min:n,max:u}=lt(t);if(u-n<1e-6)return{min:n-1,max:u+1};const f=(u-n)*.1;return{min:n-f,max:u+f}},[t]),A=j-O-Q,I=a-W-dt,D=n=>O+n*A,g=n=>W+(1-(n-S.min)/(S.max-S.min))*I,X=n=>Math.max(0,Math.min(1,(n-O)/A)),Z=n=>S.min+(1-(n-W)/I)*(S.max-S.min),P=n=>{const u=m.current?.getBoundingClientRect();if(!u)return{t:0,v:0};const f=(n.clientX-u.left)/u.width*j,T=(n.clientY-u.top)/u.height*a;return{t:X(f),v:Z(T)}},tt=b.useMemo(()=>{if(t.length===0)return"";let n=`M ${D(t[0].start)} ${g(t[0].function.p0)}`;for(let u=0;u<t.length;u++){const f=t[u],T=v(t,u),y=T-f.start;n+=` C ${D(f.start+y/3)} ${g(f.function.p1)}, ${D(f.start+2*y/3)} ${g(f.function.p2)}, ${D(T)} ${g(f.function.p3)}`}return n},[t,S,a]),R=n=>rt({onChange:e,onChangeEnd:r},n),H=n=>it({onChange:e},n),$=(n,u)=>{if(o)return;n.preventDefault(),n.stopPropagation(),i.current=t;const f=y=>{const{t:N,v:z}=P(y),L=u(i.current??t,N,z);i.current=L,H(L)},T=y=>{const{t:N,v:z}=P(y),L=u(i.current??t,N,z);i.current=null,R(L),window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",T)};window.addEventListener("pointermove",f),window.addEventListener("pointerup",T)},K=l??x.accent,J=t.length,E=h[s],V=s>0&&s<J,C=s<J?t[s]:void 0,k=s>0?t[s-1]:void 0,w=C?{x:D(C.start+(v(t,s)-C.start)/3),y:g(C.function.p1)}:null,_=k?{x:D(k.start+(v(t,s-1)-k.start)*2/3),y:g(k.function.p2)}:null,et=[S.min,(S.min+S.max)/2,S.max];return p.jsxs("div",{"data-testid":c,children:[p.jsxs("svg",{ref:m,"data-testid":`${c}-plot`,viewBox:`0 0 ${j} ${a}`,style:{width:"100%",height:a,display:"block",background:x.inputBg,border:`1px solid ${x.border}`,borderRadius:x.radiusSmall,touchAction:"none",outline:"none"},tabIndex:0,role:"application","aria-label":"Curve editor",onKeyDown:n=>{(n.key==="Delete"||n.key==="Backspace")&&V&&!o&&(n.preventDefault(),R(q(t,s)),d(Math.max(0,s-1)))},onDoubleClick:n=>{if(o)return;const{t:u}=P(n),f=ut(t,u);f!==t&&(R(f),d(f.findIndex(T=>Math.abs(T.start-u)<1e-6)))},children:[et.map(n=>p.jsxs("g",{children:[p.jsx("line",{x1:O,x2:j-Q,y1:g(n),y2:g(n),stroke:x.border,strokeWidth:.5}),p.jsx("text",{x:O-3,y:g(n)+2.5,fontSize:7,fill:x.textMuted,textAnchor:"end",children:pt(n)})]},n)),[0,.5,1].map(n=>p.jsx("text",{x:D(n),y:a-3,fontSize:7,fill:x.textMuted,textAnchor:"middle",children:n},n)),p.jsx("path",{d:tt,fill:"none",stroke:K,strokeWidth:1.5}),E&&w&&p.jsxs("g",{children:[p.jsx("line",{x1:D(E.time),y1:g(E.value),x2:w.x,y2:w.y,stroke:x.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-out`,cx:w.x,cy:w.y,r:3,fill:x.surface,stroke:x.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>Y(u,s,"out",T))})]}),E&&_&&p.jsxs("g",{children:[p.jsx("line",{x1:D(E.time),y1:g(E.value),x2:_.x,y2:_.y,stroke:x.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-in`,cx:_.x,cy:_.y,r:3,fill:x.surface,stroke:x.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>Y(u,s,"in",T))})]}),h.map((n,u)=>p.jsx("circle",{"data-testid":`${c}-key-${u}`,cx:D(n.time),cy:g(n.value),r:4,fill:u===s?x.accent:x.surface,stroke:u===s?x.onAccent:K,strokeWidth:1.25,style:{cursor:o?"not-allowed":"move"},onPointerDown:f=>{d(u),$(f,(T,y,N)=>F(T,u,y,N))}},u))]}),p.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center",marginTop:3},children:[p.jsxs("span",{style:{fontSize:9,color:x.textMuted,flex:"0 0 auto"},children:["Key ",s+1,"/",h.length]}),p.jsx(U,{label:"t",value:E?Math.round(E.time*1e3)/1e3:null,step:.05,testId:`${c}-key-time`,onChange:n=>{E&&H(F(t,s,n,E.value))},onChangeEnd:n=>{E&&R(F(t,s,n,E.value))}}),p.jsx(U,{label:"v",value:E?Math.round(E.value*1e3)/1e3:null,step:.05,testId:`${c}-key-value`,onChange:n=>{E&&H(F(t,s,E.time,n))},onChangeEnd:n=>{E&&R(F(t,s,E.time,n))}}),p.jsx(at,{type:"button",variant:"ghost",size:"compact","data-testid":`${c}-delete-key`,disabled:!V||o===!0,"aria-label":"Delete curve key",title:V?"Delete key":"Endpoint keys cannot be deleted",onClick:()=>{R(q(t,s)),d(Math.max(0,s-1))},children:"×"})]})]})}export{Rt as Actions,ps as AlignmentGrid,fs as AnchorPresets,nt as AnchoredMenu,wt as AssetSlotPicker,hs as BorderEditor,ms as BorderRadiusEditor,at as Button,_t as CLASSIC_MATERIAL,Nt as Checkbox,ls as ColorInput,Es as ColorPicker,xs as ColorSwatch,Ft as ColorSwatchInput,At as CurveEditor,Ot as DEFAULT_ICON_SET_ID,Ss as DEFAULT_SHADOW,gs as DEFAULT_TEXT_SHADOW,Ct as Dialog,kt as DialogBody,Lt as DialogField,jt as DialogFieldLabel,Bt as DialogFooter,Gt as DialogHeader,Pt as DisclosureIcon,Ht as Divider,$t as DraftTextInput,Vt as DropIndicator,zt as EDITOR_CATEGORY_NAMES,Wt as EDITOR_MATERIALS,Kt as EDITOR_MATERIAL_IDS,Jt as EDITOR_REGION_NAMES,Ut as EDITOR_THEME_CLASS,Yt as EditorBadge,qt as EditorBanner,Qt as EditorIcon,Xt as EditorListButton,Zt as EditorPopover,te as EditorSurface,ee as EditorTab,ne as EditorTabList,se as EditorToolbar,oe as EditorTree,ae as EditorTreeRow,re as FONT,ie as FONT_MONO,ce as FieldGroup,ue as FieldLabel,le as FieldRow,de as FileInput,Ts as FilterEditor,pe as FloatingToolbar,bs as FontPicker,fe as GLASS_MATERIAL,Ds as GradientEditor,Ms as GradientStopsTrack,Dt as HoverPreview,he as IconButton,me as Inline,Ee as InteractiveEditScopeContext,xe as JoinedField,Se as JoinedFieldSuffix,Mt as JsonInput,ge as Keycap,Te as LABEL_COL_WIDTH,be as Menu,De as MenuItem,Me as MenuSeparator,ye as MenuSubmenu,Ae as MenuTrigger,U as NumberInput,Ie as Panel,ys as QuarksGradientEditor,ve as RangeInput,Re as ResizeHandle,we as STAGE_WORD_MODES,As as ScrubbableInput,_e as SectionHeader,Ne as Select,Is as ShadowEditor,vs as ShadowListEditor,Fe as Spacer,Oe as SplitButtonGroup,Ce as Stack,ke as StateSurface,x as THEME,Le as TONE_ERROR,je as TONE_WARNING,Be as Text,Ge as TextArea,st as TextInput,Rs as TextShadowEditor,Pe as ThemeRootPortal,He as ToggleButton,$e as ToolbarDivider,Ve as ToolbarGroup,ze as Tooltip,We as TreeDisclosureIcon,Ke as Vec3Input,Je as accent,Ue as accentMuted,Ye as activeIconGlyph,qe as activeIconSetSnapshot,Qe as applyEditorTheme,Xe as areaEmbossValue,Ze as bg,tn as border,en as chromeSize,nn as clampRectToViewport,sn as composeEditorAppearance,ws as composeFilter,_s as composeGradient,Ns as composeShadows,on as controlSize,ct as curveKeys,lt as curveValueRange,an as danger,rn as dangerFaint,cn as dangerMuted,q as deleteKey,un as dynamic,ln as dynamicBg,dn as editorIconSets,pn as editorIcons,fn as editorMaterials,hn as editorThemeVariables,mn as editorThemes,En as fieldLabelStyle,it as fireChange,rt as fireEnd,xn as focusFirstMenuItem,Sn as focusRing,gn as fontMono,Tn as fontSans,bn as fontSize,Dn as fontSizeVar,Mn as fontWeight,yn as glassDarkEditorTheme,An as glassDarkLiteEditorTheme,In as graphiteDarkEditorTheme,vn as graphiteNeutralEditorTheme,Rn as groupLabelStyle,wn as iconSize,_n as isEditorIconSetId,Nn as isEditorMaterialId,Fn as isEditorThemeId,Fs as isUniformBorder,Os as isUniformRadius,On as lineHeight,Cn as lineHeightVar,kn as liquidGlassEditorTheme,Ln as liquidGlassLiteEditorTheme,jn as midnightHighContrastEditorTheme,Bn as motion,Gn as motionVar,F as moveKey,Y as moveTangent,Cs as parseFilterFunctions,ks as parseGradient,Pn as parseNumericValue,Ls as parseShadows,Hn as radius,$n as regionRowAltValue,Vn as registerContributedIconSet,zn as registerContributedMaterial,Wn as rowStyle,yt as sampleCurve,Kn as scrim,v as segmentEnd,Jn as selection,Un as setActiveIconSet,Yn as shadow,qn as space,Qn as spaceVar,ut as splitAt,Xn as strokeWidth,Zn as subscribeEditorMaterials,ts as subscribeIconSets,es as success,ns as successMuted,ss as text,ot as themeVars,js as uniformBorder,Bs as uniformRadius,os as useInteractiveEditScope,as as usesGlassMaterial,rs as warn,is as warnMuted,cs as zIndex};
|
|
1
|
+
import{cR as nt,aM as st,af as ot,eS as x,dy as U,a0 as at,hm as rt,hn as it}from"./index-CvGsVzTo.js";import{ho as Rt,hp as wt,hq as _t,aR as Nt,dA as Ft,hr as Ot,hs as Ct,ht as kt,hu as Lt,hv as jt,hw as Bt,hx as Gt,eF as Pt,hy as Ht,eX as $t,hz as Vt,hA as zt,hB as Wt,hC as Kt,hD as Jt,d8 as Ut,hE as Yt,dV as qt,a1 as Qt,em as Xt,cK as Zt,g_ as te,hF as ee,hG as ne,cO as se,hH as oe,hI as ae,hJ as re,eV as ie,fb as ce,hK as ue,fc as le,hL as de,cD as pe,hM as fe,aL as he,cM as me,hN as Ee,hO as xe,hP as Se,cN as ge,e_ as Te,gi as be,cS as De,dj as Me,fH as ye,hQ as Ae,hR as Ie,aS as ve,hS as Re,hT as we,aT as _e,dh as Ne,hU as Fe,cG as Oe,cL as Ce,ex as ke,hV as Le,hW as je,aK as Be,eY as Ge,hX as Pe,hY as He,gH as $e,hZ as Ve,cE as ze,h_ as We,h$ as Ke,eo as Je,i0 as Ue,i1 as Ye,i2 as qe,i3 as Qe,i4 as Xe,ek as Ze,el as tn,i5 as en,i6 as nn,i7 as sn,i8 as on,er as an,i9 as rn,ia as cn,ib as un,ic as ln,id as dn,a2 as pn,ie as fn,ig as hn,ih as mn,ii as En,ij as xn,ik as Sn,es as gn,il as Tn,im as bn,ep as Dn,io as Mn,ip as yn,iq as An,d9 as In,ir as vn,is as Rn,it as wn,iu as _n,iv as Nn,iw as Fn,ix as On,eT as Cn,iy as kn,iz as Ln,iA as jn,iB as Bn,iC as Gn,iD as Pn,et as Hn,iE as $n,iF as Vn,iG as zn,eZ as Wn,iH as Kn,iI as Jn,iJ as Un,iK as Yn,c$ as qn,en as Qn,iL as Xn,iM as Zn,iN as ts,eq as es,iO as ns,aY as ss,dz as os,iP as as,iQ as rs,iR as is,c_ as cs}from"./index-CvGsVzTo.js";import{C as ls}from"./ColorInput-fX1V5l8_.js";import{a as p}from"./jsx-runtime-DPjLkJKQ.js";import{r as b}from"./index-nmcBqr7Y.js";import{A as ps,k as fs,B as hs,a as ms,l as Es,C as xs,D as Ss,m as gs,F as Ts,h as bs,G as Ds,n as Ms,Q as ys,S as As,f as Is,o as vs,T as Rs,d as ws,c as _s,g as Ns,i as Fs,j as Os,b as Cs,p as ks,e as Ls,u as js,q as Bs}from"./ShadowEditor-DXxVxTzk.js";import"./index-CtzuWnCS.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";function Dt({preview:t,children:e,...r}){const[o,a]=b.useState(!1),l=b.useRef(null),c=b.useId(),s=()=>a(!1),d=i=>{l.current=i,a(!0)};let m=e;if(b.isValidElement(e)){const i=[e.props["aria-describedby"],o?c:null].filter(Boolean).join(" ");m=b.cloneElement(e,i?{"aria-describedby":i}:{})}return p.jsxs("span",{className:"volter-tooltip-anchor",onMouseEnter:i=>d(i.currentTarget),onMouseLeave:s,onFocusCapture:i=>d(i.currentTarget),onBlurCapture:i=>{i.currentTarget.contains(i.relatedTarget)||s()},onKeyDown:i=>{i.key!=="Escape"||!o||(i.preventDefault(),i.stopPropagation(),s())},children:[m,o&&l.current&&p.jsx(nt,{...r,anchorRef:l,id:c,role:"tooltip",autoFocusFirst:!1,onDismiss:s,children:t})]})}function Mt({value:t,onCommit:e,style:r,disabled:o=!1}){const a=t===void 0?"":JSON.stringify(t),[l,c]=b.useState(a),[s,d]=b.useState(!1),m=b.useRef(!1);b.useEffect(()=>{c(a),d(!1)},[a]);const i=()=>{if(m.current){m.current=!1;return}if(l===a){d(!1);return}let h;try{h=JSON.parse(l)}catch{d(!0);return}d(!1),e(h)};return p.jsxs("div",{children:[p.jsx(st,{"data-testid":"json-input","aria-invalid":s||void 0,"data-tone":s?"danger":void 0,disabled:o,value:l,onChange:h=>{c(h.target.value),s&&d(!1)},onBlur:i,onKeyDown:h=>{h.key==="Enter"?i():h.key==="Escape"&&(m.current=!0,c(a),d(!1),h.target.blur())},style:r,title:s?"Not valid JSON — nothing written. Fix the JSON or press Escape to revert.":void 0}),s&&p.jsx("div",{"data-testid":"json-input-error",style:{fontSize:"var(--volter-font-sm)",color:ot.semantic.danger,marginTop:2},children:"Not valid JSON — nothing written. Fix the JSON or press Escape to revert."})]})}function v(t,e){return e+1<t.length?t[e+1].start:1}function ct(t){const e=t.map(o=>({time:o.start,value:o.function.p0})),r=t[t.length-1];return r&&e.push({time:1,value:r.function.p3}),e}function G(t){return t.map(e=>({start:e.start,function:{...e.function}}))}const B=.01;function F(t,e,r,o){const a=G(t),l=a.length;if(e<0||e>l)return a;if(e<l){const c=a[e],s=o-c.function.p0;if(c.function.p0=o,c.function.p1+=s,e>0){const d=a[e-1],m=o-d.function.p3;d.function.p3=o,d.function.p2+=m;const i=d.start+B,h=v(a,e)-B;c.start=Math.min(h,Math.max(i,r))}}else{const c=a[l-1],s=o-c.function.p3;c.function.p3=o,c.function.p2+=s}return a}function Y(t,e,r,o){const a=G(t);return r==="out"&&e<a.length?a[e].function.p1=o:r==="in"&&e>0&&e<=a.length&&(a[e-1].function.p2=o),a}function M(t,e,r){return t+(e-t)*r}function yt(t,e){for(let r=0;r<t.length;r++){const o=t[r].start,a=v(t,r);if(e>=o&&e<=a){const l=a>o?(e-o)/(a-o):0,{p0:c,p1:s,p2:d,p3:m}=t[r].function,i=M(c,s,l),h=M(s,d,l),S=M(d,m,l),A=M(i,h,l),I=M(h,S,l);return M(A,I,l)}}return 0}function ut(t,e){for(let r=0;r<t.length;r++){const o=t[r].start,a=v(t,r);if(e<=o+B||e>=a-B||e<o||e>a)continue;const l=(e-o)/(a-o),{p0:c,p1:s,p2:d,p3:m}=t[r].function,i=M(c,s,l),h=M(s,d,l),S=M(d,m,l),A=M(i,h,l),I=M(h,S,l),D=M(A,I,l),g=G(t);return g.splice(r,1,{start:o,function:{p0:c,p1:i,p2:A,p3:D}},{start:e,function:{p0:D,p1:I,p2:S,p3:m}}),g}return t}function q(t,e){if(e<=0||e>=t.length)return t;const r=t[e-1],o=t[e],a=o.start-r.start,l=v(t,e)-o.start,c=a+l;if(c<=0)return t;const s=r.function,d=o.function,m={start:r.start,function:{p0:s.p0,p1:s.p0+(s.p1-s.p0)*(a>0?c/a:1),p2:d.p3+(d.p2-d.p3)*(l>0?c/l:1),p3:d.p3}},i=G(t);return i.splice(e-1,2,m),i}function lt(t){let e=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;for(const o of t)for(const a of[o.function.p0,o.function.p1,o.function.p2,o.function.p3])a<e&&(e=a),a>r&&(r=a);return!Number.isFinite(e)||!Number.isFinite(r)?{min:0,max:1}:{min:e,max:r}}const O=34,Q=6,W=6,dt=14,j=260;function pt(t){return Math.abs(t)>=100?t.toFixed(0):Math.abs(t)>=1?String(Math.round(t*100)/100):String(Math.round(t*1e3)/1e3)}function At({value:t,onChange:e,onChangeEnd:r,disabled:o,height:a=90,color:l,testId:c="curve-editor"}){const[s,d]=b.useState(0),m=b.useRef(null),i=b.useRef(null),h=b.useMemo(()=>ct(t),[t]),S=b.useMemo(()=>{const{min:n,max:u}=lt(t);if(u-n<1e-6)return{min:n-1,max:u+1};const f=(u-n)*.1;return{min:n-f,max:u+f}},[t]),A=j-O-Q,I=a-W-dt,D=n=>O+n*A,g=n=>W+(1-(n-S.min)/(S.max-S.min))*I,X=n=>Math.max(0,Math.min(1,(n-O)/A)),Z=n=>S.min+(1-(n-W)/I)*(S.max-S.min),P=n=>{const u=m.current?.getBoundingClientRect();if(!u)return{t:0,v:0};const f=(n.clientX-u.left)/u.width*j,T=(n.clientY-u.top)/u.height*a;return{t:X(f),v:Z(T)}},tt=b.useMemo(()=>{if(t.length===0)return"";let n=`M ${D(t[0].start)} ${g(t[0].function.p0)}`;for(let u=0;u<t.length;u++){const f=t[u],T=v(t,u),y=T-f.start;n+=` C ${D(f.start+y/3)} ${g(f.function.p1)}, ${D(f.start+2*y/3)} ${g(f.function.p2)}, ${D(T)} ${g(f.function.p3)}`}return n},[t,S,a]),R=n=>rt({onChange:e,onChangeEnd:r},n),H=n=>it({onChange:e},n),$=(n,u)=>{if(o)return;n.preventDefault(),n.stopPropagation(),i.current=t;const f=y=>{const{t:N,v:z}=P(y),L=u(i.current??t,N,z);i.current=L,H(L)},T=y=>{const{t:N,v:z}=P(y),L=u(i.current??t,N,z);i.current=null,R(L),window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",T)};window.addEventListener("pointermove",f),window.addEventListener("pointerup",T)},K=l??x.accent,J=t.length,E=h[s],V=s>0&&s<J,C=s<J?t[s]:void 0,k=s>0?t[s-1]:void 0,w=C?{x:D(C.start+(v(t,s)-C.start)/3),y:g(C.function.p1)}:null,_=k?{x:D(k.start+(v(t,s-1)-k.start)*2/3),y:g(k.function.p2)}:null,et=[S.min,(S.min+S.max)/2,S.max];return p.jsxs("div",{"data-testid":c,children:[p.jsxs("svg",{ref:m,"data-testid":`${c}-plot`,viewBox:`0 0 ${j} ${a}`,style:{width:"100%",height:a,display:"block",background:x.inputBg,border:`1px solid ${x.border}`,borderRadius:x.radiusSmall,touchAction:"none",outline:"none"},tabIndex:0,role:"application","aria-label":"Curve editor",onKeyDown:n=>{(n.key==="Delete"||n.key==="Backspace")&&V&&!o&&(n.preventDefault(),R(q(t,s)),d(Math.max(0,s-1)))},onDoubleClick:n=>{if(o)return;const{t:u}=P(n),f=ut(t,u);f!==t&&(R(f),d(f.findIndex(T=>Math.abs(T.start-u)<1e-6)))},children:[et.map(n=>p.jsxs("g",{children:[p.jsx("line",{x1:O,x2:j-Q,y1:g(n),y2:g(n),stroke:x.border,strokeWidth:.5}),p.jsx("text",{x:O-3,y:g(n)+2.5,fontSize:7,fill:x.textMuted,textAnchor:"end",children:pt(n)})]},n)),[0,.5,1].map(n=>p.jsx("text",{x:D(n),y:a-3,fontSize:7,fill:x.textMuted,textAnchor:"middle",children:n},n)),p.jsx("path",{d:tt,fill:"none",stroke:K,strokeWidth:1.5}),E&&w&&p.jsxs("g",{children:[p.jsx("line",{x1:D(E.time),y1:g(E.value),x2:w.x,y2:w.y,stroke:x.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-out`,cx:w.x,cy:w.y,r:3,fill:x.surface,stroke:x.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>Y(u,s,"out",T))})]}),E&&_&&p.jsxs("g",{children:[p.jsx("line",{x1:D(E.time),y1:g(E.value),x2:_.x,y2:_.y,stroke:x.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-in`,cx:_.x,cy:_.y,r:3,fill:x.surface,stroke:x.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>Y(u,s,"in",T))})]}),h.map((n,u)=>p.jsx("circle",{"data-testid":`${c}-key-${u}`,cx:D(n.time),cy:g(n.value),r:4,fill:u===s?x.accent:x.surface,stroke:u===s?x.onAccent:K,strokeWidth:1.25,style:{cursor:o?"not-allowed":"move"},onPointerDown:f=>{d(u),$(f,(T,y,N)=>F(T,u,y,N))}},u))]}),p.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center",marginTop:3},children:[p.jsxs("span",{style:{fontSize:9,color:x.textMuted,flex:"0 0 auto"},children:["Key ",s+1,"/",h.length]}),p.jsx(U,{label:"t",value:E?Math.round(E.time*1e3)/1e3:null,step:.05,testId:`${c}-key-time`,onChange:n=>{E&&H(F(t,s,n,E.value))},onChangeEnd:n=>{E&&R(F(t,s,n,E.value))}}),p.jsx(U,{label:"v",value:E?Math.round(E.value*1e3)/1e3:null,step:.05,testId:`${c}-key-value`,onChange:n=>{E&&H(F(t,s,E.time,n))},onChangeEnd:n=>{E&&R(F(t,s,E.time,n))}}),p.jsx(at,{type:"button",variant:"ghost",size:"compact","data-testid":`${c}-delete-key`,disabled:!V||o===!0,"aria-label":"Delete curve key",title:V?"Delete key":"Endpoint keys cannot be deleted",onClick:()=>{R(q(t,s)),d(Math.max(0,s-1))},children:"×"})]})]})}export{Rt as Actions,ps as AlignmentGrid,fs as AnchorPresets,nt as AnchoredMenu,wt as AssetSlotPicker,hs as BorderEditor,ms as BorderRadiusEditor,at as Button,_t as CLASSIC_MATERIAL,Nt as Checkbox,ls as ColorInput,Es as ColorPicker,xs as ColorSwatch,Ft as ColorSwatchInput,At as CurveEditor,Ot as DEFAULT_ICON_SET_ID,Ss as DEFAULT_SHADOW,gs as DEFAULT_TEXT_SHADOW,Ct as Dialog,kt as DialogBody,Lt as DialogField,jt as DialogFieldLabel,Bt as DialogFooter,Gt as DialogHeader,Pt as DisclosureIcon,Ht as Divider,$t as DraftTextInput,Vt as DropIndicator,zt as EDITOR_CATEGORY_NAMES,Wt as EDITOR_MATERIALS,Kt as EDITOR_MATERIAL_IDS,Jt as EDITOR_REGION_NAMES,Ut as EDITOR_THEME_CLASS,Yt as EditorBadge,qt as EditorBanner,Qt as EditorIcon,Xt as EditorListButton,Zt as EditorPopover,te as EditorSurface,ee as EditorTab,ne as EditorTabList,se as EditorToolbar,oe as EditorTree,ae as EditorTreeRow,re as FONT,ie as FONT_MONO,ce as FieldGroup,ue as FieldLabel,le as FieldRow,de as FileInput,Ts as FilterEditor,pe as FloatingToolbar,bs as FontPicker,fe as GLASS_MATERIAL,Ds as GradientEditor,Ms as GradientStopsTrack,Dt as HoverPreview,he as IconButton,me as Inline,Ee as InteractiveEditScopeContext,xe as JoinedField,Se as JoinedFieldSuffix,Mt as JsonInput,ge as Keycap,Te as LABEL_COL_WIDTH,be as Menu,De as MenuItem,Me as MenuSeparator,ye as MenuSubmenu,Ae as MenuTrigger,U as NumberInput,Ie as Panel,ys as QuarksGradientEditor,ve as RangeInput,Re as ResizeHandle,we as STAGE_WORD_MODES,As as ScrubbableInput,_e as SectionHeader,Ne as Select,Is as ShadowEditor,vs as ShadowListEditor,Fe as Spacer,Oe as SplitButtonGroup,Ce as Stack,ke as StateSurface,x as THEME,Le as TONE_ERROR,je as TONE_WARNING,Be as Text,Ge as TextArea,st as TextInput,Rs as TextShadowEditor,Pe as ThemeRootPortal,He as ToggleButton,$e as ToolbarDivider,Ve as ToolbarGroup,ze as Tooltip,We as TreeDisclosureIcon,Ke as Vec3Input,Je as accent,Ue as accentMuted,Ye as activeIconGlyph,qe as activeIconSetSnapshot,Qe as applyEditorTheme,Xe as areaEmbossValue,Ze as bg,tn as border,en as chromeSize,nn as clampRectToViewport,sn as composeEditorAppearance,ws as composeFilter,_s as composeGradient,Ns as composeShadows,on as controlSize,ct as curveKeys,lt as curveValueRange,an as danger,rn as dangerFaint,cn as dangerMuted,q as deleteKey,un as dynamic,ln as dynamicBg,dn as editorIconSets,pn as editorIcons,fn as editorMaterials,hn as editorThemeVariables,mn as editorThemes,En as fieldLabelStyle,it as fireChange,rt as fireEnd,xn as focusFirstMenuItem,Sn as focusRing,gn as fontMono,Tn as fontSans,bn as fontSize,Dn as fontSizeVar,Mn as fontWeight,yn as glassDarkEditorTheme,An as glassDarkLiteEditorTheme,In as graphiteDarkEditorTheme,vn as graphiteNeutralEditorTheme,Rn as groupLabelStyle,wn as iconSize,_n as isEditorIconSetId,Nn as isEditorMaterialId,Fn as isEditorThemeId,Fs as isUniformBorder,Os as isUniformRadius,On as lineHeight,Cn as lineHeightVar,kn as liquidGlassEditorTheme,Ln as liquidGlassLiteEditorTheme,jn as midnightHighContrastEditorTheme,Bn as motion,Gn as motionVar,F as moveKey,Y as moveTangent,Cs as parseFilterFunctions,ks as parseGradient,Pn as parseNumericValue,Ls as parseShadows,Hn as radius,$n as regionRowAltValue,Vn as registerContributedIconSet,zn as registerContributedMaterial,Wn as rowStyle,yt as sampleCurve,Kn as scrim,v as segmentEnd,Jn as selection,Un as setActiveIconSet,Yn as shadow,qn as space,Qn as spaceVar,ut as splitAt,Xn as strokeWidth,Zn as subscribeEditorMaterials,ts as subscribeIconSets,es as success,ns as successMuted,ss as text,ot as themeVars,js as uniformBorder,Bs as uniformRadius,os as useInteractiveEditScope,as as usesGlassMaterial,rs as warn,is as warnMuted,cs as zIndex};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Ie}from"./extends-CF3RwP-h.js";import{r as A,a as Vn}from"./index-nmcBqr7Y.js";import{a as Jy}from"./client-DNXj_opT.js";import{U as Id,S as No,W as Zx}from"./three.module-BLhyNg0e.js";import{u as ue,a as He,I as Jx,q as _d,G as vi,s as ir,J as e4,K as Hu,e as xi,o as Wn,v as Xr,F as t4,l as ev,k as S0,L as i4}from"./events-156d8d12.esm-CYeuVCYr.js";import{fo as W,aI as bi,fd as Be,d9 as ci,d5 as Bi,az as ql,da as wr,cm as we,dp as rt,cl as Ln,ez as Vu,fp as Ei,_ as qe,aV as Pn,cj as Ze,co as ze,bu as tv,au as Ir,dw as Ti,b0 as si,ed as Ns,cE as Xt,N as Ji,M as Ai,aM as nn,ex as xn,em as hi,B as Ar,fe as Ko,K as cr,bl as n4,f1 as Hr,cW as yi,e6 as Wu,cp as ta,bX as ul,aq as Qn,a$ as $i,bV as It,db as an,cZ as Rr,ey as iv,e$ as Xl,cg as Th,bh as jo,I as Kt,aP as wh,bg as s4,fx as Fi,c1 as ni,cN as C0,Z as r4,aY as o4,b5 as nv,am as a4,ca as ia,cb as l4,aZ as ks,eX as _r,Y as Yn,eW as cn,cv as bh,cs as T0,aT as sv,F as Zm,dk as Eu,dd as Jm,eC as c4,aE as u4,ev as rv,et as h4,j as f4,f7 as d4,l as m4,fq as g4,dq as p4,cV as A4,eq as ur,a3 as Yu,aa as ov,ff as Gi,c5 as w0,dI as eg,e8 as Ms,e2 as zo,bi as fi,e0 as y4,d$ as v4,dZ as E4,dY as x4,dS as I4,dP as _4,dN as S4,dM as C4,dE as T4,av,aw as Qo,H as w4,er as b4,eo as R4,d8 as Rh,bs as b0,bt as Sd,bA as Go,fA as D4,bW as Fs,dn as L4,ag as P4,V as lv,x as M4,y as B4,cr as k4,cq as cv,dv as uv,br as xu,fb as pn,du as Ku,aO as F4,c_ as hv,cR as O4,ao as fv,dx as Iu,fj as Wr,fw as ju,a9 as dv,an as U4,el as br,T as mv,ad as R0,fs as N4,ej as gv,aC as pv,aA as Av,fm as D0,R as yv,b4 as _u,E as z4,e5 as Fl,by as ou,P as Cd,es as vv,e3 as Ev,e9 as Q4,n as G4,ch as $4,cw as xv,cx as Iv,cP as H4,dg as V4,f6 as Su,c7 as Td,cc as W4,c3 as tg,eG as Y4,cu as K4,S as j4,d as q4,ee as Dh,i as X4,bI as Lh,cU as Z4,aS as J4,aW as eI}from"./three.core-3arARmh6.js";import{v as Ol,d as _v,C as tI,u as BM}from"./Gltf-GjdUJfpn.js";import{G as VF}from"./Gltf-GjdUJfpn.js";import{m as iI,t as nI}from"./BufferGeometryUtils-FJZNEiJN.js";import{OrthographicCamera as sI}from"./OrthographicCamera-QGDXU8-_.js";import{PerspectiveCamera as YF}from"./PerspectiveCamera-CzyDwUe8.js";import{E as na,M as rI}from"./OrbitControls-DqeA2OK1.js";import{O as jF}from"./OrbitControls-DqeA2OK1.js";import{_ as Sv}from"./index-
|
|
1
|
+
import{_ as Ie}from"./extends-CF3RwP-h.js";import{r as A,a as Vn}from"./index-nmcBqr7Y.js";import{a as Jy}from"./client-DNXj_opT.js";import{U as Id,S as No,W as Zx}from"./three.module-BLhyNg0e.js";import{u as ue,a as He,I as Jx,q as _d,G as vi,s as ir,J as e4,K as Hu,e as xi,o as Wn,v as Xr,F as t4,l as ev,k as S0,L as i4}from"./events-156d8d12.esm-CYeuVCYr.js";import{fo as W,aI as bi,fd as Be,d9 as ci,d5 as Bi,az as ql,da as wr,cm as we,dp as rt,cl as Ln,ez as Vu,fp as Ei,_ as qe,aV as Pn,cj as Ze,co as ze,bu as tv,au as Ir,dw as Ti,b0 as si,ed as Ns,cE as Xt,N as Ji,M as Ai,aM as nn,ex as xn,em as hi,B as Ar,fe as Ko,K as cr,bl as n4,f1 as Hr,cW as yi,e6 as Wu,cp as ta,bX as ul,aq as Qn,a$ as $i,bV as It,db as an,cZ as Rr,ey as iv,e$ as Xl,cg as Th,bh as jo,I as Kt,aP as wh,bg as s4,fx as Fi,c1 as ni,cN as C0,Z as r4,aY as o4,b5 as nv,am as a4,ca as ia,cb as l4,aZ as ks,eX as _r,Y as Yn,eW as cn,cv as bh,cs as T0,aT as sv,F as Zm,dk as Eu,dd as Jm,eC as c4,aE as u4,ev as rv,et as h4,j as f4,f7 as d4,l as m4,fq as g4,dq as p4,cV as A4,eq as ur,a3 as Yu,aa as ov,ff as Gi,c5 as w0,dI as eg,e8 as Ms,e2 as zo,bi as fi,e0 as y4,d$ as v4,dZ as E4,dY as x4,dS as I4,dP as _4,dN as S4,dM as C4,dE as T4,av,aw as Qo,H as w4,er as b4,eo as R4,d8 as Rh,bs as b0,bt as Sd,bA as Go,fA as D4,bW as Fs,dn as L4,ag as P4,V as lv,x as M4,y as B4,cr as k4,cq as cv,dv as uv,br as xu,fb as pn,du as Ku,aO as F4,c_ as hv,cR as O4,ao as fv,dx as Iu,fj as Wr,fw as ju,a9 as dv,an as U4,el as br,T as mv,ad as R0,fs as N4,ej as gv,aC as pv,aA as Av,fm as D0,R as yv,b4 as _u,E as z4,e5 as Fl,by as ou,P as Cd,es as vv,e3 as Ev,e9 as Q4,n as G4,ch as $4,cw as xv,cx as Iv,cP as H4,dg as V4,f6 as Su,c7 as Td,cc as W4,c3 as tg,eG as Y4,cu as K4,S as j4,d as q4,ee as Dh,i as X4,bI as Lh,cU as Z4,aS as J4,aW as eI}from"./three.core-3arARmh6.js";import{v as Ol,d as _v,C as tI,u as BM}from"./Gltf-GjdUJfpn.js";import{G as VF}from"./Gltf-GjdUJfpn.js";import{m as iI,t as nI}from"./BufferGeometryUtils-FJZNEiJN.js";import{OrthographicCamera as sI}from"./OrthographicCamera-QGDXU8-_.js";import{PerspectiveCamera as YF}from"./PerspectiveCamera-CzyDwUe8.js";import{E as na,M as rI}from"./OrbitControls-DqeA2OK1.js";import{O as jF}from"./OrbitControls-DqeA2OK1.js";import{_ as Sv}from"./index-CvGsVzTo.js";import{g as oI}from"./_commonjsHelpers-D6-XlEtG.js";import{u as ds}from"./Fbo-BwAOPGSM.js";import{F as XF}from"./Fbo-BwAOPGSM.js";import{RoundedBox as JF,RoundedBoxGeometry as eO}from"./RoundedBox-DrJK5JOI.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-bQE2NA0D.js";import"./index-CtzuWnCS.js";import"./index-FUuS4qwW.js";const Ul=new W,L0=new W,aI=new W,ig=new Be;function lI(r,e,t){const i=Ul.setFromMatrixPosition(r.matrixWorld);i.project(e);const n=t.width/2,s=t.height/2;return[i.x*n+n,-(i.y*s)+s]}function cI(r,e){const t=Ul.setFromMatrixPosition(r.matrixWorld),i=L0.setFromMatrixPosition(e.matrixWorld),n=t.sub(i),s=e.getWorldDirection(aI);return n.angleTo(s)>Math.PI/2}function uI(r,e,t,i){const n=Ul.setFromMatrixPosition(r.matrixWorld),s=n.clone();s.project(e),ig.set(s.x,s.y),t.setFromCamera(ig,e);const o=t.intersectObjects(i,!0);if(o.length){const a=o[0].distance;return n.distanceTo(t.ray.origin)<a}return!0}function hI(r,e){if(e instanceof Bi)return e.zoom;if(e instanceof ci){const t=Ul.setFromMatrixPosition(r.matrixWorld),i=L0.setFromMatrixPosition(e.matrixWorld),n=e.fov*Math.PI/180,s=t.distanceTo(i);return 1/(2*Math.tan(n/2)*s)}else return 1}function fI(r,e,t){if(e instanceof ci||e instanceof Bi){const i=Ul.setFromMatrixPosition(r.matrixWorld),n=L0.setFromMatrixPosition(e.matrixWorld),s=i.distanceTo(n),o=(t[1]-t[0])/(e.far-e.near),a=t[1]-o*e.far;return Math.round(o*s+a)}}const wd=r=>Math.abs(r)<1e-10?0:r;function Cv(r,e,t=""){let i="matrix3d(";for(let n=0;n!==16;n++)i+=wd(e[n]*r.elements[n])+(n!==15?",":")");return t+i}const dI=(r=>e=>Cv(e,r))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),mI=(r=>(e,t)=>Cv(e,r(t),"translate(-50%,-50%)"))(r=>[1/r,1/r,1/r,1,-1/r,-1/r,-1/r,-1,1/r,1/r,1/r,1,1,1,1,1]);function gI(r){return r&&typeof r=="object"&&"current"in r}const qu=A.forwardRef(({children:r,eps:e=.001,style:t,className:i,prepend:n,center:s,fullscreen:o,portal:a,distanceFactor:l,sprite:c=!1,transform:u=!1,occlude:h,onOcclude:f,castShadow:d,receiveShadow:g,material:m,geometry:p,zIndexRange:E=[16777271,0],calculatePosition:v=lI,as:y="div",wrapperClass:x,pointerEvents:I="auto",..._},S)=>{const{gl:C,camera:w,scene:T,size:D,raycaster:b,events:R,viewport:P}=ue(),[O]=A.useState(()=>document.createElement(y)),Q=A.useRef(null),V=A.useRef(null),K=A.useRef(0),k=A.useRef([0,0]),G=A.useRef(null),M=A.useRef(null),H=a?.current||R.connected||C.domElement.parentNode,Y=A.useRef(null),N=A.useRef(!1),z=A.useMemo(()=>h&&h!=="blending"||Array.isArray(h)&&h.length&&gI(h[0]),[h]);A.useLayoutEffect(()=>{const ee=C.domElement;h&&h==="blending"?(ee.style.zIndex=`${Math.floor(E[0]/2)}`,ee.style.position="absolute",ee.style.pointerEvents="none"):(ee.style.zIndex=null,ee.style.position=null,ee.style.pointerEvents=null)},[h]),A.useLayoutEffect(()=>{if(V.current){const ee=Q.current=Jy.createRoot(O);if(T.updateMatrixWorld(),u)O.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const Z=v(V.current,w,D);O.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${Z[0]}px,${Z[1]}px,0);transform-origin:0 0;`}return H&&(n?H.prepend(O):H.appendChild(O)),()=>{H&&H.removeChild(O),ee.unmount()}}},[H,u]),A.useLayoutEffect(()=>{x&&(O.className=x)},[x]);const B=A.useMemo(()=>u?{position:"absolute",top:0,left:0,width:D.width,height:D.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:s?"translate3d(-50%,-50%,0)":"none",...o&&{top:-D.height/2,left:-D.width/2,width:D.width,height:D.height},...t},[t,s,o,D,u]),F=A.useMemo(()=>({position:"absolute",pointerEvents:I}),[I]);A.useLayoutEffect(()=>{if(N.current=!1,u){var ee;(ee=Q.current)==null||ee.render(A.createElement("div",{ref:G,style:B},A.createElement("div",{ref:M,style:F},A.createElement("div",{ref:S,className:i,style:t,children:r}))))}else{var Z;(Z=Q.current)==null||Z.render(A.createElement("div",{ref:S,style:B,className:i,children:r}))}});const U=A.useRef(!0);He(ee=>{if(V.current){w.updateMatrixWorld(),V.current.updateWorldMatrix(!0,!1);const Z=u?k.current:v(V.current,w,D);if(u||Math.abs(K.current-w.zoom)>e||Math.abs(k.current[0]-Z[0])>e||Math.abs(k.current[1]-Z[1])>e){const ne=cI(V.current,w);let ce=!1;z&&(Array.isArray(h)?ce=h.map(le=>le.current):h!=="blending"&&(ce=[T]));const me=U.current;if(ce){const le=uI(V.current,w,b,ce);U.current=le&&!ne}else U.current=!ne;me!==U.current&&(f?f(!U.current):O.style.display=U.current?"block":"none");const re=Math.floor(E[0]/2),te=h?z?[E[0],re]:[re-1,0]:E;if(O.style.zIndex=`${fI(V.current,w,te)}`,u){const[le,se]=[D.width/2,D.height/2],X=w.projectionMatrix.elements[5]*se,{isOrthographicCamera:j,top:oe,left:pe,bottom:_e,right:Ce}=w,ye=dI(w.matrixWorldInverse),Ne=j?`scale(${X})translate(${wd(-(Ce+pe)/2)}px,${wd((oe+_e)/2)}px)`:`translateZ(${X}px)`;let Te=V.current.matrixWorld;c&&(Te=w.matrixWorldInverse.clone().transpose().copyPosition(Te).scale(V.current.scale),Te.elements[3]=Te.elements[7]=Te.elements[11]=0,Te.elements[15]=1),O.style.width=D.width+"px",O.style.height=D.height+"px",O.style.perspective=j?"":`${X}px`,G.current&&M.current&&(G.current.style.transform=`${Ne}${ye}translate(${le}px,${se}px)`,M.current.style.transform=mI(Te,1/((l||10)/400)))}else{const le=l===void 0?1:hI(V.current,w)*l;O.style.transform=`translate3d(${Z[0]}px,${Z[1]}px,0) scale(${le})`}k.current=Z,K.current=w.zoom}}if(!z&&Y.current&&!N.current)if(u){if(G.current){const Z=G.current.children[0];if(Z!=null&&Z.clientWidth&&Z!=null&&Z.clientHeight){const{isOrthographicCamera:ne}=w;if(ne||p)_.scale&&(Array.isArray(_.scale)?_.scale instanceof W?Y.current.scale.copy(_.scale.clone().divideScalar(1)):Y.current.scale.set(1/_.scale[0],1/_.scale[1],1/_.scale[2]):Y.current.scale.setScalar(1/_.scale));else{const ce=(l||10)/400,me=Z.clientWidth*ce,re=Z.clientHeight*ce;Y.current.scale.set(me,re,1)}N.current=!0}}}else{const Z=O.children[0];if(Z!=null&&Z.clientWidth&&Z!=null&&Z.clientHeight){const ne=1/P.factor,ce=Z.clientWidth*ne,me=Z.clientHeight*ne;Y.current.scale.set(ce,me,1),N.current=!0}Y.current.lookAt(ee.camera.position)}});const J=A.useMemo(()=>({vertexShader:u?void 0:`
|
|
2
2
|
/*
|
|
3
3
|
This shader is from the THREE's SpriteMaterial.
|
|
4
4
|
We need to turn the backing plane into a Sprite
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as a}from"./index-
|
|
1
|
+
import{O as a}from"./index-CvGsVzTo.js";const r=new Set;function i(t,e,n){return JSON.stringify([t,e,n])}function d(t,e,n){const o=i(t,e,n);r.has(o)||(r.add(o),a.warn(`No declaration covers \`${e}\` in ${t}, so the editor GUESSED \`${n}\` from its text. Declare it (a typed prop on the component, a token value that states its own kind) and the editor reads the declaration instead of a heuristic.`,"inspector"))}export{d as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as r,E as d,cx as a,aE as c,cy as p,cz as m,aP as l}from"./index-
|
|
1
|
+
import{O as r,E as d,cx as a,aE as c,cy as p,cz as m,aP as l}from"./index-CvGsVzTo.js";import{h as u,f,a as I}from"./active-ingest-lrfMBhf9.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./game-contract-seams-5IUqvr7b.js";import"./capability-coverage-9qm5WVwt.js";import"./ingest-source-persistence-CPlDA2D8.js";import"./contract-system-adapters-BRHtWOi_.js";function S(){const o=I();if(o){if(!u())throw new Error(`Ingest "${o.worldId}" mounted without the required pause capability; refusing to expose a running game in Edit — ${f()??"no lifecycle control was bound"}.`);r.log(`Ingest "${o.worldId}" is HELD — content time does not advance in Edit until ▶`,"ingest")}const e=l(),i=d()?.scenes.default,n=i?m(i):void 0,s=(n?e.find(t=>t.descriptor.id===n):void 0)??e.find(t=>t.descriptor.id===a)??e.find(t=>t.descriptor.id===c);s&&p(s.descriptor.id)}export{S as landIngestBootInEdit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aa as y,O as v,bp as b,bq as R,d5 as S,d6 as E,bs as f}from"./index-
|
|
1
|
+
import{aa as y,O as v,bp as b,bq as R,d5 as S,d6 as E,bs as f}from"./index-CvGsVzTo.js";import{w as k}from"./mounted-authoring-D-tXkNKH.js";import{P as w}from"./pixi-authoring-adapter-lj5CidSR.js";import{createLiveCanvasWriteTarget as A}from"./pixi-live-write-target-BEL9GCCr.js";import{resolveCanvasPixiForEditor as x}from"./canvas-entry-runtime-Cjga4XYp.js";import{C}from"./crash-null-boundary-v3a0uEgw.js";import{a as l}from"./json-history-resource-CckDydoO.js";import{a as I}from"./realm-services-DCnaxwIb.js";import{r as P}from"./react-root-BHA-cdrW.js";import{D as $}from"./dom-authoring-adapter-C3ZsI41l.js";import{w as D,R as M}from"./react-world-authoring-adapter-B6BiehHR.js";import{createPhysics2DRegistry as j}from"./physics-registry-B2Jkp8e6.js";import{createPhysicsAdapter2D as O}from"./system-adapters-rIC8FSGP.js";import{s as z}from"./three-authoring-adapter-BuqO9MDt.js";import{r as h}from"./index-nmcBqr7Y.js";import{r as B}from"./index-CtzuWnCS.js";import{a as F}from"./client-DNXj_opT.js";import{mountModuleRootRuntime as T}from"./module-mode-DcBz3aI7.js";import"./jsx-runtime-DPjLkJKQ.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-FUuS4qwW.js";import"./entity-object-BFppZ54X.js";import"./user-data-DfBtZvxw.js";import"./workspace-arrangement-C9uemwSK.js";import"./three-contract-Dkt6PmWY.js";import"./index-BlWeDGvp.js";import"./source-persistence-backend-Djuk0m-7.js";import"./ingest-source-persistence-CPlDA2D8.js";import"./component-instance-root-MBgAuUpp.js";import"./pixi-transform-channels-P4rvmusc.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./debug-registry-Dagj3b6J.js";import"./three-ingest-runtime-CwRnwvb0.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./EffectComposer-BEAt0PtQ.js";import"./CopyShader-BzTUYzf6.js";import"./ShaderPass-DTnDQXm0.js";import"./Pass-D1MRT672.js";import"./CSS3DRenderer-BsAqfavI.js";import"./inspect-DxfAFkho.js";import"./inference-diagnostics-BCwXk-CS.js";import"./board-guides-whelE-Dr.js";import"./relative-import-specifier-BvzqkvYS.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./writer-tw6EcuVO.js";import"./three-projection-core-BO23VKAP.js";import"./editor-layers-BK3fNRb7.js";import"./three-bdxPiUPb.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./body-marks-C1LxJtQb.js";import"./user-data-CODoGZqA.js";import"./object-marks-BnvSuCTt.js";import"./structural-ids-BOo2BRoY.js";import"./object3d-authoring-subject-XccsO0xG.js";import"./rapier-physics-adapter-CaZqWLu0.js";import"./r3f-physics-binding-BcTFD1ZS.js";import"./capability-coverage-9qm5WVwt.js";import"./game-contract-seams-5IUqvr7b.js";import"./binding-resolver-CBXePHiR.js";import"./native-debug-module-XfhvyMrK.js";import"./native-entry-surface-BE8LJNdu.js";import"./contract-system-adapters-BRHtWOi_.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./events-156d8d12.esm-CYeuVCYr.js";import"./index-bQE2NA0D.js";import"./relative-path-guard-GiM7Lsz8.js";function g(t,i,n){t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.zIndex=String(i.zOrder??0),t.style.pointerEvents=n}async function W(t,i,n,s){const r=await I(n,S()),a=await P(t,r),e=document.createElement("div");e.dataset.volterRootSurface="true",g(e,t,"none"),i.appendChild(e);const u=F.createRoot(e);let m=null;if(B.flushSync(()=>{u.render(h.createElement(C,{onCaught:c=>{m=c}},h.createElement(a)))}),m!==null)throw u.unmount(),e.remove(),m instanceof Error?m:new Error(String(m));let o;if(s)if(D(e).nodes.size>0){const p=E("An ingest sibling’s react layer");o=new M(e,s.shell,{...p?{writeBackend:p}:{}})}else o=new $(e,s,{journal:l(t.id)});return{worldId:t.id,...o?{authoring:o}:{},dispose(){u.unmount(),e.remove()}}}async function L(t,i,n,s,r){const a=document.createElement("div");g(a,i,"auto"),n.appendChild(a);try{const e=n.clientWidth||800,u=n.clientHeight||600,{session:m}=await T(t,i,s,a,e,u),o=m.game.roots[0],c=o.mounted.authoring;let p;if(r)if(c)p=k(c,r);else if(o.kind==="three")p=z(r,o.threeScene(),{frameControl:"host",journal:l(i.id)});else if(o.kind==="canvas")if(o.mounted.kind!=="canvas"||o.mounted.substrate.name!=="pixi")p=o.mounted.authoring??f(r.shell,`${i.id} (${o.mounted.kind==="canvas"?o.mounted.substrate.name:"unknown"} authoring unavailable)`);else{const d=O(o.physics2d??j());p=new w(o.canvasRoot(),r,{pixi:await x(),target:A({physics:d}),journal:l(i.id),surface:()=>a})}else p=f(r.shell,`${i.id} (no authoring surface)`);return{worldId:i.id,...p?{authoring:p}:{},setPaused(d){d?m.pause():m.resume()},dispose(){m.stop(),a.remove()}}}catch(e){throw a.remove(),e}}function N(t){throw new Error(`sibling world "${t.id}" (kind: ${t.surface}, adapter identity: "${t.adapter.identity}") has no known composite-sibling mount path — every currently-resolvable identity (three/canvas/dom/module) is routed above; this is reached only for a genuinely unroutable shape.`)}function q(t){return t.adapter.type==="module"||t.adapter.identity==="three"||t.adapter.identity==="canvas"?"scoped-runtime":t.adapter.identity==="dom"?"react-layer":null}async function H(t,i,n,s,r){switch(q(i)){case"scoped-runtime":return L(t,i,n,s,r);case"react-layer":return W(i,n,s,r);default:N(i)}}async function ae(t,i,n,s,r){const a=[];for(const e of y(t))if(e.id!==i)try{a.push(await H(t,e,n,s,r))}catch(u){v.error(`Composite sibling "${e.id}" failed to mount: ${u}`,"ingest"),b({worldId:e.id,kind:e.surface,identity:e.adapter.identity,message:R(u)})}return a}export{ae as mountIngestSiblings,q as siblingMountRoute};
|
package/dist/assets/{ingest-source-persistence-B52PvpPx.js → ingest-source-persistence-CPlDA2D8.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as m,e7 as f,e8 as g,b2 as S,e9 as b,ea as w}from"./index-JjEYIC4G.js";const $="volterRecordIndex";function R(i){const e=i?.userData;if(e===null||typeof e!="object")return null;const t=e[$];return typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}let d={state:"absent"},h=0;function j(i,e){const t=i;if(t===null||typeof t!="object")throw new Error(`the data writer "${e}" did not export a module object`);if(typeof t.dataFile!="string"||t.dataFile.length===0)throw new Error(`the data writer "${e}" exports no \`dataFile\` string — a writer must name the one project-relative file it edits`);if(typeof t.planDataEdit!="function")throw new Error(`the data writer "${e}" exports no \`planDataEdit\` function — that is the whole contract: (bytes, request) => {changed, bytes} | {changed, reason}`);return{dataFile:t.dataFile,...typeof t.canPlace=="function"?{canPlace:t.canPlace.bind(t)}:{},planDataEdit:t.planDataEdit.bind(t)}}function x(i){const e=++h;if(i===null){d={state:"absent"};return}d={state:"loading"},i.load().then(t=>{h===e&&(d={state:"ready",writer:j(t,i.specifier)})}).catch(t=>{h===e&&(d={state:"failed",reason:`this game's declared data writer (${i.specifier}) could not be loaded: ${t instanceof Error?t.message:String(t)}`})})}function k(){return d}function I(i){const e=d;if(e.state!=="ready"||!e.writer.canPlace)return null;const t=e.writer.canPlace(i);return t===!0?null:t}function _(i){const e=d;switch(e.state){case"ready":return{anchored:!0,kind:"data",file:e.writer.dataFile,record:i,display:`${e.writer.dataFile} record ${i}`};case"loading":return{anchored:!1,reason:`this object is record ${i} of its game's own level data; the game's data writer is still loading`};case"failed":return{anchored:!1,reason:`this object is record ${i}, but ${e.reason}`};default:return{anchored:!1,reason:`this object is record ${i} of its game's own level data, and this game declares no data writer (\`ingest.dataWriter\`) that could write that record back`}}}const u=new TextEncoder,E=new TextDecoder;let l=null,p=null;function D(){return l}async function y(i=fetch){return l||p||(p=(async()=>{try{const e=await i("/__ingest-source/ownership");if(!e.ok)throw new Error(`HTTP ${e.status}`);l=await e.json()}catch(e){l={writable:!1,reason:`the editor could not reach its dev server to check who owns this game's source (${e instanceof Error?e.message:String(e)})`,projectRoot:null}}return l})(),p)}function T(i){const e=async(r,s)=>{const n=await i(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),o=await n.json();if(!n.ok&&r.endsWith("/read"))throw new Error(`Reading ingested game source failed with HTTP ${n.status}: ${JSON.stringify(o)}`);return o},t=new Map,a=r=>{throw new Error(`The creation-site source backend has no "${r}" — an ingested game has no JSX oids; ingest edits are anchored by creation site.`)};return{historyIdentity:P,readSource:async r=>{const s=await e("/__ingest-source/read",{file:r}),n=s.encoding==="base64";return t.set(r,n?"base64":"utf8"),n?{...s,bytes:w(s.source)}:s},applySource:(r,s,n)=>e("/__ingest-source/apply",{file:r,source:typeof s=="string"?s:b(s),ifMatchSha:n,encoding:typeof s=="string"?t.get(r)??"utf8":"base64"}),writeStyle:()=>a("writeStyle"),removeStyle:()=>a("removeStyle"),writeStruct:()=>a("writeStruct")}}const P={};class N{backend;fetchImpl;history;live;liveResourceKey=null;unregisterLive=null;constructor(e){this.history=e.history,this.live=e.live,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.backend=T(this.fetchImpl),y(this.fetchImpl)}dispose(){this.unregisterLive?.(),this.unregisterLive=null}gate(e,t,a,r="instance"){if(!e.anchored)return{ok:!1,reason:e.reason};const s=e.kind==="data"?`held at ${e.display}`:`created at ${e.display}`;if(e.kind==="data"){const o=I(a);if(o)return{ok:!1,reason:`${s}, but ${o}`}}const n=l;return n?n.writable?e.kind==="source"&&t!==1&&r!=="creation-site"?{ok:!1,reason:t===0?`${s}, but nothing was recorded as constructed there — the editor cannot tell whether that line builds this object alone`:`${s}, but that creation site constructs ${t} objects; a per-object edit cannot be written there`}:f()?{ok:!0}:{ok:!1,reason:`${s}, but this game is playing — hold it to author, or the edit stays live-only`}:{ok:!1,reason:`${s}; ${n.reason??"this game’s source is not writable"}`}:{ok:!1,reason:`${s}; still checking who owns this game's source`}}canAttempt(e,t,a){return this.gate(e,t,a).ok}describe(e,t,a,r="instance"){const s=this.gate(e,t,a,r);return s.ok?`Persisting to ${e.display}.`:`Live-only edit — ${s.reason}.`}async inspect(e){const t=e.anchor;if(!t.anchored||t.kind!=="source")return{};if(e.properties.length===0)return{};try{return(await this.post("/__ingest-source/inspect",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},...e.surface?{surface:e.surface}:{},properties:e.properties})).properties??{}}catch{return{}}}async persist(e){if(!f())return{persisted:!1,reason:"this game is playing — a play-time edit lives on the running object only"};const t=e.anchor;if(!t.anchored)return{persisted:!1,reason:t.reason};const a=await y(this.fetchImpl);if(!a.writable)return{persisted:!1,reason:a.reason??"this game’s source is not writable"};if(!this.history)return{persisted:!1,reason:"this session has no project history to record into"};if(t.kind==="data")return this.persistData(e,t);const r=await this.post("/__ingest-source/prepare",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},property:e.property,...e.surface?{surface:e.surface}:{},baseline:e.baseline,next:e.next});if(!r.changed||!r.file||!r.resourcePath||r.prevSource===void 0||r.newSource===void 0||!r.prevSha)return{persisted:!1,reason:r.reason??"the edit was refused"};const s=await this.post("/__ingest-source/apply",{file:r.file,source:r.newSource,ifMatchSha:r.prevSha,note:`${e.property} at ${t.display}`});return s.applied?(await this.recordEdit(e,{file:r.file,resourcePath:r.resourcePath,before:r.prevSource,after:r.newSource}),{persisted:!0,file:r.file,detail:`${e.property} → ${r.file}:${t.line}`}):{persisted:!1,reason:s.error??"the write was refused"}}async remove(e){if(!f())return{persisted:!1,reason:"this game is playing — a play-time edit lives on the running object only"};const t=e.anchor;if(!t.anchored)return{persisted:!1,reason:t.reason};const a=await y(this.fetchImpl);if(!a.writable)return{persisted:!1,reason:a.reason??"this game’s source is not writable"};if(!this.history)return{persisted:!1,reason:"this session has no project history to record into"};if(t.kind==="data")return{persisted:!1,reason:"a level-data record has no removable source statement — its property is the record's own field, not an authored override"};const r=await this.post("/__ingest-source/prepare",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},property:e.property,...e.surface?{surface:e.surface}:{},remove:!0});if(!r.changed||!r.file||!r.resourcePath||r.prevSource===void 0||r.newSource===void 0||!r.prevSha)return{persisted:!1,reason:r.reason??"the removal was refused"};const s=await this.post("/__ingest-source/apply",{file:r.file,source:r.newSource,ifMatchSha:r.prevSha,note:`${e.property} removed at ${t.display}`});if(!s.applied)return{persisted:!1,reason:s.error??"the removal was refused"};const n=g(this.backend,this.history,{file:r.file,resourcePath:r.resourcePath,before:r.prevSource,after:r.newSource});return await this.history.recordAppliedTransaction({label:e.label,resources:[n.resource],scope:"project"},[n]),{persisted:!0,file:r.file,detail:`${e.property} dropped from ${r.file}:${t.line}`}}async persistData(e,t){const a=k();if(a.state!=="ready"){const c=_(t.record);return{persisted:!1,reason:c.anchored?"this game's data writer changed mid-gesture":c.reason}}const r=await this.post("/__ingest-source/read",{file:t.file});if(typeof r.source!="string"||!r.sha||!r.resourcePath)return{persisted:!1,reason:r.error??`this game's data file ${t.file} could not be read`};if(r.encoding!=="base64")return{persisted:!1,reason:`${t.file} came back as ${r.encoding??"utf8"} text, not bytes — a data writer edits binary game data, and writing text back through it would change the file`};let s;try{s=await a.writer.planDataEdit(w(r.source),{record:t.record,property:e.property,baseline:e.baseline,next:e.next})}catch(c){return{persisted:!1,reason:`this game's data writer refused: ${c instanceof Error?c.message:String(c)}`}}if(!s.changed)return{persisted:!1,reason:s.reason};const n=b(s.bytes),o=await this.post("/__ingest-source/apply",{file:t.file,source:n,encoding:"base64",ifMatchSha:r.sha,note:`${e.property} at ${t.display}`});return o.applied?(await this.recordEdit(e,{file:t.file,resourcePath:r.resourcePath,before:w(r.source),after:s.bytes}),{persisted:!0,file:t.file,detail:`${e.property} → ${t.display}`}):{persisted:!1,reason:o.error??"the write was refused"}}async recordEdit(e,t){const a=this.history,r=this.ensureLiveResource(),s=g(this.backend,a,t),n={objects:{[e.entityId]:{[e.property]:e.baseline}}},o={objects:{[e.entityId]:{[e.property]:e.next}}};await a.recordAppliedTransaction({label:e.label,resources:[s.resource,r],scope:"project"},[s,{resource:r,beforeBytes:u.encode(JSON.stringify(n)),afterBytes:u.encode(JSON.stringify(o)),contentType:"application/json"}])}async post(e,t){return await(await this.fetchImpl(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}ensureLiveResource(){if(this.liveResourceKey)return this.liveResourceKey;const e=this.history,t=e.registry.registerProject("overlay",".volter/ingest-live-objects","Ingested game objects"),a={descriptor:t,capture:async()=>{const r=u.encode(JSON.stringify({objects:{}}));return{revision:0,contentType:"application/json",bytes:r,sha256:await S(r)}},preflight:async()=>({ok:!0}),restore:async r=>{const s=JSON.parse(E.decode(e.snapshots.read(r).bytes));for(const[n,o]of Object.entries(s.objects))for(const[c,v]of Object.entries(o))this.live.apply(n,c,v)},estimateBytes:r=>r.byteLength};return this.unregisterLive=e.registerDriver(a),this.liveResourceKey=t.key,t.key}}function A(i,e){m.warn(`[ingest] ${i} stayed live-only — ${e}.`)}export{N as I,_ as a,k as b,R as d,D as i,y as l,A as r,x as s};
|
|
1
|
+
import{O as m,e7 as f,e8 as g,b2 as S,e9 as b,ea as w}from"./index-CvGsVzTo.js";const $="volterRecordIndex";function R(i){const e=i?.userData;if(e===null||typeof e!="object")return null;const t=e[$];return typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}let d={state:"absent"},h=0;function j(i,e){const t=i;if(t===null||typeof t!="object")throw new Error(`the data writer "${e}" did not export a module object`);if(typeof t.dataFile!="string"||t.dataFile.length===0)throw new Error(`the data writer "${e}" exports no \`dataFile\` string — a writer must name the one project-relative file it edits`);if(typeof t.planDataEdit!="function")throw new Error(`the data writer "${e}" exports no \`planDataEdit\` function — that is the whole contract: (bytes, request) => {changed, bytes} | {changed, reason}`);return{dataFile:t.dataFile,...typeof t.canPlace=="function"?{canPlace:t.canPlace.bind(t)}:{},planDataEdit:t.planDataEdit.bind(t)}}function x(i){const e=++h;if(i===null){d={state:"absent"};return}d={state:"loading"},i.load().then(t=>{h===e&&(d={state:"ready",writer:j(t,i.specifier)})}).catch(t=>{h===e&&(d={state:"failed",reason:`this game's declared data writer (${i.specifier}) could not be loaded: ${t instanceof Error?t.message:String(t)}`})})}function k(){return d}function I(i){const e=d;if(e.state!=="ready"||!e.writer.canPlace)return null;const t=e.writer.canPlace(i);return t===!0?null:t}function _(i){const e=d;switch(e.state){case"ready":return{anchored:!0,kind:"data",file:e.writer.dataFile,record:i,display:`${e.writer.dataFile} record ${i}`};case"loading":return{anchored:!1,reason:`this object is record ${i} of its game's own level data; the game's data writer is still loading`};case"failed":return{anchored:!1,reason:`this object is record ${i}, but ${e.reason}`};default:return{anchored:!1,reason:`this object is record ${i} of its game's own level data, and this game declares no data writer (\`ingest.dataWriter\`) that could write that record back`}}}const u=new TextEncoder,E=new TextDecoder;let l=null,p=null;function D(){return l}async function y(i=fetch){return l||p||(p=(async()=>{try{const e=await i("/__ingest-source/ownership");if(!e.ok)throw new Error(`HTTP ${e.status}`);l=await e.json()}catch(e){l={writable:!1,reason:`the editor could not reach its dev server to check who owns this game's source (${e instanceof Error?e.message:String(e)})`,projectRoot:null}}return l})(),p)}function T(i){const e=async(r,s)=>{const n=await i(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),o=await n.json();if(!n.ok&&r.endsWith("/read"))throw new Error(`Reading ingested game source failed with HTTP ${n.status}: ${JSON.stringify(o)}`);return o},t=new Map,a=r=>{throw new Error(`The creation-site source backend has no "${r}" — an ingested game has no JSX oids; ingest edits are anchored by creation site.`)};return{historyIdentity:P,readSource:async r=>{const s=await e("/__ingest-source/read",{file:r}),n=s.encoding==="base64";return t.set(r,n?"base64":"utf8"),n?{...s,bytes:w(s.source)}:s},applySource:(r,s,n)=>e("/__ingest-source/apply",{file:r,source:typeof s=="string"?s:b(s),ifMatchSha:n,encoding:typeof s=="string"?t.get(r)??"utf8":"base64"}),writeStyle:()=>a("writeStyle"),removeStyle:()=>a("removeStyle"),writeStruct:()=>a("writeStruct")}}const P={};class N{backend;fetchImpl;history;live;liveResourceKey=null;unregisterLive=null;constructor(e){this.history=e.history,this.live=e.live,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.backend=T(this.fetchImpl),y(this.fetchImpl)}dispose(){this.unregisterLive?.(),this.unregisterLive=null}gate(e,t,a,r="instance"){if(!e.anchored)return{ok:!1,reason:e.reason};const s=e.kind==="data"?`held at ${e.display}`:`created at ${e.display}`;if(e.kind==="data"){const o=I(a);if(o)return{ok:!1,reason:`${s}, but ${o}`}}const n=l;return n?n.writable?e.kind==="source"&&t!==1&&r!=="creation-site"?{ok:!1,reason:t===0?`${s}, but nothing was recorded as constructed there — the editor cannot tell whether that line builds this object alone`:`${s}, but that creation site constructs ${t} objects; a per-object edit cannot be written there`}:f()?{ok:!0}:{ok:!1,reason:`${s}, but this game is playing — hold it to author, or the edit stays live-only`}:{ok:!1,reason:`${s}; ${n.reason??"this game’s source is not writable"}`}:{ok:!1,reason:`${s}; still checking who owns this game's source`}}canAttempt(e,t,a){return this.gate(e,t,a).ok}describe(e,t,a,r="instance"){const s=this.gate(e,t,a,r);return s.ok?`Persisting to ${e.display}.`:`Live-only edit — ${s.reason}.`}async inspect(e){const t=e.anchor;if(!t.anchored||t.kind!=="source")return{};if(e.properties.length===0)return{};try{return(await this.post("/__ingest-source/inspect",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},...e.surface?{surface:e.surface}:{},properties:e.properties})).properties??{}}catch{return{}}}async persist(e){if(!f())return{persisted:!1,reason:"this game is playing — a play-time edit lives on the running object only"};const t=e.anchor;if(!t.anchored)return{persisted:!1,reason:t.reason};const a=await y(this.fetchImpl);if(!a.writable)return{persisted:!1,reason:a.reason??"this game’s source is not writable"};if(!this.history)return{persisted:!1,reason:"this session has no project history to record into"};if(t.kind==="data")return this.persistData(e,t);const r=await this.post("/__ingest-source/prepare",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},property:e.property,...e.surface?{surface:e.surface}:{},baseline:e.baseline,next:e.next});if(!r.changed||!r.file||!r.resourcePath||r.prevSource===void 0||r.newSource===void 0||!r.prevSha)return{persisted:!1,reason:r.reason??"the edit was refused"};const s=await this.post("/__ingest-source/apply",{file:r.file,source:r.newSource,ifMatchSha:r.prevSha,note:`${e.property} at ${t.display}`});return s.applied?(await this.recordEdit(e,{file:r.file,resourcePath:r.resourcePath,before:r.prevSource,after:r.newSource}),{persisted:!0,file:r.file,detail:`${e.property} → ${r.file}:${t.line}`}):{persisted:!1,reason:s.error??"the write was refused"}}async remove(e){if(!f())return{persisted:!1,reason:"this game is playing — a play-time edit lives on the running object only"};const t=e.anchor;if(!t.anchored)return{persisted:!1,reason:t.reason};const a=await y(this.fetchImpl);if(!a.writable)return{persisted:!1,reason:a.reason??"this game’s source is not writable"};if(!this.history)return{persisted:!1,reason:"this session has no project history to record into"};if(t.kind==="data")return{persisted:!1,reason:"a level-data record has no removable source statement — its property is the record's own field, not an authored override"};const r=await this.post("/__ingest-source/prepare",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},property:e.property,...e.surface?{surface:e.surface}:{},remove:!0});if(!r.changed||!r.file||!r.resourcePath||r.prevSource===void 0||r.newSource===void 0||!r.prevSha)return{persisted:!1,reason:r.reason??"the removal was refused"};const s=await this.post("/__ingest-source/apply",{file:r.file,source:r.newSource,ifMatchSha:r.prevSha,note:`${e.property} removed at ${t.display}`});if(!s.applied)return{persisted:!1,reason:s.error??"the removal was refused"};const n=g(this.backend,this.history,{file:r.file,resourcePath:r.resourcePath,before:r.prevSource,after:r.newSource});return await this.history.recordAppliedTransaction({label:e.label,resources:[n.resource],scope:"project"},[n]),{persisted:!0,file:r.file,detail:`${e.property} dropped from ${r.file}:${t.line}`}}async persistData(e,t){const a=k();if(a.state!=="ready"){const c=_(t.record);return{persisted:!1,reason:c.anchored?"this game's data writer changed mid-gesture":c.reason}}const r=await this.post("/__ingest-source/read",{file:t.file});if(typeof r.source!="string"||!r.sha||!r.resourcePath)return{persisted:!1,reason:r.error??`this game's data file ${t.file} could not be read`};if(r.encoding!=="base64")return{persisted:!1,reason:`${t.file} came back as ${r.encoding??"utf8"} text, not bytes — a data writer edits binary game data, and writing text back through it would change the file`};let s;try{s=await a.writer.planDataEdit(w(r.source),{record:t.record,property:e.property,baseline:e.baseline,next:e.next})}catch(c){return{persisted:!1,reason:`this game's data writer refused: ${c instanceof Error?c.message:String(c)}`}}if(!s.changed)return{persisted:!1,reason:s.reason};const n=b(s.bytes),o=await this.post("/__ingest-source/apply",{file:t.file,source:n,encoding:"base64",ifMatchSha:r.sha,note:`${e.property} at ${t.display}`});return o.applied?(await this.recordEdit(e,{file:t.file,resourcePath:r.resourcePath,before:w(r.source),after:s.bytes}),{persisted:!0,file:t.file,detail:`${e.property} → ${t.display}`}):{persisted:!1,reason:o.error??"the write was refused"}}async recordEdit(e,t){const a=this.history,r=this.ensureLiveResource(),s=g(this.backend,a,t),n={objects:{[e.entityId]:{[e.property]:e.baseline}}},o={objects:{[e.entityId]:{[e.property]:e.next}}};await a.recordAppliedTransaction({label:e.label,resources:[s.resource,r],scope:"project"},[s,{resource:r,beforeBytes:u.encode(JSON.stringify(n)),afterBytes:u.encode(JSON.stringify(o)),contentType:"application/json"}])}async post(e,t){return await(await this.fetchImpl(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}ensureLiveResource(){if(this.liveResourceKey)return this.liveResourceKey;const e=this.history,t=e.registry.registerProject("overlay",".volter/ingest-live-objects","Ingested game objects"),a={descriptor:t,capture:async()=>{const r=u.encode(JSON.stringify({objects:{}}));return{revision:0,contentType:"application/json",bytes:r,sha256:await S(r)}},preflight:async()=>({ok:!0}),restore:async r=>{const s=JSON.parse(E.decode(e.snapshots.read(r).bytes));for(const[n,o]of Object.entries(s.objects))for(const[c,v]of Object.entries(o))this.live.apply(n,c,v)},estimateBytes:r=>r.byteLength};return this.unregisterLive=e.registerDriver(a),this.liveResourceKey=t.key,t.key}}function A(i,e){m.warn(`[ingest] ${i} stayed live-only — ${e}.`)}export{N as I,_ as a,k as b,R as d,D as i,y as l,A as r,x as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a8 as i,r as e,O as p}from"./index-
|
|
1
|
+
import{a8 as i,r as e,O as p}from"./index-CvGsVzTo.js";import{i as s,a as m}from"./registry-BQ9YcFZF.js";import{a}from"./mount-ingest-root-BDP8atUq.js";import{t as n}from"./three-state-BhQOBgKC.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./active-ingest-lrfMBhf9.js";import"./game-contract-seams-5IUqvr7b.js";import"./capability-coverage-9qm5WVwt.js";import"./ingest-source-persistence-CPlDA2D8.js";import"./contract-system-adapters-BRHtWOi_.js";import"./editor-shell-store-Bro0arjr.js";import"./output-pass-HurwNl0G.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./Pass-D1MRT672.js";import"./editor-layers-BK3fNRb7.js";import"./workspace-arrangement-C9uemwSK.js";import"./user-data-DfBtZvxw.js";import"./entity-object-BFppZ54X.js";import"./three-contract-Dkt6PmWY.js";const z="workspace.service";function B(){const o=i({id:"in-tree-ingest-registry",owner:"@volter/editor-game/contributions/ingest.service.ts",modulePathFor:t=>m(t),importModule:async t=>await s(t)}),r=e().project.onReady(async()=>{const t=n();if(!t){p.error("Ingest auto-launch skipped: the editor shell store had not arrived at project ready.","ingest");return}await a(t)});return()=>{r(),o()}}export{z as point,B as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as p}from"./inference-diagnostics-
|
|
1
|
+
import{w as p}from"./inference-diagnostics-BCwXk-CS.js";const y="data-oid";function S(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function w(e){return e.replace(/-([a-z])/g,(n,t)=>t.toUpperCase())}function C(e,n){return e?e[n]:void 0}const R=e=>{const n=globalThis.window;if(n?.getComputedStyle)return n.getComputedStyle(e);const t=e.style;return{getPropertyValue:s=>String(C(t,w(s))??"")}};function L(e,n,t=R){return t(e).getPropertyValue(S(n))}function v(e){if(!e||typeof e!="object")return null;const n=Object.keys(e).find(t=>t.startsWith("__reactFiber$")||t.startsWith("__reactInternalInstance$"));return n?e[n]??null:null}function u(e){const n=v(e);if(!n?.return)return null;const t=n.return;return t.type&&typeof t.type=="function"?t:null}function $(e){const n=u(e);if(!n)return null;const t=n.type;return t.displayName||t.name||null}function _(e){const n=u(e);if(!n)return null;const t=n.memoizedProps?.[y];return typeof t=="string"?t:null}function P(e){const n=u(e);if(!n)return null;const t=n.memoizedProps;if(!t||typeof t!="object")return null;const s=new Set(["children","key","ref",y,"style","className"]),o={};for(const[r,i]of Object.entries(t))s.has(r)||(typeof i=="string"||typeof i=="number"||typeof i=="boolean")&&(o[r]=String(i));return Object.keys(o).length>0?o:null}function j(e){const n=_(e);if(!n)return null;const t=P(e);return t?{callSiteOid:n,props:t}:null}const f="__visual-edit-preview-styles";function m(e){const n=globalThis.CSSStyleRule;if(typeof n=="function")return e instanceof n;const t=e;return!!t&&typeof t.selectorText=="string"&&!!t.style}function W(e){const n={};for(let t=0;t<e.style.length;t++){const s=e.style[t];n[s]=e.style.getPropertyValue(s)}return n}function b(e,n){const t=globalThis.matchMedia,s=(o,r)=>{for(const i of Array.from(o)){if(m(i)){n(i,r);continue}const a=i;if(!a.cssRules)continue;const c=a.media?.mediaText;typeof c=="string"&&t&&!t(c).matches||typeof a.containerQuery=="string"||a.cssText?.trimStart().startsWith("@container")||s(a.cssRules,r)}};for(const o of e){const r=o.ownerNode;if(r?.id===f)continue;const i=r?.getAttribute?.("data-vite-dev-id")??null;if(i)try{s(o.cssRules,i)}catch{}}}function B(e,n=globalThis.document?.styleSheets??[]){let t=null;return b(n,(s,o)=>{s.selectorText.trim()===`.${e}`&&(t={sourceFile:o})}),t}function G(e=globalThis.document?.styleSheets??[]){const n=[];for(const t of e){const s=t.ownerNode;if(s?.id===f)continue;const o=s?.getAttribute?.("data-vite-dev-id")??null;if(!o)continue;(o.split("?")[0]??o).endsWith(".css")&&!n.includes(o)&&n.push(o)}return n}function z(e,n=globalThis.document?.styleSheets??[]){const t=[];return b(n,(s,o)=>{e.matches(s.selectorText)&&t.push({selectorText:s.selectorText,properties:W(s),sourceFile:o})}),t}function A(e=globalThis.document?.styleSheets??[]){const n=new Map,t=(s,o,r)=>{if(m(s)){const c=s.selectorText,d=r&&/(^|,)\s*:scope\s*($|,)/.test(c),T=/(^|,)\s*(:root|html)\s*($|,)/.test(c)&&!c.includes("[data-theme");if(!d&&!T)return;for(let l=0;l<s.style.length;l++){const h=s.style[l];h.startsWith("--")&&n.set(h,{sourceFile:o,selector:d?":root":c})}return}const i=s;if(!i.cssRules)return;const a=r||!!i.cssText?.trimStart().startsWith("@scope");for(const c of Array.from(i.cssRules))t(c,o,a)};for(const s of e){const o=s.ownerNode;if(o?.id===f)continue;const r=o?.getAttribute?.("data-vite-dev-id")??null;if(r)try{for(const i of Array.from(s.cssRules))t(i,r,!1)}catch{}}return n}function D(e=V()){if(!e)return[];const n=[],t=new Set;for(let o=0;o<e.length;o++){const r=e[o];if(!r.startsWith("--")||r.startsWith("--tw-")||r.startsWith("--fa-")||r.startsWith("--volter-")||r.startsWith("--vscode-")||r==="--chat-input-control-height"||r.startsWith("--dv-")||t.has(r))continue;t.add(r);const i=e.getPropertyValue(r).trim();i&&n.push({name:r,value:i,category:g(r,i)})}const s=A();for(const o of s.keys()){if(t.has(o)||o.startsWith("--tw-")||o.startsWith("--fa-")||o.startsWith("--volter-")||o.startsWith("--dv-")||o.startsWith("--vscode-")||o==="--chat-input-control-height")continue;t.add(o);const r=e.getPropertyValue(o).trim();r&&n.push({name:o,value:r,category:g(o,r)})}for(const o of n){const r=s.get(o.name);r&&(o.declaredIn=r)}return n}const x=/^(#[0-9a-f]{3,8}|rgba?\(|hsla?\(|oklch\()/i,N=/spacing|gap|margin|padding|radius|size|width|height/i,k=/color/i;function g(e,n){return x.test(n)?"color":k.test(e)?(p(":root",e,"color"),"color"):N.test(e)&&/^\d/.test(n)?(p(":root",e,"spacing"),"spacing"):"other"}function K(e){const n=[];for(const t of e){if(t.hasVisibleChildren||t.hasText||t.rect.width>=8&&t.rect.height>=8)continue;const s=Math.max(t.rect.width,40),o=Math.max(t.rect.height,24);n.push({oid:t.oid,displayName:t.displayName,rect:{x:t.rect.x-(s-t.rect.width)/2,y:t.rect.y-(o-t.rect.height)/2,width:s,height:o}})}return n}const E=new Set(["","transparent","rgba(0, 0, 0, 0)"]);function F(e){return E.has(e)}function U(e){for(const n of e)if(!F(n))return n;return"#fff"}const O=["Arial","Helvetica","Times New Roman","Georgia","Verdana","Courier New","Impact","Trebuchet MS","Palatino Linotype","Lucida Console","monospace","sans-serif","serif"];function I(e=[]){const n=new Set;for(const t of e)n.add(t.replace(/^["']|["']$/g,""));for(const t of O)n.add(t);return[...n].sort((t,s)=>t.localeCompare(s))}function H(){const e=globalThis,n=[],t=e.document?.fonts;if(t)for(const s of t)n.push(s.family);return I(n)}function V(){const e=globalThis,n=e.document?.documentElement;if(!(!n||!e.window?.getComputedStyle))return e.window.getComputedStyle(n)}export{z as a,R as b,D as c,$ as d,j as e,K as f,L as g,B as h,G as i,S as j,H as k,U as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ab as m}from"./index-CvGsVzTo.js";import{b as p,a as e,c as n,s}from"./game-network-BPTyOFqA.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./index-OZVqp6xS.js";import"./index-Da9JhEvW.js";import"./native-debug-module-XfhvyMrK.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-Dagj3b6J.js";import"./contract-system-adapters-BRHtWOi_.js";import"./game-contract-seams-5IUqvr7b.js";import"./seeded-random-D0QPgfm6.js";import"./game-audio-BeCyd0Ha.js";import"./rapier-physics-adapter-CaZqWLu0.js";import"./events-156d8d12.esm-CYeuVCYr.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./index-bQE2NA0D.js";import"./live-project-verbs-B7S-wGjC.js";import"./capability-coverage-9qm5WVwt.js";import"./edit-mode-authoring-DubxVdEM.js";import"./json-history-resource-CckDydoO.js";import"./binding-resolver-CBXePHiR.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-DCnaxwIb.js";import"./canvas-entry-runtime-Cjga4XYp.js";import"./three-ingest-runtime-CwRnwvb0.js";import"./EffectComposer-BEAt0PtQ.js";import"./CopyShader-BzTUYzf6.js";import"./ShaderPass-DTnDQXm0.js";import"./Pass-D1MRT672.js";import"./CSS3DRenderer-BsAqfavI.js";import"./relative-path-guard-GiM7Lsz8.js";import"./react-root-BHA-cdrW.js";import"./editor-presentation-activity-CqJH4G9t.js";import"./active-ingest-lrfMBhf9.js";import"./ingest-source-persistence-CPlDA2D8.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-CkSAEMH-.js";import"./mounted-authoring-D-tXkNKH.js";import"./entity-object-BFppZ54X.js";import"./user-data-DfBtZvxw.js";import"./workspace-arrangement-C9uemwSK.js";import"./three-contract-Dkt6PmWY.js";import"./three-bdxPiUPb.js";import"./editor-layers-BK3fNRb7.js";import"./component-instance-root-MBgAuUpp.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-BuqO9MDt.js";import"./source-persistence-backend-Djuk0m-7.js";import"./three-projection-core-BO23VKAP.js";import"./body-marks-C1LxJtQb.js";import"./user-data-CODoGZqA.js";import"./object-marks-BnvSuCTt.js";import"./structural-ids-BOo2BRoY.js";import"./object3d-authoring-subject-XccsO0xG.js";import"./r3f-physics-binding-BcTFD1ZS.js";import"./deferred-ingest-play-DZiOEH9a.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-B6BiehHR.js";import"./board-guides-whelE-Dr.js";import"./relative-import-specifier-BvzqkvYS.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-DxfAFkho.js";import"./inference-diagnostics-BCwXk-CS.js";import"./writer-tw6EcuVO.js";import"./three-state-BhQOBgKC.js";import"./editor-shell-store-Bro0arjr.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-CuJjGYTz.js";import"./game-surface-defaults-D8S4cRxi.js";const zt="workspace.command",a=()=>({ok:!1,error:"not in play mode — start play before using the debug seam"}),Bt={"set-instance-count":{derivedRefresh:"always",handle:o=>{if(!e())return a();const r=o.names;if(Array.isArray(r)&&r.every(i=>typeof i=="string"))return r.length<1?{ok:!1,error:'set-instance-count "names" must have at least one entry.'}:(n(r),{ok:!0});const t=o.count;return typeof t!="number"||!Number.isFinite(t)||t<1?{ok:!1,error:`set-instance-count requires a whole "count" >= 1 (or a "names" array), got ${String(t)}.`}:(s(Math.floor(t)-1),{ok:!0})}},"list-instances":{derivedRefresh:"if-content-changed",handle:()=>({ok:!0,data:{instances:m(),named:p()}})}};export{Bt as commands,zt as point};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e3 as u,e4 as y,b2 as n}from"./index-
|
|
1
|
+
import{e3 as u,e4 as y,b2 as n}from"./index-CvGsVzTo.js";function g(){return{isDirty:()=>!1,save:async()=>{},destination:u}}const p=new TextEncoder,c=new TextDecoder,l="authoring";function w(t){return{session:l,id:t}}function N(t,e){return{session:`play-${t}`,id:e}}class S{constructor(e){if(this.options=e,e.scope==="project"){if(!e.location)throw new Error("A project JSON history resource needs a location.");this.descriptor=e.history.registry.registerProject(e.kind,e.location,e.displayName)}else{if(!e.subject)throw new Error("A session JSON history resource needs a subject.");this.descriptor=e.history.registry.registerSession(e.kind,e.subject.session,e.subject.id,e.displayName)}const i={descriptor:this.descriptor,capture:async()=>{const s=this.encode(e.capture());return{revision:this.revision,contentType:"application/json",bytes:s,sha256:await n(s)}},preflight:async s=>{const r=this.encode(e.capture()),o=await n(r);if(!this.recorded)return{ok:!0};if(o===s.sha256)return{ok:!0};if(e.conflictIdentity){const a=JSON.parse(c.decode(e.history.snapshots.read(s).bytes)),d=JSON.stringify(e.conflictIdentity(a)),h=JSON.stringify(e.conflictIdentity(e.capture()));if(d===h)return{ok:!0}}return{ok:!1,reason:"content-conflict",actualRevision:this.revision,actualSha256:o}},restore:async s=>{const r=e.history.snapshots.read(s).bytes;await e.restore(JSON.parse(c.decode(r))),this.revision++},estimateBytes:s=>s.byteLength};this.unregister=e.history.registerDriver(i)}descriptor;revision=0;unregister;disposed=!1;recorded=!1;record(e,i,s){return this.disposed?Promise.reject(new Error("JSON history resource is disposed.")):(this.options.history.assertCanRecordAppliedChange(),this.revision++,this.recorded=!0,this.options.history.recordAppliedTransaction({label:e,resources:[this.descriptor.key],scope:this.descriptor.scope,...this.descriptor.sessionId?{sessionId:this.descriptor.sessionId}:{}},[{resource:this.descriptor.key,beforeBytes:this.encode(i),afterBytes:this.encode(s),contentType:"application/json"}]).catch(async r=>{try{await this.options.restore(structuredClone(i)),this.revision++}catch(o){throw this.options.history.blockForCompensationFailure(e,[this.descriptor.key],{operationError:r,compensationError:o})}throw r instanceof y||this.options.history.reportAppliedChangeFailure(e,[this.descriptor.key],r),r}))}assertCanMutate(){if(this.disposed)throw new Error("JSON history resource is disposed.");this.options.history.assertCanRecordAppliedChange()}dispose(){this.disposed||(this.disposed=!0,this.unregister())}encode(e){return p.encode(JSON.stringify(e,null,2))}}export{S as J,w as a,g as c,N as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{stackOrder as D}from"./root-stacking-BEd9ZvxC.js";import{ax as O,aA as g,aB as S,aC as b,aD as y,x as z,aE as E}from"./index-
|
|
1
|
+
import{stackOrder as D}from"./root-stacking-BEd9ZvxC.js";import{ax as O,aA as g,aB as S,aC as b,aD as y,x as z,aE as E}from"./index-CvGsVzTo.js";function m(d,o,r,c){const e=d.pickable?.pick(o,r)??null;return e?d.selection?.resolve?.(e,{intent:c,scopeId:y()})?.id??e:null}function C(d,o,r,c,e=!1){const a=d.pickable?.candidates?.(o,r,e?{includeLocked:e}:void 0)??[],s=[],l=new Set;for(const f of a){const i=d.selection?.resolve?.(f,{intent:c,scopeId:y()})?.id??f;l.has(i)||(l.add(i),s.push(i))}return s}function N(d,o,r,c={}){const e=c.intent??"normal",a=O(d);if(!(a instanceof g))return m(a,o,r,e);const s=a.childAdapters(),f=z()===E?[]:s.filter(n=>n.kind!=="three"),i=s.filter(n=>n.kind==="three"),h=f.map(n=>({id:n.worldId,zOrder:n.zOrder,worldId:n.worldId,adapter:n.adapter})),v=[...D(h).reverse(),...i];for(const{worldId:n,adapter:k}of v){if(S(n)||b(n))continue;const u=m(k,o,r,e);if(u)return u}return null}function P(d,o,r,c={}){const e=c.intent??"normal",a=c.includeLocked===!0,s=c.adapter??O(d);if(!(s instanceof g)){const t=C(s,o,r,e,a),p=m(s,o,r,e);return t.length>0?t:p?[p]:[]}const l=s.childAdapters(),i=z()===E?[]:l.filter(t=>t.kind!=="three"),h=l.filter(t=>t.kind==="three"),v=i.map(t=>({id:t.worldId,zOrder:t.zOrder,worldId:t.worldId,adapter:t.adapter})),n=[...D(v).reverse(),...h],k=[],u=new Set;for(const{worldId:t,adapter:p}of n){if(S(t)||b(t))continue;const I=C(p,o,r,e,a),w=m(p,o,r,e);for(const A of I.length>0?I:w?[w]:[])u.has(A)||(u.add(A),k.push(A))}return k}export{N as a,P as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o,bA as e,v as i,by as a}from"./index-
|
|
1
|
+
import{t as o,bA as e,v as i,by as a}from"./index-CvGsVzTo.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const s=o({type:a(["directional","point","spot","hemisphere","area"]).describe("Light type"),color:i().optional().describe("Light color as CSS hex string"),intensity:e().optional().describe("Native Three.js light intensity. Point and spot lights use candela with inverse-square falloff (a value near 1 is candle-scale); area lights use nit; directional and hemisphere lights use Three.js scene-light intensity units."),groundColor:i().optional().describe("Ground color for hemisphere lights"),distance:e().optional().describe("Maximum range of the light. 0 = infinite (point/spot only)"),decay:e().nonnegative().optional().describe("Native Three.js distance-decay exponent for point/spot lights. Default 2 gives physically correct inverse-square falloff."),angle:e().optional().describe("Spotlight cone angle in radians (spot only)"),penumbra:e().optional().describe("Spotlight penumbra softness 0–1 (spot only)"),width:e().optional().describe("Area light width (area only). RectAreaLight has NO shadow support and only affects Standard/Physical materials — degrades loudly, not silently."),height:e().optional().describe("Area light height (area only). RectAreaLight has NO shadow support and only affects Standard/Physical materials — degrades loudly, not silently.")}),y=s.refine(t=>t.type!=="spot"||t.angle===void 0||t.angle>0,{message:"Spot light angle must be positive"}).describe("Light source configuration");export{y as LightDescriptorSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as l,d as c}from"./capability-coverage-
|
|
1
|
+
import{P as l,d as c}from"./capability-coverage-9qm5WVwt.js";import{aw as a,Y as u}from"./index-CvGsVzTo.js";function d(e,t){return{slot:e,state:"unanswered",evidence:`nobody has read this project's own files yet, so ${e} is unmeasured — `+(t??"the editor has not asked its dev server for them")}}function p(e){return e.length>0&&e.every(t=>t.type==="ingest")}function h(e){const{scripts:t,roots:n}=e;return t===null||n===null?d("export",e.unavailable):t.includes("build")?{slot:"export",state:"present",evidence:`this project declares a \`build\` script, which is what the export path runs to emit the \`dist/\` it stages${p(n)?"; this ingest project ships the standalone bundle produced by its own build unchanged":""}`}:{slot:"export",state:"absent",evidence:e.hasPackageJson?"this project's package.json declares no `build` script, and the export path runs `npm run build` in the project and stages the `dist/` it emits":"this project has no package.json, so there is no `build` script for the export path to run",missing:"this project cannot produce a standalone build, so it runs NOWHERE but the editor — the dev-served standalone page refuses an unexported game outright",fix:"add the scaffold's `build` script (`build: tsc && vite build`), which is what the export path runs"}}function f(e){const t={export:h};return l.map(n=>t[n](e))}let r=null,i=null,o=null;function m(){r=null,i=null,o=null}async function b(e,t=fetch){return r&&o===e?r:(i&&o===e||(o=e,r=null,i=(async()=>{let n;try{const s=await t("/__editor/project-verbs");n=await u(s,"project-verbs did not answer")}catch(s){n={scripts:null,hasPackageJson:!1,dependencies:null,roots:null,unavailable:`the editor could not reach its dev server to read this project's own files (${s instanceof Error?s.message:String(s)})`}}return r=n,n})()),i)}function w(){const e=a();return e?(o===e.rootPath?r:null)?.dependencies??null:null}function g(){const e=a();if(!e)return null;b(e.rootPath);const t=o===e.rootPath?r:null;return{scripts:t?.scripts??null,hasPackageJson:t?.hasPackageJson??!1,roots:t?.roots??null,unavailable:t?.unavailable??(t?null:"the editor has not finished reading this project’s own files yet")}}function x(){const e=g();if(!e)return null;const t=a();return c({worldId:t?.config.name??"project",projectVerbs:f(e)})}export{x as a,g as b,m as i,w as p};
|