@dxos/plugin-space 0.8.4-main.ae835ea → 0.8.4-main.bc674ce
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-OQMUVFVV.mjs +125 -0
- package/dist/lib/browser/CollectionArticle-OQMUVFVV.mjs.map +7 -0
- package/dist/lib/browser/ObjectCardStack-TWHN6C2Y.mjs +148 -0
- package/dist/lib/browser/ObjectCardStack-TWHN6C2Y.mjs.map +7 -0
- package/dist/lib/browser/ObjectDetails-GEDIISKK.mjs +142 -0
- package/dist/lib/browser/ObjectDetails-GEDIISKK.mjs.map +7 -0
- package/dist/lib/browser/RecordArticle-W57QE7QV.mjs +107 -0
- package/dist/lib/browser/RecordArticle-W57QE7QV.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-SJHTZXZF.mjs +523 -0
- package/dist/lib/browser/app-graph-builder-SJHTZXZF.mjs.map +7 -0
- package/dist/lib/browser/app-graph-serializer-7AT7QMSK.mjs +84 -0
- package/dist/lib/browser/app-graph-serializer-7AT7QMSK.mjs.map +7 -0
- package/dist/lib/browser/chunk-4WZUGLQQ.mjs +117 -0
- package/dist/lib/browser/chunk-4WZUGLQQ.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-AWVAX26X.mjs +13 -0
- package/dist/lib/browser/chunk-AWVAX26X.mjs.map +7 -0
- package/dist/lib/browser/chunk-CCRSHECL.mjs +714 -0
- package/dist/lib/browser/chunk-CCRSHECL.mjs.map +7 -0
- package/dist/lib/browser/{chunk-VZBIIYFM.mjs → chunk-HSMQFM57.mjs} +1 -1
- package/dist/lib/browser/chunk-HSMQFM57.mjs.map +7 -0
- package/dist/lib/browser/{chunk-OWNBEI5J.mjs → chunk-SUI34XSA.mjs} +318 -256
- package/dist/lib/browser/chunk-SUI34XSA.mjs.map +7 -0
- package/dist/lib/browser/chunk-TWUMNPG4.mjs +1898 -0
- package/dist/lib/browser/chunk-TWUMNPG4.mjs.map +7 -0
- package/dist/lib/browser/{chunk-4V4JNJ33.mjs → chunk-ZT2VPYRM.mjs} +62 -63
- package/dist/lib/browser/chunk-ZT2VPYRM.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +849 -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 +230 -236
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-SIRQT36Z.mjs +827 -0
- package/dist/lib/browser/operation-resolver-SIRQT36Z.mjs.map +7 -0
- package/dist/lib/browser/react-root-3SPMM45V.mjs +30 -0
- package/dist/lib/browser/react-root-3SPMM45V.mjs.map +7 -0
- package/dist/lib/browser/react-surface-UUS7NDHS.mjs +382 -0
- package/dist/lib/browser/react-surface-UUS7NDHS.mjs.map +7 -0
- package/dist/lib/browser/repair-CJG26D52.mjs +50 -0
- package/dist/lib/browser/repair-CJG26D52.mjs.map +7 -0
- package/dist/lib/browser/settings-ZS2AQ73E.mjs +33 -0
- package/dist/lib/browser/settings-ZS2AQ73E.mjs.map +7 -0
- package/dist/lib/browser/spaces-ready-OQDGWUOS.mjs +242 -0
- package/dist/lib/browser/spaces-ready-OQDGWUOS.mjs.map +7 -0
- package/dist/lib/browser/state-7YZQB2KY.mjs +58 -0
- package/dist/lib/browser/state-7YZQB2KY.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +18 -10
- package/dist/lib/node-esm/CollectionArticle-V5OOJVJJ.mjs +126 -0
- package/dist/lib/node-esm/CollectionArticle-V5OOJVJJ.mjs.map +7 -0
- package/dist/lib/node-esm/ObjectCardStack-C5ZXRKP7.mjs +149 -0
- package/dist/lib/node-esm/ObjectCardStack-C5ZXRKP7.mjs.map +7 -0
- package/dist/lib/node-esm/ObjectDetails-6ZLDRKCO.mjs +143 -0
- package/dist/lib/node-esm/ObjectDetails-6ZLDRKCO.mjs.map +7 -0
- package/dist/lib/node-esm/RecordArticle-SSV74Z46.mjs +108 -0
- package/dist/lib/node-esm/RecordArticle-SSV74Z46.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-HZ3XXDFZ.mjs +524 -0
- package/dist/lib/node-esm/app-graph-builder-HZ3XXDFZ.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-serializer-WJ2TIQG6.mjs +85 -0
- package/dist/lib/node-esm/app-graph-serializer-WJ2TIQG6.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-G4PDWB7G.mjs → chunk-2SW6S2BB.mjs} +62 -63
- package/dist/lib/node-esm/chunk-2SW6S2BB.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-XEVIWD3O.mjs → chunk-7KMYUWSR.mjs} +318 -256
- package/dist/lib/node-esm/chunk-7KMYUWSR.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-FYSBFBSD.mjs +1899 -0
- package/dist/lib/node-esm/chunk-FYSBFBSD.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HREWB23G.mjs +15 -0
- package/dist/lib/node-esm/chunk-HREWB23G.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JOBIWCBC.mjs +118 -0
- package/dist/lib/node-esm/chunk-JOBIWCBC.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-MPL6NHQX.mjs +715 -0
- package/dist/lib/node-esm/chunk-MPL6NHQX.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-BDEFTL6K.mjs → chunk-SL4BJSUG.mjs} +1 -1
- package/dist/lib/node-esm/chunk-SL4BJSUG.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +850 -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 +230 -236
- 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-ZE3XJL5J.mjs +828 -0
- package/dist/lib/node-esm/operation-resolver-ZE3XJL5J.mjs.map +7 -0
- package/dist/lib/node-esm/react-root-Y6JTGDTW.mjs +31 -0
- package/dist/lib/node-esm/react-root-Y6JTGDTW.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-SQ4SK3OK.mjs +383 -0
- package/dist/lib/node-esm/react-surface-SQ4SK3OK.mjs.map +7 -0
- package/dist/lib/node-esm/repair-G3ZW3VG3.mjs +51 -0
- package/dist/lib/node-esm/repair-G3ZW3VG3.mjs.map +7 -0
- package/dist/lib/node-esm/settings-PVI2VG56.mjs +34 -0
- package/dist/lib/node-esm/settings-PVI2VG56.mjs.map +7 -0
- package/dist/lib/node-esm/spaces-ready-R744OHQG.mjs +243 -0
- package/dist/lib/node-esm/spaces-ready-R744OHQG.mjs.map +7 -0
- package/dist/lib/node-esm/state-XE5YGPHM.mjs +59 -0
- package/dist/lib/node-esm/state-XE5YGPHM.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 +6 -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 -20
- 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 +9 -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 +2 -2
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.stories.d.ts +163 -229
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts +18 -10
- package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateSpaceDialog.d.ts.map +1 -1
- package/dist/types/src/components/JoinDialog/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/MembersContainer.d.ts.map +1 -0
- package/dist/types/src/components/{RecordMain.stories.d.ts → MembersContainer/MembersContainer.stories.d.ts} +158 -225
- package/dist/types/src/components/{MembersContainer.stories.d.ts.map → MembersContainer/MembersContainer.stories.d.ts.map} +1 -1
- 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/{ObjectDetailsPanel → ObjectCardStack}/ObjectForm.d.ts +2 -3
- 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 +1 -1
- package/dist/types/src/components/ObjectDetails/BaseObjectSettings.d.ts.map +1 -0
- package/dist/types/src/components/{ObjectSettings → ObjectDetails}/BaseObjectSettings.stories.d.ts +156 -223
- package/dist/types/src/components/{ObjectSettings → ObjectDetails}/BaseObjectSettings.stories.d.ts.map +1 -1
- 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/{MembersContainer.stories.d.ts → RecordArticle.stories.d.ts} +158 -225
- package/dist/types/src/components/{RecordMain.stories.d.ts.map → RecordArticle.stories.d.ts.map} +1 -1
- 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.stories.d.ts → SpacePresence/SpacePresence.stories.d.ts} +156 -223
- package/dist/types/src/components/{SpacePresence.stories.d.ts.map → SpacePresence/SpacePresence.stories.d.ts.map} +1 -1
- 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 +1 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.d.ts.map +1 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts +157 -224
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/SyncStatus.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/SyncStatus.stories.d.ts +156 -223
- package/dist/types/src/components/SyncStatus/SyncStatus.stories.d.ts.map +1 -1
- package/dist/types/src/components/ViewEditor.d.ts +3 -4
- package/dist/types/src/components/ViewEditor.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +15 -16
- 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/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 +2 -2
- package/dist/types/src/hooks/usePath.d.ts.map +1 -1
- package/dist/types/src/hooks/useTypeOptions.d.ts +2 -2
- package/dist/types/src/hooks/useTypeOptions.d.ts.map +1 -1
- 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 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +156 -223
- 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 +637 -397
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +39 -51
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +82 -63
- package/src/SpacePlugin.ts +169 -227
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +617 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/app-graph-serializer/app-graph-serializer.ts +82 -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 -14
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +760 -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 +375 -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 +32 -0
- package/src/capabilities/spaces-ready/index.ts +7 -0
- package/src/capabilities/spaces-ready/spaces-ready.ts +289 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +64 -0
- package/src/cli/commands/database/add.ts +116 -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 +81 -0
- package/src/components/AwaitingObject.tsx +21 -20
- package/src/components/CollectionArticle.tsx +153 -0
- package/src/components/CollectionSection.tsx +6 -4
- package/src/components/CreateDialog/CreateObjectDialog.stories.tsx +30 -24
- package/src/components/CreateDialog/CreateObjectDialog.tsx +66 -57
- package/src/components/CreateDialog/CreateObjectPanel.tsx +153 -91
- package/src/components/CreateDialog/CreateSpaceDialog.tsx +34 -29
- package/src/components/{JoinDialog.tsx → JoinDialog/JoinDialog.tsx} +26 -37
- package/src/components/JoinDialog/index.ts +5 -0
- package/src/components/{MembersContainer.stories.tsx → MembersContainer/MembersContainer.stories.tsx} +3 -3
- package/src/components/{MembersContainer.tsx → MembersContainer/MembersContainer.tsx} +41 -41
- package/src/components/MembersContainer/index.ts +5 -0
- package/src/components/MenuFooter.tsx +1 -1
- 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/{ObjectSettings → ObjectDetails}/BaseObjectSettings.stories.tsx +7 -7
- package/src/components/ObjectDetails/BaseObjectSettings.tsx +122 -0
- package/src/components/{ObjectSettings → ObjectDetails}/ForeignKeys.tsx +6 -6
- package/src/components/ObjectDetails/ObjectDetails.tsx +32 -0
- package/src/components/ObjectDetails/index.ts +7 -0
- package/src/components/{PopoverRenameObject.tsx → ObjectRenamePopover/ObjectRenamePopover.tsx} +11 -15
- package/src/components/ObjectRenamePopover/index.ts +5 -0
- package/src/components/{RecordMain.stories.tsx → RecordArticle.stories.tsx} +30 -31
- package/src/components/RecordArticle.tsx +122 -0
- package/src/components/SchemaContainer.tsx +24 -27
- package/src/components/SpacePluginSettings.tsx +17 -7
- package/src/components/{SpacePresence.stories.tsx → SpacePresence/SpacePresence.stories.tsx} +1 -1
- package/src/components/{SpacePresence.tsx → SpacePresence/SpacePresence.tsx} +19 -16
- package/src/components/SpacePresence/index.ts +5 -0
- package/src/components/{PopoverRenameSpace.tsx → SpaceRenamePopover/SpaceRenamePopover.tsx} +15 -15
- package/src/components/SpaceRenamePopover/index.ts +5 -0
- package/src/components/SpaceSettings/SpaceSettingsContainer.stories.tsx +4 -4
- package/src/components/SpaceSettings/SpaceSettingsContainer.tsx +188 -153
- package/src/components/SyncStatus/InlineSyncStatus.tsx +1 -1
- package/src/components/SyncStatus/SyncStatus.tsx +26 -20
- package/src/components/SyncStatus/save-tracker.ts +2 -2
- package/src/components/ViewEditor.tsx +64 -21
- package/src/components/index.ts +7 -8
- 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/useActiveSpace.ts +7 -4
- package/src/hooks/useInputSurfaceLookup.tsx +9 -13
- package/src/hooks/usePath.ts +4 -4
- package/src/hooks/useTypeOptions.ts +3 -37
- package/src/index.ts +2 -2
- package/src/meta.ts +2 -2
- package/src/translations.ts +61 -59
- package/src/types/capabilities.ts +73 -0
- package/src/types/events.ts +15 -0
- package/src/types/form.ts +69 -0
- package/src/types/index.ts +3 -0
- package/src/types/types.ts +532 -261
- package/src/util.tsx +330 -282
- package/dist/lib/browser/CollectionMain-HTKSZCRR.mjs +0 -31
- package/dist/lib/browser/CollectionMain-HTKSZCRR.mjs.map +0 -7
- package/dist/lib/browser/ObjectDetailsPanel-5B45G744.mjs +0 -145
- package/dist/lib/browser/ObjectDetailsPanel-5B45G744.mjs.map +0 -7
- package/dist/lib/browser/ObjectSettings-UFTKBP7B.mjs +0 -146
- package/dist/lib/browser/ObjectSettings-UFTKBP7B.mjs.map +0 -7
- package/dist/lib/browser/RecordMain-BCSXTSEB.mjs +0 -99
- package/dist/lib/browser/RecordMain-BCSXTSEB.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-QJFO4ANM.mjs +0 -520
- package/dist/lib/browser/app-graph-builder-QJFO4ANM.mjs.map +0 -7
- package/dist/lib/browser/app-graph-serializer-3R5NVV7U.mjs +0 -80
- package/dist/lib/browser/app-graph-serializer-3R5NVV7U.mjs.map +0 -7
- package/dist/lib/browser/chunk-2NS3VPSY.mjs +0 -20
- package/dist/lib/browser/chunk-2NS3VPSY.mjs.map +0 -7
- package/dist/lib/browser/chunk-4V4JNJ33.mjs.map +0 -7
- package/dist/lib/browser/chunk-ENBBJSNE.mjs +0 -1949
- package/dist/lib/browser/chunk-ENBBJSNE.mjs.map +0 -7
- package/dist/lib/browser/chunk-HS2VD6DN.mjs +0 -166
- package/dist/lib/browser/chunk-HS2VD6DN.mjs.map +0 -7
- package/dist/lib/browser/chunk-OWNBEI5J.mjs.map +0 -7
- package/dist/lib/browser/chunk-SLDQWMQ2.mjs +0 -349
- package/dist/lib/browser/chunk-SLDQWMQ2.mjs.map +0 -7
- package/dist/lib/browser/chunk-VZBIIYFM.mjs.map +0 -7
- package/dist/lib/browser/chunk-WJXU4GKV.mjs +0 -19
- package/dist/lib/browser/chunk-WJXU4GKV.mjs.map +0 -7
- package/dist/lib/browser/identity-created-PW2BA46S.mjs +0 -23
- package/dist/lib/browser/identity-created-PW2BA46S.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MBVOLXFQ.mjs +0 -772
- package/dist/lib/browser/intent-resolver-MBVOLXFQ.mjs.map +0 -7
- package/dist/lib/browser/react-root-NKEKCEYM.mjs +0 -29
- package/dist/lib/browser/react-root-NKEKCEYM.mjs.map +0 -7
- package/dist/lib/browser/react-surface-PYSN2MBY.mjs +0 -354
- package/dist/lib/browser/react-surface-PYSN2MBY.mjs.map +0 -7
- package/dist/lib/browser/schema-defs-DWYK7TYW.mjs +0 -26
- package/dist/lib/browser/schema-defs-DWYK7TYW.mjs.map +0 -7
- package/dist/lib/browser/settings-ZUCC3ZLB.mjs +0 -24
- package/dist/lib/browser/settings-ZUCC3ZLB.mjs.map +0 -7
- package/dist/lib/browser/spaces-ready-HTWWJHLR.mjs +0 -201
- package/dist/lib/browser/spaces-ready-HTWWJHLR.mjs.map +0 -7
- package/dist/lib/browser/state-ISVAKMO7.mjs +0 -47
- package/dist/lib/browser/state-ISVAKMO7.mjs.map +0 -7
- package/dist/lib/node-esm/CollectionMain-OUHGG6OC.mjs +0 -32
- package/dist/lib/node-esm/CollectionMain-OUHGG6OC.mjs.map +0 -7
- package/dist/lib/node-esm/ObjectDetailsPanel-4SDHQVQU.mjs +0 -146
- package/dist/lib/node-esm/ObjectDetailsPanel-4SDHQVQU.mjs.map +0 -7
- package/dist/lib/node-esm/ObjectSettings-EU6F43RP.mjs +0 -147
- package/dist/lib/node-esm/ObjectSettings-EU6F43RP.mjs.map +0 -7
- package/dist/lib/node-esm/RecordMain-SD76DGOR.mjs +0 -100
- package/dist/lib/node-esm/RecordMain-SD76DGOR.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-B23W62HY.mjs +0 -521
- package/dist/lib/node-esm/app-graph-builder-B23W62HY.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-serializer-3Z3EXEEF.mjs +0 -81
- package/dist/lib/node-esm/app-graph-serializer-3Z3EXEEF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BDEFTL6K.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-G4PDWB7G.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-H4JILUJK.mjs +0 -20
- package/dist/lib/node-esm/chunk-H4JILUJK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KKPCCA5O.mjs +0 -1950
- package/dist/lib/node-esm/chunk-KKPCCA5O.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PM4ZIGKC.mjs +0 -167
- package/dist/lib/node-esm/chunk-PM4ZIGKC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XEVIWD3O.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YFQXFQGT.mjs +0 -350
- package/dist/lib/node-esm/chunk-YFQXFQGT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZLMFLI7G.mjs +0 -21
- package/dist/lib/node-esm/chunk-ZLMFLI7G.mjs.map +0 -7
- package/dist/lib/node-esm/identity-created-MWTLGQRU.mjs +0 -25
- package/dist/lib/node-esm/identity-created-MWTLGQRU.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-IWI47NTW.mjs +0 -773
- package/dist/lib/node-esm/intent-resolver-IWI47NTW.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-LX7SIG6M.mjs +0 -30
- package/dist/lib/node-esm/react-root-LX7SIG6M.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-6SVGOZNJ.mjs +0 -355
- package/dist/lib/node-esm/react-surface-6SVGOZNJ.mjs.map +0 -7
- package/dist/lib/node-esm/schema-defs-EOG2UPJU.mjs +0 -27
- package/dist/lib/node-esm/schema-defs-EOG2UPJU.mjs.map +0 -7
- package/dist/lib/node-esm/settings-ZDJNLFGW.mjs +0 -25
- package/dist/lib/node-esm/settings-ZDJNLFGW.mjs.map +0 -7
- package/dist/lib/node-esm/spaces-ready-VUGYPF4L.mjs +0 -202
- package/dist/lib/node-esm/spaces-ready-VUGYPF4L.mjs.map +0 -7
- package/dist/lib/node-esm/state-QZ4Q6ZRL.mjs +0 -48
- package/dist/lib/node-esm/state-QZ4Q6ZRL.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 -29
- 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/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 -7
- 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/ObjectDetailsPanel/ObjectDetailsPanel.d.ts +0 -9
- package/dist/types/src/components/ObjectDetailsPanel/ObjectDetailsPanel.d.ts.map +0 -1
- package/dist/types/src/components/ObjectDetailsPanel/ObjectForm.d.ts.map +0 -1
- package/dist/types/src/components/ObjectDetailsPanel/index.d.ts +0 -3
- package/dist/types/src/components/ObjectDetailsPanel/index.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 -3
- 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/RecordMain.d.ts +0 -8
- package/dist/types/src/components/RecordMain.d.ts.map +0 -1
- package/dist/types/src/components/SpacePresence.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -8
- package/dist/types/src/events.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -757
- package/src/capabilities/app-graph-serializer.ts +0 -76
- package/src/capabilities/capabilities.ts +0 -35
- package/src/capabilities/identity-created.ts +0 -25
- package/src/capabilities/intent-resolver.ts +0 -711
- package/src/capabilities/react-root.tsx +0 -21
- package/src/capabilities/react-surface.tsx +0 -329
- package/src/capabilities/schema-defs.ts +0 -31
- package/src/capabilities/settings.ts +0 -21
- package/src/capabilities/spaces-ready.ts +0 -234
- package/src/capabilities/state.ts +0 -46
- package/src/components/CollectionMain.tsx +0 -32
- package/src/components/ObjectDetailsPanel/ObjectDetailsPanel.tsx +0 -52
- package/src/components/ObjectDetailsPanel/ObjectForm.tsx +0 -75
- package/src/components/ObjectDetailsPanel/index.ts +0 -7
- package/src/components/ObjectSettings/AdvancedObjectSettings.tsx +0 -81
- package/src/components/ObjectSettings/BaseObjectSettings.tsx +0 -107
- package/src/components/ObjectSettings/ObjectSettingsContainer.tsx +0 -37
- package/src/components/ObjectSettings/index.ts +0 -7
- package/src/components/PersistenceStatus.tsx +0 -83
- package/src/components/RecordMain.tsx +0 -83
- package/src/events.ts +0 -15
- /package/dist/types/src/components/{JoinDialog.d.ts → JoinDialog/JoinDialog.d.ts} +0 -0
- /package/dist/types/src/components/{MembersContainer.d.ts → MembersContainer/MembersContainer.d.ts} +0 -0
package/src/types/types.ts
CHANGED
|
@@ -2,24 +2,44 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import type * as Effect from 'effect/Effect';
|
|
5
6
|
import * as Schema from 'effect/Schema';
|
|
6
7
|
|
|
7
|
-
import {
|
|
8
|
-
import { type
|
|
9
|
-
import { type BaseObject, EchoSchema, StoredSchema } from '@dxos/echo/internal';
|
|
10
|
-
import { type PublicKey } from '@dxos/react-client';
|
|
8
|
+
import { Capability, Plugin } from '@dxos/app-framework';
|
|
9
|
+
import { type PublicKey } from '@dxos/client';
|
|
11
10
|
// TODO(wittjosiah): This pulls in full client.
|
|
12
|
-
import {
|
|
13
|
-
import { CancellableInvitationObservable, Invitation } from '@dxos/
|
|
14
|
-
import {
|
|
11
|
+
import { SpaceSchema } from '@dxos/client/echo';
|
|
12
|
+
import { CancellableInvitationObservable, Invitation } from '@dxos/client/invitations';
|
|
13
|
+
import { Database, type Obj, QueryAST, Type } from '@dxos/echo';
|
|
14
|
+
import { Operation } from '@dxos/operation';
|
|
15
|
+
import { Collection, FieldSchema, View } from '@dxos/schema';
|
|
15
16
|
import { type ComplexMap } from '@dxos/util';
|
|
16
17
|
|
|
17
18
|
import { meta } from '../meta';
|
|
18
19
|
|
|
20
|
+
import { TypeInputOptionsAnnotation } from './form';
|
|
21
|
+
|
|
19
22
|
export const SPACE_DIRECTORY_HANDLE = `${meta.id}/directory`;
|
|
20
23
|
|
|
21
24
|
export const SPACE_TYPE = 'dxos.org/type/Space';
|
|
22
25
|
|
|
26
|
+
export type SpacePluginOptions = {
|
|
27
|
+
/**
|
|
28
|
+
* Base URL for the invitation link.
|
|
29
|
+
*/
|
|
30
|
+
invitationUrl?: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Query parameter for the invitation code.
|
|
34
|
+
*/
|
|
35
|
+
invitationProp?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Whether to send observability events.
|
|
39
|
+
*/
|
|
40
|
+
observability?: boolean;
|
|
41
|
+
};
|
|
42
|
+
|
|
23
43
|
export type ObjectViewerProps = {
|
|
24
44
|
lastSeen: number;
|
|
25
45
|
currentlyAttended: boolean;
|
|
@@ -82,7 +102,7 @@ export type SpaceSettingsProps = Schema.Schema.Type<typeof SpaceSettingsSchema>;
|
|
|
82
102
|
|
|
83
103
|
export type SerializerMap = Record<string, TypedObjectSerializer>;
|
|
84
104
|
|
|
85
|
-
export interface TypedObjectSerializer<T extends Obj.
|
|
105
|
+
export interface TypedObjectSerializer<T extends Obj.Unknown = Obj.Unknown> {
|
|
86
106
|
serialize(params: { object: T }): Promise<string>;
|
|
87
107
|
|
|
88
108
|
/**
|
|
@@ -90,301 +110,552 @@ export interface TypedObjectSerializer<T extends Obj.Any = Type.Expando> {
|
|
|
90
110
|
* @param params.space Space to use for deserializing schema references.
|
|
91
111
|
* @param params.newId Generate new ID for deserialized object.
|
|
92
112
|
*/
|
|
93
|
-
deserialize(params: { content: string;
|
|
113
|
+
deserialize(params: { content: string; db: Database.Database; newId?: boolean }): Promise<T>;
|
|
94
114
|
}
|
|
95
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Factory function that creates an object directly using Type.make().
|
|
118
|
+
* Returns an Effect that resolves to the created object.
|
|
119
|
+
*
|
|
120
|
+
* Options include:
|
|
121
|
+
* - `db`: The database to use for object creation.
|
|
122
|
+
*/
|
|
123
|
+
export type CreateObject = (
|
|
124
|
+
props: any,
|
|
125
|
+
options: { db: Database.Database },
|
|
126
|
+
) => Effect.Effect<Obj.Unknown, Error, Capability.Service | Operation.Service>;
|
|
127
|
+
|
|
96
128
|
// TODO(burdon): Move to FormatEnum or SDK.
|
|
97
129
|
export const IconAnnotationId = Symbol.for('@dxos/plugin-space/annotation/Icon');
|
|
98
130
|
export const HueAnnotationId = Symbol.for('@dxos/plugin-space/annotation/Hue');
|
|
99
131
|
|
|
132
|
+
// TOOD(burdon): Use SpacePropertiesSchema.
|
|
100
133
|
export const SpaceForm = Schema.Struct({
|
|
101
134
|
name: Schema.optional(Schema.String.annotations({ title: 'Name' })),
|
|
102
135
|
icon: Schema.optional(Schema.String.annotations({ title: 'Icon', [IconAnnotationId]: true })),
|
|
103
136
|
hue: Schema.optional(Schema.String.annotations({ title: 'Color', [HueAnnotationId]: true })),
|
|
104
|
-
|
|
105
|
-
edgeReplication: Schema.Boolean.annotations({ title: 'Enable EDGE Replication' }),
|
|
137
|
+
edgeReplication: Schema.optional(Schema.Boolean.annotations({ title: 'Enable EDGE Replication' })),
|
|
106
138
|
});
|
|
107
139
|
|
|
108
|
-
|
|
109
|
-
objectSchema: Schema.Schema.AnyNoContext;
|
|
110
|
-
formSchema?: Schema.Schema<T, any>;
|
|
111
|
-
hidden?: boolean;
|
|
112
|
-
getIntent: (props: T, options: { space: Space }) => AnyIntentChain;
|
|
113
|
-
};
|
|
140
|
+
const COLLECTION_OPERATION = 'dxos.org/plugin/collection/operation';
|
|
114
141
|
|
|
115
|
-
export
|
|
142
|
+
export namespace CollectionOperation {
|
|
143
|
+
export const Create = Operation.make({
|
|
144
|
+
meta: { key: `${COLLECTION_OPERATION}/create`, name: 'Create Collection' },
|
|
145
|
+
services: [Capability.Service],
|
|
146
|
+
schema: {
|
|
147
|
+
input: Schema.Struct({
|
|
148
|
+
name: Schema.optional(Schema.String),
|
|
149
|
+
}),
|
|
150
|
+
output: Schema.Struct({
|
|
151
|
+
object: Collection.Collection,
|
|
152
|
+
}),
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
}
|
|
116
156
|
|
|
117
|
-
|
|
157
|
+
const SPACE_OPERATION = `${meta.id}/operation`;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Operations for the Space plugin.
|
|
161
|
+
*/
|
|
162
|
+
export namespace SpaceOperation {
|
|
163
|
+
export const Create = Operation.make({
|
|
164
|
+
meta: {
|
|
165
|
+
key: `${SPACE_OPERATION}/create`,
|
|
166
|
+
name: 'Create Space',
|
|
167
|
+
description: 'Create a new space.',
|
|
168
|
+
},
|
|
169
|
+
services: [Capability.Service, Plugin.Service],
|
|
170
|
+
schema: {
|
|
171
|
+
input: SpaceForm,
|
|
172
|
+
output: Schema.Struct({
|
|
173
|
+
id: Schema.String,
|
|
174
|
+
subject: Schema.Array(Schema.String),
|
|
175
|
+
space: SpaceSchema,
|
|
176
|
+
}),
|
|
177
|
+
},
|
|
178
|
+
});
|
|
118
179
|
|
|
119
|
-
export
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
180
|
+
export const Join = Operation.make({
|
|
181
|
+
meta: {
|
|
182
|
+
key: `${SPACE_OPERATION}/join`,
|
|
183
|
+
name: 'Join Space',
|
|
184
|
+
description: 'Join a space via invitation.',
|
|
185
|
+
},
|
|
186
|
+
services: [Capability.Service],
|
|
187
|
+
schema: {
|
|
188
|
+
input: Schema.Struct({
|
|
189
|
+
invitationCode: Schema.optional(Schema.String),
|
|
190
|
+
onDone: Schema.optional(Schema.Any),
|
|
191
|
+
}),
|
|
192
|
+
output: Schema.Void,
|
|
193
|
+
},
|
|
194
|
+
});
|
|
124
195
|
|
|
125
|
-
export
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
196
|
+
export const Open = Operation.make({
|
|
197
|
+
meta: {
|
|
198
|
+
key: `${SPACE_OPERATION}/open`,
|
|
199
|
+
name: 'Open Space',
|
|
200
|
+
description: 'Open a space.',
|
|
201
|
+
},
|
|
202
|
+
services: [Capability.Service],
|
|
203
|
+
schema: {
|
|
204
|
+
input: Schema.Struct({
|
|
205
|
+
space: SpaceSchema,
|
|
206
|
+
}),
|
|
207
|
+
output: Schema.Void,
|
|
208
|
+
},
|
|
209
|
+
});
|
|
133
210
|
|
|
134
|
-
export
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
211
|
+
export const Close = Operation.make({
|
|
212
|
+
meta: {
|
|
213
|
+
key: `${SPACE_OPERATION}/close`,
|
|
214
|
+
name: 'Close Space',
|
|
215
|
+
description: 'Close a space.',
|
|
216
|
+
},
|
|
217
|
+
services: [Capability.Service],
|
|
218
|
+
schema: {
|
|
219
|
+
input: Schema.Struct({
|
|
220
|
+
space: SpaceSchema,
|
|
221
|
+
}),
|
|
222
|
+
output: Schema.Void,
|
|
223
|
+
},
|
|
224
|
+
});
|
|
141
225
|
|
|
142
|
-
export
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
export class GetShareLink extends Schema.TaggedClass<GetShareLink>()(`${SPACE_ACTION}/get-share-link`, {
|
|
161
|
-
input: Schema.Struct({
|
|
162
|
-
space: SpaceSchema,
|
|
163
|
-
target: Schema.optional(Schema.String),
|
|
164
|
-
copyToClipboard: Schema.optional(Schema.Boolean),
|
|
165
|
-
}),
|
|
166
|
-
output: Schema.String,
|
|
167
|
-
}) {}
|
|
226
|
+
export const Share = Operation.make({
|
|
227
|
+
meta: {
|
|
228
|
+
key: `${SPACE_OPERATION}/share`,
|
|
229
|
+
name: 'Share Space',
|
|
230
|
+
description: 'Share a space.',
|
|
231
|
+
},
|
|
232
|
+
services: [Capability.Service],
|
|
233
|
+
schema: {
|
|
234
|
+
input: Schema.Struct({
|
|
235
|
+
space: SpaceSchema,
|
|
236
|
+
type: Schema.Enums(Invitation.Type),
|
|
237
|
+
authMethod: Schema.Enums(Invitation.AuthMethod),
|
|
238
|
+
multiUse: Schema.Boolean,
|
|
239
|
+
target: Schema.optional(Schema.String),
|
|
240
|
+
}),
|
|
241
|
+
output: Schema.instanceOf(CancellableInvitationObservable),
|
|
242
|
+
},
|
|
243
|
+
});
|
|
168
244
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
245
|
+
// TODO(wittjosiah): This appears to be unused.
|
|
246
|
+
export const Lock = Operation.make({
|
|
247
|
+
meta: {
|
|
248
|
+
key: `${SPACE_OPERATION}/lock`,
|
|
249
|
+
name: 'Lock Space',
|
|
250
|
+
description: 'Lock a space to prevent modifications.',
|
|
251
|
+
},
|
|
252
|
+
services: [Capability.Service],
|
|
253
|
+
schema: {
|
|
254
|
+
input: Schema.Struct({
|
|
255
|
+
space: SpaceSchema,
|
|
256
|
+
}),
|
|
257
|
+
output: Schema.Void,
|
|
258
|
+
},
|
|
259
|
+
});
|
|
175
260
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
261
|
+
// TODO(wittjosiah): This appears to be unused.
|
|
262
|
+
export const Unlock = Operation.make({
|
|
263
|
+
meta: {
|
|
264
|
+
key: `${SPACE_OPERATION}/unlock`,
|
|
265
|
+
name: 'Unlock Space',
|
|
266
|
+
description: 'Unlock a space to allow modifications.',
|
|
267
|
+
},
|
|
268
|
+
services: [Capability.Service],
|
|
269
|
+
schema: {
|
|
270
|
+
input: Schema.Struct({
|
|
271
|
+
space: SpaceSchema,
|
|
272
|
+
}),
|
|
273
|
+
output: Schema.Void,
|
|
274
|
+
},
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
export const OpenSettings = Operation.make({
|
|
278
|
+
meta: {
|
|
279
|
+
key: `${SPACE_OPERATION}/open-settings`,
|
|
280
|
+
name: 'Open Space Settings',
|
|
281
|
+
description: 'Open space settings.',
|
|
282
|
+
},
|
|
283
|
+
services: [Capability.Service],
|
|
284
|
+
schema: {
|
|
285
|
+
input: Schema.Struct({
|
|
286
|
+
space: SpaceSchema,
|
|
287
|
+
}),
|
|
288
|
+
output: Schema.Void,
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
export const WaitForObject = Operation.make({
|
|
293
|
+
meta: {
|
|
294
|
+
key: `${SPACE_OPERATION}/wait-for-object`,
|
|
295
|
+
name: 'Wait For Object',
|
|
296
|
+
description: 'Wait for an object to be available.',
|
|
297
|
+
},
|
|
298
|
+
services: [Capability.Service],
|
|
299
|
+
schema: {
|
|
300
|
+
input: Schema.Struct({
|
|
301
|
+
id: Schema.optional(Schema.String),
|
|
302
|
+
}),
|
|
303
|
+
output: Schema.Void,
|
|
304
|
+
},
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
export const AddObject = Operation.make({
|
|
308
|
+
meta: {
|
|
309
|
+
key: `${SPACE_OPERATION}/add-object`,
|
|
310
|
+
name: 'Add Object',
|
|
311
|
+
description: 'Add an object to a space.',
|
|
312
|
+
},
|
|
313
|
+
services: [Capability.Service],
|
|
314
|
+
schema: {
|
|
315
|
+
input: Schema.Struct({
|
|
316
|
+
object: Type.Obj.annotations({ description: 'The object to add.' }),
|
|
317
|
+
target: Schema.Union(Database.Database, Collection.Collection).annotations({
|
|
318
|
+
description: 'The database or collection to add to.',
|
|
319
|
+
}),
|
|
320
|
+
hidden: Schema.optional(Schema.Boolean),
|
|
321
|
+
}),
|
|
322
|
+
output: Schema.Struct({
|
|
323
|
+
id: Schema.String,
|
|
324
|
+
subject: Schema.Array(Schema.String),
|
|
325
|
+
object: Type.Obj,
|
|
326
|
+
}),
|
|
327
|
+
},
|
|
328
|
+
});
|
|
182
329
|
|
|
183
|
-
export
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
330
|
+
export const RemoveObjectsOutput = Schema.Struct({
|
|
331
|
+
objects: Schema.Array(Type.Obj).annotations({ description: 'The removed objects.' }),
|
|
332
|
+
parentCollection: Collection.Collection.annotations({ description: 'The collection removed from.' }),
|
|
333
|
+
indices: Schema.Array(Schema.Number).annotations({ description: 'The indices the objects were at.' }),
|
|
334
|
+
nestedObjectsList: Schema.Array(Schema.Array(Type.Obj)).annotations({
|
|
335
|
+
description: 'Nested objects that were removed.',
|
|
187
336
|
}),
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
// TODO(wittjosiah): Handle scrolling to section.
|
|
192
|
-
// This maybe motivates making the space settings its own deck?
|
|
193
|
-
export class OpenSettings extends Schema.TaggedClass<OpenSettings>()(`${SPACE_ACTION}/open-settings`, {
|
|
194
|
-
input: Schema.Struct({ space: SpaceSchema }),
|
|
195
|
-
output: Schema.Void,
|
|
196
|
-
}) {}
|
|
197
|
-
|
|
198
|
-
export class Open extends Schema.TaggedClass<Open>()(`${SPACE_ACTION}/open`, {
|
|
199
|
-
input: Schema.Struct({
|
|
200
|
-
space: SpaceSchema,
|
|
337
|
+
wasActive: Schema.Array(Schema.String).annotations({
|
|
338
|
+
description: 'IDs of objects that were active before removal.',
|
|
201
339
|
}),
|
|
202
|
-
|
|
203
|
-
}) {}
|
|
340
|
+
});
|
|
204
341
|
|
|
205
|
-
export
|
|
206
|
-
input: Schema.Struct({
|
|
207
|
-
space: SpaceSchema,
|
|
208
|
-
}),
|
|
209
|
-
output: Schema.Void,
|
|
210
|
-
}) {}
|
|
342
|
+
export type RemoveObjectsOutput = Schema.Schema.Type<typeof RemoveObjectsOutput>;
|
|
211
343
|
|
|
212
|
-
export
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
344
|
+
export const RemoveObjects = Operation.make({
|
|
345
|
+
meta: {
|
|
346
|
+
key: `${SPACE_OPERATION}/remove-objects`,
|
|
347
|
+
name: 'Remove Objects',
|
|
348
|
+
description: 'Remove objects from a space.',
|
|
349
|
+
},
|
|
350
|
+
services: [Capability.Service],
|
|
351
|
+
schema: {
|
|
352
|
+
input: Schema.Struct({
|
|
353
|
+
objects: Schema.Array(Type.Obj).annotations({ description: 'The objects to remove.' }),
|
|
354
|
+
target: Schema.optional(Collection.Collection).annotations({ description: 'The collection to remove from.' }),
|
|
355
|
+
}),
|
|
356
|
+
output: RemoveObjectsOutput,
|
|
357
|
+
},
|
|
358
|
+
});
|
|
219
359
|
|
|
220
|
-
export const
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
360
|
+
export const DeleteFieldOutput = Schema.Struct({
|
|
361
|
+
field: FieldSchema.annotations({ description: 'The deleted field schema.' }),
|
|
362
|
+
// TODO(wittjosiah): This creates a type error with PropertySchema.
|
|
363
|
+
props: Schema.Any.annotations({ description: 'The deleted field properties.' }),
|
|
364
|
+
index: Schema.Number.annotations({ description: 'The index the field was at.' }),
|
|
365
|
+
});
|
|
366
|
+
|
|
367
|
+
export type DeleteFieldOutput = Schema.Schema.Type<typeof DeleteFieldOutput>;
|
|
368
|
+
|
|
369
|
+
export const DeleteField = Operation.make({
|
|
370
|
+
meta: {
|
|
371
|
+
key: `${SPACE_OPERATION}/delete-field`,
|
|
372
|
+
name: 'Delete Field',
|
|
373
|
+
description: 'Delete a field from a view.',
|
|
374
|
+
},
|
|
375
|
+
services: [Capability.Service],
|
|
376
|
+
schema: {
|
|
377
|
+
input: Schema.Struct({
|
|
378
|
+
view: View.View.annotations({ description: 'The view to delete the field from.' }),
|
|
379
|
+
fieldId: Schema.String,
|
|
225
380
|
}),
|
|
226
|
-
|
|
381
|
+
output: DeleteFieldOutput,
|
|
382
|
+
},
|
|
227
383
|
});
|
|
228
384
|
|
|
229
|
-
export
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
input: Schema.Struct({
|
|
241
|
-
space: SpaceSchema,
|
|
242
|
-
name: Schema.optional(Schema.String),
|
|
243
|
-
typename: Schema.optional(Schema.String),
|
|
244
|
-
// TODO(wittjosiah): Semantic version format.
|
|
245
|
-
version: Schema.optional(Schema.String),
|
|
246
|
-
// TODO(wittjosiah): Schema for schema?
|
|
247
|
-
schema: Schema.Any,
|
|
248
|
-
// TODO(wittjosiah): This is leaky.
|
|
249
|
-
show: Schema.optional(Schema.Boolean),
|
|
250
|
-
}),
|
|
251
|
-
output: Schema.Struct({
|
|
252
|
-
// TODO(wittjosiah): ObjectId.
|
|
253
|
-
id: Schema.String,
|
|
254
|
-
object: StoredSchema,
|
|
255
|
-
schema: Schema.instanceOf(EchoSchema),
|
|
256
|
-
}),
|
|
257
|
-
}) {}
|
|
258
|
-
|
|
259
|
-
export class DeleteField extends Schema.TaggedClass<DeleteField>()(`${SPACE_ACTION}/delete-field`, {
|
|
260
|
-
input: Schema.Struct({
|
|
261
|
-
view: DataType.View,
|
|
262
|
-
fieldId: Schema.String,
|
|
263
|
-
// TODO(wittjosiah): Separate fields for undo data?
|
|
264
|
-
deletionData: Schema.optional(
|
|
265
|
-
Schema.Struct({
|
|
266
|
-
field: FieldSchema,
|
|
267
|
-
// TODO(wittjosiah): This creates a type error.
|
|
268
|
-
// props: PropertySchema,
|
|
269
|
-
props: Schema.Any,
|
|
270
|
-
index: Schema.Number,
|
|
385
|
+
export const OpenCreateObject = Operation.make({
|
|
386
|
+
meta: {
|
|
387
|
+
key: `${SPACE_OPERATION}/open-create-object`,
|
|
388
|
+
name: 'Open Create Object Dialog',
|
|
389
|
+
description: 'Open the create object dialog.',
|
|
390
|
+
},
|
|
391
|
+
services: [Capability.Service],
|
|
392
|
+
schema: {
|
|
393
|
+
input: Schema.Struct({
|
|
394
|
+
target: Schema.Union(Database.Database, Collection.Collection).annotations({
|
|
395
|
+
description: 'The database or collection to create in.',
|
|
271
396
|
}),
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
typename: Schema.optional(Schema.String),
|
|
282
|
-
initialFormValues: Schema.optional(Schema.Any),
|
|
283
|
-
navigable: Schema.optional(Schema.Boolean),
|
|
284
|
-
// TODO(wittjosiah): This is a function, is there a better way to handle this?
|
|
285
|
-
onCreateObject: Schema.optional(Schema.Any),
|
|
286
|
-
}),
|
|
287
|
-
output: Schema.Void,
|
|
288
|
-
}) {}
|
|
289
|
-
|
|
290
|
-
export class AddObject extends Schema.TaggedClass<AddObject>()(`${SPACE_ACTION}/add-object`, {
|
|
291
|
-
input: Schema.Struct({
|
|
292
|
-
object: ReactiveObjectSchema,
|
|
293
|
-
target: Schema.Union(SpaceSchema, DataType.Collection),
|
|
294
|
-
hidden: Schema.optional(Schema.Boolean),
|
|
295
|
-
}),
|
|
296
|
-
output: Schema.Struct({
|
|
297
|
-
// TODO(wittjosiah): ObjectId.
|
|
298
|
-
id: Schema.String,
|
|
299
|
-
subject: Schema.Array(Schema.String),
|
|
300
|
-
object: EchoObjectSchema,
|
|
301
|
-
}),
|
|
302
|
-
}) {}
|
|
303
|
-
|
|
304
|
-
export class AddRelation extends Schema.TaggedClass<AddRelation>()(`${SPACE_ACTION}/add-relation`, {
|
|
305
|
-
input: Schema.Struct({
|
|
306
|
-
space: SpaceSchema,
|
|
307
|
-
// TODO(wittjosiah): Relation schema.
|
|
308
|
-
schema: Schema.Any,
|
|
309
|
-
source: Type.Expando,
|
|
310
|
-
target: Type.Expando,
|
|
311
|
-
// TODO(wittjosiah): Type based on relation schema.
|
|
312
|
-
fields: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),
|
|
313
|
-
}),
|
|
314
|
-
output: Schema.Struct({
|
|
315
|
-
relation: Schema.Any,
|
|
316
|
-
}),
|
|
317
|
-
}) {}
|
|
318
|
-
|
|
319
|
-
export const DeletionData = Schema.Struct({
|
|
320
|
-
objects: Schema.Array(EchoObjectSchema),
|
|
321
|
-
parentCollection: DataType.Collection,
|
|
322
|
-
indices: Schema.Array(Schema.Number),
|
|
323
|
-
nestedObjectsList: Schema.Array(Schema.Array(EchoObjectSchema)),
|
|
324
|
-
wasActive: Schema.Array(Schema.String),
|
|
397
|
+
views: Schema.optional(Schema.Boolean),
|
|
398
|
+
typename: Schema.optional(Schema.String),
|
|
399
|
+
initialFormValues: Schema.optional(Schema.Any),
|
|
400
|
+
navigable: Schema.optional(Schema.Boolean),
|
|
401
|
+
// TODO(wittjosiah): This is a function, is there a better way to handle this?
|
|
402
|
+
onCreateObject: Schema.optional(Schema.Any),
|
|
403
|
+
}),
|
|
404
|
+
output: Schema.Void,
|
|
405
|
+
},
|
|
325
406
|
});
|
|
326
407
|
|
|
327
|
-
export
|
|
408
|
+
export const OpenCreateSpace = Operation.make({
|
|
409
|
+
meta: {
|
|
410
|
+
key: `${SPACE_OPERATION}/open-create-space`,
|
|
411
|
+
name: 'Open Create Space Dialog',
|
|
412
|
+
description: 'Open the create space dialog.',
|
|
413
|
+
},
|
|
414
|
+
services: [Capability.Service],
|
|
415
|
+
schema: {
|
|
416
|
+
input: Schema.Void,
|
|
417
|
+
output: Schema.Void,
|
|
418
|
+
},
|
|
419
|
+
});
|
|
328
420
|
|
|
329
|
-
export
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
421
|
+
export const Migrate = Operation.make({
|
|
422
|
+
meta: {
|
|
423
|
+
key: `${SPACE_OPERATION}/migrate`,
|
|
424
|
+
name: 'Migrate Space',
|
|
425
|
+
description: 'Migrate a space to a new version.',
|
|
426
|
+
},
|
|
427
|
+
services: [Capability.Service],
|
|
428
|
+
schema: {
|
|
429
|
+
input: Schema.Struct({
|
|
430
|
+
space: SpaceSchema,
|
|
431
|
+
version: Schema.optional(Schema.String),
|
|
432
|
+
}),
|
|
433
|
+
output: Schema.Boolean,
|
|
434
|
+
},
|
|
435
|
+
});
|
|
338
436
|
|
|
339
|
-
export
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
437
|
+
export const Snapshot = Operation.make({
|
|
438
|
+
meta: {
|
|
439
|
+
key: `${SPACE_OPERATION}/snapshot`,
|
|
440
|
+
name: 'Create Snapshot',
|
|
441
|
+
description: 'Create a snapshot of the space.',
|
|
442
|
+
},
|
|
443
|
+
services: [Capability.Service],
|
|
444
|
+
schema: {
|
|
445
|
+
input: Schema.Struct({
|
|
446
|
+
db: Database.Database,
|
|
447
|
+
query: QueryAST.Query.pipe(Schema.optional),
|
|
448
|
+
}),
|
|
449
|
+
output: Schema.Struct({
|
|
450
|
+
snapshot: Schema.instanceOf(Blob),
|
|
451
|
+
}),
|
|
452
|
+
},
|
|
453
|
+
});
|
|
346
454
|
|
|
347
|
-
export
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
455
|
+
export const Rename = Operation.make({
|
|
456
|
+
meta: {
|
|
457
|
+
key: `${SPACE_OPERATION}/rename`,
|
|
458
|
+
name: 'Rename Space',
|
|
459
|
+
description: 'Rename a space.',
|
|
460
|
+
},
|
|
461
|
+
services: [Capability.Service],
|
|
462
|
+
schema: {
|
|
463
|
+
input: Schema.Struct({
|
|
464
|
+
space: SpaceSchema,
|
|
465
|
+
caller: Schema.optional(Schema.String),
|
|
466
|
+
}),
|
|
467
|
+
output: Schema.Void,
|
|
468
|
+
},
|
|
469
|
+
});
|
|
354
470
|
|
|
355
|
-
export
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
471
|
+
export const RenameObject = Operation.make({
|
|
472
|
+
meta: {
|
|
473
|
+
key: `${SPACE_OPERATION}/rename-object`,
|
|
474
|
+
name: 'Rename Object',
|
|
475
|
+
description: 'Rename an object.',
|
|
476
|
+
},
|
|
477
|
+
services: [Capability.Service],
|
|
478
|
+
schema: {
|
|
479
|
+
input: Schema.Struct({
|
|
480
|
+
object: Type.Obj,
|
|
481
|
+
caller: Schema.optional(Schema.String),
|
|
482
|
+
}),
|
|
483
|
+
output: Schema.Void,
|
|
484
|
+
},
|
|
485
|
+
});
|
|
362
486
|
|
|
363
|
-
export
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
name:
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
487
|
+
export const OpenMembers = Operation.make({
|
|
488
|
+
meta: {
|
|
489
|
+
key: `${SPACE_OPERATION}/open-members`,
|
|
490
|
+
name: 'Open Members',
|
|
491
|
+
description: 'Open the members panel for a space.',
|
|
492
|
+
},
|
|
493
|
+
services: [Capability.Service],
|
|
494
|
+
schema: {
|
|
495
|
+
input: Schema.Struct({
|
|
496
|
+
space: SpaceSchema,
|
|
497
|
+
}),
|
|
498
|
+
output: Schema.Void,
|
|
499
|
+
},
|
|
500
|
+
});
|
|
501
|
+
|
|
502
|
+
export const GetShareLink = Operation.make({
|
|
503
|
+
meta: {
|
|
504
|
+
key: `${SPACE_OPERATION}/get-share-link`,
|
|
505
|
+
name: 'Get Share Link',
|
|
506
|
+
description: 'Get a shareable link for a space.',
|
|
507
|
+
},
|
|
508
|
+
services: [Capability.Service],
|
|
509
|
+
schema: {
|
|
510
|
+
input: Schema.Struct({
|
|
511
|
+
space: SpaceSchema,
|
|
512
|
+
target: Schema.optional(Schema.String),
|
|
513
|
+
copyToClipboard: Schema.optional(Schema.Boolean),
|
|
514
|
+
}),
|
|
515
|
+
output: Schema.String,
|
|
516
|
+
},
|
|
517
|
+
});
|
|
372
518
|
|
|
373
|
-
export const
|
|
519
|
+
export const StoredSchemaForm = Schema.Struct({
|
|
374
520
|
name: Schema.optional(Schema.String),
|
|
375
|
-
typename: Schema.String.
|
|
376
|
-
|
|
377
|
-
|
|
521
|
+
typename: Schema.String.pipe(
|
|
522
|
+
Schema.annotations({ title: 'Select type (leave blank to create a new type)' }),
|
|
523
|
+
TypeInputOptionsAnnotation.set({
|
|
524
|
+
location: ['runtime'],
|
|
525
|
+
kind: ['user'],
|
|
526
|
+
registered: ['unregistered'],
|
|
527
|
+
}),
|
|
528
|
+
Schema.optional,
|
|
529
|
+
),
|
|
530
|
+
});
|
|
531
|
+
|
|
532
|
+
export const UseStaticSchema = Operation.make({
|
|
533
|
+
meta: {
|
|
534
|
+
key: `${SPACE_OPERATION}/use-static-schema`,
|
|
535
|
+
name: 'Use Static Schema',
|
|
536
|
+
description: 'Use a static schema in the space.',
|
|
537
|
+
},
|
|
538
|
+
services: [Capability.Service, Plugin.Service],
|
|
539
|
+
schema: {
|
|
540
|
+
input: Schema.Struct({
|
|
541
|
+
db: Database.Database,
|
|
542
|
+
typename: Schema.String,
|
|
543
|
+
show: Schema.optional(Schema.Boolean),
|
|
544
|
+
}),
|
|
545
|
+
output: Schema.Struct({}),
|
|
546
|
+
},
|
|
378
547
|
});
|
|
379
548
|
|
|
380
|
-
export
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
549
|
+
export const AddSchema = Operation.make({
|
|
550
|
+
meta: {
|
|
551
|
+
key: `${SPACE_OPERATION}/add-schema`,
|
|
552
|
+
name: 'Add Schema',
|
|
553
|
+
description: 'Add a schema to the space.',
|
|
554
|
+
},
|
|
555
|
+
services: [Capability.Service, Plugin.Service],
|
|
556
|
+
schema: {
|
|
557
|
+
input: Schema.Struct({
|
|
558
|
+
db: Database.Database,
|
|
559
|
+
name: Schema.optional(Schema.String),
|
|
560
|
+
typename: Schema.optional(Schema.String),
|
|
561
|
+
version: Schema.optional(Schema.String),
|
|
562
|
+
// TODO(wittjosiah): Schema for schema?
|
|
563
|
+
schema: Schema.Any,
|
|
564
|
+
show: Schema.optional(Schema.Boolean),
|
|
565
|
+
}),
|
|
566
|
+
output: Schema.Struct({
|
|
567
|
+
id: Schema.String,
|
|
568
|
+
object: Type.PersistentType,
|
|
569
|
+
schema: Schema.instanceOf(Type.RuntimeType),
|
|
570
|
+
}),
|
|
571
|
+
},
|
|
572
|
+
});
|
|
573
|
+
|
|
574
|
+
export const AddRelation = Operation.make({
|
|
575
|
+
meta: {
|
|
576
|
+
key: `${SPACE_OPERATION}/add-relation`,
|
|
577
|
+
name: 'Add Relation',
|
|
578
|
+
description: 'Add a relation between objects.',
|
|
579
|
+
},
|
|
580
|
+
services: [Capability.Service],
|
|
581
|
+
schema: {
|
|
582
|
+
input: Schema.Struct({
|
|
583
|
+
db: Database.Database,
|
|
584
|
+
// TODO(wittjosiah): Relation schema.
|
|
585
|
+
schema: Schema.Any,
|
|
586
|
+
source: Type.Obj,
|
|
587
|
+
target: Type.Obj,
|
|
588
|
+
// TODO(wittjosiah): Type based on relation schema.
|
|
589
|
+
fields: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),
|
|
590
|
+
}),
|
|
384
591
|
output: Schema.Struct({
|
|
385
|
-
|
|
386
|
-
object: EchoObjectSchema, // DataType.QueryCollection,
|
|
592
|
+
relation: Schema.Any,
|
|
387
593
|
}),
|
|
388
594
|
},
|
|
389
|
-
)
|
|
595
|
+
});
|
|
596
|
+
|
|
597
|
+
// TODO(wittjosiah): This appears to be unused.
|
|
598
|
+
export const DuplicateObject = Operation.make({
|
|
599
|
+
meta: {
|
|
600
|
+
key: `${SPACE_OPERATION}/duplicate-object`,
|
|
601
|
+
name: 'Duplicate Object',
|
|
602
|
+
description: 'Duplicate an object.',
|
|
603
|
+
},
|
|
604
|
+
services: [Capability.Service],
|
|
605
|
+
schema: {
|
|
606
|
+
input: Schema.Struct({
|
|
607
|
+
object: Type.Obj,
|
|
608
|
+
target: Schema.Union(Database.Database, Collection.Collection),
|
|
609
|
+
}),
|
|
610
|
+
output: Schema.Void,
|
|
611
|
+
},
|
|
612
|
+
});
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Restore a deleted field to a view (inverse of DeleteField).
|
|
616
|
+
*/
|
|
617
|
+
export const RestoreField = Operation.make({
|
|
618
|
+
meta: {
|
|
619
|
+
key: `${SPACE_OPERATION}/restore-field`,
|
|
620
|
+
name: 'Restore Field',
|
|
621
|
+
description: 'Restore a deleted field to a view.',
|
|
622
|
+
},
|
|
623
|
+
services: [Capability.Service],
|
|
624
|
+
schema: {
|
|
625
|
+
input: Schema.Struct({
|
|
626
|
+
view: View.View.annotations({ description: 'The view to restore the field to.' }),
|
|
627
|
+
field: FieldSchema.annotations({ description: 'The field schema to restore.' }),
|
|
628
|
+
// TODO(wittjosiah): This creates a type error with PropertySchema.
|
|
629
|
+
props: Schema.Any.annotations({ description: 'The field properties to restore.' }),
|
|
630
|
+
index: Schema.Number.annotations({ description: 'The index to restore the field at.' }),
|
|
631
|
+
}),
|
|
632
|
+
output: Schema.Void,
|
|
633
|
+
},
|
|
634
|
+
});
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Restore deleted objects to a space (inverse of RemoveObjects).
|
|
638
|
+
*/
|
|
639
|
+
export const RestoreObjects = Operation.make({
|
|
640
|
+
meta: {
|
|
641
|
+
key: `${SPACE_OPERATION}/restore-objects`,
|
|
642
|
+
name: 'Restore Objects',
|
|
643
|
+
description: 'Restore deleted objects to a space.',
|
|
644
|
+
},
|
|
645
|
+
services: [Capability.Service],
|
|
646
|
+
schema: {
|
|
647
|
+
input: Schema.Struct({
|
|
648
|
+
objects: Schema.Array(Type.Obj).annotations({ description: 'The objects to restore.' }),
|
|
649
|
+
parentCollection: Collection.Collection.annotations({ description: 'The collection to restore to.' }),
|
|
650
|
+
indices: Schema.Array(Schema.Number).annotations({ description: 'The indices to restore at.' }),
|
|
651
|
+
nestedObjectsList: Schema.Array(Schema.Array(Type.Obj)).annotations({
|
|
652
|
+
description: 'Nested objects to restore.',
|
|
653
|
+
}),
|
|
654
|
+
wasActive: Schema.Array(Schema.String).annotations({
|
|
655
|
+
description: 'IDs of objects that were active before deletion.',
|
|
656
|
+
}),
|
|
657
|
+
}),
|
|
658
|
+
output: Schema.Void,
|
|
659
|
+
},
|
|
660
|
+
});
|
|
390
661
|
}
|