@dxos/plugin-space 0.9.0 → 0.9.1-staging.ee54ba693a
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/neutral/{CollectionArticle-S3OF5KJ7.mjs → CollectionArticle-BMH7SZ7Q.mjs} +9 -12
- package/dist/lib/neutral/CollectionArticle-BMH7SZ7Q.mjs.map +7 -0
- package/dist/lib/neutral/{CollectionSection-A5WRHE5Z.mjs → CollectionSection-BLYTGOKH.mjs} +2 -2
- package/dist/lib/neutral/{CollectionSection-A5WRHE5Z.mjs.map → CollectionSection-BLYTGOKH.mjs.map} +3 -3
- package/dist/lib/neutral/{CreateObjectDialog-66R3K6I3.mjs → CreateObjectDialog-5454N3FJ.mjs} +29 -14
- package/dist/lib/neutral/CreateObjectDialog-5454N3FJ.mjs.map +7 -0
- package/dist/lib/neutral/{CreateSpaceDialog-CDGSEIJB.mjs → CreateSpaceDialog-WWNUTLVK.mjs} +6 -6
- package/dist/lib/neutral/CreateSpaceDialog-WWNUTLVK.mjs.map +7 -0
- package/dist/lib/neutral/DefaultProperties-5SAWQC6I.mjs +58 -0
- package/dist/lib/neutral/DefaultProperties-5SAWQC6I.mjs.map +7 -0
- package/dist/lib/neutral/{ImportSpaceDialog-7GKV4OTF.mjs → ImportSpaceDialog-CSSRTFAO.mjs} +4 -4
- package/dist/lib/neutral/ImportSpaceDialog-CSSRTFAO.mjs.map +7 -0
- package/dist/lib/neutral/{InlineSyncStatus-TBJKZCH7.mjs → InlineSyncStatus-UOUTAPCU.mjs} +4 -4
- package/dist/lib/neutral/InlineSyncStatus-UOUTAPCU.mjs.map +7 -0
- package/dist/lib/neutral/{JoinDialog-SSFKRFTJ.mjs → JoinDialog-ATNUCNL2.mjs} +13 -30
- package/dist/lib/neutral/JoinDialog-ATNUCNL2.mjs.map +7 -0
- package/dist/lib/neutral/{MembersContainer-KMCQDWCS.mjs → MembersContainer-C4ZTP6ZW.mjs} +13 -9
- package/dist/lib/neutral/MembersContainer-C4ZTP6ZW.mjs.map +7 -0
- package/dist/lib/neutral/{MenuFooter-5JT7V5FZ.mjs → MenuFooter-FWE5LFM4.mjs} +6 -6
- package/dist/lib/neutral/MenuFooter-FWE5LFM4.mjs.map +7 -0
- package/dist/lib/neutral/{ObjectCardStack-IXNU3HEN.mjs → ObjectCardStack-DHVDRNRK.mjs} +4 -4
- package/dist/lib/neutral/ObjectCardStack-DHVDRNRK.mjs.map +7 -0
- package/dist/lib/neutral/RecordArticle-JSORXRAA.mjs +102 -0
- package/dist/lib/neutral/RecordArticle-JSORXRAA.mjs.map +7 -0
- package/dist/lib/neutral/{RelatedArticle-YDNGUDAJ.mjs → RelatedArticle-Z777WVDW.mjs} +11 -10
- package/dist/lib/neutral/RelatedArticle-Z777WVDW.mjs.map +7 -0
- package/dist/lib/neutral/RenamePopover-AZT2KPOF.mjs +104 -0
- package/dist/lib/neutral/RenamePopover-AZT2KPOF.mjs.map +7 -0
- package/dist/lib/neutral/{SchemaContainer-Q4BP6X2M.mjs → SchemaContainer-4GJKQBXM.mjs} +9 -5
- package/dist/lib/neutral/SchemaContainer-4GJKQBXM.mjs.map +7 -0
- package/dist/lib/neutral/{SmallPresenceLive-GUF4WLUC.mjs → SmallPresenceLive-FW3AMEY5.mjs} +2 -2
- package/dist/lib/neutral/SpaceHomeArticle-Y47TLZ72.mjs +78 -0
- package/dist/lib/neutral/SpaceHomeArticle-Y47TLZ72.mjs.map +7 -0
- package/dist/lib/neutral/SpaceHomeRecent-S57AO3EV.mjs +89 -0
- package/dist/lib/neutral/SpaceHomeRecent-S57AO3EV.mjs.map +7 -0
- package/dist/lib/neutral/SpacePlugin.mjs +1 -1
- package/dist/lib/neutral/SpacePlugin.node.mjs +4 -4
- package/dist/lib/neutral/SpacePlugin.node.mjs.map +3 -3
- package/dist/lib/neutral/{SpacePresence-ACEXUS3N.mjs → SpacePresence-T37WH43Y.mjs} +2 -2
- package/dist/lib/neutral/SpaceSettings-6CZF7GEO.mjs +60 -0
- package/dist/lib/neutral/SpaceSettings-6CZF7GEO.mjs.map +7 -0
- package/dist/lib/neutral/{SpaceSettingsContainer-IB34TEOB.mjs → SpaceSettingsContainer-72CJWELM.mjs} +44 -41
- package/dist/lib/neutral/SpaceSettingsContainer-72CJWELM.mjs.map +7 -0
- package/dist/lib/neutral/{SyncStatus-CWOXWDDZ.mjs → SyncStatus-J7CHLO5O.mjs} +3 -3
- package/dist/lib/neutral/SyncStatus-J7CHLO5O.mjs.map +7 -0
- package/dist/lib/neutral/TypeCollectionArticle-W76ADS2G.mjs +143 -0
- package/dist/lib/neutral/TypeCollectionArticle-W76ADS2G.mjs.map +7 -0
- package/dist/lib/neutral/{add-object-QYOMCBJA.mjs → add-object-H2N4AOQJ.mjs} +16 -16
- package/dist/lib/neutral/add-object-H2N4AOQJ.mjs.map +7 -0
- package/dist/lib/neutral/{add-relation-HV3VCMJG.mjs → add-relation-BGTLART5.mjs} +3 -3
- package/dist/lib/neutral/{add-type-CZVKSEIW.mjs → add-type-JIDLRANR.mjs} +3 -3
- package/dist/lib/neutral/{add-type-CZVKSEIW.mjs.map → add-type-JIDLRANR.mjs.map} +1 -1
- package/dist/lib/neutral/{app-graph-builder-SQGCUCDO.mjs → app-graph-builder-7H2KOD4B.mjs} +284 -203
- package/dist/lib/neutral/app-graph-builder-7H2KOD4B.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +14 -16
- package/dist/lib/neutral/capabilities/index.mjs.map +3 -3
- package/dist/lib/neutral/capabilities/node.mjs +3 -3
- package/dist/lib/neutral/{chunk-7WUJENBF.mjs → chunk-52ASDNRA.mjs} +5 -6
- package/dist/lib/neutral/chunk-52ASDNRA.mjs.map +7 -0
- package/dist/lib/neutral/chunk-5ZZS3KMK.mjs +46 -0
- package/dist/lib/neutral/chunk-5ZZS3KMK.mjs.map +7 -0
- package/dist/lib/neutral/chunk-C2ULK22J.mjs +17 -0
- package/dist/lib/neutral/chunk-C2ULK22J.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-K34BPPQE.mjs → chunk-F5KLUP2P.mjs} +35 -18
- package/dist/lib/neutral/chunk-F5KLUP2P.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-JHZGRYGS.mjs → chunk-G2KHP7FX.mjs} +2 -2
- package/dist/lib/neutral/{chunk-JHZGRYGS.mjs.map → chunk-G2KHP7FX.mjs.map} +2 -2
- package/dist/lib/neutral/{chunk-YY62663T.mjs → chunk-LMUG6PEJ.mjs} +4 -5
- package/dist/lib/neutral/chunk-LMUG6PEJ.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-EEXRKYOD.mjs → chunk-RAAHDTVF.mjs} +9 -5
- package/dist/lib/neutral/chunk-RAAHDTVF.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-BBQR23DW.mjs → chunk-SPWAMXNR.mjs} +105 -128
- package/dist/lib/neutral/chunk-SPWAMXNR.mjs.map +7 -0
- package/dist/lib/neutral/chunk-U5WTDOMV.mjs +8 -0
- package/dist/lib/neutral/chunk-V7JALUM3.mjs +9 -0
- package/dist/lib/neutral/chunk-V7JALUM3.mjs.map +7 -0
- package/dist/lib/neutral/{close-FGQN37PK.mjs → close-5WEQZRNK.mjs} +3 -3
- package/dist/lib/neutral/components/index.mjs +22 -23
- package/dist/lib/neutral/components/index.mjs.map +4 -4
- package/dist/lib/neutral/constants.mjs +16 -0
- package/dist/lib/neutral/constants.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +29 -23
- package/dist/lib/neutral/containers/index.mjs.map +3 -3
- package/dist/lib/neutral/{create-EPIFSRJA.mjs → create-QZ47FHQU.mjs} +7 -7
- package/dist/lib/neutral/create-QZ47FHQU.mjs.map +7 -0
- package/dist/lib/neutral/{create-object-22WUOWZQ.mjs → create-object-ZU6FZW5X.mjs} +1 -6
- package/dist/lib/neutral/create-object-ZU6FZW5X.mjs.map +7 -0
- package/dist/lib/neutral/{delete-LIA5M3WI.mjs → delete-SPCU2VFM.mjs} +3 -3
- package/dist/lib/neutral/{delete-field-ZIGFXFHY.mjs → delete-field-TAKJVEAD.mjs} +3 -3
- package/dist/lib/neutral/{duplicate-object-X37FM6PW.mjs → duplicate-object-BUPZOO6S.mjs} +3 -3
- package/dist/lib/neutral/{export-space-VWJHVXWF.mjs → export-space-S5SCAL4M.mjs} +3 -3
- package/dist/lib/neutral/{get-share-link-3LEA5FSK.mjs → get-share-link-CLM5IQRL.mjs} +4 -4
- package/dist/lib/neutral/hooks/index.mjs +16 -4
- package/dist/lib/neutral/hooks/index.mjs.map +3 -3
- package/dist/lib/neutral/{identity-created-57RML5XT.mjs → identity-created-BEYMLBK4.mjs} +5 -5
- package/dist/lib/neutral/identity-created-BEYMLBK4.mjs.map +7 -0
- package/dist/lib/neutral/{import-space-Y5L3QE3C.mjs → import-space-LJQK3KT7.mjs} +3 -3
- package/dist/lib/neutral/index.mjs +16 -6
- package/dist/lib/neutral/join-FSODYIOC.mjs +54 -0
- package/dist/lib/neutral/join-FSODYIOC.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/meta.mjs +1 -1
- package/dist/lib/neutral/{migrate-G7I52UKD.mjs → migrate-WHM6LU7L.mjs} +4 -4
- package/dist/lib/neutral/{migrate-G7I52UKD.mjs.map → migrate-WHM6LU7L.mjs.map} +3 -3
- package/dist/lib/neutral/{navigation-handler-QQJYEMAS.mjs → navigation-handler-ZF7MV2HL.mjs} +16 -10
- package/dist/lib/neutral/navigation-handler-ZF7MV2HL.mjs.map +7 -0
- package/dist/lib/neutral/{navigation-resolver-IFVQRCGU.mjs → navigation-resolver-KBESOSWU.mjs} +11 -11
- package/dist/lib/neutral/navigation-resolver-KBESOSWU.mjs.map +7 -0
- package/dist/lib/neutral/{open-CPWVZSI4.mjs → open-JCXTL3SK.mjs} +3 -3
- package/dist/lib/neutral/{open-create-object-4LN4PR6N.mjs → open-create-object-WAIAU7TA.mjs} +6 -6
- package/dist/lib/neutral/{open-create-space-VPAW3F2T.mjs → open-create-space-VU47FWPZ.mjs} +6 -6
- package/dist/lib/neutral/{open-import-space-VLQ5V55H.mjs → open-import-space-GUHIEWYB.mjs} +6 -6
- package/dist/lib/neutral/{open-members-BEXOSSBS.mjs → open-members-MLLBHKUU.mjs} +6 -6
- package/dist/lib/neutral/open-members-MLLBHKUU.mjs.map +7 -0
- package/dist/lib/neutral/{open-settings-RHDBW2K5.mjs → open-settings-DTPZF4U4.mjs} +6 -6
- package/dist/lib/neutral/open-settings-DTPZF4U4.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +3 -3
- package/dist/lib/neutral/plugin.mjs +4 -4
- package/dist/lib/neutral/{react-root-2DJPZQT4.mjs → react-root-YLYRCSAZ.mjs} +2 -2
- package/dist/lib/neutral/{react-root-2DJPZQT4.mjs.map → react-root-YLYRCSAZ.mjs.map} +3 -3
- package/dist/lib/neutral/{react-surface-LYCTOQLY.mjs → react-surface-LRA7GIFN.mjs} +77 -80
- package/dist/lib/neutral/react-surface-LRA7GIFN.mjs.map +7 -0
- package/dist/lib/neutral/{remove-objects-OWDMA4IF.mjs → remove-objects-WEO66EDS.mjs} +5 -5
- package/dist/lib/neutral/remove-objects-WEO66EDS.mjs.map +7 -0
- package/dist/lib/neutral/{rename-SR6BBSPU.mjs → rename-Q6UNCBIM.mjs} +9 -8
- package/dist/lib/neutral/rename-Q6UNCBIM.mjs.map +7 -0
- package/dist/lib/neutral/{rename-object-5H6E5AOX.mjs → rename-object-2UCEGU7U.mjs} +9 -8
- package/dist/lib/neutral/rename-object-2UCEGU7U.mjs.map +7 -0
- package/dist/lib/neutral/{repair-PSYRVSJ6.mjs → repair-HMH476U3.mjs} +3 -3
- package/dist/lib/neutral/repair-HMH476U3.mjs.map +7 -0
- package/dist/lib/neutral/{restore-field-UHDG2ZQM.mjs → restore-field-6CQAFOXY.mjs} +3 -3
- package/dist/lib/neutral/{restore-objects-2UD5P6OC.mjs → restore-objects-3VINLP7C.mjs} +3 -3
- package/dist/lib/neutral/{settings-Q32EQCHX.mjs → settings-5IBSYBVU.mjs} +3 -3
- package/dist/lib/neutral/{settings-Q32EQCHX.mjs.map → settings-5IBSYBVU.mjs.map} +3 -3
- package/dist/lib/neutral/{share-5Y4NZA75.mjs → share-A4WPILNF.mjs} +3 -3
- package/dist/lib/neutral/{snapshot-H3HKOFVP.mjs → snapshot-HBYMAPA7.mjs} +3 -3
- package/dist/lib/neutral/{spaces-ready-GBF72QJH.mjs → spaces-ready-GWMSU72V.mjs} +12 -12
- package/dist/lib/neutral/spaces-ready-GWMSU72V.mjs.map +7 -0
- package/dist/lib/neutral/{state-DPBOZRAW.mjs → state-KMH2NUAL.mjs} +2 -2
- package/dist/lib/neutral/state-KMH2NUAL.mjs.map +7 -0
- package/dist/lib/neutral/testing.mjs +1 -1
- package/dist/lib/neutral/translations.mjs +18 -8
- package/dist/lib/neutral/translations.mjs.map +3 -3
- package/dist/lib/neutral/types/index.mjs +9 -3
- package/dist/lib/neutral/{undo-mappings-OBRQOYN4.mjs → undo-mappings-P43EAUGI.mjs} +5 -5
- package/dist/lib/neutral/{undo-mappings-OBRQOYN4.mjs.map → undo-mappings-P43EAUGI.mjs.map} +3 -3
- package/dist/lib/neutral/{wait-for-object-3TAWUWTP.mjs → wait-for-object-U6P2NNWY.mjs} +3 -3
- package/dist/types/dx.config.d.ts +28 -0
- package/dist/types/dx.config.d.ts.map +1 -0
- package/dist/types/src/SpacePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder/extensions/collections.d.ts +19 -25
- package/dist/types/src/capabilities/app-graph-builder/extensions/collections.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/extensions/companions.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/extensions/database.d.ts +15 -33
- package/dist/types/src/capabilities/app-graph-builder/extensions/database.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/extensions/settings.d.ts +3 -2
- package/dist/types/src/capabilities/app-graph-builder/extensions/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/extensions/shared.d.ts +1 -5
- package/dist/types/src/capabilities/app-graph-builder/extensions/shared.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/extensions/spaces.d.ts +29 -4
- package/dist/types/src/capabilities/app-graph-builder/extensions/spaces.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/create-object.d.ts +1 -33
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +10 -54
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation-handler/index.d.ts +1 -1
- package/dist/types/src/capabilities/navigation-handler/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts +1 -2
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation-resolver.d.ts +1 -2
- package/dist/types/src/capabilities/navigation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/node.d.ts +3 -33
- package/dist/types/src/capabilities/node.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root.d.ts +1 -5
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/repair.d.ts +1 -2
- package/dist/types/src/capabilities/repair.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +1 -3
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/spaces-ready.d.ts +1 -1
- package/dist/types/src/capabilities/state.d.ts +1 -13
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/undo-mappings.d.ts +2 -3
- package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -1
- package/dist/types/src/commands/database/add.d.ts.map +1 -1
- package/dist/types/src/commands/queue/query.d.ts.map +1 -1
- package/dist/types/src/components/ForeignKeys/ForeignKeys.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/constants.d.ts +1 -2
- package/dist/types/src/constants.d.ts.map +1 -1
- package/dist/types/src/containers/CreateObjectDialog/CreateObjectDialog.d.ts.map +1 -1
- package/dist/types/src/containers/CreateObjectDialog/CreateObjectDialog.stories.d.ts +142 -52
- package/dist/types/src/containers/CreateObjectDialog/CreateObjectDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.d.ts.map +1 -1
- package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.stories.d.ts +142 -52
- package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/DefaultProperties/DefaultProperties.d.ts +15 -0
- package/dist/types/src/containers/DefaultProperties/DefaultProperties.d.ts.map +1 -0
- package/dist/types/src/containers/DefaultProperties/index.d.ts +2 -0
- package/dist/types/src/containers/DefaultProperties/index.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts +142 -52
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/MembersContainer/MembersContainer.d.ts.map +1 -1
- package/dist/types/src/containers/RecordArticle/RecordArticle.d.ts.map +1 -1
- package/dist/types/src/containers/RelatedArticle/RelatedArticle.d.ts.map +1 -1
- package/dist/types/src/containers/RenamePopover/RenamePopover.d.ts +16 -0
- package/dist/types/src/containers/RenamePopover/RenamePopover.d.ts.map +1 -0
- package/dist/types/src/containers/RenamePopover/index.d.ts +3 -0
- package/dist/types/src/containers/RenamePopover/index.d.ts.map +1 -0
- package/dist/types/src/containers/SchemaContainer/SchemaContainer.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceHomeArticle/SpaceHomeArticle.d.ts +15 -0
- package/dist/types/src/containers/SpaceHomeArticle/SpaceHomeArticle.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceHomeArticle/index.d.ts +2 -0
- package/dist/types/src/containers/{ObjectProperties → SpaceHomeArticle}/index.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceHomeRecent/SpaceHomeRecent.d.ts +22 -0
- package/dist/types/src/containers/SpaceHomeRecent/SpaceHomeRecent.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceHomeRecent/index.d.ts +2 -0
- package/dist/types/src/containers/SpaceHomeRecent/index.d.ts.map +1 -0
- package/dist/types/src/containers/SpacePresence/SpacePresence.d.ts.map +1 -1
- package/dist/types/src/containers/SpacePresence/SpacePresence.stories.d.ts +142 -52
- package/dist/types/src/containers/SpacePresence/SpacePresence.stories.d.ts.map +1 -1
- package/dist/types/src/containers/SpacePresence/index.d.ts +1 -1
- package/dist/types/src/containers/SpacePresence/index.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceSettings/SpaceSettings.d.ts +11 -0
- package/dist/types/src/containers/SpaceSettings/SpaceSettings.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/SpaceSettings/SpaceSettings.stories.d.ts +143 -53
- package/dist/types/src/{components → containers}/SpaceSettings/SpaceSettings.stories.d.ts.map +1 -1
- package/dist/types/src/{components → containers}/SpaceSettings/index.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.stories.d.ts +142 -52
- package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/SyncStatus/SyncStatus.stories.d.ts +142 -52
- package/dist/types/src/containers/SyncStatus/SyncStatus.stories.d.ts.map +1 -1
- package/dist/types/src/containers/TypeCollectionArticle/TypeCollectionArticle.d.ts +16 -0
- package/dist/types/src/containers/TypeCollectionArticle/TypeCollectionArticle.d.ts.map +1 -0
- package/dist/types/src/containers/TypeCollectionArticle/TypeCollectionArticle.stories.d.ts +21 -0
- package/dist/types/src/containers/TypeCollectionArticle/TypeCollectionArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/TypeCollectionArticle/index.d.ts +2 -0
- package/dist/types/src/containers/TypeCollectionArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +7 -3
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/errors.d.ts +33 -0
- package/dist/types/src/errors.d.ts.map +1 -0
- package/dist/types/src/hooks/useInputSurfaceLookup.d.ts.map +1 -1
- package/dist/types/src/hooks/useRelatedObjects.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +32 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/add-object.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +9 -37
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/helpers.d.ts.map +1 -1
- package/dist/types/src/operations/join.d.ts.map +1 -1
- package/dist/types/src/operations/remove-objects.d.ts.map +1 -1
- package/dist/types/src/operations/rename-object.d.ts.map +1 -1
- package/dist/types/src/operations/rename.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +142 -52
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +3 -1
- package/dist/types/src/types/Settings.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +1 -1
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/src/types/form.d.ts +7 -1
- package/dist/types/src/types/form.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +1 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/surface.d.ts +26 -0
- package/dist/types/src/types/surface.d.ts.map +1 -0
- package/dist/types/src/types/types.d.ts +7 -0
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dx.config.ts +35 -0
- package/package.json +71 -59
- package/src/SpacePlugin.test.ts +1 -1
- package/src/SpacePlugin.ts +4 -10
- package/src/capabilities/app-graph-builder/extensions/collections.ts +82 -69
- package/src/capabilities/app-graph-builder/extensions/companions.ts +6 -5
- package/src/capabilities/app-graph-builder/extensions/database.ts +118 -91
- package/src/capabilities/app-graph-builder/extensions/settings.ts +17 -14
- package/src/capabilities/app-graph-builder/extensions/shared.test.ts +13 -9
- package/src/capabilities/app-graph-builder/extensions/shared.ts +5 -23
- package/src/capabilities/app-graph-builder/extensions/spaces.ts +78 -29
- package/src/capabilities/create-object.ts +0 -5
- package/src/capabilities/identity-created.ts +4 -4
- package/src/capabilities/index.ts +0 -1
- package/src/capabilities/navigation-handler/navigation-handler.ts +14 -4
- package/src/capabilities/navigation-resolver.ts +13 -20
- package/src/capabilities/react-root.tsx +1 -1
- package/src/capabilities/react-surface.tsx +95 -99
- package/src/capabilities/repair.ts +4 -2
- package/src/capabilities/settings.ts +2 -2
- package/src/capabilities/spaces-ready.ts +9 -16
- package/src/capabilities/state.ts +1 -1
- package/src/capabilities/undo-mappings.ts +3 -3
- package/src/commands/database/add.ts +4 -2
- package/src/commands/queue/query.ts +4 -3
- package/src/components/AwaitingObject/AwaitingObject.tsx +1 -1
- package/src/components/CreateObjectPanel/CreateObjectPanel.tsx +2 -2
- package/src/components/ForeignKeys/ForeignKeys.tsx +21 -20
- package/src/components/index.ts +3 -3
- package/src/constants.ts +5 -6
- package/src/containers/CollectionArticle/CollectionArticle.tsx +10 -6
- package/src/containers/CollectionSection/CollectionSection.tsx +1 -1
- package/src/containers/CreateObjectDialog/CreateObjectDialog.stories.tsx +1 -1
- package/src/containers/CreateObjectDialog/CreateObjectDialog.tsx +48 -10
- package/src/containers/CreateSpaceDialog/CreateSpaceDialog.tsx +5 -5
- package/src/containers/DefaultProperties/DefaultProperties.tsx +69 -0
- package/src/containers/DefaultProperties/index.ts +5 -0
- package/src/containers/ImportSpaceDialog/ImportSpaceDialog.tsx +3 -3
- package/src/containers/InlineSyncStatus/InlineSyncStatus.tsx +3 -3
- package/src/containers/JoinDialog/JoinDialog.tsx +14 -25
- package/src/containers/MembersContainer/MembersContainer.tsx +42 -38
- package/src/containers/MenuFooter/MenuFooter.tsx +3 -3
- package/src/containers/ObjectCardStack/ObjectCardStack.tsx +3 -3
- package/src/containers/RecordArticle/RecordArticle.tsx +67 -8
- package/src/containers/RelatedArticle/RelatedArticle.tsx +18 -15
- package/src/containers/RenamePopover/RenamePopover.tsx +125 -0
- package/src/containers/RenamePopover/index.ts +6 -0
- package/src/containers/SchemaContainer/SchemaContainer.tsx +22 -18
- package/src/containers/SpaceHomeArticle/SpaceHomeArticle.tsx +100 -0
- package/src/containers/SpaceHomeArticle/index.ts +5 -0
- package/src/containers/SpaceHomeRecent/SpaceHomeRecent.tsx +103 -0
- package/src/containers/SpaceHomeRecent/index.ts +5 -0
- package/src/containers/SpacePresence/SpacePresence.tsx +23 -21
- package/src/containers/SpacePresence/index.ts +1 -1
- package/src/{components → containers}/SpaceSettings/SpaceSettings.stories.tsx +1 -1
- package/src/containers/SpaceSettings/SpaceSettings.tsx +75 -0
- package/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.tsx +120 -111
- package/src/containers/SyncStatus/SyncStatus.tsx +2 -2
- package/src/containers/TypeCollectionArticle/TypeCollectionArticle.stories.tsx +116 -0
- package/src/containers/TypeCollectionArticle/TypeCollectionArticle.tsx +162 -0
- package/src/containers/TypeCollectionArticle/index.ts +5 -0
- package/src/containers/index.ts +7 -3
- package/src/errors.ts +11 -0
- package/src/hooks/useInputSurfaceLookup.tsx +3 -2
- package/src/hooks/useRelatedObjects.ts +13 -1
- package/src/index.ts +1 -0
- package/src/meta.ts +2 -27
- package/src/operations/add-object.ts +12 -18
- package/src/operations/add-type.ts +1 -1
- package/src/operations/create.ts +4 -4
- package/src/operations/definitions.ts +2 -3
- package/src/operations/helpers.ts +1 -1
- package/src/operations/join.ts +19 -0
- package/src/operations/migrate.ts +1 -1
- package/src/operations/open-members.ts +3 -3
- package/src/operations/open-settings.ts +3 -3
- package/src/operations/remove-objects.ts +3 -2
- package/src/operations/rename-object.ts +3 -2
- package/src/operations/rename.ts +3 -2
- package/src/translations.ts +18 -7
- package/src/types/Settings.ts +10 -1
- package/src/types/capabilities.ts +9 -9
- package/src/types/events.ts +5 -5
- package/src/types/form.ts +5 -1
- package/src/types/index.ts +1 -0
- package/src/types/surface.ts +31 -0
- package/src/types/types.ts +9 -1
- package/src/util.ts +3 -4
- package/dist/lib/neutral/CollectionArticle-S3OF5KJ7.mjs.map +0 -7
- package/dist/lib/neutral/CreateObjectDialog-66R3K6I3.mjs.map +0 -7
- package/dist/lib/neutral/CreateSpaceDialog-CDGSEIJB.mjs.map +0 -7
- package/dist/lib/neutral/EntityRenamePopover-MYSW262F.mjs +0 -59
- package/dist/lib/neutral/EntityRenamePopover-MYSW262F.mjs.map +0 -7
- package/dist/lib/neutral/ImportSpaceDialog-7GKV4OTF.mjs.map +0 -7
- package/dist/lib/neutral/InlineSyncStatus-TBJKZCH7.mjs.map +0 -7
- package/dist/lib/neutral/JoinDialog-SSFKRFTJ.mjs.map +0 -7
- package/dist/lib/neutral/MembersContainer-KMCQDWCS.mjs.map +0 -7
- package/dist/lib/neutral/MenuFooter-5JT7V5FZ.mjs.map +0 -7
- package/dist/lib/neutral/ObjectCardStack-IXNU3HEN.mjs.map +0 -7
- package/dist/lib/neutral/ObjectProperties-BF6KGFFC.mjs +0 -33
- package/dist/lib/neutral/ObjectProperties-BF6KGFFC.mjs.map +0 -7
- package/dist/lib/neutral/RecordArticle-QWGH25NT.mjs +0 -51
- package/dist/lib/neutral/RecordArticle-QWGH25NT.mjs.map +0 -7
- package/dist/lib/neutral/RelatedArticle-YDNGUDAJ.mjs.map +0 -7
- package/dist/lib/neutral/SchemaContainer-Q4BP6X2M.mjs.map +0 -7
- package/dist/lib/neutral/SpaceRenamePopover-KFWL4CTJ.mjs +0 -56
- package/dist/lib/neutral/SpaceRenamePopover-KFWL4CTJ.mjs.map +0 -7
- package/dist/lib/neutral/SpaceSettings-YAHBOY5T.mjs +0 -37
- package/dist/lib/neutral/SpaceSettings-YAHBOY5T.mjs.map +0 -7
- package/dist/lib/neutral/SpaceSettingsContainer-IB34TEOB.mjs.map +0 -7
- package/dist/lib/neutral/SyncStatus-CWOXWDDZ.mjs.map +0 -7
- package/dist/lib/neutral/add-object-QYOMCBJA.mjs.map +0 -7
- package/dist/lib/neutral/app-graph-builder-SQGCUCDO.mjs.map +0 -7
- package/dist/lib/neutral/app-graph-serializer-IBPPU5VR.mjs +0 -81
- package/dist/lib/neutral/app-graph-serializer-IBPPU5VR.mjs.map +0 -7
- package/dist/lib/neutral/chunk-4RTSNTDC.mjs +0 -37
- package/dist/lib/neutral/chunk-4RTSNTDC.mjs.map +0 -7
- package/dist/lib/neutral/chunk-7WUJENBF.mjs.map +0 -7
- package/dist/lib/neutral/chunk-B7DBIARR.mjs +0 -8
- package/dist/lib/neutral/chunk-BBQR23DW.mjs.map +0 -7
- package/dist/lib/neutral/chunk-EEXRKYOD.mjs.map +0 -7
- package/dist/lib/neutral/chunk-F5MESIRH.mjs +0 -19
- package/dist/lib/neutral/chunk-F5MESIRH.mjs.map +0 -7
- package/dist/lib/neutral/chunk-K34BPPQE.mjs.map +0 -7
- package/dist/lib/neutral/chunk-YY62663T.mjs.map +0 -7
- package/dist/lib/neutral/create-EPIFSRJA.mjs.map +0 -7
- package/dist/lib/neutral/create-object-22WUOWZQ.mjs.map +0 -7
- package/dist/lib/neutral/identity-created-57RML5XT.mjs.map +0 -7
- package/dist/lib/neutral/join-Z5K4OAIG.mjs +0 -28
- package/dist/lib/neutral/join-Z5K4OAIG.mjs.map +0 -7
- package/dist/lib/neutral/navigation-handler-QQJYEMAS.mjs.map +0 -7
- package/dist/lib/neutral/navigation-resolver-IFVQRCGU.mjs.map +0 -7
- package/dist/lib/neutral/open-members-BEXOSSBS.mjs.map +0 -7
- package/dist/lib/neutral/open-settings-RHDBW2K5.mjs.map +0 -7
- package/dist/lib/neutral/react-surface-LYCTOQLY.mjs.map +0 -7
- package/dist/lib/neutral/remove-objects-OWDMA4IF.mjs.map +0 -7
- package/dist/lib/neutral/rename-SR6BBSPU.mjs.map +0 -7
- package/dist/lib/neutral/rename-object-5H6E5AOX.mjs.map +0 -7
- package/dist/lib/neutral/repair-PSYRVSJ6.mjs.map +0 -7
- package/dist/lib/neutral/spaces-ready-GBF72QJH.mjs.map +0 -7
- package/dist/lib/neutral/state-DPBOZRAW.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-serializer.d.ts +0 -5
- package/dist/types/src/capabilities/app-graph-serializer.d.ts.map +0 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettings.d.ts +0 -8
- package/dist/types/src/components/SpaceSettings/SpaceSettings.d.ts.map +0 -1
- package/dist/types/src/containers/EntityRenamePopover/EntityRenamePopover.d.ts +0 -7
- package/dist/types/src/containers/EntityRenamePopover/EntityRenamePopover.d.ts.map +0 -1
- package/dist/types/src/containers/EntityRenamePopover/index.d.ts +0 -2
- package/dist/types/src/containers/EntityRenamePopover/index.d.ts.map +0 -1
- package/dist/types/src/containers/ObjectProperties/ObjectProperties.d.ts +0 -10
- package/dist/types/src/containers/ObjectProperties/ObjectProperties.d.ts.map +0 -1
- package/dist/types/src/containers/ObjectProperties/index.d.ts +0 -2
- package/dist/types/src/containers/SpaceRenamePopover/SpaceRenamePopover.d.ts +0 -7
- package/dist/types/src/containers/SpaceRenamePopover/SpaceRenamePopover.d.ts.map +0 -1
- package/dist/types/src/containers/SpaceRenamePopover/index.d.ts +0 -2
- package/dist/types/src/containers/SpaceRenamePopover/index.d.ts.map +0 -1
- package/src/capabilities/app-graph-serializer.ts +0 -85
- package/src/components/SpaceSettings/SpaceSettings.tsx +0 -56
- package/src/containers/EntityRenamePopover/EntityRenamePopover.tsx +0 -52
- package/src/containers/EntityRenamePopover/index.ts +0 -5
- package/src/containers/ObjectProperties/ObjectProperties.tsx +0 -32
- package/src/containers/ObjectProperties/index.ts +0 -5
- package/src/containers/SpaceRenamePopover/SpaceRenamePopover.tsx +0 -54
- package/src/containers/SpaceRenamePopover/index.ts +0 -5
- /package/dist/lib/neutral/{SmallPresenceLive-GUF4WLUC.mjs.map → SmallPresenceLive-FW3AMEY5.mjs.map} +0 -0
- /package/dist/lib/neutral/{SpacePresence-ACEXUS3N.mjs.map → SpacePresence-T37WH43Y.mjs.map} +0 -0
- /package/dist/lib/neutral/{add-relation-HV3VCMJG.mjs.map → add-relation-BGTLART5.mjs.map} +0 -0
- /package/dist/lib/neutral/{chunk-B7DBIARR.mjs.map → chunk-U5WTDOMV.mjs.map} +0 -0
- /package/dist/lib/neutral/{close-FGQN37PK.mjs.map → close-5WEQZRNK.mjs.map} +0 -0
- /package/dist/lib/neutral/{delete-LIA5M3WI.mjs.map → delete-SPCU2VFM.mjs.map} +0 -0
- /package/dist/lib/neutral/{delete-field-ZIGFXFHY.mjs.map → delete-field-TAKJVEAD.mjs.map} +0 -0
- /package/dist/lib/neutral/{duplicate-object-X37FM6PW.mjs.map → duplicate-object-BUPZOO6S.mjs.map} +0 -0
- /package/dist/lib/neutral/{export-space-VWJHVXWF.mjs.map → export-space-S5SCAL4M.mjs.map} +0 -0
- /package/dist/lib/neutral/{get-share-link-3LEA5FSK.mjs.map → get-share-link-CLM5IQRL.mjs.map} +0 -0
- /package/dist/lib/neutral/{import-space-Y5L3QE3C.mjs.map → import-space-LJQK3KT7.mjs.map} +0 -0
- /package/dist/lib/neutral/{open-CPWVZSI4.mjs.map → open-JCXTL3SK.mjs.map} +0 -0
- /package/dist/lib/neutral/{open-create-object-4LN4PR6N.mjs.map → open-create-object-WAIAU7TA.mjs.map} +0 -0
- /package/dist/lib/neutral/{open-create-space-VPAW3F2T.mjs.map → open-create-space-VU47FWPZ.mjs.map} +0 -0
- /package/dist/lib/neutral/{open-import-space-VLQ5V55H.mjs.map → open-import-space-GUHIEWYB.mjs.map} +0 -0
- /package/dist/lib/neutral/{restore-field-UHDG2ZQM.mjs.map → restore-field-6CQAFOXY.mjs.map} +0 -0
- /package/dist/lib/neutral/{restore-objects-2UD5P6OC.mjs.map → restore-objects-3VINLP7C.mjs.map} +0 -0
- /package/dist/lib/neutral/{share-5Y4NZA75.mjs.map → share-A4WPILNF.mjs.map} +0 -0
- /package/dist/lib/neutral/{snapshot-H3HKOFVP.mjs.map → snapshot-HBYMAPA7.mjs.map} +0 -0
- /package/dist/lib/neutral/{wait-for-object-3TAWUWTP.mjs.map → wait-for-object-U6P2NNWY.mjs.map} +0 -0
- /package/dist/types/src/{components → containers}/SpaceSettings/index.d.ts +0 -0
- /package/src/{components → containers}/SpaceSettings/index.ts +0 -0
|
@@ -4,44 +4,46 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
import * as Option from 'effect/Option';
|
|
7
|
-
import type * as Schema from 'effect/Schema';
|
|
8
|
-
import * as SchemaAST from 'effect/SchemaAST';
|
|
9
7
|
import React, { type ComponentProps, useCallback } from 'react';
|
|
10
8
|
|
|
11
9
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
12
|
-
import { Surface, useAtomCapability, useOperationInvoker } from '@dxos/app-framework/ui';
|
|
13
|
-
import {
|
|
10
|
+
import { Surface, useAtomCapability, useOperationInvoker, useSettingsState } from '@dxos/app-framework/ui';
|
|
11
|
+
import { AppAnnotation } from '@dxos/app-toolkit';
|
|
14
12
|
import { AppSurface, useActiveSpace, useTypeOptions } from '@dxos/app-toolkit/ui';
|
|
15
|
-
import { Annotation, Collection, Database,
|
|
13
|
+
import { Annotation, Collection, Database, Obj, Type } from '@dxos/echo';
|
|
16
14
|
import { SchemaEx } from '@dxos/effect';
|
|
17
15
|
import { type Space, SpaceState, getSpace, isSpace, useSpaces } from '@dxos/react-client/echo';
|
|
18
16
|
import { Input } from '@dxos/react-ui';
|
|
19
|
-
import { type
|
|
17
|
+
import { type FormFieldRendererProps, SelectField } from '@dxos/react-ui-form';
|
|
20
18
|
import { HuePicker, IconPicker } from '@dxos/react-ui-pickers';
|
|
21
19
|
import { ViewAnnotation } from '@dxos/schema';
|
|
20
|
+
import { Position } from '@dxos/util';
|
|
22
21
|
|
|
23
|
-
import { SpaceSettings } from '#components';
|
|
24
22
|
import {
|
|
25
23
|
CollectionArticle,
|
|
26
24
|
CollectionSection,
|
|
27
25
|
CreateObjectDialog,
|
|
28
26
|
CreateSpaceDialog,
|
|
27
|
+
DefaultProperties,
|
|
29
28
|
ImportSpaceDialog,
|
|
30
29
|
InlineSyncStatus,
|
|
31
30
|
JoinDialog,
|
|
32
31
|
MembersContainer,
|
|
33
32
|
MenuFooter,
|
|
34
|
-
EntityRenamePopover,
|
|
35
33
|
ObjectCardStack,
|
|
36
|
-
ObjectProperties,
|
|
37
34
|
RecordArticle,
|
|
38
35
|
RelatedArticle,
|
|
36
|
+
RenamePopover,
|
|
37
|
+
type RenameSubject,
|
|
39
38
|
SchemaContainer,
|
|
40
39
|
SmallPresenceLive,
|
|
40
|
+
SpaceHomeArticle,
|
|
41
|
+
SpaceHomeRecent,
|
|
41
42
|
SpacePresence,
|
|
42
|
-
|
|
43
|
+
SpaceSettings,
|
|
43
44
|
SpaceSettingsContainer,
|
|
44
45
|
SyncStatus,
|
|
46
|
+
TypeCollectionArticle,
|
|
45
47
|
ViewEditor,
|
|
46
48
|
} from '#containers';
|
|
47
49
|
import { meta } from '#meta';
|
|
@@ -49,7 +51,10 @@ import { SpaceOperation } from '#operations';
|
|
|
49
51
|
import {
|
|
50
52
|
HueAnnotationId,
|
|
51
53
|
IconAnnotationId,
|
|
54
|
+
Settings,
|
|
55
|
+
SPACE_HOME_NODE_TYPE,
|
|
52
56
|
SpaceCapabilities,
|
|
57
|
+
SpaceHomeContent,
|
|
53
58
|
type TypeInputOptions,
|
|
54
59
|
TypeInputOptionsAnnotationId,
|
|
55
60
|
} from '#types';
|
|
@@ -59,8 +64,7 @@ import {
|
|
|
59
64
|
CREATE_SPACE_DIALOG,
|
|
60
65
|
IMPORT_SPACE_DIALOG,
|
|
61
66
|
JOIN_DIALOG,
|
|
62
|
-
|
|
63
|
-
SPACE_RENAME_POPOVER,
|
|
67
|
+
RENAME_POPOVER,
|
|
64
68
|
} from '../constants';
|
|
65
69
|
|
|
66
70
|
type ReactSurfaceOptions = {
|
|
@@ -70,28 +74,62 @@ type ReactSurfaceOptions = {
|
|
|
70
74
|
export default Capability.makeModule(
|
|
71
75
|
Effect.fnUntraced(function* ({ createInvitationUrl }: ReactSurfaceOptions) {
|
|
72
76
|
return Capability.contributes(Capabilities.ReactSurface, [
|
|
77
|
+
Surface.create({
|
|
78
|
+
id: 'spaceHome',
|
|
79
|
+
filter: AppSurface.literal(AppSurface.Article, SPACE_HOME_NODE_TYPE),
|
|
80
|
+
component: ({ data, role }) => (
|
|
81
|
+
<SpaceHomeArticle role={role} attendableId={data.attendableId} space={data.properties?.space} />
|
|
82
|
+
),
|
|
83
|
+
}),
|
|
84
|
+
Surface.create({
|
|
85
|
+
id: 'spaceHomeRecent',
|
|
86
|
+
filter: Surface.makeFilter(SpaceHomeContent),
|
|
87
|
+
component: ({ data }) => <SpaceHomeRecent space={data.space} />,
|
|
88
|
+
}),
|
|
73
89
|
Surface.create({
|
|
74
90
|
id: 'collectionFallback',
|
|
75
|
-
position:
|
|
91
|
+
position: Position.last,
|
|
76
92
|
filter: AppSurface.object(AppSurface.Article, Collection.Collection),
|
|
77
93
|
component: ({ data }) => <CollectionArticle attendableId={data.attendableId} subject={data.subject} />,
|
|
78
94
|
}),
|
|
79
95
|
Surface.create({
|
|
80
96
|
id: 'recordArticle',
|
|
81
|
-
position:
|
|
97
|
+
position: Position.last,
|
|
82
98
|
filter: AppSurface.subject(AppSurface.Article, Obj.isObject),
|
|
83
99
|
component: ({ data }) => <RecordArticle subject={data.subject} />,
|
|
84
100
|
}),
|
|
101
|
+
Surface.create({
|
|
102
|
+
id: 'typeCollection',
|
|
103
|
+
filter: AppSurface.subject(AppSurface.Article, Type.isType),
|
|
104
|
+
component: ({ data, role }) => {
|
|
105
|
+
const space = isSpace(data.properties?.space) ? data.properties.space : undefined;
|
|
106
|
+
if (!space) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return (
|
|
111
|
+
<TypeCollectionArticle
|
|
112
|
+
role={role}
|
|
113
|
+
space={space}
|
|
114
|
+
typeUri={Type.getURI(data.subject)}
|
|
115
|
+
attendableId={data.attendableId}
|
|
116
|
+
/>
|
|
117
|
+
);
|
|
118
|
+
},
|
|
119
|
+
}),
|
|
85
120
|
Surface.create({
|
|
86
121
|
id: 'pluginSettings',
|
|
87
|
-
filter: AppSurface.settings(AppSurface.Article, meta.
|
|
88
|
-
component: () => {
|
|
122
|
+
filter: AppSurface.settings(AppSurface.Article, meta.profile.key),
|
|
123
|
+
component: ({ data: { subject } }) => {
|
|
89
124
|
const spaces = useSpaces();
|
|
90
125
|
const { invokePromise } = useOperationInvoker();
|
|
126
|
+
const { settings, updateSettings } = useSettingsState<Settings.Settings>(subject.atom);
|
|
91
127
|
return (
|
|
92
128
|
<SpaceSettings
|
|
93
129
|
spaces={spaces}
|
|
94
130
|
onOpenSpaceSettings={(space: Space) => invokePromise(SpaceOperation.OpenSettings, { space })}
|
|
131
|
+
settings={settings}
|
|
132
|
+
onSettingsChange={updateSettings}
|
|
95
133
|
/>
|
|
96
134
|
);
|
|
97
135
|
},
|
|
@@ -102,7 +140,7 @@ export default Capability.makeModule(
|
|
|
102
140
|
AppSurface.literal(AppSurface.Article, 'settings'),
|
|
103
141
|
AppSurface.companion(AppSurface.Article),
|
|
104
142
|
),
|
|
105
|
-
component: ({ ref, data, role }) => <
|
|
143
|
+
component: ({ ref, data, role }) => <DefaultProperties role={role} subject={data.companionTo} ref={ref} />,
|
|
106
144
|
}),
|
|
107
145
|
Surface.create({
|
|
108
146
|
id: 'companion.related',
|
|
@@ -114,7 +152,7 @@ export default Capability.makeModule(
|
|
|
114
152
|
}),
|
|
115
153
|
Surface.create({
|
|
116
154
|
id: 'spaceSettingsProperties',
|
|
117
|
-
filter: AppSurface.literal(AppSurface.Article, `${meta.
|
|
155
|
+
filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.general`),
|
|
118
156
|
component: ({ ref }) => {
|
|
119
157
|
const space = useActiveSpace();
|
|
120
158
|
if (!space) {
|
|
@@ -126,8 +164,8 @@ export default Capability.makeModule(
|
|
|
126
164
|
}),
|
|
127
165
|
Surface.create({
|
|
128
166
|
id: 'spaceSettingsMembers',
|
|
129
|
-
position:
|
|
130
|
-
filter: AppSurface.literal(AppSurface.Article, `${meta.
|
|
167
|
+
position: Position.first,
|
|
168
|
+
filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.members`),
|
|
131
169
|
component: () => {
|
|
132
170
|
const space = useActiveSpace();
|
|
133
171
|
if (!space) {
|
|
@@ -139,7 +177,7 @@ export default Capability.makeModule(
|
|
|
139
177
|
}),
|
|
140
178
|
Surface.create({
|
|
141
179
|
id: 'spaceSettingsSchema',
|
|
142
|
-
filter: AppSurface.literal(AppSurface.Article, `${meta.
|
|
180
|
+
filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.schema`),
|
|
143
181
|
component: () => {
|
|
144
182
|
const space = useActiveSpace();
|
|
145
183
|
if (!space) {
|
|
@@ -151,19 +189,10 @@ export default Capability.makeModule(
|
|
|
151
189
|
}),
|
|
152
190
|
Surface.create({
|
|
153
191
|
id: 'selectedObjects',
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
const type = Obj.getType(data.companionTo);
|
|
161
|
-
const path = type
|
|
162
|
-
? Option.getOrElse(ViewAnnotation.get(Type.getSchema(type)), () => [] as readonly string[])
|
|
163
|
-
: [];
|
|
164
|
-
const viewTarget = path.length > 0 ? ViewAnnotation.tryGetTargetAlongPath(data.companionTo, path) : undefined;
|
|
165
|
-
return !!viewTarget;
|
|
166
|
-
},
|
|
192
|
+
filter: AppSurface.allOf(
|
|
193
|
+
AppSurface.literal(AppSurface.Article, 'selected-objects'),
|
|
194
|
+
AppSurface.companion(AppSurface.Article, Obj.isObject),
|
|
195
|
+
),
|
|
167
196
|
// TODO(burdon): Replace with mosaic.
|
|
168
197
|
component: ({ data, ref }) => {
|
|
169
198
|
const type = Obj.getType(data.companionTo);
|
|
@@ -210,18 +239,14 @@ export default Capability.makeModule(
|
|
|
210
239
|
}),
|
|
211
240
|
Surface.create({
|
|
212
241
|
id: 'createInitialSpaceFormHue',
|
|
213
|
-
|
|
214
|
-
filter: (data): data is { prop: string; schema: Schema.Schema<any>; fieldPropertyAst?: SchemaAST.AST } => {
|
|
215
|
-
const annotation = SchemaEx.findAnnotation<boolean>((data.schema as Schema.Schema.All).ast, HueAnnotationId);
|
|
216
|
-
return !!annotation;
|
|
217
|
-
},
|
|
242
|
+
filter: AppSurface.formInputBySchema((ast) => !!SchemaEx.findAnnotation<boolean>(ast, HueAnnotationId)),
|
|
218
243
|
component: ({ data, ...inputProps }) => {
|
|
219
244
|
const ast = data.fieldPropertyAst;
|
|
220
245
|
if (!ast) {
|
|
221
246
|
return null;
|
|
222
247
|
}
|
|
223
248
|
|
|
224
|
-
const { label, readonly, getValue, onValueChange } = inputProps as any as
|
|
249
|
+
const { label, readonly, getValue, onValueChange } = inputProps as any as FormFieldRendererProps;
|
|
225
250
|
const handleChange = useCallback((nextHue: string) => onValueChange(ast, nextHue), [ast, onValueChange]);
|
|
226
251
|
const handleReset = useCallback(() => onValueChange(ast, undefined), [ast, onValueChange]);
|
|
227
252
|
return (
|
|
@@ -234,18 +259,14 @@ export default Capability.makeModule(
|
|
|
234
259
|
}),
|
|
235
260
|
Surface.create({
|
|
236
261
|
id: 'createInitialSpaceFormIcon',
|
|
237
|
-
|
|
238
|
-
filter: (data): data is { prop: string; schema: Schema.Schema<any>; fieldPropertyAst?: SchemaAST.AST } => {
|
|
239
|
-
const annotation = SchemaEx.findAnnotation<boolean>((data.schema as Schema.Schema.All).ast, IconAnnotationId);
|
|
240
|
-
return !!annotation;
|
|
241
|
-
},
|
|
262
|
+
filter: AppSurface.formInputBySchema((ast) => !!SchemaEx.findAnnotation<boolean>(ast, IconAnnotationId)),
|
|
242
263
|
component: ({ data, ...inputProps }) => {
|
|
243
264
|
const ast = data.fieldPropertyAst;
|
|
244
265
|
if (!ast) {
|
|
245
266
|
return null;
|
|
246
267
|
}
|
|
247
268
|
|
|
248
|
-
const { label, readonly, getValue, onValueChange } = inputProps as any as
|
|
269
|
+
const { label, readonly, getValue, onValueChange } = inputProps as any as FormFieldRendererProps;
|
|
249
270
|
const handleChange = useCallback((nextIcon: string) => onValueChange(ast, nextIcon), [ast, onValueChange]);
|
|
250
271
|
const handleReset = useCallback(() => onValueChange(ast, undefined), [ast, onValueChange]);
|
|
251
272
|
return (
|
|
@@ -263,34 +284,20 @@ export default Capability.makeModule(
|
|
|
263
284
|
}),
|
|
264
285
|
Surface.create({
|
|
265
286
|
id: 'typenameFormInput',
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
)
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
target: Database.Database | Collection.Collection | undefined;
|
|
273
|
-
fieldPropertyAst?: SchemaAST.AST;
|
|
274
|
-
} => {
|
|
275
|
-
if (data.prop !== 'typename') {
|
|
276
|
-
return false;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
const annotation = SchemaEx.findAnnotation(
|
|
280
|
-
(data.schema as Schema.Schema.All).ast,
|
|
281
|
-
TypeInputOptionsAnnotationId,
|
|
282
|
-
);
|
|
283
|
-
return !!annotation;
|
|
284
|
-
},
|
|
285
|
-
component: ({ data: { schema, target, fieldPropertyAst }, ...inputProps }) => {
|
|
286
|
-
const ast = fieldPropertyAst;
|
|
287
|
+
filter: AppSurface.formInput(
|
|
288
|
+
(data) =>
|
|
289
|
+
data.prop === 'typename' && !!SchemaEx.findAnnotation(data.schema.ast, TypeInputOptionsAnnotationId),
|
|
290
|
+
),
|
|
291
|
+
component: ({ data, ...inputProps }) => {
|
|
292
|
+
const ast = data.fieldPropertyAst;
|
|
287
293
|
if (!ast) {
|
|
288
294
|
return null;
|
|
289
295
|
}
|
|
290
296
|
|
|
291
|
-
const props = { ...inputProps, type: ast } as any as
|
|
292
|
-
const
|
|
293
|
-
const
|
|
297
|
+
const props = { ...inputProps, type: ast } as any as FormFieldRendererProps;
|
|
298
|
+
const target = data.target;
|
|
299
|
+
const db = Database.isDatabase(target) ? target : Obj.isObject(target) ? Obj.getDatabase(target) : undefined;
|
|
300
|
+
const annotation = SchemaEx.findAnnotation<TypeInputOptions>(data.schema.ast, TypeInputOptionsAnnotationId)!;
|
|
294
301
|
const options = useTypeOptions({ db, annotation });
|
|
295
302
|
|
|
296
303
|
return <SelectField {...props} options={options} />;
|
|
@@ -298,26 +305,23 @@ export default Capability.makeModule(
|
|
|
298
305
|
}),
|
|
299
306
|
Surface.create({
|
|
300
307
|
id: 'objectProperties',
|
|
301
|
-
|
|
302
|
-
filter: (data): data is { subject: Obj.Unknown } => {
|
|
308
|
+
filter: Surface.makeFilter(AppSurface.ObjectProperties, (data) => {
|
|
303
309
|
if (!Obj.isObject(data.subject)) {
|
|
304
310
|
return false;
|
|
305
311
|
}
|
|
306
|
-
|
|
307
312
|
const type = Obj.getType(data.subject);
|
|
308
313
|
const path = type
|
|
309
314
|
? Option.getOrElse(ViewAnnotation.get(Type.getSchema(type)), () => [] as readonly string[])
|
|
310
315
|
: [];
|
|
311
316
|
const viewTarget = path.length > 0 ? ViewAnnotation.tryGetTargetAlongPath(data.subject, path) : undefined;
|
|
312
317
|
return !!viewTarget;
|
|
313
|
-
},
|
|
318
|
+
}),
|
|
314
319
|
component: ({ data }) => {
|
|
315
320
|
const type = Obj.getType(data.subject);
|
|
316
321
|
const path = type
|
|
317
322
|
? Option.getOrElse(ViewAnnotation.get(Type.getSchema(type)), () => [] as readonly string[])
|
|
318
323
|
: [];
|
|
319
324
|
const view = path.length > 0 ? ViewAnnotation.tryGetTargetAlongPath(data.subject, path) : undefined;
|
|
320
|
-
|
|
321
325
|
if (!view) {
|
|
322
326
|
return null;
|
|
323
327
|
}
|
|
@@ -326,17 +330,9 @@ export default Capability.makeModule(
|
|
|
326
330
|
},
|
|
327
331
|
}),
|
|
328
332
|
Surface.create({
|
|
329
|
-
id:
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
component: ({ data }) => <SpaceRenamePopover space={data.props} />,
|
|
333
|
-
}),
|
|
334
|
-
Surface.create({
|
|
335
|
-
id: ENTITY_RENAME_POPOVER,
|
|
336
|
-
role: 'popover',
|
|
337
|
-
filter: (data): data is { props: Entity.Unknown } =>
|
|
338
|
-
data.component === ENTITY_RENAME_POPOVER && Entity.isEntity(data.props),
|
|
339
|
-
component: ({ data }) => <EntityRenamePopover entity={data.props} />,
|
|
333
|
+
id: RENAME_POPOVER,
|
|
334
|
+
filter: AppSurface.component<RenameSubject>(AppSurface.Popover, RENAME_POPOVER),
|
|
335
|
+
component: ({ data }) => <RenamePopover subject={data.props} />,
|
|
340
336
|
}),
|
|
341
337
|
Surface.create({
|
|
342
338
|
id: 'menuFooter',
|
|
@@ -345,9 +341,7 @@ export default Capability.makeModule(
|
|
|
345
341
|
}),
|
|
346
342
|
Surface.create({
|
|
347
343
|
id: 'navtreePresence',
|
|
348
|
-
|
|
349
|
-
filter: (data): data is { id: string; subject: Obj.Unknown; open?: boolean } =>
|
|
350
|
-
typeof data.id === 'string' && Obj.isObject(data.subject),
|
|
344
|
+
filter: AppSurface.subject(AppSurface.NavtreeItemEnd, Obj.isObject),
|
|
351
345
|
component: ({ data }) => {
|
|
352
346
|
const ephemeral = useAtomCapability(SpaceCapabilities.EphemeralState);
|
|
353
347
|
return <SmallPresenceLive id={data.id} open={data.open} viewers={ephemeral.viewersByObject[data.id]} />;
|
|
@@ -356,28 +350,30 @@ export default Capability.makeModule(
|
|
|
356
350
|
// TODO(wittjosiah): Attention glyph for non-echo items should be handled elsewhere.
|
|
357
351
|
Surface.create({
|
|
358
352
|
id: 'navtreePresenceFallback',
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
filter: (data): data is { id: string; open?: boolean } => typeof data.id === 'string',
|
|
353
|
+
position: Position.last,
|
|
354
|
+
filter: Surface.makeFilter(AppSurface.NavtreeItemEnd),
|
|
362
355
|
component: ({ data }) => <SmallPresenceLive id={data.id} open={data.open} />,
|
|
363
356
|
}),
|
|
364
357
|
// TODO(wittjosiah): Broken?
|
|
365
358
|
Surface.create({
|
|
366
359
|
id: 'navtreeSyncStatus',
|
|
367
|
-
|
|
368
|
-
filter: (data): data is { subject: Space; open?: boolean } => isSpace(data.subject),
|
|
360
|
+
filter: AppSurface.subject(AppSurface.NavtreeItemEnd, isSpace),
|
|
369
361
|
component: ({ data }) => <InlineSyncStatus space={data.subject} open={data.open} />,
|
|
370
362
|
}),
|
|
371
363
|
Surface.create({
|
|
372
364
|
id: 'navbarPresence',
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
365
|
+
position: Position.first,
|
|
366
|
+
filter: AppSurface.subject(
|
|
367
|
+
AppSurface.NavbarEnd,
|
|
368
|
+
(value): value is Space | Obj.Unknown => isSpace(value) || Obj.isObject(value),
|
|
369
|
+
),
|
|
376
370
|
component: ({ data }) => {
|
|
377
371
|
const space = isSpace(data.subject) ? data.subject : getSpace(data.subject);
|
|
378
372
|
const object = isSpace(data.subject)
|
|
379
373
|
? data.subject.state.get() === SpaceState.SPACE_READY
|
|
380
|
-
? space &&
|
|
374
|
+
? space &&
|
|
375
|
+
Annotation.get(space.properties, AppAnnotation.RootCollectionAnnotation).pipe(Option.getOrUndefined)
|
|
376
|
+
?.target
|
|
381
377
|
: undefined
|
|
382
378
|
: data.subject;
|
|
383
379
|
|
|
@@ -391,7 +387,7 @@ export default Capability.makeModule(
|
|
|
391
387
|
}),
|
|
392
388
|
Surface.create({
|
|
393
389
|
id: 'syncStatus',
|
|
394
|
-
|
|
390
|
+
filter: Surface.makeFilter(AppSurface.StatusIndicator),
|
|
395
391
|
component: () => <SyncStatus />,
|
|
396
392
|
}),
|
|
397
393
|
]);
|
|
@@ -6,7 +6,7 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
import * as Option from 'effect/Option';
|
|
7
7
|
|
|
8
8
|
import { Capability } from '@dxos/app-framework';
|
|
9
|
-
import {
|
|
9
|
+
import { AppAnnotation } from '@dxos/app-toolkit';
|
|
10
10
|
import { Annotation, Collection, Obj, Ref } from '@dxos/echo';
|
|
11
11
|
import { type Space } from '@dxos/react-client/echo';
|
|
12
12
|
|
|
@@ -24,7 +24,9 @@ export default Capability.makeModule(() =>
|
|
|
24
24
|
* Remove all existing query collections from the root collection.
|
|
25
25
|
*/
|
|
26
26
|
const removeQueryCollections = async (space: Space) => {
|
|
27
|
-
const rootCollectionRef = Annotation.get(space.properties, RootCollectionAnnotation).pipe(
|
|
27
|
+
const rootCollectionRef = Annotation.get(space.properties, AppAnnotation.RootCollectionAnnotation).pipe(
|
|
28
|
+
Option.getOrUndefined,
|
|
29
|
+
);
|
|
28
30
|
const rootCollection: Collection.Collection | undefined = await rootCollectionRef?.load();
|
|
29
31
|
if (!rootCollection) {
|
|
30
32
|
return;
|
|
@@ -14,7 +14,7 @@ import { Settings, SpaceCapabilities } from '#types';
|
|
|
14
14
|
export default Capability.makeModule(() =>
|
|
15
15
|
Effect.sync(() => {
|
|
16
16
|
const settingsAtom = createKvsStore({
|
|
17
|
-
key: meta.
|
|
17
|
+
key: meta.profile.key,
|
|
18
18
|
schema: Settings.Settings,
|
|
19
19
|
defaultValue: () => ({}),
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ export default Capability.makeModule(() =>
|
|
|
22
22
|
return [
|
|
23
23
|
Capability.contributes(SpaceCapabilities.Settings, settingsAtom),
|
|
24
24
|
Capability.contributes(AppCapabilities.Settings, {
|
|
25
|
-
prefix: meta.
|
|
25
|
+
prefix: meta.profile.key,
|
|
26
26
|
schema: Settings.Settings,
|
|
27
27
|
atom: settingsAtom,
|
|
28
28
|
}),
|
|
@@ -7,19 +7,12 @@ import * as Fiber from 'effect/Fiber';
|
|
|
7
7
|
import * as Option from 'effect/Option';
|
|
8
8
|
|
|
9
9
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
10
|
-
import {
|
|
11
|
-
AppCapabilities,
|
|
12
|
-
LayoutOperation,
|
|
13
|
-
RootCollectionAnnotation,
|
|
14
|
-
getSpacePath,
|
|
15
|
-
resolvePersonalSpace,
|
|
16
|
-
setPersonalSpace,
|
|
17
|
-
} from '@dxos/app-toolkit';
|
|
10
|
+
import { AppAnnotation, AppCapabilities, AppSpace, LayoutOperation, Paths } from '@dxos/app-toolkit';
|
|
18
11
|
import { SubscriptionList } from '@dxos/async';
|
|
19
12
|
import { Annotation, Collection, Filter, Obj, Type } from '@dxos/echo';
|
|
20
13
|
import { SPACE_ID_LENGTH, parseId } from '@dxos/keys';
|
|
21
14
|
import { log } from '@dxos/log';
|
|
22
|
-
import {
|
|
15
|
+
import { Migrations, MigrationVersionAnnotation } from '@dxos/migrations';
|
|
23
16
|
import { AttentionCapabilities } from '@dxos/plugin-attention';
|
|
24
17
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
25
18
|
import { Graph } from '@dxos/plugin-graph';
|
|
@@ -67,13 +60,13 @@ export default Capability.makeModule(
|
|
|
67
60
|
yield* Effect.promise(() => personalSpace.waitUntilReady());
|
|
68
61
|
|
|
69
62
|
if (fromCredential) {
|
|
70
|
-
setPersonalSpace(personalSpace);
|
|
63
|
+
AppSpace.setPersonalSpace(personalSpace);
|
|
71
64
|
}
|
|
72
65
|
|
|
73
66
|
// Check if deck state indicates we should switch to default space.
|
|
74
67
|
const layout = registry.get(layoutAtom);
|
|
75
68
|
if (layout.workspace === 'default') {
|
|
76
|
-
yield* invoke(LayoutOperation.SwitchWorkspace, { subject: getSpacePath(personalSpace.id) });
|
|
69
|
+
yield* invoke(LayoutOperation.SwitchWorkspace, { subject: Paths.getSpacePath(personalSpace.id) });
|
|
77
70
|
}
|
|
78
71
|
|
|
79
72
|
const queryResults = yield* Effect.promise(() =>
|
|
@@ -102,12 +95,12 @@ export default Capability.makeModule(
|
|
|
102
95
|
|
|
103
96
|
// Try to find the personal space now, or subscribe to find it later.
|
|
104
97
|
// Initialization is non-blocking so subscriptions wire immediately.
|
|
105
|
-
const resolved = resolvePersonalSpace(client);
|
|
98
|
+
const resolved = AppSpace.resolvePersonalSpace(client);
|
|
106
99
|
if (resolved) {
|
|
107
100
|
startPersonalSpaceInit(resolved.space, resolved);
|
|
108
101
|
} else {
|
|
109
102
|
const personalSpaceSub = client.spaces.subscribe(() => {
|
|
110
|
-
const resolved = resolvePersonalSpace(client);
|
|
103
|
+
const resolved = AppSpace.resolvePersonalSpace(client);
|
|
111
104
|
if (resolved) {
|
|
112
105
|
startPersonalSpaceInit(resolved.space, resolved);
|
|
113
106
|
}
|
|
@@ -158,7 +151,7 @@ export default Capability.makeModule(
|
|
|
158
151
|
// Cache space names.
|
|
159
152
|
const spaceNamesSub = client.spaces.subscribe(async (spaces) => {
|
|
160
153
|
// TODO(wittjosiah): Remove. This is a hack to be able to migrate the personal space properties.
|
|
161
|
-
const personalSpaceForMigration = resolvePersonalSpace(client);
|
|
154
|
+
const personalSpaceForMigration = AppSpace.resolvePersonalSpace(client);
|
|
162
155
|
if (
|
|
163
156
|
personalSpaceForMigration?.space &&
|
|
164
157
|
personalSpaceForMigration.space.state.get() === SpaceState.SPACE_REQUIRES_MIGRATION
|
|
@@ -169,11 +162,11 @@ export default Capability.makeModule(
|
|
|
169
162
|
spaces
|
|
170
163
|
.filter((space) => space.state.get() === SpaceState.SPACE_READY)
|
|
171
164
|
.forEach((space) => {
|
|
172
|
-
if (Option.isNone(Annotation.get(space.properties, RootCollectionAnnotation))) {
|
|
165
|
+
if (Option.isNone(Annotation.get(space.properties, AppAnnotation.RootCollectionAnnotation))) {
|
|
173
166
|
const legacyRef = (space.properties as any)[Type.getTypename(Collection.Collection)];
|
|
174
167
|
if (legacyRef) {
|
|
175
168
|
Obj.update(space.properties, (properties) => {
|
|
176
|
-
Annotation.set(properties, RootCollectionAnnotation, legacyRef);
|
|
169
|
+
Annotation.set(properties, AppAnnotation.RootCollectionAnnotation, legacyRef);
|
|
177
170
|
});
|
|
178
171
|
}
|
|
179
172
|
}
|
|
@@ -25,7 +25,7 @@ export default Capability.makeModule(
|
|
|
25
25
|
|
|
26
26
|
// Persisted state using KVS store.
|
|
27
27
|
const stateAtom = createKvsStore({
|
|
28
|
-
key: `${meta.
|
|
28
|
+
key: `${meta.profile.key}.state`,
|
|
29
29
|
schema: SpaceCapabilities.StateSchema,
|
|
30
30
|
defaultValue: () => ({ ...defaultSpaceState }),
|
|
31
31
|
});
|
|
@@ -30,7 +30,7 @@ export default Capability.makeModule(
|
|
|
30
30
|
props: output.props,
|
|
31
31
|
index: output.index,
|
|
32
32
|
}),
|
|
33
|
-
message: ['field-deleted.label', { ns: meta.
|
|
33
|
+
message: ['field-deleted.label', { ns: meta.profile.key }],
|
|
34
34
|
}),
|
|
35
35
|
UndoMapping.make({
|
|
36
36
|
operation: SpaceOperation.RemoveObjects,
|
|
@@ -44,8 +44,8 @@ export default Capability.makeModule(
|
|
|
44
44
|
message: (input, _output) => {
|
|
45
45
|
const ns = Entity.getTypename(input.objects[0]);
|
|
46
46
|
return ns && input.objects.length === 1
|
|
47
|
-
? ['object-deleted.label', { ns: [ns, meta.
|
|
48
|
-
: ['objects-deleted.label', { ns: meta.
|
|
47
|
+
? ['object-deleted.label', { ns: [ns, meta.profile.key] }]
|
|
48
|
+
: ['objects-deleted.label', { ns: meta.profile.key }];
|
|
49
49
|
},
|
|
50
50
|
}),
|
|
51
51
|
]),
|
|
@@ -11,7 +11,7 @@ import * as Effect from 'effect/Effect';
|
|
|
11
11
|
import * as Option from 'effect/Option';
|
|
12
12
|
|
|
13
13
|
import { type Capability, Plugin } from '@dxos/app-framework';
|
|
14
|
-
import { AppActivationEvents,
|
|
14
|
+
import { AppActivationEvents, AppAnnotation } from '@dxos/app-toolkit';
|
|
15
15
|
import { CommandConfig, Common, type SpaceNotFoundError, flushAndSync, print, spaceLayer } from '@dxos/cli-util';
|
|
16
16
|
import { type ClientService } from '@dxos/client';
|
|
17
17
|
import { SpaceProperties } from '@dxos/client/echo';
|
|
@@ -53,7 +53,9 @@ export const add: Command.Command<
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
const [properties] = yield* Database.query(Filter.type(SpaceProperties)).run;
|
|
56
|
-
const rootCollectionRef = Annotation.get(properties, RootCollectionAnnotation).pipe(
|
|
56
|
+
const rootCollectionRef = Annotation.get(properties, AppAnnotation.RootCollectionAnnotation).pipe(
|
|
57
|
+
Option.getOrUndefined,
|
|
58
|
+
);
|
|
57
59
|
const collection = rootCollectionRef ? yield* Database.load<Collection.Collection>(rootCollectionRef) : undefined;
|
|
58
60
|
|
|
59
61
|
const selectedTypename = yield* Option.match(typename, {
|
|
@@ -9,7 +9,7 @@ import * as Effect from 'effect/Effect';
|
|
|
9
9
|
|
|
10
10
|
import { CommandConfig, printList } from '@dxos/cli-util';
|
|
11
11
|
import { ClientService } from '@dxos/client';
|
|
12
|
-
import { Entity } from '@dxos/echo';
|
|
12
|
+
import { Entity, Filter, Query, Scope } from '@dxos/echo';
|
|
13
13
|
import { EID } from '@dxos/keys';
|
|
14
14
|
|
|
15
15
|
import { printQueueObject } from './util';
|
|
@@ -37,8 +37,9 @@ export const query = Command.make(
|
|
|
37
37
|
yield* Console.error(`Space not found: ${spaceId}`);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
|
|
40
|
+
const objects = yield* Effect.promise(() =>
|
|
41
|
+
space.db.query(Query.select(Filter.everything()).from(Scope.feed(echoUri))).run(),
|
|
42
|
+
);
|
|
42
43
|
|
|
43
44
|
if (json) {
|
|
44
45
|
yield* Console.log(JSON.stringify(objects, null, 2));
|
|
@@ -20,7 +20,7 @@ const WAIT_FOR_OBJECT_TIMEOUT = 3 * 60 * 1_000;
|
|
|
20
20
|
const TOAST_TIMEOUT = 4 * 60 * 1_000;
|
|
21
21
|
|
|
22
22
|
export const AwaitingObject = ({ id }: { id: string }) => {
|
|
23
|
-
const { t } = useTranslation(meta.
|
|
23
|
+
const { t } = useTranslation(meta.profile.key);
|
|
24
24
|
const { invokePromise } = useOperationInvoker();
|
|
25
25
|
const [open, setOpen] = useState(true);
|
|
26
26
|
const [waiting, setWaiting] = useState(true);
|
|
@@ -149,7 +149,7 @@ type SelectTypeProps = Pick<CreateObjectPanelProps, 'options'> & {
|
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
const SelectType = ({ options, onChange }: SelectTypeProps) => {
|
|
152
|
-
const { t } = useTranslation(meta.
|
|
152
|
+
const { t } = useTranslation(meta.profile.key);
|
|
153
153
|
|
|
154
154
|
const { results, handleSearch } = useSearchListResults({
|
|
155
155
|
items: options,
|
|
@@ -197,7 +197,7 @@ type SelectSpaceProps = Pick<CreateObjectPanelProps, 'spaces' | 'defaultSpaceId'
|
|
|
197
197
|
};
|
|
198
198
|
|
|
199
199
|
const SelectSpace = ({ spaces, defaultSpaceId, onChange }: SelectSpaceProps) => {
|
|
200
|
-
const { t } = useTranslation(meta.
|
|
200
|
+
const { t } = useTranslation(meta.profile.key);
|
|
201
201
|
|
|
202
202
|
const sortedSpaces = useMemo(
|
|
203
203
|
() =>
|