@dxos/plugin-space 0.8.4-main.9735255 → 0.8.4-main.9be5663bfe
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/SpacePluginSettings-BHTDFW3O.mjs +47 -0
- package/dist/lib/browser/SpacePluginSettings-BHTDFW3O.mjs.map +7 -0
- package/dist/lib/browser/add-object-UUFWBSVJ.mjs +86 -0
- package/dist/lib/browser/add-object-UUFWBSVJ.mjs.map +7 -0
- package/dist/lib/browser/add-relation-LKD2TNKD.mjs +26 -0
- package/dist/lib/browser/add-relation-LKD2TNKD.mjs.map +7 -0
- package/dist/lib/browser/add-schema-5VZHKL5T.mjs +60 -0
- package/dist/lib/browser/add-schema-5VZHKL5T.mjs.map +7 -0
- package/dist/lib/browser/{chunk-HSMQFM57.mjs → chunk-5CKPBXLB.mjs} +2 -2
- package/dist/lib/browser/{chunk-HSMQFM57.mjs.map → chunk-5CKPBXLB.mjs.map} +1 -1
- package/dist/lib/browser/chunk-GNIQSANG.mjs +489 -0
- package/dist/lib/browser/chunk-GNIQSANG.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-JH2UWMN2.mjs +8 -0
- package/dist/lib/browser/chunk-JH2UWMN2.mjs.map +7 -0
- package/dist/lib/browser/chunk-VV4C4APQ.mjs +16 -0
- package/dist/lib/browser/chunk-VV4C4APQ.mjs.map +7 -0
- package/dist/lib/browser/chunk-WB3HNICB.mjs +98 -0
- package/dist/lib/browser/chunk-WB3HNICB.mjs.map +7 -0
- package/dist/lib/browser/chunk-YSV6LKD6.mjs +71 -0
- package/dist/lib/browser/chunk-YSV6LKD6.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +62 -63
- package/dist/lib/browser/cli/index.mjs.map +3 -3
- package/dist/lib/browser/close-5PRMRLNE.mjs +17 -0
- package/dist/lib/browser/close-5PRMRLNE.mjs.map +7 -0
- package/dist/lib/browser/create-CUMAKRH6.mjs +74 -0
- package/dist/lib/browser/create-CUMAKRH6.mjs.map +7 -0
- package/dist/lib/browser/delete-field-E7VR37AY.mjs +67 -0
- package/dist/lib/browser/delete-field-E7VR37AY.mjs.map +7 -0
- package/dist/lib/browser/duplicate-object-FEPM2FY4.mjs +42 -0
- package/dist/lib/browser/duplicate-object-FEPM2FY4.mjs.map +7 -0
- package/dist/lib/browser/get-share-link-7RPLVQ5E.mjs +41 -0
- package/dist/lib/browser/get-share-link-7RPLVQ5E.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +793 -226
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/join-OVC62STB.mjs +28 -0
- package/dist/lib/browser/join-OVC62STB.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +8 -0
- package/dist/lib/browser/meta.mjs.map +7 -0
- package/dist/lib/browser/migrate-CIMFYFPJ.mjs +50 -0
- package/dist/lib/browser/migrate-CIMFYFPJ.mjs.map +7 -0
- package/dist/lib/browser/open-G4XBPNNJ.mjs +17 -0
- package/dist/lib/browser/open-G4XBPNNJ.mjs.map +7 -0
- package/dist/lib/browser/open-create-object-KFR6ZM6M.mjs +42 -0
- package/dist/lib/browser/open-create-object-KFR6ZM6M.mjs.map +7 -0
- package/dist/lib/browser/open-create-space-ICQYYDPT.mjs +24 -0
- package/dist/lib/browser/open-create-space-ICQYYDPT.mjs.map +7 -0
- package/dist/lib/browser/open-members-TFARRDZG.mjs +23 -0
- package/dist/lib/browser/open-members-TFARRDZG.mjs.map +7 -0
- package/dist/lib/browser/open-settings-MLCXUE2H.mjs +23 -0
- package/dist/lib/browser/open-settings-MLCXUE2H.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +14 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/remove-objects-OKPOXX5K.mjs +79 -0
- package/dist/lib/browser/remove-objects-OKPOXX5K.mjs.map +7 -0
- package/dist/lib/browser/rename-LPPVIVCM.mjs +25 -0
- package/dist/lib/browser/rename-LPPVIVCM.mjs.map +7 -0
- package/dist/lib/browser/rename-object-5BG6G7OZ.mjs +26 -0
- package/dist/lib/browser/rename-object-5BG6G7OZ.mjs.map +7 -0
- package/dist/lib/browser/restore-field-7GJWVHDA.mjs +65 -0
- package/dist/lib/browser/restore-field-7GJWVHDA.mjs.map +7 -0
- package/dist/lib/browser/restore-objects-IDA5K4JY.mjs +56 -0
- package/dist/lib/browser/restore-objects-IDA5K4JY.mjs.map +7 -0
- package/dist/lib/browser/share-X3CPU6VI.mjs +31 -0
- package/dist/lib/browser/share-X3CPU6VI.mjs.map +7 -0
- package/dist/lib/browser/snapshot-4ICGB7QL.mjs +38 -0
- package/dist/lib/browser/snapshot-4ICGB7QL.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +6 -8
- package/dist/lib/browser/wait-for-object-RNK4EMZZ.mjs +23 -0
- package/dist/lib/browser/wait-for-object-RNK4EMZZ.mjs.map +7 -0
- package/dist/lib/node-esm/SpacePluginSettings-D63KOL6O.mjs +48 -0
- package/dist/lib/node-esm/SpacePluginSettings-D63KOL6O.mjs.map +7 -0
- package/dist/lib/node-esm/add-object-2DVOIRLC.mjs +87 -0
- package/dist/lib/node-esm/add-object-2DVOIRLC.mjs.map +7 -0
- package/dist/lib/node-esm/add-relation-RGXQYERC.mjs +27 -0
- package/dist/lib/node-esm/add-relation-RGXQYERC.mjs.map +7 -0
- package/dist/lib/node-esm/add-schema-KNXXCGGN.mjs +61 -0
- package/dist/lib/node-esm/add-schema-KNXXCGGN.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-SL4BJSUG.mjs → chunk-64AL4GHY.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-SL4BJSUG.mjs.map → chunk-64AL4GHY.mjs.map} +1 -1
- package/dist/lib/node-esm/chunk-EQMZ4GGS.mjs +99 -0
- package/dist/lib/node-esm/chunk-EQMZ4GGS.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-GTF56ZOK.mjs +10 -0
- package/dist/lib/node-esm/chunk-GTF56ZOK.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IHOQPYNT.mjs +73 -0
- package/dist/lib/node-esm/chunk-IHOQPYNT.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IYW6CXLN.mjs +18 -0
- package/dist/lib/node-esm/chunk-IYW6CXLN.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-O76EE6YO.mjs +490 -0
- package/dist/lib/node-esm/chunk-O76EE6YO.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +62 -63
- package/dist/lib/node-esm/cli/index.mjs.map +3 -3
- package/dist/lib/node-esm/close-B3YKWJFA.mjs +18 -0
- package/dist/lib/node-esm/close-B3YKWJFA.mjs.map +7 -0
- package/dist/lib/node-esm/create-4R6VMTBK.mjs +75 -0
- package/dist/lib/node-esm/create-4R6VMTBK.mjs.map +7 -0
- package/dist/lib/node-esm/delete-field-GO23FHRM.mjs +68 -0
- package/dist/lib/node-esm/delete-field-GO23FHRM.mjs.map +7 -0
- package/dist/lib/node-esm/duplicate-object-DAOAOSN2.mjs +43 -0
- package/dist/lib/node-esm/duplicate-object-DAOAOSN2.mjs.map +7 -0
- package/dist/lib/node-esm/get-share-link-HVUXWNJQ.mjs +42 -0
- package/dist/lib/node-esm/get-share-link-HVUXWNJQ.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +793 -226
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/join-GNUI4Q2E.mjs +29 -0
- package/dist/lib/node-esm/join-GNUI4Q2E.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/meta.mjs +9 -0
- package/dist/lib/node-esm/meta.mjs.map +7 -0
- package/dist/lib/node-esm/migrate-3LLZU3Y3.mjs +51 -0
- package/dist/lib/node-esm/migrate-3LLZU3Y3.mjs.map +7 -0
- package/dist/lib/node-esm/open-5LPYF342.mjs +18 -0
- package/dist/lib/node-esm/open-5LPYF342.mjs.map +7 -0
- package/dist/lib/node-esm/open-create-object-FSECJKWJ.mjs +43 -0
- package/dist/lib/node-esm/open-create-object-FSECJKWJ.mjs.map +7 -0
- package/dist/lib/node-esm/open-create-space-GKROCVE7.mjs +25 -0
- package/dist/lib/node-esm/open-create-space-GKROCVE7.mjs.map +7 -0
- package/dist/lib/node-esm/open-members-NGWMFHIN.mjs +24 -0
- package/dist/lib/node-esm/open-members-NGWMFHIN.mjs.map +7 -0
- package/dist/lib/node-esm/open-settings-VGBMSULJ.mjs +24 -0
- package/dist/lib/node-esm/open-settings-VGBMSULJ.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +15 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/remove-objects-6RQQAJNW.mjs +80 -0
- package/dist/lib/node-esm/remove-objects-6RQQAJNW.mjs.map +7 -0
- package/dist/lib/node-esm/rename-JMPOMOYY.mjs +26 -0
- package/dist/lib/node-esm/rename-JMPOMOYY.mjs.map +7 -0
- package/dist/lib/node-esm/rename-object-F7ZV5MRF.mjs +27 -0
- package/dist/lib/node-esm/rename-object-F7ZV5MRF.mjs.map +7 -0
- package/dist/lib/node-esm/restore-field-2QRK5Y4Y.mjs +66 -0
- package/dist/lib/node-esm/restore-field-2QRK5Y4Y.mjs.map +7 -0
- package/dist/lib/node-esm/restore-objects-QZPN5HNB.mjs +57 -0
- package/dist/lib/node-esm/restore-objects-QZPN5HNB.mjs.map +7 -0
- package/dist/lib/node-esm/share-NLDQZYWK.mjs +32 -0
- package/dist/lib/node-esm/share-NLDQZYWK.mjs.map +7 -0
- package/dist/lib/node-esm/snapshot-INHLF3MW.mjs +39 -0
- package/dist/lib/node-esm/snapshot-INHLF3MW.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +6 -8
- package/dist/lib/node-esm/wait-for-object-HBN6FXLS.mjs +24 -0
- package/dist/lib/node-esm/wait-for-object-HBN6FXLS.mjs.map +7 -0
- package/dist/types/src/SpacePlugin.d.ts +1 -1
- package/dist/types/src/SpacePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +2 -2
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/extensions/collections.d.ts +33 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/collections.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/companions.d.ts +25 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/companions.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/index.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/settings.d.ts +11 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/shared.d.ts +57 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/shared.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/shared.test.d.ts +2 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/shared.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/spaces.d.ts +24 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/spaces.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/types.d.ts +38 -0
- package/dist/types/src/capabilities/app-graph-builder/extensions/types.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-serializer.d.ts +5 -0
- package/dist/types/src/capabilities/app-graph-serializer.d.ts.map +1 -0
- package/dist/types/src/capabilities/identity-created.d.ts +5 -0
- package/dist/types/src/capabilities/identity-created.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +38 -9
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts +5 -0
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
- package/dist/types/src/capabilities/navigation-handler/index.d.ts +4 -0
- package/dist/types/src/capabilities/navigation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts +13 -0
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/navigation-resolver.d.ts +6 -0
- package/dist/types/src/capabilities/navigation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/node.d.ts +9 -0
- package/dist/types/src/capabilities/node.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/{react-root/react-root.d.ts → react-root.d.ts} +1 -1
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +8 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/repair.d.ts +6 -0
- package/dist/types/src/capabilities/repair.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +10 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/spaces-ready.d.ts +5 -0
- package/dist/types/src/capabilities/spaces-ready.d.ts.map +1 -0
- package/dist/types/src/capabilities/{state/state.d.ts → state.d.ts} +2 -2
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/undo-mappings.d.ts +10 -0
- package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
- package/dist/types/src/cli/commands/database/add.d.ts +1 -2
- package/dist/types/src/cli/commands/database/add.d.ts.map +1 -1
- package/dist/types/src/cli/plugin.d.ts +1 -1
- package/dist/types/src/cli/plugin.d.ts.map +1 -1
- package/dist/types/src/components/AwaitingObject/AwaitingObject.d.ts.map +1 -0
- package/dist/types/src/components/AwaitingObject/index.d.ts +2 -0
- package/dist/types/src/components/AwaitingObject/index.d.ts.map +1 -0
- package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts +13 -6
- package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/index.d.ts +1 -2
- package/dist/types/src/components/CreateDialog/index.d.ts.map +1 -1
- package/dist/types/src/components/ForeignKeys/ForeignKeys.d.ts.map +1 -0
- package/dist/types/src/components/ForeignKeys/index.d.ts +2 -0
- package/dist/types/src/components/ForeignKeys/index.d.ts.map +1 -0
- package/dist/types/src/components/SpacePluginSettings/SpacePluginSettings.d.ts +10 -0
- package/dist/types/src/components/SpacePluginSettings/SpacePluginSettings.d.ts.map +1 -0
- package/dist/types/src/components/SpacePluginSettings/SpacePluginSettings.stories.d.ts +1612 -0
- package/dist/types/src/components/{MembersContainer/MembersContainer.stories.d.ts.map → SpacePluginSettings/SpacePluginSettings.stories.d.ts.map} +1 -1
- package/dist/types/src/components/SpacePluginSettings/index.d.ts +2 -0
- package/dist/types/src/components/SpacePluginSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/SyncStatus/index.d.ts +2 -2
- package/dist/types/src/components/SyncStatus/index.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/status.d.ts +1 -1
- package/dist/types/src/components/index.d.ts +3 -23
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/CollectionArticle/CollectionArticle.d.ts +8 -0
- package/dist/types/src/containers/CollectionArticle/CollectionArticle.d.ts.map +1 -0
- package/dist/types/src/containers/CollectionArticle/index.d.ts +2 -0
- package/dist/types/src/containers/CollectionArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/CollectionSection/CollectionSection.d.ts +6 -0
- package/dist/types/src/containers/CollectionSection/CollectionSection.d.ts.map +1 -0
- package/dist/types/src/containers/CollectionSection/index.d.ts +2 -0
- package/dist/types/src/containers/CollectionSection/index.d.ts.map +1 -0
- package/dist/types/src/{components/CreateDialog → containers/CreateObjectDialog}/CreateObjectDialog.d.ts +5 -3
- package/dist/types/src/containers/CreateObjectDialog/CreateObjectDialog.d.ts.map +1 -0
- package/dist/types/src/containers/CreateObjectDialog/CreateObjectDialog.stories.d.ts +1609 -0
- package/dist/types/src/{components/RecordArticle.stories.d.ts.map → containers/CreateObjectDialog/CreateObjectDialog.stories.d.ts.map} +1 -1
- package/dist/types/src/containers/CreateObjectDialog/index.d.ts +3 -0
- package/dist/types/src/containers/CreateObjectDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.d.ts.map +1 -0
- package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.stories.d.ts +1613 -0
- package/dist/types/src/{components/CreateDialog/CreateObjectDialog.stories.d.ts.map → containers/CreateSpaceDialog/CreateSpaceDialog.stories.d.ts.map} +1 -1
- package/dist/types/src/containers/CreateSpaceDialog/index.d.ts +2 -0
- package/dist/types/src/containers/CreateSpaceDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/InlineSyncStatus/InlineSyncStatus.d.ts.map +1 -0
- package/dist/types/src/containers/InlineSyncStatus/index.d.ts +2 -0
- package/dist/types/src/containers/InlineSyncStatus/index.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts +1612 -0
- package/dist/types/src/{components/SpaceSettings/SpaceSettingsContainer.stories.d.ts.map → containers/JoinDialog/JoinDialog.stories.d.ts.map} +1 -1
- package/dist/types/src/containers/JoinDialog/index.d.ts +3 -0
- package/dist/types/src/containers/JoinDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/MembersContainer/MembersContainer.d.ts.map +1 -0
- package/dist/types/src/containers/MembersContainer/index.d.ts +2 -0
- package/dist/types/src/containers/MembersContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/MenuFooter/MenuFooter.d.ts.map +1 -0
- package/dist/types/src/containers/MenuFooter/index.d.ts +2 -0
- package/dist/types/src/containers/MenuFooter/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/ObjectCardStack/ObjectCardStack.d.ts +4 -1
- package/dist/types/src/containers/ObjectCardStack/ObjectCardStack.d.ts.map +1 -0
- package/dist/types/src/containers/ObjectCardStack/index.d.ts +2 -0
- package/dist/types/src/containers/ObjectCardStack/index.d.ts.map +1 -0
- package/dist/types/src/containers/ObjectDetails/ObjectDetails.d.ts +11 -0
- package/dist/types/src/containers/ObjectDetails/ObjectDetails.d.ts.map +1 -0
- package/dist/types/src/containers/ObjectDetails/index.d.ts +2 -0
- package/dist/types/src/containers/ObjectDetails/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/ObjectRenamePopover/ObjectRenamePopover.d.ts.map +1 -1
- package/dist/types/src/containers/ObjectRenamePopover/index.d.ts +2 -0
- package/dist/types/src/containers/ObjectRenamePopover/index.d.ts.map +1 -0
- package/dist/types/src/containers/RecordArticle/RecordArticle.d.ts +4 -0
- package/dist/types/src/containers/RecordArticle/RecordArticle.d.ts.map +1 -0
- package/dist/types/src/containers/RecordArticle/RecordArticle.stories.d.ts +14 -0
- package/dist/types/src/containers/RecordArticle/RecordArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/RecordArticle/index.d.ts +2 -0
- package/dist/types/src/containers/RecordArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/RelatedArticle/RelatedArticle.d.ts +6 -0
- package/dist/types/src/containers/RelatedArticle/RelatedArticle.d.ts.map +1 -0
- package/dist/types/src/containers/RelatedArticle/index.d.ts +2 -0
- package/dist/types/src/containers/RelatedArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/SchemaContainer/SchemaContainer.d.ts.map +1 -0
- package/dist/types/src/containers/SchemaContainer/index.d.ts +2 -0
- package/dist/types/src/containers/SchemaContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/SmallPresenceLive/index.d.ts +2 -0
- package/dist/types/src/containers/SmallPresenceLive/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/SpacePresence/SpacePresence.d.ts +1 -1
- package/dist/types/src/{components → containers}/SpacePresence/SpacePresence.d.ts.map +1 -1
- package/dist/types/src/containers/SpacePresence/SpacePresence.stories.d.ts +1610 -0
- package/dist/types/src/{components → containers}/SpacePresence/SpacePresence.stories.d.ts.map +1 -1
- package/dist/types/src/containers/SpacePresence/index.d.ts +3 -0
- package/dist/types/src/containers/SpacePresence/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/SpaceRenamePopover/SpaceRenamePopover.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceRenamePopover/index.d.ts +2 -0
- package/dist/types/src/containers/SpaceRenamePopover/index.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.d.ts +10 -0
- package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.stories.d.ts +1616 -0
- package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceSettingsContainer/index.d.ts +2 -0
- package/dist/types/src/containers/SpaceSettingsContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/SyncStatus/SyncStatus.d.ts.map +1 -0
- package/dist/types/src/containers/SyncStatus/SyncStatus.stories.d.ts +1615 -0
- package/dist/types/src/{components → containers}/SyncStatus/SyncStatus.stories.d.ts.map +1 -1
- package/dist/types/src/containers/SyncStatus/index.d.ts +2 -0
- package/dist/types/src/containers/SyncStatus/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ViewEditor}/ViewEditor.d.ts +1 -1
- package/dist/types/src/containers/ViewEditor/ViewEditor.d.ts.map +1 -0
- package/dist/types/src/containers/ViewEditor/index.d.ts +2 -0
- package/dist/types/src/containers/ViewEditor/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +23 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +1 -2
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useRelatedObjects.d.ts +10 -0
- package/dist/types/src/hooks/useRelatedObjects.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/add-object.d.ts +5 -0
- package/dist/types/src/operations/add-object.d.ts.map +1 -0
- package/dist/types/src/operations/add-relation.d.ts +5 -0
- package/dist/types/src/operations/add-relation.d.ts.map +1 -0
- package/dist/types/src/operations/add-schema.d.ts +5 -0
- package/dist/types/src/operations/add-schema.d.ts.map +1 -0
- package/dist/types/src/operations/close.d.ts +5 -0
- package/dist/types/src/operations/close.d.ts.map +1 -0
- package/dist/types/src/operations/create.d.ts +5 -0
- package/dist/types/src/operations/create.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +217 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/delete-field.d.ts +5 -0
- package/dist/types/src/operations/delete-field.d.ts.map +1 -0
- package/dist/types/src/operations/duplicate-object.d.ts +5 -0
- package/dist/types/src/operations/duplicate-object.d.ts.map +1 -0
- package/dist/types/src/operations/get-share-link.d.ts +5 -0
- package/dist/types/src/operations/get-share-link.d.ts.map +1 -0
- package/dist/types/src/operations/helpers.d.ts +7 -0
- package/dist/types/src/operations/helpers.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/join.d.ts +5 -0
- package/dist/types/src/operations/join.d.ts.map +1 -0
- package/dist/types/src/operations/migrate.d.ts +5 -0
- package/dist/types/src/operations/migrate.d.ts.map +1 -0
- package/dist/types/src/operations/open-create-object.d.ts +5 -0
- package/dist/types/src/operations/open-create-object.d.ts.map +1 -0
- package/dist/types/src/operations/open-create-space.d.ts +5 -0
- package/dist/types/src/operations/open-create-space.d.ts.map +1 -0
- package/dist/types/src/operations/open-members.d.ts +5 -0
- package/dist/types/src/operations/open-members.d.ts.map +1 -0
- package/dist/types/src/operations/open-settings.d.ts +5 -0
- package/dist/types/src/operations/open-settings.d.ts.map +1 -0
- package/dist/types/src/operations/open.d.ts +5 -0
- package/dist/types/src/operations/open.d.ts.map +1 -0
- package/dist/types/src/operations/remove-objects.d.ts +5 -0
- package/dist/types/src/operations/remove-objects.d.ts.map +1 -0
- package/dist/types/src/operations/rename-object.d.ts +5 -0
- package/dist/types/src/operations/rename-object.d.ts.map +1 -0
- package/dist/types/src/operations/rename.d.ts +5 -0
- package/dist/types/src/operations/rename.d.ts.map +1 -0
- package/dist/types/src/operations/restore-field.d.ts +5 -0
- package/dist/types/src/operations/restore-field.d.ts.map +1 -0
- package/dist/types/src/operations/restore-objects.d.ts +5 -0
- package/dist/types/src/operations/restore-objects.d.ts.map +1 -0
- package/dist/types/src/operations/share.d.ts +5 -0
- package/dist/types/src/operations/share.d.ts.map +1 -0
- package/dist/types/src/operations/snapshot.d.ts +5 -0
- package/dist/types/src/operations/snapshot.d.ts.map +1 -0
- package/dist/types/src/operations/wait-for-object.d.ts +5 -0
- package/dist/types/src/operations/wait-for-object.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +1584 -1404
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +9 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +1 -1
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/src/types/form.d.ts +1 -21
- package/dist/types/src/types/form.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +30 -641
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +7 -123
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +102 -66
- package/src/SpacePlugin.ts +150 -82
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +17 -602
- package/src/capabilities/app-graph-builder/extensions/collections.ts +346 -0
- package/src/capabilities/app-graph-builder/extensions/companions.ts +88 -0
- package/src/capabilities/app-graph-builder/extensions/index.ts +9 -0
- package/src/capabilities/app-graph-builder/extensions/settings.ts +64 -0
- package/src/capabilities/app-graph-builder/extensions/shared.test.ts +112 -0
- package/src/capabilities/app-graph-builder/extensions/shared.ts +171 -0
- package/src/capabilities/app-graph-builder/extensions/spaces.ts +341 -0
- package/src/capabilities/app-graph-builder/extensions/types.ts +423 -0
- package/src/capabilities/app-graph-builder/index.ts +1 -1
- package/src/capabilities/{app-graph-serializer/app-graph-serializer.ts → app-graph-serializer.ts} +18 -15
- package/src/capabilities/identity-created.ts +35 -0
- package/src/capabilities/index.ts +21 -9
- package/src/capabilities/migrations.ts +59 -0
- package/src/capabilities/navigation-handler/index.ts +9 -0
- package/src/capabilities/navigation-handler/navigation-handler.ts +50 -0
- package/src/capabilities/navigation-resolver.ts +94 -0
- package/src/capabilities/node.ts +13 -0
- package/src/capabilities/operation-handler.ts +14 -0
- package/src/capabilities/{react-root/react-root.tsx → react-root.tsx} +6 -6
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +110 -119
- package/src/capabilities/repair.ts +42 -0
- package/src/capabilities/{settings/settings.ts → settings.ts} +7 -6
- package/src/capabilities/{spaces-ready/spaces-ready.ts → spaces-ready.ts} +98 -35
- package/src/capabilities/{state/state.ts → state.ts} +9 -7
- package/src/capabilities/undo-mappings.ts +59 -0
- package/src/cli/commands/database/add.ts +12 -18
- package/src/cli/commands/database/query/query.test.ts +3 -5
- package/src/cli/commands/database/query/query.ts +1 -1
- package/src/cli/commands/database/remove.ts +2 -2
- package/src/cli/commands/database/stats.ts +1 -1
- package/src/cli/commands/space/close/close.ts +1 -1
- package/src/cli/commands/space/create/create.ts +3 -3
- package/src/cli/commands/space/info/info.test.ts +0 -15
- package/src/cli/commands/space/join/join.ts +1 -1
- package/src/cli/commands/space/members/members.test.ts +0 -13
- package/src/cli/commands/space/open/open.ts +1 -1
- package/src/cli/commands/space/schema/list/list.test.ts +0 -13
- package/src/cli/plugin.ts +51 -33
- package/src/components/{AwaitingObject.tsx → AwaitingObject/AwaitingObject.tsx} +19 -18
- package/src/components/AwaitingObject/index.ts +5 -0
- package/src/components/CreateDialog/CreateObjectPanel.tsx +113 -133
- package/src/components/CreateDialog/index.ts +1 -2
- package/src/components/{ObjectDetails → ForeignKeys}/ForeignKeys.tsx +9 -3
- package/src/components/{JoinDialog → ForeignKeys}/index.ts +1 -1
- package/src/components/SpacePluginSettings/SpacePluginSettings.stories.tsx +33 -0
- package/src/components/SpacePluginSettings/SpacePluginSettings.tsx +74 -0
- package/src/components/SpacePluginSettings/index.ts +5 -0
- package/src/components/SyncStatus/index.ts +2 -2
- package/src/components/SyncStatus/status.ts +7 -7
- package/src/components/index.ts +3 -16
- package/src/constants.ts +6 -6
- package/src/containers/CollectionArticle/CollectionArticle.tsx +134 -0
- package/src/containers/CollectionArticle/index.ts +5 -0
- package/src/containers/CollectionSection/CollectionSection.tsx +24 -0
- package/src/containers/CollectionSection/index.ts +5 -0
- package/src/containers/CreateObjectDialog/CreateObjectDialog.stories.tsx +82 -0
- package/src/containers/CreateObjectDialog/CreateObjectDialog.tsx +163 -0
- package/src/containers/CreateObjectDialog/index.ts +6 -0
- package/src/containers/CreateSpaceDialog/CreateSpaceDialog.stories.tsx +45 -0
- package/src/{components/CreateDialog → containers/CreateSpaceDialog}/CreateSpaceDialog.tsx +27 -24
- package/src/containers/CreateSpaceDialog/index.ts +5 -0
- package/src/{components/SyncStatus → containers/InlineSyncStatus}/InlineSyncStatus.tsx +10 -21
- package/src/containers/InlineSyncStatus/index.ts +5 -0
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +42 -0
- package/src/{components → containers}/JoinDialog/JoinDialog.tsx +25 -21
- package/src/containers/JoinDialog/index.ts +6 -0
- package/src/{components → containers}/MembersContainer/MembersContainer.tsx +51 -74
- package/src/containers/MembersContainer/index.ts +5 -0
- package/src/{components → containers/MenuFooter}/MenuFooter.tsx +9 -9
- package/src/containers/MenuFooter/index.ts +5 -0
- package/src/containers/ObjectCardStack/ObjectCardStack.tsx +82 -0
- package/src/containers/ObjectCardStack/index.ts +5 -0
- package/src/containers/ObjectDetails/ObjectDetails.tsx +32 -0
- package/src/containers/ObjectDetails/index.ts +5 -0
- package/src/{components → containers}/ObjectRenamePopover/ObjectRenamePopover.tsx +8 -8
- package/src/containers/ObjectRenamePopover/index.ts +5 -0
- package/src/containers/RecordArticle/RecordArticle.stories.tsx +80 -0
- package/src/containers/RecordArticle/RecordArticle.tsx +56 -0
- package/src/containers/RecordArticle/index.ts +5 -0
- package/src/containers/RelatedArticle/RelatedArticle.tsx +80 -0
- package/src/containers/RelatedArticle/index.ts +5 -0
- package/src/{components → containers/SchemaContainer}/SchemaContainer.tsx +22 -18
- package/src/containers/SchemaContainer/index.ts +5 -0
- package/src/containers/SmallPresenceLive/index.ts +5 -0
- package/src/{components → containers}/SpacePresence/SpacePresence.stories.tsx +2 -3
- package/src/{components → containers}/SpacePresence/SpacePresence.tsx +14 -25
- package/src/containers/SpacePresence/index.ts +6 -0
- package/src/{components → containers}/SpaceRenamePopover/SpaceRenamePopover.tsx +10 -10
- package/src/containers/SpaceRenamePopover/index.ts +5 -0
- package/src/{components/SpaceSettings → containers/SpaceSettingsContainer}/SpaceSettingsContainer.stories.tsx +12 -12
- package/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.tsx +216 -0
- package/src/containers/SpaceSettingsContainer/index.ts +5 -0
- package/src/{components → containers}/SyncStatus/SyncStatus.stories.tsx +2 -3
- package/src/{components → containers}/SyncStatus/SyncStatus.tsx +38 -44
- package/src/containers/SyncStatus/index.ts +5 -0
- package/src/{components → containers/ViewEditor}/ViewEditor.tsx +15 -14
- package/src/containers/ViewEditor/index.ts +5 -0
- package/src/containers/index.ts +28 -0
- package/src/hooks/index.ts +1 -2
- package/src/hooks/useInputSurfaceLookup.tsx +3 -3
- package/src/hooks/useRelatedObjects.ts +79 -0
- package/src/index.ts +2 -3
- package/src/meta.ts +1 -1
- package/src/operations/add-object.ts +82 -0
- package/src/operations/add-relation.ts +25 -0
- package/src/operations/add-schema.ts +51 -0
- package/src/operations/close.ts +16 -0
- package/src/operations/create.ts +59 -0
- package/src/operations/definitions.ts +438 -0
- package/src/operations/delete-field.ts +42 -0
- package/src/operations/duplicate-object.ts +30 -0
- package/src/operations/get-share-link.ts +43 -0
- package/src/operations/helpers.ts +10 -0
- package/src/operations/index.ts +31 -0
- package/src/operations/join.ts +26 -0
- package/src/operations/migrate.ts +45 -0
- package/src/operations/open-create-object.ts +40 -0
- package/src/operations/open-create-space.ts +21 -0
- package/src/operations/open-members.ts +20 -0
- package/src/operations/open-settings.ts +20 -0
- package/src/operations/open.ts +16 -0
- package/src/operations/remove-objects.ts +87 -0
- package/src/operations/rename-object.ts +24 -0
- package/src/operations/rename.ts +22 -0
- package/src/operations/restore-field.ts +36 -0
- package/src/operations/restore-objects.ts +49 -0
- package/src/operations/share.ts +27 -0
- package/src/operations/snapshot.ts +24 -0
- package/src/operations/wait-for-object.ts +21 -0
- package/src/translations.ts +252 -203
- package/src/types/Settings.ts +18 -0
- package/src/types/capabilities.ts +11 -10
- package/src/types/events.ts +8 -7
- package/src/types/form.ts +6 -65
- package/src/types/types.ts +38 -555
- package/src/util.ts +79 -0
- package/dist/lib/browser/CollectionArticle-OQMUVFVV.mjs +0 -125
- package/dist/lib/browser/CollectionArticle-OQMUVFVV.mjs.map +0 -7
- package/dist/lib/browser/ObjectCardStack-TWHN6C2Y.mjs +0 -148
- package/dist/lib/browser/ObjectCardStack-TWHN6C2Y.mjs.map +0 -7
- package/dist/lib/browser/ObjectDetails-GEDIISKK.mjs +0 -142
- package/dist/lib/browser/ObjectDetails-GEDIISKK.mjs.map +0 -7
- package/dist/lib/browser/RecordArticle-W57QE7QV.mjs +0 -107
- package/dist/lib/browser/RecordArticle-W57QE7QV.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-SJHTZXZF.mjs +0 -523
- package/dist/lib/browser/app-graph-builder-SJHTZXZF.mjs.map +0 -7
- package/dist/lib/browser/app-graph-serializer-7AT7QMSK.mjs +0 -84
- package/dist/lib/browser/app-graph-serializer-7AT7QMSK.mjs.map +0 -7
- package/dist/lib/browser/chunk-4WZUGLQQ.mjs +0 -117
- package/dist/lib/browser/chunk-4WZUGLQQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-ASV6DYFH.mjs +0 -19
- package/dist/lib/browser/chunk-ASV6DYFH.mjs.map +0 -7
- package/dist/lib/browser/chunk-AWVAX26X.mjs +0 -13
- package/dist/lib/browser/chunk-AWVAX26X.mjs.map +0 -7
- package/dist/lib/browser/chunk-CCRSHECL.mjs +0 -714
- package/dist/lib/browser/chunk-CCRSHECL.mjs.map +0 -7
- package/dist/lib/browser/chunk-SUI34XSA.mjs +0 -772
- package/dist/lib/browser/chunk-SUI34XSA.mjs.map +0 -7
- package/dist/lib/browser/chunk-TWUMNPG4.mjs +0 -1898
- package/dist/lib/browser/chunk-TWUMNPG4.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZT2VPYRM.mjs +0 -234
- package/dist/lib/browser/chunk-ZT2VPYRM.mjs.map +0 -7
- package/dist/lib/browser/identity-created-VCFYLSBB.mjs +0 -23
- package/dist/lib/browser/identity-created-VCFYLSBB.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-SIRQT36Z.mjs +0 -827
- package/dist/lib/browser/operation-resolver-SIRQT36Z.mjs.map +0 -7
- package/dist/lib/browser/react-root-3SPMM45V.mjs +0 -30
- package/dist/lib/browser/react-root-3SPMM45V.mjs.map +0 -7
- package/dist/lib/browser/react-surface-UUS7NDHS.mjs +0 -382
- package/dist/lib/browser/react-surface-UUS7NDHS.mjs.map +0 -7
- package/dist/lib/browser/repair-CJG26D52.mjs +0 -50
- package/dist/lib/browser/repair-CJG26D52.mjs.map +0 -7
- package/dist/lib/browser/settings-ZS2AQ73E.mjs +0 -33
- package/dist/lib/browser/settings-ZS2AQ73E.mjs.map +0 -7
- package/dist/lib/browser/spaces-ready-OQDGWUOS.mjs +0 -242
- package/dist/lib/browser/spaces-ready-OQDGWUOS.mjs.map +0 -7
- package/dist/lib/browser/state-7YZQB2KY.mjs +0 -58
- package/dist/lib/browser/state-7YZQB2KY.mjs.map +0 -7
- package/dist/lib/node-esm/CollectionArticle-V5OOJVJJ.mjs +0 -126
- package/dist/lib/node-esm/CollectionArticle-V5OOJVJJ.mjs.map +0 -7
- package/dist/lib/node-esm/ObjectCardStack-C5ZXRKP7.mjs +0 -149
- package/dist/lib/node-esm/ObjectCardStack-C5ZXRKP7.mjs.map +0 -7
- package/dist/lib/node-esm/ObjectDetails-6ZLDRKCO.mjs +0 -143
- package/dist/lib/node-esm/ObjectDetails-6ZLDRKCO.mjs.map +0 -7
- package/dist/lib/node-esm/RecordArticle-SSV74Z46.mjs +0 -108
- package/dist/lib/node-esm/RecordArticle-SSV74Z46.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-HZ3XXDFZ.mjs +0 -524
- package/dist/lib/node-esm/app-graph-builder-HZ3XXDFZ.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-serializer-WJ2TIQG6.mjs +0 -85
- package/dist/lib/node-esm/app-graph-serializer-WJ2TIQG6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2SW6S2BB.mjs +0 -235
- package/dist/lib/node-esm/chunk-2SW6S2BB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7KMYUWSR.mjs +0 -773
- package/dist/lib/node-esm/chunk-7KMYUWSR.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CVXULIYC.mjs +0 -20
- package/dist/lib/node-esm/chunk-CVXULIYC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FYSBFBSD.mjs +0 -1899
- package/dist/lib/node-esm/chunk-FYSBFBSD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HREWB23G.mjs +0 -15
- package/dist/lib/node-esm/chunk-HREWB23G.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JOBIWCBC.mjs +0 -118
- package/dist/lib/node-esm/chunk-JOBIWCBC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MPL6NHQX.mjs +0 -715
- package/dist/lib/node-esm/chunk-MPL6NHQX.mjs.map +0 -7
- package/dist/lib/node-esm/identity-created-2SJABVJD.mjs +0 -25
- package/dist/lib/node-esm/identity-created-2SJABVJD.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-ZE3XJL5J.mjs +0 -828
- package/dist/lib/node-esm/operation-resolver-ZE3XJL5J.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-Y6JTGDTW.mjs +0 -31
- package/dist/lib/node-esm/react-root-Y6JTGDTW.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-SQ4SK3OK.mjs +0 -383
- package/dist/lib/node-esm/react-surface-SQ4SK3OK.mjs.map +0 -7
- package/dist/lib/node-esm/repair-G3ZW3VG3.mjs +0 -51
- package/dist/lib/node-esm/repair-G3ZW3VG3.mjs.map +0 -7
- package/dist/lib/node-esm/settings-PVI2VG56.mjs +0 -34
- package/dist/lib/node-esm/settings-PVI2VG56.mjs.map +0 -7
- package/dist/lib/node-esm/spaces-ready-R744OHQG.mjs +0 -243
- package/dist/lib/node-esm/spaces-ready-R744OHQG.mjs.map +0 -7
- package/dist/lib/node-esm/state-XE5YGPHM.mjs +0 -59
- package/dist/lib/node-esm/state-XE5YGPHM.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-serializer/app-graph-serializer.d.ts +0 -5
- package/dist/types/src/capabilities/app-graph-serializer/app-graph-serializer.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-serializer/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-serializer/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/identity-created/identity-created.d.ts +0 -5
- package/dist/types/src/capabilities/identity-created/identity-created.d.ts.map +0 -1
- package/dist/types/src/capabilities/identity-created/index.d.ts +0 -3
- package/dist/types/src/capabilities/identity-created/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -6
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -9
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root/index.d.ts +0 -6
- package/dist/types/src/capabilities/react-root/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -8
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/repair/index.d.ts +0 -3
- package/dist/types/src/capabilities/repair/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/repair/repair.d.ts +0 -6
- package/dist/types/src/capabilities/repair/repair.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/index.d.ts +0 -7
- package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/settings.d.ts +0 -9
- package/dist/types/src/capabilities/settings/settings.d.ts.map +0 -1
- package/dist/types/src/capabilities/spaces-ready/index.d.ts +0 -3
- package/dist/types/src/capabilities/spaces-ready/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/spaces-ready/spaces-ready.d.ts +0 -5
- package/dist/types/src/capabilities/spaces-ready/spaces-ready.d.ts.map +0 -1
- package/dist/types/src/capabilities/state/index.d.ts +0 -13
- package/dist/types/src/capabilities/state/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/state/state.d.ts.map +0 -1
- package/dist/types/src/components/AwaitingObject.d.ts.map +0 -1
- package/dist/types/src/components/CollectionArticle.d.ts +0 -9
- package/dist/types/src/components/CollectionArticle.d.ts.map +0 -1
- package/dist/types/src/components/CollectionSection.d.ts +0 -5
- package/dist/types/src/components/CollectionSection.d.ts.map +0 -1
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts.map +0 -1
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.stories.d.ts +0 -1604
- package/dist/types/src/components/CreateDialog/CreateSpaceDialog.d.ts.map +0 -1
- package/dist/types/src/components/JoinDialog/JoinDialog.d.ts.map +0 -1
- package/dist/types/src/components/JoinDialog/index.d.ts +0 -2
- package/dist/types/src/components/JoinDialog/index.d.ts.map +0 -1
- package/dist/types/src/components/MembersContainer/MembersContainer.d.ts.map +0 -1
- package/dist/types/src/components/MembersContainer/MembersContainer.stories.d.ts +0 -1600
- package/dist/types/src/components/MembersContainer/index.d.ts +0 -2
- package/dist/types/src/components/MembersContainer/index.d.ts.map +0 -1
- package/dist/types/src/components/MenuFooter.d.ts.map +0 -1
- package/dist/types/src/components/ObjectCardStack/ObjectCardStack.d.ts.map +0 -1
- package/dist/types/src/components/ObjectCardStack/ObjectForm.d.ts +0 -9
- package/dist/types/src/components/ObjectCardStack/ObjectForm.d.ts.map +0 -1
- package/dist/types/src/components/ObjectCardStack/index.d.ts +0 -3
- package/dist/types/src/components/ObjectCardStack/index.d.ts.map +0 -1
- package/dist/types/src/components/ObjectDetails/BaseObjectSettings.d.ts +0 -8
- package/dist/types/src/components/ObjectDetails/BaseObjectSettings.d.ts.map +0 -1
- package/dist/types/src/components/ObjectDetails/BaseObjectSettings.stories.d.ts +0 -1433
- package/dist/types/src/components/ObjectDetails/BaseObjectSettings.stories.d.ts.map +0 -1
- package/dist/types/src/components/ObjectDetails/ForeignKeys.d.ts.map +0 -1
- package/dist/types/src/components/ObjectDetails/ObjectDetails.d.ts +0 -9
- package/dist/types/src/components/ObjectDetails/ObjectDetails.d.ts.map +0 -1
- package/dist/types/src/components/ObjectDetails/index.d.ts +0 -3
- package/dist/types/src/components/ObjectDetails/index.d.ts.map +0 -1
- package/dist/types/src/components/ObjectRenamePopover/index.d.ts +0 -2
- package/dist/types/src/components/ObjectRenamePopover/index.d.ts.map +0 -1
- package/dist/types/src/components/RecordArticle.d.ts +0 -5
- package/dist/types/src/components/RecordArticle.d.ts.map +0 -1
- package/dist/types/src/components/RecordArticle.stories.d.ts +0 -1600
- package/dist/types/src/components/SchemaContainer.d.ts.map +0 -1
- package/dist/types/src/components/SpacePluginSettings.d.ts +0 -8
- package/dist/types/src/components/SpacePluginSettings.d.ts.map +0 -1
- package/dist/types/src/components/SpacePresence/SpacePresence.stories.d.ts +0 -1430
- package/dist/types/src/components/SpacePresence/index.d.ts +0 -2
- package/dist/types/src/components/SpacePresence/index.d.ts.map +0 -1
- package/dist/types/src/components/SpaceRenamePopover/index.d.ts +0 -2
- package/dist/types/src/components/SpaceRenamePopover/index.d.ts.map +0 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.d.ts +0 -7
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.d.ts.map +0 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts +0 -1433
- package/dist/types/src/components/SpaceSettings/index.d.ts +0 -2
- package/dist/types/src/components/SpaceSettings/index.d.ts.map +0 -1
- package/dist/types/src/components/SyncStatus/InlineSyncStatus.d.ts.map +0 -1
- package/dist/types/src/components/SyncStatus/SyncStatus.d.ts.map +0 -1
- package/dist/types/src/components/SyncStatus/SyncStatus.stories.d.ts +0 -1435
- package/dist/types/src/components/ViewEditor.d.ts.map +0 -1
- package/dist/types/src/helpers/index.d.ts +0 -2
- package/dist/types/src/helpers/index.d.ts.map +0 -1
- package/dist/types/src/helpers/query.d.ts +0 -7
- package/dist/types/src/helpers/query.d.ts.map +0 -1
- package/dist/types/src/helpers/query.test.d.ts +0 -2
- package/dist/types/src/helpers/query.test.d.ts.map +0 -1
- package/dist/types/src/hooks/useActiveSpace.d.ts +0 -4
- package/dist/types/src/hooks/useActiveSpace.d.ts.map +0 -1
- package/dist/types/src/hooks/useTypeOptions.d.ts +0 -10
- package/dist/types/src/hooks/useTypeOptions.d.ts.map +0 -1
- package/src/capabilities/app-graph-serializer/index.ts +0 -7
- package/src/capabilities/identity-created/identity-created.ts +0 -29
- package/src/capabilities/identity-created/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -760
- package/src/capabilities/react-root/index.ts +0 -7
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/repair/index.ts +0 -7
- package/src/capabilities/repair/repair.ts +0 -67
- package/src/capabilities/settings/index.ts +0 -7
- package/src/capabilities/spaces-ready/index.ts +0 -7
- package/src/capabilities/state/index.ts +0 -7
- package/src/components/CollectionArticle.tsx +0 -153
- package/src/components/CollectionSection.tsx +0 -22
- package/src/components/CreateDialog/CreateObjectDialog.stories.tsx +0 -91
- package/src/components/CreateDialog/CreateObjectDialog.tsx +0 -144
- package/src/components/MembersContainer/MembersContainer.stories.tsx +0 -56
- package/src/components/MembersContainer/index.ts +0 -5
- package/src/components/ObjectCardStack/ObjectCardStack.tsx +0 -67
- package/src/components/ObjectCardStack/ObjectForm.tsx +0 -97
- package/src/components/ObjectCardStack/index.ts +0 -7
- package/src/components/ObjectDetails/BaseObjectSettings.stories.tsx +0 -63
- package/src/components/ObjectDetails/BaseObjectSettings.tsx +0 -122
- package/src/components/ObjectDetails/ObjectDetails.tsx +0 -32
- package/src/components/ObjectDetails/index.ts +0 -7
- package/src/components/ObjectRenamePopover/index.ts +0 -5
- package/src/components/RecordArticle.stories.tsx +0 -115
- package/src/components/RecordArticle.tsx +0 -122
- package/src/components/SpacePluginSettings.tsx +0 -62
- package/src/components/SpacePresence/index.ts +0 -5
- package/src/components/SpaceRenamePopover/index.ts +0 -5
- package/src/components/SpaceSettings/SpaceSettingsContainer.tsx +0 -220
- package/src/components/SpaceSettings/index.ts +0 -5
- package/src/helpers/index.ts +0 -5
- package/src/helpers/query.test.ts +0 -24
- package/src/helpers/query.ts +0 -153
- package/src/hooks/useActiveSpace.ts +0 -23
- package/src/hooks/useTypeOptions.ts +0 -25
- package/src/util.tsx +0 -779
- /package/dist/types/src/components/{AwaitingObject.d.ts → AwaitingObject/AwaitingObject.d.ts} +0 -0
- /package/dist/types/src/components/{ObjectDetails → ForeignKeys}/ForeignKeys.d.ts +0 -0
- /package/dist/types/src/{components/CreateDialog → containers/CreateSpaceDialog}/CreateSpaceDialog.d.ts +0 -0
- /package/dist/types/src/{components/SyncStatus → containers/InlineSyncStatus}/InlineSyncStatus.d.ts +0 -0
- /package/dist/types/src/{components → containers}/JoinDialog/JoinDialog.d.ts +0 -0
- /package/dist/types/src/{components → containers}/MembersContainer/MembersContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/MenuFooter}/MenuFooter.d.ts +0 -0
- /package/dist/types/src/{components → containers}/ObjectRenamePopover/ObjectRenamePopover.d.ts +0 -0
- /package/dist/types/src/{components → containers/SchemaContainer}/SchemaContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers}/SpaceRenamePopover/SpaceRenamePopover.d.ts +0 -0
- /package/dist/types/src/{components → containers}/SyncStatus/SyncStatus.d.ts +0 -0
|
@@ -1,260 +1,861 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
AwaitingObject,
|
|
6
|
-
CREATE_OBJECT_DIALOG,
|
|
7
|
-
CREATE_SPACE_DIALOG,
|
|
8
|
-
CollectionArticle,
|
|
9
|
-
CollectionSection,
|
|
10
|
-
CreateObjectDialog,
|
|
11
|
-
CreateSpaceDialog,
|
|
12
|
-
FullPresence,
|
|
13
|
-
InlineSyncStatus,
|
|
14
|
-
JOIN_DIALOG,
|
|
15
|
-
JoinDialog,
|
|
16
|
-
MembersContainer,
|
|
17
|
-
MenuFooter,
|
|
18
|
-
OBJECT_RENAME_POPOVER,
|
|
19
|
-
ObjectCardStack,
|
|
20
|
-
ObjectDetails,
|
|
21
|
-
ObjectRenamePopover,
|
|
22
|
-
RecordArticle,
|
|
23
|
-
SPACE_RENAME_POPOVER,
|
|
24
|
-
SchemaContainer,
|
|
25
|
-
SmallPresence,
|
|
26
|
-
SmallPresenceLive,
|
|
27
|
-
SpacePluginSettings,
|
|
28
|
-
SpacePresence,
|
|
29
|
-
SpaceRenamePopover,
|
|
30
|
-
SpaceSettingsContainer,
|
|
31
|
-
SyncStatus,
|
|
32
|
-
SyncStatusIndicator,
|
|
33
|
-
ViewEditor,
|
|
34
|
-
evalQuery,
|
|
35
|
-
getQueryTarget,
|
|
36
|
-
resolveSchemaWithRegistry,
|
|
37
|
-
useQuerySpaceSchemas
|
|
38
|
-
} from "./chunk-TWUMNPG4.mjs";
|
|
39
|
-
import {
|
|
40
|
-
IdentityCreated,
|
|
41
|
-
OperationResolver
|
|
42
|
-
} from "./chunk-AWVAX26X.mjs";
|
|
43
|
-
import {
|
|
44
|
-
getActiveSpace,
|
|
45
|
-
useActiveSpace,
|
|
46
|
-
useInputSurfaceLookup,
|
|
47
|
-
usePath,
|
|
48
|
-
useTypeOptions
|
|
49
|
-
} from "./chunk-4WZUGLQQ.mjs";
|
|
2
|
+
meta
|
|
3
|
+
} from "./chunk-5CKPBXLB.mjs";
|
|
50
4
|
import {
|
|
51
|
-
COMPOSER_SPACE_LOCK,
|
|
52
|
-
SHARED,
|
|
53
5
|
SPACES,
|
|
54
6
|
cloneObject,
|
|
55
|
-
constructObjectActions,
|
|
56
|
-
constructSpaceActions,
|
|
57
|
-
constructSpaceNode,
|
|
58
|
-
createObjectNode,
|
|
59
|
-
createStaticSchemaActions,
|
|
60
|
-
createStaticSchemaNode,
|
|
61
7
|
getNestedObjects,
|
|
62
8
|
getSpaceDisplayName
|
|
63
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YSV6LKD6.mjs";
|
|
64
10
|
import {
|
|
11
|
+
SHARED,
|
|
65
12
|
SpaceCapabilities,
|
|
66
|
-
SpaceEvents
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
} from "
|
|
13
|
+
SpaceEvents
|
|
14
|
+
} from "./chunk-WB3HNICB.mjs";
|
|
15
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
16
|
+
|
|
17
|
+
// src/components/index.ts
|
|
18
|
+
import { lazy } from "react";
|
|
19
|
+
|
|
20
|
+
// src/components/AwaitingObject/AwaitingObject.tsx
|
|
21
|
+
import React, { useCallback, useEffect, useState } from "react";
|
|
22
|
+
import { useOperationInvoker } from "@dxos/app-framework/ui";
|
|
23
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
24
|
+
import { useLayout } from "@dxos/app-toolkit/ui";
|
|
25
|
+
import { Obj } from "@dxos/echo";
|
|
26
|
+
import { useClient } from "@dxos/react-client";
|
|
27
|
+
import { Filter, useQuery } from "@dxos/react-client/echo";
|
|
28
|
+
import { Button, Icon, Toast, useTranslation } from "@dxos/react-ui";
|
|
29
|
+
import { osTranslations } from "@dxos/ui-theme";
|
|
30
|
+
import { meta as meta2 } from "#meta";
|
|
31
|
+
import { SpaceOperation } from "#operations";
|
|
32
|
+
var WAIT_FOR_OBJECT_TIMEOUT = 3 * 60 * 1e3;
|
|
33
|
+
var TOAST_TIMEOUT = 4 * 60 * 1e3;
|
|
34
|
+
var AwaitingObject = ({ id }) => {
|
|
35
|
+
const { t } = useTranslation(meta2.id);
|
|
36
|
+
const { invokePromise } = useOperationInvoker();
|
|
37
|
+
const [open, setOpen] = useState(true);
|
|
38
|
+
const [waiting, setWaiting] = useState(true);
|
|
39
|
+
const [found, setFound] = useState(false);
|
|
40
|
+
const layout = useLayout();
|
|
41
|
+
const client = useClient();
|
|
42
|
+
const objects = useQuery(client.spaces, Filter.everything());
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (!id) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const timeout = setTimeout(() => setWaiting(false), WAIT_FOR_OBJECT_TIMEOUT);
|
|
48
|
+
return () => clearTimeout(timeout);
|
|
49
|
+
}, [
|
|
50
|
+
id
|
|
51
|
+
]);
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (objects.findIndex((object) => Obj.getDXN(object).toString() === id) > -1) {
|
|
54
|
+
setFound(true);
|
|
55
|
+
if (layout.active.includes(id)) {
|
|
56
|
+
setOpen(false);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}, [
|
|
60
|
+
id,
|
|
61
|
+
objects,
|
|
62
|
+
layout
|
|
63
|
+
]);
|
|
64
|
+
const handleClose = useCallback(async () => invokePromise(SpaceOperation.WaitForObject, {
|
|
65
|
+
id: void 0
|
|
66
|
+
}), [
|
|
67
|
+
invokePromise
|
|
68
|
+
]);
|
|
69
|
+
const handleNavigate = useCallback(() => {
|
|
70
|
+
void invokePromise(LayoutOperation.Open, {
|
|
71
|
+
subject: [
|
|
72
|
+
id
|
|
73
|
+
]
|
|
74
|
+
});
|
|
75
|
+
void handleClose();
|
|
76
|
+
}, [
|
|
77
|
+
id,
|
|
78
|
+
handleClose,
|
|
79
|
+
invokePromise
|
|
80
|
+
]);
|
|
81
|
+
return /* @__PURE__ */ React.createElement(Toast.Root, {
|
|
82
|
+
open,
|
|
83
|
+
duration: TOAST_TIMEOUT,
|
|
84
|
+
onOpenChange: setOpen
|
|
85
|
+
}, /* @__PURE__ */ React.createElement(Toast.Body, null, /* @__PURE__ */ React.createElement(Toast.Title, {
|
|
86
|
+
classNames: "flex items-center gap-2"
|
|
87
|
+
}, found ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Icon, {
|
|
88
|
+
icon: "ph--check-circle--regular"
|
|
89
|
+
}), /* @__PURE__ */ React.createElement("span", null, t("found-object.label"))) : waiting ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Icon, {
|
|
90
|
+
icon: "ph--circle-notch--regular",
|
|
91
|
+
classNames: "animate-spin"
|
|
92
|
+
}), /* @__PURE__ */ React.createElement("span", null, t("waiting-for-object.label"))) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Icon, {
|
|
93
|
+
icon: "ph--circle-dashed--regular"
|
|
94
|
+
}), /* @__PURE__ */ React.createElement("span", null, t("object-not-found.label")))), /* @__PURE__ */ React.createElement(Toast.Description, null, t(found ? "found-object.description" : waiting ? "waiting-for-object.description" : "object-not-found.description"))), /* @__PURE__ */ React.createElement(Toast.Actions, null, found ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Toast.Action, {
|
|
95
|
+
altText: t("go-to-object.alt"),
|
|
96
|
+
asChild: true
|
|
97
|
+
}, /* @__PURE__ */ React.createElement(Button, {
|
|
98
|
+
variant: "primary",
|
|
99
|
+
onClick: handleNavigate
|
|
100
|
+
}, t("go-to-object.label"))), /* @__PURE__ */ React.createElement(Toast.Close, {
|
|
101
|
+
asChild: true
|
|
102
|
+
}, /* @__PURE__ */ React.createElement(Button, {
|
|
103
|
+
onClick: handleClose
|
|
104
|
+
}, t("close.label", {
|
|
105
|
+
ns: osTranslations
|
|
106
|
+
})))) : /* @__PURE__ */ React.createElement(Toast.Close, {
|
|
107
|
+
asChild: true
|
|
108
|
+
}, /* @__PURE__ */ React.createElement(Button, {
|
|
109
|
+
onClick: handleClose
|
|
110
|
+
}, t(waiting ? "close.label" : "confirm.label", {
|
|
111
|
+
ns: osTranslations
|
|
112
|
+
})))));
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
// src/components/CreateDialog/CreateObjectPanel.tsx
|
|
116
|
+
import React2, { useCallback as useCallback2, useMemo } from "react";
|
|
117
|
+
import { Obj as Obj2 } from "@dxos/echo";
|
|
118
|
+
import { toLocalizedString, useDefaultValue, useTranslation as useTranslation2 } from "@dxos/react-ui";
|
|
119
|
+
import { Form, omitId } from "@dxos/react-ui-form";
|
|
120
|
+
import { SearchList, useSearchListResults } from "@dxos/react-ui-search";
|
|
121
|
+
import { useInputSurfaceLookup } from "#hooks";
|
|
122
|
+
import { meta as meta3 } from "#meta";
|
|
123
|
+
var CreateObjectPanel = ({ options, spaces, typename, target, initialFormValues: initialFormValuesProp, defaultSpaceId, resolve, onTargetChange, onTypenameChange, onCreateObject }) => {
|
|
124
|
+
const initialFormValues = useDefaultValue(initialFormValuesProp, () => ({}));
|
|
125
|
+
const metadata = typename && resolve?.(typename);
|
|
126
|
+
const sortedOptions = useMemo(() => [
|
|
127
|
+
...options
|
|
128
|
+
].sort((a, b) => a.label.localeCompare(b.label)), [
|
|
129
|
+
options
|
|
130
|
+
]);
|
|
131
|
+
const handleCreateObject = useCallback2(async (props) => {
|
|
132
|
+
if (!metadata) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
await onCreateObject?.({
|
|
136
|
+
metadata,
|
|
137
|
+
data: props
|
|
138
|
+
});
|
|
139
|
+
}, [
|
|
140
|
+
onCreateObject,
|
|
141
|
+
metadata
|
|
142
|
+
]);
|
|
143
|
+
const handleSelectOption = useCallback2(async (id) => {
|
|
144
|
+
const metadata2 = resolve?.(id);
|
|
145
|
+
if (metadata2 && !metadata2.inputSchema) {
|
|
146
|
+
await onCreateObject?.({
|
|
147
|
+
metadata: metadata2
|
|
148
|
+
});
|
|
149
|
+
} else {
|
|
150
|
+
onTypenameChange?.(id);
|
|
151
|
+
}
|
|
152
|
+
}, [
|
|
153
|
+
resolve,
|
|
154
|
+
onCreateObject
|
|
155
|
+
]);
|
|
156
|
+
const inputSchema = useMemo(() => metadata && typeof metadata === "object" && metadata.inputSchema ? omitId(metadata.inputSchema) : void 0, [
|
|
157
|
+
metadata
|
|
158
|
+
]);
|
|
159
|
+
const inputSurfaceLookup = useInputSurfaceLookup({
|
|
160
|
+
target
|
|
161
|
+
});
|
|
162
|
+
if (!metadata) {
|
|
163
|
+
return /* @__PURE__ */ React2.createElement(SelectType, {
|
|
164
|
+
options: sortedOptions,
|
|
165
|
+
onChange: handleSelectOption
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
if (!target) {
|
|
169
|
+
return /* @__PURE__ */ React2.createElement(SelectSpace, {
|
|
170
|
+
spaces,
|
|
171
|
+
defaultSpaceId,
|
|
172
|
+
onChange: onTargetChange
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
if (metadata.inputSchema) {
|
|
176
|
+
return /* @__PURE__ */ React2.createElement(Form.Root, {
|
|
177
|
+
autoFocus: true,
|
|
178
|
+
schema: inputSchema,
|
|
179
|
+
defaultValues: initialFormValues,
|
|
180
|
+
fieldProvider: inputSurfaceLookup,
|
|
181
|
+
db: Obj2.isObject(target) ? Obj2.getDatabase(target) : target,
|
|
182
|
+
onSave: handleCreateObject,
|
|
183
|
+
testId: "create-object-form"
|
|
184
|
+
}, /* @__PURE__ */ React2.createElement(Form.Viewport, null, /* @__PURE__ */ React2.createElement(Form.Content, null, /* @__PURE__ */ React2.createElement(Form.FieldSet, null), /* @__PURE__ */ React2.createElement(Form.Submit, null))));
|
|
185
|
+
}
|
|
186
|
+
return null;
|
|
187
|
+
};
|
|
188
|
+
CreateObjectPanel.displayName = "CreateObjectPanel";
|
|
189
|
+
var SelectType = ({ options, onChange }) => {
|
|
190
|
+
const { t } = useTranslation2(meta3.id);
|
|
191
|
+
const { results, handleSearch } = useSearchListResults({
|
|
192
|
+
items: options,
|
|
193
|
+
extract: (option) => option.label
|
|
194
|
+
});
|
|
195
|
+
return /* @__PURE__ */ React2.createElement(SearchList.Root, {
|
|
196
|
+
onSearch: handleSearch
|
|
197
|
+
}, /* @__PURE__ */ React2.createElement(SearchList.Content, {
|
|
198
|
+
classNames: "gap-form-gap"
|
|
199
|
+
}, /* @__PURE__ */ React2.createElement(SearchList.Input, {
|
|
200
|
+
autoFocus: true,
|
|
201
|
+
"data-testid": "create-object-form.schema-input",
|
|
202
|
+
placeholder: t("schema-input.placeholder")
|
|
203
|
+
}), /* @__PURE__ */ React2.createElement(SearchList.Viewport, null, results.map((option) => /* @__PURE__ */ React2.createElement(SearchList.Item, {
|
|
204
|
+
key: option.id,
|
|
205
|
+
value: option.id,
|
|
206
|
+
label: option.label,
|
|
207
|
+
icon: option.icon ?? "ph--placeholder--regular",
|
|
208
|
+
onSelect: () => onChange(option.id)
|
|
209
|
+
})))));
|
|
210
|
+
};
|
|
211
|
+
var SelectSpace = ({ spaces, defaultSpaceId, onChange }) => {
|
|
212
|
+
const { t } = useTranslation2(meta3.id);
|
|
213
|
+
const sortedSpaces = useMemo(() => [
|
|
214
|
+
...spaces
|
|
215
|
+
].sort((a, b) => {
|
|
216
|
+
const labelA = toLocalizedString(getSpaceDisplayName(a, {
|
|
217
|
+
personal: a.id === defaultSpaceId
|
|
218
|
+
}), t);
|
|
219
|
+
const labelB = toLocalizedString(getSpaceDisplayName(b, {
|
|
220
|
+
personal: b.id === defaultSpaceId
|
|
221
|
+
}), t);
|
|
222
|
+
return labelA.localeCompare(labelB);
|
|
223
|
+
}), [
|
|
224
|
+
spaces,
|
|
225
|
+
defaultSpaceId,
|
|
226
|
+
t
|
|
227
|
+
]);
|
|
228
|
+
const { results, handleSearch } = useSearchListResults({
|
|
229
|
+
items: sortedSpaces,
|
|
230
|
+
extract: (space) => toLocalizedString(getSpaceDisplayName(space, {
|
|
231
|
+
personal: space.id === defaultSpaceId
|
|
232
|
+
}), t)
|
|
233
|
+
});
|
|
234
|
+
return /* @__PURE__ */ React2.createElement(SearchList.Root, {
|
|
235
|
+
onSearch: handleSearch
|
|
236
|
+
}, /* @__PURE__ */ React2.createElement(SearchList.Content, null, /* @__PURE__ */ React2.createElement(SearchList.Input, {
|
|
237
|
+
autoFocus: true,
|
|
238
|
+
"data-testid": "create-object-form.space-input",
|
|
239
|
+
placeholder: t("space-input.placeholder")
|
|
240
|
+
}), /* @__PURE__ */ React2.createElement(SearchList.Viewport, null, results.map((space) => {
|
|
241
|
+
return /* @__PURE__ */ React2.createElement(SearchList.Item, {
|
|
242
|
+
key: space.id,
|
|
243
|
+
value: space.id,
|
|
244
|
+
label: toLocalizedString(getSpaceDisplayName(space, {
|
|
245
|
+
personal: space.id === defaultSpaceId
|
|
246
|
+
}), t),
|
|
247
|
+
onSelect: () => onChange?.(space.db)
|
|
248
|
+
});
|
|
249
|
+
}))));
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
// src/components/ForeignKeys/ForeignKeys.tsx
|
|
253
|
+
import React3, { useCallback as useCallback3 } from "react";
|
|
254
|
+
import { IconButton, List, ListItem, useTranslation as useTranslation3 } from "@dxos/react-ui";
|
|
255
|
+
import { meta as meta4 } from "#meta";
|
|
256
|
+
var ForeignKeys = ({ keys, onDelete }) => {
|
|
257
|
+
return /* @__PURE__ */ React3.createElement(List, {
|
|
258
|
+
classNames: "flex flex-col gap-2"
|
|
259
|
+
}, keys.map((key) => /* @__PURE__ */ React3.createElement(KeyItem, {
|
|
260
|
+
key: key.id,
|
|
261
|
+
forignKey: key,
|
|
262
|
+
onDelete
|
|
263
|
+
})));
|
|
264
|
+
};
|
|
265
|
+
var KeyItem = ({ forignKey, onDelete }) => {
|
|
266
|
+
const { t } = useTranslation3(meta4.id);
|
|
267
|
+
const handleDelete = useCallback3(() => {
|
|
268
|
+
onDelete?.(forignKey);
|
|
269
|
+
}, [
|
|
270
|
+
forignKey,
|
|
271
|
+
onDelete
|
|
272
|
+
]);
|
|
273
|
+
return /* @__PURE__ */ React3.createElement(ListItem.Root, {
|
|
274
|
+
classNames: "px-2"
|
|
275
|
+
}, /* @__PURE__ */ React3.createElement(ListItem.Heading, {
|
|
276
|
+
classNames: "flex flex-col grow truncate"
|
|
277
|
+
}, /* @__PURE__ */ React3.createElement("div", null, forignKey.source), /* @__PURE__ */ React3.createElement("div", {
|
|
278
|
+
className: "text-description text-sm truncate"
|
|
279
|
+
}, forignKey.id)), /* @__PURE__ */ React3.createElement(ListItem.Endcap, null, /* @__PURE__ */ React3.createElement(IconButton, {
|
|
280
|
+
iconOnly: true,
|
|
281
|
+
icon: "ph--x--regular",
|
|
282
|
+
variant: "ghost",
|
|
283
|
+
label: t("delete-key.button"),
|
|
284
|
+
onClick: handleDelete
|
|
285
|
+
})));
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
// src/components/SyncStatus/save-tracker.ts
|
|
289
|
+
import { Context } from "@dxos/context";
|
|
290
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-space/src/components/SyncStatus/save-tracker.ts";
|
|
291
|
+
var createClientSaveTracker = (client, cb) => {
|
|
292
|
+
const CleanupFns = {};
|
|
293
|
+
const state = {};
|
|
294
|
+
const install = (spaces) => {
|
|
295
|
+
for (const space of spaces) {
|
|
296
|
+
if (state[space.id]) {
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
state[space.id] = "saved";
|
|
300
|
+
CleanupFns[space.id] = createSpaceSaveTracker(space, (s) => {
|
|
301
|
+
state[space.id] = s;
|
|
302
|
+
cb(Object.values(state).some((s2) => s2 === "saving") ? "saving" : "saved");
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
client.spaces.subscribe((spaces) => {
|
|
307
|
+
install(spaces);
|
|
308
|
+
});
|
|
309
|
+
install(client.spaces.get());
|
|
310
|
+
return () => {
|
|
311
|
+
for (const unsubscribe of Object.values(CleanupFns)) {
|
|
312
|
+
unsubscribe();
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
var createSpaceSaveTracker = (space, cb) => {
|
|
317
|
+
const ctx = new Context(void 0, {
|
|
318
|
+
F: __dxlog_file,
|
|
319
|
+
L: 40
|
|
320
|
+
});
|
|
321
|
+
void space.waitUntilReady().then(() => {
|
|
322
|
+
if (ctx.disposed) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
let hasUnsavedChanges = false;
|
|
326
|
+
let lastFlushPromise;
|
|
327
|
+
space.internal.db.saveStateChanged.on(ctx, ({ unsavedDocuments }) => {
|
|
328
|
+
hasUnsavedChanges = unsavedDocuments.length > 0;
|
|
329
|
+
});
|
|
330
|
+
space.internal.db.saveStateChanged.debounce(500).on(ctx, () => {
|
|
331
|
+
if (hasUnsavedChanges) {
|
|
332
|
+
lastFlushPromise = void 0;
|
|
333
|
+
cb("saving");
|
|
334
|
+
} else {
|
|
335
|
+
const flushPromise = space.db.flush();
|
|
336
|
+
lastFlushPromise = flushPromise;
|
|
337
|
+
void flushPromise.then(() => {
|
|
338
|
+
if (lastFlushPromise === flushPromise) {
|
|
339
|
+
cb("saved");
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
return () => {
|
|
346
|
+
void ctx.dispose();
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
// src/components/SyncStatus/status.ts
|
|
351
|
+
var getStatus = ({ offline, saved, needsToUpload, needsToDownload }) => {
|
|
352
|
+
if (!saved) {
|
|
353
|
+
return "saving-locally";
|
|
354
|
+
} else if (!offline && needsToDownload) {
|
|
355
|
+
return "downloading";
|
|
356
|
+
} else if (!offline && needsToUpload) {
|
|
357
|
+
return "uploading";
|
|
358
|
+
} else if (offline && !needsToUpload && !needsToDownload) {
|
|
359
|
+
return "offline-persisted";
|
|
360
|
+
} else {
|
|
361
|
+
return "remote-synced";
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
var getIcon = (status) => {
|
|
365
|
+
switch (status) {
|
|
366
|
+
case "saving-locally":
|
|
367
|
+
return "ph--download--regular";
|
|
368
|
+
case "downloading":
|
|
369
|
+
return "ph--cloud-arrow-down--regular";
|
|
370
|
+
case "uploading":
|
|
371
|
+
return "ph--cloud-arrow-up--regular";
|
|
372
|
+
case "offline-persisted":
|
|
373
|
+
return "ph--check-circle--regular";
|
|
374
|
+
case "remote-synced":
|
|
375
|
+
return "ph--cloud-check--regular";
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
// src/components/index.ts
|
|
380
|
+
var SpacePluginSettings = lazy(() => import("./SpacePluginSettings-BHTDFW3O.mjs"));
|
|
72
381
|
|
|
73
382
|
// src/SpacePlugin.ts
|
|
74
383
|
import * as Effect from "effect/Effect";
|
|
384
|
+
import * as Option from "effect/Option";
|
|
75
385
|
import * as Schema from "effect/Schema";
|
|
76
|
-
import { ActivationEvent,
|
|
77
|
-
import {
|
|
386
|
+
import { ActivationEvent, ActivationEvents, Capability, Plugin } from "@dxos/app-framework";
|
|
387
|
+
import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
|
|
388
|
+
import { Annotation, Ref, Tag, Type as Type2 } from "@dxos/echo";
|
|
389
|
+
import { Collection as Collection2 } from "@dxos/echo";
|
|
78
390
|
import { Operation } from "@dxos/operation";
|
|
79
|
-
import { AttentionEvents } from "@dxos/plugin-attention";
|
|
391
|
+
import { AttentionEvents } from "@dxos/plugin-attention/types";
|
|
80
392
|
import { ClientEvents } from "@dxos/plugin-client/types";
|
|
81
393
|
import { translations as componentsTranslations } from "@dxos/react-ui-components";
|
|
82
394
|
import { translations as formTranslations } from "@dxos/react-ui-form";
|
|
83
|
-
import {
|
|
395
|
+
import { DataTypes, createDefaultSchema } from "@dxos/schema";
|
|
84
396
|
import { translations as shellTranslations } from "@dxos/shell/react";
|
|
85
|
-
import { AnchoredTo, Employer, Event, HasConnection, HasRelationship, HasSubject, Organization, Person,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
import {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
// src/capabilities/app-graph-serializer/index.ts
|
|
92
|
-
import { Capability as Capability2 } from "@dxos/app-framework";
|
|
93
|
-
var AppGraphSerializer = Capability2.lazy("AppGraphSerializer", () => import("./app-graph-serializer-7AT7QMSK.mjs"));
|
|
94
|
-
|
|
95
|
-
// src/capabilities/react-root/index.ts
|
|
96
|
-
import { Capability as Capability3 } from "@dxos/app-framework";
|
|
97
|
-
var ReactRoot = Capability3.lazy("ReactRoot", () => import("./react-root-3SPMM45V.mjs"));
|
|
98
|
-
|
|
99
|
-
// src/capabilities/react-surface/index.ts
|
|
100
|
-
import { Capability as Capability4 } from "@dxos/app-framework";
|
|
101
|
-
var ReactSurface = Capability4.lazy("ReactSurface", () => import("./react-surface-UUS7NDHS.mjs"));
|
|
102
|
-
|
|
103
|
-
// src/capabilities/repair/index.ts
|
|
104
|
-
import { Capability as Capability5 } from "@dxos/app-framework";
|
|
105
|
-
var Repair = Capability5.lazy("Repair", () => import("./repair-CJG26D52.mjs"));
|
|
106
|
-
|
|
107
|
-
// src/capabilities/settings/index.ts
|
|
108
|
-
import { Capability as Capability6 } from "@dxos/app-framework";
|
|
109
|
-
var SpaceSettings = Capability6.lazy("SpaceSettings", () => import("./settings-ZS2AQ73E.mjs"));
|
|
397
|
+
import { AnchoredTo, Employer, Event as Event2, HasConnection, HasRelationship, HasSubject, Organization as Organization2, Person as Person2, Pipeline as Pipeline2, Task as Task2 } from "@dxos/types";
|
|
398
|
+
import { AppGraphSerializer, IdentityCreated, Migrations, NavigationHandler, NavigationResolver, OperationHandler, UndoMappings, ReactRoot, ReactSurface, Repair, SpaceSettings, SpaceState, SpacesReady, AppGraphBuilder } from "#capabilities";
|
|
399
|
+
import { meta as meta6 } from "#meta";
|
|
400
|
+
import { SpaceOperation as SpaceOperation2 } from "#operations";
|
|
401
|
+
import { SpaceEvents as SpaceEvents2 } from "#types";
|
|
110
402
|
|
|
111
|
-
// src/
|
|
112
|
-
import {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
403
|
+
// src/translations.ts
|
|
404
|
+
import { Type } from "@dxos/echo";
|
|
405
|
+
import { Collection } from "@dxos/echo";
|
|
406
|
+
import { Event, Message, Organization, Person, Pipeline, Task } from "@dxos/types";
|
|
407
|
+
import { meta as meta5 } from "#meta";
|
|
408
|
+
var translations = [
|
|
409
|
+
{
|
|
410
|
+
"en-US": {
|
|
411
|
+
[Collection.Collection.typename]: {
|
|
412
|
+
"typename.label": "Collection",
|
|
413
|
+
"typename.label_zero": "Collections",
|
|
414
|
+
"typename.label_one": "Collection",
|
|
415
|
+
"typename.label_other": "Collections",
|
|
416
|
+
"object-name.placeholder": "New collection",
|
|
417
|
+
"add-object.label": "Add collection",
|
|
418
|
+
"rename-object.label": "Rename collection",
|
|
419
|
+
"delete-object.label": "Delete collection",
|
|
420
|
+
"object-deleted.label": "Collection deleted"
|
|
421
|
+
},
|
|
422
|
+
[Type.getTypename(Type.PersistentType)]: {
|
|
423
|
+
"typename.label": "Type",
|
|
424
|
+
"typename.label_zero": "Types",
|
|
425
|
+
"typename.label_one": "Type",
|
|
426
|
+
"typename.label_other": "Types",
|
|
427
|
+
"object-name.placeholder": "New type",
|
|
428
|
+
"add-object.label": "Add type",
|
|
429
|
+
"rename-object.label": "Rename type",
|
|
430
|
+
"delete-object.label": "Delete type",
|
|
431
|
+
"object-deleted.label": "Type deleted"
|
|
432
|
+
},
|
|
433
|
+
[Event.Event.typename]: {
|
|
434
|
+
"typename.label": "Event",
|
|
435
|
+
"typename.label_zero": "Events",
|
|
436
|
+
"typename.label_one": "Event",
|
|
437
|
+
"typename.label_other": "Events",
|
|
438
|
+
"object-name.placeholder": "New event",
|
|
439
|
+
"add-object.label": "Add event",
|
|
440
|
+
"rename-object.label": "Rename event",
|
|
441
|
+
"delete-object.label": "Delete event",
|
|
442
|
+
"object-deleted.label": "Event deleted"
|
|
443
|
+
},
|
|
444
|
+
[Message.Message.typename]: {
|
|
445
|
+
"typename.label": "Message",
|
|
446
|
+
"typename.label_zero": "Messages",
|
|
447
|
+
"typename.label_one": "Message",
|
|
448
|
+
"typename.label_other": "Messages",
|
|
449
|
+
"object-name.placeholder": "New message",
|
|
450
|
+
"add-object.label": "Add message",
|
|
451
|
+
"rename-object.label": "Rename message",
|
|
452
|
+
"delete-object.label": "Delete message",
|
|
453
|
+
"object-deleted.label": "Message deleted"
|
|
454
|
+
},
|
|
455
|
+
[Organization.Organization.typename]: {
|
|
456
|
+
"typename.label": "Organization",
|
|
457
|
+
"typename.label_zero": "Organizations",
|
|
458
|
+
"typename.label_one": "Organization",
|
|
459
|
+
"typename.label_other": "Organizations",
|
|
460
|
+
"object-name.placeholder": "New organization",
|
|
461
|
+
"add-object.label": "Add organization",
|
|
462
|
+
"rename-object.label": "Rename organization",
|
|
463
|
+
"delete-object.label": "Delete organization",
|
|
464
|
+
"object-deleted.label": "Organization deleted"
|
|
465
|
+
},
|
|
466
|
+
[Person.Person.typename]: {
|
|
467
|
+
"typename.label": "Person",
|
|
468
|
+
"typename.label_zero": "People",
|
|
469
|
+
"typename.label_one": "Person",
|
|
470
|
+
"typename.label_other": "People",
|
|
471
|
+
"object-name.placeholder": "New person",
|
|
472
|
+
"add-object.label": "Add person",
|
|
473
|
+
"rename-object.label": "Rename person",
|
|
474
|
+
"delete-object.label": "Delete person",
|
|
475
|
+
"object-deleted.label": "Person deleted"
|
|
476
|
+
},
|
|
477
|
+
[Pipeline.Pipeline.typename]: {
|
|
478
|
+
"typename.label": "Project",
|
|
479
|
+
"typename.label_zero": "Projects",
|
|
480
|
+
"typename.label_one": "Project",
|
|
481
|
+
"typename.label_other": "Projects",
|
|
482
|
+
"object-name.placeholder": "New project",
|
|
483
|
+
"add-object.label": "Add project",
|
|
484
|
+
"rename-object.label": "Rename project",
|
|
485
|
+
"delete-object.label": "Delete project",
|
|
486
|
+
"object-deleted.label": "Project deleted"
|
|
487
|
+
},
|
|
488
|
+
[Task.Task.typename]: {
|
|
489
|
+
"typename.label": "Task",
|
|
490
|
+
"typename.label_zero": "Tasks",
|
|
491
|
+
"typename.label_one": "Task",
|
|
492
|
+
"typename.label_other": "Tasks",
|
|
493
|
+
"object-name.placeholder": "New task",
|
|
494
|
+
"add-object.label": "Add task",
|
|
495
|
+
"rename-object.label": "Rename task",
|
|
496
|
+
"delete-object.label": "Delete task",
|
|
497
|
+
"object-deleted.label": "Task deleted"
|
|
498
|
+
},
|
|
499
|
+
[meta5.id]: {
|
|
500
|
+
"plugin.name": "Spaces",
|
|
501
|
+
"first-run.message": "Nothing selected.",
|
|
502
|
+
"create-space.label": "Create space",
|
|
503
|
+
"join-space.label": "Join space",
|
|
504
|
+
"empty-space.message": "No documents",
|
|
505
|
+
"empty-tree.message": "No spaces",
|
|
506
|
+
"unnamed-space.label": "New space",
|
|
507
|
+
"closed-space.label": "Closed",
|
|
508
|
+
"loading-space.label": "Loading space\u2026",
|
|
509
|
+
"lock-space.label": "Lock space",
|
|
510
|
+
"unlock-space.label": "Unlock space",
|
|
511
|
+
"rename-space.label": "Rename space",
|
|
512
|
+
"active-space.label": "Active space:",
|
|
513
|
+
"space-name.label": "Space name",
|
|
514
|
+
"object-name.label": "Object name",
|
|
515
|
+
"close-space.label": "Close space",
|
|
516
|
+
"open-space.label": "Open space",
|
|
517
|
+
"export-data.label": "Export data",
|
|
518
|
+
"import-data.label": "Import data",
|
|
519
|
+
"migrate-space.label": "Migrate space",
|
|
520
|
+
"share-space.label": "Share current space",
|
|
521
|
+
"save-space-to-disk.label": "Save to disk",
|
|
522
|
+
"load-space-from-disk.label": "Load from disk",
|
|
523
|
+
"confirm-restore.title": "Overwrite files in this space?",
|
|
524
|
+
"upload-file.message": "Drag file here or click to browse",
|
|
525
|
+
"object-name.placeholder": "Object",
|
|
526
|
+
"object.placeholder": "Type a title here\u2026",
|
|
527
|
+
"personal-space.label": "Personal Space",
|
|
528
|
+
"spaces.label": "Spaces",
|
|
529
|
+
"space-settings.label": "Spaces",
|
|
530
|
+
"space-settings.description": "Each space has its own settings you can configure, where you can adjust its properties, membership, integrations, and other objects specific to that space.",
|
|
531
|
+
"show-hidden-spaces.label": "Show archived spaces",
|
|
532
|
+
"show-hidden-spaces.description": "Display archived spaces in the sidebar so they can be accessed or unarchived.",
|
|
533
|
+
"save-files-to-directory.label": "Save files to disk",
|
|
534
|
+
"select-path.label": "Select path",
|
|
535
|
+
"snapshot-by-schema.label": "Snapshot of objects",
|
|
536
|
+
"rename-collection.label": "Rename collection",
|
|
537
|
+
"rename-object.label": "Rename object",
|
|
538
|
+
"duplicate-object.label": "Duplicate object",
|
|
539
|
+
"object-deleted.label": "Object deleted",
|
|
540
|
+
"objects-deleted.label": "Objects deleted",
|
|
541
|
+
"go-to-object.alt": "Open",
|
|
542
|
+
"go-to-object.label": "Open object",
|
|
543
|
+
"found-object.label": "Ready.",
|
|
544
|
+
"found-object.description": "The requested object is now available.",
|
|
545
|
+
"waiting-for-object.label": "Loading\u2026",
|
|
546
|
+
"waiting-for-object.description": "The requested object is still being synchronized.",
|
|
547
|
+
"object-not-found.label": "Nothing found.",
|
|
548
|
+
"object-not-found.description": "The requested object has not been found yet. Ensure there are enough peers online in the space with an updated copy.",
|
|
549
|
+
"missing-object.message": "Object not available.",
|
|
550
|
+
"missing-object.description": "The requested object has not been found yet. Ensure there are enough peers online in the space with an updated copy.",
|
|
551
|
+
"create-object-in-space.label": "Add to space",
|
|
552
|
+
"create-object-in-collection.label": "Add to collection",
|
|
553
|
+
"remove-from-collection.label": "Remove from collection",
|
|
554
|
+
"create-object-in-system-collection.label": "Add to system collection",
|
|
555
|
+
"new-type.label": "New type",
|
|
556
|
+
"add-view-to-schema.label": "Add view for type",
|
|
557
|
+
"space-members.label": "Space members",
|
|
558
|
+
"active-space-members.heading": "Online ({{count}})",
|
|
559
|
+
"inactive-space-members.heading": "Offline ({{count}})",
|
|
560
|
+
"presence.label_zero": "No other viewers",
|
|
561
|
+
"presence.label_one": "1 other viewer",
|
|
562
|
+
"presence.label_other": "{{count}} other viewers",
|
|
563
|
+
"persisted-locally.label": "Changes saved locally.",
|
|
564
|
+
"persisted-locally.message": "All changes have been saved to disk on this device.",
|
|
565
|
+
"persistence-pending.label": "Saving\u2026",
|
|
566
|
+
"persistence-error.label": "Error saving changes.",
|
|
567
|
+
"more-actions.label": "More actions",
|
|
568
|
+
"invitations.heading": "Invitations",
|
|
569
|
+
"keyshortcuts.label": "Keyboard shortcuts",
|
|
570
|
+
"menu-footer.label": "Details",
|
|
571
|
+
"location.label": "Located in",
|
|
572
|
+
"space-limit.label": "Space Limit Reached",
|
|
573
|
+
"space-limit.description": "This space has reached the maximum number of objects for the beta. This limit includes deleted objects currently, but those can be permanently removed with the cleanup action.",
|
|
574
|
+
"space-limit-close.label": "Close",
|
|
575
|
+
"remove-deleted-objects.label": "Cleanup",
|
|
576
|
+
"remove-deleted-objects.alt": "Permanently remove deleted objects to free up space.",
|
|
577
|
+
"copy-link.label": "Copy link",
|
|
578
|
+
"default-on-space-create.label": "On space create",
|
|
579
|
+
"sync-status.title": "Sync status",
|
|
580
|
+
"dismiss.label": "Dismiss",
|
|
581
|
+
"join-success.label": "Successfully joined space",
|
|
582
|
+
"name.label": "Name",
|
|
583
|
+
"name.placeholder": "Name",
|
|
584
|
+
"object-properties.label": "Properties",
|
|
585
|
+
"edge-replication.label": "Enable EDGE Replication",
|
|
586
|
+
"saving-locally.label": "Writing to disk",
|
|
587
|
+
"downloading.label": "Replicating from peers",
|
|
588
|
+
"uploading.label": "Replicating to peers",
|
|
589
|
+
"offline-persisted.label": "Saved to disk (offline)",
|
|
590
|
+
"remote-synced.label": "Synced with peers",
|
|
591
|
+
"syncing.label": "Space syncing",
|
|
592
|
+
"show-all.label": "Show all",
|
|
593
|
+
"no-sync-status.label": "No space with missing objects.",
|
|
594
|
+
"create-space-dialog.title": "Create Space",
|
|
595
|
+
"create-object-dialog.title": "Create {{object}}",
|
|
596
|
+
"space-input.placeholder": "Select space",
|
|
597
|
+
"schema-input.placeholder": "Select type",
|
|
598
|
+
"creating-object-type.label": "Type",
|
|
599
|
+
"creating-in-space.label": "Location",
|
|
600
|
+
"creating-in-collection.label": "In Collection",
|
|
601
|
+
"clear-input.label": "Clear",
|
|
602
|
+
"expose-object.label": "Expose in navtree",
|
|
603
|
+
"add-tag.label": "Add tag",
|
|
604
|
+
"advanced-settings.label": "Advanced",
|
|
605
|
+
"settings.space-list.label": "Spaces",
|
|
606
|
+
"settings.open-settings.label": "Open settings",
|
|
607
|
+
"settings-panel.label": "Open settings",
|
|
608
|
+
"related-actions.label": "Related Actions",
|
|
609
|
+
"related-objects.label": "Related Objects",
|
|
610
|
+
"row-details-no-selection.label": "No objects selected",
|
|
611
|
+
"companion-related.label": "Related",
|
|
612
|
+
"companion-selected-objects.label": "Selected",
|
|
613
|
+
"field-deleted.label": "Field deleted",
|
|
614
|
+
"members-panel.label": "Members",
|
|
615
|
+
"members-verbose.label": "Manage space members",
|
|
616
|
+
"members.description": "You can view the current status of space members here as well as invite new members.",
|
|
617
|
+
"members.label": "Members",
|
|
618
|
+
"invitations.label": "Invitations",
|
|
619
|
+
"space-invitation.description": "Manage invitations to the space.",
|
|
620
|
+
"qr-code.description": "Share this QR code, or copy the URL and share it with the person you want to invite.",
|
|
621
|
+
"locked-space.description": "This space is locked, unlock it to invite new members.",
|
|
622
|
+
"space-locked.label": "Lock space",
|
|
623
|
+
"space-locked.description": "Locking a space prevents new members from being invited to the space.",
|
|
624
|
+
"settings.panel.label": "Space Settings",
|
|
625
|
+
"open-current-space-settings.label": "Open current space settings",
|
|
626
|
+
"space-settings-properties.label": "General settings",
|
|
627
|
+
"space-properties-settings-verbose.label": "Manage space properties",
|
|
628
|
+
"space-properties-settings.description": "You can configure how this space is displayed in the app here.",
|
|
629
|
+
"space-settings-schema.label": "Types",
|
|
630
|
+
"schema-verbose.label": "Manage types",
|
|
631
|
+
"schema.description": "You can manage all of the types stored within this space here.",
|
|
632
|
+
"no-schemas-found.message": "No types found",
|
|
633
|
+
"display-name-input.placeholder": "Space name",
|
|
634
|
+
"display-name.description": "Name of the space as it appears in the app.",
|
|
635
|
+
"icon.description": "Icon used to represent the space in the app.",
|
|
636
|
+
"hue.description": "Color used to represent the space in the app.",
|
|
637
|
+
"edge-replication.description": "Only change this if you know what you're doing. Disabling this will prevent the space from replicating through Composer's EDGE services, and relies solely on peer-to-peer sync.",
|
|
638
|
+
"archive-space.description": "Archiving a space will remove it from the sidebar and stop replicating updates, but will not delete the data. You can unarchive it by enabling archived spaces in the app settings.",
|
|
639
|
+
"archive-space.label": "Archive",
|
|
640
|
+
"unarchive-space.label": "Unarchive",
|
|
641
|
+
"space-controls.title": "Space Controls",
|
|
642
|
+
"space-controls.description": "Advanced controls for this space.",
|
|
643
|
+
"backup-space.title": "Backup Space",
|
|
644
|
+
"backup-space.description": "Download a backup of the space. Contains all data in the space in an unencrypted format.",
|
|
645
|
+
"download-backup.label": "Download backup",
|
|
646
|
+
"repair-space.title": "Repair Space",
|
|
647
|
+
"repair-space.description": "Run repair operations on the space.",
|
|
648
|
+
"repair-space.label": "Run repairs",
|
|
649
|
+
"sync-edge-connected.label": "EDGE connected",
|
|
650
|
+
"sync-edge-disconnected.label": "Edge disconnected",
|
|
651
|
+
"sync-no-connection.label": "No connection to edge service",
|
|
652
|
+
"sync-latency.label": "Latency",
|
|
653
|
+
"sync-upload.label": "Upload",
|
|
654
|
+
"sync-download.label": "Download",
|
|
655
|
+
"types-section.label": "Types",
|
|
656
|
+
"collections-section.label": "Collections",
|
|
657
|
+
"type-collection-all.label": "All",
|
|
658
|
+
"search.placeholder": "Search\u2026",
|
|
659
|
+
"auth-code.message": "Authorization code",
|
|
660
|
+
"auth-other-device-emoji.message": "Authorization icon",
|
|
661
|
+
"cancel.label": "Cancel",
|
|
662
|
+
"delete-key.button": "Delete token",
|
|
663
|
+
"invite-one.label": "Create single-use invitation",
|
|
664
|
+
"invite-one.description": "One-time link",
|
|
665
|
+
"invite-many.label": "Create multi-use invitation",
|
|
666
|
+
"invite-many.description": "Anyone with the link can join.",
|
|
667
|
+
"presence.label": "Online activity",
|
|
668
|
+
"qr.label": "QR Code",
|
|
669
|
+
"typename.label": "Typename",
|
|
670
|
+
"unnamed-collection.label": "Unnamed"
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
];
|
|
118
675
|
|
|
119
676
|
// src/SpacePlugin.ts
|
|
120
|
-
var SpacePlugin = Plugin.define(
|
|
121
|
-
|
|
122
|
-
// TODO(wittjosiah): Does not integrate with settings store.
|
|
123
|
-
// Should this be a different event?
|
|
124
|
-
// Should settings store be renamed to be more generic?
|
|
125
|
-
activatesOn: ActivationEvent.oneOf(Common.ActivationEvent.SetupSettings, Common.ActivationEvent.SetupAppGraph),
|
|
126
|
-
activatesAfter: [
|
|
127
|
-
SpaceEvents.StateReady
|
|
128
|
-
],
|
|
129
|
-
activate: SpaceState
|
|
130
|
-
}),
|
|
131
|
-
Common.Plugin.addSettingsModule({
|
|
132
|
-
activate: SpaceSettings
|
|
133
|
-
}),
|
|
134
|
-
Common.Plugin.addTranslationsModule({
|
|
135
|
-
translations: [
|
|
136
|
-
...translations,
|
|
137
|
-
...componentsTranslations,
|
|
138
|
-
...formTranslations,
|
|
139
|
-
...shellTranslations
|
|
140
|
-
]
|
|
141
|
-
}),
|
|
142
|
-
Common.Plugin.addMetadataModule({
|
|
677
|
+
var SpacePlugin = Plugin.define(meta6).pipe(
|
|
678
|
+
AppPlugin.addMetadataModule({
|
|
143
679
|
metadata: [
|
|
144
680
|
{
|
|
145
|
-
id:
|
|
681
|
+
id: Collection2.Collection.typename,
|
|
146
682
|
metadata: {
|
|
147
|
-
icon:
|
|
148
|
-
iconHue: "
|
|
683
|
+
icon: Annotation.IconAnnotation.get(Collection2.Collection).pipe(Option.getOrThrow).icon,
|
|
684
|
+
iconHue: Annotation.IconAnnotation.get(Collection2.Collection).pipe(Option.getOrThrow).hue ?? "white",
|
|
149
685
|
// TODO(wittjosiah): Move out of metadata.
|
|
150
686
|
loadReferences: async (collection) => await Ref.Array.loadAll(collection.objects),
|
|
151
687
|
inputSchema: Schema.Struct({
|
|
152
688
|
name: Schema.optional(Schema.String)
|
|
153
689
|
}),
|
|
154
|
-
createObject: (props) => Effect.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
iconHue: "green",
|
|
163
|
-
inputSchema: SpaceOperation.StoredSchemaForm,
|
|
164
|
-
createObject: (props, { db }) => Effect.gen(function* () {
|
|
165
|
-
if (props.typename) {
|
|
166
|
-
const result = yield* Operation.invoke(SpaceOperation.UseStaticSchema, {
|
|
167
|
-
db,
|
|
168
|
-
typename: props.typename
|
|
169
|
-
});
|
|
170
|
-
return result;
|
|
171
|
-
} else {
|
|
172
|
-
const result = yield* Operation.invoke(SpaceOperation.AddSchema, {
|
|
173
|
-
db,
|
|
174
|
-
name: props.name,
|
|
175
|
-
schema: createDefaultSchema()
|
|
176
|
-
});
|
|
177
|
-
return result.object;
|
|
178
|
-
}
|
|
690
|
+
createObject: (props, options) => Effect.gen(function* () {
|
|
691
|
+
const object = Collection2.make(props);
|
|
692
|
+
return yield* Operation.invoke(SpaceOperation2.AddObject, {
|
|
693
|
+
object,
|
|
694
|
+
target: options.target,
|
|
695
|
+
hidden: false,
|
|
696
|
+
targetNodeId: options.targetNodeId
|
|
697
|
+
});
|
|
179
698
|
})
|
|
180
699
|
}
|
|
181
700
|
},
|
|
182
701
|
{
|
|
183
|
-
id:
|
|
702
|
+
id: Type2.getTypename(Type2.PersistentType),
|
|
184
703
|
metadata: {
|
|
185
|
-
icon:
|
|
704
|
+
icon: Annotation.IconAnnotation.get(Type2.PersistentType).pipe(Option.getOrThrow).icon,
|
|
705
|
+
iconHue: Annotation.IconAnnotation.get(Type2.PersistentType).pipe(Option.getOrThrow).hue ?? "white",
|
|
706
|
+
inputSchema: SpaceOperation2.StoredSchemaForm,
|
|
707
|
+
createObject: (props, options) => Effect.gen(function* () {
|
|
708
|
+
const result = yield* Operation.invoke(SpaceOperation2.AddSchema, {
|
|
709
|
+
db: options.db,
|
|
710
|
+
name: props.name,
|
|
711
|
+
schema: createDefaultSchema()
|
|
712
|
+
});
|
|
713
|
+
return {
|
|
714
|
+
id: result.id,
|
|
715
|
+
subject: [],
|
|
716
|
+
object: result.object
|
|
717
|
+
};
|
|
718
|
+
})
|
|
186
719
|
}
|
|
187
720
|
},
|
|
188
721
|
{
|
|
189
|
-
id:
|
|
722
|
+
id: Organization2.Organization.typename,
|
|
190
723
|
metadata: {
|
|
191
|
-
icon:
|
|
724
|
+
icon: Annotation.IconAnnotation.get(Organization2.Organization).pipe(Option.getOrThrow).icon,
|
|
725
|
+
iconHue: Annotation.IconAnnotation.get(Organization2.Organization).pipe(Option.getOrThrow).hue ?? "white",
|
|
726
|
+
createObject: (props, options) => Effect.gen(function* () {
|
|
727
|
+
const object = Organization2.make(props);
|
|
728
|
+
return yield* Operation.invoke(SpaceOperation2.AddObject, {
|
|
729
|
+
object,
|
|
730
|
+
target: options.target,
|
|
731
|
+
hidden: true,
|
|
732
|
+
targetNodeId: options.targetNodeId
|
|
733
|
+
});
|
|
734
|
+
})
|
|
192
735
|
}
|
|
193
736
|
},
|
|
194
737
|
{
|
|
195
|
-
id:
|
|
738
|
+
id: Person2.Person.typename,
|
|
196
739
|
metadata: {
|
|
197
|
-
icon:
|
|
740
|
+
icon: Annotation.IconAnnotation.get(Person2.Person).pipe(Option.getOrThrow).icon,
|
|
741
|
+
iconHue: Annotation.IconAnnotation.get(Person2.Person).pipe(Option.getOrThrow).hue ?? "white",
|
|
742
|
+
createObject: (props, options) => Effect.gen(function* () {
|
|
743
|
+
const object = Person2.make(props);
|
|
744
|
+
return yield* Operation.invoke(SpaceOperation2.AddObject, {
|
|
745
|
+
object,
|
|
746
|
+
target: options.target,
|
|
747
|
+
hidden: true,
|
|
748
|
+
targetNodeId: options.targetNodeId
|
|
749
|
+
});
|
|
750
|
+
})
|
|
198
751
|
}
|
|
199
752
|
},
|
|
200
753
|
{
|
|
201
|
-
id:
|
|
754
|
+
id: Task2.Task.typename,
|
|
202
755
|
metadata: {
|
|
203
|
-
icon:
|
|
756
|
+
icon: Annotation.IconAnnotation.get(Task2.Task).pipe(Option.getOrThrow).icon,
|
|
757
|
+
iconHue: Annotation.IconAnnotation.get(Task2.Task).pipe(Option.getOrThrow).hue ?? "white",
|
|
758
|
+
inputSchema: Task2.Task,
|
|
759
|
+
createObject: (props, options) => Effect.gen(function* () {
|
|
760
|
+
const object = Task2.make(props);
|
|
761
|
+
return yield* Operation.invoke(SpaceOperation2.AddObject, {
|
|
762
|
+
object,
|
|
763
|
+
target: options.target,
|
|
764
|
+
hidden: true,
|
|
765
|
+
targetNodeId: options.targetNodeId
|
|
766
|
+
});
|
|
767
|
+
})
|
|
204
768
|
}
|
|
205
769
|
}
|
|
206
770
|
]
|
|
207
771
|
}),
|
|
208
|
-
|
|
772
|
+
AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({
|
|
773
|
+
activate: () => NavigationHandler({
|
|
774
|
+
invitationProp
|
|
775
|
+
})
|
|
776
|
+
})),
|
|
777
|
+
AppPlugin.addNavigationResolverModule({
|
|
778
|
+
activatesOn: ClientEvents.ClientReady,
|
|
779
|
+
activate: NavigationResolver
|
|
780
|
+
}),
|
|
781
|
+
AppPlugin.addOperationHandlerModule({
|
|
782
|
+
activate: OperationHandler
|
|
783
|
+
}),
|
|
784
|
+
AppPlugin.addReactRootModule({
|
|
785
|
+
activate: ReactRoot
|
|
786
|
+
}),
|
|
787
|
+
AppPlugin.addSchemaModule({
|
|
209
788
|
schema: [
|
|
210
789
|
...DataTypes,
|
|
211
790
|
AnchoredTo.AnchoredTo,
|
|
212
791
|
Employer.Employer,
|
|
213
|
-
|
|
792
|
+
Event2.Event,
|
|
214
793
|
HasConnection.HasConnection,
|
|
215
794
|
HasRelationship.HasRelationship,
|
|
216
795
|
HasSubject.HasSubject,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
796
|
+
Organization2.Organization,
|
|
797
|
+
Person2.Person,
|
|
798
|
+
Pipeline2.Pipeline,
|
|
220
799
|
Tag.Tag,
|
|
221
|
-
|
|
800
|
+
Task2.Task
|
|
222
801
|
]
|
|
223
802
|
}),
|
|
224
|
-
|
|
225
|
-
activate:
|
|
803
|
+
AppPlugin.addSettingsModule({
|
|
804
|
+
activate: SpaceSettings
|
|
805
|
+
}),
|
|
806
|
+
AppPlugin.addTranslationsModule({
|
|
807
|
+
translations: [
|
|
808
|
+
...translations,
|
|
809
|
+
...componentsTranslations,
|
|
810
|
+
...formTranslations,
|
|
811
|
+
...shellTranslations
|
|
812
|
+
]
|
|
226
813
|
}),
|
|
227
|
-
Plugin.addModule(
|
|
814
|
+
Plugin.addModule({
|
|
815
|
+
// TODO(wittjosiah): Does not integrate with settings store.
|
|
816
|
+
// Should this be a different event?
|
|
817
|
+
// Should settings store be renamed to be more generic?
|
|
818
|
+
activatesOn: ActivationEvent.oneOf(AppActivationEvents.SetupSettings, AppActivationEvents.SetupAppGraph),
|
|
819
|
+
activatesAfter: [
|
|
820
|
+
SpaceEvents2.StateReady
|
|
821
|
+
],
|
|
822
|
+
activate: SpaceState
|
|
823
|
+
}),
|
|
824
|
+
Plugin.addModule(({ shareableLinkOrigin = typeof window !== "undefined" ? window.location.origin : "http://localhost", invitationPath = "/", invitationProp = "spaceInvitationCode" }) => {
|
|
228
825
|
const createInvitationUrl = (invitationCode) => {
|
|
229
|
-
const baseUrl = new URL(
|
|
826
|
+
const baseUrl = new URL(invitationPath || "/", shareableLinkOrigin);
|
|
230
827
|
baseUrl.searchParams.set(invitationProp, invitationCode);
|
|
231
828
|
return baseUrl.toString();
|
|
232
829
|
};
|
|
233
830
|
return {
|
|
234
|
-
id:
|
|
235
|
-
activatesOn:
|
|
831
|
+
id: Capability.getModuleTag(ReactSurface),
|
|
832
|
+
activatesOn: ActivationEvents.SetupReactSurface,
|
|
236
833
|
// TODO(wittjosiah): Should occur before the settings dialog is loaded when surfaces activation is more granular.
|
|
237
834
|
activatesBefore: [
|
|
238
|
-
|
|
835
|
+
SpaceEvents2.SetupSettingsPanel
|
|
239
836
|
],
|
|
240
837
|
activate: () => ReactSurface({
|
|
241
838
|
createInvitationUrl
|
|
242
839
|
})
|
|
243
840
|
};
|
|
244
841
|
}),
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
842
|
+
Plugin.addModule(({ shareableLinkOrigin = typeof window !== "undefined" ? window.location.origin : "http://localhost" }) => ({
|
|
843
|
+
id: Capability.getModuleTag(AppGraphBuilder),
|
|
844
|
+
activatesOn: AppActivationEvents.SetupAppGraph,
|
|
845
|
+
activate: () => AppGraphBuilder({
|
|
846
|
+
shareableLinkOrigin
|
|
847
|
+
})
|
|
848
|
+
})),
|
|
849
|
+
Plugin.addModule(({ shareableLinkOrigin = typeof window !== "undefined" ? window.location.origin : "http://localhost", invitationPath = "/", invitationProp = "spaceInvitationCode", observability = false }) => {
|
|
249
850
|
const createInvitationUrl = (invitationCode) => {
|
|
250
|
-
const baseUrl = new URL(
|
|
851
|
+
const baseUrl = new URL(invitationPath || "/", shareableLinkOrigin);
|
|
251
852
|
baseUrl.searchParams.set(invitationProp, invitationCode);
|
|
252
853
|
return baseUrl.toString();
|
|
253
854
|
};
|
|
254
855
|
return {
|
|
255
|
-
id:
|
|
256
|
-
activatesOn:
|
|
257
|
-
activate: () =>
|
|
856
|
+
id: Capability.getModuleTag(UndoMappings),
|
|
857
|
+
activatesOn: ActivationEvents.SetupOperationHandler,
|
|
858
|
+
activate: () => UndoMappings({
|
|
258
859
|
createInvitationUrl,
|
|
259
860
|
observability
|
|
260
861
|
})
|
|
@@ -262,20 +863,24 @@ var SpacePlugin = Plugin.define(meta).pipe(
|
|
|
262
863
|
}),
|
|
263
864
|
// TODO(wittjosiah): This could probably be deferred.
|
|
264
865
|
Plugin.addModule({
|
|
265
|
-
activatesOn:
|
|
866
|
+
activatesOn: AppActivationEvents.AppGraphReady,
|
|
266
867
|
activate: AppGraphSerializer
|
|
267
868
|
}),
|
|
268
869
|
Plugin.addModule({
|
|
269
870
|
activatesOn: ClientEvents.IdentityCreated,
|
|
270
871
|
activatesAfter: [
|
|
271
|
-
|
|
872
|
+
SpaceEvents2.PersonalSpaceReady
|
|
272
873
|
],
|
|
273
874
|
activate: IdentityCreated
|
|
274
875
|
}),
|
|
275
876
|
Plugin.addModule({
|
|
276
|
-
activatesOn: ActivationEvent.allOf(
|
|
877
|
+
activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, AppActivationEvents.LayoutReady, AppActivationEvents.AppGraphReady, AttentionEvents.AttentionReady, SpaceEvents2.StateReady, ClientEvents.SpacesReady),
|
|
277
878
|
activate: SpacesReady
|
|
278
879
|
}),
|
|
880
|
+
Plugin.addModule({
|
|
881
|
+
activatesOn: ClientEvents.SetupMigration,
|
|
882
|
+
activate: Migrations
|
|
883
|
+
}),
|
|
279
884
|
Plugin.addModule({
|
|
280
885
|
activatesOn: ClientEvents.SpacesReady,
|
|
281
886
|
activate: Repair
|
|
@@ -284,58 +889,20 @@ var SpacePlugin = Plugin.define(meta).pipe(
|
|
|
284
889
|
);
|
|
285
890
|
export {
|
|
286
891
|
AwaitingObject,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
CREATE_SPACE_DIALOG,
|
|
290
|
-
CollectionArticle,
|
|
291
|
-
CollectionSection,
|
|
292
|
-
CreateObjectDialog,
|
|
293
|
-
CreateSpaceDialog,
|
|
294
|
-
FullPresence,
|
|
295
|
-
InlineSyncStatus,
|
|
296
|
-
JOIN_DIALOG,
|
|
297
|
-
JoinDialog,
|
|
298
|
-
MembersContainer,
|
|
299
|
-
MenuFooter,
|
|
300
|
-
OBJECT_RENAME_POPOVER,
|
|
301
|
-
ObjectCardStack,
|
|
302
|
-
ObjectDetails,
|
|
303
|
-
ObjectRenamePopover,
|
|
304
|
-
RecordArticle,
|
|
892
|
+
CreateObjectPanel,
|
|
893
|
+
ForeignKeys,
|
|
305
894
|
SHARED,
|
|
306
895
|
SPACES,
|
|
307
|
-
SPACE_RENAME_POPOVER,
|
|
308
|
-
SchemaContainer,
|
|
309
|
-
SmallPresence,
|
|
310
|
-
SmallPresenceLive,
|
|
311
896
|
SpaceCapabilities,
|
|
312
897
|
SpaceEvents,
|
|
313
898
|
SpacePlugin,
|
|
314
899
|
SpacePluginSettings,
|
|
315
|
-
SpacePresence,
|
|
316
|
-
SpaceRenamePopover,
|
|
317
|
-
SpaceSettingsContainer,
|
|
318
|
-
SyncStatus,
|
|
319
|
-
SyncStatusIndicator,
|
|
320
|
-
ViewEditor,
|
|
321
900
|
cloneObject,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
constructSpaceNode,
|
|
325
|
-
createObjectNode,
|
|
326
|
-
createStaticSchemaActions,
|
|
327
|
-
createStaticSchemaNode,
|
|
328
|
-
evalQuery,
|
|
329
|
-
getActiveSpace,
|
|
901
|
+
createClientSaveTracker,
|
|
902
|
+
getIcon,
|
|
330
903
|
getNestedObjects,
|
|
331
|
-
getQueryTarget,
|
|
332
904
|
getSpaceDisplayName,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
useActiveSpace,
|
|
336
|
-
useInputSurfaceLookup,
|
|
337
|
-
usePath,
|
|
338
|
-
useQuerySpaceSchemas,
|
|
339
|
-
useTypeOptions
|
|
905
|
+
getStatus,
|
|
906
|
+
meta
|
|
340
907
|
};
|
|
341
908
|
//# sourceMappingURL=index.mjs.map
|