@dxos/plugin-space 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51
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/{SpaceSettings-TR2IMHOL.mjs → SpaceSettings-EM4ANH25.mjs} +3 -3
- package/dist/lib/browser/{add-object-XUA4QRWE.mjs → add-object-GD7KRSJ4.mjs} +8 -16
- package/dist/lib/browser/add-object-GD7KRSJ4.mjs.map +7 -0
- package/dist/lib/browser/{add-relation-YNTOBNYM.mjs → add-relation-CFHQLWPO.mjs} +4 -4
- package/dist/lib/browser/add-relation-CFHQLWPO.mjs.map +7 -0
- package/dist/lib/browser/{add-schema-Q5X2SAX4.mjs → add-schema-GTRLA4FD.mjs} +5 -5
- package/dist/lib/browser/add-schema-GTRLA4FD.mjs.map +7 -0
- package/dist/lib/browser/{chunk-VV4C4APQ.mjs → chunk-3RYTAKKI.mjs} +1 -1
- package/dist/lib/browser/{chunk-VV4C4APQ.mjs.map → chunk-3RYTAKKI.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-BJAZV3HI.mjs → chunk-C7AYQOUD.mjs} +3 -3
- package/dist/lib/browser/chunk-C7AYQOUD.mjs.map +7 -0
- package/dist/lib/browser/{chunk-FBRDXXNK.mjs → chunk-CQF3R5FY.mjs} +1 -1
- package/dist/lib/browser/chunk-CQF3R5FY.mjs.map +7 -0
- package/dist/lib/browser/{chunk-JH2UWMN2.mjs → chunk-JHZGRYGS.mjs} +1 -1
- package/dist/lib/browser/{chunk-JH2UWMN2.mjs.map → chunk-JHZGRYGS.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-YSV6LKD6.mjs → chunk-YELP3CVT.mjs} +2 -10
- package/dist/lib/browser/chunk-YELP3CVT.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +3 -11
- package/dist/lib/browser/cli/index.mjs.map +3 -3
- package/dist/lib/browser/{close-MPL6CV3Z.mjs → close-UTZ4JU5U.mjs} +4 -4
- package/dist/lib/browser/{close-MPL6CV3Z.mjs.map → close-UTZ4JU5U.mjs.map} +1 -1
- package/dist/lib/browser/{create-AE3FYWXG.mjs → create-7DZWDM22.mjs} +6 -6
- package/dist/lib/browser/create-7DZWDM22.mjs.map +7 -0
- package/dist/lib/browser/{delete-field-G77IGW6B.mjs → delete-field-OSRHGYX5.mjs} +7 -31
- package/dist/lib/browser/delete-field-OSRHGYX5.mjs.map +7 -0
- package/dist/lib/browser/{duplicate-object-B3Q64ELR.mjs → duplicate-object-FXPKRGEX.mjs} +6 -14
- package/dist/lib/browser/duplicate-object-FXPKRGEX.mjs.map +7 -0
- package/dist/lib/browser/{get-share-link-R745OMNC.mjs → get-share-link-C6WVJRBD.mjs} +5 -5
- package/dist/lib/browser/{get-share-link-R745OMNC.mjs.map → get-share-link-C6WVJRBD.mjs.map} +1 -1
- package/dist/lib/browser/index.mjs +46 -332
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/{join-EDCBOGMO.mjs → join-DUQDFUP7.mjs} +5 -5
- package/dist/lib/browser/{join-EDCBOGMO.mjs.map → join-DUQDFUP7.mjs.map} +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +12 -3
- package/dist/lib/browser/meta.mjs.map +4 -4
- package/dist/lib/browser/{migrate-J7OVAUIM.mjs → migrate-2CCLBOB7.mjs} +4 -4
- package/dist/lib/browser/migrate-2CCLBOB7.mjs.map +7 -0
- package/dist/lib/browser/{open-LGLVOLR3.mjs → open-YZMTOJKZ.mjs} +4 -4
- package/dist/lib/browser/{open-LGLVOLR3.mjs.map → open-YZMTOJKZ.mjs.map} +1 -1
- package/dist/lib/browser/{open-create-object-QQFDBDDC.mjs → open-create-object-76TERQFL.mjs} +5 -5
- package/dist/lib/browser/open-create-object-76TERQFL.mjs.map +7 -0
- package/dist/lib/browser/{open-create-space-7IVA2QOK.mjs → open-create-space-YJM57655.mjs} +5 -5
- package/dist/lib/browser/{open-create-space-7IVA2QOK.mjs.map → open-create-space-YJM57655.mjs.map} +1 -1
- package/dist/lib/browser/{open-members-RF5E7PAE.mjs → open-members-Z62WRZXE.mjs} +4 -4
- package/dist/lib/browser/{open-members-RF5E7PAE.mjs.map → open-members-Z62WRZXE.mjs.map} +1 -1
- package/dist/lib/browser/{open-settings-A56XL7NJ.mjs → open-settings-7NGQX4DC.mjs} +5 -5
- package/dist/lib/browser/{open-settings-A56XL7NJ.mjs.map → open-settings-7NGQX4DC.mjs.map} +1 -1
- package/dist/lib/browser/operations/index.mjs +4 -4
- package/dist/lib/browser/operations/index.mjs.map +3 -3
- package/dist/lib/browser/{remove-objects-5JFRQRGL.mjs → remove-objects-U2WX4YJR.mjs} +7 -15
- package/dist/lib/browser/remove-objects-U2WX4YJR.mjs.map +7 -0
- package/dist/lib/browser/{rename-UOGQQJ3T.mjs → rename-AT4JOBWL.mjs} +5 -5
- package/dist/lib/browser/{rename-UOGQQJ3T.mjs.map → rename-AT4JOBWL.mjs.map} +1 -1
- package/dist/lib/browser/{rename-object-V2LDZGOE.mjs → rename-object-C27IY6OV.mjs} +5 -5
- package/dist/lib/browser/rename-object-C27IY6OV.mjs.map +7 -0
- package/dist/lib/browser/{restore-field-TQJP2YJI.mjs → restore-field-WXW347UU.mjs} +7 -31
- package/dist/lib/browser/restore-field-WXW347UU.mjs.map +7 -0
- package/dist/lib/browser/{restore-objects-23VJYK72.mjs → restore-objects-AHHIZKTQ.mjs} +6 -14
- package/dist/lib/browser/restore-objects-AHHIZKTQ.mjs.map +7 -0
- package/dist/lib/browser/{share-2PZJXFJM.mjs → share-HSPCUWZO.mjs} +4 -4
- package/dist/lib/browser/{share-2PZJXFJM.mjs.map → share-HSPCUWZO.mjs.map} +1 -1
- package/dist/lib/browser/{snapshot-OOA2JZ67.mjs → snapshot-4GHO546H.mjs} +5 -13
- package/dist/lib/browser/snapshot-4GHO546H.mjs.map +7 -0
- package/dist/lib/browser/translations.mjs +283 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/browser/{wait-for-object-2XLXLCNS.mjs → wait-for-object-SHLHIHWS.mjs} +4 -4
- package/dist/lib/browser/{wait-for-object-2XLXLCNS.mjs.map → wait-for-object-SHLHIHWS.mjs.map} +1 -1
- package/dist/lib/node-esm/{SpaceSettings-YW75BDWT.mjs → SpaceSettings-VS63WTFP.mjs} +3 -3
- package/dist/lib/node-esm/{add-object-OULSB2DR.mjs → add-object-QLBKA7K4.mjs} +8 -16
- package/dist/lib/node-esm/add-object-QLBKA7K4.mjs.map +7 -0
- package/dist/lib/node-esm/{add-relation-K6EZYWKL.mjs → add-relation-GMXOWGR6.mjs} +4 -4
- package/dist/lib/node-esm/add-relation-GMXOWGR6.mjs.map +7 -0
- package/dist/lib/node-esm/{add-schema-4GSWOILA.mjs → add-schema-ZRDGGJ3O.mjs} +5 -5
- package/dist/lib/node-esm/add-schema-ZRDGGJ3O.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-GTF56ZOK.mjs → chunk-HSVHLOWA.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-GTF56ZOK.mjs.map → chunk-HSVHLOWA.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-7Z5ON2QQ.mjs → chunk-MZG7V6M3.mjs} +1 -1
- package/dist/lib/node-esm/chunk-MZG7V6M3.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-IYW6CXLN.mjs → chunk-QKEPMULV.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-IYW6CXLN.mjs.map → chunk-QKEPMULV.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-TZTVDLGM.mjs → chunk-RD5NBQ4C.mjs} +3 -3
- package/dist/lib/node-esm/chunk-RD5NBQ4C.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-IHOQPYNT.mjs → chunk-TIKBCL5D.mjs} +2 -10
- package/dist/lib/node-esm/chunk-TIKBCL5D.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +3 -11
- package/dist/lib/node-esm/cli/index.mjs.map +3 -3
- package/dist/lib/node-esm/{close-JSUMHN7R.mjs → close-VPJ66WYS.mjs} +4 -4
- package/dist/lib/node-esm/{close-JSUMHN7R.mjs.map → close-VPJ66WYS.mjs.map} +1 -1
- package/dist/lib/node-esm/{create-BRA5OQHY.mjs → create-C3G7T25G.mjs} +6 -6
- package/dist/lib/node-esm/create-C3G7T25G.mjs.map +7 -0
- package/dist/lib/node-esm/{delete-field-UNKELUX7.mjs → delete-field-I3EUV5OG.mjs} +7 -31
- package/dist/lib/node-esm/delete-field-I3EUV5OG.mjs.map +7 -0
- package/dist/lib/node-esm/{duplicate-object-QDZHK24D.mjs → duplicate-object-65GM2BS7.mjs} +6 -14
- package/dist/lib/node-esm/duplicate-object-65GM2BS7.mjs.map +7 -0
- package/dist/lib/node-esm/{get-share-link-XLBJHWDY.mjs → get-share-link-PGNTWGUH.mjs} +5 -5
- package/dist/lib/node-esm/{get-share-link-XLBJHWDY.mjs.map → get-share-link-PGNTWGUH.mjs.map} +1 -1
- package/dist/lib/node-esm/index.mjs +46 -332
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/{join-RGM74NMA.mjs → join-KYHTT3IE.mjs} +5 -5
- package/dist/lib/node-esm/{join-RGM74NMA.mjs.map → join-KYHTT3IE.mjs.map} +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/meta.mjs +12 -3
- package/dist/lib/node-esm/meta.mjs.map +4 -4
- package/dist/lib/node-esm/{migrate-NXBHBCFU.mjs → migrate-3HCYGDJG.mjs} +4 -4
- package/dist/lib/node-esm/migrate-3HCYGDJG.mjs.map +7 -0
- package/dist/lib/node-esm/{open-ZUK63Z2F.mjs → open-HO4LLI3I.mjs} +4 -4
- package/dist/lib/node-esm/{open-ZUK63Z2F.mjs.map → open-HO4LLI3I.mjs.map} +1 -1
- package/dist/lib/node-esm/{open-create-object-CMNXPKSF.mjs → open-create-object-QOH455FJ.mjs} +5 -5
- package/dist/lib/node-esm/open-create-object-QOH455FJ.mjs.map +7 -0
- package/dist/lib/node-esm/{open-create-space-W6DDCTCA.mjs → open-create-space-CDWC7YYL.mjs} +5 -5
- package/dist/lib/node-esm/{open-create-space-W6DDCTCA.mjs.map → open-create-space-CDWC7YYL.mjs.map} +1 -1
- package/dist/lib/node-esm/{open-members-BUANVOZL.mjs → open-members-5I7NDD5K.mjs} +4 -4
- package/dist/lib/node-esm/{open-members-BUANVOZL.mjs.map → open-members-5I7NDD5K.mjs.map} +1 -1
- package/dist/lib/node-esm/{open-settings-U2SJX5EW.mjs → open-settings-SQDLKQFX.mjs} +5 -5
- package/dist/lib/node-esm/{open-settings-U2SJX5EW.mjs.map → open-settings-SQDLKQFX.mjs.map} +1 -1
- package/dist/lib/node-esm/operations/index.mjs +4 -4
- package/dist/lib/node-esm/operations/index.mjs.map +3 -3
- package/dist/lib/node-esm/{remove-objects-KTAS3FB3.mjs → remove-objects-WOXLCEEG.mjs} +7 -15
- package/dist/lib/node-esm/remove-objects-WOXLCEEG.mjs.map +7 -0
- package/dist/lib/node-esm/{rename-F5GAS22G.mjs → rename-7T6W7HCV.mjs} +5 -5
- package/dist/lib/node-esm/{rename-F5GAS22G.mjs.map → rename-7T6W7HCV.mjs.map} +1 -1
- package/dist/lib/node-esm/{rename-object-D2AVOXBO.mjs → rename-object-AJK5K6WP.mjs} +5 -5
- package/dist/lib/node-esm/rename-object-AJK5K6WP.mjs.map +7 -0
- package/dist/lib/node-esm/{restore-field-O7T4WCMB.mjs → restore-field-766F6HQS.mjs} +7 -31
- package/dist/lib/node-esm/restore-field-766F6HQS.mjs.map +7 -0
- package/dist/lib/node-esm/{restore-objects-IRKTUGP2.mjs → restore-objects-VQZUFBNN.mjs} +6 -14
- package/dist/lib/node-esm/restore-objects-VQZUFBNN.mjs.map +7 -0
- package/dist/lib/node-esm/{share-5CZU3XKX.mjs → share-MG762MTJ.mjs} +4 -4
- package/dist/lib/node-esm/{share-5CZU3XKX.mjs.map → share-MG762MTJ.mjs.map} +1 -1
- package/dist/lib/node-esm/{snapshot-H3SRUIPR.mjs → snapshot-INCDC5YB.mjs} +5 -13
- package/dist/lib/node-esm/snapshot-INCDC5YB.mjs.map +7 -0
- package/dist/lib/node-esm/translations.mjs +284 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/lib/node-esm/{wait-for-object-G2HJINN3.mjs → wait-for-object-4KPMASPD.mjs} +4 -4
- package/dist/lib/node-esm/{wait-for-object-G2HJINN3.mjs.map → wait-for-object-4KPMASPD.mjs.map} +1 -1
- package/dist/types/src/SpacePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/extensions/collections.d.ts +28 -4
- 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 +21 -3
- package/dist/types/src/capabilities/app-graph-builder/extensions/companions.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/extensions/settings.d.ts +16 -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 +4 -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.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/extensions/types.d.ts +35 -5
- package/dist/types/src/capabilities/app-graph-builder/extensions/types.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-serializer.d.ts.map +1 -1
- package/dist/types/src/capabilities/identity-created.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/node.d.ts +1 -1
- package/dist/types/src/capabilities/node.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/repair.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/spaces-ready.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -1
- package/dist/types/src/cli/commands/database/add.d.ts +2 -2
- package/dist/types/src/cli/commands/database/add.d.ts.map +1 -1
- package/dist/types/src/cli/commands/database/query/query.d.ts +2 -2
- package/dist/types/src/cli/commands/database/query/query.d.ts.map +1 -1
- package/dist/types/src/cli/commands/database/remove.d.ts +1 -1
- package/dist/types/src/cli/commands/database/stats.d.ts +1 -1
- package/dist/types/src/cli/commands/database/util.d.ts.map +1 -1
- package/dist/types/src/cli/commands/queue/index.d.ts +1 -1
- package/dist/types/src/cli/commands/queue/query.d.ts +1 -1
- package/dist/types/src/cli/commands/queue/util.d.ts.map +1 -1
- package/dist/types/src/cli/commands/space/close/close.d.ts +2 -2
- package/dist/types/src/cli/commands/space/close/close.d.ts.map +1 -1
- package/dist/types/src/cli/commands/space/create/create.d.ts +2 -2
- package/dist/types/src/cli/commands/space/index.d.ts +13 -13
- package/dist/types/src/cli/commands/space/info/info.d.ts +2 -2
- package/dist/types/src/cli/commands/space/join/join.d.ts +2 -2
- package/dist/types/src/cli/commands/space/join/util.d.ts.map +1 -1
- package/dist/types/src/cli/commands/space/list/list.d.ts +2 -2
- package/dist/types/src/cli/commands/space/members/members.d.ts +2 -2
- package/dist/types/src/cli/commands/space/members/util.d.ts.map +1 -1
- package/dist/types/src/cli/commands/space/open/open.d.ts +2 -2
- package/dist/types/src/cli/commands/space/open/open.d.ts.map +1 -1
- package/dist/types/src/cli/commands/space/schema/index.d.ts +1 -1
- package/dist/types/src/cli/commands/space/schema/list/list.d.ts +2 -2
- package/dist/types/src/cli/commands/space/schema/list/util.d.ts.map +1 -1
- package/dist/types/src/cli/commands/space/share/share.d.ts +2 -2
- package/dist/types/src/components/AwaitingObject/AwaitingObject.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts +4 -4
- package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/ForeignKeys/ForeignKeys.d.ts.map +1 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettings.d.ts.map +1 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettings.stories.d.ts +248 -248
- package/dist/types/src/components/SpaceSettings/SpaceSettings.stories.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/save-tracker.d.ts +1 -1
- package/dist/types/src/components/SyncStatus/save-tracker.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/status.d.ts +1 -1
- package/dist/types/src/components/SyncStatus/status.d.ts.map +1 -1
- package/dist/types/src/containers/CollectionArticle/CollectionArticle.d.ts.map +1 -1
- package/dist/types/src/containers/CollectionSection/CollectionSection.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 +248 -248
- package/dist/types/src/containers/CreateObjectDialog/CreateObjectDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.stories.d.ts +248 -248
- package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/InlineSyncStatus/InlineSyncStatus.d.ts.map +1 -1
- package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts +248 -248
- 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/MenuFooter/MenuFooter.d.ts.map +1 -1
- package/dist/types/src/containers/ObjectProperties/ObjectProperties.d.ts +1 -1
- package/dist/types/src/containers/ObjectRenamePopover/ObjectRenamePopover.d.ts.map +1 -1
- package/dist/types/src/containers/RecordArticle/RecordArticle.d.ts.map +1 -1
- package/dist/types/src/containers/RecordArticle/RecordArticle.stories.d.ts.map +1 -1
- package/dist/types/src/containers/RelatedArticle/RelatedArticle.d.ts.map +1 -1
- package/dist/types/src/containers/SchemaContainer/SchemaContainer.d.ts.map +1 -1
- package/dist/types/src/containers/SpacePresence/SpacePresence.d.ts.map +1 -1
- package/dist/types/src/containers/SpacePresence/SpacePresence.stories.d.ts +248 -248
- package/dist/types/src/containers/SpacePresence/SpacePresence.stories.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceRenamePopover/SpaceRenamePopover.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.d.ts +4 -4
- package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.stories.d.ts +248 -248
- package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/SyncStatus/SyncStatus.d.ts.map +1 -1
- package/dist/types/src/containers/SyncStatus/SyncStatus.stories.d.ts +248 -248
- package/dist/types/src/containers/SyncStatus/SyncStatus.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ViewEditor/ViewEditor.d.ts.map +1 -1
- package/dist/types/src/hooks/useInputSurfaceLookup.d.ts.map +1 -1
- package/dist/types/src/hooks/usePath.d.ts.map +1 -1
- package/dist/types/src/hooks/useRelatedObjects.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/add-object.d.ts +1 -1
- package/dist/types/src/operations/add-object.d.ts.map +1 -1
- package/dist/types/src/operations/add-relation.d.ts +1 -1
- package/dist/types/src/operations/add-relation.d.ts.map +1 -1
- package/dist/types/src/operations/add-schema.d.ts +1 -1
- package/dist/types/src/operations/add-schema.d.ts.map +1 -1
- package/dist/types/src/operations/close.d.ts +1 -1
- package/dist/types/src/operations/close.d.ts.map +1 -1
- package/dist/types/src/operations/create.d.ts +1 -1
- package/dist/types/src/operations/create.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +15 -15
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/delete-field.d.ts +1 -1
- package/dist/types/src/operations/delete-field.d.ts.map +1 -1
- package/dist/types/src/operations/duplicate-object.d.ts +1 -1
- package/dist/types/src/operations/duplicate-object.d.ts.map +1 -1
- package/dist/types/src/operations/get-share-link.d.ts +1 -1
- package/dist/types/src/operations/get-share-link.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/join.d.ts +1 -1
- package/dist/types/src/operations/join.d.ts.map +1 -1
- package/dist/types/src/operations/migrate.d.ts +1 -1
- package/dist/types/src/operations/migrate.d.ts.map +1 -1
- package/dist/types/src/operations/open-create-object.d.ts +1 -1
- package/dist/types/src/operations/open-create-object.d.ts.map +1 -1
- package/dist/types/src/operations/open-create-space.d.ts +1 -1
- package/dist/types/src/operations/open-create-space.d.ts.map +1 -1
- package/dist/types/src/operations/open-members.d.ts +1 -1
- package/dist/types/src/operations/open-members.d.ts.map +1 -1
- package/dist/types/src/operations/open-settings.d.ts +1 -1
- package/dist/types/src/operations/open-settings.d.ts.map +1 -1
- package/dist/types/src/operations/open.d.ts +1 -1
- package/dist/types/src/operations/open.d.ts.map +1 -1
- package/dist/types/src/operations/remove-objects.d.ts +1 -1
- package/dist/types/src/operations/remove-objects.d.ts.map +1 -1
- package/dist/types/src/operations/rename-object.d.ts +1 -1
- package/dist/types/src/operations/rename-object.d.ts.map +1 -1
- package/dist/types/src/operations/rename.d.ts +1 -1
- package/dist/types/src/operations/rename.d.ts.map +1 -1
- package/dist/types/src/operations/restore-field.d.ts +1 -1
- package/dist/types/src/operations/restore-field.d.ts.map +1 -1
- package/dist/types/src/operations/restore-objects.d.ts +1 -1
- package/dist/types/src/operations/restore-objects.d.ts.map +1 -1
- package/dist/types/src/operations/share.d.ts +1 -1
- package/dist/types/src/operations/share.d.ts.map +1 -1
- package/dist/types/src/operations/snapshot.d.ts +1 -1
- package/dist/types/src/operations/snapshot.d.ts.map +1 -1
- package/dist/types/src/operations/wait-for-object.d.ts +1 -1
- package/dist/types/src/operations/wait-for-object.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +248 -248
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +2 -2
- 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/types.d.ts +1 -1
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +1 -1
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +66 -61
- package/src/SpacePlugin.ts +4 -5
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +1 -1
- package/src/capabilities/app-graph-builder/extensions/collections.ts +12 -6
- package/src/capabilities/app-graph-builder/extensions/companions.ts +5 -5
- package/src/capabilities/app-graph-builder/extensions/settings.ts +18 -16
- package/src/capabilities/app-graph-builder/extensions/shared.test.ts +2 -2
- package/src/capabilities/app-graph-builder/extensions/shared.ts +33 -14
- package/src/capabilities/app-graph-builder/extensions/spaces.ts +4 -19
- package/src/capabilities/app-graph-builder/extensions/types.ts +16 -9
- package/src/capabilities/app-graph-serializer.ts +1 -1
- package/src/capabilities/identity-created.ts +1 -1
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/navigation-handler/navigation-handler.ts +1 -1
- package/src/capabilities/node.ts +1 -1
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +60 -36
- package/src/capabilities/repair.ts +1 -1
- package/src/capabilities/state.ts +1 -1
- package/src/cli/commands/database/add.ts +2 -2
- package/src/cli/commands/space/create/create.ts +1 -1
- package/src/cli/plugin.ts +1 -1
- package/src/components/SpaceSettings/SpaceSettings.stories.tsx +2 -1
- package/src/containers/CreateObjectDialog/CreateObjectDialog.stories.tsx +1 -2
- package/src/containers/CreateObjectDialog/CreateObjectDialog.tsx +2 -3
- package/src/containers/CreateSpaceDialog/CreateSpaceDialog.stories.tsx +2 -1
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +2 -1
- package/src/containers/ObjectRenamePopover/ObjectRenamePopover.tsx +1 -1
- package/src/containers/RecordArticle/RecordArticle.stories.tsx +2 -1
- package/src/containers/SpacePresence/SpacePresence.stories.tsx +2 -1
- package/src/containers/SpaceRenamePopover/SpaceRenamePopover.tsx +1 -1
- package/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.stories.tsx +2 -1
- package/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.tsx +1 -1
- package/src/containers/SyncStatus/SyncStatus.stories.tsx +2 -1
- package/src/containers/ViewEditor/ViewEditor.tsx +2 -2
- package/src/hooks/useInputSurfaceLookup.tsx +9 -2
- package/src/index.ts +0 -1
- package/src/operations/add-object.ts +6 -7
- package/src/operations/add-relation.ts +1 -1
- package/src/operations/add-schema.ts +2 -2
- package/src/operations/close.ts +1 -1
- package/src/operations/create.ts +2 -2
- package/src/operations/definitions.ts +1 -1
- package/src/operations/delete-field.ts +1 -1
- package/src/operations/duplicate-object.ts +1 -1
- package/src/operations/get-share-link.ts +1 -1
- package/src/operations/index.ts +1 -1
- package/src/operations/join.ts +1 -1
- package/src/operations/migrate.ts +1 -1
- package/src/operations/open-create-object.ts +1 -1
- package/src/operations/open-create-space.ts +1 -1
- package/src/operations/open-members.ts +1 -1
- package/src/operations/open-settings.ts +2 -2
- package/src/operations/open.ts +1 -1
- package/src/operations/remove-objects.ts +2 -2
- package/src/operations/rename-object.ts +1 -1
- package/src/operations/rename.ts +1 -1
- package/src/operations/restore-field.ts +1 -1
- package/src/operations/restore-objects.ts +2 -2
- package/src/operations/share.ts +1 -1
- package/src/operations/snapshot.ts +1 -1
- package/src/operations/wait-for-object.ts +1 -1
- package/src/translations.ts +7 -7
- package/src/types/capabilities.ts +2 -2
- package/src/types/types.ts +1 -1
- package/src/util.ts +1 -1
- package/dist/lib/browser/add-object-XUA4QRWE.mjs.map +0 -7
- package/dist/lib/browser/add-relation-YNTOBNYM.mjs.map +0 -7
- package/dist/lib/browser/add-schema-Q5X2SAX4.mjs.map +0 -7
- package/dist/lib/browser/chunk-5CKPBXLB.mjs +0 -16
- package/dist/lib/browser/chunk-5CKPBXLB.mjs.map +0 -7
- package/dist/lib/browser/chunk-BJAZV3HI.mjs.map +0 -7
- package/dist/lib/browser/chunk-FBRDXXNK.mjs.map +0 -7
- package/dist/lib/browser/chunk-YSV6LKD6.mjs.map +0 -7
- package/dist/lib/browser/create-AE3FYWXG.mjs.map +0 -7
- package/dist/lib/browser/delete-field-G77IGW6B.mjs.map +0 -7
- package/dist/lib/browser/duplicate-object-B3Q64ELR.mjs.map +0 -7
- package/dist/lib/browser/migrate-J7OVAUIM.mjs.map +0 -7
- package/dist/lib/browser/open-create-object-QQFDBDDC.mjs.map +0 -7
- package/dist/lib/browser/remove-objects-5JFRQRGL.mjs.map +0 -7
- package/dist/lib/browser/rename-object-V2LDZGOE.mjs.map +0 -7
- package/dist/lib/browser/restore-field-TQJP2YJI.mjs.map +0 -7
- package/dist/lib/browser/restore-objects-23VJYK72.mjs.map +0 -7
- package/dist/lib/browser/snapshot-OOA2JZ67.mjs.map +0 -7
- package/dist/lib/node-esm/add-object-OULSB2DR.mjs.map +0 -7
- package/dist/lib/node-esm/add-relation-K6EZYWKL.mjs.map +0 -7
- package/dist/lib/node-esm/add-schema-4GSWOILA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-64AL4GHY.mjs +0 -18
- package/dist/lib/node-esm/chunk-64AL4GHY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7Z5ON2QQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IHOQPYNT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TZTVDLGM.mjs.map +0 -7
- package/dist/lib/node-esm/create-BRA5OQHY.mjs.map +0 -7
- package/dist/lib/node-esm/delete-field-UNKELUX7.mjs.map +0 -7
- package/dist/lib/node-esm/duplicate-object-QDZHK24D.mjs.map +0 -7
- package/dist/lib/node-esm/migrate-NXBHBCFU.mjs.map +0 -7
- package/dist/lib/node-esm/open-create-object-CMNXPKSF.mjs.map +0 -7
- package/dist/lib/node-esm/remove-objects-KTAS3FB3.mjs.map +0 -7
- package/dist/lib/node-esm/rename-object-D2AVOXBO.mjs.map +0 -7
- package/dist/lib/node-esm/restore-field-O7T4WCMB.mjs.map +0 -7
- package/dist/lib/node-esm/restore-objects-IRKTUGP2.mjs.map +0 -7
- package/dist/lib/node-esm/snapshot-H3SRUIPR.mjs.map +0 -7
- /package/dist/lib/browser/{SpaceSettings-TR2IMHOL.mjs.map → SpaceSettings-EM4ANH25.mjs.map} +0 -0
- /package/dist/lib/node-esm/{SpaceSettings-YW75BDWT.mjs.map → SpaceSettings-VS63WTFP.mjs.map} +0 -0
|
@@ -6,8 +6,8 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
8
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
9
10
|
import { log } from '@dxos/log';
|
|
10
|
-
import { Operation } from '@dxos/operation';
|
|
11
11
|
|
|
12
12
|
import { SpaceOperation } from '../../operations';
|
|
13
13
|
|
package/src/capabilities/node.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Capability } from '@dxos/app-framework';
|
|
6
|
-
import { OperationHandlerSet } from '@dxos/
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
export const IdentityCreated = Capability.lazy('IdentityCreated', () => import('./identity-created'));
|
|
9
9
|
export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
6
|
-
import type { OperationHandlerSet } from '@dxos/
|
|
6
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
import { SpaceOperationHandlerSet } from '#operations';
|
|
9
9
|
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
import * as Option from 'effect/Option';
|
|
7
7
|
import type * as Schema from 'effect/Schema';
|
|
8
|
+
import * as SchemaAST from 'effect/SchemaAST';
|
|
8
9
|
import React, { type ComponentProps, useCallback } from 'react';
|
|
9
10
|
|
|
10
11
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
11
12
|
import { Surface, useAtomCapability, useOperationInvoker, useSettingsState } from '@dxos/app-framework/ui';
|
|
12
13
|
import { AppSurface, useActiveSpace, useTypeOptions } from '@dxos/app-toolkit/ui';
|
|
13
|
-
import { Database, Obj
|
|
14
|
-
import { Collection
|
|
14
|
+
import { Database, Obj } from '@dxos/echo';
|
|
15
|
+
import { Collection } from '@dxos/echo';
|
|
15
16
|
import { findAnnotation } from '@dxos/effect';
|
|
16
17
|
import { type Space, SpaceState, getSpace, isSpace, useSpace, useSpaces } from '@dxos/react-client/echo';
|
|
17
18
|
import { Input } from '@dxos/react-ui';
|
|
@@ -153,29 +154,34 @@ export default Capability.makeModule(
|
|
|
153
154
|
Surface.create({
|
|
154
155
|
id: 'selected-objects',
|
|
155
156
|
role: 'article',
|
|
156
|
-
filter: (
|
|
157
|
-
data,
|
|
158
|
-
): data is { companionTo: Obj.OfShape<{ view: Ref.Ref<View.View> }>; subject: 'selected-objects' } => {
|
|
157
|
+
filter: (data): data is { companionTo: Obj.Unknown; subject: 'selected-objects' } => {
|
|
159
158
|
if (data.subject !== 'selected-objects' || !Obj.isObject(data.companionTo)) {
|
|
160
159
|
return false;
|
|
161
160
|
}
|
|
162
161
|
|
|
163
|
-
// TODO(burdon): Check companionTo.view.target is valid.
|
|
164
162
|
const schema = Obj.getSchema(data.companionTo);
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
);
|
|
163
|
+
const path = schema ? Option.getOrElse(ViewAnnotation.get(schema), () => [] as readonly string[]) : [];
|
|
164
|
+
const viewTarget = path.length > 0 ? ViewAnnotation.tryGetTargetAlongPath(data.companionTo, path) : undefined;
|
|
165
|
+
return !!viewTarget;
|
|
169
166
|
},
|
|
170
167
|
// TODO(burdon): Replace with mosaic.
|
|
171
|
-
component: ({ data, ref }) =>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
168
|
+
component: ({ data, ref }) => {
|
|
169
|
+
const schema = Obj.getSchema(data.companionTo);
|
|
170
|
+
const path = schema ? Option.getOrElse(ViewAnnotation.get(schema), () => [] as readonly string[]) : [];
|
|
171
|
+
const view = path.length > 0 ? ViewAnnotation.tryGetTargetAlongPath(data.companionTo, path) : undefined;
|
|
172
|
+
if (!view) {
|
|
173
|
+
return null;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return (
|
|
177
|
+
<ObjectCardStack
|
|
178
|
+
key={Obj.getDXN(data.companionTo).toString()}
|
|
179
|
+
objectId={Obj.getDXN(data.companionTo).toString()}
|
|
180
|
+
view={view}
|
|
181
|
+
ref={ref}
|
|
182
|
+
/>
|
|
183
|
+
);
|
|
184
|
+
},
|
|
179
185
|
}),
|
|
180
186
|
Surface.create({
|
|
181
187
|
id: JOIN_DIALOG,
|
|
@@ -198,14 +204,19 @@ export default Capability.makeModule(
|
|
|
198
204
|
Surface.create({
|
|
199
205
|
id: 'create-initial-space-form-[hue]',
|
|
200
206
|
role: 'form-input',
|
|
201
|
-
filter: (data): data is { prop: string; schema: Schema.Schema<any
|
|
207
|
+
filter: (data): data is { prop: string; schema: Schema.Schema<any>; fieldPropertyAst?: SchemaAST.AST } => {
|
|
202
208
|
const annotation = findAnnotation<boolean>((data.schema as Schema.Schema.All).ast, HueAnnotationId);
|
|
203
209
|
return !!annotation;
|
|
204
210
|
},
|
|
205
|
-
component: ({ data
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
|
|
211
|
+
component: ({ data, ...inputProps }) => {
|
|
212
|
+
const ast = data.fieldPropertyAst;
|
|
213
|
+
if (!ast) {
|
|
214
|
+
return null;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const { label, readonly, getValue, onValueChange } = inputProps as any as FormFieldComponentProps;
|
|
218
|
+
const handleChange = useCallback((nextHue: string) => onValueChange(ast, nextHue), [ast, onValueChange]);
|
|
219
|
+
const handleReset = useCallback(() => onValueChange(ast, undefined), [ast, onValueChange]);
|
|
209
220
|
return (
|
|
210
221
|
<Input.Root>
|
|
211
222
|
<Input.Label>{label}</Input.Label>
|
|
@@ -217,14 +228,19 @@ export default Capability.makeModule(
|
|
|
217
228
|
Surface.create({
|
|
218
229
|
id: 'create-initial-space-form-[icon]',
|
|
219
230
|
role: 'form-input',
|
|
220
|
-
filter: (data): data is { prop: string; schema: Schema.Schema<any
|
|
231
|
+
filter: (data): data is { prop: string; schema: Schema.Schema<any>; fieldPropertyAst?: SchemaAST.AST } => {
|
|
221
232
|
const annotation = findAnnotation<boolean>((data.schema as Schema.Schema.All).ast, IconAnnotationId);
|
|
222
233
|
return !!annotation;
|
|
223
234
|
},
|
|
224
|
-
component: ({ data
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
|
|
235
|
+
component: ({ data, ...inputProps }) => {
|
|
236
|
+
const ast = data.fieldPropertyAst;
|
|
237
|
+
if (!ast) {
|
|
238
|
+
return null;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
const { label, readonly, getValue, onValueChange } = inputProps as any as FormFieldComponentProps;
|
|
242
|
+
const handleChange = useCallback((nextIcon: string) => onValueChange(ast, nextIcon), [ast, onValueChange]);
|
|
243
|
+
const handleReset = useCallback(() => onValueChange(ast, undefined), [ast, onValueChange]);
|
|
228
244
|
return (
|
|
229
245
|
<Input.Root>
|
|
230
246
|
<Input.Label>{label}</Input.Label>
|
|
@@ -247,6 +263,7 @@ export default Capability.makeModule(
|
|
|
247
263
|
prop: string;
|
|
248
264
|
schema: Schema.Schema.Any;
|
|
249
265
|
target: Database.Database | Collection.Collection | undefined;
|
|
266
|
+
fieldPropertyAst?: SchemaAST.AST;
|
|
250
267
|
} => {
|
|
251
268
|
if (data.prop !== 'typename') {
|
|
252
269
|
return false;
|
|
@@ -255,8 +272,13 @@ export default Capability.makeModule(
|
|
|
255
272
|
const annotation = findAnnotation((data.schema as Schema.Schema.All).ast, TypeInputOptionsAnnotationId);
|
|
256
273
|
return !!annotation;
|
|
257
274
|
},
|
|
258
|
-
component: ({ data: { schema, target }, ...inputProps }) => {
|
|
259
|
-
const
|
|
275
|
+
component: ({ data: { schema, target, fieldPropertyAst }, ...inputProps }) => {
|
|
276
|
+
const ast = fieldPropertyAst;
|
|
277
|
+
if (!ast) {
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const props = { ...inputProps, type: ast } as any as FormFieldComponentProps;
|
|
260
282
|
const db = Database.isDatabase(target) ? target : target && Obj.getDatabase(target);
|
|
261
283
|
const space = useSpace(db?.spaceId);
|
|
262
284
|
const annotation = findAnnotation<TypeInputOptions>(schema.ast, TypeInputOptionsAnnotationId)!;
|
|
@@ -268,19 +290,21 @@ export default Capability.makeModule(
|
|
|
268
290
|
Surface.create({
|
|
269
291
|
id: 'object-properties',
|
|
270
292
|
role: 'object-properties',
|
|
271
|
-
filter: (data): data is { subject:
|
|
293
|
+
filter: (data): data is { subject: Obj.Unknown } => {
|
|
272
294
|
if (!Obj.isObject(data.subject)) {
|
|
273
295
|
return false;
|
|
274
296
|
}
|
|
275
297
|
|
|
276
298
|
const schema = Obj.getSchema(data.subject);
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
);
|
|
299
|
+
const path = schema ? Option.getOrElse(ViewAnnotation.get(schema), () => [] as readonly string[]) : [];
|
|
300
|
+
const viewTarget = path.length > 0 ? ViewAnnotation.tryGetTargetAlongPath(data.subject, path) : undefined;
|
|
301
|
+
return !!viewTarget;
|
|
281
302
|
},
|
|
282
303
|
component: ({ data }) => {
|
|
283
|
-
const
|
|
304
|
+
const schema = Obj.getSchema(data.subject);
|
|
305
|
+
const path = schema ? Option.getOrElse(ViewAnnotation.get(schema), () => [] as readonly string[]) : [];
|
|
306
|
+
const view = path.length > 0 ? ViewAnnotation.tryGetTargetAlongPath(data.subject, path) : undefined;
|
|
307
|
+
|
|
284
308
|
if (!view) {
|
|
285
309
|
return null;
|
|
286
310
|
}
|
|
@@ -33,7 +33,7 @@ const removeQueryCollections = async (space: Space) => {
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
Obj.
|
|
36
|
+
Obj.update(rootCollection, (rootCollection) => {
|
|
37
37
|
rootCollection.objects = objects
|
|
38
38
|
.filter((object) => Obj.getTypename(object) !== 'org.dxos.type.queryCollection')
|
|
39
39
|
.map((object) => Ref.make(object));
|
|
@@ -44,7 +44,7 @@ export default Capability.makeModule(
|
|
|
44
44
|
const updateNavigableCollections = () => {
|
|
45
45
|
const enabled =
|
|
46
46
|
manager.getEnabled().includes('org.dxos.plugin.stack') ||
|
|
47
|
-
manager.getEnabled().includes('org.dxos.plugin.
|
|
47
|
+
manager.getEnabled().includes('org.dxos.plugin.simpleLayout');
|
|
48
48
|
const current = registry.get(ephemeralAtom);
|
|
49
49
|
if (enabled !== current.navigableCollections) {
|
|
50
50
|
registry.update(ephemeralAtom, (c) => ({ ...c, navigableCollections: enabled }));
|
|
@@ -15,11 +15,11 @@ import { type Capability, Plugin } from '@dxos/app-framework';
|
|
|
15
15
|
import { AppActivationEvents, AppCapabilities } from '@dxos/app-toolkit';
|
|
16
16
|
import { CommandConfig, Common, flushAndSync, print, spaceLayer } from '@dxos/cli-util';
|
|
17
17
|
import { SpaceProperties } from '@dxos/client/echo';
|
|
18
|
+
// eslint-disable-next-line unused-imports/no-unused-imports
|
|
19
|
+
import type { Operation } from '@dxos/compute';
|
|
18
20
|
import { Database, Filter, Obj, Type } from '@dxos/echo';
|
|
19
21
|
import { Collection } from '@dxos/echo';
|
|
20
22
|
import { EntityKind, getTypeAnnotation } from '@dxos/echo/internal';
|
|
21
|
-
// eslint-disable-next-line unused-imports/no-unused-imports
|
|
22
|
-
import type { Operation } from '@dxos/operation';
|
|
23
23
|
|
|
24
24
|
import { type CreateObject } from '#types';
|
|
25
25
|
|
|
@@ -22,7 +22,7 @@ export const handler = Effect.fn(function* ({ name }: { name: Option.Option<stri
|
|
|
22
22
|
yield* Effect.tryPromise(() => space.waitUntilReady());
|
|
23
23
|
|
|
24
24
|
if (Option.isSome(name)) {
|
|
25
|
-
Obj.
|
|
25
|
+
Obj.update(space.properties, (obj) => {
|
|
26
26
|
obj.name = Option.getOrUndefined(name);
|
|
27
27
|
});
|
|
28
28
|
}
|
package/src/cli/plugin.ts
CHANGED
|
@@ -6,9 +6,9 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { ActivationEvents, Capability, Plugin } from '@dxos/app-framework';
|
|
8
8
|
import { AppPlugin } from '@dxos/app-toolkit';
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
9
10
|
import { Tag } from '@dxos/echo';
|
|
10
11
|
import { Collection } from '@dxos/echo';
|
|
11
|
-
import { Operation } from '@dxos/operation';
|
|
12
12
|
import { ClientEvents } from '@dxos/plugin-client/types';
|
|
13
13
|
import { DataTypes } from '@dxos/schema';
|
|
14
14
|
import {
|
|
@@ -6,7 +6,8 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
|
6
6
|
|
|
7
7
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
8
8
|
|
|
9
|
-
import { translations } from '
|
|
9
|
+
import { translations } from '#translations';
|
|
10
|
+
|
|
10
11
|
import { SpaceSettings } from './SpaceSettings';
|
|
11
12
|
|
|
12
13
|
const meta = {
|
|
@@ -14,8 +14,7 @@ import { Dialog } from '@dxos/react-ui';
|
|
|
14
14
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
15
15
|
|
|
16
16
|
import { type CreateObjectOption, type Metadata, CreateObjectPanel } from '#components';
|
|
17
|
-
|
|
18
|
-
import { translations } from '../../translations';
|
|
17
|
+
import { translations } from '#translations';
|
|
19
18
|
|
|
20
19
|
const mockOptions: CreateObjectOption[] = [
|
|
21
20
|
{ id: 'org.dxos.type.document', label: 'Document', icon: 'ph--file-text--regular' },
|
|
@@ -3,17 +3,16 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Option from 'effect/Option';
|
|
7
6
|
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
|
8
7
|
|
|
9
8
|
import { Capability } from '@dxos/app-framework';
|
|
10
9
|
import { useOperationInvoker, usePluginManager } from '@dxos/app-framework/ui';
|
|
11
10
|
import { AppCapabilities, getPersonalSpace, LayoutOperation } from '@dxos/app-toolkit';
|
|
12
11
|
import { useLayout } from '@dxos/app-toolkit/ui';
|
|
12
|
+
import { Operation } from '@dxos/compute';
|
|
13
13
|
import { Collection, Database, Obj, Type } from '@dxos/echo';
|
|
14
14
|
import { runAndForwardErrors } from '@dxos/effect';
|
|
15
15
|
import { invariant } from '@dxos/invariant';
|
|
16
|
-
import { Operation } from '@dxos/operation';
|
|
17
16
|
import { useClient } from '@dxos/react-client';
|
|
18
17
|
import { useSpaces } from '@dxos/react-client/echo';
|
|
19
18
|
import { Dialog, useTranslation } from '@dxos/react-ui';
|
|
@@ -67,7 +66,7 @@ export const CreateObjectDialog = ({
|
|
|
67
66
|
const viewTypenames = useMemo(() => {
|
|
68
67
|
const set = new Set<string>();
|
|
69
68
|
for (const schema of schemas ?? []) {
|
|
70
|
-
if (ViewAnnotation.
|
|
69
|
+
if (ViewAnnotation.has(schema)) {
|
|
71
70
|
set.add(Type.getTypename(schema));
|
|
72
71
|
}
|
|
73
72
|
}
|
|
@@ -11,7 +11,8 @@ import { ClientPlugin } from '@dxos/plugin-client';
|
|
|
11
11
|
import { Dialog } from '@dxos/react-ui';
|
|
12
12
|
import { withTheme } from '@dxos/react-ui/testing';
|
|
13
13
|
|
|
14
|
-
import { translations } from '
|
|
14
|
+
import { translations } from '#translations';
|
|
15
|
+
|
|
15
16
|
import { CreateSpaceDialog } from './CreateSpaceDialog';
|
|
16
17
|
|
|
17
18
|
const DefaultStory = () => (
|
|
@@ -10,7 +10,8 @@ import { ClientPlugin } from '@dxos/plugin-client';
|
|
|
10
10
|
import { corePlugins } from '@dxos/plugin-testing';
|
|
11
11
|
import { Dialog } from '@dxos/react-ui';
|
|
12
12
|
|
|
13
|
-
import { translations } from '
|
|
13
|
+
import { translations } from '#translations';
|
|
14
|
+
|
|
14
15
|
import { JoinDialog } from './JoinDialog';
|
|
15
16
|
|
|
16
17
|
const DefaultStory = () => (
|
|
@@ -23,7 +23,7 @@ export const ObjectRenamePopover = ({ object }: { object: Obj.Unknown }) => {
|
|
|
23
23
|
|
|
24
24
|
const handleDone = useCallback(() => {
|
|
25
25
|
try {
|
|
26
|
-
name && Obj.
|
|
26
|
+
name && Obj.update(object, () => Obj.setLabel(object, name));
|
|
27
27
|
} catch (err) {
|
|
28
28
|
log.error('Failed to rename object', { err });
|
|
29
29
|
}
|
|
@@ -18,7 +18,8 @@ import { Loading, withLayout } from '@dxos/react-ui/testing';
|
|
|
18
18
|
import { createObjectFactory } from '@dxos/schema/testing';
|
|
19
19
|
import { Organization, Person } from '@dxos/types';
|
|
20
20
|
|
|
21
|
-
import { translations } from '
|
|
21
|
+
import { translations } from '#translations';
|
|
22
|
+
|
|
22
23
|
import { RecordArticle } from './RecordArticle';
|
|
23
24
|
|
|
24
25
|
random.seed(0);
|
|
@@ -9,7 +9,8 @@ import { IdentityDid, PublicKey } from '@dxos/keys';
|
|
|
9
9
|
import { HaloSpaceMember, SpaceMember } from '@dxos/react-client/echo';
|
|
10
10
|
import { withTheme } from '@dxos/react-ui/testing';
|
|
11
11
|
|
|
12
|
-
import { translations } from '
|
|
12
|
+
import { translations } from '#translations';
|
|
13
|
+
|
|
13
14
|
import { FullPresence, type Member, type MemberPresenceProps, SmallPresence } from './SpacePresence';
|
|
14
15
|
|
|
15
16
|
const viewers = (n: number, currentlyAttended = true): Member[] =>
|
|
@@ -22,7 +22,7 @@ export const SpaceRenamePopover = ({ space }: { space: Space }) => {
|
|
|
22
22
|
const { invokePromise } = useOperationInvoker();
|
|
23
23
|
|
|
24
24
|
const handleDone = useCallback(() => {
|
|
25
|
-
Obj.
|
|
25
|
+
Obj.update(space.properties, (obj) => {
|
|
26
26
|
obj.name = name;
|
|
27
27
|
});
|
|
28
28
|
void invokePromise(LayoutOperation.UpdatePopover, { anchorId: '', state: false });
|
|
@@ -11,7 +11,8 @@ import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
|
11
11
|
import { useClientStory, withClientProvider } from '@dxos/react-client/testing';
|
|
12
12
|
import { Loading, withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
13
13
|
|
|
14
|
-
import { translations } from '
|
|
14
|
+
import { translations } from '#translations';
|
|
15
|
+
|
|
15
16
|
import { SpaceSettingsContainer } from './SpaceSettingsContainer';
|
|
16
17
|
|
|
17
18
|
const Story = (props: Partial<AppSurface.SpaceArticleProps>) => {
|
|
@@ -69,7 +69,7 @@ export const SpaceSettingsContainer = ({ space }: AppSurface.SpaceArticleProps)
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
if (changed['name'] || changed['icon'] || changed['hue']) {
|
|
72
|
-
Obj.
|
|
72
|
+
Obj.update(space.properties, (obj) => {
|
|
73
73
|
if (changed['name'] && newValues.name !== undefined) {
|
|
74
74
|
obj.name = newValues.name;
|
|
75
75
|
}
|
|
@@ -7,7 +7,8 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
|
7
7
|
import { withClientProvider } from '@dxos/react-client/testing';
|
|
8
8
|
import { withTheme } from '@dxos/react-ui/testing';
|
|
9
9
|
|
|
10
|
-
import { translations } from '
|
|
10
|
+
import { translations } from '#translations';
|
|
11
|
+
|
|
11
12
|
import { SyncStatusIndicator } from './SyncStatus';
|
|
12
13
|
|
|
13
14
|
const meta = {
|
|
@@ -54,7 +54,7 @@ export const ViewEditor = ({ view }: ViewEditorProps) => {
|
|
|
54
54
|
|
|
55
55
|
const queue = target && DXN.tryParse(target) ? target : undefined;
|
|
56
56
|
const query = queue ? Query.fromAst(newQuery).from({ queues: [queue] }) : Query.fromAst(newQuery);
|
|
57
|
-
Obj.
|
|
57
|
+
Obj.update(view, (view) => {
|
|
58
58
|
view.query.ast = query.ast as Mutable<typeof query.ast>;
|
|
59
59
|
});
|
|
60
60
|
const newSchema = await resolveSchemaWithRegistry(space.db.schemaRegistry, query.ast);
|
|
@@ -66,7 +66,7 @@ export const ViewEditor = ({ view }: ViewEditorProps) => {
|
|
|
66
66
|
query,
|
|
67
67
|
jsonSchema: JsonSchema.toJsonSchema(newSchema),
|
|
68
68
|
});
|
|
69
|
-
Obj.
|
|
69
|
+
Obj.update(view, (view) => {
|
|
70
70
|
view.projection = Obj.getSnapshot(newView).projection as Mutable<typeof view.projection>;
|
|
71
71
|
});
|
|
72
72
|
|
|
@@ -17,9 +17,16 @@ export const useInputSurfaceLookup = (baseData?: Record<string, any>): FormField
|
|
|
17
17
|
const pluginManager = usePluginManager();
|
|
18
18
|
return useCallback<FormFieldProvider>(
|
|
19
19
|
({ schema, prop, fieldProps }) => {
|
|
20
|
-
const data = {
|
|
20
|
+
const data = {
|
|
21
|
+
prop,
|
|
22
|
+
schema,
|
|
23
|
+
/** Property Schema AST (`fieldProps.type`). Not spread as React prop `type` — Surface peels `type` for role tokens. */
|
|
24
|
+
fieldPropertyAst: fieldProps.type,
|
|
25
|
+
...baseData,
|
|
26
|
+
};
|
|
27
|
+
const { type: _fieldPropertyAstExcluded, ...surfaceFieldProps } = fieldProps as Record<string, any>;
|
|
21
28
|
if (Surface.isAvailable(pluginManager.capabilities, { role: 'form-input', data })) {
|
|
22
|
-
return <Surface.Surface role='form-input' data={data} {...
|
|
29
|
+
return <Surface.Surface role='form-input' data={data} {...surfaceFieldProps} />;
|
|
23
30
|
}
|
|
24
31
|
},
|
|
25
32
|
[pluginManager, baseData],
|
package/src/index.ts
CHANGED
|
@@ -4,10 +4,10 @@ import * as Effect from 'effect/Effect';
|
|
|
4
4
|
import * as Option from 'effect/Option';
|
|
5
5
|
|
|
6
6
|
import { getCollectionsPath, getObjectPath, getTypePath } from '@dxos/app-toolkit';
|
|
7
|
-
import {
|
|
7
|
+
import { Operation } from '@dxos/compute';
|
|
8
|
+
import { Database, Obj } from '@dxos/echo';
|
|
8
9
|
import { Collection } from '@dxos/echo';
|
|
9
10
|
import { invariant } from '@dxos/invariant';
|
|
10
|
-
import { Operation } from '@dxos/operation';
|
|
11
11
|
import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
|
|
12
12
|
import { CollectionModel, ViewAnnotation, getTypenameFromQuery } from '@dxos/schema';
|
|
13
13
|
|
|
@@ -37,11 +37,10 @@ const handler: Operation.WithHandler<typeof SpaceOperation.AddObject> = SpaceOpe
|
|
|
37
37
|
},
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
const [
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
: undefined;
|
|
40
|
+
const [runtimeSchema] = db.schemaRegistry.query({ typename, location: ['runtime'] }).runSync();
|
|
41
|
+
const echoViewPath =
|
|
42
|
+
runtimeSchema !== undefined ? ViewAnnotation.get(runtimeSchema).pipe(Option.getOrElse(() => [])) : [];
|
|
43
|
+
const view = echoViewPath.length > 0 ? yield* ViewAnnotation.tryLoadAtPath(object, echoViewPath) : undefined;
|
|
45
44
|
const viewTargetTypename = view ? getTypenameFromQuery(view.query.ast) : undefined;
|
|
46
45
|
const subject = getSubjectPathForNewObject({
|
|
47
46
|
spaceId: db.spaceId,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { Capability, Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { Operation } from '@dxos/compute';
|
|
6
7
|
import { Obj } from '@dxos/echo';
|
|
7
|
-
import { Operation } from '@dxos/operation';
|
|
8
8
|
import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
|
|
9
9
|
|
|
10
10
|
import { SpaceEvents, SpaceCapabilities } from '../types';
|
|
@@ -16,7 +16,7 @@ const handler: Operation.WithHandler<typeof SpaceOperation.AddSchema> = SpaceOpe
|
|
|
16
16
|
const db = input.db;
|
|
17
17
|
const schemas = yield* Effect.promise(() => db.schemaRegistry.register([input.schema]));
|
|
18
18
|
const schema = schemas[0];
|
|
19
|
-
Obj.
|
|
19
|
+
Obj.update(schema.persistentSchema, (obj) => {
|
|
20
20
|
if (input.name) {
|
|
21
21
|
obj.name = input.name;
|
|
22
22
|
}
|
package/src/operations/close.ts
CHANGED
package/src/operations/create.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { Capability, Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { Operation } from '@dxos/compute';
|
|
6
7
|
import { Collection, Obj, Ref } from '@dxos/echo';
|
|
7
8
|
import { Migrations } from '@dxos/migrations';
|
|
8
|
-
import { Operation } from '@dxos/operation';
|
|
9
9
|
import { ClientCapabilities } from '@dxos/plugin-client/types';
|
|
10
10
|
import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
|
|
11
11
|
import { EdgeReplicationSetting } from '@dxos/protocols/proto/dxos/echo/metadata';
|
|
@@ -29,7 +29,7 @@ const handler: Operation.WithHandler<typeof SpaceOperation.Create> = SpaceOperat
|
|
|
29
29
|
yield* Effect.promise(() => space.waitUntilReady());
|
|
30
30
|
|
|
31
31
|
const collection = Obj.make(Collection.Collection, { objects: [] });
|
|
32
|
-
Obj.
|
|
32
|
+
Obj.update(space.properties, (obj) => {
|
|
33
33
|
obj[Collection.Collection.typename] = Ref.make(collection);
|
|
34
34
|
if (Migrations.versionProperty) {
|
|
35
35
|
obj[Migrations.versionProperty] = Migrations.targetVersion;
|
|
@@ -7,8 +7,8 @@ import * as Schema from 'effect/Schema';
|
|
|
7
7
|
import { Capability, Plugin } from '@dxos/app-framework';
|
|
8
8
|
import { SpaceSchema } from '@dxos/client/echo';
|
|
9
9
|
import { CancellableInvitationObservable, Invitation } from '@dxos/client/invitations';
|
|
10
|
+
import { Operation } from '@dxos/compute';
|
|
10
11
|
import { Collection, Database, Obj, QueryAST, Type, View } from '@dxos/echo';
|
|
11
|
-
import { Operation } from '@dxos/operation';
|
|
12
12
|
|
|
13
13
|
import { meta } from '#meta';
|
|
14
14
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
6
|
+
import { Operation } from '@dxos/compute';
|
|
6
7
|
import { Obj } from '@dxos/echo';
|
|
7
8
|
import { invariant } from '@dxos/invariant';
|
|
8
|
-
import { Operation } from '@dxos/operation';
|
|
9
9
|
import { ProjectionModel, createEchoChangeCallback, getTypenameFromQuery } from '@dxos/schema';
|
|
10
10
|
|
|
11
11
|
import { SpaceOperation } from './definitions';
|
|
@@ -4,9 +4,9 @@ import * as Effect from 'effect/Effect';
|
|
|
4
4
|
|
|
5
5
|
import { Capability } from '@dxos/app-framework';
|
|
6
6
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
7
|
+
import { Operation } from '@dxos/compute';
|
|
7
8
|
import { Obj } from '@dxos/echo';
|
|
8
9
|
import { invariant } from '@dxos/invariant';
|
|
9
|
-
import { Operation } from '@dxos/operation';
|
|
10
10
|
|
|
11
11
|
import { cloneObject } from '../util';
|
|
12
12
|
import { SpaceOperation } from './definitions';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { Capability } from '@dxos/app-framework';
|
|
6
|
-
import { Operation } from '@dxos/
|
|
6
|
+
import { Operation } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
import { SpaceOperation } from './definitions';
|
|
9
9
|
import { SpaceOperationConfig } from './helpers';
|
package/src/operations/index.ts
CHANGED
package/src/operations/join.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
6
|
-
import { Operation } from '@dxos/
|
|
6
|
+
import { Operation } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
import { JOIN_DIALOG } from '../constants';
|
|
9
9
|
import { type JoinDialogProps } from '../containers/JoinDialog';
|
|
@@ -4,8 +4,8 @@ import * as Effect from 'effect/Effect';
|
|
|
4
4
|
|
|
5
5
|
import { Capabilities } from '@dxos/app-framework';
|
|
6
6
|
import { SpaceState } from '@dxos/client/echo';
|
|
7
|
+
import { Operation } from '@dxos/compute';
|
|
7
8
|
import { Migrations } from '@dxos/migrations';
|
|
8
|
-
import { Operation } from '@dxos/operation';
|
|
9
9
|
import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
|
|
10
10
|
|
|
11
11
|
import { SpaceCapabilities } from '../types';
|