@dxos/plugin-space 0.8.2-main.12df754 → 0.8.2-main.30e4dbb
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-J4PN5HOM.mjs → app-graph-builder-6KVRD7OJ.mjs} +30 -13
- package/dist/lib/browser/app-graph-builder-6KVRD7OJ.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-serializer-6WIAFHYK.mjs → app-graph-serializer-N7KZGCST.mjs} +4 -4
- package/dist/lib/browser/chunk-CY35NLWL.mjs +296 -0
- package/dist/lib/browser/chunk-CY35NLWL.mjs.map +7 -0
- package/dist/lib/browser/{chunk-FSHDAPFY.mjs → chunk-F57CTUM6.mjs} +4 -4
- package/dist/lib/browser/chunk-F57CTUM6.mjs.map +7 -0
- package/dist/lib/browser/{chunk-MHTZAZT2.mjs → chunk-V4VNP2WY.mjs} +161 -213
- package/dist/lib/browser/chunk-V4VNP2WY.mjs.map +7 -0
- package/dist/lib/browser/{chunk-MIJHUABE.mjs → chunk-XC4BXZVV.mjs} +2 -3
- package/dist/lib/browser/chunk-XC4BXZVV.mjs.map +7 -0
- package/dist/lib/browser/{identity-created-DVHNLGYU.mjs → identity-created-74EHBH7M.mjs} +2 -2
- package/dist/lib/browser/index.mjs +13 -20
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-72IWBVYE.mjs → intent-resolver-FZ64VJKZ.mjs} +83 -88
- package/dist/lib/browser/intent-resolver-FZ64VJKZ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-DRVM5ACV.mjs → react-root-2EFJCOX7.mjs} +4 -4
- package/dist/lib/browser/{react-surface-KODNQYDN.mjs → react-surface-N5OGF7TQ.mjs} +5 -30
- package/dist/lib/browser/react-surface-N5OGF7TQ.mjs.map +7 -0
- package/dist/lib/browser/{schema-FHTA26SW.mjs → schema-defs-FLFEUSLB.mjs} +4 -4
- package/dist/lib/browser/{schema-FHTA26SW.mjs.map → schema-defs-FLFEUSLB.mjs.map} +2 -2
- package/dist/lib/browser/{schema-tools-YAXPRIXP.mjs → schema-tools-MYC4LTQD.mjs} +22 -22
- package/dist/lib/browser/schema-tools-MYC4LTQD.mjs.map +7 -0
- package/dist/lib/browser/{settings-2UIV5WX5.mjs → settings-G24447B7.mjs} +2 -2
- package/dist/lib/browser/{spaces-ready-3URIMLCR.mjs → spaces-ready-ZSUEPHJF.mjs} +3 -3
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node/{app-graph-builder-3BNPC5GB.cjs → app-graph-builder-6VR2TBBF.cjs} +56 -39
- package/dist/lib/node/app-graph-builder-6VR2TBBF.cjs.map +7 -0
- package/dist/lib/node/{app-graph-serializer-GOLCQHFQ.cjs → app-graph-serializer-IKQLWTCX.cjs} +20 -20
- package/dist/lib/node/{chunk-U63V2254.cjs → chunk-FILCZU6V.cjs} +29 -29
- package/dist/lib/node/chunk-FILCZU6V.cjs.map +7 -0
- package/dist/lib/node/chunk-K6ZO4WDJ.cjs +324 -0
- package/dist/lib/node/chunk-K6ZO4WDJ.cjs.map +7 -0
- package/dist/lib/node/{chunk-GPZPEQXP.cjs → chunk-P2ZIVXGY.cjs} +215 -267
- package/dist/lib/node/chunk-P2ZIVXGY.cjs.map +7 -0
- package/dist/lib/node/{chunk-EI3ZPOLJ.cjs → chunk-YAE6CCDB.cjs} +6 -7
- package/dist/lib/node/chunk-YAE6CCDB.cjs.map +7 -0
- package/dist/lib/node/{identity-created-YYTW4K3Z.cjs → identity-created-PCQPDULV.cjs} +6 -6
- package/dist/lib/node/index.cjs +66 -73
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-KA56XGUX.cjs → intent-resolver-BK6JDXY4.cjs} +126 -130
- package/dist/lib/node/intent-resolver-BK6JDXY4.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-root-6WGN5WRQ.cjs → react-root-DEQFKQVD.cjs} +8 -8
- package/dist/lib/node/{react-surface-37AVZFPL.cjs → react-surface-UQD7LR67.cjs} +41 -64
- package/dist/lib/node/react-surface-UQD7LR67.cjs.map +7 -0
- package/dist/lib/node/{schema-PPJ5BZ3A.cjs → schema-defs-PKZVL52M.cjs} +6 -6
- package/dist/lib/node/{schema-PPJ5BZ3A.cjs.map → schema-defs-PKZVL52M.cjs.map} +2 -2
- package/dist/lib/node/{schema-tools-BLIMOZYY.cjs → schema-tools-OE3MFYYH.cjs} +24 -24
- package/dist/lib/node/schema-tools-OE3MFYYH.cjs.map +7 -0
- package/dist/lib/node/{settings-HJROTHC4.cjs → settings-AFWO4AWK.cjs} +6 -6
- package/dist/lib/node/{spaces-ready-IWDDIAAD.cjs → spaces-ready-MHLUFLXN.cjs} +11 -11
- package/dist/lib/node/types/index.cjs +15 -15
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{app-graph-builder-OVMSUAX3.mjs → app-graph-builder-O7M6MVS5.mjs} +30 -13
- package/dist/lib/node-esm/app-graph-builder-O7M6MVS5.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-serializer-AZXSO7HK.mjs → app-graph-serializer-I6XBQJLA.mjs} +4 -4
- package/dist/lib/node-esm/chunk-CLRCW6PU.mjs +297 -0
- package/dist/lib/node-esm/chunk-CLRCW6PU.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-TVN6VHTT.mjs → chunk-COHDPHM7.mjs} +4 -4
- package/dist/lib/node-esm/chunk-COHDPHM7.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-DUA32XUX.mjs → chunk-HEXOMJIR.mjs} +2 -3
- package/dist/lib/node-esm/chunk-HEXOMJIR.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-ABKX22IP.mjs → chunk-TB557OBD.mjs} +161 -213
- package/dist/lib/node-esm/chunk-TB557OBD.mjs.map +7 -0
- package/dist/lib/node-esm/{identity-created-MP4GLXHO.mjs → identity-created-GXS46A3C.mjs} +2 -2
- package/dist/lib/node-esm/index.mjs +13 -20
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-SG2ECM5R.mjs → intent-resolver-6VPP3ZDO.mjs} +83 -88
- package/dist/lib/node-esm/intent-resolver-6VPP3ZDO.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-root-MSUT6S2S.mjs → react-root-2RJ2S5E6.mjs} +4 -4
- package/dist/lib/node-esm/{react-surface-G73SO23W.mjs → react-surface-2RSRATVY.mjs} +5 -30
- package/dist/lib/node-esm/react-surface-2RSRATVY.mjs.map +7 -0
- package/dist/lib/node-esm/{schema-OUZKVYM5.mjs → schema-defs-IIEQR7B3.mjs} +4 -4
- package/dist/lib/node-esm/{schema-OUZKVYM5.mjs.map → schema-defs-IIEQR7B3.mjs.map} +2 -2
- package/dist/lib/node-esm/{schema-tools-IU7EX5A5.mjs → schema-tools-YTJLA3NQ.mjs} +22 -22
- package/dist/lib/node-esm/schema-tools-YTJLA3NQ.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-KCLKPJVY.mjs → settings-MJVSCOI4.mjs} +2 -2
- package/dist/lib/node-esm/{spaces-ready-Z3SXKWX2.mjs → spaces-ready-35U5BBTH.mjs} +3 -3
- package/dist/lib/node-esm/types/index.mjs +1 -1
- 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/app-graph-serializer.d.ts.map +1 -1
- package/dist/types/src/capabilities/identity-created.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +3 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +2 -1
- 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/{schema.d.ts → schema-defs.d.ts} +1 -1
- package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
- package/dist/types/src/capabilities/schema-tools.d.ts +2 -2
- package/dist/types/src/capabilities/schema-tools.d.ts.map +1 -1
- package/dist/types/src/capabilities/spaces-ready.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/components/AwaitingObject.d.ts.map +1 -1
- package/dist/types/src/components/CollectionMain.d.ts.map +1 -1
- package/dist/types/src/components/CollectionSection.d.ts.map +1 -1
- 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/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/components/MembersContainer.d.ts.map +1 -1
- package/dist/types/src/components/MembersContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/MenuFooter.d.ts +2 -2
- package/dist/types/src/components/MenuFooter.d.ts.map +1 -1
- package/dist/types/src/components/ObjectSettings/AdvancedObjectSettings.d.ts +2 -2
- package/dist/types/src/components/ObjectSettings/AdvancedObjectSettings.d.ts.map +1 -1
- package/dist/types/src/components/ObjectSettings/BaseObjectSettings.d.ts +2 -2
- package/dist/types/src/components/ObjectSettings/BaseObjectSettings.d.ts.map +1 -1
- package/dist/types/src/components/ObjectSettings/ForeignKeys.d.ts.map +1 -1
- package/dist/types/src/components/ObjectSettings/ObjectSettingsContainer.d.ts +2 -2
- package/dist/types/src/components/ObjectSettings/ObjectSettingsContainer.d.ts.map +1 -1
- package/dist/types/src/components/PersistenceStatus.d.ts.map +1 -1
- 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/SchemaContainer.d.ts.map +1 -1
- 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/SpacePresence.stories.d.ts.map +1 -1
- package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/InlineSyncStatus.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/SyncStatus.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/save-tracker.d.ts.map +1 -1
- package/dist/types/src/components/SyncStatus/status.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useInputSurfaceLookup.d.ts +2 -2
- package/dist/types/src/hooks/useInputSurfaceLookup.d.ts.map +1 -1
- package/dist/types/src/hooks/usePath.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -263
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/collection.d.ts +9 -8
- package/dist/types/src/types/collection.d.ts.map +1 -1
- package/dist/types/src/types/thread.d.ts +329 -110
- package/dist/types/src/types/thread.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +154 -142
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +4 -4
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +46 -45
- package/src/SpacePlugin.tsx +9 -8
- package/src/capabilities/app-graph-builder.ts +26 -14
- package/src/capabilities/index.ts +2 -2
- package/src/capabilities/intent-resolver.ts +77 -87
- package/src/capabilities/react-surface.tsx +13 -34
- package/src/capabilities/schema-tool.test.ts +2 -3
- package/src/capabilities/schema-tools.ts +25 -25
- package/src/components/CollectionMain.tsx +2 -5
- package/src/components/CreateDialog/CreateObjectDialog.stories.tsx +1 -1
- package/src/components/CreateDialog/CreateSpaceDialog.tsx +2 -3
- package/src/components/MembersContainer.stories.tsx +1 -5
- package/src/components/MembersContainer.tsx +23 -15
- package/src/components/MenuFooter.tsx +2 -2
- package/src/components/ObjectSettings/AdvancedObjectSettings.tsx +2 -2
- package/src/components/ObjectSettings/BaseObjectSettings.tsx +2 -2
- package/src/components/ObjectSettings/ObjectSettingsContainer.tsx +2 -2
- package/src/components/PersistenceStatus.tsx +11 -14
- package/src/components/PopoverRenameObject.tsx +12 -6
- package/src/components/PopoverRenameSpace.tsx +8 -0
- package/src/components/SpacePresence.stories.tsx +1 -1
- package/src/components/SpacePresence.tsx +32 -42
- package/src/components/SpaceSettings/SpaceSettingsContainer.tsx +5 -3
- package/src/components/SyncStatus/InlineSyncStatus.tsx +8 -16
- package/src/components/index.ts +0 -2
- package/src/hooks/useInputSurfaceLookup.tsx +2 -2
- package/src/translations.ts +0 -1
- package/src/types/collection.ts +6 -4
- package/src/types/thread.ts +14 -8
- package/src/types/types.ts +109 -96
- package/src/util.tsx +13 -13
- package/dist/lib/browser/app-graph-builder-J4PN5HOM.mjs.map +0 -7
- package/dist/lib/browser/chunk-FSHDAPFY.mjs.map +0 -7
- package/dist/lib/browser/chunk-KDNV4YRD.mjs +0 -283
- package/dist/lib/browser/chunk-KDNV4YRD.mjs.map +0 -7
- package/dist/lib/browser/chunk-MHTZAZT2.mjs.map +0 -7
- package/dist/lib/browser/chunk-MIJHUABE.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-72IWBVYE.mjs.map +0 -7
- package/dist/lib/browser/react-surface-KODNQYDN.mjs.map +0 -7
- package/dist/lib/browser/schema-tools-YAXPRIXP.mjs.map +0 -7
- package/dist/lib/node/app-graph-builder-3BNPC5GB.cjs.map +0 -7
- package/dist/lib/node/chunk-3UKLWXNJ.cjs +0 -311
- package/dist/lib/node/chunk-3UKLWXNJ.cjs.map +0 -7
- package/dist/lib/node/chunk-EI3ZPOLJ.cjs.map +0 -7
- package/dist/lib/node/chunk-GPZPEQXP.cjs.map +0 -7
- package/dist/lib/node/chunk-U63V2254.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-KA56XGUX.cjs.map +0 -7
- package/dist/lib/node/react-surface-37AVZFPL.cjs.map +0 -7
- package/dist/lib/node/schema-tools-BLIMOZYY.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-OVMSUAX3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-35OHQARN.mjs +0 -284
- package/dist/lib/node-esm/chunk-35OHQARN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ABKX22IP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DUA32XUX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TVN6VHTT.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-SG2ECM5R.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-G73SO23W.mjs.map +0 -7
- package/dist/lib/node-esm/schema-tools-IU7EX5A5.mjs.map +0 -7
- package/dist/types/src/capabilities/schema.d.ts.map +0 -1
- package/dist/types/src/components/PopoverAddSpace.d.ts +0 -4
- package/dist/types/src/components/PopoverAddSpace.d.ts.map +0 -1
- package/dist/types/src/components/ShareSpaceButton.d.ts +0 -9
- package/dist/types/src/components/ShareSpaceButton.d.ts.map +0 -1
- package/dist/types/src/components/ShareSpaceButton.stories.d.ts +0 -10
- package/dist/types/src/components/ShareSpaceButton.stories.d.ts.map +0 -1
- package/src/components/PopoverAddSpace.tsx +0 -52
- package/src/components/ShareSpaceButton.stories.tsx +0 -27
- package/src/components/ShareSpaceButton.tsx +0 -32
- /package/dist/lib/browser/{app-graph-serializer-6WIAFHYK.mjs.map → app-graph-serializer-N7KZGCST.mjs.map} +0 -0
- /package/dist/lib/browser/{identity-created-DVHNLGYU.mjs.map → identity-created-74EHBH7M.mjs.map} +0 -0
- /package/dist/lib/browser/{react-root-DRVM5ACV.mjs.map → react-root-2EFJCOX7.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-2UIV5WX5.mjs.map → settings-G24447B7.mjs.map} +0 -0
- /package/dist/lib/browser/{spaces-ready-3URIMLCR.mjs.map → spaces-ready-ZSUEPHJF.mjs.map} +0 -0
- /package/dist/lib/node/{app-graph-serializer-GOLCQHFQ.cjs.map → app-graph-serializer-IKQLWTCX.cjs.map} +0 -0
- /package/dist/lib/node/{identity-created-YYTW4K3Z.cjs.map → identity-created-PCQPDULV.cjs.map} +0 -0
- /package/dist/lib/node/{react-root-6WGN5WRQ.cjs.map → react-root-DEQFKQVD.cjs.map} +0 -0
- /package/dist/lib/node/{settings-HJROTHC4.cjs.map → settings-AFWO4AWK.cjs.map} +0 -0
- /package/dist/lib/node/{spaces-ready-IWDDIAAD.cjs.map → spaces-ready-MHLUFLXN.cjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-serializer-AZXSO7HK.mjs.map → app-graph-serializer-I6XBQJLA.mjs.map} +0 -0
- /package/dist/lib/node-esm/{identity-created-MP4GLXHO.mjs.map → identity-created-GXS46A3C.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-root-MSUT6S2S.mjs.map → react-root-2RJ2S5E6.mjs.map} +0 -0
- /package/dist/lib/node-esm/{settings-KCLKPJVY.mjs.map → settings-MJVSCOI4.mjs.map} +0 -0
- /package/dist/lib/node-esm/{spaces-ready-Z3SXKWX2.mjs.map → spaces-ready-35U5BBTH.mjs.map} +0 -0
- /package/src/capabilities/{schema.ts → schema-defs.ts} +0 -0
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
COMPOSER_SPACE_LOCK,
|
|
7
7
|
getSpaceDisplayName
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-COHDPHM7.mjs";
|
|
9
9
|
import {
|
|
10
10
|
CollectionType,
|
|
11
11
|
SpaceAction,
|
|
12
12
|
SpaceForm
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CLRCW6PU.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SPACE_PLUGIN,
|
|
16
16
|
meta
|
|
@@ -340,17 +340,17 @@ var SelectSchema = ({ options, resolve, onChange }) => {
|
|
|
340
340
|
|
|
341
341
|
// packages/plugins/plugin-space/src/capabilities/index.ts
|
|
342
342
|
import { lazy } from "@dxos/app-framework";
|
|
343
|
-
var AppGraphBuilder = lazy(() => import("./app-graph-builder-
|
|
344
|
-
var AppGraphSerializer = lazy(() => import("./app-graph-serializer-
|
|
345
|
-
var IdentityCreated = lazy(() => import("./identity-created-
|
|
346
|
-
var IntentResolver = lazy(() => import("./intent-resolver-
|
|
347
|
-
var ReactRoot = lazy(() => import("./react-root-
|
|
348
|
-
var ReactSurface = lazy(() => import("./react-surface-
|
|
349
|
-
var
|
|
350
|
-
var
|
|
351
|
-
var SpaceSettings = lazy(() => import("./settings-
|
|
343
|
+
var AppGraphBuilder = lazy(() => import("./app-graph-builder-O7M6MVS5.mjs"));
|
|
344
|
+
var AppGraphSerializer = lazy(() => import("./app-graph-serializer-I6XBQJLA.mjs"));
|
|
345
|
+
var IdentityCreated = lazy(() => import("./identity-created-GXS46A3C.mjs"));
|
|
346
|
+
var IntentResolver = lazy(() => import("./intent-resolver-6VPP3ZDO.mjs"));
|
|
347
|
+
var ReactRoot = lazy(() => import("./react-root-2RJ2S5E6.mjs"));
|
|
348
|
+
var ReactSurface = lazy(() => import("./react-surface-2RSRATVY.mjs"));
|
|
349
|
+
var SchemaDefs = lazy(() => import("./schema-defs-IIEQR7B3.mjs"));
|
|
350
|
+
var SchemaTools = lazy(() => import("./schema-tools-YTJLA3NQ.mjs"));
|
|
351
|
+
var SpaceSettings = lazy(() => import("./settings-MJVSCOI4.mjs"));
|
|
352
352
|
var SpaceState = lazy(() => import("./state-YZPY5T5A.mjs"));
|
|
353
|
-
var SpacesReady = lazy(() => import("./spaces-ready-
|
|
353
|
+
var SpacesReady = lazy(() => import("./spaces-ready-35U5BBTH.mjs"));
|
|
354
354
|
|
|
355
355
|
// packages/plugins/plugin-space/src/components/CreateDialog/CreateObjectDialog.tsx
|
|
356
356
|
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/CreateDialog/CreateObjectDialog.tsx";
|
|
@@ -501,7 +501,7 @@ var CreateSpaceDialog = () => {
|
|
|
501
501
|
// packages/plugins/plugin-space/src/components/CollectionMain.tsx
|
|
502
502
|
import React6 from "react";
|
|
503
503
|
import { useTranslation as useTranslation5 } from "@dxos/react-ui";
|
|
504
|
-
import { baseSurface,
|
|
504
|
+
import { baseSurface, descriptionMessage, mx as mx3 } from "@dxos/react-ui-theme";
|
|
505
505
|
var CollectionMain = ({ collection }) => {
|
|
506
506
|
const { t } = useTranslation5(SPACE_PLUGIN);
|
|
507
507
|
return /* @__PURE__ */ React6.createElement("div", {
|
|
@@ -510,7 +510,7 @@ var CollectionMain = ({ collection }) => {
|
|
|
510
510
|
"data-testid": "composer.firstRunMessage"
|
|
511
511
|
}, /* @__PURE__ */ React6.createElement("p", {
|
|
512
512
|
role: "alert",
|
|
513
|
-
className: mx3(
|
|
513
|
+
className: mx3(descriptionMessage, "rounded-lg p-8 font-normal text-lg max-is-[24rem] break-words")
|
|
514
514
|
}, collection.name ?? t("unnamed collection label")));
|
|
515
515
|
};
|
|
516
516
|
|
|
@@ -640,6 +640,7 @@ var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
|
|
|
640
640
|
import { Check, X } from "@phosphor-icons/react";
|
|
641
641
|
import React9, { useCallback as useCallback7, useMemo, useState as useState4 } from "react";
|
|
642
642
|
import { QR } from "react-qr-rounded";
|
|
643
|
+
import { createIntent as createIntent5, useIntentDispatcher as useIntentDispatcher5 } from "@dxos/app-framework";
|
|
643
644
|
import { log } from "@dxos/log";
|
|
644
645
|
import { useConfig } from "@dxos/react-client";
|
|
645
646
|
import { fullyQualifiedId as fullyQualifiedId2, useSpaceInvitations } from "@dxos/react-client/echo";
|
|
@@ -660,7 +661,7 @@ var handleInvitationEvent = (invitation, subscription) => {
|
|
|
660
661
|
authCode: invitation.authCode
|
|
661
662
|
}), void 0, {
|
|
662
663
|
F: __dxlog_file3,
|
|
663
|
-
L:
|
|
664
|
+
L: 40,
|
|
664
665
|
S: void 0,
|
|
665
666
|
C: (f, a) => f(...a)
|
|
666
667
|
});
|
|
@@ -670,6 +671,7 @@ var handleInvitationEvent = (invitation, subscription) => {
|
|
|
670
671
|
var MembersContainer = ({ space, createInvitationUrl }) => {
|
|
671
672
|
const { t } = useTranslation8(SPACE_PLUGIN);
|
|
672
673
|
const config = useConfig();
|
|
674
|
+
const { dispatchPromise: dispatch } = useIntentDispatcher5();
|
|
673
675
|
const invitations = useSpaceInvitations(space.key);
|
|
674
676
|
const visibleInvitations = invitations?.filter((invitation) => ![
|
|
675
677
|
Invitation.State.CANCELLED
|
|
@@ -700,13 +702,14 @@ var MembersContainer = ({ space, createInvitationUrl }) => {
|
|
|
700
702
|
size: 5
|
|
701
703
|
}),
|
|
702
704
|
testId: "membersContainer.inviteOne",
|
|
703
|
-
onClick: () => {
|
|
704
|
-
const invitation =
|
|
705
|
+
onClick: async () => {
|
|
706
|
+
const { data: invitation } = await dispatch(createIntent5(SpaceAction.Share, {
|
|
707
|
+
space,
|
|
705
708
|
type: Invitation.Type.INTERACTIVE,
|
|
706
709
|
authMethod: Invitation.AuthMethod.SHARED_SECRET,
|
|
707
710
|
multiUse: false,
|
|
708
711
|
target: target && fullyQualifiedId2(target)
|
|
709
|
-
});
|
|
712
|
+
}));
|
|
710
713
|
if (invitation && config.values.runtime?.app?.env?.DX_ENVIRONMENT !== "production") {
|
|
711
714
|
const subscription = invitation.subscribe((invitation2) => handleInvitationEvent(invitation2, subscription));
|
|
712
715
|
}
|
|
@@ -724,13 +727,14 @@ var MembersContainer = ({ space, createInvitationUrl }) => {
|
|
|
724
727
|
size: 5
|
|
725
728
|
}),
|
|
726
729
|
testId: "membersContainer.inviteMany",
|
|
727
|
-
onClick: () => {
|
|
728
|
-
const invitation =
|
|
730
|
+
onClick: async () => {
|
|
731
|
+
const { data: invitation } = await dispatch(createIntent5(SpaceAction.Share, {
|
|
732
|
+
space,
|
|
729
733
|
type: Invitation.Type.DELEGATED,
|
|
730
734
|
authMethod: Invitation.AuthMethod.KNOWN_PUBLIC_KEY,
|
|
731
735
|
multiUse: true,
|
|
732
736
|
target: target && fullyQualifiedId2(target)
|
|
733
|
-
});
|
|
737
|
+
}));
|
|
734
738
|
if (invitation && config.values.runtime?.app?.env?.DX_ENVIRONMENT !== "production") {
|
|
735
739
|
const subscription = invitation.subscribe((invitation2) => handleInvitationEvent(invitation2, subscription));
|
|
736
740
|
}
|
|
@@ -1095,76 +1099,32 @@ var PersistenceStatus = ({ db }) => {
|
|
|
1095
1099
|
}, t("persistence pending label")));
|
|
1096
1100
|
case 0:
|
|
1097
1101
|
default:
|
|
1098
|
-
return /* @__PURE__ */ React15.createElement(Tooltip.
|
|
1099
|
-
delayDuration: 400
|
|
1100
|
-
}, /* @__PURE__ */ React15.createElement(Tooltip.Trigger, {
|
|
1102
|
+
return /* @__PURE__ */ React15.createElement(Tooltip.Trigger, {
|
|
1103
|
+
delayDuration: 400,
|
|
1101
1104
|
role: "status",
|
|
1105
|
+
content: t("persisted locally message"),
|
|
1102
1106
|
className: "flex items-center"
|
|
1103
1107
|
}, /* @__PURE__ */ React15.createElement(CheckCircle2, {
|
|
1104
1108
|
className: mx6(getSize3(4), "me-1")
|
|
1105
1109
|
}), displayMessage && /* @__PURE__ */ React15.createElement("span", {
|
|
1106
1110
|
className: mx6("text-sm", staticPlaceholderText)
|
|
1107
|
-
}, t("persisted locally label")))
|
|
1111
|
+
}, t("persisted locally label")));
|
|
1108
1112
|
}
|
|
1109
1113
|
};
|
|
1110
1114
|
|
|
1111
|
-
// packages/plugins/plugin-space/src/components/PopoverAddSpace.tsx
|
|
1112
|
-
import React16 from "react";
|
|
1113
|
-
import { createIntent as createIntent5, LayoutAction as LayoutAction5, useIntentDispatcher as useIntentDispatcher5 } from "@dxos/app-framework";
|
|
1114
|
-
import { IconButton as IconButton3, useTranslation as useTranslation14 } from "@dxos/react-ui";
|
|
1115
|
-
var POPOVER_ADD_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
|
|
1116
|
-
var PopoverAddSpace = () => {
|
|
1117
|
-
const { t } = useTranslation14(SPACE_PLUGIN);
|
|
1118
|
-
const { dispatchPromise: dispatch } = useIntentDispatcher5();
|
|
1119
|
-
return /* @__PURE__ */ React16.createElement("div", {
|
|
1120
|
-
role: "none",
|
|
1121
|
-
className: "grid grid-cols-1 gap-1 [&>button]:justify-start"
|
|
1122
|
-
}, /* @__PURE__ */ React16.createElement(IconButton3, {
|
|
1123
|
-
variant: "ghost",
|
|
1124
|
-
label: t("create space label"),
|
|
1125
|
-
icon: "ph--plus--regular",
|
|
1126
|
-
onClick: () => {
|
|
1127
|
-
void dispatch(createIntent5(SpaceAction.OpenCreateSpace));
|
|
1128
|
-
void dispatch(createIntent5(LayoutAction5.UpdatePopover, {
|
|
1129
|
-
part: "popover",
|
|
1130
|
-
options: {
|
|
1131
|
-
variant: "react",
|
|
1132
|
-
anchorId: "",
|
|
1133
|
-
state: false
|
|
1134
|
-
}
|
|
1135
|
-
}));
|
|
1136
|
-
},
|
|
1137
|
-
"data-testid": "spacePlugin.createSpace"
|
|
1138
|
-
}), /* @__PURE__ */ React16.createElement(IconButton3, {
|
|
1139
|
-
variant: "ghost",
|
|
1140
|
-
label: t("join space label"),
|
|
1141
|
-
icon: "ph--sign-in--regular",
|
|
1142
|
-
onClick: () => {
|
|
1143
|
-
void dispatch(createIntent5(SpaceAction.Join));
|
|
1144
|
-
void dispatch(createIntent5(LayoutAction5.UpdatePopover, {
|
|
1145
|
-
part: "popover",
|
|
1146
|
-
options: {
|
|
1147
|
-
variant: "react",
|
|
1148
|
-
anchorId: "",
|
|
1149
|
-
state: false
|
|
1150
|
-
}
|
|
1151
|
-
}));
|
|
1152
|
-
},
|
|
1153
|
-
"data-testid": "spacePlugin.joinSpace"
|
|
1154
|
-
}));
|
|
1155
|
-
};
|
|
1156
|
-
|
|
1157
1115
|
// packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx
|
|
1158
|
-
import
|
|
1116
|
+
import React16, { useCallback as useCallback10, useRef as useRef4, useState as useState7 } from "react";
|
|
1117
|
+
import { createIntent as createIntent6, LayoutAction as LayoutAction5, useIntentDispatcher as useIntentDispatcher6 } from "@dxos/app-framework";
|
|
1159
1118
|
import { log as log2 } from "@dxos/log";
|
|
1160
|
-
import { Button as Button5, Input as Input3,
|
|
1119
|
+
import { Button as Button5, Input as Input3, useTranslation as useTranslation14 } from "@dxos/react-ui";
|
|
1161
1120
|
var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx";
|
|
1162
1121
|
var POPOVER_RENAME_OBJECT = `${SPACE_PLUGIN}/PopoverRenameObject`;
|
|
1163
1122
|
var PopoverRenameObject = ({ object: obj }) => {
|
|
1164
|
-
const { t } =
|
|
1123
|
+
const { t } = useTranslation14(SPACE_PLUGIN);
|
|
1165
1124
|
const doneButton = useRef4(null);
|
|
1166
1125
|
const object = obj;
|
|
1167
1126
|
const [name, setName] = useState7(object.name || object.title || "");
|
|
1127
|
+
const { dispatchPromise: dispatch } = useIntentDispatcher6();
|
|
1168
1128
|
const handleDone = useCallback10(() => {
|
|
1169
1129
|
try {
|
|
1170
1130
|
object.name = name;
|
|
@@ -1176,73 +1136,89 @@ var PopoverRenameObject = ({ object: obj }) => {
|
|
|
1176
1136
|
err
|
|
1177
1137
|
}, {
|
|
1178
1138
|
F: __dxlog_file4,
|
|
1179
|
-
L:
|
|
1139
|
+
L: 32,
|
|
1180
1140
|
S: void 0,
|
|
1181
1141
|
C: (f, a) => f(...a)
|
|
1182
1142
|
});
|
|
1183
1143
|
}
|
|
1184
1144
|
}
|
|
1145
|
+
void dispatch(createIntent6(LayoutAction5.UpdatePopover, {
|
|
1146
|
+
part: "popover",
|
|
1147
|
+
options: {
|
|
1148
|
+
variant: "react",
|
|
1149
|
+
anchorId: "",
|
|
1150
|
+
state: false
|
|
1151
|
+
}
|
|
1152
|
+
}));
|
|
1185
1153
|
}, [
|
|
1186
1154
|
object,
|
|
1187
1155
|
name
|
|
1188
1156
|
]);
|
|
1189
|
-
return /* @__PURE__ */
|
|
1157
|
+
return /* @__PURE__ */ React16.createElement("div", {
|
|
1190
1158
|
role: "none",
|
|
1191
1159
|
className: "p-1 flex gap-2"
|
|
1192
|
-
}, /* @__PURE__ */
|
|
1160
|
+
}, /* @__PURE__ */ React16.createElement("div", {
|
|
1193
1161
|
role: "none",
|
|
1194
1162
|
className: "flex-1"
|
|
1195
|
-
}, /* @__PURE__ */
|
|
1163
|
+
}, /* @__PURE__ */ React16.createElement(Input3.Root, null, /* @__PURE__ */ React16.createElement(Input3.Label, {
|
|
1196
1164
|
srOnly: true
|
|
1197
|
-
}, t("object name label")), /* @__PURE__ */
|
|
1165
|
+
}, t("object name label")), /* @__PURE__ */ React16.createElement(Input3.TextInput, {
|
|
1198
1166
|
placeholder: t("object placeholder"),
|
|
1199
1167
|
value: name,
|
|
1200
1168
|
"data-testid": "spacePlugin.renameObject.input",
|
|
1201
1169
|
onChange: ({ target: { value } }) => setName(value),
|
|
1202
1170
|
onKeyDown: ({ key }) => key === "Enter" && doneButton.current?.click()
|
|
1203
|
-
}))), /* @__PURE__ */
|
|
1204
|
-
asChild: true
|
|
1205
|
-
}, /* @__PURE__ */ React17.createElement(Button5, {
|
|
1171
|
+
}))), /* @__PURE__ */ React16.createElement(Button5, {
|
|
1206
1172
|
ref: doneButton,
|
|
1207
1173
|
classNames: "self-stretch",
|
|
1208
1174
|
onClick: handleDone
|
|
1209
1175
|
}, t("done label", {
|
|
1210
1176
|
ns: "os"
|
|
1211
|
-
})))
|
|
1177
|
+
})));
|
|
1212
1178
|
};
|
|
1213
1179
|
|
|
1214
1180
|
// packages/plugins/plugin-space/src/components/PopoverRenameSpace.tsx
|
|
1215
|
-
import
|
|
1216
|
-
import {
|
|
1181
|
+
import React17, { useCallback as useCallback11, useRef as useRef5, useState as useState8 } from "react";
|
|
1182
|
+
import { createIntent as createIntent7, LayoutAction as LayoutAction6, useIntentDispatcher as useIntentDispatcher7 } from "@dxos/app-framework";
|
|
1183
|
+
import { Button as Button6, Input as Input4, Popover, useTranslation as useTranslation15 } from "@dxos/react-ui";
|
|
1217
1184
|
var POPOVER_RENAME_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
|
|
1218
1185
|
var PopoverRenameSpace = ({ space }) => {
|
|
1219
|
-
const { t } =
|
|
1186
|
+
const { t } = useTranslation15(SPACE_PLUGIN);
|
|
1220
1187
|
const doneButton = useRef5(null);
|
|
1221
1188
|
const [name, setName] = useState8(space.properties.name ?? "");
|
|
1189
|
+
const { dispatchPromise: dispatch } = useIntentDispatcher7();
|
|
1222
1190
|
const handleDone = useCallback11(() => {
|
|
1223
1191
|
space.properties.name = name;
|
|
1192
|
+
void dispatch(createIntent7(LayoutAction6.UpdatePopover, {
|
|
1193
|
+
part: "popover",
|
|
1194
|
+
options: {
|
|
1195
|
+
variant: "react",
|
|
1196
|
+
anchorId: "",
|
|
1197
|
+
state: false
|
|
1198
|
+
}
|
|
1199
|
+
}));
|
|
1224
1200
|
}, [
|
|
1225
1201
|
space,
|
|
1226
1202
|
name
|
|
1227
1203
|
]);
|
|
1228
|
-
return /* @__PURE__ */
|
|
1204
|
+
return /* @__PURE__ */ React17.createElement("div", {
|
|
1229
1205
|
role: "none",
|
|
1230
1206
|
className: "p-1 flex gap-2"
|
|
1231
|
-
}, /* @__PURE__ */
|
|
1207
|
+
}, /* @__PURE__ */ React17.createElement("div", {
|
|
1232
1208
|
role: "none",
|
|
1233
1209
|
className: "flex-1"
|
|
1234
|
-
}, /* @__PURE__ */
|
|
1210
|
+
}, /* @__PURE__ */ React17.createElement(Input4.Root, null, /* @__PURE__ */ React17.createElement(Input4.Label, {
|
|
1235
1211
|
srOnly: true
|
|
1236
|
-
}, t("space name label")), /* @__PURE__ */
|
|
1212
|
+
}, t("space name label")), /* @__PURE__ */ React17.createElement(Input4.TextInput, {
|
|
1237
1213
|
defaultValue: space.properties.name ?? "",
|
|
1238
1214
|
placeholder: t("unnamed space label"),
|
|
1239
1215
|
onChange: ({ target: { value } }) => setName(value),
|
|
1240
1216
|
// TODO(wittjosiah): Ideally this should access the popover context to close the popover.
|
|
1241
1217
|
// Currently this is not possible because Radix does not expose the popover context.
|
|
1242
1218
|
onKeyDown: ({ key }) => key === "Enter" && doneButton.current?.click()
|
|
1243
|
-
}))), /* @__PURE__ */
|
|
1219
|
+
}))), /* @__PURE__ */ React17.createElement(Popover.Close, {
|
|
1244
1220
|
asChild: true
|
|
1245
|
-
}, /* @__PURE__ */
|
|
1221
|
+
}, /* @__PURE__ */ React17.createElement(Button6, {
|
|
1246
1222
|
ref: doneButton,
|
|
1247
1223
|
classNames: "self-stretch",
|
|
1248
1224
|
onClick: handleDone
|
|
@@ -1252,8 +1228,8 @@ var PopoverRenameSpace = ({ space }) => {
|
|
|
1252
1228
|
};
|
|
1253
1229
|
|
|
1254
1230
|
// packages/plugins/plugin-space/src/components/SchemaContainer.tsx
|
|
1255
|
-
import
|
|
1256
|
-
import { useTranslation as
|
|
1231
|
+
import React18, { useState as useState9, useEffect as useEffect4 } from "react";
|
|
1232
|
+
import { useTranslation as useTranslation16 } from "@dxos/react-ui";
|
|
1257
1233
|
import { controlItemClasses, ControlPage as ControlPage2, ControlSection as ControlSection2 } from "@dxos/react-ui-form";
|
|
1258
1234
|
import { StackItem as StackItem3 } from "@dxos/react-ui-stack";
|
|
1259
1235
|
var useQuerySpaceSchemas = (space) => {
|
|
@@ -1270,53 +1246,31 @@ var useQuerySpaceSchemas = (space) => {
|
|
|
1270
1246
|
return schemas;
|
|
1271
1247
|
};
|
|
1272
1248
|
var SchemaContainer = ({ space }) => {
|
|
1273
|
-
const { t } =
|
|
1249
|
+
const { t } = useTranslation16(SPACE_PLUGIN);
|
|
1274
1250
|
const schemas = useQuerySpaceSchemas(space);
|
|
1275
|
-
return /* @__PURE__ */
|
|
1251
|
+
return /* @__PURE__ */ React18.createElement(StackItem3.Content, {
|
|
1276
1252
|
classNames: "block overflow-y-auto"
|
|
1277
|
-
}, /* @__PURE__ */
|
|
1253
|
+
}, /* @__PURE__ */ React18.createElement(ControlPage2, null, /* @__PURE__ */ React18.createElement(ControlSection2, {
|
|
1278
1254
|
title: t("schema verbose label"),
|
|
1279
1255
|
description: t("schema description")
|
|
1280
|
-
}, /* @__PURE__ */
|
|
1256
|
+
}, /* @__PURE__ */ React18.createElement("div", {
|
|
1281
1257
|
role: "none",
|
|
1282
1258
|
className: controlItemClasses
|
|
1283
|
-
}, schemas.length === 0 && /* @__PURE__ */
|
|
1259
|
+
}, schemas.length === 0 && /* @__PURE__ */ React18.createElement("div", {
|
|
1284
1260
|
className: "text-center plb-4"
|
|
1285
|
-
}, t("no schemas found message")), schemas.map((schema) => /* @__PURE__ */
|
|
1261
|
+
}, t("no schemas found message")), schemas.map((schema) => /* @__PURE__ */ React18.createElement("div", {
|
|
1286
1262
|
key: schema.id
|
|
1287
|
-
}, /* @__PURE__ */
|
|
1288
|
-
};
|
|
1289
|
-
|
|
1290
|
-
// packages/plugins/plugin-space/src/components/ShareSpaceButton.tsx
|
|
1291
|
-
import React20 from "react";
|
|
1292
|
-
import { createIntent as createIntent6, useIntentDispatcher as useIntentDispatcher6 } from "@dxos/app-framework";
|
|
1293
|
-
import { IconButton as IconButton4, useTranslation as useTranslation18 } from "@dxos/react-ui";
|
|
1294
|
-
var ShareSpaceButton = ({ space }) => {
|
|
1295
|
-
const { dispatchPromise: dispatch } = useIntentDispatcher6();
|
|
1296
|
-
return /* @__PURE__ */ React20.createElement(ShareSpaceButtonImpl, {
|
|
1297
|
-
onClick: () => dispatch(createIntent6(SpaceAction.Share, {
|
|
1298
|
-
space
|
|
1299
|
-
}))
|
|
1300
|
-
});
|
|
1301
|
-
};
|
|
1302
|
-
var ShareSpaceButtonImpl = ({ onClick }) => {
|
|
1303
|
-
const { t } = useTranslation18(SPACE_PLUGIN);
|
|
1304
|
-
return /* @__PURE__ */ React20.createElement(IconButton4, {
|
|
1305
|
-
"data-testid": "spacePlugin.shareSpaceButton",
|
|
1306
|
-
icon: "ph--users--regular",
|
|
1307
|
-
label: t("share space label"),
|
|
1308
|
-
onClick
|
|
1309
|
-
});
|
|
1263
|
+
}, /* @__PURE__ */ React18.createElement("div", null, schema.typename)))))));
|
|
1310
1264
|
};
|
|
1311
1265
|
|
|
1312
1266
|
// packages/plugins/plugin-space/src/components/SpacePresence.tsx
|
|
1313
|
-
import
|
|
1267
|
+
import React19, { forwardRef, useCallback as useCallback12, useEffect as useEffect5, useState as useState10 } from "react";
|
|
1314
1268
|
import { useAppGraph as useAppGraph2, useCapability } from "@dxos/app-framework";
|
|
1315
1269
|
import { generateName } from "@dxos/display-name";
|
|
1316
1270
|
import { PublicKey, useClient as useClient5 } from "@dxos/react-client";
|
|
1317
1271
|
import { getSpace as getSpace3, useMembers, fullyQualifiedId as fullyQualifiedId3 } from "@dxos/react-client/echo";
|
|
1318
1272
|
import { useIdentity } from "@dxos/react-client/halo";
|
|
1319
|
-
import { Avatar, Tooltip as Tooltip2, useTranslation as
|
|
1273
|
+
import { Avatar, Tooltip as Tooltip2, Popover as Popover2, useTranslation as useTranslation17, List as List2, ListItem as ListItem2, useDefaultValue } from "@dxos/react-ui";
|
|
1320
1274
|
import { AttentionGlyph, useAttended, useAttention } from "@dxos/react-ui-attention";
|
|
1321
1275
|
import { ComplexMap, keyToFallback } from "@dxos/util";
|
|
1322
1276
|
var REFRESH_INTERVAL = 5e3;
|
|
@@ -1352,7 +1306,7 @@ var SpacePresence = ({ object, spaceKey }) => {
|
|
|
1352
1306
|
lastSeen
|
|
1353
1307
|
};
|
|
1354
1308
|
}).toSorted((a, b) => a.lastSeen - b.lastSeen);
|
|
1355
|
-
return /* @__PURE__ */
|
|
1309
|
+
return /* @__PURE__ */ React19.createElement(FullPresence, {
|
|
1356
1310
|
members: membersForObject
|
|
1357
1311
|
});
|
|
1358
1312
|
};
|
|
@@ -1362,40 +1316,39 @@ var FullPresence = (props) => {
|
|
|
1362
1316
|
if (members.length === 0) {
|
|
1363
1317
|
return null;
|
|
1364
1318
|
}
|
|
1365
|
-
return /* @__PURE__ */
|
|
1319
|
+
return /* @__PURE__ */ React19.createElement("div", {
|
|
1366
1320
|
className: "dx-avatar-group",
|
|
1367
1321
|
"data-testid": "spacePlugin.presence"
|
|
1368
|
-
}, members.slice(0, 3).map((member, i) => /* @__PURE__ */
|
|
1369
|
-
key: member.identity.identityKey.toHex()
|
|
1370
|
-
|
|
1322
|
+
}, members.slice(0, 3).map((member, i) => /* @__PURE__ */ React19.createElement(Tooltip2.Trigger, {
|
|
1323
|
+
key: member.identity.identityKey.toHex(),
|
|
1324
|
+
side: "bottom",
|
|
1325
|
+
content: getName(member.identity),
|
|
1371
1326
|
className: "grid focus:outline-none"
|
|
1372
|
-
}, /* @__PURE__ */
|
|
1327
|
+
}, /* @__PURE__ */ React19.createElement(PresenceAvatar, {
|
|
1373
1328
|
identity: member.identity,
|
|
1374
1329
|
match: member.currentlyAttended,
|
|
1375
1330
|
index: members.length - i,
|
|
1376
1331
|
onClick: () => onMemberClick?.(member),
|
|
1377
1332
|
size
|
|
1378
|
-
})), /* @__PURE__ */
|
|
1379
|
-
side: "bottom"
|
|
1380
|
-
}, /* @__PURE__ */ React21.createElement("span", null, getName(member.identity)), /* @__PURE__ */ React21.createElement(Tooltip2.Arrow, null))))), members.length > 3 && /* @__PURE__ */ React21.createElement(Tooltip2.Root, null, /* @__PURE__ */ React21.createElement(Tooltip2.Trigger, {
|
|
1333
|
+
}))), members.length > 3 && /* @__PURE__ */ React19.createElement(Popover2.Root, null, /* @__PURE__ */ React19.createElement(Popover2.Trigger, {
|
|
1381
1334
|
className: "grid focus:outline-none"
|
|
1382
|
-
}, /* @__PURE__ */
|
|
1335
|
+
}, /* @__PURE__ */ React19.createElement(Avatar.Root, null, /* @__PURE__ */ React19.createElement(Avatar.Content, {
|
|
1383
1336
|
status: "inactive",
|
|
1384
1337
|
style: {
|
|
1385
1338
|
zIndex: members.length - 4
|
|
1386
1339
|
},
|
|
1387
1340
|
fallback: `+${members.length - 3}`,
|
|
1388
1341
|
size
|
|
1389
|
-
}))), /* @__PURE__ */
|
|
1342
|
+
}))), /* @__PURE__ */ React19.createElement(Popover2.Portal, null, /* @__PURE__ */ React19.createElement(Popover2.Content, {
|
|
1390
1343
|
side: "bottom"
|
|
1391
|
-
}, /* @__PURE__ */
|
|
1344
|
+
}, /* @__PURE__ */ React19.createElement(Popover2.Arrow, null), /* @__PURE__ */ React19.createElement(List2, {
|
|
1392
1345
|
classNames: "max-h-56 overflow-y-auto"
|
|
1393
|
-
}, members.map((member) => /* @__PURE__ */
|
|
1346
|
+
}, members.map((member) => /* @__PURE__ */ React19.createElement(ListItem2.Root, {
|
|
1394
1347
|
key: member.identity.identityKey.toHex(),
|
|
1395
1348
|
classNames: "flex gap-2 items-center cursor-pointer mbe-2",
|
|
1396
1349
|
onClick: () => onMemberClick?.(member),
|
|
1397
1350
|
"data-testid": "identity-list-item"
|
|
1398
|
-
}, /* @__PURE__ */
|
|
1351
|
+
}, /* @__PURE__ */ React19.createElement(PresenceAvatar, {
|
|
1399
1352
|
identity: member.identity,
|
|
1400
1353
|
size,
|
|
1401
1354
|
showName: true,
|
|
@@ -1405,7 +1358,7 @@ var FullPresence = (props) => {
|
|
|
1405
1358
|
var PresenceAvatar = /* @__PURE__ */ forwardRef(({ identity, showName, match, index, onClick, size }, forwardedRef) => {
|
|
1406
1359
|
const status = match ? "current" : "active";
|
|
1407
1360
|
const fallbackValue = keyToFallback(identity.identityKey);
|
|
1408
|
-
return /* @__PURE__ */
|
|
1361
|
+
return /* @__PURE__ */ React19.createElement(Avatar.Root, null, /* @__PURE__ */ React19.createElement(Avatar.Content, {
|
|
1409
1362
|
status,
|
|
1410
1363
|
hue: identity.profile?.data?.hue || fallbackValue.hue,
|
|
1411
1364
|
"data-testid": "spacePlugin.presence.member",
|
|
@@ -1419,7 +1372,7 @@ var PresenceAvatar = /* @__PURE__ */ forwardRef(({ identity, showName, match, in
|
|
|
1419
1372
|
onClick,
|
|
1420
1373
|
fallback: identity.profile?.data?.emoji || fallbackValue.emoji,
|
|
1421
1374
|
ref: forwardedRef
|
|
1422
|
-
}), /* @__PURE__ */
|
|
1375
|
+
}), /* @__PURE__ */ React19.createElement(Avatar.Label, {
|
|
1423
1376
|
classNames: showName ? "text-sm truncate pli-2" : "sr-only"
|
|
1424
1377
|
}, getName(identity)));
|
|
1425
1378
|
});
|
|
@@ -1447,87 +1400,87 @@ var SmallPresenceLive = ({ id, open, viewers }) => {
|
|
|
1447
1400
|
}, [
|
|
1448
1401
|
viewers
|
|
1449
1402
|
]);
|
|
1450
|
-
return /* @__PURE__ */
|
|
1403
|
+
return /* @__PURE__ */ React19.createElement(SmallPresence, {
|
|
1451
1404
|
count: activeViewers.length,
|
|
1452
1405
|
attended: isAttended,
|
|
1453
1406
|
containsAttended
|
|
1454
1407
|
});
|
|
1455
1408
|
};
|
|
1456
1409
|
var SmallPresence = ({ count = 0, attended, containsAttended }) => {
|
|
1457
|
-
const { t } =
|
|
1458
|
-
return /* @__PURE__ */
|
|
1459
|
-
asChild: true
|
|
1460
|
-
|
|
1410
|
+
const { t } = useTranslation17(SPACE_PLUGIN);
|
|
1411
|
+
return /* @__PURE__ */ React19.createElement(Tooltip2.Trigger, {
|
|
1412
|
+
asChild: true,
|
|
1413
|
+
content: t("presence label", {
|
|
1414
|
+
count
|
|
1415
|
+
}),
|
|
1416
|
+
side: "bottom"
|
|
1417
|
+
}, /* @__PURE__ */ React19.createElement(AttentionGlyph, {
|
|
1461
1418
|
attended,
|
|
1462
1419
|
containsAttended,
|
|
1463
1420
|
presence: count > 1 ? "many" : count === 1 ? "one" : "none",
|
|
1464
1421
|
classNames: "self-center mie-1"
|
|
1465
|
-
}))
|
|
1466
|
-
side: "bottom"
|
|
1467
|
-
}, /* @__PURE__ */ React21.createElement("span", null, t("presence label", {
|
|
1468
|
-
count
|
|
1469
|
-
})), /* @__PURE__ */ React21.createElement(Tooltip2.Arrow, null))));
|
|
1422
|
+
}));
|
|
1470
1423
|
};
|
|
1471
1424
|
|
|
1472
1425
|
// packages/plugins/plugin-space/src/components/SpacePluginSettings.tsx
|
|
1473
|
-
import
|
|
1474
|
-
import { createIntent as
|
|
1426
|
+
import React20 from "react";
|
|
1427
|
+
import { createIntent as createIntent8, useIntentDispatcher as useIntentDispatcher8 } from "@dxos/app-framework";
|
|
1475
1428
|
import { useClient as useClient6 } from "@dxos/react-client";
|
|
1476
1429
|
import { useSpaces as useSpaces2 } from "@dxos/react-client/echo";
|
|
1477
|
-
import { Input as Input5, toLocalizedString as toLocalizedString3, useTranslation as
|
|
1430
|
+
import { Input as Input5, toLocalizedString as toLocalizedString3, useTranslation as useTranslation18, List as List3, ListItem as ListItem3, Button as Button7 } from "@dxos/react-ui";
|
|
1478
1431
|
import { DeprecatedFormContainer, DeprecatedFormInput } from "@dxos/react-ui-form";
|
|
1479
1432
|
var SpacePluginSettings = ({ settings }) => {
|
|
1480
|
-
const { t } =
|
|
1481
|
-
const { dispatchPromise: dispatch } =
|
|
1433
|
+
const { t } = useTranslation18(SPACE_PLUGIN);
|
|
1434
|
+
const { dispatchPromise: dispatch } = useIntentDispatcher8();
|
|
1482
1435
|
const client = useClient6();
|
|
1483
1436
|
const spaces = useSpaces2({
|
|
1484
1437
|
all: settings.showHidden
|
|
1485
1438
|
});
|
|
1486
|
-
return /* @__PURE__ */
|
|
1439
|
+
return /* @__PURE__ */ React20.createElement(DeprecatedFormContainer, null, /* @__PURE__ */ React20.createElement(DeprecatedFormInput, {
|
|
1487
1440
|
label: t("show hidden spaces label")
|
|
1488
|
-
}, /* @__PURE__ */
|
|
1441
|
+
}, /* @__PURE__ */ React20.createElement(Input5.Switch, {
|
|
1489
1442
|
checked: settings.showHidden,
|
|
1490
1443
|
onCheckedChange: (checked) => settings.showHidden = !!checked
|
|
1491
|
-
})), /* @__PURE__ */
|
|
1444
|
+
})), /* @__PURE__ */ React20.createElement("div", {
|
|
1492
1445
|
role: "none"
|
|
1493
|
-
}, /* @__PURE__ */
|
|
1446
|
+
}, /* @__PURE__ */ React20.createElement("h2", {
|
|
1494
1447
|
className: "text-xl my-4"
|
|
1495
|
-
}, "Space Settings"), /* @__PURE__ */
|
|
1448
|
+
}, "Space Settings"), /* @__PURE__ */ React20.createElement(List3, {
|
|
1496
1449
|
classNames: "max-w-md mx-auto"
|
|
1497
|
-
}, spaces.map((space) => /* @__PURE__ */
|
|
1450
|
+
}, spaces.map((space) => /* @__PURE__ */ React20.createElement(ListItem3.Root, {
|
|
1498
1451
|
key: space.id
|
|
1499
|
-
}, /* @__PURE__ */
|
|
1452
|
+
}, /* @__PURE__ */ React20.createElement(ListItem3.Heading, {
|
|
1500
1453
|
classNames: "flex flex-col grow truncate mbe-2"
|
|
1501
1454
|
}, toLocalizedString3(getSpaceDisplayName(space, {
|
|
1502
1455
|
personal: space === client.spaces.default
|
|
1503
|
-
}), t)), /* @__PURE__ */
|
|
1504
|
-
onClick: () => dispatch(
|
|
1456
|
+
}), t)), /* @__PURE__ */ React20.createElement(ListItem3.Endcap, null, /* @__PURE__ */ React20.createElement(Button7, {
|
|
1457
|
+
onClick: () => dispatch(createIntent8(SpaceAction.OpenSettings, {
|
|
1505
1458
|
space
|
|
1506
1459
|
}))
|
|
1507
1460
|
}, t("open space settings label"))))))));
|
|
1508
1461
|
};
|
|
1509
1462
|
|
|
1510
1463
|
// packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsContainer.tsx
|
|
1511
|
-
import { pipe as pipe2, Schema
|
|
1512
|
-
import
|
|
1513
|
-
import { chain as chain2, createIntent as
|
|
1464
|
+
import { pipe as pipe2, Schema } from "effect";
|
|
1465
|
+
import React21, { useCallback as useCallback13, useMemo as useMemo3, useState as useState11 } from "react";
|
|
1466
|
+
import { chain as chain2, createIntent as createIntent9, LayoutAction as LayoutAction7, useIntentDispatcher as useIntentDispatcher9 } from "@dxos/app-framework";
|
|
1514
1467
|
import { log as log3 } from "@dxos/log";
|
|
1515
1468
|
import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
|
|
1516
1469
|
import { useClient as useClient7 } from "@dxos/react-client";
|
|
1517
1470
|
import { SpaceState as SpaceState2 } from "@dxos/react-client/echo";
|
|
1518
|
-
import { Button as Button8, Input as Input6, useMulticastObservable, useTranslation as
|
|
1471
|
+
import { Button as Button8, Input as Input6, useMulticastObservable, useTranslation as useTranslation19 } from "@dxos/react-ui";
|
|
1519
1472
|
import { Form as Form4, ControlItem, ControlItemInput as ControlItemInput2, ControlSection as ControlSection3, ControlPage as ControlPage3 } from "@dxos/react-ui-form";
|
|
1520
1473
|
import { HuePicker, IconPicker } from "@dxos/react-ui-pickers";
|
|
1521
1474
|
import { StackItem as StackItem4 } from "@dxos/react-ui-stack";
|
|
1522
1475
|
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsContainer.tsx";
|
|
1523
|
-
var FormSchema = SpaceForm.pipe(
|
|
1524
|
-
archived:
|
|
1476
|
+
var FormSchema = SpaceForm.pipe(Schema.extend(Schema.Struct({
|
|
1477
|
+
archived: Schema.Boolean.annotations({
|
|
1525
1478
|
title: "Archive space"
|
|
1526
1479
|
})
|
|
1527
1480
|
})));
|
|
1528
1481
|
var SpaceSettingsContainer = ({ space }) => {
|
|
1529
|
-
const { t } =
|
|
1530
|
-
const { dispatchPromise: dispatch } =
|
|
1482
|
+
const { t } = useTranslation19(SPACE_PLUGIN);
|
|
1483
|
+
const { dispatchPromise: dispatch } = useIntentDispatcher9();
|
|
1531
1484
|
const client = useClient7();
|
|
1532
1485
|
const archived = useMulticastObservable(space.state) === SpaceState2.SPACE_INACTIVE;
|
|
1533
1486
|
const [edgeReplication, setEdgeReplication] = useState11(space.internal.data.edgeReplication === EdgeReplicationSetting.ENABLED);
|
|
@@ -1536,7 +1489,7 @@ var SpaceSettingsContainer = ({ space }) => {
|
|
|
1536
1489
|
await space?.internal.setEdgeReplicationPreference(next ? EdgeReplicationSetting.ENABLED : EdgeReplicationSetting.DISABLED).catch((err) => {
|
|
1537
1490
|
log3.catch(err, void 0, {
|
|
1538
1491
|
F: __dxlog_file5,
|
|
1539
|
-
L:
|
|
1492
|
+
L: 51,
|
|
1540
1493
|
S: void 0,
|
|
1541
1494
|
C: (f, a) => f(...a)
|
|
1542
1495
|
});
|
|
@@ -1557,14 +1510,14 @@ var SpaceSettingsContainer = ({ space }) => {
|
|
|
1557
1510
|
space.properties.hue = properties.hue;
|
|
1558
1511
|
}
|
|
1559
1512
|
if (properties.archived && !archived) {
|
|
1560
|
-
void dispatch(pipe2(
|
|
1513
|
+
void dispatch(pipe2(createIntent9(SpaceAction.Close, {
|
|
1561
1514
|
space
|
|
1562
|
-
}), chain2(
|
|
1515
|
+
}), chain2(LayoutAction7.SwitchWorkspace, {
|
|
1563
1516
|
part: "workspace",
|
|
1564
1517
|
subject: client.spaces.default.id
|
|
1565
1518
|
})));
|
|
1566
1519
|
} else if (!properties.archived && archived) {
|
|
1567
|
-
void dispatch(
|
|
1520
|
+
void dispatch(createIntent9(SpaceAction.Open, {
|
|
1568
1521
|
space
|
|
1569
1522
|
}));
|
|
1570
1523
|
}
|
|
@@ -1592,10 +1545,10 @@ var SpaceSettingsContainer = ({ space }) => {
|
|
|
1592
1545
|
onValueChange,
|
|
1593
1546
|
type
|
|
1594
1547
|
]);
|
|
1595
|
-
return /* @__PURE__ */
|
|
1548
|
+
return /* @__PURE__ */ React21.createElement(ControlItemInput2, {
|
|
1596
1549
|
title: label,
|
|
1597
1550
|
description: t("display name description")
|
|
1598
|
-
}, /* @__PURE__ */
|
|
1551
|
+
}, /* @__PURE__ */ React21.createElement(Input6.TextInput, {
|
|
1599
1552
|
value: getValue(),
|
|
1600
1553
|
onChange: handleChange,
|
|
1601
1554
|
placeholder: t("display name input placeholder"),
|
|
@@ -1611,10 +1564,10 @@ var SpaceSettingsContainer = ({ space }) => {
|
|
|
1611
1564
|
onValueChange,
|
|
1612
1565
|
type
|
|
1613
1566
|
]);
|
|
1614
|
-
return /* @__PURE__ */
|
|
1567
|
+
return /* @__PURE__ */ React21.createElement(ControlItem, {
|
|
1615
1568
|
title: label,
|
|
1616
1569
|
description: t("icon description")
|
|
1617
|
-
}, /* @__PURE__ */
|
|
1570
|
+
}, /* @__PURE__ */ React21.createElement(IconPicker, {
|
|
1618
1571
|
value: getValue(),
|
|
1619
1572
|
onChange: handleChange,
|
|
1620
1573
|
onReset: handleEmojiReset,
|
|
@@ -1631,10 +1584,10 @@ var SpaceSettingsContainer = ({ space }) => {
|
|
|
1631
1584
|
onValueChange,
|
|
1632
1585
|
type
|
|
1633
1586
|
]);
|
|
1634
|
-
return /* @__PURE__ */
|
|
1587
|
+
return /* @__PURE__ */ React21.createElement(ControlItem, {
|
|
1635
1588
|
title: label,
|
|
1636
1589
|
description: t("hue description")
|
|
1637
|
-
}, /* @__PURE__ */
|
|
1590
|
+
}, /* @__PURE__ */ React21.createElement(HuePicker, {
|
|
1638
1591
|
value: getValue(),
|
|
1639
1592
|
onChange: handleChange,
|
|
1640
1593
|
onReset: handleHueReset,
|
|
@@ -1646,10 +1599,10 @@ var SpaceSettingsContainer = ({ space }) => {
|
|
|
1646
1599
|
onValueChange,
|
|
1647
1600
|
type
|
|
1648
1601
|
]);
|
|
1649
|
-
return /* @__PURE__ */
|
|
1602
|
+
return /* @__PURE__ */ React21.createElement(ControlItemInput2, {
|
|
1650
1603
|
title: label,
|
|
1651
1604
|
description: t("edge replication description")
|
|
1652
|
-
}, /* @__PURE__ */
|
|
1605
|
+
}, /* @__PURE__ */ React21.createElement(Input6.Switch, {
|
|
1653
1606
|
checked: getValue(),
|
|
1654
1607
|
onCheckedChange: handleChange,
|
|
1655
1608
|
classNames: "justify-self-end"
|
|
@@ -1661,10 +1614,10 @@ var SpaceSettingsContainer = ({ space }) => {
|
|
|
1661
1614
|
type,
|
|
1662
1615
|
getValue
|
|
1663
1616
|
]);
|
|
1664
|
-
return /* @__PURE__ */
|
|
1617
|
+
return /* @__PURE__ */ React21.createElement(ControlItemInput2, {
|
|
1665
1618
|
title: label,
|
|
1666
1619
|
description: t("archive space description")
|
|
1667
|
-
}, /* @__PURE__ */
|
|
1620
|
+
}, /* @__PURE__ */ React21.createElement(Button8, {
|
|
1668
1621
|
disabled: space === client.spaces.default,
|
|
1669
1622
|
onClick: handleChange
|
|
1670
1623
|
}, getValue() ? t("unarchive space label") : t("archive space label")));
|
|
@@ -1673,16 +1626,16 @@ var SpaceSettingsContainer = ({ space }) => {
|
|
|
1673
1626
|
t,
|
|
1674
1627
|
space
|
|
1675
1628
|
]);
|
|
1676
|
-
return /* @__PURE__ */
|
|
1629
|
+
return /* @__PURE__ */ React21.createElement(StackItem4.Content, {
|
|
1677
1630
|
classNames: "block overflow-y-auto pli-2"
|
|
1678
|
-
}, /* @__PURE__ */
|
|
1631
|
+
}, /* @__PURE__ */ React21.createElement(ControlPage3, null, /* @__PURE__ */ React21.createElement(ControlSection3, {
|
|
1679
1632
|
title: t("space properties settings verbose label", {
|
|
1680
1633
|
ns: SPACE_PLUGIN
|
|
1681
1634
|
}),
|
|
1682
1635
|
description: t("space properties settings description", {
|
|
1683
1636
|
ns: SPACE_PLUGIN
|
|
1684
1637
|
})
|
|
1685
|
-
}, /* @__PURE__ */
|
|
1638
|
+
}, /* @__PURE__ */ React21.createElement(Form4, {
|
|
1686
1639
|
schema: FormSchema,
|
|
1687
1640
|
values,
|
|
1688
1641
|
autoSave: true,
|
|
@@ -1693,13 +1646,13 @@ var SpaceSettingsContainer = ({ space }) => {
|
|
|
1693
1646
|
};
|
|
1694
1647
|
|
|
1695
1648
|
// packages/plugins/plugin-space/src/components/SyncStatus/InlineSyncStatus.tsx
|
|
1696
|
-
import
|
|
1649
|
+
import React22, { useEffect as useEffect6, useState as useState12 } from "react";
|
|
1697
1650
|
import { useAppGraph as useAppGraph3 } from "@dxos/app-framework";
|
|
1698
1651
|
import { EdgeStatus } from "@dxos/protocols/proto/dxos/client/services";
|
|
1699
1652
|
import { EdgeReplicationSetting as EdgeReplicationSetting2 } from "@dxos/protocols/proto/dxos/echo/metadata";
|
|
1700
1653
|
import { useClient as useClient8 } from "@dxos/react-client";
|
|
1701
1654
|
import { useSpaceSyncState } from "@dxos/react-client/echo";
|
|
1702
|
-
import { Tooltip as Tooltip3, useTranslation as
|
|
1655
|
+
import { Tooltip as Tooltip3, useTranslation as useTranslation20 } from "@dxos/react-ui";
|
|
1703
1656
|
import { AttentionGlyph as AttentionGlyph2, useAttended as useAttended2, useAttention as useAttention2 } from "@dxos/react-ui-attention";
|
|
1704
1657
|
var useEdgeStatus = () => {
|
|
1705
1658
|
const [status, setStatus] = useState12(EdgeStatus.NOT_CONNECTED);
|
|
@@ -1714,7 +1667,7 @@ var useEdgeStatus = () => {
|
|
|
1714
1667
|
return status;
|
|
1715
1668
|
};
|
|
1716
1669
|
var InlineSyncStatus = ({ space, open }) => {
|
|
1717
|
-
const { t } =
|
|
1670
|
+
const { t } = useTranslation20(SPACE_PLUGIN);
|
|
1718
1671
|
const id = space.id;
|
|
1719
1672
|
const { hasAttention, isAncestor, isRelated } = useAttention2(id);
|
|
1720
1673
|
const isAttended = hasAttention || isAncestor || isRelated;
|
|
@@ -1727,25 +1680,24 @@ var InlineSyncStatus = ({ space, open }) => {
|
|
|
1727
1680
|
const edgeSyncEnabled = space.internal.data.edgeReplication === EdgeReplicationSetting2.ENABLED;
|
|
1728
1681
|
const syncState = useSpaceSyncState(space);
|
|
1729
1682
|
const syncing = connectedToEdge && edgeSyncEnabled && syncState && syncState.missingOnLocal > 0;
|
|
1730
|
-
return /* @__PURE__ */
|
|
1731
|
-
asChild: true
|
|
1732
|
-
|
|
1683
|
+
return /* @__PURE__ */ React22.createElement(Tooltip3.Trigger, {
|
|
1684
|
+
asChild: true,
|
|
1685
|
+
content: t("syncing label"),
|
|
1686
|
+
side: "bottom"
|
|
1687
|
+
}, /* @__PURE__ */ React22.createElement(AttentionGlyph2, {
|
|
1733
1688
|
syncing,
|
|
1734
1689
|
attended: isAttended,
|
|
1735
1690
|
containsAttended,
|
|
1736
1691
|
classNames: "self-center mie-1"
|
|
1737
|
-
}))
|
|
1738
|
-
side: "bottom",
|
|
1739
|
-
classNames: "z-[70]"
|
|
1740
|
-
}, /* @__PURE__ */ React24.createElement("span", null, t("syncing label")), /* @__PURE__ */ React24.createElement(Tooltip3.Arrow, null))));
|
|
1692
|
+
}));
|
|
1741
1693
|
};
|
|
1742
1694
|
|
|
1743
1695
|
// packages/plugins/plugin-space/src/components/SyncStatus/SyncStatus.tsx
|
|
1744
|
-
import
|
|
1696
|
+
import React23, { useEffect as useEffect7, useState as useState13 } from "react";
|
|
1745
1697
|
import { StatusBar } from "@dxos/plugin-status-bar";
|
|
1746
1698
|
import { useClient as useClient9 } from "@dxos/react-client";
|
|
1747
1699
|
import { getSyncSummary, useSyncState } from "@dxos/react-client/echo";
|
|
1748
|
-
import { Icon as Icon5, useTranslation as
|
|
1700
|
+
import { Icon as Icon5, useTranslation as useTranslation21 } from "@dxos/react-ui";
|
|
1749
1701
|
|
|
1750
1702
|
// packages/plugins/plugin-space/src/components/SyncStatus/save-tracker.ts
|
|
1751
1703
|
import { Context } from "@dxos/context";
|
|
@@ -1849,13 +1801,13 @@ var SyncStatus = () => {
|
|
|
1849
1801
|
setSaved(state2 === "saved");
|
|
1850
1802
|
});
|
|
1851
1803
|
}, []);
|
|
1852
|
-
return /* @__PURE__ */
|
|
1804
|
+
return /* @__PURE__ */ React23.createElement(SyncStatusIndicator, {
|
|
1853
1805
|
state,
|
|
1854
1806
|
saved
|
|
1855
1807
|
});
|
|
1856
1808
|
};
|
|
1857
1809
|
var SyncStatusIndicator = ({ state, saved }) => {
|
|
1858
|
-
const { t } =
|
|
1810
|
+
const { t } = useTranslation21(SPACE_PLUGIN);
|
|
1859
1811
|
const summary = getSyncSummary(state);
|
|
1860
1812
|
const offline = Object.values(state).length === 0;
|
|
1861
1813
|
const needsToUpload = summary.differentDocuments > 0 || summary.missingOnRemote > 0;
|
|
@@ -1882,12 +1834,12 @@ var SyncStatusIndicator = ({ state, saved }) => {
|
|
|
1882
1834
|
needsToDownload
|
|
1883
1835
|
]);
|
|
1884
1836
|
const title = t(`${status} label`);
|
|
1885
|
-
const icon = /* @__PURE__ */
|
|
1837
|
+
const icon = /* @__PURE__ */ React23.createElement(Icon5, {
|
|
1886
1838
|
icon: getIcon(status),
|
|
1887
1839
|
size: 4,
|
|
1888
1840
|
classNames
|
|
1889
1841
|
});
|
|
1890
|
-
return /* @__PURE__ */
|
|
1842
|
+
return /* @__PURE__ */ React23.createElement(StatusBar.Item, {
|
|
1891
1843
|
title
|
|
1892
1844
|
}, icon);
|
|
1893
1845
|
};
|
|
@@ -1906,16 +1858,12 @@ export {
|
|
|
1906
1858
|
MenuFooter,
|
|
1907
1859
|
ObjectSettingsContainer,
|
|
1908
1860
|
PersistenceStatus,
|
|
1909
|
-
POPOVER_ADD_SPACE,
|
|
1910
|
-
PopoverAddSpace,
|
|
1911
1861
|
POPOVER_RENAME_OBJECT,
|
|
1912
1862
|
PopoverRenameObject,
|
|
1913
1863
|
POPOVER_RENAME_SPACE,
|
|
1914
1864
|
PopoverRenameSpace,
|
|
1915
1865
|
useQuerySpaceSchemas,
|
|
1916
1866
|
SchemaContainer,
|
|
1917
|
-
ShareSpaceButton,
|
|
1918
|
-
ShareSpaceButtonImpl,
|
|
1919
1867
|
SpacePresence,
|
|
1920
1868
|
FullPresence,
|
|
1921
1869
|
SmallPresenceLive,
|
|
@@ -1931,10 +1879,10 @@ export {
|
|
|
1931
1879
|
IntentResolver,
|
|
1932
1880
|
ReactRoot,
|
|
1933
1881
|
ReactSurface,
|
|
1934
|
-
|
|
1935
|
-
|
|
1882
|
+
SchemaDefs,
|
|
1883
|
+
SchemaTools,
|
|
1936
1884
|
SpaceSettings,
|
|
1937
1885
|
SpaceState,
|
|
1938
1886
|
SpacesReady
|
|
1939
1887
|
};
|
|
1940
|
-
//# sourceMappingURL=chunk-
|
|
1888
|
+
//# sourceMappingURL=chunk-TB557OBD.mjs.map
|