@dxos/plugin-space 0.8.2-staging.7ac8446 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/app-graph-builder-DCWUULKX.mjs +328 -0
- package/dist/lib/browser/app-graph-builder-DCWUULKX.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-serializer-DSF2U3A5.mjs → app-graph-serializer-MLU7XI2P.mjs} +10 -10
- package/dist/lib/browser/app-graph-serializer-MLU7XI2P.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KVRYWFZU.mjs → chunk-3LN4LJN6.mjs} +3 -8
- package/dist/lib/{node-esm/chunk-PIYAWT5N.mjs.map → browser/chunk-3LN4LJN6.mjs.map} +3 -3
- package/dist/lib/browser/chunk-7Y4M7GXO.mjs +94 -0
- package/dist/lib/browser/chunk-7Y4M7GXO.mjs.map +7 -0
- package/dist/lib/browser/{chunk-LO5UL6RU.mjs → chunk-N5QMRLKI.mjs} +78 -173
- package/dist/lib/browser/chunk-N5QMRLKI.mjs.map +7 -0
- package/dist/lib/browser/chunk-Q4BTFH2P.mjs +1900 -0
- package/dist/lib/browser/chunk-Q4BTFH2P.mjs.map +7 -0
- package/dist/lib/browser/{chunk-5BDV575R.mjs → chunk-VEBKN45O.mjs} +21 -10
- package/dist/lib/browser/chunk-VEBKN45O.mjs.map +7 -0
- package/dist/lib/browser/chunk-W46VVHFM.mjs +288 -0
- package/dist/lib/browser/chunk-W46VVHFM.mjs.map +7 -0
- package/dist/lib/browser/{identity-created-JR7BNXFH.mjs → identity-created-O63SIYOF.mjs} +5 -5
- package/dist/lib/browser/identity-created-O63SIYOF.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +34 -54
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-RKYILWWQ.mjs → intent-resolver-KBF3YU6I.mjs} +116 -108
- package/dist/lib/browser/intent-resolver-KBF3YU6I.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-6H7NX2M2.mjs → react-root-PVKJE4EZ.mjs} +6 -5
- package/dist/lib/browser/{react-surface-7AGLOVMK.mjs → react-surface-252P4NCK.mjs} +121 -54
- package/dist/lib/browser/react-surface-252P4NCK.mjs.map +7 -0
- package/dist/lib/browser/schema-defs-JMN74RNK.mjs +26 -0
- package/dist/lib/browser/schema-defs-JMN74RNK.mjs.map +7 -0
- package/dist/lib/browser/{schema-tools-YAXPRIXP.mjs → schema-tools-JIEMHUXV.mjs} +26 -26
- package/dist/lib/browser/schema-tools-JIEMHUXV.mjs.map +7 -0
- package/dist/lib/browser/{settings-PJPTJUPE.mjs → settings-2IN2WLUK.mjs} +4 -4
- package/dist/lib/browser/settings-2IN2WLUK.mjs.map +7 -0
- package/dist/lib/browser/{spaces-ready-BSSP7HHG.mjs → spaces-ready-L4QAGTDE.mjs} +20 -19
- package/dist/lib/browser/spaces-ready-L4QAGTDE.mjs.map +7 -0
- package/dist/lib/browser/{state-X7VLCC6E.mjs → state-6HOSHLIN.mjs} +3 -5
- package/dist/lib/browser/state-6HOSHLIN.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +7 -7
- package/dist/lib/node/app-graph-builder-WC445X77.cjs +328 -0
- package/dist/lib/node/app-graph-builder-WC445X77.cjs.map +7 -0
- package/dist/lib/node/{app-graph-serializer-JELGJUAY.cjs → app-graph-serializer-UPQOQVMJ.cjs} +22 -22
- package/dist/lib/node/app-graph-serializer-UPQOQVMJ.cjs.map +7 -0
- package/dist/lib/node/chunk-5WLAXYE3.cjs +125 -0
- package/dist/lib/node/chunk-5WLAXYE3.cjs.map +7 -0
- package/dist/lib/node/{chunk-IKIDS6XF.cjs → chunk-7GQGM4ZF.cjs} +7 -13
- package/dist/lib/node/{chunk-IKIDS6XF.cjs.map → chunk-7GQGM4ZF.cjs.map} +3 -3
- package/dist/lib/node/{chunk-TUZWEPGX.cjs → chunk-COQYISES.cjs} +100 -198
- package/dist/lib/node/chunk-COQYISES.cjs.map +7 -0
- package/dist/lib/node/{chunk-PU2EYH4E.cjs → chunk-DXL5TDFP.cjs} +25 -14
- package/dist/lib/node/chunk-DXL5TDFP.cjs.map +7 -0
- package/dist/lib/node/chunk-FXHI7JNY.cjs +315 -0
- package/dist/lib/node/chunk-FXHI7JNY.cjs.map +7 -0
- package/dist/lib/node/chunk-Q3YZEYZT.cjs +1904 -0
- package/dist/lib/node/chunk-Q3YZEYZT.cjs.map +7 -0
- package/dist/lib/node/{identity-created-XU4HFV2T.cjs → identity-created-UXEAUGC7.cjs} +7 -7
- package/dist/lib/node/identity-created-UXEAUGC7.cjs.map +7 -0
- package/dist/lib/node/index.cjs +83 -105
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-VJ7YV74L.cjs → intent-resolver-SVFJKUH7.cjs} +161 -152
- package/dist/lib/node/intent-resolver-SVFJKUH7.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-root-TEL5RW3N.cjs → react-root-DDPDUMCG.cjs} +11 -10
- package/dist/lib/node/{react-root-TEL5RW3N.cjs.map → react-root-DDPDUMCG.cjs.map} +1 -1
- package/dist/lib/node/{react-surface-2H3S5TY5.cjs → react-surface-JUIU37BX.cjs} +144 -77
- package/dist/lib/node/react-surface-JUIU37BX.cjs.map +7 -0
- package/dist/lib/node/{schema-PPJ5BZ3A.cjs → schema-defs-XLFBG3XK.cjs} +14 -12
- package/dist/lib/node/schema-defs-XLFBG3XK.cjs.map +7 -0
- package/dist/lib/node/{schema-tools-BLIMOZYY.cjs → schema-tools-ZG6Z2QRC.cjs} +32 -32
- package/dist/lib/node/schema-tools-ZG6Z2QRC.cjs.map +7 -0
- package/dist/lib/node/{settings-WVFP2UEP.cjs → settings-FOH7EB5C.cjs} +7 -7
- package/dist/lib/node/settings-FOH7EB5C.cjs.map +7 -0
- package/dist/lib/node/{spaces-ready-7DNZSUOG.cjs → spaces-ready-VXQYCBII.cjs} +27 -26
- package/dist/lib/node/spaces-ready-VXQYCBII.cjs.map +7 -0
- package/dist/lib/node/{state-5KX6WBJH.cjs → state-ZT3MTZXB.cjs} +7 -9
- package/dist/lib/node/state-ZT3MTZXB.cjs.map +7 -0
- package/dist/lib/node/types/index.cjs +15 -15
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/app-graph-builder-E7CCGPQJ.mjs +329 -0
- package/dist/lib/node-esm/app-graph-builder-E7CCGPQJ.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-serializer-FXONFKOE.mjs → app-graph-serializer-UCMSLPIA.mjs} +10 -10
- package/dist/lib/node-esm/app-graph-serializer-UCMSLPIA.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-PIYAWT5N.mjs → chunk-4X4Y63ND.mjs} +3 -8
- package/dist/lib/{browser/chunk-KVRYWFZU.mjs.map → node-esm/chunk-4X4Y63ND.mjs.map} +3 -3
- package/dist/lib/node-esm/chunk-FTELJGEG.mjs +289 -0
- package/dist/lib/node-esm/chunk-FTELJGEG.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-GH2FGJXH.mjs +96 -0
- package/dist/lib/node-esm/chunk-GH2FGJXH.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HL2Z2GNW.mjs +1901 -0
- package/dist/lib/node-esm/chunk-HL2Z2GNW.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-3ZOUV4DF.mjs → chunk-OSPEGYX3.mjs} +21 -10
- package/dist/lib/node-esm/chunk-OSPEGYX3.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-ZGLK25WQ.mjs → chunk-XAZNQ3QN.mjs} +78 -173
- package/dist/lib/node-esm/chunk-XAZNQ3QN.mjs.map +7 -0
- package/dist/lib/node-esm/{identity-created-WJKAS2PV.mjs → identity-created-ZECO4NH3.mjs} +5 -5
- package/dist/lib/node-esm/identity-created-ZECO4NH3.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +34 -54
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-ZFNSA4CM.mjs → intent-resolver-K2UDBF2R.mjs} +116 -108
- package/dist/lib/node-esm/intent-resolver-K2UDBF2R.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-root-PRBJMWLQ.mjs → react-root-6F7B3OVO.mjs} +6 -5
- package/dist/lib/{browser/react-root-6H7NX2M2.mjs.map → node-esm/react-root-6F7B3OVO.mjs.map} +1 -1
- package/dist/lib/node-esm/{react-surface-RCZG2PNF.mjs → react-surface-NP3Y6BNZ.mjs} +121 -54
- package/dist/lib/node-esm/react-surface-NP3Y6BNZ.mjs.map +7 -0
- package/dist/lib/node-esm/schema-defs-QZJS6UXN.mjs +27 -0
- package/dist/lib/node-esm/schema-defs-QZJS6UXN.mjs.map +7 -0
- package/dist/lib/node-esm/{schema-tools-IU7EX5A5.mjs → schema-tools-2Y4D42PD.mjs} +26 -26
- package/dist/lib/node-esm/schema-tools-2Y4D42PD.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-FJZPC2TV.mjs → settings-Q4XDFSYD.mjs} +4 -4
- package/dist/lib/node-esm/settings-Q4XDFSYD.mjs.map +7 -0
- package/dist/lib/node-esm/{spaces-ready-7X5PGB2V.mjs → spaces-ready-JHKPD4PH.mjs} +20 -19
- package/dist/lib/node-esm/spaces-ready-JHKPD4PH.mjs.map +7 -0
- package/dist/lib/node-esm/{state-Z6E2YTNC.mjs → state-4ATRHSKA.mjs} +3 -5
- package/dist/lib/node-esm/state-4ATRHSKA.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +7 -7
- package/dist/types/src/SpacePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-serializer.d.ts +2 -2
- package/dist/types/src/capabilities/app-graph-serializer.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -8
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/identity-created.d.ts +2 -2
- package/dist/types/src/capabilities/identity-created.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +9 -184
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +4 -3
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/schema-defs.d.ts +4 -0
- package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
- package/dist/types/src/capabilities/schema-tools.d.ts +3 -3
- package/dist/types/src/capabilities/schema-tools.d.ts.map +1 -1
- package/dist/types/src/capabilities/spaces-ready.d.ts +2 -2
- package/dist/types/src/capabilities/spaces-ready.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +2 -2
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/components/AwaitingObject.d.ts.map +1 -1
- package/dist/types/src/components/CollectionMain.d.ts.map +1 -1
- package/dist/types/src/components/CollectionSection.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts +2 -2
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateSpaceDialog.d.ts.map +1 -1
- package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/components/MembersContainer.d.ts.map +1 -1
- package/dist/types/src/components/MembersContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/MenuFooter.d.ts +2 -2
- package/dist/types/src/components/MenuFooter.d.ts.map +1 -1
- package/dist/types/src/components/{ObjectSettingsContainer → ObjectSettings}/AdvancedObjectSettings.d.ts +2 -2
- package/dist/types/src/components/ObjectSettings/AdvancedObjectSettings.d.ts.map +1 -0
- package/dist/types/src/components/{ObjectSettingsContainer → ObjectSettings}/BaseObjectSettings.d.ts +2 -2
- package/dist/types/src/components/ObjectSettings/BaseObjectSettings.d.ts.map +1 -0
- package/dist/types/src/components/ObjectSettings/ForeignKeys.d.ts.map +1 -0
- package/dist/types/src/components/{ObjectSettingsContainer → ObjectSettings}/ObjectSettingsContainer.d.ts +2 -2
- package/dist/types/src/components/ObjectSettings/ObjectSettingsContainer.d.ts.map +1 -0
- package/dist/types/src/components/ObjectSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/PersistenceStatus.d.ts.map +1 -1
- package/dist/types/src/components/PopoverRenameObject.d.ts +2 -2
- package/dist/types/src/components/PopoverRenameObject.d.ts.map +1 -1
- package/dist/types/src/components/PopoverRenameSpace.d.ts.map +1 -1
- package/dist/types/src/components/SchemaContainer.d.ts +13 -0
- package/dist/types/src/components/SchemaContainer.d.ts.map +1 -0
- package/dist/types/src/components/SpacePluginSettings.d.ts.map +1 -1
- package/dist/types/src/components/SpacePresence.d.ts.map +1 -1
- package/dist/types/src/components/SpacePresence.stories.d.ts.map +1 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.d.ts +0 -2
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.d.ts.map +1 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts +7 -0
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts.map +1 -0
- package/dist/types/src/components/SpaceSettings/index.d.ts +0 -1
- package/dist/types/src/components/SpaceSettings/index.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/InlineSyncStatus.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/SyncStatus.d.ts +1 -8
- package/dist/types/src/components/SyncStatus/SyncStatus.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/save-tracker.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/status.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +2 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useActiveSpace.d.ts +4 -0
- package/dist/types/src/hooks/useActiveSpace.d.ts.map +1 -0
- package/dist/types/src/hooks/useInputSurfaceLookup.d.ts +14 -0
- package/dist/types/src/hooks/useInputSurfaceLookup.d.ts.map +1 -0
- package/dist/types/src/hooks/usePath.d.ts +3 -2
- package/dist/types/src/hooks/usePath.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +17 -242
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/collection.d.ts +9 -8
- package/dist/types/src/types/collection.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +173 -146
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +36 -20
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +54 -47
- package/src/SpacePlugin.tsx +11 -20
- package/src/capabilities/app-graph-builder.ts +377 -230
- package/src/capabilities/app-graph-serializer.ts +8 -8
- package/src/capabilities/capabilities.ts +0 -9
- package/src/capabilities/identity-created.ts +5 -5
- package/src/capabilities/index.ts +2 -2
- package/src/capabilities/intent-resolver.ts +107 -111
- package/src/capabilities/react-surface.tsx +111 -50
- package/src/capabilities/schema-defs.ts +30 -0
- package/src/capabilities/schema-tool.test.ts +2 -3
- package/src/capabilities/schema-tools.ts +29 -29
- package/src/capabilities/settings.ts +2 -2
- package/src/capabilities/spaces-ready.ts +17 -15
- package/src/capabilities/state.ts +3 -5
- package/src/components/AwaitingObject.tsx +1 -1
- package/src/components/CollectionMain.tsx +2 -5
- package/src/components/CreateDialog/CreateObjectDialog.stories.tsx +4 -4
- package/src/components/CreateDialog/CreateObjectDialog.tsx +4 -4
- package/src/components/CreateDialog/CreateObjectPanel.tsx +3 -25
- package/src/components/CreateDialog/CreateSpaceDialog.tsx +6 -3
- package/src/components/MembersContainer.stories.tsx +1 -5
- package/src/components/MembersContainer.tsx +80 -54
- package/src/components/MenuFooter.tsx +2 -2
- package/src/components/{ObjectSettingsContainer → ObjectSettings}/AdvancedObjectSettings.tsx +4 -4
- package/src/components/{ObjectSettingsContainer → ObjectSettings}/BaseObjectSettings.tsx +2 -2
- package/src/components/{ObjectSettingsContainer → ObjectSettings}/ObjectSettingsContainer.tsx +4 -4
- package/src/components/PersistenceStatus.tsx +11 -14
- package/src/components/PopoverRenameObject.tsx +15 -9
- package/src/components/PopoverRenameSpace.tsx +9 -1
- package/src/components/SchemaContainer.tsx +59 -0
- package/src/components/SpacePluginSettings.tsx +27 -2
- package/src/components/SpacePresence.stories.tsx +1 -1
- package/src/components/SpacePresence.tsx +60 -65
- package/src/components/SpaceSettings/{SpacePropertiesForm.stories.tsx → SpaceSettingsContainer.stories.tsx} +6 -6
- package/src/components/SpaceSettings/SpaceSettingsContainer.tsx +159 -39
- package/src/components/SpaceSettings/index.ts +0 -1
- package/src/components/SyncStatus/InlineSyncStatus.tsx +15 -24
- package/src/components/SyncStatus/SyncStatus.tsx +6 -69
- package/src/components/index.ts +2 -3
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useActiveSpace.ts +20 -0
- package/src/hooks/useInputSurfaceLookup.tsx +31 -0
- package/src/hooks/usePath.ts +9 -6
- package/src/index.ts +3 -2
- package/src/translations.ts +19 -7
- package/src/types/collection.ts +6 -4
- package/src/types/index.ts +0 -1
- package/src/types/types.ts +130 -101
- package/src/util.tsx +75 -172
- package/dist/lib/browser/app-graph-builder-GMFCSOLG.mjs +0 -315
- package/dist/lib/browser/app-graph-builder-GMFCSOLG.mjs.map +0 -7
- package/dist/lib/browser/app-graph-serializer-DSF2U3A5.mjs.map +0 -7
- package/dist/lib/browser/chunk-5BDV575R.mjs.map +0 -7
- package/dist/lib/browser/chunk-AYW4IDRT.mjs +0 -275
- package/dist/lib/browser/chunk-AYW4IDRT.mjs.map +0 -7
- package/dist/lib/browser/chunk-JZXWPMLA.mjs +0 -2081
- package/dist/lib/browser/chunk-JZXWPMLA.mjs.map +0 -7
- package/dist/lib/browser/chunk-LO5UL6RU.mjs.map +0 -7
- package/dist/lib/browser/identity-created-JR7BNXFH.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-RKYILWWQ.mjs.map +0 -7
- package/dist/lib/browser/react-surface-7AGLOVMK.mjs.map +0 -7
- package/dist/lib/browser/schema-FHTA26SW.mjs +0 -24
- package/dist/lib/browser/schema-FHTA26SW.mjs.map +0 -7
- package/dist/lib/browser/schema-tools-YAXPRIXP.mjs.map +0 -7
- package/dist/lib/browser/settings-PJPTJUPE.mjs.map +0 -7
- package/dist/lib/browser/spaces-ready-BSSP7HHG.mjs.map +0 -7
- package/dist/lib/browser/state-X7VLCC6E.mjs.map +0 -7
- package/dist/lib/node/app-graph-builder-DPY7AUZE.cjs +0 -318
- package/dist/lib/node/app-graph-builder-DPY7AUZE.cjs.map +0 -7
- package/dist/lib/node/app-graph-serializer-JELGJUAY.cjs.map +0 -7
- package/dist/lib/node/chunk-3GKCNADA.cjs +0 -2074
- package/dist/lib/node/chunk-3GKCNADA.cjs.map +0 -7
- package/dist/lib/node/chunk-PU2EYH4E.cjs.map +0 -7
- package/dist/lib/node/chunk-TUZWEPGX.cjs.map +0 -7
- package/dist/lib/node/chunk-WDEIFDTX.cjs +0 -300
- package/dist/lib/node/chunk-WDEIFDTX.cjs.map +0 -7
- package/dist/lib/node/identity-created-XU4HFV2T.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-VJ7YV74L.cjs.map +0 -7
- package/dist/lib/node/react-surface-2H3S5TY5.cjs.map +0 -7
- package/dist/lib/node/schema-PPJ5BZ3A.cjs.map +0 -7
- package/dist/lib/node/schema-tools-BLIMOZYY.cjs.map +0 -7
- package/dist/lib/node/settings-WVFP2UEP.cjs.map +0 -7
- package/dist/lib/node/spaces-ready-7DNZSUOG.cjs.map +0 -7
- package/dist/lib/node/state-5KX6WBJH.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-42IGWRPL.mjs +0 -316
- package/dist/lib/node-esm/app-graph-builder-42IGWRPL.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-serializer-FXONFKOE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3ZOUV4DF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BEWBZ4Q4.mjs +0 -2082
- package/dist/lib/node-esm/chunk-BEWBZ4Q4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FC4UHDPL.mjs +0 -276
- package/dist/lib/node-esm/chunk-FC4UHDPL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZGLK25WQ.mjs.map +0 -7
- package/dist/lib/node-esm/identity-created-WJKAS2PV.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-ZFNSA4CM.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-RCZG2PNF.mjs.map +0 -7
- package/dist/lib/node-esm/schema-OUZKVYM5.mjs +0 -25
- package/dist/lib/node-esm/schema-OUZKVYM5.mjs.map +0 -7
- package/dist/lib/node-esm/schema-tools-IU7EX5A5.mjs.map +0 -7
- package/dist/lib/node-esm/settings-FJZPC2TV.mjs.map +0 -7
- package/dist/lib/node-esm/spaces-ready-7X5PGB2V.mjs.map +0 -7
- package/dist/lib/node-esm/state-Z6E2YTNC.mjs.map +0 -7
- package/dist/types/src/capabilities/schema.d.ts +0 -4
- package/dist/types/src/capabilities/schema.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettingsContainer/AdvancedObjectSettings.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettingsContainer/BaseObjectSettings.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettingsContainer/ForeignKeys.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettingsContainer/ObjectSettingsContainer.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettingsContainer/index.d.ts.map +0 -1
- package/dist/types/src/components/PopoverAddSpace.d.ts +0 -4
- package/dist/types/src/components/PopoverAddSpace.d.ts.map +0 -1
- package/dist/types/src/components/ShareSpaceButton.d.ts +0 -9
- package/dist/types/src/components/ShareSpaceButton.d.ts.map +0 -1
- package/dist/types/src/components/ShareSpaceButton.stories.d.ts +0 -10
- package/dist/types/src/components/ShareSpaceButton.stories.d.ts.map +0 -1
- package/dist/types/src/components/SpaceSettings/SpacePropertiesForm.d.ts +0 -7
- package/dist/types/src/components/SpaceSettings/SpacePropertiesForm.d.ts.map +0 -1
- package/dist/types/src/components/SpaceSettings/SpacePropertiesForm.stories.d.ts +0 -7
- package/dist/types/src/components/SpaceSettings/SpacePropertiesForm.stories.d.ts.map +0 -1
- package/dist/types/src/components/SyncStatus/Space.d.ts +0 -13
- package/dist/types/src/components/SyncStatus/Space.d.ts.map +0 -1
- package/dist/types/src/components/SyncStatus/SyncStatusDetail.stories.d.ts +0 -9
- package/dist/types/src/components/SyncStatus/SyncStatusDetail.stories.d.ts.map +0 -1
- package/dist/types/src/components/SyncStatus/sync-state.d.ts +0 -18
- package/dist/types/src/components/SyncStatus/sync-state.d.ts.map +0 -1
- package/dist/types/src/types/thread.d.ts +0 -128
- package/dist/types/src/types/thread.d.ts.map +0 -1
- package/src/capabilities/schema.ts +0 -27
- package/src/components/PopoverAddSpace.tsx +0 -46
- package/src/components/ShareSpaceButton.stories.tsx +0 -27
- package/src/components/ShareSpaceButton.tsx +0 -32
- package/src/components/SpaceSettings/SpacePropertiesForm.tsx +0 -136
- package/src/components/SyncStatus/Space.tsx +0 -133
- package/src/components/SyncStatus/SyncStatusDetail.stories.tsx +0 -89
- package/src/components/SyncStatus/sync-state.ts +0 -101
- package/src/types/thread.ts +0 -24
- /package/dist/lib/{node-esm/react-root-PRBJMWLQ.mjs.map → browser/react-root-PVKJE4EZ.mjs.map} +0 -0
- /package/dist/types/src/components/{ObjectSettingsContainer → ObjectSettings}/ForeignKeys.d.ts +0 -0
- /package/dist/types/src/components/{ObjectSettingsContainer → ObjectSettings}/index.d.ts +0 -0
- /package/src/components/{ObjectSettingsContainer → ObjectSettings}/ForeignKeys.tsx +0 -0
- /package/src/components/{ObjectSettingsContainer → ObjectSettings}/index.ts +0 -0
|
@@ -16,15 +16,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var intent_resolver_SVFJKUH7_exports = {};
|
|
20
|
+
__export(intent_resolver_SVFJKUH7_exports, {
|
|
21
21
|
default: () => intent_resolver_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(intent_resolver_SVFJKUH7_exports);
|
|
24
|
+
var import_chunk_Q3YZEYZT = require("./chunk-Q3YZEYZT.cjs");
|
|
25
|
+
var import_chunk_5WLAXYE3 = require("./chunk-5WLAXYE3.cjs");
|
|
26
|
+
var import_chunk_7GQGM4ZF = require("./chunk-7GQGM4ZF.cjs");
|
|
27
|
+
var import_chunk_COQYISES = require("./chunk-COQYISES.cjs");
|
|
28
|
+
var import_chunk_FXHI7JNY = require("./chunk-FXHI7JNY.cjs");
|
|
28
29
|
var import_chunk_6P2DB4QQ = require("./chunk-6P2DB4QQ.cjs");
|
|
29
30
|
var import_effect = require("effect");
|
|
30
31
|
var import_app_framework = require("@dxos/app-framework");
|
|
@@ -33,22 +34,23 @@ var import_invariant = require("@dxos/invariant");
|
|
|
33
34
|
var import_live_object = require("@dxos/live-object");
|
|
34
35
|
var import_migrations = require("@dxos/migrations");
|
|
35
36
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
36
|
-
var import_types = require("@dxos/plugin-
|
|
37
|
-
var import_types2 = require("@dxos/plugin-observability/types");
|
|
37
|
+
var import_types = require("@dxos/plugin-observability/types");
|
|
38
38
|
var import_metadata = require("@dxos/protocols/proto/dxos/echo/metadata");
|
|
39
39
|
var import_echo = require("@dxos/react-client/echo");
|
|
40
|
+
var import_invitations = require("@dxos/react-client/invitations");
|
|
41
|
+
var import_react_ui_attention = require("@dxos/react-ui-attention");
|
|
40
42
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/capabilities/intent-resolver.ts";
|
|
41
43
|
var SPACE_MAX_OBJECTS = 500;
|
|
42
|
-
var intent_resolver_default = ({ context, observability }) => {
|
|
43
|
-
const resolve = (typename) => context.
|
|
44
|
+
var intent_resolver_default = ({ context, observability, createInvitationUrl }) => {
|
|
45
|
+
const resolve = (typename) => context.getCapabilities(import_app_framework.Capabilities.Metadata).find(({ id }) => id === typename)?.metadata ?? {};
|
|
44
46
|
return (0, import_app_framework.contributes)(import_app_framework.Capabilities.IntentResolver, [
|
|
45
47
|
(0, import_app_framework.createResolver)({
|
|
46
|
-
intent:
|
|
48
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.OpenCreateSpace,
|
|
47
49
|
resolve: () => ({
|
|
48
50
|
intents: [
|
|
49
51
|
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdateDialog, {
|
|
50
52
|
part: "dialog",
|
|
51
|
-
subject:
|
|
53
|
+
subject: import_chunk_Q3YZEYZT.CREATE_SPACE_DIALOG,
|
|
52
54
|
options: {
|
|
53
55
|
blockAlign: "start"
|
|
54
56
|
}
|
|
@@ -57,21 +59,23 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
57
59
|
})
|
|
58
60
|
}),
|
|
59
61
|
(0, import_app_framework.createResolver)({
|
|
60
|
-
intent:
|
|
61
|
-
resolve: async ({ name, edgeReplication }) => {
|
|
62
|
-
const client = context.
|
|
62
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.Create,
|
|
63
|
+
resolve: async ({ name, hue, icon, edgeReplication }) => {
|
|
64
|
+
const client = context.getCapability(import_plugin_client.ClientCapabilities.Client);
|
|
63
65
|
const space = await client.spaces.create({
|
|
64
|
-
name
|
|
66
|
+
name,
|
|
67
|
+
hue,
|
|
68
|
+
icon
|
|
65
69
|
});
|
|
66
70
|
if (edgeReplication) {
|
|
67
71
|
await space.internal.setEdgeReplicationPreference(import_metadata.EdgeReplicationSetting.ENABLED);
|
|
68
72
|
}
|
|
69
73
|
await space.waitUntilReady();
|
|
70
|
-
const collection = (0, import_live_object.
|
|
74
|
+
const collection = (0, import_live_object.live)(import_chunk_FXHI7JNY.CollectionType, {
|
|
71
75
|
objects: [],
|
|
72
76
|
views: {}
|
|
73
77
|
});
|
|
74
|
-
space.properties[
|
|
78
|
+
space.properties[import_chunk_FXHI7JNY.CollectionType.typename] = (0, import_live_object.makeRef)(collection);
|
|
75
79
|
if (import_migrations.Migrations.versionProperty) {
|
|
76
80
|
space.properties[import_migrations.Migrations.versionProperty] = import_migrations.Migrations.targetVersion;
|
|
77
81
|
}
|
|
@@ -85,7 +89,7 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
85
89
|
},
|
|
86
90
|
intents: [
|
|
87
91
|
...observability ? [
|
|
88
|
-
(0, import_app_framework.createIntent)(
|
|
92
|
+
(0, import_app_framework.createIntent)(import_types.ObservabilityAction.SendEvent, {
|
|
89
93
|
name: "space.create",
|
|
90
94
|
properties: {
|
|
91
95
|
spaceId: space.id
|
|
@@ -97,12 +101,12 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
97
101
|
}
|
|
98
102
|
}),
|
|
99
103
|
(0, import_app_framework.createResolver)({
|
|
100
|
-
intent:
|
|
104
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.Join,
|
|
101
105
|
resolve: ({ invitationCode, onDone }) => ({
|
|
102
106
|
intents: [
|
|
103
107
|
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdateDialog, {
|
|
104
108
|
part: "dialog",
|
|
105
|
-
subject:
|
|
109
|
+
subject: import_chunk_Q3YZEYZT.JOIN_DIALOG,
|
|
106
110
|
options: {
|
|
107
111
|
blockAlign: "start",
|
|
108
112
|
props: {
|
|
@@ -115,55 +119,78 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
115
119
|
})
|
|
116
120
|
}),
|
|
117
121
|
(0, import_app_framework.createResolver)({
|
|
118
|
-
intent:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
122
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.OpenMembers,
|
|
123
|
+
resolve: ({ space }) => ({
|
|
124
|
+
intents: [
|
|
125
|
+
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.Open, {
|
|
126
|
+
part: "main",
|
|
127
|
+
subject: [
|
|
128
|
+
`members-settings${import_react_ui_attention.ATTENDABLE_PATH_SEPARATOR}${space.id}`
|
|
129
|
+
],
|
|
130
|
+
options: {
|
|
131
|
+
workspace: space.id
|
|
132
|
+
}
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
})
|
|
136
|
+
}),
|
|
137
|
+
(0, import_app_framework.createResolver)({
|
|
138
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.Share,
|
|
139
|
+
resolve: ({ space, type, authMethod, multiUse, target }) => {
|
|
140
|
+
const invitation = space.share({
|
|
141
|
+
type,
|
|
142
|
+
authMethod,
|
|
143
|
+
multiUse,
|
|
144
|
+
target
|
|
145
|
+
});
|
|
133
146
|
return {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
subject: [
|
|
141
|
-
space.id
|
|
142
|
-
],
|
|
143
|
-
options: {
|
|
144
|
-
variant: "members"
|
|
147
|
+
data: invitation,
|
|
148
|
+
intents: observability ? [
|
|
149
|
+
(0, import_app_framework.createIntent)(import_types.ObservabilityAction.SendEvent, {
|
|
150
|
+
name: "space.share",
|
|
151
|
+
properties: {
|
|
152
|
+
spaceId: space.id
|
|
145
153
|
}
|
|
146
|
-
})
|
|
147
|
-
|
|
148
|
-
(0, import_app_framework.createIntent)(import_types2.ObservabilityAction.SendEvent, {
|
|
149
|
-
name: "space.share",
|
|
150
|
-
properties: {
|
|
151
|
-
spaceId: space.id
|
|
152
|
-
}
|
|
153
|
-
})
|
|
154
|
-
] : []
|
|
155
|
-
]
|
|
154
|
+
})
|
|
155
|
+
] : []
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
}),
|
|
159
159
|
(0, import_app_framework.createResolver)({
|
|
160
|
-
intent:
|
|
160
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.GetShareLink,
|
|
161
|
+
resolve: ({ space, target, copyToClipboard }) => import_effect.Effect.gen(function* () {
|
|
162
|
+
const { dispatch } = context.getCapability(import_app_framework.Capabilities.IntentDispatcher);
|
|
163
|
+
const invitation = yield* dispatch((0, import_app_framework.createIntent)(import_chunk_FXHI7JNY.SpaceAction.Share, {
|
|
164
|
+
space,
|
|
165
|
+
type: import_invitations.Invitation.Type.DELEGATED,
|
|
166
|
+
authMethod: import_invitations.Invitation.AuthMethod.KNOWN_PUBLIC_KEY,
|
|
167
|
+
multiUse: true,
|
|
168
|
+
target
|
|
169
|
+
}));
|
|
170
|
+
const invitationCode = yield* import_effect.Effect.tryPromise(() => new Promise((resolve2) => {
|
|
171
|
+
invitation.subscribe((invitation2) => {
|
|
172
|
+
if (invitation2.state === import_invitations.Invitation.State.CONNECTING) {
|
|
173
|
+
resolve2(import_invitations.InvitationEncoder.encode(invitation2));
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}));
|
|
177
|
+
const url = createInvitationUrl(invitationCode);
|
|
178
|
+
if (copyToClipboard) {
|
|
179
|
+
yield* import_effect.Effect.tryPromise(() => navigator.clipboard.writeText(url));
|
|
180
|
+
}
|
|
181
|
+
return {
|
|
182
|
+
data: url
|
|
183
|
+
};
|
|
184
|
+
})
|
|
185
|
+
}),
|
|
186
|
+
(0, import_app_framework.createResolver)({
|
|
187
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.Lock,
|
|
161
188
|
resolve: ({ space }) => {
|
|
162
|
-
space.properties[
|
|
189
|
+
space.properties[import_chunk_COQYISES.COMPOSER_SPACE_LOCK] = true;
|
|
163
190
|
return {
|
|
164
191
|
intents: [
|
|
165
192
|
...observability ? [
|
|
166
|
-
(0, import_app_framework.createIntent)(
|
|
193
|
+
(0, import_app_framework.createIntent)(import_types.ObservabilityAction.SendEvent, {
|
|
167
194
|
name: "space.lock",
|
|
168
195
|
properties: {
|
|
169
196
|
spaceId: space.id
|
|
@@ -175,13 +202,13 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
175
202
|
}
|
|
176
203
|
}),
|
|
177
204
|
(0, import_app_framework.createResolver)({
|
|
178
|
-
intent:
|
|
205
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.Unlock,
|
|
179
206
|
resolve: ({ space }) => {
|
|
180
|
-
space.properties[
|
|
207
|
+
space.properties[import_chunk_COQYISES.COMPOSER_SPACE_LOCK] = false;
|
|
181
208
|
return {
|
|
182
209
|
intents: [
|
|
183
210
|
...observability ? [
|
|
184
|
-
(0, import_app_framework.createIntent)(
|
|
211
|
+
(0, import_app_framework.createIntent)(import_types.ObservabilityAction.SendEvent, {
|
|
185
212
|
name: "space.unlock",
|
|
186
213
|
properties: {
|
|
187
214
|
spaceId: space.id
|
|
@@ -193,13 +220,13 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
193
220
|
}
|
|
194
221
|
}),
|
|
195
222
|
(0, import_app_framework.createResolver)({
|
|
196
|
-
intent:
|
|
223
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.Rename,
|
|
197
224
|
resolve: ({ caller, space }) => {
|
|
198
225
|
return {
|
|
199
226
|
intents: [
|
|
200
227
|
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdatePopover, {
|
|
201
228
|
part: "popover",
|
|
202
|
-
subject:
|
|
229
|
+
subject: import_chunk_Q3YZEYZT.POPOVER_RENAME_SPACE,
|
|
203
230
|
options: {
|
|
204
231
|
anchorId: `dxos.org/ui/${caller}/${space.id}`,
|
|
205
232
|
props: space
|
|
@@ -210,71 +237,37 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
210
237
|
}
|
|
211
238
|
}),
|
|
212
239
|
(0, import_app_framework.createResolver)({
|
|
213
|
-
intent:
|
|
214
|
-
resolve: () => {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
}),
|
|
229
|
-
(0, import_app_framework.createResolver)({
|
|
230
|
-
intent: import_chunk_WDEIFDTX.SpaceAction.OpenSettings,
|
|
231
|
-
resolve: ({ space }) => {
|
|
232
|
-
const layout = context.requestCapability(import_app_framework.Capabilities.Layout);
|
|
233
|
-
const id = `${space.id}${import_types.ATTENDABLE_PATH_SEPARATOR}settings`;
|
|
234
|
-
if (layout.active.includes(id)) {
|
|
235
|
-
return {
|
|
236
|
-
intents: [
|
|
237
|
-
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.ScrollIntoView, {
|
|
238
|
-
part: "current",
|
|
239
|
-
subject: id
|
|
240
|
-
})
|
|
241
|
-
]
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
return {
|
|
245
|
-
intents: [
|
|
246
|
-
(0, import_effect.pipe)((0, import_app_framework.createIntent)(import_app_framework.LayoutAction.SwitchWorkspace, {
|
|
247
|
-
part: "workspace",
|
|
248
|
-
subject: space.id
|
|
249
|
-
}), (0, import_app_framework.chain)(import_app_framework.LayoutAction.Open, {
|
|
250
|
-
part: "main",
|
|
251
|
-
subject: [
|
|
252
|
-
space.id
|
|
253
|
-
],
|
|
254
|
-
options: {
|
|
255
|
-
variant: "settings"
|
|
256
|
-
}
|
|
257
|
-
}))
|
|
258
|
-
]
|
|
259
|
-
};
|
|
260
|
-
}
|
|
240
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.OpenSettings,
|
|
241
|
+
resolve: ({ space }) => ({
|
|
242
|
+
intents: [
|
|
243
|
+
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.Open, {
|
|
244
|
+
part: "main",
|
|
245
|
+
subject: [
|
|
246
|
+
`properties-settings${import_react_ui_attention.ATTENDABLE_PATH_SEPARATOR}${space.id}`
|
|
247
|
+
],
|
|
248
|
+
options: {
|
|
249
|
+
workspace: space.id
|
|
250
|
+
}
|
|
251
|
+
})
|
|
252
|
+
]
|
|
253
|
+
})
|
|
261
254
|
}),
|
|
262
255
|
(0, import_app_framework.createResolver)({
|
|
263
|
-
intent:
|
|
256
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.Open,
|
|
264
257
|
resolve: async ({ space }) => {
|
|
265
258
|
await space.open();
|
|
266
259
|
}
|
|
267
260
|
}),
|
|
268
261
|
(0, import_app_framework.createResolver)({
|
|
269
|
-
intent:
|
|
262
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.Close,
|
|
270
263
|
resolve: async ({ space }) => {
|
|
271
264
|
await space.close();
|
|
272
265
|
}
|
|
273
266
|
}),
|
|
274
267
|
(0, import_app_framework.createResolver)({
|
|
275
|
-
intent:
|
|
268
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.Migrate,
|
|
276
269
|
resolve: async ({ space, version: targetVersion }) => {
|
|
277
|
-
const state = context.
|
|
270
|
+
const state = context.getCapability(import_chunk_7GQGM4ZF.SpaceCapabilities.MutableState);
|
|
278
271
|
if (space.state.get() === import_echo.SpaceState.SPACE_REQUIRES_MIGRATION) {
|
|
279
272
|
state.sdkMigrationRunning[space.id] = true;
|
|
280
273
|
await space.internal.migrate();
|
|
@@ -286,7 +279,7 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
286
279
|
data: result,
|
|
287
280
|
intents: [
|
|
288
281
|
...observability ? [
|
|
289
|
-
(0, import_app_framework.createIntent)(
|
|
282
|
+
(0, import_app_framework.createIntent)(import_types.ObservabilityAction.SendEvent, {
|
|
290
283
|
name: "space.migrate",
|
|
291
284
|
properties: {
|
|
292
285
|
spaceId: space.id,
|
|
@@ -300,19 +293,19 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
300
293
|
}
|
|
301
294
|
}),
|
|
302
295
|
(0, import_app_framework.createResolver)({
|
|
303
|
-
intent:
|
|
296
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.OpenCreateObject,
|
|
304
297
|
resolve: ({ target, navigable = true }) => {
|
|
305
|
-
const state = context.
|
|
298
|
+
const state = context.getCapability(import_chunk_7GQGM4ZF.SpaceCapabilities.State);
|
|
306
299
|
return {
|
|
307
300
|
intents: [
|
|
308
301
|
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdateDialog, {
|
|
309
302
|
part: "dialog",
|
|
310
|
-
subject:
|
|
303
|
+
subject: import_chunk_Q3YZEYZT.CREATE_OBJECT_DIALOG,
|
|
311
304
|
options: {
|
|
312
305
|
blockAlign: "start",
|
|
313
306
|
props: {
|
|
314
307
|
target,
|
|
315
|
-
shouldNavigate: navigable ? (object) => !(object instanceof
|
|
308
|
+
shouldNavigate: navigable ? (object) => !(object instanceof import_chunk_FXHI7JNY.CollectionType) || state.navigableCollections : () => false
|
|
316
309
|
}
|
|
317
310
|
}
|
|
318
311
|
})
|
|
@@ -321,12 +314,12 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
321
314
|
}
|
|
322
315
|
}),
|
|
323
316
|
(0, import_app_framework.createResolver)({
|
|
324
|
-
intent:
|
|
317
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.AddObject,
|
|
325
318
|
resolve: async ({ target, object, hidden }) => {
|
|
326
319
|
const space = (0, import_echo.isSpace)(target) ? target : (0, import_echo.getSpace)(target);
|
|
327
320
|
(0, import_invariant.invariant)(space, "Space not found.", {
|
|
328
321
|
F: __dxlog_file,
|
|
329
|
-
L:
|
|
322
|
+
L: 333,
|
|
330
323
|
S: void 0,
|
|
331
324
|
A: [
|
|
332
325
|
"space",
|
|
@@ -377,7 +370,7 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
377
370
|
}
|
|
378
371
|
}),
|
|
379
372
|
...observability ? [
|
|
380
|
-
(0, import_app_framework.createIntent)(
|
|
373
|
+
(0, import_app_framework.createIntent)(import_types.ObservabilityAction.SendEvent, {
|
|
381
374
|
name: "space.limit",
|
|
382
375
|
properties: {
|
|
383
376
|
spaceId: space.id
|
|
@@ -387,22 +380,22 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
387
380
|
]
|
|
388
381
|
};
|
|
389
382
|
}
|
|
390
|
-
if (target instanceof
|
|
383
|
+
if (target instanceof import_chunk_FXHI7JNY.CollectionType) {
|
|
391
384
|
target.objects.push((0, import_live_object.makeRef)(object));
|
|
392
385
|
} else if ((0, import_echo.isSpace)(target) && hidden) {
|
|
393
386
|
space.db.add(object);
|
|
394
387
|
} else if ((0, import_echo.isSpace)(target)) {
|
|
395
|
-
const collection = space.properties[
|
|
396
|
-
if (collection instanceof
|
|
388
|
+
const collection = space.properties[import_chunk_FXHI7JNY.CollectionType.typename]?.target;
|
|
389
|
+
if (collection instanceof import_chunk_FXHI7JNY.CollectionType) {
|
|
397
390
|
collection.objects.push((0, import_live_object.makeRef)(object));
|
|
398
391
|
} else {
|
|
399
|
-
const collection2 = (0, import_live_object.
|
|
392
|
+
const collection2 = (0, import_live_object.live)(import_chunk_FXHI7JNY.CollectionType, {
|
|
400
393
|
objects: [
|
|
401
394
|
(0, import_live_object.makeRef)(object)
|
|
402
395
|
],
|
|
403
396
|
views: {}
|
|
404
397
|
});
|
|
405
|
-
space.properties[
|
|
398
|
+
space.properties[import_chunk_FXHI7JNY.CollectionType.typename] = (0, import_live_object.makeRef)(collection2);
|
|
406
399
|
}
|
|
407
400
|
}
|
|
408
401
|
return {
|
|
@@ -415,7 +408,7 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
415
408
|
},
|
|
416
409
|
intents: [
|
|
417
410
|
...observability ? [
|
|
418
|
-
(0, import_app_framework.createIntent)(
|
|
411
|
+
(0, import_app_framework.createIntent)(import_types.ObservabilityAction.SendEvent, {
|
|
419
412
|
name: "space.object.add",
|
|
420
413
|
properties: {
|
|
421
414
|
spaceId: space.id,
|
|
@@ -429,13 +422,29 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
429
422
|
}
|
|
430
423
|
}),
|
|
431
424
|
(0, import_app_framework.createResolver)({
|
|
432
|
-
intent:
|
|
425
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.AddRelation,
|
|
426
|
+
resolve: ({ space, schema, source, target, fields }) => {
|
|
427
|
+
const relation = (0, import_live_object.live)(schema, {
|
|
428
|
+
[import_echo_schema.RelationSourceId]: source,
|
|
429
|
+
[import_echo_schema.RelationTargetId]: target,
|
|
430
|
+
...fields
|
|
431
|
+
});
|
|
432
|
+
space.db.add(relation);
|
|
433
|
+
return {
|
|
434
|
+
data: {
|
|
435
|
+
relation
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
}),
|
|
440
|
+
(0, import_app_framework.createResolver)({
|
|
441
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.RemoveObjects,
|
|
433
442
|
resolve: async ({ objects, target, deletionData }, undo) => {
|
|
434
|
-
const layout = context.
|
|
443
|
+
const layout = context.getCapability(import_app_framework.Capabilities.Layout);
|
|
435
444
|
const space = (0, import_echo.getSpace)(objects[0]);
|
|
436
445
|
(0, import_invariant.invariant)(space && objects.every((obj) => (0, import_echo.isEchoObject)(obj) && (0, import_echo.getSpace)(obj) === space), void 0, {
|
|
437
446
|
F: __dxlog_file,
|
|
438
|
-
L:
|
|
447
|
+
L: 424,
|
|
439
448
|
S: void 0,
|
|
440
449
|
A: [
|
|
441
450
|
"space && objects.every((obj) => isEchoObject(obj) && getSpace(obj) === space)",
|
|
@@ -444,19 +453,19 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
444
453
|
});
|
|
445
454
|
const openObjectIds = new Set(layout.active);
|
|
446
455
|
if (!undo) {
|
|
447
|
-
const parentCollection = target ?? space.properties[
|
|
448
|
-
const nestedObjectsList = await Promise.all(objects.map((obj) => (0,
|
|
456
|
+
const parentCollection = target ?? space.properties[import_chunk_FXHI7JNY.CollectionType.typename]?.target;
|
|
457
|
+
const nestedObjectsList = await Promise.all(objects.map((obj) => (0, import_chunk_COQYISES.getNestedObjects)(obj, resolve)));
|
|
449
458
|
const deletionData2 = {
|
|
450
459
|
objects,
|
|
451
460
|
parentCollection,
|
|
452
|
-
indices: objects.map((obj) => parentCollection instanceof
|
|
461
|
+
indices: objects.map((obj) => parentCollection instanceof import_chunk_FXHI7JNY.CollectionType ? parentCollection.objects.findIndex((object) => object.target === obj) : -1),
|
|
453
462
|
nestedObjectsList,
|
|
454
463
|
wasActive: objects.flatMap((obj, i) => [
|
|
455
464
|
obj,
|
|
456
465
|
...nestedObjectsList[i]
|
|
457
466
|
]).map((obj) => (0, import_echo.fullyQualifiedId)(obj)).filter((id) => openObjectIds.has(id))
|
|
458
467
|
};
|
|
459
|
-
if (deletionData2.parentCollection instanceof
|
|
468
|
+
if (deletionData2.parentCollection instanceof import_chunk_FXHI7JNY.CollectionType) {
|
|
460
469
|
[
|
|
461
470
|
...deletionData2.indices
|
|
462
471
|
].sort((a, b) => b - a).forEach((index) => {
|
|
@@ -469,7 +478,7 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
469
478
|
space.db.remove(obj);
|
|
470
479
|
});
|
|
471
480
|
objects.forEach((obj) => space.db.remove(obj));
|
|
472
|
-
const undoMessageKey = objects.some((obj) => obj instanceof
|
|
481
|
+
const undoMessageKey = objects.some((obj) => obj instanceof import_chunk_FXHI7JNY.CollectionType) ? "collection deleted label" : objects.length > 1 ? "objects deleted label" : "object deleted label";
|
|
473
482
|
return {
|
|
474
483
|
undoable: {
|
|
475
484
|
// TODO(ZaymonFC): Pluralize if more than one object.
|
|
@@ -494,7 +503,7 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
494
503
|
] : void 0
|
|
495
504
|
};
|
|
496
505
|
} else {
|
|
497
|
-
if (deletionData?.objects?.length && deletionData.objects.every(import_echo.isEchoObject) && deletionData.parentCollection instanceof
|
|
506
|
+
if (deletionData?.objects?.length && deletionData.objects.every(import_echo.isEchoObject) && deletionData.parentCollection instanceof import_chunk_FXHI7JNY.CollectionType) {
|
|
498
507
|
const restoredObjects = deletionData.objects.map((obj) => space.db.add(obj));
|
|
499
508
|
deletionData.nestedObjectsList.flat().forEach((obj) => {
|
|
500
509
|
space.db.add(obj);
|
|
@@ -517,12 +526,12 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
517
526
|
}
|
|
518
527
|
}),
|
|
519
528
|
(0, import_app_framework.createResolver)({
|
|
520
|
-
intent:
|
|
529
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.RenameObject,
|
|
521
530
|
resolve: async ({ object, caller }) => ({
|
|
522
531
|
intents: [
|
|
523
532
|
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdatePopover, {
|
|
524
533
|
part: "popover",
|
|
525
|
-
subject:
|
|
534
|
+
subject: import_chunk_Q3YZEYZT.POPOVER_RENAME_OBJECT,
|
|
526
535
|
options: {
|
|
527
536
|
anchorId: `dxos.org/ui/${caller}/${(0, import_echo.fullyQualifiedId)(object)}`,
|
|
528
537
|
props: object
|
|
@@ -532,22 +541,22 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
532
541
|
})
|
|
533
542
|
}),
|
|
534
543
|
(0, import_app_framework.createResolver)({
|
|
535
|
-
intent:
|
|
544
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.DuplicateObject,
|
|
536
545
|
resolve: async ({ object, target }) => {
|
|
537
546
|
const space = (0, import_echo.isSpace)(target) ? target : (0, import_echo.getSpace)(target);
|
|
538
547
|
(0, import_invariant.invariant)(space, "Space not found.", {
|
|
539
548
|
F: __dxlog_file,
|
|
540
|
-
L:
|
|
549
|
+
L: 538,
|
|
541
550
|
S: void 0,
|
|
542
551
|
A: [
|
|
543
552
|
"space",
|
|
544
553
|
"'Space not found.'"
|
|
545
554
|
]
|
|
546
555
|
});
|
|
547
|
-
const newObject = await (0,
|
|
556
|
+
const newObject = await (0, import_chunk_COQYISES.cloneObject)(object, resolve, space);
|
|
548
557
|
return {
|
|
549
558
|
intents: [
|
|
550
|
-
(0, import_app_framework.createIntent)(
|
|
559
|
+
(0, import_app_framework.createIntent)(import_chunk_FXHI7JNY.SpaceAction.AddObject, {
|
|
551
560
|
object: newObject,
|
|
552
561
|
target
|
|
553
562
|
})
|
|
@@ -556,17 +565,17 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
556
565
|
}
|
|
557
566
|
}),
|
|
558
567
|
(0, import_app_framework.createResolver)({
|
|
559
|
-
intent:
|
|
568
|
+
intent: import_chunk_FXHI7JNY.SpaceAction.WaitForObject,
|
|
560
569
|
resolve: async ({ id }) => {
|
|
561
|
-
const state = context.
|
|
570
|
+
const state = context.getCapability(import_chunk_7GQGM4ZF.SpaceCapabilities.MutableState);
|
|
562
571
|
state.awaiting = id;
|
|
563
572
|
}
|
|
564
573
|
}),
|
|
565
574
|
(0, import_app_framework.createResolver)({
|
|
566
|
-
intent:
|
|
575
|
+
intent: import_chunk_FXHI7JNY.CollectionAction.Create,
|
|
567
576
|
resolve: async ({ name }) => ({
|
|
568
577
|
data: {
|
|
569
|
-
object: (0, import_live_object.
|
|
578
|
+
object: (0, import_live_object.live)(import_chunk_FXHI7JNY.CollectionType, {
|
|
570
579
|
name,
|
|
571
580
|
objects: [],
|
|
572
581
|
views: {}
|
|
@@ -576,4 +585,4 @@ var intent_resolver_default = ({ context, observability }) => {
|
|
|
576
585
|
})
|
|
577
586
|
]);
|
|
578
587
|
};
|
|
579
|
-
//# sourceMappingURL=intent-resolver-
|
|
588
|
+
//# sourceMappingURL=intent-resolver-SVFJKUH7.cjs.map
|