@dxos/plugin-space 0.8.2-main.f11618f → 0.8.2-staging.7ac8446
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/{app-graph-builder-ZWNOWRAX.mjs → app-graph-builder-GMFCSOLG.mjs} +7 -61
- package/dist/lib/browser/app-graph-builder-GMFCSOLG.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-serializer-UUJH7JRN.mjs → app-graph-serializer-DSF2U3A5.mjs} +8 -8
- package/dist/lib/browser/app-graph-serializer-DSF2U3A5.mjs.map +7 -0
- package/dist/lib/browser/{chunk-DIJ7LMCS.mjs → chunk-5BDV575R.mjs} +8 -20
- package/dist/lib/browser/chunk-5BDV575R.mjs.map +7 -0
- package/dist/lib/browser/{chunk-O7WGQVLQ.mjs → chunk-AYW4IDRT.mjs} +4 -35
- package/dist/lib/browser/chunk-AYW4IDRT.mjs.map +7 -0
- package/dist/lib/browser/{chunk-4226DMDP.mjs → chunk-JZXWPMLA.mjs} +666 -522
- package/dist/lib/browser/chunk-JZXWPMLA.mjs.map +7 -0
- package/dist/lib/browser/{chunk-JS6ZV4GV.mjs → chunk-LO5UL6RU.mjs} +141 -60
- package/dist/lib/browser/chunk-LO5UL6RU.mjs.map +7 -0
- package/dist/lib/browser/{identity-created-NRVE4XLL.mjs → identity-created-JR7BNXFH.mjs} +4 -4
- package/dist/lib/browser/identity-created-JR7BNXFH.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +33 -12
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-NP55M7C7.mjs → intent-resolver-RKYILWWQ.mjs} +82 -92
- package/dist/lib/browser/intent-resolver-RKYILWWQ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-XKAUZ3X2.mjs → react-root-6H7NX2M2.mjs} +4 -4
- package/dist/lib/browser/{react-surface-2DW2UDRX.mjs → react-surface-7AGLOVMK.mjs} +47 -121
- package/dist/lib/browser/react-surface-7AGLOVMK.mjs.map +7 -0
- package/dist/lib/browser/{settings-MVT32NP6.mjs → settings-PJPTJUPE.mjs} +4 -4
- package/dist/lib/browser/settings-PJPTJUPE.mjs.map +7 -0
- package/dist/lib/browser/{spaces-ready-ERNSICUW.mjs → spaces-ready-BSSP7HHG.mjs} +5 -5
- package/dist/lib/browser/spaces-ready-BSSP7HHG.mjs.map +7 -0
- package/dist/lib/browser/{state-CYV6QCTN.mjs → state-X7VLCC6E.mjs} +3 -1
- package/dist/lib/browser/state-X7VLCC6E.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -7
- package/dist/lib/node/{app-graph-builder-LLIV422L.cjs → app-graph-builder-DPY7AUZE.cjs} +30 -83
- package/dist/lib/node/app-graph-builder-DPY7AUZE.cjs.map +7 -0
- package/dist/lib/node/{app-graph-serializer-M6Z2OPA4.cjs → app-graph-serializer-JELGJUAY.cjs} +20 -20
- package/dist/lib/node/app-graph-serializer-JELGJUAY.cjs.map +7 -0
- package/dist/lib/node/{chunk-ZMQO74LX.cjs → chunk-3GKCNADA.cjs} +655 -513
- package/dist/lib/node/chunk-3GKCNADA.cjs.map +7 -0
- package/dist/lib/node/{chunk-UOCR4G2D.cjs → chunk-PU2EYH4E.cjs} +12 -24
- package/dist/lib/node/chunk-PU2EYH4E.cjs.map +7 -0
- package/dist/lib/node/{chunk-XADZLQAJ.cjs → chunk-TUZWEPGX.cjs} +167 -84
- package/dist/lib/node/chunk-TUZWEPGX.cjs.map +7 -0
- package/dist/lib/node/{chunk-EQ5BPSQ7.cjs → chunk-WDEIFDTX.cjs} +7 -41
- package/dist/lib/node/chunk-WDEIFDTX.cjs.map +7 -0
- package/dist/lib/node/{identity-created-YDTRMOMX.cjs → identity-created-XU4HFV2T.cjs} +6 -6
- package/dist/lib/node/identity-created-XU4HFV2T.cjs.map +7 -0
- package/dist/lib/node/index.cjs +89 -68
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-3J52ARFL.cjs → intent-resolver-VJ7YV74L.cjs} +131 -141
- package/dist/lib/node/intent-resolver-VJ7YV74L.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-root-XUE2J7HT.cjs → react-root-TEL5RW3N.cjs} +8 -8
- package/dist/lib/node/{react-surface-IWSTOZ2E.cjs → react-surface-2H3S5TY5.cjs} +74 -146
- package/dist/lib/node/react-surface-2H3S5TY5.cjs.map +7 -0
- package/dist/lib/node/{settings-JLV7YT6Q.cjs → settings-WVFP2UEP.cjs} +7 -7
- package/dist/lib/node/settings-WVFP2UEP.cjs.map +7 -0
- package/dist/lib/node/{spaces-ready-6EBR4SM4.cjs → spaces-ready-7DNZSUOG.cjs} +12 -12
- package/dist/lib/node/spaces-ready-7DNZSUOG.cjs.map +7 -0
- package/dist/lib/node/{state-JLN7TGRR.cjs → state-5KX6WBJH.cjs} +6 -4
- package/dist/lib/node/state-5KX6WBJH.cjs.map +7 -0
- package/dist/lib/node/types/index.cjs +12 -18
- package/dist/lib/node/types/index.cjs.map +2 -2
- package/dist/lib/node-esm/{app-graph-builder-HSGLCS76.mjs → app-graph-builder-42IGWRPL.mjs} +7 -61
- package/dist/lib/node-esm/app-graph-builder-42IGWRPL.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-serializer-J3B4WSXU.mjs → app-graph-serializer-FXONFKOE.mjs} +8 -8
- package/dist/lib/node-esm/app-graph-serializer-FXONFKOE.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-OLISVDCF.mjs → chunk-3ZOUV4DF.mjs} +8 -20
- package/dist/lib/node-esm/chunk-3ZOUV4DF.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-PQI4D4SH.mjs → chunk-BEWBZ4Q4.mjs} +666 -522
- package/dist/lib/node-esm/chunk-BEWBZ4Q4.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-FJPCLEKN.mjs → chunk-FC4UHDPL.mjs} +4 -35
- package/dist/lib/node-esm/chunk-FC4UHDPL.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-ABTVMAG5.mjs → chunk-ZGLK25WQ.mjs} +141 -60
- package/dist/lib/node-esm/chunk-ZGLK25WQ.mjs.map +7 -0
- package/dist/lib/node-esm/{identity-created-EC6SVYB5.mjs → identity-created-WJKAS2PV.mjs} +4 -4
- package/dist/lib/node-esm/identity-created-WJKAS2PV.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +33 -12
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-MXQIFIRC.mjs → intent-resolver-ZFNSA4CM.mjs} +82 -92
- package/dist/lib/node-esm/intent-resolver-ZFNSA4CM.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-root-ZBCJCEFS.mjs → react-root-PRBJMWLQ.mjs} +4 -4
- package/dist/lib/node-esm/{react-surface-JCHDAPGM.mjs → react-surface-RCZG2PNF.mjs} +47 -121
- package/dist/lib/node-esm/react-surface-RCZG2PNF.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-AILIMHTE.mjs → settings-FJZPC2TV.mjs} +4 -4
- package/dist/lib/node-esm/settings-FJZPC2TV.mjs.map +7 -0
- package/dist/lib/node-esm/{spaces-ready-5PXESKHX.mjs → spaces-ready-7X5PGB2V.mjs} +5 -5
- package/dist/lib/node-esm/spaces-ready-7X5PGB2V.mjs.map +7 -0
- package/dist/lib/node-esm/{state-YZPY5T5A.mjs → state-Z6E2YTNC.mjs} +3 -1
- package/dist/lib/node-esm/state-Z6E2YTNC.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -7
- package/dist/types/src/SpacePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +0 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +1 -2
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/components/CollectionMain.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts +2 -2
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateSpaceDialog.d.ts.map +1 -1
- package/dist/types/src/components/MembersContainer.d.ts.map +1 -1
- package/dist/types/src/components/ObjectSettingsContainer/AdvancedObjectSettings.d.ts.map +1 -0
- package/dist/types/src/components/ObjectSettingsContainer/BaseObjectSettings.d.ts.map +1 -0
- package/dist/types/src/components/ObjectSettingsContainer/ForeignKeys.d.ts.map +1 -0
- package/dist/types/src/components/ObjectSettingsContainer/ObjectSettingsContainer.d.ts.map +1 -0
- package/dist/types/src/components/ObjectSettingsContainer/index.d.ts.map +1 -0
- package/dist/types/src/components/PopoverAddSpace.d.ts.map +1 -1
- package/dist/types/src/components/PopoverRenameObject.d.ts +2 -2
- package/dist/types/src/components/PopoverRenameObject.d.ts.map +1 -1
- package/dist/types/src/components/PopoverRenameSpace.d.ts.map +1 -1
- package/dist/types/src/components/ShareSpaceButton.d.ts +9 -0
- package/dist/types/src/components/ShareSpaceButton.d.ts.map +1 -0
- package/dist/types/src/components/ShareSpaceButton.stories.d.ts +10 -0
- package/dist/types/src/components/ShareSpaceButton.stories.d.ts.map +1 -0
- package/dist/types/src/components/SpacePluginSettings.d.ts.map +1 -1
- package/dist/types/src/components/SpacePresence.d.ts.map +1 -1
- package/dist/types/src/components/SpaceSettings/SpacePropertiesForm.d.ts +7 -0
- package/dist/types/src/components/SpaceSettings/SpacePropertiesForm.d.ts.map +1 -0
- package/dist/types/src/components/SpaceSettings/SpacePropertiesForm.stories.d.ts +7 -0
- package/dist/types/src/components/SpaceSettings/SpacePropertiesForm.stories.d.ts.map +1 -0
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.d.ts +2 -0
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.d.ts.map +1 -1
- package/dist/types/src/components/SpaceSettings/index.d.ts +1 -0
- package/dist/types/src/components/SpaceSettings/index.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/InlineSyncStatus.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/Space.d.ts +13 -0
- package/dist/types/src/components/SyncStatus/Space.d.ts.map +1 -0
- package/dist/types/src/components/SyncStatus/SyncStatus.d.ts +8 -1
- package/dist/types/src/components/SyncStatus/SyncStatus.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/SyncStatusDetail.stories.d.ts +9 -0
- package/dist/types/src/components/SyncStatus/SyncStatusDetail.stories.d.ts.map +1 -0
- package/dist/types/src/components/SyncStatus/sync-state.d.ts +18 -0
- package/dist/types/src/components/SyncStatus/sync-state.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +2 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +0 -1
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +9 -45
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/thread.d.ts +17 -241
- package/dist/types/src/types/thread.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +14 -40
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +5 -27
- package/dist/types/src/util.d.ts.map +1 -1
- package/package.json +43 -44
- package/src/SpacePlugin.tsx +13 -3
- package/src/capabilities/app-graph-builder.ts +5 -44
- package/src/capabilities/app-graph-serializer.ts +4 -4
- package/src/capabilities/identity-created.ts +2 -2
- package/src/capabilities/intent-resolver.ts +84 -87
- package/src/capabilities/react-surface.tsx +37 -106
- package/src/capabilities/settings.ts +2 -2
- package/src/capabilities/spaces-ready.ts +2 -2
- package/src/capabilities/state.ts +2 -0
- package/src/components/CollectionMain.tsx +5 -2
- package/src/components/CreateDialog/CreateObjectDialog.stories.tsx +2 -2
- package/src/components/CreateDialog/CreateObjectDialog.tsx +3 -3
- package/src/components/CreateDialog/CreateObjectPanel.tsx +25 -3
- package/src/components/CreateDialog/CreateSpaceDialog.tsx +0 -4
- package/src/components/MembersContainer.tsx +54 -80
- package/src/components/PopoverAddSpace.tsx +3 -9
- package/src/components/PopoverRenameObject.tsx +8 -14
- package/src/components/PopoverRenameSpace.tsx +0 -8
- package/src/components/ShareSpaceButton.stories.tsx +27 -0
- package/src/components/ShareSpaceButton.tsx +32 -0
- package/src/components/SpacePluginSettings.tsx +2 -27
- package/src/components/SpacePresence.tsx +25 -29
- package/src/components/SpaceSettings/{SpaceSettingsContainer.stories.tsx → SpacePropertiesForm.stories.tsx} +6 -6
- package/src/components/SpaceSettings/SpacePropertiesForm.tsx +136 -0
- package/src/components/SpaceSettings/SpaceSettingsContainer.tsx +39 -157
- package/src/components/SpaceSettings/index.ts +1 -0
- package/src/components/SyncStatus/InlineSyncStatus.tsx +7 -5
- package/src/components/SyncStatus/Space.tsx +133 -0
- package/src/components/SyncStatus/SyncStatus.tsx +69 -6
- package/src/components/SyncStatus/SyncStatusDetail.stories.tsx +89 -0
- package/src/components/SyncStatus/sync-state.ts +101 -0
- package/src/components/index.ts +2 -2
- package/src/hooks/index.ts +0 -1
- package/src/translations.ts +5 -18
- package/src/types/types.ts +8 -30
- package/src/util.tsx +103 -43
- package/dist/lib/browser/app-graph-builder-ZWNOWRAX.mjs.map +0 -7
- package/dist/lib/browser/app-graph-serializer-UUJH7JRN.mjs.map +0 -7
- package/dist/lib/browser/chunk-4226DMDP.mjs.map +0 -7
- package/dist/lib/browser/chunk-DIJ7LMCS.mjs.map +0 -7
- package/dist/lib/browser/chunk-JS6ZV4GV.mjs.map +0 -7
- package/dist/lib/browser/chunk-O7WGQVLQ.mjs.map +0 -7
- package/dist/lib/browser/identity-created-NRVE4XLL.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-NP55M7C7.mjs.map +0 -7
- package/dist/lib/browser/react-surface-2DW2UDRX.mjs.map +0 -7
- package/dist/lib/browser/settings-MVT32NP6.mjs.map +0 -7
- package/dist/lib/browser/spaces-ready-ERNSICUW.mjs.map +0 -7
- package/dist/lib/browser/state-CYV6QCTN.mjs.map +0 -7
- package/dist/lib/node/app-graph-builder-LLIV422L.cjs.map +0 -7
- package/dist/lib/node/app-graph-serializer-M6Z2OPA4.cjs.map +0 -7
- package/dist/lib/node/chunk-EQ5BPSQ7.cjs.map +0 -7
- package/dist/lib/node/chunk-UOCR4G2D.cjs.map +0 -7
- package/dist/lib/node/chunk-XADZLQAJ.cjs.map +0 -7
- package/dist/lib/node/chunk-ZMQO74LX.cjs.map +0 -7
- package/dist/lib/node/identity-created-YDTRMOMX.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-3J52ARFL.cjs.map +0 -7
- package/dist/lib/node/react-surface-IWSTOZ2E.cjs.map +0 -7
- package/dist/lib/node/settings-JLV7YT6Q.cjs.map +0 -7
- package/dist/lib/node/spaces-ready-6EBR4SM4.cjs.map +0 -7
- package/dist/lib/node/state-JLN7TGRR.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-HSGLCS76.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-serializer-J3B4WSXU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ABTVMAG5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FJPCLEKN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-OLISVDCF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PQI4D4SH.mjs.map +0 -7
- package/dist/lib/node-esm/identity-created-EC6SVYB5.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-MXQIFIRC.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-JCHDAPGM.mjs.map +0 -7
- package/dist/lib/node-esm/settings-AILIMHTE.mjs.map +0 -7
- package/dist/lib/node-esm/spaces-ready-5PXESKHX.mjs.map +0 -7
- package/dist/lib/node-esm/state-YZPY5T5A.mjs.map +0 -7
- package/dist/types/src/components/ObjectSettings/AdvancedObjectSettings.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettings/BaseObjectSettings.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettings/ForeignKeys.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettings/ObjectSettingsContainer.d.ts.map +0 -1
- package/dist/types/src/components/ObjectSettings/index.d.ts.map +0 -1
- package/dist/types/src/components/SchemaContainer.d.ts +0 -13
- package/dist/types/src/components/SchemaContainer.d.ts.map +0 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts +0 -7
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts.map +0 -1
- package/dist/types/src/hooks/useInputSurfaceLookup.d.ts +0 -14
- package/dist/types/src/hooks/useInputSurfaceLookup.d.ts.map +0 -1
- package/src/components/SchemaContainer.tsx +0 -59
- package/src/hooks/useInputSurfaceLookup.tsx +0 -31
- /package/dist/lib/browser/{react-root-XKAUZ3X2.mjs.map → react-root-6H7NX2M2.mjs.map} +0 -0
- /package/dist/lib/node/{react-root-XUE2J7HT.cjs.map → react-root-TEL5RW3N.cjs.map} +0 -0
- /package/dist/lib/node-esm/{react-root-ZBCJCEFS.mjs.map → react-root-PRBJMWLQ.mjs.map} +0 -0
- /package/dist/types/src/components/{ObjectSettings → ObjectSettingsContainer}/AdvancedObjectSettings.d.ts +0 -0
- /package/dist/types/src/components/{ObjectSettings → ObjectSettingsContainer}/BaseObjectSettings.d.ts +0 -0
- /package/dist/types/src/components/{ObjectSettings → ObjectSettingsContainer}/ForeignKeys.d.ts +0 -0
- /package/dist/types/src/components/{ObjectSettings → ObjectSettingsContainer}/ObjectSettingsContainer.d.ts +0 -0
- /package/dist/types/src/components/{ObjectSettings → ObjectSettingsContainer}/index.d.ts +0 -0
- /package/src/components/{ObjectSettings → ObjectSettingsContainer}/AdvancedObjectSettings.tsx +0 -0
- /package/src/components/{ObjectSettings → ObjectSettingsContainer}/BaseObjectSettings.tsx +0 -0
- /package/src/components/{ObjectSettings → ObjectSettingsContainer}/ForeignKeys.tsx +0 -0
- /package/src/components/{ObjectSettings → ObjectSettingsContainer}/ObjectSettingsContainer.tsx +0 -0
- /package/src/components/{ObjectSettings → ObjectSettingsContainer}/index.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-space",
|
|
3
|
-
"version": "0.8.2-
|
|
3
|
+
"version": "0.8.2-staging.7ac8446",
|
|
4
4
|
"description": "DXOS Surface plugin for DXOS ECHO Spaces",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -41,43 +41,42 @@
|
|
|
41
41
|
"react-drag-drop-files": "^2.3.8",
|
|
42
42
|
"react-is": "~18.2.0",
|
|
43
43
|
"react-qr-rounded": "^1.0.0",
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/context": "0.8.2-
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/echo-schema": "0.8.2-
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/plugin-
|
|
61
|
-
"@dxos/plugin-client": "0.8.2-
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/plugin-
|
|
64
|
-
"@dxos/plugin-
|
|
65
|
-
"@dxos/protocols": "0.8.2-
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/react-
|
|
68
|
-
"@dxos/react-ui-
|
|
69
|
-
"@dxos/react-ui-
|
|
70
|
-
"@dxos/react-ui-
|
|
71
|
-
"@dxos/react-ui-searchlist": "0.8.2-
|
|
72
|
-
"@dxos/react-ui-
|
|
73
|
-
"@dxos/react-ui-
|
|
74
|
-
"@dxos/react-ui-tabs": "0.8.2-
|
|
75
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.2-
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/util": "0.8.2-main.f11618f"
|
|
44
|
+
"@dxos/app-framework": "0.8.2-staging.7ac8446",
|
|
45
|
+
"@dxos/async": "0.8.2-staging.7ac8446",
|
|
46
|
+
"@dxos/automerge": "0.8.2-staging.7ac8446",
|
|
47
|
+
"@dxos/client": "0.8.2-staging.7ac8446",
|
|
48
|
+
"@dxos/context": "0.8.2-staging.7ac8446",
|
|
49
|
+
"@dxos/display-name": "0.8.2-staging.7ac8446",
|
|
50
|
+
"@dxos/echo-signals": "0.8.2-staging.7ac8446",
|
|
51
|
+
"@dxos/echo-schema": "0.8.2-staging.7ac8446",
|
|
52
|
+
"@dxos/invariant": "0.8.2-staging.7ac8446",
|
|
53
|
+
"@dxos/live-object": "0.8.2-staging.7ac8446",
|
|
54
|
+
"@dxos/keys": "0.8.2-staging.7ac8446",
|
|
55
|
+
"@dxos/local-storage": "0.8.2-staging.7ac8446",
|
|
56
|
+
"@dxos/migrations": "0.8.2-staging.7ac8446",
|
|
57
|
+
"@dxos/log": "0.8.2-staging.7ac8446",
|
|
58
|
+
"@dxos/plugin-attention": "0.8.2-staging.7ac8446",
|
|
59
|
+
"@dxos/plugin-deck": "0.8.2-staging.7ac8446",
|
|
60
|
+
"@dxos/plugin-graph": "0.8.2-staging.7ac8446",
|
|
61
|
+
"@dxos/plugin-client": "0.8.2-staging.7ac8446",
|
|
62
|
+
"@dxos/artifact": "0.8.2-staging.7ac8446",
|
|
63
|
+
"@dxos/plugin-observability": "0.8.2-staging.7ac8446",
|
|
64
|
+
"@dxos/plugin-status-bar": "0.8.2-staging.7ac8446",
|
|
65
|
+
"@dxos/protocols": "0.8.2-staging.7ac8446",
|
|
66
|
+
"@dxos/react-client": "0.8.2-staging.7ac8446",
|
|
67
|
+
"@dxos/react-ui-attention": "0.8.2-staging.7ac8446",
|
|
68
|
+
"@dxos/react-ui-editor": "0.8.2-staging.7ac8446",
|
|
69
|
+
"@dxos/react-ui-form": "0.8.2-staging.7ac8446",
|
|
70
|
+
"@dxos/react-ui-list": "0.8.2-staging.7ac8446",
|
|
71
|
+
"@dxos/react-ui-searchlist": "0.8.2-staging.7ac8446",
|
|
72
|
+
"@dxos/react-ui-pickers": "0.8.2-staging.7ac8446",
|
|
73
|
+
"@dxos/react-ui-stack": "0.8.2-staging.7ac8446",
|
|
74
|
+
"@dxos/react-ui-tabs": "0.8.2-staging.7ac8446",
|
|
75
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.2-staging.7ac8446",
|
|
76
|
+
"@dxos/schema": "0.8.2-staging.7ac8446",
|
|
77
|
+
"@dxos/shell": "0.8.2-staging.7ac8446",
|
|
78
|
+
"@dxos/react-ui-theme": "0.8.2-staging.7ac8446",
|
|
79
|
+
"@dxos/util": "0.8.2-staging.7ac8446"
|
|
81
80
|
},
|
|
82
81
|
"devDependencies": {
|
|
83
82
|
"@babel/core": "^7.18.13",
|
|
@@ -88,17 +87,17 @@
|
|
|
88
87
|
"react": "~18.2.0",
|
|
89
88
|
"react-dom": "~18.2.0",
|
|
90
89
|
"vite": "5.4.7",
|
|
91
|
-
"@dxos/random": "0.8.2-
|
|
92
|
-
"@dxos/react-ui": "0.8.2-
|
|
93
|
-
"@dxos/react-ui-theme": "0.8.2-
|
|
94
|
-
"@dxos/storybook-utils": "0.8.2-
|
|
90
|
+
"@dxos/random": "0.8.2-staging.7ac8446",
|
|
91
|
+
"@dxos/react-ui": "0.8.2-staging.7ac8446",
|
|
92
|
+
"@dxos/react-ui-theme": "0.8.2-staging.7ac8446",
|
|
93
|
+
"@dxos/storybook-utils": "0.8.2-staging.7ac8446"
|
|
95
94
|
},
|
|
96
95
|
"peerDependencies": {
|
|
97
96
|
"@phosphor-icons/react": "^2.1.5",
|
|
98
97
|
"react": "~18.2.0",
|
|
99
98
|
"react-dom": "~18.2.0",
|
|
100
|
-
"@dxos/react-ui": "0.8.2-
|
|
101
|
-
"@dxos/react-ui-theme": "0.8.2-
|
|
99
|
+
"@dxos/react-ui": "0.8.2-staging.7ac8446",
|
|
100
|
+
"@dxos/react-ui-theme": "0.8.2-staging.7ac8446"
|
|
102
101
|
},
|
|
103
102
|
"publishConfig": {
|
|
104
103
|
"access": "public"
|
package/src/SpacePlugin.tsx
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
SpaceState,
|
|
34
34
|
} from './capabilities';
|
|
35
35
|
import { SpaceEvents } from './events';
|
|
36
|
-
import { meta } from './meta';
|
|
36
|
+
import { meta, SPACE_PLUGIN } from './meta';
|
|
37
37
|
import translations from './translations';
|
|
38
38
|
import { CollectionAction, CollectionType, defineObjectForm } from './types';
|
|
39
39
|
|
|
@@ -57,7 +57,7 @@ export type SpacePluginOptions = {
|
|
|
57
57
|
export const SpacePlugin = ({
|
|
58
58
|
invitationUrl = window.location.origin,
|
|
59
59
|
invitationParam = 'spaceInvitationCode',
|
|
60
|
-
observability =
|
|
60
|
+
observability = true,
|
|
61
61
|
}: SpacePluginOptions = {}) => {
|
|
62
62
|
const createInvitationUrl = (invitationCode: string) => {
|
|
63
63
|
const baseUrl = new URL(invitationUrl);
|
|
@@ -112,6 +112,16 @@ export const SpacePlugin = ({
|
|
|
112
112
|
}),
|
|
113
113
|
),
|
|
114
114
|
}),
|
|
115
|
+
defineModule({
|
|
116
|
+
id: `${meta.id}/module/space-settings`,
|
|
117
|
+
activatesOn: SpaceEvents.SetupSettingsPanel,
|
|
118
|
+
activate: () =>
|
|
119
|
+
contributes(SpaceCapabilities.SettingsSection, {
|
|
120
|
+
id: 'properties',
|
|
121
|
+
label: ['space settings properties label', { ns: SPACE_PLUGIN }],
|
|
122
|
+
position: 'hoist',
|
|
123
|
+
}),
|
|
124
|
+
}),
|
|
115
125
|
defineModule({
|
|
116
126
|
id: `${meta.id}/module/schema`,
|
|
117
127
|
activatesOn: ClientEvents.ClientReady,
|
|
@@ -133,7 +143,7 @@ export const SpacePlugin = ({
|
|
|
133
143
|
defineModule({
|
|
134
144
|
id: `${meta.id}/module/intent-resolver`,
|
|
135
145
|
activatesOn: Events.SetupIntentResolver,
|
|
136
|
-
activate: (context) => IntentResolver({ context,
|
|
146
|
+
activate: (context) => IntentResolver({ context, observability }),
|
|
137
147
|
}),
|
|
138
148
|
defineModule({
|
|
139
149
|
id: `${meta.id}/module/app-graph-builder`,
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
FQ_ID_LENGTH,
|
|
10
10
|
getSpace,
|
|
11
11
|
isEchoObject,
|
|
12
|
+
isSpace,
|
|
12
13
|
OBJECT_ID_LENGTH,
|
|
13
14
|
type ReactiveEchoObject,
|
|
14
15
|
SPACE_ID_LENGTH,
|
|
15
16
|
SpaceState,
|
|
16
17
|
type Space,
|
|
17
|
-
parseId,
|
|
18
18
|
} from '@dxos/client/echo';
|
|
19
19
|
import { isDeleted } from '@dxos/live-object';
|
|
20
20
|
import { log } from '@dxos/log';
|
|
@@ -25,7 +25,7 @@ import { isNonNullable } from '@dxos/util';
|
|
|
25
25
|
|
|
26
26
|
import { SpaceCapabilities } from './capabilities';
|
|
27
27
|
import { SPACE_PLUGIN } from '../meta';
|
|
28
|
-
import { CollectionType,
|
|
28
|
+
import { CollectionType, SpaceAction, type SpaceSettingsProps } from '../types';
|
|
29
29
|
import {
|
|
30
30
|
constructObjectActions,
|
|
31
31
|
constructSpaceActions,
|
|
@@ -98,45 +98,6 @@ export default (context: PluginsContext) => {
|
|
|
98
98
|
position: 'fallback',
|
|
99
99
|
},
|
|
100
100
|
},
|
|
101
|
-
{
|
|
102
|
-
id: SpaceAction.OpenMembers._tag,
|
|
103
|
-
data: async () => {
|
|
104
|
-
const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
|
|
105
|
-
const layout = context.requestCapability(Capabilities.Layout);
|
|
106
|
-
const client = context.requestCapability(ClientCapabilities.Client);
|
|
107
|
-
const { spaceId } = parseId(layout.workspace);
|
|
108
|
-
const space = (spaceId && client.spaces.get(spaceId)) ?? client.spaces.default;
|
|
109
|
-
await dispatch(createIntent(SpaceAction.OpenMembers, { space }));
|
|
110
|
-
},
|
|
111
|
-
properties: {
|
|
112
|
-
label: ['share space label', { ns: SPACE_PLUGIN }],
|
|
113
|
-
icon: 'ph--users--regular',
|
|
114
|
-
testId: 'spacePlugin.shareSpace',
|
|
115
|
-
keyBinding: {
|
|
116
|
-
macos: 'meta+.',
|
|
117
|
-
windows: 'alt+.',
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
id: SpaceAction.OpenSettings._tag,
|
|
123
|
-
data: async () => {
|
|
124
|
-
const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
|
|
125
|
-
const layout = context.requestCapability(Capabilities.Layout);
|
|
126
|
-
const client = context.requestCapability(ClientCapabilities.Client);
|
|
127
|
-
const { spaceId } = parseId(layout.workspace);
|
|
128
|
-
const space = (spaceId && client.spaces.get(spaceId)) ?? client.spaces.default;
|
|
129
|
-
await dispatch(createIntent(SpaceAction.OpenSettings, { space }));
|
|
130
|
-
},
|
|
131
|
-
properties: {
|
|
132
|
-
label: ['open current space settings label', { ns: SPACE_PLUGIN }],
|
|
133
|
-
icon: 'ph--faders--regular',
|
|
134
|
-
keyBinding: {
|
|
135
|
-
macos: 'meta+shift+,',
|
|
136
|
-
windows: 'ctrl+shift+,',
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
101
|
],
|
|
141
102
|
}),
|
|
142
103
|
|
|
@@ -242,7 +203,7 @@ export default (context: PluginsContext) => {
|
|
|
242
203
|
// Create space actions.
|
|
243
204
|
createExtension({
|
|
244
205
|
id: `${SPACE_PLUGIN}/actions`,
|
|
245
|
-
filter: (node): node is Node<Space> => node.
|
|
206
|
+
filter: (node): node is Node<Space> => isSpace(node.data),
|
|
246
207
|
actions: ({ node }) => {
|
|
247
208
|
const space = node.data;
|
|
248
209
|
const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
|
|
@@ -260,7 +221,7 @@ export default (context: PluginsContext) => {
|
|
|
260
221
|
// Create nodes for objects in the root collection of a space.
|
|
261
222
|
createExtension({
|
|
262
223
|
id: `${SPACE_PLUGIN}/root-collection`,
|
|
263
|
-
filter: (node): node is Node<Space> => node.
|
|
224
|
+
filter: (node): node is Node<Space> => isSpace(node.data),
|
|
264
225
|
connector: ({ node }) => {
|
|
265
226
|
const space = node.data;
|
|
266
227
|
const spaceState = toSignal(
|
|
@@ -369,7 +330,7 @@ export default (context: PluginsContext) => {
|
|
|
369
330
|
label: ['object settings label', { ns: SPACE_PLUGIN }],
|
|
370
331
|
icon: 'ph--sliders--regular',
|
|
371
332
|
disposition: 'hidden',
|
|
372
|
-
position: '
|
|
333
|
+
position: 'hoist',
|
|
373
334
|
},
|
|
374
335
|
},
|
|
375
336
|
],
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import { Capabilities, contributes, createIntent, type PluginsContext } from '@dxos/app-framework';
|
|
6
6
|
import { isSpace } from '@dxos/client/echo';
|
|
7
|
-
import {
|
|
7
|
+
import { create } from '@dxos/live-object';
|
|
8
8
|
|
|
9
9
|
import { SPACE_PLUGIN } from '../meta';
|
|
10
10
|
import translations from '../translations';
|
|
11
|
-
import { CollectionType, SpaceAction
|
|
12
|
-
import { SPACES } from '../util';
|
|
11
|
+
import { CollectionType, SpaceAction } from '../types';
|
|
12
|
+
import { SPACES, SPACE_TYPE } from '../util';
|
|
13
13
|
|
|
14
14
|
// https://stackoverflow.com/a/19016910
|
|
15
15
|
const DIRECTORY_TYPE = 'text/directory';
|
|
@@ -63,7 +63,7 @@ export default (context: PluginsContext) =>
|
|
|
63
63
|
const result = await dispatch(
|
|
64
64
|
createIntent(SpaceAction.AddObject, {
|
|
65
65
|
target: collection,
|
|
66
|
-
object:
|
|
66
|
+
object: create(CollectionType, { name: data.name, objects: [], views: {} }),
|
|
67
67
|
}),
|
|
68
68
|
);
|
|
69
69
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { contributes, type PluginsContext, Capabilities } from '@dxos/app-framework';
|
|
6
|
-
import {
|
|
6
|
+
import { create, makeRef } from '@dxos/live-object';
|
|
7
7
|
import { Migrations } from '@dxos/migrations';
|
|
8
8
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ export default async (context: PluginsContext) => {
|
|
|
17
17
|
await defaultSpace.waitUntilReady();
|
|
18
18
|
|
|
19
19
|
// Create root collection structure.
|
|
20
|
-
defaultSpace.properties[CollectionType.typename] = makeRef(
|
|
20
|
+
defaultSpace.properties[CollectionType.typename] = makeRef(create(CollectionType, { objects: [], views: {} }));
|
|
21
21
|
if (Migrations.versionProperty) {
|
|
22
22
|
defaultSpace.properties[Migrations.versionProperty] = Migrations.targetVersion;
|
|
23
23
|
}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { pipe } from 'effect';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
Capabilities,
|
|
9
|
+
chain,
|
|
9
10
|
contributes,
|
|
10
11
|
createIntent,
|
|
11
12
|
createResolver,
|
|
@@ -14,14 +15,13 @@ import {
|
|
|
14
15
|
} from '@dxos/app-framework';
|
|
15
16
|
import { type Expando, getTypename, type HasId } from '@dxos/echo-schema';
|
|
16
17
|
import { invariant } from '@dxos/invariant';
|
|
17
|
-
import {
|
|
18
|
+
import { create, makeRef, type ReactiveObject } from '@dxos/live-object';
|
|
18
19
|
import { Migrations } from '@dxos/migrations';
|
|
19
20
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
21
|
+
import { ATTENDABLE_PATH_SEPARATOR } from '@dxos/plugin-deck/types';
|
|
20
22
|
import { ObservabilityAction } from '@dxos/plugin-observability/types';
|
|
21
23
|
import { EdgeReplicationSetting } from '@dxos/protocols/proto/dxos/echo/metadata';
|
|
22
|
-
import { isSpace, getSpace, SpaceState, fullyQualifiedId, isEchoObject } from '@dxos/react-client/echo';
|
|
23
|
-
import { Invitation, InvitationEncoder } from '@dxos/react-client/invitations';
|
|
24
|
-
import { ATTENDABLE_PATH_SEPARATOR } from '@dxos/react-ui-attention';
|
|
24
|
+
import { isSpace, getSpace, SpaceState, type Space, fullyQualifiedId, isEchoObject } from '@dxos/react-client/echo';
|
|
25
25
|
|
|
26
26
|
import { SpaceCapabilities } from './capabilities';
|
|
27
27
|
import {
|
|
@@ -43,11 +43,10 @@ const SPACE_MAX_OBJECTS = 500;
|
|
|
43
43
|
|
|
44
44
|
type IntentResolverOptions = {
|
|
45
45
|
context: PluginsContext;
|
|
46
|
-
createInvitationUrl: (invitationCode: string) => string;
|
|
47
46
|
observability?: boolean;
|
|
48
47
|
};
|
|
49
48
|
|
|
50
|
-
export default ({ context, observability
|
|
49
|
+
export default ({ context, observability }: IntentResolverOptions) => {
|
|
51
50
|
const resolve = (typename: string) =>
|
|
52
51
|
context.requestCapabilities(Capabilities.Metadata).find(({ id }) => id === typename)?.metadata ?? {};
|
|
53
52
|
|
|
@@ -68,14 +67,14 @@ export default ({ context, observability, createInvitationUrl }: IntentResolverO
|
|
|
68
67
|
}),
|
|
69
68
|
createResolver({
|
|
70
69
|
intent: SpaceAction.Create,
|
|
71
|
-
resolve: async ({ name,
|
|
70
|
+
resolve: async ({ name, edgeReplication }) => {
|
|
72
71
|
const client = context.requestCapability(ClientCapabilities.Client);
|
|
73
|
-
const space = await client.spaces.create({ name
|
|
72
|
+
const space = await client.spaces.create({ name });
|
|
74
73
|
if (edgeReplication) {
|
|
75
74
|
await space.internal.setEdgeReplicationPreference(EdgeReplicationSetting.ENABLED);
|
|
76
75
|
}
|
|
77
76
|
await space.waitUntilReady();
|
|
78
|
-
const collection =
|
|
77
|
+
const collection = create(CollectionType, { objects: [], views: {} });
|
|
79
78
|
space.properties[CollectionType.typename] = makeRef(collection);
|
|
80
79
|
|
|
81
80
|
if (Migrations.versionProperty) {
|
|
@@ -121,74 +120,52 @@ export default ({ context, observability, createInvitationUrl }: IntentResolverO
|
|
|
121
120
|
],
|
|
122
121
|
}),
|
|
123
122
|
}),
|
|
124
|
-
createResolver({
|
|
125
|
-
intent: SpaceAction.OpenMembers,
|
|
126
|
-
resolve: ({ space }) => ({
|
|
127
|
-
intents: [
|
|
128
|
-
createIntent(LayoutAction.Open, {
|
|
129
|
-
part: 'main',
|
|
130
|
-
subject: [`members-settings${ATTENDABLE_PATH_SEPARATOR}${space.id}`],
|
|
131
|
-
options: {
|
|
132
|
-
workspace: space.id,
|
|
133
|
-
},
|
|
134
|
-
}),
|
|
135
|
-
],
|
|
136
|
-
}),
|
|
137
|
-
}),
|
|
138
123
|
createResolver({
|
|
139
124
|
intent: SpaceAction.Share,
|
|
140
|
-
|
|
141
|
-
|
|
125
|
+
filter: (data): data is { space: Space } => !data.space.properties[COMPOSER_SPACE_LOCK],
|
|
126
|
+
resolve: ({ space }) => {
|
|
127
|
+
const layout = context.requestCapability(Capabilities.Layout);
|
|
128
|
+
const id = `${space.id}${ATTENDABLE_PATH_SEPARATOR}members`;
|
|
129
|
+
if (layout.active.includes(id)) {
|
|
130
|
+
return {
|
|
131
|
+
intents: [
|
|
132
|
+
createIntent(LayoutAction.ScrollIntoView, {
|
|
133
|
+
part: 'current',
|
|
134
|
+
subject: id,
|
|
135
|
+
}),
|
|
136
|
+
],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
142
140
|
return {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
141
|
+
intents: [
|
|
142
|
+
pipe(
|
|
143
|
+
createIntent(LayoutAction.SwitchWorkspace, {
|
|
144
|
+
part: 'workspace',
|
|
145
|
+
subject: space.id,
|
|
146
|
+
}),
|
|
147
|
+
chain(LayoutAction.Open, {
|
|
148
|
+
part: 'main',
|
|
149
|
+
subject: [space.id],
|
|
150
|
+
options: {
|
|
151
|
+
variant: 'members',
|
|
152
|
+
},
|
|
153
|
+
}),
|
|
154
|
+
),
|
|
155
|
+
...(observability
|
|
156
|
+
? [
|
|
157
|
+
createIntent(ObservabilityAction.SendEvent, {
|
|
158
|
+
name: 'space.share',
|
|
159
|
+
properties: {
|
|
160
|
+
spaceId: space.id,
|
|
161
|
+
},
|
|
162
|
+
}),
|
|
163
|
+
]
|
|
164
|
+
: []),
|
|
165
|
+
],
|
|
154
166
|
};
|
|
155
167
|
},
|
|
156
168
|
}),
|
|
157
|
-
createResolver({
|
|
158
|
-
intent: SpaceAction.GetShareLink,
|
|
159
|
-
resolve: ({ space, target, copyToClipboard }) =>
|
|
160
|
-
Effect.gen(function* () {
|
|
161
|
-
const { dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
|
|
162
|
-
const invitation = yield* dispatch(
|
|
163
|
-
createIntent(SpaceAction.Share, {
|
|
164
|
-
space,
|
|
165
|
-
type: Invitation.Type.DELEGATED,
|
|
166
|
-
authMethod: Invitation.AuthMethod.KNOWN_PUBLIC_KEY,
|
|
167
|
-
multiUse: true,
|
|
168
|
-
target,
|
|
169
|
-
}),
|
|
170
|
-
);
|
|
171
|
-
|
|
172
|
-
// TODO(wittjosiah): Better api to for this.
|
|
173
|
-
// NOTE: Delegated invitations are invalid until the connecting state when keys are filled in.
|
|
174
|
-
const invitationCode = yield* Effect.tryPromise(
|
|
175
|
-
() =>
|
|
176
|
-
new Promise<string>((resolve) => {
|
|
177
|
-
invitation.subscribe((invitation) => {
|
|
178
|
-
if (invitation.state === Invitation.State.CONNECTING) {
|
|
179
|
-
resolve(InvitationEncoder.encode(invitation));
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
}),
|
|
183
|
-
);
|
|
184
|
-
const url = createInvitationUrl(invitationCode);
|
|
185
|
-
if (copyToClipboard) {
|
|
186
|
-
yield* Effect.tryPromise(() => navigator.clipboard.writeText(url));
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
return { data: url };
|
|
190
|
-
}),
|
|
191
|
-
}),
|
|
192
169
|
createResolver({
|
|
193
170
|
intent: SpaceAction.Lock,
|
|
194
171
|
resolve: ({ space }) => {
|
|
@@ -255,7 +232,6 @@ export default ({ context, observability, createInvitationUrl }: IntentResolverO
|
|
|
255
232
|
part: 'popover',
|
|
256
233
|
subject: POPOVER_ADD_SPACE,
|
|
257
234
|
options: {
|
|
258
|
-
variant: 'react',
|
|
259
235
|
anchorId: SpaceAction.AddSpace._tag,
|
|
260
236
|
side: 'right',
|
|
261
237
|
},
|
|
@@ -266,17 +242,38 @@ export default ({ context, observability, createInvitationUrl }: IntentResolverO
|
|
|
266
242
|
}),
|
|
267
243
|
createResolver({
|
|
268
244
|
intent: SpaceAction.OpenSettings,
|
|
269
|
-
resolve: ({ space }) =>
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
245
|
+
resolve: ({ space }) => {
|
|
246
|
+
const layout = context.requestCapability(Capabilities.Layout);
|
|
247
|
+
const id = `${space.id}${ATTENDABLE_PATH_SEPARATOR}settings`;
|
|
248
|
+
if (layout.active.includes(id)) {
|
|
249
|
+
return {
|
|
250
|
+
intents: [
|
|
251
|
+
createIntent(LayoutAction.ScrollIntoView, {
|
|
252
|
+
part: 'current',
|
|
253
|
+
subject: id,
|
|
254
|
+
}),
|
|
255
|
+
],
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
return {
|
|
260
|
+
intents: [
|
|
261
|
+
pipe(
|
|
262
|
+
createIntent(LayoutAction.SwitchWorkspace, {
|
|
263
|
+
part: 'workspace',
|
|
264
|
+
subject: space.id,
|
|
265
|
+
}),
|
|
266
|
+
chain(LayoutAction.Open, {
|
|
267
|
+
part: 'main',
|
|
268
|
+
subject: [space.id],
|
|
269
|
+
options: {
|
|
270
|
+
variant: 'settings',
|
|
271
|
+
},
|
|
272
|
+
}),
|
|
273
|
+
),
|
|
274
|
+
],
|
|
275
|
+
};
|
|
276
|
+
},
|
|
280
277
|
}),
|
|
281
278
|
createResolver({
|
|
282
279
|
intent: SpaceAction.Open,
|
|
@@ -336,7 +333,7 @@ export default ({ context, observability, createInvitationUrl }: IntentResolverO
|
|
|
336
333
|
props: {
|
|
337
334
|
target,
|
|
338
335
|
shouldNavigate: navigable
|
|
339
|
-
? (object:
|
|
336
|
+
? (object: ReactiveObject<any>) => !(object instanceof CollectionType) || state.navigableCollections
|
|
340
337
|
: () => false,
|
|
341
338
|
} satisfies Partial<CreateObjectDialogProps>,
|
|
342
339
|
},
|
|
@@ -393,7 +390,7 @@ export default ({ context, observability, createInvitationUrl }: IntentResolverO
|
|
|
393
390
|
collection.objects.push(makeRef(object as HasId));
|
|
394
391
|
} else {
|
|
395
392
|
// TODO(wittjosiah): Can't add non-echo objects by including in a collection because of types.
|
|
396
|
-
const collection =
|
|
393
|
+
const collection = create(CollectionType, { objects: [makeRef(object as HasId)], views: {} });
|
|
397
394
|
space.properties[CollectionType.typename] = makeRef(collection);
|
|
398
395
|
}
|
|
399
396
|
}
|
|
@@ -560,7 +557,7 @@ export default ({ context, observability, createInvitationUrl }: IntentResolverO
|
|
|
560
557
|
createResolver({
|
|
561
558
|
intent: CollectionAction.Create,
|
|
562
559
|
resolve: async ({ name }) => ({
|
|
563
|
-
data: { object:
|
|
560
|
+
data: { object: create(CollectionType, { name, objects: [], views: {} }) },
|
|
564
561
|
}),
|
|
565
562
|
}),
|
|
566
563
|
]);
|