@dxos/plugin-space 0.8.3 → 0.8.4-main.1068cf700f
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/CollectionArticle-XXLUNK3F.mjs +127 -0
- package/dist/lib/browser/CollectionArticle-XXLUNK3F.mjs.map +7 -0
- package/dist/lib/browser/ObjectCardStack-CXNBCSMR.mjs +148 -0
- package/dist/lib/browser/ObjectCardStack-CXNBCSMR.mjs.map +7 -0
- package/dist/lib/browser/ObjectDetails-HXV4IQEM.mjs +143 -0
- package/dist/lib/browser/ObjectDetails-HXV4IQEM.mjs.map +7 -0
- package/dist/lib/browser/RecordArticle-36LDKFWF.mjs +108 -0
- package/dist/lib/browser/RecordArticle-36LDKFWF.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-GLV46QSI.mjs +530 -0
- package/dist/lib/browser/app-graph-builder-GLV46QSI.mjs.map +7 -0
- package/dist/lib/browser/app-graph-serializer-VOLRDNVE.mjs +85 -0
- package/dist/lib/browser/app-graph-serializer-VOLRDNVE.mjs.map +7 -0
- package/dist/lib/browser/{chunk-4ZKSFDXM.mjs → chunk-7D63MVRS.mjs} +110 -41
- package/dist/lib/browser/chunk-7D63MVRS.mjs.map +7 -0
- package/dist/lib/browser/chunk-A7ZCVQGZ.mjs +118 -0
- package/dist/lib/browser/chunk-A7ZCVQGZ.mjs.map +7 -0
- package/dist/lib/browser/chunk-ASV6DYFH.mjs +19 -0
- package/dist/lib/browser/chunk-ASV6DYFH.mjs.map +7 -0
- package/dist/lib/browser/chunk-CMLRMQNM.mjs +1889 -0
- package/dist/lib/browser/chunk-CMLRMQNM.mjs.map +7 -0
- package/dist/lib/browser/chunk-HSMQFM57.mjs +16 -0
- package/dist/lib/browser/chunk-HSMQFM57.mjs.map +7 -0
- package/dist/lib/browser/chunk-KGLWYGIF.mjs +715 -0
- package/dist/lib/browser/chunk-KGLWYGIF.mjs.map +7 -0
- package/dist/lib/browser/chunk-NF3ZFAB4.mjs +13 -0
- package/dist/lib/browser/chunk-NF3ZFAB4.mjs.map +7 -0
- package/dist/lib/browser/chunk-WAOJLA2S.mjs +772 -0
- package/dist/lib/browser/chunk-WAOJLA2S.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +851 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/identity-created-VCFYLSBB.mjs +23 -0
- package/dist/lib/browser/identity-created-VCFYLSBB.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +251 -183
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-PJJ3PCM7.mjs +830 -0
- package/dist/lib/browser/operation-resolver-PJJ3PCM7.mjs.map +7 -0
- package/dist/lib/browser/react-root-ITWAPZIY.mjs +30 -0
- package/dist/lib/browser/react-root-ITWAPZIY.mjs.map +7 -0
- package/dist/lib/browser/react-surface-6GD6K4I4.mjs +383 -0
- package/dist/lib/browser/react-surface-6GD6K4I4.mjs.map +7 -0
- package/dist/lib/browser/repair-DKU4TUD2.mjs +50 -0
- package/dist/lib/browser/repair-DKU4TUD2.mjs.map +7 -0
- package/dist/lib/browser/settings-M2DMD2ZA.mjs +34 -0
- package/dist/lib/browser/settings-M2DMD2ZA.mjs.map +7 -0
- package/dist/lib/browser/spaces-ready-XWJUJ43N.mjs +243 -0
- package/dist/lib/browser/spaces-ready-XWJUJ43N.mjs.map +7 -0
- package/dist/lib/browser/state-V637BLIM.mjs +58 -0
- package/dist/lib/browser/state-V637BLIM.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +18 -10
- package/dist/lib/node-esm/CollectionArticle-KFFKKP37.mjs +128 -0
- package/dist/lib/node-esm/CollectionArticle-KFFKKP37.mjs.map +7 -0
- package/dist/lib/node-esm/ObjectCardStack-EHXPNRQW.mjs +149 -0
- package/dist/lib/node-esm/ObjectCardStack-EHXPNRQW.mjs.map +7 -0
- package/dist/lib/node-esm/ObjectDetails-N73UI4ZL.mjs +144 -0
- package/dist/lib/node-esm/ObjectDetails-N73UI4ZL.mjs.map +7 -0
- package/dist/lib/node-esm/RecordArticle-CMEXNNOZ.mjs +109 -0
- package/dist/lib/node-esm/RecordArticle-CMEXNNOZ.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-KCEHEKVS.mjs +531 -0
- package/dist/lib/node-esm/app-graph-builder-KCEHEKVS.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-serializer-7C4MV5NB.mjs +86 -0
- package/dist/lib/node-esm/app-graph-serializer-7C4MV5NB.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-2NM62ORP.mjs +1890 -0
- package/dist/lib/node-esm/chunk-2NM62ORP.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-JBQKU4K5.mjs → chunk-5N3YIAXD.mjs} +110 -41
- package/dist/lib/node-esm/chunk-5N3YIAXD.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-A5A7M37T.mjs +119 -0
- package/dist/lib/node-esm/chunk-A5A7M37T.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CVXULIYC.mjs +20 -0
- package/dist/lib/node-esm/chunk-CVXULIYC.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-FB5YNROS.mjs +773 -0
- package/dist/lib/node-esm/chunk-FB5YNROS.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-NYSDQPNM.mjs +716 -0
- package/dist/lib/node-esm/chunk-NYSDQPNM.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-PG7DNOEX.mjs +15 -0
- package/dist/lib/node-esm/chunk-PG7DNOEX.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-SL4BJSUG.mjs +18 -0
- package/dist/lib/node-esm/chunk-SL4BJSUG.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +852 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/identity-created-2SJABVJD.mjs +25 -0
- package/dist/lib/node-esm/identity-created-2SJABVJD.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +251 -183
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-2K7N4KYC.mjs +831 -0
- package/dist/lib/node-esm/operation-resolver-2K7N4KYC.mjs.map +7 -0
- package/dist/lib/node-esm/react-root-GIQAKDQ2.mjs +31 -0
- package/dist/lib/node-esm/react-root-GIQAKDQ2.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-KWP2DNFG.mjs +384 -0
- package/dist/lib/node-esm/react-surface-KWP2DNFG.mjs.map +7 -0
- package/dist/lib/node-esm/repair-C2H6JQCL.mjs +51 -0
- package/dist/lib/node-esm/repair-C2H6JQCL.mjs.map +7 -0
- package/dist/lib/node-esm/settings-VCPCNBOY.mjs +35 -0
- package/dist/lib/node-esm/settings-VCPCNBOY.mjs.map +7 -0
- package/dist/lib/node-esm/spaces-ready-5JOGEWON.mjs +244 -0
- package/dist/lib/node-esm/spaces-ready-5JOGEWON.mjs.map +7 -0
- package/dist/lib/node-esm/state-5MCEPWN3.mjs +59 -0
- package/dist/lib/node-esm/state-5MCEPWN3.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +18 -10
- package/dist/types/src/SpacePlugin.d.ts +3 -15
- package/dist/types/src/SpacePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +7 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-serializer/app-graph-serializer.d.ts +5 -0
- package/dist/types/src/capabilities/app-graph-serializer/app-graph-serializer.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-serializer/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-serializer/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/identity-created/identity-created.d.ts +5 -0
- package/dist/types/src/capabilities/identity-created/identity-created.d.ts.map +1 -0
- package/dist/types/src/capabilities/identity-created/index.d.ts +3 -0
- package/dist/types/src/capabilities/identity-created/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +10 -21
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +6 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +9 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
- package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +8 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/repair/index.d.ts +3 -0
- package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
- package/dist/types/src/capabilities/repair/repair.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +7 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +10 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/spaces-ready/index.d.ts +3 -0
- package/dist/types/src/capabilities/spaces-ready/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/spaces-ready/spaces-ready.d.ts +5 -0
- package/dist/types/src/capabilities/spaces-ready/spaces-ready.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/index.d.ts +13 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +17 -0
- package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
- package/dist/types/src/cli/commands/database/add.d.ts +17 -0
- package/dist/types/src/cli/commands/database/add.d.ts.map +1 -0
- package/dist/types/src/cli/commands/database/index.d.ts +3 -0
- package/dist/types/src/cli/commands/database/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/database/query/index.d.ts +2 -0
- package/dist/types/src/cli/commands/database/query/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/database/query/query.d.ts +13 -0
- package/dist/types/src/cli/commands/database/query/query.d.ts.map +1 -0
- package/dist/types/src/cli/commands/database/query/query.test.d.ts +2 -0
- package/dist/types/src/cli/commands/database/query/query.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/database/remove.d.ts +9 -0
- package/dist/types/src/cli/commands/database/remove.d.ts.map +1 -0
- package/dist/types/src/cli/commands/database/stats.d.ts +6 -0
- package/dist/types/src/cli/commands/database/stats.d.ts.map +1 -0
- package/dist/types/src/cli/commands/database/util.d.ts +14 -0
- package/dist/types/src/cli/commands/database/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/index.d.ts +4 -0
- package/dist/types/src/cli/commands/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/queue/index.d.ts +7 -0
- package/dist/types/src/cli/commands/queue/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/queue/query.d.ts +8 -0
- package/dist/types/src/cli/commands/queue/query.d.ts.map +1 -0
- package/dist/types/src/cli/commands/queue/util.d.ts +6 -0
- package/dist/types/src/cli/commands/queue/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/close/close.d.ts +12 -0
- package/dist/types/src/cli/commands/space/close/close.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/close/index.d.ts +2 -0
- package/dist/types/src/cli/commands/space/close/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/create/create.d.ts +12 -0
- package/dist/types/src/cli/commands/space/create/create.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/create/create.test.d.ts +2 -0
- package/dist/types/src/cli/commands/space/create/create.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/create/index.d.ts +2 -0
- package/dist/types/src/cli/commands/space/create/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/index.d.ts +31 -0
- package/dist/types/src/cli/commands/space/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/info/index.d.ts +2 -0
- package/dist/types/src/cli/commands/space/info/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/info/info.d.ts +13 -0
- package/dist/types/src/cli/commands/space/info/info.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/info/info.test.d.ts +2 -0
- package/dist/types/src/cli/commands/space/info/info.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/join/index.d.ts +2 -0
- package/dist/types/src/cli/commands/space/join/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/join/join.d.ts +14 -0
- package/dist/types/src/cli/commands/space/join/join.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/join/util.d.ts +17 -0
- package/dist/types/src/cli/commands/space/join/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/list/index.d.ts +2 -0
- package/dist/types/src/cli/commands/space/list/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/list/list.d.ts +7 -0
- package/dist/types/src/cli/commands/space/list/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/list/list.test.d.ts +2 -0
- package/dist/types/src/cli/commands/space/list/list.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/members/index.d.ts +2 -0
- package/dist/types/src/cli/commands/space/members/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/members/members.d.ts +13 -0
- package/dist/types/src/cli/commands/space/members/members.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/members/members.test.d.ts +2 -0
- package/dist/types/src/cli/commands/space/members/members.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/members/util.d.ts +9 -0
- package/dist/types/src/cli/commands/space/members/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/open/index.d.ts +2 -0
- package/dist/types/src/cli/commands/space/open/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/open/open.d.ts +12 -0
- package/dist/types/src/cli/commands/space/open/open.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/schema/index.d.ts +8 -0
- package/dist/types/src/cli/commands/space/schema/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/schema/list/index.d.ts +2 -0
- package/dist/types/src/cli/commands/space/schema/list/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/schema/list/list.d.ts +15 -0
- package/dist/types/src/cli/commands/space/schema/list/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/schema/list/list.test.d.ts +2 -0
- package/dist/types/src/cli/commands/space/schema/list/list.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/schema/list/util.d.ts +15 -0
- package/dist/types/src/cli/commands/space/schema/list/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/share/index.d.ts +2 -0
- package/dist/types/src/cli/commands/space/share/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/share/share.d.ts +19 -0
- package/dist/types/src/cli/commands/space/share/share.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/sync/index.d.ts +2 -0
- package/dist/types/src/cli/commands/space/sync/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/sync/sync.d.ts +6 -0
- package/dist/types/src/cli/commands/space/sync/sync.d.ts.map +1 -0
- package/dist/types/src/cli/commands/space/sync/sync.test.d.ts +2 -0
- package/dist/types/src/cli/commands/space/sync/sync.test.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +4 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/components/AwaitingObject.d.ts.map +1 -1
- package/dist/types/src/components/CollectionArticle.d.ts +9 -0
- package/dist/types/src/components/CollectionArticle.d.ts.map +1 -0
- package/dist/types/src/components/CollectionSection.d.ts +3 -4
- package/dist/types/src/components/CollectionSection.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts +6 -5
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.stories.d.ts +1602 -8
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts +23 -10
- package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateSpaceDialog.d.ts +1 -1
- package/dist/types/src/components/CreateDialog/CreateSpaceDialog.d.ts.map +1 -1
- package/dist/types/src/components/{JoinDialog.d.ts → JoinDialog/JoinDialog.d.ts} +1 -1
- package/dist/types/src/components/JoinDialog/JoinDialog.d.ts.map +1 -0
- package/dist/types/src/components/JoinDialog/index.d.ts +2 -0
- package/dist/types/src/components/JoinDialog/index.d.ts.map +1 -0
- package/dist/types/src/components/{MembersContainer.d.ts → MembersContainer/MembersContainer.d.ts} +3 -2
- package/dist/types/src/components/MembersContainer/MembersContainer.d.ts.map +1 -0
- package/dist/types/src/components/MembersContainer/MembersContainer.stories.d.ts +1600 -0
- package/dist/types/src/components/MembersContainer/MembersContainer.stories.d.ts.map +1 -0
- package/dist/types/src/components/MembersContainer/index.d.ts +2 -0
- package/dist/types/src/components/MembersContainer/index.d.ts.map +1 -0
- package/dist/types/src/components/MenuFooter.d.ts +1 -1
- package/dist/types/src/components/MenuFooter.d.ts.map +1 -1
- package/dist/types/src/components/ObjectCardStack/ObjectCardStack.d.ts +8 -0
- package/dist/types/src/components/ObjectCardStack/ObjectCardStack.d.ts.map +1 -0
- package/dist/types/src/components/ObjectCardStack/ObjectForm.d.ts +9 -0
- package/dist/types/src/components/ObjectCardStack/ObjectForm.d.ts.map +1 -0
- package/dist/types/src/components/ObjectCardStack/index.d.ts +3 -0
- package/dist/types/src/components/ObjectCardStack/index.d.ts.map +1 -0
- package/dist/types/src/components/{ObjectSettings → ObjectDetails}/BaseObjectSettings.d.ts +3 -3
- package/dist/types/src/components/ObjectDetails/BaseObjectSettings.d.ts.map +1 -0
- package/dist/types/src/components/ObjectDetails/BaseObjectSettings.stories.d.ts +1433 -0
- package/dist/types/src/components/ObjectDetails/BaseObjectSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/ObjectDetails/ForeignKeys.d.ts +8 -0
- package/dist/types/src/components/ObjectDetails/ForeignKeys.d.ts.map +1 -0
- package/dist/types/src/components/ObjectDetails/ObjectDetails.d.ts +9 -0
- package/dist/types/src/components/ObjectDetails/ObjectDetails.d.ts.map +1 -0
- package/dist/types/src/components/ObjectDetails/index.d.ts +3 -0
- package/dist/types/src/components/ObjectDetails/index.d.ts.map +1 -0
- package/dist/types/src/components/ObjectRenamePopover/ObjectRenamePopover.d.ts +7 -0
- package/dist/types/src/components/ObjectRenamePopover/ObjectRenamePopover.d.ts.map +1 -0
- package/dist/types/src/components/ObjectRenamePopover/index.d.ts +2 -0
- package/dist/types/src/components/ObjectRenamePopover/index.d.ts.map +1 -0
- package/dist/types/src/components/RecordArticle.d.ts +5 -0
- package/dist/types/src/components/RecordArticle.d.ts.map +1 -0
- package/dist/types/src/components/RecordArticle.stories.d.ts +1600 -0
- package/dist/types/src/components/RecordArticle.stories.d.ts.map +1 -0
- package/dist/types/src/components/SchemaContainer.d.ts +2 -2
- package/dist/types/src/components/SchemaContainer.d.ts.map +1 -1
- package/dist/types/src/components/SpacePluginSettings.d.ts +4 -2
- package/dist/types/src/components/SpacePluginSettings.d.ts.map +1 -1
- package/dist/types/src/components/{SpacePresence.d.ts → SpacePresence/SpacePresence.d.ts} +7 -6
- package/dist/types/src/components/SpacePresence/SpacePresence.d.ts.map +1 -0
- package/dist/types/src/components/SpacePresence/SpacePresence.stories.d.ts +1430 -0
- package/dist/types/src/components/SpacePresence/SpacePresence.stories.d.ts.map +1 -0
- package/dist/types/src/components/SpacePresence/index.d.ts +2 -0
- package/dist/types/src/components/SpacePresence/index.d.ts.map +1 -0
- package/dist/types/src/components/SpaceRenamePopover/SpaceRenamePopover.d.ts +7 -0
- package/dist/types/src/components/SpaceRenamePopover/SpaceRenamePopover.d.ts.map +1 -0
- package/dist/types/src/components/SpaceRenamePopover/index.d.ts +2 -0
- package/dist/types/src/components/SpaceRenamePopover/index.d.ts.map +1 -0
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.d.ts +4 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.d.ts.map +1 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts +1433 -4
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/SyncStatus.d.ts +1 -1
- package/dist/types/src/components/SyncStatus/SyncStatus.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/SyncStatus.stories.d.ts +1431 -5
- package/dist/types/src/components/SyncStatus/SyncStatus.stories.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/status.d.ts +5 -5
- package/dist/types/src/components/ViewEditor.d.ts +7 -0
- package/dist/types/src/components/ViewEditor.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +16 -6
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/constants.d.ts +6 -0
- package/dist/types/src/constants.d.ts.map +1 -0
- package/dist/types/src/helpers/index.d.ts +2 -0
- package/dist/types/src/helpers/index.d.ts.map +1 -0
- package/dist/types/src/helpers/query.d.ts +7 -0
- package/dist/types/src/helpers/query.d.ts.map +1 -0
- package/dist/types/src/helpers/query.test.d.ts +2 -0
- package/dist/types/src/helpers/query.test.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useActiveSpace.d.ts +2 -2
- package/dist/types/src/hooks/useActiveSpace.d.ts.map +1 -1
- package/dist/types/src/hooks/useInputSurfaceLookup.d.ts +2 -8
- package/dist/types/src/hooks/useInputSurfaceLookup.d.ts.map +1 -1
- package/dist/types/src/hooks/usePath.d.ts +3 -3
- package/dist/types/src/hooks/usePath.d.ts.map +1 -1
- package/dist/types/src/hooks/useTypeOptions.d.ts +10 -0
- package/dist/types/src/hooks/useTypeOptions.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1415 -410
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +71 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +9 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/form.d.ts +22 -0
- package/dist/types/src/types/form.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +646 -338
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +50 -31
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +87 -64
- package/src/SpacePlugin.ts +197 -174
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +621 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/app-graph-serializer/app-graph-serializer.ts +83 -0
- package/src/capabilities/app-graph-serializer/index.ts +7 -0
- package/src/capabilities/identity-created/identity-created.ts +29 -0
- package/src/capabilities/identity-created/index.ts +7 -0
- package/src/capabilities/index.ts +10 -15
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +762 -0
- package/src/capabilities/react-root/index.ts +7 -0
- package/src/capabilities/react-root/react-root.tsx +25 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +377 -0
- package/src/capabilities/repair/index.ts +7 -0
- package/src/capabilities/repair/repair.ts +67 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +33 -0
- package/src/capabilities/spaces-ready/index.ts +7 -0
- package/src/capabilities/spaces-ready/spaces-ready.ts +290 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +64 -0
- package/src/cli/commands/database/add.ts +115 -0
- package/src/cli/commands/database/index.ts +16 -0
- package/src/cli/commands/database/query/index.ts +5 -0
- package/src/cli/commands/database/query/query.test.ts +55 -0
- package/src/cli/commands/database/query/query.ts +44 -0
- package/src/cli/commands/database/remove.ts +51 -0
- package/src/cli/commands/database/stats.ts +44 -0
- package/src/cli/commands/database/util.ts +32 -0
- package/src/cli/commands/index.ts +7 -0
- package/src/cli/commands/queue/index.ts +12 -0
- package/src/cli/commands/queue/query.ts +45 -0
- package/src/cli/commands/queue/util.ts +19 -0
- package/src/cli/commands/space/close/close.ts +40 -0
- package/src/cli/commands/space/close/index.ts +5 -0
- package/src/cli/commands/space/create/create.test.ts +67 -0
- package/src/cli/commands/space/create/create.ts +61 -0
- package/src/cli/commands/space/create/index.ts +5 -0
- package/src/cli/commands/space/index.ts +21 -0
- package/src/cli/commands/space/info/index.ts +5 -0
- package/src/cli/commands/space/info/info.test.ts +47 -0
- package/src/cli/commands/space/info/info.ts +37 -0
- package/src/cli/commands/space/join/index.ts +5 -0
- package/src/cli/commands/space/join/join.ts +122 -0
- package/src/cli/commands/space/join/util.ts +82 -0
- package/src/cli/commands/space/list/index.ts +5 -0
- package/src/cli/commands/space/list/list.test.ts +36 -0
- package/src/cli/commands/space/list/list.ts +30 -0
- package/src/cli/commands/space/members/index.ts +5 -0
- package/src/cli/commands/space/members/members.test.ts +46 -0
- package/src/cli/commands/space/members/members.ts +40 -0
- package/src/cli/commands/space/members/util.ts +29 -0
- package/src/cli/commands/space/open/index.ts +5 -0
- package/src/cli/commands/space/open/open.ts +39 -0
- package/src/cli/commands/space/schema/index.ts +12 -0
- package/src/cli/commands/space/schema/list/index.ts +5 -0
- package/src/cli/commands/space/schema/list/list.test.ts +42 -0
- package/src/cli/commands/space/schema/list/list.ts +64 -0
- package/src/cli/commands/space/schema/list/util.ts +39 -0
- package/src/cli/commands/space/share/index.ts +5 -0
- package/src/cli/commands/space/share/share.ts +112 -0
- package/src/cli/commands/space/sync/index.ts +5 -0
- package/src/cli/commands/space/sync/sync.test.ts +12 -0
- package/src/cli/commands/space/sync/sync.ts +33 -0
- package/src/cli/index.ts +5 -0
- package/src/cli/plugin.ts +88 -0
- package/src/components/AwaitingObject.tsx +27 -27
- package/src/components/CollectionArticle.tsx +156 -0
- package/src/components/CollectionSection.tsx +8 -6
- package/src/components/CreateDialog/CreateObjectDialog.stories.tsx +40 -33
- package/src/components/CreateDialog/CreateObjectDialog.tsx +108 -81
- package/src/components/CreateDialog/CreateObjectPanel.tsx +163 -91
- package/src/components/CreateDialog/CreateSpaceDialog.tsx +35 -29
- package/src/components/{JoinDialog.tsx → JoinDialog/JoinDialog.tsx} +29 -39
- package/src/components/JoinDialog/index.ts +5 -0
- package/src/components/MembersContainer/MembersContainer.stories.tsx +56 -0
- package/src/components/{MembersContainer.tsx → MembersContainer/MembersContainer.tsx} +95 -98
- package/src/components/MembersContainer/index.ts +5 -0
- package/src/components/MenuFooter.tsx +5 -6
- package/src/components/ObjectCardStack/ObjectCardStack.tsx +67 -0
- package/src/components/ObjectCardStack/ObjectForm.tsx +97 -0
- package/src/components/ObjectCardStack/index.ts +7 -0
- package/src/components/ObjectDetails/BaseObjectSettings.stories.tsx +63 -0
- package/src/components/ObjectDetails/BaseObjectSettings.tsx +122 -0
- package/src/components/{ObjectSettings → ObjectDetails}/ForeignKeys.tsx +8 -8
- package/src/components/ObjectDetails/ObjectDetails.tsx +33 -0
- package/src/components/ObjectDetails/index.ts +7 -0
- package/src/components/ObjectRenamePopover/ObjectRenamePopover.tsx +52 -0
- package/src/components/ObjectRenamePopover/index.ts +5 -0
- package/src/components/RecordArticle.stories.tsx +116 -0
- package/src/components/RecordArticle.tsx +124 -0
- package/src/components/SchemaContainer.tsx +31 -31
- package/src/components/SpacePluginSettings.tsx +45 -33
- package/src/components/{SpacePresence.stories.tsx → SpacePresence/SpacePresence.stories.tsx} +25 -24
- package/src/components/{SpacePresence.tsx → SpacePresence/SpacePresence.tsx} +28 -24
- package/src/components/SpacePresence/index.ts +5 -0
- package/src/components/{PopoverRenameSpace.tsx → SpaceRenamePopover/SpaceRenamePopover.tsx} +16 -16
- package/src/components/SpaceRenamePopover/index.ts +5 -0
- package/src/components/SpaceSettings/SpaceSettingsContainer.stories.tsx +20 -12
- package/src/components/SpaceSettings/SpaceSettingsContainer.tsx +99 -81
- package/src/components/SyncStatus/InlineSyncStatus.tsx +8 -8
- package/src/components/SyncStatus/SyncStatus.stories.tsx +12 -19
- package/src/components/SyncStatus/SyncStatus.tsx +110 -13
- package/src/components/SyncStatus/save-tracker.ts +3 -3
- package/src/components/SyncStatus/status.ts +4 -4
- package/src/components/ViewEditor.tsx +101 -0
- package/src/components/index.ts +11 -6
- package/src/constants.ts +11 -0
- package/src/helpers/index.ts +5 -0
- package/src/helpers/query.test.ts +24 -0
- package/src/helpers/query.ts +153 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useActiveSpace.ts +8 -4
- package/src/hooks/useInputSurfaceLookup.tsx +9 -13
- package/src/hooks/usePath.ts +5 -5
- package/src/hooks/useTypeOptions.ts +25 -0
- package/src/index.ts +2 -2
- package/src/meta.ts +8 -5
- package/src/translations.ts +112 -36
- package/src/types/capabilities.ts +73 -0
- package/src/types/events.ts +16 -0
- package/src/types/form.ts +69 -0
- package/src/types/index.ts +3 -0
- package/src/types/types.ts +546 -206
- package/src/util.tsx +451 -242
- package/dist/lib/browser/app-graph-builder-M2RH72VL.mjs +0 -363
- package/dist/lib/browser/app-graph-builder-M2RH72VL.mjs.map +0 -7
- package/dist/lib/browser/app-graph-serializer-F7ISRRBV.mjs +0 -80
- package/dist/lib/browser/app-graph-serializer-F7ISRRBV.mjs.map +0 -7
- package/dist/lib/browser/chunk-4ZKSFDXM.mjs.map +0 -7
- package/dist/lib/browser/chunk-7Y4M7GXO.mjs +0 -94
- package/dist/lib/browser/chunk-7Y4M7GXO.mjs.map +0 -7
- package/dist/lib/browser/chunk-BXNL6SDI.mjs +0 -19
- package/dist/lib/browser/chunk-BXNL6SDI.mjs.map +0 -7
- package/dist/lib/browser/chunk-NFUKCRGE.mjs +0 -1916
- package/dist/lib/browser/chunk-NFUKCRGE.mjs.map +0 -7
- package/dist/lib/browser/chunk-PTKYMZWO.mjs +0 -13
- package/dist/lib/browser/chunk-PTKYMZWO.mjs.map +0 -7
- package/dist/lib/browser/chunk-TW7O2EPP.mjs +0 -284
- package/dist/lib/browser/chunk-TW7O2EPP.mjs.map +0 -7
- package/dist/lib/browser/chunk-V24VASAJ.mjs +0 -546
- package/dist/lib/browser/chunk-V24VASAJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-YMCZR6EZ.mjs +0 -18
- package/dist/lib/browser/chunk-YMCZR6EZ.mjs.map +0 -7
- package/dist/lib/browser/identity-created-PI7TKANR.mjs +0 -23
- package/dist/lib/browser/identity-created-PI7TKANR.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-RWU6ZE4H.mjs +0 -610
- package/dist/lib/browser/intent-resolver-RWU6ZE4H.mjs.map +0 -7
- package/dist/lib/browser/react-root-QIKHSNT2.mjs +0 -29
- package/dist/lib/browser/react-root-QIKHSNT2.mjs.map +0 -7
- package/dist/lib/browser/react-surface-W56UD53I.mjs +0 -353
- package/dist/lib/browser/react-surface-W56UD53I.mjs.map +0 -7
- package/dist/lib/browser/schema-defs-WREJNMIC.mjs +0 -26
- package/dist/lib/browser/schema-defs-WREJNMIC.mjs.map +0 -7
- package/dist/lib/browser/schema-tools-ILTVSSS3.mjs +0 -124
- package/dist/lib/browser/schema-tools-ILTVSSS3.mjs.map +0 -7
- package/dist/lib/browser/settings-K54STC5A.mjs +0 -24
- package/dist/lib/browser/settings-K54STC5A.mjs.map +0 -7
- package/dist/lib/browser/spaces-ready-3PDRDHPC.mjs +0 -199
- package/dist/lib/browser/spaces-ready-3PDRDHPC.mjs.map +0 -7
- package/dist/lib/browser/state-HRZ4VRXU.mjs +0 -47
- package/dist/lib/browser/state-HRZ4VRXU.mjs.map +0 -7
- package/dist/lib/node/app-graph-builder-6LK5HLLE.cjs +0 -364
- package/dist/lib/node/app-graph-builder-6LK5HLLE.cjs.map +0 -7
- package/dist/lib/node/app-graph-serializer-HKHBNHA3.cjs +0 -89
- package/dist/lib/node/app-graph-serializer-HKHBNHA3.cjs.map +0 -7
- package/dist/lib/node/chunk-3X4EA4XL.cjs +0 -37
- package/dist/lib/node/chunk-3X4EA4XL.cjs.map +0 -7
- package/dist/lib/node/chunk-5WLAXYE3.cjs +0 -125
- package/dist/lib/node/chunk-5WLAXYE3.cjs.map +0 -7
- package/dist/lib/node/chunk-6P2DB4QQ.cjs +0 -36
- package/dist/lib/node/chunk-6P2DB4QQ.cjs.map +0 -7
- package/dist/lib/node/chunk-DOC5XEZ4.cjs +0 -184
- package/dist/lib/node/chunk-DOC5XEZ4.cjs.map +0 -7
- package/dist/lib/node/chunk-NCHF433F.cjs +0 -1921
- package/dist/lib/node/chunk-NCHF433F.cjs.map +0 -7
- package/dist/lib/node/chunk-NL5Y4EDX.cjs +0 -38
- package/dist/lib/node/chunk-NL5Y4EDX.cjs.map +0 -7
- package/dist/lib/node/chunk-ULJZPATP.cjs +0 -312
- package/dist/lib/node/chunk-ULJZPATP.cjs.map +0 -7
- package/dist/lib/node/chunk-XHWVT7LW.cjs +0 -572
- package/dist/lib/node/chunk-XHWVT7LW.cjs.map +0 -7
- package/dist/lib/node/identity-created-FF4WZ2WY.cjs +0 -42
- package/dist/lib/node/identity-created-FF4WZ2WY.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -278
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-AV4CMM3Z.cjs +0 -609
- package/dist/lib/node/intent-resolver-AV4CMM3Z.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/react-root-RQUU3A45.cjs +0 -51
- package/dist/lib/node/react-root-RQUU3A45.cjs.map +0 -7
- package/dist/lib/node/react-surface-AZFJLE72.cjs +0 -351
- package/dist/lib/node/react-surface-AZFJLE72.cjs.map +0 -7
- package/dist/lib/node/schema-defs-OB2X2HBH.cjs +0 -42
- package/dist/lib/node/schema-defs-OB2X2HBH.cjs.map +0 -7
- package/dist/lib/node/schema-tools-IYREN4IH.cjs +0 -147
- package/dist/lib/node/schema-tools-IYREN4IH.cjs.map +0 -7
- package/dist/lib/node/settings-P2EQ7VKQ.cjs +0 -38
- package/dist/lib/node/settings-P2EQ7VKQ.cjs.map +0 -7
- package/dist/lib/node/spaces-ready-DXPOHYV7.cjs +0 -210
- package/dist/lib/node/spaces-ready-DXPOHYV7.cjs.map +0 -7
- package/dist/lib/node/state-M35DK75Z.cjs +0 -61
- package/dist/lib/node/state-M35DK75Z.cjs.map +0 -7
- package/dist/lib/node/types/index.cjs +0 -48
- package/dist/lib/node/types/index.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-BCHVZ4OM.mjs +0 -364
- package/dist/lib/node-esm/app-graph-builder-BCHVZ4OM.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-serializer-TXRGGNP2.mjs +0 -81
- package/dist/lib/node-esm/app-graph-serializer-TXRGGNP2.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3CP67AYY.mjs +0 -19
- package/dist/lib/node-esm/chunk-3CP67AYY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BSLREHIX.mjs +0 -20
- package/dist/lib/node-esm/chunk-BSLREHIX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-D4QMPPS7.mjs +0 -285
- package/dist/lib/node-esm/chunk-D4QMPPS7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GH2FGJXH.mjs +0 -96
- package/dist/lib/node-esm/chunk-GH2FGJXH.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HO7AIKQS.mjs +0 -547
- package/dist/lib/node-esm/chunk-HO7AIKQS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JBQKU4K5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-LA6AVVH6.mjs +0 -1917
- package/dist/lib/node-esm/chunk-LA6AVVH6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MSWEFAPD.mjs +0 -15
- package/dist/lib/node-esm/chunk-MSWEFAPD.mjs.map +0 -7
- package/dist/lib/node-esm/identity-created-35CTAQWI.mjs +0 -25
- package/dist/lib/node-esm/identity-created-35CTAQWI.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-JO6L2VXC.mjs +0 -611
- package/dist/lib/node-esm/intent-resolver-JO6L2VXC.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-YFGL3B4J.mjs +0 -30
- package/dist/lib/node-esm/react-root-YFGL3B4J.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-CVAPDLEZ.mjs +0 -354
- package/dist/lib/node-esm/react-surface-CVAPDLEZ.mjs.map +0 -7
- package/dist/lib/node-esm/schema-defs-4MEJETVX.mjs +0 -27
- package/dist/lib/node-esm/schema-defs-4MEJETVX.mjs.map +0 -7
- package/dist/lib/node-esm/schema-tools-SRLCRZ3B.mjs +0 -126
- package/dist/lib/node-esm/schema-tools-SRLCRZ3B.mjs.map +0 -7
- package/dist/lib/node-esm/settings-TD76LTQS.mjs +0 -25
- package/dist/lib/node-esm/settings-TD76LTQS.mjs.map +0 -7
- package/dist/lib/node-esm/spaces-ready-FJMGPAVV.mjs +0 -200
- package/dist/lib/node-esm/spaces-ready-FJMGPAVV.mjs.map +0 -7
- package/dist/lib/node-esm/state-XQNDCN37.mjs +0 -48
- package/dist/lib/node-esm/state-XQNDCN37.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-serializer.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-serializer.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -22
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/identity-created.d.ts +0 -4
- package/dist/types/src/capabilities/identity-created.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -9
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root.d.ts +0 -7
- package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -7
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-defs.d.ts +0 -4
- package/dist/types/src/capabilities/schema-defs.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-tool.test.d.ts +0 -2
- package/dist/types/src/capabilities/schema-tool.test.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-tools.d.ts +0 -13
- package/dist/types/src/capabilities/schema-tools.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/dist/types/src/capabilities/spaces-ready.d.ts +0 -4
- package/dist/types/src/capabilities/spaces-ready.d.ts.map +0 -1
- package/dist/types/src/capabilities/state.d.ts +0 -5
- package/dist/types/src/capabilities/state.d.ts.map +0 -1
- package/dist/types/src/components/CollectionMain.d.ts +0 -6
- package/dist/types/src/components/CollectionMain.d.ts.map +0 -1
- package/dist/types/src/components/JoinDialog.d.ts.map +0 -1
- package/dist/types/src/components/MembersContainer.d.ts.map +0 -1
- package/dist/types/src/components/MembersContainer.stories.d.ts +0 -8
- package/dist/types/src/components/MembersContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettings/AdvancedObjectSettings.d.ts +0 -7
- package/dist/types/src/components/ObjectSettings/AdvancedObjectSettings.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettings/BaseObjectSettings.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettings/ForeignKeys.d.ts +0 -8
- package/dist/types/src/components/ObjectSettings/ForeignKeys.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettings/ObjectSettingsContainer.d.ts +0 -8
- package/dist/types/src/components/ObjectSettings/ObjectSettingsContainer.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettings/index.d.ts +0 -2
- package/dist/types/src/components/ObjectSettings/index.d.ts.map +0 -1
- package/dist/types/src/components/PersistenceStatus.d.ts +0 -6
- package/dist/types/src/components/PersistenceStatus.d.ts.map +0 -1
- package/dist/types/src/components/PopoverRenameObject.d.ts +0 -7
- package/dist/types/src/components/PopoverRenameObject.d.ts.map +0 -1
- package/dist/types/src/components/PopoverRenameSpace.d.ts +0 -7
- package/dist/types/src/components/PopoverRenameSpace.d.ts.map +0 -1
- package/dist/types/src/components/SpacePresence.d.ts.map +0 -1
- package/dist/types/src/components/SpacePresence.stories.d.ts +0 -9
- package/dist/types/src/components/SpacePresence.stories.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -7
- package/dist/types/src/events.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -540
- package/src/capabilities/app-graph-serializer.ts +0 -76
- package/src/capabilities/capabilities.ts +0 -24
- package/src/capabilities/identity-created.ts +0 -27
- package/src/capabilities/intent-resolver.ts +0 -585
- package/src/capabilities/react-root.tsx +0 -20
- package/src/capabilities/react-surface.tsx +0 -349
- package/src/capabilities/schema-defs.ts +0 -30
- package/src/capabilities/schema-tool.test.ts +0 -44
- package/src/capabilities/schema-tools.ts +0 -125
- package/src/capabilities/settings.ts +0 -21
- package/src/capabilities/spaces-ready.ts +0 -231
- package/src/capabilities/state.ts +0 -45
- package/src/components/CollectionMain.tsx +0 -30
- package/src/components/MembersContainer.stories.tsx +0 -30
- package/src/components/ObjectSettings/AdvancedObjectSettings.tsx +0 -80
- package/src/components/ObjectSettings/BaseObjectSettings.tsx +0 -47
- package/src/components/ObjectSettings/ObjectSettingsContainer.tsx +0 -36
- package/src/components/ObjectSettings/index.ts +0 -5
- package/src/components/PersistenceStatus.tsx +0 -84
- package/src/components/PopoverRenameObject.tsx +0 -62
- package/src/events.ts +0 -14
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Option } from 'effect';
|
|
6
|
-
|
|
7
|
-
import { contributes, createIntent, Capabilities, LayoutAction, type PluginContext } from '@dxos/app-framework';
|
|
8
|
-
import { SubscriptionList } from '@dxos/async';
|
|
9
|
-
import { Filter, Obj, Type } from '@dxos/echo';
|
|
10
|
-
import { scheduledEffect } from '@dxos/echo-signals/core';
|
|
11
|
-
import { log } from '@dxos/log';
|
|
12
|
-
import { AttentionCapabilities } from '@dxos/plugin-attention';
|
|
13
|
-
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
14
|
-
import { DeckCapabilities } from '@dxos/plugin-deck';
|
|
15
|
-
import { EdgeReplicationSetting } from '@dxos/protocols/proto/dxos/echo/metadata';
|
|
16
|
-
import { PublicKey } from '@dxos/react-client';
|
|
17
|
-
import { FQ_ID_LENGTH, parseFullyQualifiedId, SpaceState } from '@dxos/react-client/echo';
|
|
18
|
-
import { ComplexMap, reduceGroupBy } from '@dxos/util';
|
|
19
|
-
|
|
20
|
-
import { SpaceCapabilities } from './capabilities';
|
|
21
|
-
import { SpaceAction } from '../types';
|
|
22
|
-
import { COMPOSER_SPACE_LOCK, SHARED } from '../util';
|
|
23
|
-
|
|
24
|
-
const ACTIVE_NODE_BROADCAST_INTERVAL = 30_000;
|
|
25
|
-
const WAIT_FOR_OBJECT_TIMEOUT = 5_000;
|
|
26
|
-
|
|
27
|
-
export default async (context: PluginContext) => {
|
|
28
|
-
const subscriptions = new SubscriptionList();
|
|
29
|
-
const spaceSubscriptions = new SubscriptionList();
|
|
30
|
-
|
|
31
|
-
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
32
|
-
const { graph } = context.getCapability(Capabilities.AppGraph);
|
|
33
|
-
const layout = context.getCapability(Capabilities.Layout);
|
|
34
|
-
const deck = context.getCapabilities(DeckCapabilities.DeckState)[0];
|
|
35
|
-
const attention = context.getCapability(AttentionCapabilities.Attention);
|
|
36
|
-
const state = context.getCapability(SpaceCapabilities.MutableState);
|
|
37
|
-
const client = context.getCapability(ClientCapabilities.Client);
|
|
38
|
-
|
|
39
|
-
const defaultSpace = client.spaces.default;
|
|
40
|
-
await defaultSpace.waitUntilReady();
|
|
41
|
-
|
|
42
|
-
if (deck?.activeDeck === 'default') {
|
|
43
|
-
await dispatch(createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: defaultSpace.id }));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Initialize space sharing lock in default space.
|
|
47
|
-
if (typeof defaultSpace.properties[COMPOSER_SPACE_LOCK] !== 'boolean') {
|
|
48
|
-
defaultSpace.properties[COMPOSER_SPACE_LOCK] = true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const {
|
|
52
|
-
objects: [spacesOrder],
|
|
53
|
-
} = await defaultSpace.db.query(Filter.type(Type.Expando, { key: SHARED })).run();
|
|
54
|
-
if (!spacesOrder) {
|
|
55
|
-
// TODO(wittjosiah): Cannot be a Folder because Spaces are not TypedObjects so can't be saved in the database.
|
|
56
|
-
// Instead, we store order as an array of space ids.
|
|
57
|
-
defaultSpace.db.add(Obj.make(Type.Expando, { key: SHARED, order: [] }));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Await missing objects.
|
|
61
|
-
subscriptions.add(
|
|
62
|
-
scheduledEffect(
|
|
63
|
-
() => ({ active: layout.active }),
|
|
64
|
-
({ active }) => {
|
|
65
|
-
if (active.length !== 1) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const node = graph.getNode(active[0]).pipe(Option.getOrNull);
|
|
70
|
-
if (!node && active[0].length === FQ_ID_LENGTH) {
|
|
71
|
-
const timeout = setTimeout(async () => {
|
|
72
|
-
const node = graph.getNode(active[0]).pipe(Option.getOrNull);
|
|
73
|
-
if (!node) {
|
|
74
|
-
await dispatch(createIntent(SpaceAction.WaitForObject, { id: active[0] }));
|
|
75
|
-
}
|
|
76
|
-
}, WAIT_FOR_OBJECT_TIMEOUT);
|
|
77
|
-
|
|
78
|
-
return () => clearTimeout(timeout);
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
),
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
// Cache space names.
|
|
85
|
-
subscriptions.add(
|
|
86
|
-
client.spaces.subscribe(async (spaces) => {
|
|
87
|
-
// TODO(wittjosiah): Remove. This is a hack to be able to migrate the default space properties.
|
|
88
|
-
if (defaultSpace.state.get() === SpaceState.SPACE_REQUIRES_MIGRATION) {
|
|
89
|
-
await defaultSpace.internal.migrate();
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
spaces
|
|
93
|
-
.filter((space) => space.state.get() === SpaceState.SPACE_READY)
|
|
94
|
-
.forEach((space) => {
|
|
95
|
-
subscriptions.add(
|
|
96
|
-
scheduledEffect(
|
|
97
|
-
() => ({ name: space.properties.name }),
|
|
98
|
-
({ name }) => (state.spaceNames[space.id] = name),
|
|
99
|
-
),
|
|
100
|
-
);
|
|
101
|
-
});
|
|
102
|
-
}).unsubscribe,
|
|
103
|
-
);
|
|
104
|
-
|
|
105
|
-
// Broadcast active node to other peers in the space.
|
|
106
|
-
subscriptions.add(
|
|
107
|
-
scheduledEffect(
|
|
108
|
-
() => ({ current: attention.current, active: layout.active, inactive: layout.inactive }),
|
|
109
|
-
({ current, active, inactive }) => {
|
|
110
|
-
const send = () => {
|
|
111
|
-
const spaces = client.spaces.get();
|
|
112
|
-
const identity = client.halo.identity.get();
|
|
113
|
-
if (identity) {
|
|
114
|
-
// Group parts by space for efficient messaging.
|
|
115
|
-
const idsBySpace = reduceGroupBy(active, (id) => {
|
|
116
|
-
try {
|
|
117
|
-
const [spaceId] = parseFullyQualifiedId(id);
|
|
118
|
-
return spaceId;
|
|
119
|
-
} catch {
|
|
120
|
-
return null;
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
const removedBySpace = reduceGroupBy(inactive, (id) => {
|
|
125
|
-
try {
|
|
126
|
-
const [spaceId] = parseFullyQualifiedId(id);
|
|
127
|
-
return spaceId;
|
|
128
|
-
} catch {
|
|
129
|
-
return null;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
// NOTE: Ensure all spaces are included so that we send the correct `removed` object arrays.
|
|
134
|
-
for (const space of spaces) {
|
|
135
|
-
if (!idsBySpace.has(space.id)) {
|
|
136
|
-
idsBySpace.set(space.id, []);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
for (const [spaceId, added] of idsBySpace) {
|
|
141
|
-
const removed = removedBySpace.get(spaceId) ?? [];
|
|
142
|
-
const space = spaces.find((space) => space.id === spaceId);
|
|
143
|
-
if (!space) {
|
|
144
|
-
continue;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
void space
|
|
148
|
-
.postMessage('viewing', {
|
|
149
|
-
identityKey: identity.identityKey.toHex(),
|
|
150
|
-
attended: current,
|
|
151
|
-
added,
|
|
152
|
-
removed,
|
|
153
|
-
})
|
|
154
|
-
// TODO(burdon): This seems defensive; why would this fail? Backoff interval.
|
|
155
|
-
.catch((err) => {
|
|
156
|
-
log.warn('Failed to broadcast active node for presence.', { err: err.message });
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
send();
|
|
163
|
-
// Send at interval to allow peers to expire entries if they become disconnected.
|
|
164
|
-
const interval = setInterval(() => send(), ACTIVE_NODE_BROADCAST_INTERVAL);
|
|
165
|
-
return () => clearInterval(interval);
|
|
166
|
-
},
|
|
167
|
-
),
|
|
168
|
-
);
|
|
169
|
-
|
|
170
|
-
// Listen for active nodes from other peers in the space.
|
|
171
|
-
subscriptions.add(
|
|
172
|
-
client.spaces.subscribe((spaces) => {
|
|
173
|
-
spaceSubscriptions.clear();
|
|
174
|
-
spaces.forEach((space) => {
|
|
175
|
-
spaceSubscriptions.add(
|
|
176
|
-
space.listen('viewing', (message) => {
|
|
177
|
-
const { added, removed, attended } = message.payload;
|
|
178
|
-
|
|
179
|
-
const identityKey = PublicKey.safeFrom(message.payload.identityKey);
|
|
180
|
-
const currentIdentity = client.halo.identity.get();
|
|
181
|
-
if (
|
|
182
|
-
identityKey &&
|
|
183
|
-
!currentIdentity?.identityKey.equals(identityKey) &&
|
|
184
|
-
Array.isArray(added) &&
|
|
185
|
-
Array.isArray(removed)
|
|
186
|
-
) {
|
|
187
|
-
added.forEach((id) => {
|
|
188
|
-
if (typeof id === 'string') {
|
|
189
|
-
if (!(id in state.viewersByObject)) {
|
|
190
|
-
state.viewersByObject[id] = new ComplexMap(PublicKey.hash);
|
|
191
|
-
}
|
|
192
|
-
state.viewersByObject[id]!.set(identityKey, {
|
|
193
|
-
lastSeen: Date.now(),
|
|
194
|
-
currentlyAttended: new Set(attended).has(id),
|
|
195
|
-
});
|
|
196
|
-
if (!state.viewersByIdentity.has(identityKey)) {
|
|
197
|
-
state.viewersByIdentity.set(identityKey, new Set());
|
|
198
|
-
}
|
|
199
|
-
state.viewersByIdentity.get(identityKey)!.add(id);
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
removed.forEach((id) => {
|
|
204
|
-
if (typeof id === 'string') {
|
|
205
|
-
state.viewersByObject[id]?.delete(identityKey);
|
|
206
|
-
state.viewersByIdentity.get(identityKey)?.delete(id);
|
|
207
|
-
// It’s okay for these to be empty sets/maps, reduces churn.
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
}),
|
|
212
|
-
);
|
|
213
|
-
});
|
|
214
|
-
}).unsubscribe,
|
|
215
|
-
);
|
|
216
|
-
|
|
217
|
-
// Enable edge replication for all spaces.
|
|
218
|
-
try {
|
|
219
|
-
await Promise.all(
|
|
220
|
-
client.spaces.get().map((space) => space.internal.setEdgeReplicationPreference(EdgeReplicationSetting.ENABLED)),
|
|
221
|
-
);
|
|
222
|
-
state.enabledEdgeReplication = true;
|
|
223
|
-
} catch (err) {
|
|
224
|
-
log.catch(err);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
return contributes(Capabilities.Null, null, () => {
|
|
228
|
-
spaceSubscriptions.clear();
|
|
229
|
-
subscriptions.clear();
|
|
230
|
-
});
|
|
231
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { effect } from '@preact/signals-core';
|
|
6
|
-
|
|
7
|
-
import { Capabilities, contributes, type PluginContext } from '@dxos/app-framework';
|
|
8
|
-
import { PublicKey } from '@dxos/keys';
|
|
9
|
-
import { LocalStorageStore } from '@dxos/local-storage';
|
|
10
|
-
import { ComplexMap } from '@dxos/util';
|
|
11
|
-
|
|
12
|
-
import { SpaceCapabilities } from './capabilities';
|
|
13
|
-
import { SPACE_PLUGIN } from '../meta';
|
|
14
|
-
import { type PluginState } from '../types';
|
|
15
|
-
|
|
16
|
-
export default (context: PluginContext) => {
|
|
17
|
-
const state = new LocalStorageStore<PluginState>(SPACE_PLUGIN, {
|
|
18
|
-
awaiting: undefined,
|
|
19
|
-
spaceNames: {},
|
|
20
|
-
viewersByObject: {},
|
|
21
|
-
// TODO(wittjosiah): Stop using (Complex)Map inside reactive object.
|
|
22
|
-
viewersByIdentity: new ComplexMap(PublicKey.hash),
|
|
23
|
-
sdkMigrationRunning: {},
|
|
24
|
-
navigableCollections: false,
|
|
25
|
-
enabledEdgeReplication: false,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
state
|
|
29
|
-
.prop({ key: 'spaceNames', type: LocalStorageStore.json<Record<string, string>>() })
|
|
30
|
-
.prop({ key: 'enabledEdgeReplication', type: LocalStorageStore.bool() });
|
|
31
|
-
|
|
32
|
-
const manager = context.getCapability(Capabilities.PluginManager);
|
|
33
|
-
const unsubscribe = effect(() => {
|
|
34
|
-
// TODO(wittjosiah): Find a way to make this capability-based.
|
|
35
|
-
const enabled = manager.enabled.includes('dxos.org/plugin/stack');
|
|
36
|
-
if (enabled !== state.values.navigableCollections) {
|
|
37
|
-
state.values.navigableCollections = enabled;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
return contributes(SpaceCapabilities.State, state.values, () => {
|
|
42
|
-
unsubscribe();
|
|
43
|
-
state.close();
|
|
44
|
-
});
|
|
45
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { useTranslation } from '@dxos/react-ui';
|
|
8
|
-
import { baseSurface, descriptionMessage, mx } from '@dxos/react-ui-theme';
|
|
9
|
-
import { type DataType } from '@dxos/schema';
|
|
10
|
-
|
|
11
|
-
import { SPACE_PLUGIN } from '../meta';
|
|
12
|
-
|
|
13
|
-
export const CollectionMain = ({ collection }: { collection: DataType.Collection }) => {
|
|
14
|
-
const { t } = useTranslation(SPACE_PLUGIN);
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<div
|
|
18
|
-
role='none'
|
|
19
|
-
className={mx(baseSurface, 'min-bs-screen is-full flex items-center justify-center p-8')}
|
|
20
|
-
data-testid='composer.firstRunMessage'
|
|
21
|
-
>
|
|
22
|
-
<p
|
|
23
|
-
role='alert'
|
|
24
|
-
className={mx(descriptionMessage, 'rounded-md p-8 font-normal text-lg max-is-[24rem] break-words')}
|
|
25
|
-
>
|
|
26
|
-
{collection.name ?? t('unnamed collection label')}
|
|
27
|
-
</p>
|
|
28
|
-
</div>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import '@dxos-theme';
|
|
6
|
-
|
|
7
|
-
import { type StoryObj, type Meta } from '@storybook/react';
|
|
8
|
-
|
|
9
|
-
import { withClientProvider } from '@dxos/react-client/testing';
|
|
10
|
-
import { osTranslations } from '@dxos/shell/react';
|
|
11
|
-
import { withTheme, withLayout } from '@dxos/storybook-utils';
|
|
12
|
-
|
|
13
|
-
import { MembersContainer } from './MembersContainer';
|
|
14
|
-
import translations from '../translations';
|
|
15
|
-
|
|
16
|
-
const meta: Meta = {
|
|
17
|
-
title: 'plugins/plugin-space/MembersContainer',
|
|
18
|
-
component: MembersContainer,
|
|
19
|
-
decorators: [withClientProvider({ createIdentity: true, createSpace: true }), withTheme, withLayout()],
|
|
20
|
-
parameters: {
|
|
21
|
-
layout: 'fullscreen',
|
|
22
|
-
translations: [...translations, osTranslations],
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export default meta;
|
|
27
|
-
|
|
28
|
-
type Story = StoryObj<typeof MembersContainer>;
|
|
29
|
-
|
|
30
|
-
export const Default: Story = {};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2024 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { useCallback, useState } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Obj } from '@dxos/echo';
|
|
8
|
-
import { ForeignKey } from '@dxos/echo-schema';
|
|
9
|
-
import { IconButton, useTranslation } from '@dxos/react-ui';
|
|
10
|
-
import { Form } from '@dxos/react-ui-form';
|
|
11
|
-
|
|
12
|
-
import { ForeignKeys } from './ForeignKeys';
|
|
13
|
-
import { SPACE_PLUGIN } from '../../meta';
|
|
14
|
-
|
|
15
|
-
const initialValues = {
|
|
16
|
-
source: '',
|
|
17
|
-
id: '',
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export type AdvancedObjectSettingsProps = {
|
|
21
|
-
object: Obj.Any;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export const AdvancedObjectSettings = ({ object }: AdvancedObjectSettingsProps) => {
|
|
25
|
-
const { t } = useTranslation(SPACE_PLUGIN);
|
|
26
|
-
const [adding, setAdding] = useState(false);
|
|
27
|
-
const { keys } = Obj.getMeta(object);
|
|
28
|
-
|
|
29
|
-
const handleNew = useCallback(() => setAdding(true), []);
|
|
30
|
-
const handleCancel = useCallback(() => setAdding(false), []);
|
|
31
|
-
const handleSave = useCallback(
|
|
32
|
-
(key: ForeignKey) => {
|
|
33
|
-
const index = keys.findIndex(({ source, id }) => source === key.source && id === key.id);
|
|
34
|
-
if (index === -1) {
|
|
35
|
-
keys.push(key);
|
|
36
|
-
}
|
|
37
|
-
setAdding(false);
|
|
38
|
-
},
|
|
39
|
-
[keys],
|
|
40
|
-
);
|
|
41
|
-
const handleDelete = useCallback(
|
|
42
|
-
(key: ForeignKey) => {
|
|
43
|
-
const index = keys.findIndex(({ source, id }) => source === key.source && id === key.id);
|
|
44
|
-
if (index !== -1) {
|
|
45
|
-
keys.splice(index, 1);
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
[keys],
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
// TODO(wittjosiah): This should be wrapped in an "Advanced" accordion.
|
|
52
|
-
return (
|
|
53
|
-
<>
|
|
54
|
-
<div className='p-2 flex flex-col gap-4'>
|
|
55
|
-
<h2>{t('advanced settings label')}</h2>
|
|
56
|
-
<div className='flex items-center'>
|
|
57
|
-
<h3 className='text-sm font-semibold'>{t('foreign keys')}</h3>
|
|
58
|
-
<div className='grow' />
|
|
59
|
-
<IconButton
|
|
60
|
-
classNames={adding && 'invisible'}
|
|
61
|
-
icon='ph--plus--regular'
|
|
62
|
-
label={t('add key')}
|
|
63
|
-
onClick={handleNew}
|
|
64
|
-
/>
|
|
65
|
-
</div>
|
|
66
|
-
{!adding && <ForeignKeys keys={keys} onDelete={handleDelete} />}
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
{adding && (
|
|
70
|
-
<Form
|
|
71
|
-
outerSpacing={false}
|
|
72
|
-
schema={ForeignKey}
|
|
73
|
-
values={initialValues}
|
|
74
|
-
onSave={handleSave}
|
|
75
|
-
onCancel={handleCancel}
|
|
76
|
-
/>
|
|
77
|
-
)}
|
|
78
|
-
</>
|
|
79
|
-
);
|
|
80
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2024 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { type PropsWithChildren, useRef } from 'react';
|
|
6
|
-
|
|
7
|
-
import { type Obj } from '@dxos/echo';
|
|
8
|
-
import { Input, type ThemedClassName, useTranslation } from '@dxos/react-ui';
|
|
9
|
-
|
|
10
|
-
import { meta } from '../../meta';
|
|
11
|
-
|
|
12
|
-
export type BaseObjectSettingsProps = ThemedClassName<
|
|
13
|
-
PropsWithChildren<{
|
|
14
|
-
object: Obj.Any;
|
|
15
|
-
}>
|
|
16
|
-
>;
|
|
17
|
-
|
|
18
|
-
export const BaseObjectSettings = ({ classNames, children, object }: BaseObjectSettingsProps) => {
|
|
19
|
-
const { t } = useTranslation(meta.id);
|
|
20
|
-
const inputRef = useRef<HTMLInputElement>(null);
|
|
21
|
-
|
|
22
|
-
// TODO(wittjosiah): This should be a form based on the schema of the object.
|
|
23
|
-
// The form should only include fields with a specific settings annotation.
|
|
24
|
-
// Perhaps also including the field of the title annotation as well.
|
|
25
|
-
return (
|
|
26
|
-
<>
|
|
27
|
-
<Input.Root>
|
|
28
|
-
<Input.Label>{t('name label')}</Input.Label>
|
|
29
|
-
<Input.TextInput
|
|
30
|
-
ref={inputRef}
|
|
31
|
-
placeholder={t('name placeholder')}
|
|
32
|
-
// TODO(burdon): Use annotation to get the name field.
|
|
33
|
-
value={(object as any).name ?? ''}
|
|
34
|
-
onChange={(event) => {
|
|
35
|
-
(object as any).name = event.target.value;
|
|
36
|
-
}}
|
|
37
|
-
onKeyDown={(event) => {
|
|
38
|
-
if (event.key === 'Enter') {
|
|
39
|
-
inputRef.current?.blur();
|
|
40
|
-
}
|
|
41
|
-
}}
|
|
42
|
-
/>
|
|
43
|
-
</Input.Root>
|
|
44
|
-
{children}
|
|
45
|
-
</>
|
|
46
|
-
);
|
|
47
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { useMemo } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Surface } from '@dxos/app-framework';
|
|
8
|
-
import { type Obj } from '@dxos/echo';
|
|
9
|
-
import { Clipboard } from '@dxos/react-ui';
|
|
10
|
-
import { StackItem } from '@dxos/react-ui-stack';
|
|
11
|
-
|
|
12
|
-
import { BaseObjectSettings } from './BaseObjectSettings';
|
|
13
|
-
|
|
14
|
-
export type ObjectSettingsContainerProps = {
|
|
15
|
-
object: Obj.Any;
|
|
16
|
-
role: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const ObjectSettingsContainer = ({ object, role }: ObjectSettingsContainerProps) => {
|
|
20
|
-
const data = useMemo(() => ({ subject: object }), [object]);
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<Clipboard.Provider>
|
|
24
|
-
<StackItem.Content toolbar={false}>
|
|
25
|
-
<div role='none' className='overflow-y-auto pli-cardSpacingInline plb-cardSpacingBlock'>
|
|
26
|
-
<BaseObjectSettings object={object}>
|
|
27
|
-
<Surface role='base-object-settings' data={data} />
|
|
28
|
-
</BaseObjectSettings>
|
|
29
|
-
<Surface role='object-settings' data={data} />
|
|
30
|
-
{/* TODO(wittjosiah): Remove? */}
|
|
31
|
-
{/* <AdvancedObjectSettings object={object} /> */}
|
|
32
|
-
</div>
|
|
33
|
-
</StackItem.Content>
|
|
34
|
-
</Clipboard.Provider>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2024 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { ArrowsCounterClockwise, CheckCircle, Warning } from '@phosphor-icons/react';
|
|
6
|
-
import React, { useEffect, useState } from 'react';
|
|
7
|
-
|
|
8
|
-
import { debounce } from '@dxos/async';
|
|
9
|
-
import { type EchoDatabase } from '@dxos/react-client/echo';
|
|
10
|
-
import { Tooltip, useTranslation } from '@dxos/react-ui';
|
|
11
|
-
import { getSize, mx, staticPlaceholderText, warningText } from '@dxos/react-ui-theme';
|
|
12
|
-
|
|
13
|
-
import { SPACE_PLUGIN } from '../meta';
|
|
14
|
-
|
|
15
|
-
enum Status {
|
|
16
|
-
PERSISTED_LOCALLY = 0,
|
|
17
|
-
PENDING = 1,
|
|
18
|
-
ERROR = 2,
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// TODO(zan): This now has no usages. Remove it?
|
|
22
|
-
export const PersistenceStatus = ({ db }: { db: EchoDatabase }) => {
|
|
23
|
-
const { t } = useTranslation(SPACE_PLUGIN);
|
|
24
|
-
const [displayMessage, setDisplayMessage] = useState(false);
|
|
25
|
-
const [status, naturalSetStatus] = useState<Status>(Status.PERSISTED_LOCALLY);
|
|
26
|
-
const [prevStatus, setPrevStatus] = useState<Status>(Status.PERSISTED_LOCALLY);
|
|
27
|
-
const _setStatus = debounce(naturalSetStatus, 500);
|
|
28
|
-
|
|
29
|
-
// TODO(dmaretskyi): Fix this when we have save status for automerge.
|
|
30
|
-
// useEffect(() => {
|
|
31
|
-
// return db.pendingBatch.on(({ duration, error }) => {
|
|
32
|
-
// if (error) {
|
|
33
|
-
// setStatus(Status.ERROR);
|
|
34
|
-
// } else if (duration === undefined) {
|
|
35
|
-
// setStatus(Status.PENDING);
|
|
36
|
-
// } else {
|
|
37
|
-
// setStatus(Status.PERSISTED_LOCALLY);
|
|
38
|
-
// }
|
|
39
|
-
// });
|
|
40
|
-
// }, [db]);
|
|
41
|
-
|
|
42
|
-
useEffect(() => {
|
|
43
|
-
// If this is changed outside the effect it's batched with setStatus and the following condition will never be true.
|
|
44
|
-
setPrevStatus(status);
|
|
45
|
-
|
|
46
|
-
if (prevStatus !== status && status === Status.PERSISTED_LOCALLY) {
|
|
47
|
-
setDisplayMessage(true);
|
|
48
|
-
const timeout = setTimeout(() => setDisplayMessage(false), 5000);
|
|
49
|
-
return () => clearTimeout(timeout);
|
|
50
|
-
}
|
|
51
|
-
}, [status]); // `prevStatus` omitted from dependency array to prevent timeout from being reset.
|
|
52
|
-
|
|
53
|
-
switch (status) {
|
|
54
|
-
case Status.ERROR:
|
|
55
|
-
return (
|
|
56
|
-
<div className='flex items-center'>
|
|
57
|
-
<Warning className={mx(getSize(4), 'me-1')} />
|
|
58
|
-
<span className={mx('text-sm', warningText)}>{t('persistence error label')}</span>
|
|
59
|
-
</div>
|
|
60
|
-
);
|
|
61
|
-
case Status.PENDING:
|
|
62
|
-
return (
|
|
63
|
-
<div className='flex items-center'>
|
|
64
|
-
<ArrowsCounterClockwise className={mx(getSize(4), 'me-1')} />
|
|
65
|
-
<span className={mx('text-sm', staticPlaceholderText)}>{t('persistence pending label')}</span>
|
|
66
|
-
</div>
|
|
67
|
-
);
|
|
68
|
-
case Status.PERSISTED_LOCALLY:
|
|
69
|
-
default:
|
|
70
|
-
return (
|
|
71
|
-
<Tooltip.Trigger
|
|
72
|
-
delayDuration={400}
|
|
73
|
-
role='status'
|
|
74
|
-
content={t('persisted locally message')}
|
|
75
|
-
className='flex items-center'
|
|
76
|
-
>
|
|
77
|
-
<CheckCircle className={mx(getSize(4), 'me-1')} />
|
|
78
|
-
{displayMessage && (
|
|
79
|
-
<span className={mx('text-sm', staticPlaceholderText)}>{t('persisted locally label')}</span>
|
|
80
|
-
)}
|
|
81
|
-
</Tooltip.Trigger>
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { useCallback, useRef, useState } from 'react';
|
|
6
|
-
|
|
7
|
-
import { createIntent, LayoutAction, useIntentDispatcher } from '@dxos/app-framework';
|
|
8
|
-
import { type Live } from '@dxos/live-object';
|
|
9
|
-
import { log } from '@dxos/log';
|
|
10
|
-
import { Button, Input, useTranslation } from '@dxos/react-ui';
|
|
11
|
-
|
|
12
|
-
import { SPACE_PLUGIN } from '../meta';
|
|
13
|
-
|
|
14
|
-
export const POPOVER_RENAME_OBJECT = `${SPACE_PLUGIN}/PopoverRenameObject`;
|
|
15
|
-
|
|
16
|
-
export const PopoverRenameObject = ({ object: obj }: { object: Live<any> }) => {
|
|
17
|
-
const { t } = useTranslation(SPACE_PLUGIN);
|
|
18
|
-
const doneButton = useRef<HTMLButtonElement>(null);
|
|
19
|
-
// TODO(wittjosiah): Use schema here.
|
|
20
|
-
const object = obj as any;
|
|
21
|
-
// TODO(burdon): Field should not be hardcoded field.
|
|
22
|
-
const [name, setName] = useState(object.name || object.title || '');
|
|
23
|
-
const { dispatchPromise: dispatch } = useIntentDispatcher();
|
|
24
|
-
|
|
25
|
-
const handleDone = useCallback(() => {
|
|
26
|
-
try {
|
|
27
|
-
object.name = name;
|
|
28
|
-
} catch {
|
|
29
|
-
try {
|
|
30
|
-
object.title = name;
|
|
31
|
-
} catch (err) {
|
|
32
|
-
log.error('Failed to rename object', { err });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
void dispatch(
|
|
36
|
-
createIntent(LayoutAction.UpdatePopover, {
|
|
37
|
-
part: 'popover',
|
|
38
|
-
options: { variant: 'react', anchorId: '', state: false },
|
|
39
|
-
}),
|
|
40
|
-
);
|
|
41
|
-
}, [object, name]);
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<div role='none' className='p-2 flex gap-2'>
|
|
45
|
-
<div role='none' className='flex-1'>
|
|
46
|
-
<Input.Root>
|
|
47
|
-
<Input.Label srOnly>{t('object name label')}</Input.Label>
|
|
48
|
-
<Input.TextInput
|
|
49
|
-
placeholder={t('object placeholder')}
|
|
50
|
-
value={name}
|
|
51
|
-
data-testid='spacePlugin.renameObject.input'
|
|
52
|
-
onChange={({ target: { value } }) => setName(value)}
|
|
53
|
-
onKeyDown={({ key }) => key === 'Enter' && doneButton.current?.click()}
|
|
54
|
-
/>
|
|
55
|
-
</Input.Root>
|
|
56
|
-
</div>
|
|
57
|
-
<Button ref={doneButton} classNames='self-stretch' onClick={handleDone}>
|
|
58
|
-
{t('done label', { ns: 'os' })}
|
|
59
|
-
</Button>
|
|
60
|
-
</div>
|
|
61
|
-
);
|
|
62
|
-
};
|
package/src/events.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { defineEvent, Events } from '@dxos/app-framework';
|
|
6
|
-
|
|
7
|
-
import { SPACE_PLUGIN } from './meta';
|
|
8
|
-
|
|
9
|
-
export namespace SpaceEvents {
|
|
10
|
-
export const StateReady = Events.createStateEvent(`${SPACE_PLUGIN}/event/state-ready`);
|
|
11
|
-
export const SetupSettingsPanel = defineEvent(`${SPACE_PLUGIN}/event/setup-settings-panel`);
|
|
12
|
-
export const DefaultSpaceReady = defineEvent(`${SPACE_PLUGIN}/event/default-space-ready`);
|
|
13
|
-
export const SpaceCreated = defineEvent(`${SPACE_PLUGIN}/event/space-created`);
|
|
14
|
-
}
|