@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
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SPACE_TYPE,
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
SpaceOperation
|
|
4
|
+
} from "./chunk-CCRSHECL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
meta
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HSMQFM57.mjs";
|
|
8
8
|
|
|
9
9
|
// src/util.tsx
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import { Obj, Ref, Type } from "@dxos/echo";
|
|
14
|
-
import { EXPANDO_TYPENAME } from "@dxos/echo/internal";
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
import { Common } from "@dxos/app-framework";
|
|
12
|
+
import { SpaceState, isSpace } from "@dxos/client/echo";
|
|
13
|
+
import { Filter, Obj, Query, Ref, Type } from "@dxos/echo";
|
|
15
14
|
import { invariant } from "@dxos/invariant";
|
|
16
15
|
import { Migrations } from "@dxos/migrations";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { ATTENDABLE_PATH_SEPARATOR } from "@dxos/react-ui-attention";
|
|
20
|
-
import {
|
|
16
|
+
import { Operation } from "@dxos/operation";
|
|
17
|
+
import { Graph, Node } from "@dxos/plugin-graph";
|
|
18
|
+
import { ATTENDABLE_PATH_SEPARATOR } from "@dxos/react-ui-attention/types";
|
|
19
|
+
import { Collection, Expando } from "@dxos/schema";
|
|
20
|
+
import { createFilename } from "@dxos/util";
|
|
21
21
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-space/src/util.tsx";
|
|
22
22
|
var SPACES = `${meta.id}-spaces`;
|
|
23
23
|
var COMPOSER_SPACE_LOCK = `${meta.id}/lock`;
|
|
24
24
|
var SHARED = "shared-spaces";
|
|
25
|
-
var rxFromQuery = (query) => {
|
|
26
|
-
return Rx.make((get) => {
|
|
27
|
-
const unsubscribe = query.subscribe((result) => {
|
|
28
|
-
get.setSelf(result.objects);
|
|
29
|
-
});
|
|
30
|
-
get.addFinalizer(() => unsubscribe());
|
|
31
|
-
return query.objects;
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
25
|
var getSpaceDisplayName = (space, { personal, namesCache = {} } = {}) => {
|
|
35
26
|
return space.state.get() === SpaceState.SPACE_READY && (space.properties.name?.length ?? 0) > 0 ? space.properties.name : namesCache[space.id] ? namesCache[space.id] : personal ? [
|
|
36
27
|
"personal space label",
|
|
@@ -44,64 +35,66 @@ var getSpaceDisplayName = (space, { personal, namesCache = {} } = {}) => {
|
|
|
44
35
|
}
|
|
45
36
|
];
|
|
46
37
|
};
|
|
47
|
-
var getCollectionGraphNodePartials = ({ collection,
|
|
38
|
+
var getCollectionGraphNodePartials = ({ collection, db, resolve }) => {
|
|
48
39
|
return {
|
|
49
40
|
acceptPersistenceClass: /* @__PURE__ */ new Set([
|
|
50
41
|
"echo"
|
|
51
42
|
]),
|
|
52
43
|
acceptPersistenceKey: /* @__PURE__ */ new Set([
|
|
53
|
-
|
|
44
|
+
db.spaceId
|
|
54
45
|
]),
|
|
55
46
|
role: "branch",
|
|
56
|
-
onRearrangeChildren: (nextOrder) => {
|
|
57
|
-
collection.objects = nextOrder.filter(Obj.isObject).map(Ref.make);
|
|
58
|
-
},
|
|
59
47
|
onTransferStart: (child, index) => {
|
|
60
|
-
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
48
|
+
Obj.change(collection, (c) => {
|
|
49
|
+
if (!c.objects.find((object) => object.target === child.data)) {
|
|
50
|
+
if (typeof index !== "undefined") {
|
|
51
|
+
c.objects.splice(index, 0, Ref.make(child.data));
|
|
52
|
+
} else {
|
|
53
|
+
c.objects.push(Ref.make(child.data));
|
|
54
|
+
}
|
|
65
55
|
}
|
|
66
|
-
}
|
|
56
|
+
});
|
|
67
57
|
},
|
|
68
58
|
onTransferEnd: (child, destination) => {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
Obj.change(collection, (c) => {
|
|
60
|
+
const index = c.objects.findIndex((object) => object.target === child.data);
|
|
61
|
+
if (index > -1) {
|
|
62
|
+
c.objects.splice(index, 1);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
73
65
|
},
|
|
74
66
|
onCopy: async (child, index) => {
|
|
75
|
-
const newObject = await cloneObject(child.data, resolve,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
67
|
+
const newObject = await cloneObject(child.data, resolve, db);
|
|
68
|
+
db.add(newObject);
|
|
69
|
+
Obj.change(collection, (c) => {
|
|
70
|
+
if (typeof index !== "undefined") {
|
|
71
|
+
c.objects.splice(index, 0, Ref.make(newObject));
|
|
72
|
+
} else {
|
|
73
|
+
c.objects.push(Ref.make(newObject));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
82
76
|
}
|
|
83
77
|
};
|
|
84
78
|
};
|
|
85
|
-
var
|
|
86
|
-
const
|
|
87
|
-
const metadata = typename ? resolve(typename) : {};
|
|
79
|
+
var getSystemCollectionNodePartials = ({ collection, db, resolve }) => {
|
|
80
|
+
const metadata = resolve(collection.key);
|
|
88
81
|
return {
|
|
82
|
+
label: [
|
|
83
|
+
"typename label",
|
|
84
|
+
{
|
|
85
|
+
ns: collection.key,
|
|
86
|
+
count: 2
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
89
|
icon: metadata.icon,
|
|
90
90
|
iconHue: metadata.iconHue,
|
|
91
91
|
acceptPersistenceClass: /* @__PURE__ */ new Set([
|
|
92
92
|
"echo"
|
|
93
93
|
]),
|
|
94
94
|
acceptPersistenceKey: /* @__PURE__ */ new Set([
|
|
95
|
-
|
|
95
|
+
db.spaceId
|
|
96
96
|
]),
|
|
97
|
-
role: "branch"
|
|
98
|
-
canDrop: (source) => {
|
|
99
|
-
return isGraphNode(source.item) && Obj.isObject(source.item.data) && Obj.getTypename(source.item.data) === typename;
|
|
100
|
-
},
|
|
101
|
-
onTransferStart: (child, index) => {
|
|
102
|
-
},
|
|
103
|
-
onTransferEnd: (child, destination) => {
|
|
104
|
-
}
|
|
97
|
+
role: "branch"
|
|
105
98
|
};
|
|
106
99
|
};
|
|
107
100
|
var getSchemaGraphNodePartials = () => {
|
|
@@ -110,34 +103,23 @@ var getSchemaGraphNodePartials = () => {
|
|
|
110
103
|
canDrop: () => false
|
|
111
104
|
};
|
|
112
105
|
};
|
|
113
|
-
var getViewGraphNodePartials = ({ view, resolve }) => {
|
|
114
|
-
const presentation = view.presentation.target;
|
|
115
|
-
const typename = presentation ? Obj.getTypename(presentation) : void 0;
|
|
116
|
-
const metadata = typename ? resolve(typename) : {};
|
|
117
|
-
return {
|
|
118
|
-
label: view.name || [
|
|
119
|
-
"object name placeholder",
|
|
120
|
-
{
|
|
121
|
-
ns: typename,
|
|
122
|
-
default: "New view"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
icon: metadata.icon,
|
|
126
|
-
iconHue: metadata.iconHue,
|
|
127
|
-
canDrop: () => false
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
106
|
var checkPendingMigration = (space) => {
|
|
131
107
|
return space.state.get() === SpaceState.SPACE_REQUIRES_MIGRATION || space.state.get() === SpaceState.SPACE_READY && !!Migrations.versionProperty && space.properties[Migrations.versionProperty] !== Migrations.targetVersion;
|
|
132
108
|
};
|
|
133
|
-
var constructSpaceNode = ({ space, navigable = false, personal, namesCache, resolve }) => {
|
|
109
|
+
var constructSpaceNode = ({ space, navigable = false, personal, namesCache, resolve, graph, spacesOrder }) => {
|
|
134
110
|
const hasPendingMigration = checkPendingMigration(space);
|
|
135
|
-
const collection = space.state.get() === SpaceState.SPACE_READY && space.properties[
|
|
136
|
-
const partials = space.state.get() === SpaceState.SPACE_READY && Obj.instanceOf(
|
|
111
|
+
const collection = space.state.get() === SpaceState.SPACE_READY && space.properties[Collection.Collection.typename]?.target;
|
|
112
|
+
const partials = space.state.get() === SpaceState.SPACE_READY && Obj.instanceOf(Collection.Collection, collection) ? getCollectionGraphNodePartials({
|
|
137
113
|
collection,
|
|
138
|
-
space,
|
|
114
|
+
db: space.db,
|
|
139
115
|
resolve
|
|
140
116
|
}) : {};
|
|
117
|
+
const onRearrange = graph && spacesOrder ? (nextOrder) => {
|
|
118
|
+
Graph.sortEdges(graph, Node.RootId, "outbound", nextOrder.map(({ id }) => id));
|
|
119
|
+
Obj.change(spacesOrder, (mutableOrder) => {
|
|
120
|
+
mutableOrder.order = nextOrder.map(({ id }) => id);
|
|
121
|
+
});
|
|
122
|
+
} : void 0;
|
|
141
123
|
return {
|
|
142
124
|
id: space.id,
|
|
143
125
|
type: SPACE_TYPE,
|
|
@@ -158,7 +140,9 @@ var constructSpaceNode = ({ space, navigable = false, personal, namesCache, reso
|
|
|
158
140
|
icon: space.state.get() === SpaceState.SPACE_READY && space.properties.icon ? `ph--${space.properties.icon}--regular` : void 0,
|
|
159
141
|
iconHue: space.state.get() === SpaceState.SPACE_READY && space.properties.iconHue,
|
|
160
142
|
disabled: !navigable || space.state.get() !== SpaceState.SPACE_READY || hasPendingMigration,
|
|
143
|
+
disposition: "workspace",
|
|
161
144
|
testId: "spacePlugin.space",
|
|
145
|
+
onRearrange,
|
|
162
146
|
canDrop: (source) => {
|
|
163
147
|
return Obj.isObject(source.item.data) || isSpace(source.item.data);
|
|
164
148
|
}
|
|
@@ -191,7 +175,8 @@ var constructSpaceNode = ({ space, navigable = false, personal, namesCache, reso
|
|
|
191
175
|
}
|
|
192
176
|
],
|
|
193
177
|
icon: "ph--sliders--regular",
|
|
194
|
-
position: "hoist"
|
|
178
|
+
position: "hoist",
|
|
179
|
+
testId: "spacePlugin.general"
|
|
195
180
|
}
|
|
196
181
|
},
|
|
197
182
|
{
|
|
@@ -206,7 +191,8 @@ var constructSpaceNode = ({ space, navigable = false, personal, namesCache, reso
|
|
|
206
191
|
}
|
|
207
192
|
],
|
|
208
193
|
icon: "ph--users--regular",
|
|
209
|
-
position: "hoist"
|
|
194
|
+
position: "hoist",
|
|
195
|
+
testId: "spacePlugin.members"
|
|
210
196
|
}
|
|
211
197
|
},
|
|
212
198
|
{
|
|
@@ -220,7 +206,8 @@ var constructSpaceNode = ({ space, navigable = false, personal, namesCache, reso
|
|
|
220
206
|
ns: meta.id
|
|
221
207
|
}
|
|
222
208
|
],
|
|
223
|
-
icon: "ph--shapes--regular"
|
|
209
|
+
icon: "ph--shapes--regular",
|
|
210
|
+
testId: "spacePlugin.schema"
|
|
224
211
|
}
|
|
225
212
|
}
|
|
226
213
|
]
|
|
@@ -228,20 +215,18 @@ var constructSpaceNode = ({ space, navigable = false, personal, namesCache, reso
|
|
|
228
215
|
]
|
|
229
216
|
};
|
|
230
217
|
};
|
|
231
|
-
var constructSpaceActions = ({ space,
|
|
218
|
+
var constructSpaceActions = ({ space, personal, migrating }) => {
|
|
232
219
|
const state = space.state.get();
|
|
233
220
|
const hasPendingMigration = checkPendingMigration(space);
|
|
234
221
|
const getId = (id) => `${id}/${space.id}`;
|
|
235
222
|
const actions = [];
|
|
236
223
|
if (hasPendingMigration) {
|
|
237
224
|
actions.push({
|
|
238
|
-
id: getId(
|
|
239
|
-
type:
|
|
240
|
-
data:
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}));
|
|
244
|
-
},
|
|
225
|
+
id: getId(SpaceOperation.Migrate.meta.key),
|
|
226
|
+
type: Node.ActionGroupType,
|
|
227
|
+
data: () => Operation.invoke(SpaceOperation.Migrate, {
|
|
228
|
+
space
|
|
229
|
+
}),
|
|
245
230
|
properties: {
|
|
246
231
|
label: [
|
|
247
232
|
"migrate space label",
|
|
@@ -257,13 +242,11 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
257
242
|
}
|
|
258
243
|
if (state === SpaceState.SPACE_READY && !hasPendingMigration) {
|
|
259
244
|
actions.push({
|
|
260
|
-
id: getId(
|
|
261
|
-
type:
|
|
262
|
-
data:
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}));
|
|
266
|
-
},
|
|
245
|
+
id: getId(SpaceOperation.OpenCreateObject.meta.key),
|
|
246
|
+
type: Node.ActionType,
|
|
247
|
+
data: () => Operation.invoke(SpaceOperation.OpenCreateObject, {
|
|
248
|
+
target: space.db
|
|
249
|
+
}),
|
|
267
250
|
properties: {
|
|
268
251
|
label: [
|
|
269
252
|
"create object in space label",
|
|
@@ -276,14 +259,12 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
276
259
|
testId: "spacePlugin.createObject"
|
|
277
260
|
}
|
|
278
261
|
}, {
|
|
279
|
-
id: getId(
|
|
280
|
-
type:
|
|
281
|
-
data:
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}));
|
|
286
|
-
},
|
|
262
|
+
id: getId(SpaceOperation.Rename.meta.key),
|
|
263
|
+
type: Node.ActionType,
|
|
264
|
+
data: (params) => Operation.invoke(SpaceOperation.Rename, {
|
|
265
|
+
space,
|
|
266
|
+
caller: params?.caller
|
|
267
|
+
}),
|
|
287
268
|
properties: {
|
|
288
269
|
label: [
|
|
289
270
|
"rename space label",
|
|
@@ -311,6 +292,7 @@ var createStaticSchemaNode = ({ schema, space }) => {
|
|
|
311
292
|
"typename label",
|
|
312
293
|
{
|
|
313
294
|
ns: Type.getTypename(schema),
|
|
295
|
+
count: 2,
|
|
314
296
|
default: Type.getTypename(schema)
|
|
315
297
|
}
|
|
316
298
|
],
|
|
@@ -323,26 +305,24 @@ var createStaticSchemaNode = ({ schema, space }) => {
|
|
|
323
305
|
}
|
|
324
306
|
};
|
|
325
307
|
};
|
|
326
|
-
var createStaticSchemaActions = ({ schema, space,
|
|
308
|
+
var createStaticSchemaActions = ({ schema, space, deletable }) => {
|
|
327
309
|
const getId = (id) => `${space.id}/${Type.getTypename(schema)}/${id}`;
|
|
328
310
|
const actions = [
|
|
329
311
|
{
|
|
330
|
-
id: getId(
|
|
331
|
-
type:
|
|
332
|
-
data:
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}));
|
|
340
|
-
},
|
|
312
|
+
id: getId(SpaceOperation.AddObject.meta.key),
|
|
313
|
+
type: Node.ActionType,
|
|
314
|
+
data: () => Operation.invoke(SpaceOperation.OpenCreateObject, {
|
|
315
|
+
target: space.db,
|
|
316
|
+
views: true,
|
|
317
|
+
initialFormValues: {
|
|
318
|
+
typename: Type.getTypename(schema)
|
|
319
|
+
}
|
|
320
|
+
}),
|
|
341
321
|
properties: {
|
|
342
322
|
label: [
|
|
343
323
|
"add view to schema label",
|
|
344
324
|
{
|
|
345
|
-
ns:
|
|
325
|
+
ns: meta.id
|
|
346
326
|
}
|
|
347
327
|
],
|
|
348
328
|
icon: "ph--plus--regular",
|
|
@@ -351,16 +331,14 @@ var createStaticSchemaActions = ({ schema, space, dispatch, deletable }) => {
|
|
|
351
331
|
}
|
|
352
332
|
},
|
|
353
333
|
{
|
|
354
|
-
id: getId(
|
|
355
|
-
type:
|
|
356
|
-
data:
|
|
357
|
-
throw new Error("Not implemented");
|
|
358
|
-
},
|
|
334
|
+
id: getId(SpaceOperation.RenameObject.meta.key),
|
|
335
|
+
type: Node.ActionType,
|
|
336
|
+
data: () => Effect.fail(new Error("Not implemented")),
|
|
359
337
|
properties: {
|
|
360
338
|
label: [
|
|
361
339
|
"rename object label",
|
|
362
340
|
{
|
|
363
|
-
ns: Type.getTypename(
|
|
341
|
+
ns: Type.getTypename(Type.PersistentType)
|
|
364
342
|
}
|
|
365
343
|
],
|
|
366
344
|
icon: "ph--pencil-simple-line--regular",
|
|
@@ -370,19 +348,21 @@ var createStaticSchemaActions = ({ schema, space, dispatch, deletable }) => {
|
|
|
370
348
|
}
|
|
371
349
|
},
|
|
372
350
|
{
|
|
373
|
-
id: getId(
|
|
374
|
-
type:
|
|
375
|
-
data:
|
|
351
|
+
id: getId(SpaceOperation.RemoveObjects.meta.key),
|
|
352
|
+
type: Node.ActionType,
|
|
353
|
+
data: () => Effect.sync(() => {
|
|
376
354
|
const index = space.properties.staticRecords.findIndex((typename) => typename === Type.getTypename(schema));
|
|
377
355
|
if (index > -1) {
|
|
378
|
-
space.properties
|
|
356
|
+
Obj.change(space.properties, (p) => {
|
|
357
|
+
p.staticRecords.splice(index, 1);
|
|
358
|
+
});
|
|
379
359
|
}
|
|
380
|
-
},
|
|
360
|
+
}),
|
|
381
361
|
properties: {
|
|
382
362
|
label: [
|
|
383
363
|
"delete object label",
|
|
384
364
|
{
|
|
385
|
-
ns: Type.getTypename(
|
|
365
|
+
ns: Type.getTypename(Type.PersistentType)
|
|
386
366
|
}
|
|
387
367
|
],
|
|
388
368
|
icon: "ph--trash--regular",
|
|
@@ -390,28 +370,54 @@ var createStaticSchemaActions = ({ schema, space, dispatch, deletable }) => {
|
|
|
390
370
|
disabled: !deletable,
|
|
391
371
|
testId: "spacePlugin.deleteObject"
|
|
392
372
|
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
id: getId(SpaceOperation.Snapshot.meta.key),
|
|
376
|
+
type: Node.ActionType,
|
|
377
|
+
data: Effect.fnUntraced(function* () {
|
|
378
|
+
const result = yield* Operation.invoke(SpaceOperation.Snapshot, {
|
|
379
|
+
db: space.db,
|
|
380
|
+
query: Query.select(Filter.type(schema)).ast
|
|
381
|
+
});
|
|
382
|
+
if (result.snapshot) {
|
|
383
|
+
yield* Effect.tryPromise(() => downloadBlob(result.snapshot, createFilename({
|
|
384
|
+
parts: [
|
|
385
|
+
space.id,
|
|
386
|
+
Type.getTypename(schema)
|
|
387
|
+
],
|
|
388
|
+
ext: "json"
|
|
389
|
+
})));
|
|
390
|
+
}
|
|
391
|
+
}),
|
|
392
|
+
properties: {
|
|
393
|
+
label: [
|
|
394
|
+
"snapshot by schema label",
|
|
395
|
+
{
|
|
396
|
+
ns: meta.id
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
icon: "ph--camera--regular",
|
|
400
|
+
disposition: "list-item"
|
|
401
|
+
}
|
|
393
402
|
}
|
|
394
403
|
];
|
|
395
404
|
return actions;
|
|
396
405
|
};
|
|
397
|
-
var createObjectNode = ({
|
|
406
|
+
var createObjectNode = ({ db, object, disposition, droppable = true, navigable = false, managedCollectionChild = false, resolve, parentCollection }) => {
|
|
398
407
|
const type = Obj.getTypename(object);
|
|
399
408
|
if (!type) {
|
|
400
409
|
return null;
|
|
401
410
|
}
|
|
402
411
|
const metadata = resolve(type);
|
|
403
|
-
const partials = Obj.instanceOf(
|
|
412
|
+
const partials = Obj.instanceOf(Collection.Collection, object) ? getCollectionGraphNodePartials({
|
|
404
413
|
collection: object,
|
|
405
|
-
|
|
414
|
+
db,
|
|
406
415
|
resolve
|
|
407
|
-
}) : Obj.instanceOf(
|
|
416
|
+
}) : Obj.instanceOf(Collection.Managed, object) ? getSystemCollectionNodePartials({
|
|
408
417
|
collection: object,
|
|
409
|
-
|
|
418
|
+
db,
|
|
410
419
|
resolve
|
|
411
|
-
}) : Obj.instanceOf(
|
|
412
|
-
view: object,
|
|
413
|
-
resolve
|
|
414
|
-
}) : metadata.graphProps;
|
|
420
|
+
}) : Obj.instanceOf(Type.PersistentType, object) ? getSchemaGraphNodePartials() : metadata.graphProps;
|
|
415
421
|
const label = object.name || Obj.getLabel(object) || // TODO(wittjosiah): Remove metadata labels.
|
|
416
422
|
metadata.label?.(object) || [
|
|
417
423
|
"object name placeholder",
|
|
@@ -420,9 +426,9 @@ var createObjectNode = ({ space, object, disposition, droppable = true, navigabl
|
|
|
420
426
|
default: "New item"
|
|
421
427
|
}
|
|
422
428
|
];
|
|
423
|
-
const selectable = !Obj.instanceOf(
|
|
429
|
+
const selectable = !Obj.instanceOf(Type.PersistentType, object) && !Obj.instanceOf(Collection.Managed, object) && !Obj.instanceOf(Collection.Collection, object) || navigable && Obj.instanceOf(Collection.Collection, object);
|
|
424
430
|
return {
|
|
425
|
-
id:
|
|
431
|
+
id: Obj.getDXN(object).toString(),
|
|
426
432
|
type,
|
|
427
433
|
cacheable: [
|
|
428
434
|
"label",
|
|
@@ -437,49 +443,64 @@ var createObjectNode = ({ space, object, disposition, droppable = true, navigabl
|
|
|
437
443
|
disposition,
|
|
438
444
|
testId: "spacePlugin.object",
|
|
439
445
|
persistenceClass: "echo",
|
|
440
|
-
persistenceKey:
|
|
446
|
+
persistenceKey: db.spaceId,
|
|
441
447
|
selectable,
|
|
448
|
+
managedCollectionChild,
|
|
449
|
+
onRearrange: parentCollection ? (nextOrder) => {
|
|
450
|
+
Obj.change(parentCollection, (c) => {
|
|
451
|
+
c.objects = nextOrder.filter(Obj.isObject).map(Ref.make);
|
|
452
|
+
});
|
|
453
|
+
} : void 0,
|
|
454
|
+
blockInstruction: (source, instruction) => {
|
|
455
|
+
if (source.item.properties.managedCollectionChild) {
|
|
456
|
+
return true;
|
|
457
|
+
}
|
|
458
|
+
if (Obj.instanceOf(Collection.Managed, object)) {
|
|
459
|
+
return !instruction.type.startsWith("reorder");
|
|
460
|
+
}
|
|
461
|
+
return managedCollectionChild;
|
|
462
|
+
},
|
|
442
463
|
canDrop: (source) => {
|
|
443
|
-
return droppable && isGraphNode(source.item) && Obj.isObject(source.item.data);
|
|
464
|
+
return droppable && Node.isGraphNode(source.item) && Obj.isObject(source.item.data);
|
|
444
465
|
},
|
|
445
466
|
...partials
|
|
446
467
|
}
|
|
447
468
|
};
|
|
448
469
|
};
|
|
449
|
-
var constructObjectActions = ({ object, graph,
|
|
450
|
-
const
|
|
451
|
-
invariant(
|
|
470
|
+
var constructObjectActions = ({ object, graph, resolve, capabilities, deletable = true, navigable = false }) => {
|
|
471
|
+
const db = Obj.getDatabase(object);
|
|
472
|
+
invariant(db, "Database not found", {
|
|
452
473
|
F: __dxlog_file,
|
|
453
|
-
L:
|
|
474
|
+
L: 544,
|
|
454
475
|
S: void 0,
|
|
455
476
|
A: [
|
|
456
|
-
"
|
|
457
|
-
"'
|
|
477
|
+
"db",
|
|
478
|
+
"'Database not found'"
|
|
458
479
|
]
|
|
459
480
|
});
|
|
460
481
|
const typename = Obj.getTypename(object);
|
|
461
482
|
invariant(typename, "Object has no typename", {
|
|
462
483
|
F: __dxlog_file,
|
|
463
|
-
L:
|
|
484
|
+
L: 546,
|
|
464
485
|
S: void 0,
|
|
465
486
|
A: [
|
|
466
487
|
"typename",
|
|
467
488
|
"'Object has no typename'"
|
|
468
489
|
]
|
|
469
490
|
});
|
|
470
|
-
const getId = (id) => `${id}/${
|
|
471
|
-
const
|
|
472
|
-
const
|
|
491
|
+
const getId = (id) => `${id}/${Obj.getDXN(object).toString()}`;
|
|
492
|
+
const managedCollection = Obj.instanceOf(Collection.Managed, object) ? object : void 0;
|
|
493
|
+
const metadata = managedCollection ? resolve(managedCollection.key) : {};
|
|
494
|
+
const createObject = metadata.createObject;
|
|
495
|
+
const inputSchema = metadata.inputSchema;
|
|
473
496
|
const actions = [
|
|
474
|
-
...Obj.instanceOf(
|
|
497
|
+
...Obj.instanceOf(Collection.Collection, object) ? [
|
|
475
498
|
{
|
|
476
|
-
id: getId(
|
|
477
|
-
type:
|
|
478
|
-
data:
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
}));
|
|
482
|
-
},
|
|
499
|
+
id: getId(SpaceOperation.OpenCreateObject.meta.key),
|
|
500
|
+
type: Node.ActionType,
|
|
501
|
+
data: () => Operation.invoke(SpaceOperation.OpenCreateObject, {
|
|
502
|
+
target: object
|
|
503
|
+
}),
|
|
483
504
|
properties: {
|
|
484
505
|
label: [
|
|
485
506
|
"create object in collection label",
|
|
@@ -493,56 +514,91 @@ var constructObjectActions = ({ object, graph, dispatch, objectForms, deletable
|
|
|
493
514
|
}
|
|
494
515
|
}
|
|
495
516
|
] : [],
|
|
496
|
-
...Obj.instanceOf(
|
|
517
|
+
...Obj.instanceOf(Type.PersistentType, object) ? [
|
|
497
518
|
{
|
|
498
|
-
id: getId(
|
|
499
|
-
type:
|
|
500
|
-
data:
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
}));
|
|
508
|
-
},
|
|
519
|
+
id: getId(SpaceOperation.AddObject.meta.key),
|
|
520
|
+
type: Node.ActionType,
|
|
521
|
+
data: () => Operation.invoke(SpaceOperation.OpenCreateObject, {
|
|
522
|
+
target: db,
|
|
523
|
+
views: true,
|
|
524
|
+
initialFormValues: {
|
|
525
|
+
typename: object.typename
|
|
526
|
+
}
|
|
527
|
+
}),
|
|
509
528
|
properties: {
|
|
510
529
|
label: [
|
|
511
530
|
"add view to schema label",
|
|
512
531
|
{
|
|
513
|
-
ns:
|
|
532
|
+
ns: meta.id
|
|
514
533
|
}
|
|
515
534
|
],
|
|
516
535
|
icon: "ph--plus--regular",
|
|
517
536
|
disposition: "list-item-primary",
|
|
518
537
|
testId: "spacePlugin.addViewToSchema"
|
|
519
538
|
}
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
id: getId(SpaceOperation.Snapshot.meta.key),
|
|
542
|
+
type: Node.ActionType,
|
|
543
|
+
data: Effect.fnUntraced(function* () {
|
|
544
|
+
const result = yield* Operation.invoke(SpaceOperation.Snapshot, {
|
|
545
|
+
db,
|
|
546
|
+
query: Query.select(Filter.type(Type.toEffectSchema(object.jsonSchema))).ast
|
|
547
|
+
});
|
|
548
|
+
if (result.snapshot) {
|
|
549
|
+
yield* Effect.promise(() => downloadBlob(result.snapshot, createFilename({
|
|
550
|
+
parts: [
|
|
551
|
+
db.spaceId,
|
|
552
|
+
object.typename
|
|
553
|
+
],
|
|
554
|
+
ext: "json"
|
|
555
|
+
})));
|
|
556
|
+
}
|
|
557
|
+
}),
|
|
558
|
+
properties: {
|
|
559
|
+
label: [
|
|
560
|
+
"snapshot by schema label",
|
|
561
|
+
{
|
|
562
|
+
ns: meta.id
|
|
563
|
+
}
|
|
564
|
+
],
|
|
565
|
+
icon: "ph--camera--regular",
|
|
566
|
+
disposition: "list-item"
|
|
567
|
+
}
|
|
520
568
|
}
|
|
521
569
|
] : [],
|
|
522
|
-
...
|
|
570
|
+
...createObject ? [
|
|
523
571
|
{
|
|
524
|
-
id: getId(
|
|
525
|
-
type:
|
|
526
|
-
data:
|
|
527
|
-
if (
|
|
528
|
-
|
|
529
|
-
target:
|
|
530
|
-
typename:
|
|
531
|
-
})
|
|
572
|
+
id: getId(SpaceOperation.OpenCreateObject.meta.key),
|
|
573
|
+
type: Node.ActionType,
|
|
574
|
+
data: Effect.fnUntraced(function* () {
|
|
575
|
+
if (inputSchema) {
|
|
576
|
+
yield* Operation.invoke(SpaceOperation.OpenCreateObject, {
|
|
577
|
+
target: db,
|
|
578
|
+
typename: managedCollection ? managedCollection.key : void 0
|
|
579
|
+
});
|
|
532
580
|
} else {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
581
|
+
const createdObject = yield* createObject({}, {
|
|
582
|
+
db,
|
|
583
|
+
capabilities
|
|
584
|
+
});
|
|
585
|
+
const addResult = yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
586
|
+
target: db,
|
|
587
|
+
hidden: true,
|
|
588
|
+
object: createdObject
|
|
589
|
+
});
|
|
590
|
+
if (addResult.id) {
|
|
591
|
+
yield* Operation.invoke(Common.LayoutOperation.Open, {
|
|
592
|
+
subject: [
|
|
593
|
+
addResult.id
|
|
594
|
+
]
|
|
595
|
+
});
|
|
596
|
+
}
|
|
541
597
|
}
|
|
542
|
-
},
|
|
598
|
+
}),
|
|
543
599
|
properties: {
|
|
544
600
|
label: [
|
|
545
|
-
"create object in
|
|
601
|
+
"create object in system collection label",
|
|
546
602
|
{
|
|
547
603
|
ns: meta.id
|
|
548
604
|
}
|
|
@@ -553,66 +609,66 @@ var constructObjectActions = ({ object, graph, dispatch, objectForms, deletable
|
|
|
553
609
|
}
|
|
554
610
|
}
|
|
555
611
|
] : [],
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
612
|
+
...managedCollection ? [] : [
|
|
613
|
+
{
|
|
614
|
+
id: getId(SpaceOperation.RenameObject.meta.key),
|
|
615
|
+
type: Node.ActionType,
|
|
616
|
+
data: (params) => Operation.invoke(SpaceOperation.RenameObject, {
|
|
561
617
|
object,
|
|
562
618
|
caller: params?.caller
|
|
563
|
-
})
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}
|
|
571
|
-
],
|
|
572
|
-
icon: "ph--pencil-simple-line--regular",
|
|
573
|
-
disposition: "list-item",
|
|
574
|
-
// TODO(wittjosiah): Not working.
|
|
575
|
-
// keyBinding: {
|
|
576
|
-
// macos: 'shift+F6',
|
|
577
|
-
// },
|
|
578
|
-
testId: "spacePlugin.renameObject"
|
|
579
|
-
}
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
id: getId(SpaceAction.RemoveObjects._tag),
|
|
583
|
-
type: ACTION_TYPE,
|
|
584
|
-
data: async () => {
|
|
585
|
-
const collection = graph.getConnections(fullyQualifiedId(object), "inbound").find(({ data }) => Obj.instanceOf(DataType.Collection, data))?.data;
|
|
586
|
-
await dispatch(createIntent(SpaceAction.RemoveObjects, {
|
|
587
|
-
objects: [
|
|
588
|
-
object
|
|
619
|
+
}),
|
|
620
|
+
properties: {
|
|
621
|
+
label: [
|
|
622
|
+
"rename object label",
|
|
623
|
+
{
|
|
624
|
+
ns: typename
|
|
625
|
+
}
|
|
589
626
|
],
|
|
590
|
-
|
|
591
|
-
|
|
627
|
+
icon: "ph--pencil-simple-line--regular",
|
|
628
|
+
disposition: "list-item",
|
|
629
|
+
// TODO(wittjosiah): Not working.
|
|
630
|
+
// keyBinding: {
|
|
631
|
+
// macos: 'shift+F6',
|
|
632
|
+
// },
|
|
633
|
+
testId: "spacePlugin.renameObject"
|
|
634
|
+
}
|
|
592
635
|
},
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
636
|
+
{
|
|
637
|
+
id: getId(SpaceOperation.RemoveObjects.meta.key),
|
|
638
|
+
type: Node.ActionType,
|
|
639
|
+
data: Effect.fnUntraced(function* () {
|
|
640
|
+
const collection = Graph.getConnections(graph, Obj.getDXN(object).toString(), "inbound").find((node) => Obj.instanceOf(Collection.Collection, node.data))?.data;
|
|
641
|
+
yield* Operation.invoke(SpaceOperation.RemoveObjects, {
|
|
642
|
+
objects: [
|
|
643
|
+
object
|
|
644
|
+
],
|
|
645
|
+
target: collection
|
|
646
|
+
});
|
|
647
|
+
}),
|
|
648
|
+
properties: {
|
|
649
|
+
label: [
|
|
650
|
+
"delete object label",
|
|
651
|
+
{
|
|
652
|
+
ns: typename
|
|
653
|
+
}
|
|
654
|
+
],
|
|
655
|
+
icon: "ph--trash--regular",
|
|
656
|
+
disposition: "list-item",
|
|
657
|
+
disabled: !deletable,
|
|
658
|
+
// TODO(wittjosiah): This is a browser shortcut.
|
|
659
|
+
// keyBinding: object instanceof CollectionType ? undefined : 'shift+meta+Backspace',
|
|
660
|
+
testId: "spacePlugin.deleteObject"
|
|
661
|
+
}
|
|
606
662
|
}
|
|
607
|
-
|
|
608
|
-
...navigable || !Obj.instanceOf(
|
|
663
|
+
],
|
|
664
|
+
...navigable || !Obj.instanceOf(Collection.Collection, object) && !Obj.instanceOf(Collection.Managed, object) && !Obj.instanceOf(Type.PersistentType, object) ? [
|
|
609
665
|
{
|
|
610
666
|
id: getId("copy-link"),
|
|
611
|
-
type:
|
|
612
|
-
data: async () => {
|
|
613
|
-
const url = `${window.location.origin}/${
|
|
667
|
+
type: Node.ActionType,
|
|
668
|
+
data: () => Effect.promise(async () => {
|
|
669
|
+
const url = `${window.location.origin}/${db.spaceId}/${Obj.getDXN(object).toString()}`;
|
|
614
670
|
await navigator.clipboard.writeText(url);
|
|
615
|
-
},
|
|
671
|
+
}),
|
|
616
672
|
properties: {
|
|
617
673
|
label: [
|
|
618
674
|
"copy link label",
|
|
@@ -628,14 +684,11 @@ var constructObjectActions = ({ object, graph, dispatch, objectForms, deletable
|
|
|
628
684
|
] : [],
|
|
629
685
|
// TODO(wittjosiah): Factor out and apply to all nodes.
|
|
630
686
|
{
|
|
631
|
-
id: getId(
|
|
632
|
-
type:
|
|
633
|
-
data:
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
subject: fullyQualifiedId(object)
|
|
637
|
-
}));
|
|
638
|
-
},
|
|
687
|
+
id: getId(Common.LayoutOperation.Expose.meta.key),
|
|
688
|
+
type: Node.ActionType,
|
|
689
|
+
data: () => Operation.invoke(Common.LayoutOperation.Expose, {
|
|
690
|
+
subject: Obj.getDXN(object).toString()
|
|
691
|
+
}),
|
|
639
692
|
properties: {
|
|
640
693
|
label: [
|
|
641
694
|
"expose object label",
|
|
@@ -651,6 +704,16 @@ var constructObjectActions = ({ object, graph, dispatch, objectForms, deletable
|
|
|
651
704
|
];
|
|
652
705
|
return actions;
|
|
653
706
|
};
|
|
707
|
+
var downloadBlob = async (blob, filename) => {
|
|
708
|
+
const url = URL.createObjectURL(blob);
|
|
709
|
+
const a = document.createElement("a");
|
|
710
|
+
a.href = url;
|
|
711
|
+
a.download = filename;
|
|
712
|
+
document.body.appendChild(a);
|
|
713
|
+
a.click();
|
|
714
|
+
document.body.removeChild(a);
|
|
715
|
+
URL.revokeObjectURL(url);
|
|
716
|
+
};
|
|
654
717
|
var getNestedObjects = async (object, resolve) => {
|
|
655
718
|
const type = Obj.getTypename(object);
|
|
656
719
|
if (!type) {
|
|
@@ -668,14 +731,14 @@ var getNestedObjects = async (object, resolve) => {
|
|
|
668
731
|
...nested.flat()
|
|
669
732
|
];
|
|
670
733
|
};
|
|
671
|
-
var cloneObject = async (object, resolve,
|
|
734
|
+
var cloneObject = async (object, resolve, newDb) => {
|
|
672
735
|
const schema = Obj.getSchema(object);
|
|
673
|
-
const typename = schema ? Type.getTypename(schema) ??
|
|
736
|
+
const typename = schema ? Type.getTypename(schema) ?? Expando.Expando.typename : Expando.Expando.typename;
|
|
674
737
|
const metadata = resolve(typename);
|
|
675
738
|
const serializer = metadata.serializer;
|
|
676
739
|
invariant(serializer, `No serializer for type: ${typename}`, {
|
|
677
740
|
F: __dxlog_file,
|
|
678
|
-
L:
|
|
741
|
+
L: 776,
|
|
679
742
|
S: void 0,
|
|
680
743
|
A: [
|
|
681
744
|
"serializer",
|
|
@@ -687,7 +750,7 @@ var cloneObject = async (object, resolve, newSpace) => {
|
|
|
687
750
|
});
|
|
688
751
|
return serializer.deserialize({
|
|
689
752
|
content,
|
|
690
|
-
|
|
753
|
+
db: newDb,
|
|
691
754
|
newId: true
|
|
692
755
|
});
|
|
693
756
|
};
|
|
@@ -696,7 +759,6 @@ export {
|
|
|
696
759
|
SPACES,
|
|
697
760
|
COMPOSER_SPACE_LOCK,
|
|
698
761
|
SHARED,
|
|
699
|
-
rxFromQuery,
|
|
700
762
|
getSpaceDisplayName,
|
|
701
763
|
constructSpaceNode,
|
|
702
764
|
constructSpaceActions,
|
|
@@ -707,4 +769,4 @@ export {
|
|
|
707
769
|
getNestedObjects,
|
|
708
770
|
cloneObject
|
|
709
771
|
};
|
|
710
|
-
//# sourceMappingURL=chunk-
|
|
772
|
+
//# sourceMappingURL=chunk-SUI34XSA.mjs.map
|