@dxos/plugin-space 0.7.5-staging.b81e783 → 0.8.0
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/{chunk-POARSSRI.mjs → chunk-PCEP3KQY.mjs} +47 -42
- package/dist/lib/browser/chunk-PCEP3KQY.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +2 -1
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-E2UU3DAS.mjs → intent-resolver-GPNAQ2SG.mjs} +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-STUND2SO.mjs → react-root-4CCSD7TZ.mjs} +2 -2
- package/dist/lib/browser/{react-surface-P7CKFNJR.mjs → react-surface-FKMRI3WV.mjs} +2 -2
- package/dist/lib/node/{chunk-RHYA4XUB.cjs → chunk-QE4GVR6C.cjs} +22 -17
- package/dist/lib/node/chunk-QE4GVR6C.cjs.map +7 -0
- package/dist/lib/node/index.cjs +45 -44
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-TJ5DFPZP.cjs → intent-resolver-ICHHI6I6.cjs} +13 -13
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-root-WQGBCJ2K.cjs → react-root-TCBTUOOJ.cjs} +6 -6
- package/dist/lib/node/{react-surface-GSEV6XCR.cjs → react-surface-JSCCIZS5.cjs} +38 -38
- package/dist/lib/node-esm/{chunk-ONKFX23L.mjs → chunk-HJCEJNW3.mjs} +47 -42
- package/dist/lib/node-esm/chunk-HJCEJNW3.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +2 -1
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-7NJCJ3FA.mjs → intent-resolver-VR42K5GE.mjs} +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-root-OLYAEMP5.mjs → react-root-THJBSTQS.mjs} +2 -2
- package/dist/lib/node-esm/{react-surface-6IFC6ZMN.mjs → react-surface-Z3BBQ5HX.mjs} +2 -2
- package/dist/types/src/SpacePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +88 -88
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +111 -111
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/types/collection.d.ts +2 -2
- package/dist/types/src/types/thread.d.ts +34 -34
- package/dist/types/src/types/types.d.ts +9 -9
- package/dist/types/src/util.d.ts +1 -1
- package/package.json +39 -39
- package/src/SpacePlugin.tsx +1 -0
- package/src/components/JoinDialog.tsx +3 -1
- package/src/components/PopoverAddSpace.tsx +8 -8
- package/dist/lib/browser/chunk-POARSSRI.mjs.map +0 -7
- package/dist/lib/node/chunk-RHYA4XUB.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-ONKFX23L.mjs.map +0 -7
- /package/dist/lib/browser/{intent-resolver-E2UU3DAS.mjs.map → intent-resolver-GPNAQ2SG.mjs.map} +0 -0
- /package/dist/lib/browser/{react-root-STUND2SO.mjs.map → react-root-4CCSD7TZ.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-P7CKFNJR.mjs.map → react-surface-FKMRI3WV.mjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-TJ5DFPZP.cjs.map → intent-resolver-ICHHI6I6.cjs.map} +0 -0
- /package/dist/lib/node/{react-root-WQGBCJ2K.cjs.map → react-root-TCBTUOOJ.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-GSEV6XCR.cjs.map → react-surface-JSCCIZS5.cjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-7NJCJ3FA.mjs.map → intent-resolver-VR42K5GE.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-root-OLYAEMP5.mjs.map → react-root-THJBSTQS.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-6IFC6ZMN.mjs.map → react-surface-Z3BBQ5HX.mjs.map} +0 -0
|
@@ -418,9 +418,9 @@ import { lazy } from "@dxos/app-framework";
|
|
|
418
418
|
var AppGraphBuilder = lazy(() => import("./app-graph-builder-MGK5HWPZ.mjs"));
|
|
419
419
|
var AppGraphSerializer = lazy(() => import("./app-graph-serializer-FOWFLYGU.mjs"));
|
|
420
420
|
var IdentityCreated = lazy(() => import("./identity-created-FYGS6TBH.mjs"));
|
|
421
|
-
var IntentResolver = lazy(() => import("./intent-resolver-
|
|
422
|
-
var ReactRoot = lazy(() => import("./react-root-
|
|
423
|
-
var ReactSurface = lazy(() => import("./react-surface-
|
|
421
|
+
var IntentResolver = lazy(() => import("./intent-resolver-GPNAQ2SG.mjs"));
|
|
422
|
+
var ReactRoot = lazy(() => import("./react-root-4CCSD7TZ.mjs"));
|
|
423
|
+
var ReactSurface = lazy(() => import("./react-surface-FKMRI3WV.mjs"));
|
|
424
424
|
var Schema = lazy(() => import("./schema-5W3DSY2E.mjs"));
|
|
425
425
|
var SpaceSettings = lazy(() => import("./settings-PHPCXX33.mjs"));
|
|
426
426
|
var SpaceState = lazy(() => import("./state-INJ63O57.mjs"));
|
|
@@ -604,7 +604,7 @@ import { createIntent as createIntent4, LayoutAction as LayoutAction4, useAppGra
|
|
|
604
604
|
import { log } from "@dxos/log";
|
|
605
605
|
import { ObservabilityAction } from "@dxos/plugin-observability/types";
|
|
606
606
|
import { useClient as useClient3 } from "@dxos/react-client";
|
|
607
|
-
import { Dialog as Dialog3 } from "@dxos/react-ui";
|
|
607
|
+
import { Dialog as Dialog3, useTranslation as useTranslation10 } from "@dxos/react-ui";
|
|
608
608
|
import { JoinPanel } from "@dxos/shell/react";
|
|
609
609
|
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/JoinDialog.tsx";
|
|
610
610
|
var JOIN_DIALOG = `${SPACE_PLUGIN}/JoinDialog`;
|
|
@@ -612,6 +612,7 @@ var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
|
|
|
612
612
|
const { dispatchPromise: dispatch } = useIntentDispatcher4();
|
|
613
613
|
const client = useClient3();
|
|
614
614
|
const { graph } = useAppGraph();
|
|
615
|
+
const { t } = useTranslation10(SPACE_PLUGIN);
|
|
615
616
|
const handleDone = useCallback7(async (result) => {
|
|
616
617
|
if (result?.spaceKey) {
|
|
617
618
|
await Promise.all([
|
|
@@ -646,7 +647,7 @@ var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
|
|
|
646
647
|
if (!space) {
|
|
647
648
|
log.warn("Space not found", result?.spaceKey, {
|
|
648
649
|
F: __dxlog_file3,
|
|
649
|
-
L:
|
|
650
|
+
L: 57,
|
|
650
651
|
S: void 0,
|
|
651
652
|
C: (f, a) => f(...a)
|
|
652
653
|
});
|
|
@@ -689,7 +690,11 @@ var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
|
|
|
689
690
|
client,
|
|
690
691
|
graph
|
|
691
692
|
]);
|
|
692
|
-
return /* @__PURE__ */ React10.createElement(Dialog3.Content, null, /* @__PURE__ */ React10.createElement(
|
|
693
|
+
return /* @__PURE__ */ React10.createElement(Dialog3.Content, null, /* @__PURE__ */ React10.createElement(Dialog3.Title, {
|
|
694
|
+
classNames: "sr-only"
|
|
695
|
+
}, t("join space label", {
|
|
696
|
+
ns: "os"
|
|
697
|
+
})), /* @__PURE__ */ React10.createElement(JoinPanel, {
|
|
693
698
|
...props,
|
|
694
699
|
exitActionParent: /* @__PURE__ */ React10.createElement(Dialog3.Close, {
|
|
695
700
|
asChild: true
|
|
@@ -706,9 +711,9 @@ import { Planet } from "@phosphor-icons/react";
|
|
|
706
711
|
import React11 from "react";
|
|
707
712
|
import { getSpace as getSpace2 } from "@dxos/client/echo";
|
|
708
713
|
import { useClient as useClient4 } from "@dxos/react-client";
|
|
709
|
-
import { DropdownMenu, toLocalizedString as toLocalizedString2, useTranslation as
|
|
714
|
+
import { DropdownMenu, toLocalizedString as toLocalizedString2, useTranslation as useTranslation11 } from "@dxos/react-ui";
|
|
710
715
|
var MenuFooter = ({ object }) => {
|
|
711
|
-
const { t } =
|
|
716
|
+
const { t } = useTranslation11(SPACE_PLUGIN);
|
|
712
717
|
const client = useClient4();
|
|
713
718
|
const space = getSpace2(object);
|
|
714
719
|
const spaceName = space ? getSpaceDisplayName(space, {
|
|
@@ -729,7 +734,7 @@ var MenuFooter = ({ object }) => {
|
|
|
729
734
|
import { ArrowsCounterClockwise, CheckCircle as CheckCircle2, Warning } from "@phosphor-icons/react";
|
|
730
735
|
import React12, { useEffect as useEffect2, useState as useState4 } from "react";
|
|
731
736
|
import { debounce } from "@dxos/async";
|
|
732
|
-
import { Tooltip, useTranslation as
|
|
737
|
+
import { Tooltip, useTranslation as useTranslation12 } from "@dxos/react-ui";
|
|
733
738
|
import { getSize as getSize2, mx as mx4, staticPlaceholderText, warningText } from "@dxos/react-ui-theme";
|
|
734
739
|
var Status;
|
|
735
740
|
(function(Status2) {
|
|
@@ -738,7 +743,7 @@ var Status;
|
|
|
738
743
|
Status2[Status2["ERROR"] = 2] = "ERROR";
|
|
739
744
|
})(Status || (Status = {}));
|
|
740
745
|
var PersistenceStatus = ({ db }) => {
|
|
741
|
-
const { t } =
|
|
746
|
+
const { t } = useTranslation12(SPACE_PLUGIN);
|
|
742
747
|
const [displayMessage, setDisplayMessage] = useState4(false);
|
|
743
748
|
const [status, naturalSetStatus] = useState4(0);
|
|
744
749
|
const [prevStatus, setPrevStatus] = useState4(0);
|
|
@@ -788,20 +793,20 @@ var PersistenceStatus = ({ db }) => {
|
|
|
788
793
|
// packages/plugins/plugin-space/src/components/PopoverAddSpace.tsx
|
|
789
794
|
import React13 from "react";
|
|
790
795
|
import { createIntent as createIntent5, LayoutAction as LayoutAction5, useIntentDispatcher as useIntentDispatcher5 } from "@dxos/app-framework";
|
|
791
|
-
import { IconButton as IconButton3, useTranslation as
|
|
796
|
+
import { IconButton as IconButton3, useTranslation as useTranslation13 } from "@dxos/react-ui";
|
|
792
797
|
var POPOVER_ADD_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
|
|
793
798
|
var PopoverAddSpace = () => {
|
|
794
|
-
const { t } =
|
|
799
|
+
const { t } = useTranslation13(SPACE_PLUGIN);
|
|
795
800
|
const { dispatchPromise: dispatch } = useIntentDispatcher5();
|
|
796
801
|
return /* @__PURE__ */ React13.createElement("div", {
|
|
797
802
|
role: "none",
|
|
798
803
|
className: "grid grid-cols-1 gap-1 [&>button]:justify-start"
|
|
799
804
|
}, /* @__PURE__ */ React13.createElement(IconButton3, {
|
|
800
805
|
variant: "ghost",
|
|
801
|
-
label: t("
|
|
802
|
-
icon: "ph--
|
|
806
|
+
label: t("create space label"),
|
|
807
|
+
icon: "ph--plus--regular",
|
|
803
808
|
onClick: () => {
|
|
804
|
-
void dispatch(createIntent5(SpaceAction.
|
|
809
|
+
void dispatch(createIntent5(SpaceAction.OpenCreateSpace));
|
|
805
810
|
void dispatch(createIntent5(LayoutAction5.UpdatePopover, {
|
|
806
811
|
part: "popover",
|
|
807
812
|
options: {
|
|
@@ -810,13 +815,13 @@ var PopoverAddSpace = () => {
|
|
|
810
815
|
}
|
|
811
816
|
}));
|
|
812
817
|
},
|
|
813
|
-
"data-testid": "spacePlugin.
|
|
818
|
+
"data-testid": "spacePlugin.createSpace"
|
|
814
819
|
}), /* @__PURE__ */ React13.createElement(IconButton3, {
|
|
815
820
|
variant: "ghost",
|
|
816
|
-
label: t("
|
|
817
|
-
icon: "ph--
|
|
821
|
+
label: t("join space label"),
|
|
822
|
+
icon: "ph--sign-in--regular",
|
|
818
823
|
onClick: () => {
|
|
819
|
-
void dispatch(createIntent5(SpaceAction.
|
|
824
|
+
void dispatch(createIntent5(SpaceAction.Join));
|
|
820
825
|
void dispatch(createIntent5(LayoutAction5.UpdatePopover, {
|
|
821
826
|
part: "popover",
|
|
822
827
|
options: {
|
|
@@ -825,18 +830,18 @@ var PopoverAddSpace = () => {
|
|
|
825
830
|
}
|
|
826
831
|
}));
|
|
827
832
|
},
|
|
828
|
-
"data-testid": "spacePlugin.
|
|
833
|
+
"data-testid": "spacePlugin.joinSpace"
|
|
829
834
|
}));
|
|
830
835
|
};
|
|
831
836
|
|
|
832
837
|
// packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx
|
|
833
838
|
import React14, { useCallback as useCallback8, useRef as useRef3, useState as useState5 } from "react";
|
|
834
839
|
import { log as log2 } from "@dxos/log";
|
|
835
|
-
import { Button as Button4, Input as Input2, Popover, useTranslation as
|
|
840
|
+
import { Button as Button4, Input as Input2, Popover, useTranslation as useTranslation14 } from "@dxos/react-ui";
|
|
836
841
|
var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx";
|
|
837
842
|
var POPOVER_RENAME_OBJECT = `${SPACE_PLUGIN}/PopoverRenameObject`;
|
|
838
843
|
var PopoverRenameObject = ({ object: obj }) => {
|
|
839
|
-
const { t } =
|
|
844
|
+
const { t } = useTranslation14(SPACE_PLUGIN);
|
|
840
845
|
const doneButton = useRef3(null);
|
|
841
846
|
const object = obj;
|
|
842
847
|
const [name, setName] = useState5(object.name || object.title || "");
|
|
@@ -888,10 +893,10 @@ var PopoverRenameObject = ({ object: obj }) => {
|
|
|
888
893
|
|
|
889
894
|
// packages/plugins/plugin-space/src/components/PopoverRenameSpace.tsx
|
|
890
895
|
import React15, { useCallback as useCallback9, useRef as useRef4, useState as useState6 } from "react";
|
|
891
|
-
import { Button as Button5, Input as Input3, Popover as Popover2, useTranslation as
|
|
896
|
+
import { Button as Button5, Input as Input3, Popover as Popover2, useTranslation as useTranslation15 } from "@dxos/react-ui";
|
|
892
897
|
var POPOVER_RENAME_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
|
|
893
898
|
var PopoverRenameSpace = ({ space }) => {
|
|
894
|
-
const { t } =
|
|
899
|
+
const { t } = useTranslation15(SPACE_PLUGIN);
|
|
895
900
|
const doneButton = useRef4(null);
|
|
896
901
|
const [name, setName] = useState6(space.properties.name ?? "");
|
|
897
902
|
const handleDone = useCallback9(() => {
|
|
@@ -929,7 +934,7 @@ var PopoverRenameSpace = ({ space }) => {
|
|
|
929
934
|
// packages/plugins/plugin-space/src/components/ShareSpaceButton.tsx
|
|
930
935
|
import React16 from "react";
|
|
931
936
|
import { createIntent as createIntent6, useIntentDispatcher as useIntentDispatcher6 } from "@dxos/app-framework";
|
|
932
|
-
import { IconButton as IconButton4, useTranslation as
|
|
937
|
+
import { IconButton as IconButton4, useTranslation as useTranslation16 } from "@dxos/react-ui";
|
|
933
938
|
var ShareSpaceButton = ({ space }) => {
|
|
934
939
|
const { dispatchPromise: dispatch } = useIntentDispatcher6();
|
|
935
940
|
return /* @__PURE__ */ React16.createElement(ShareSpaceButtonImpl, {
|
|
@@ -939,7 +944,7 @@ var ShareSpaceButton = ({ space }) => {
|
|
|
939
944
|
});
|
|
940
945
|
};
|
|
941
946
|
var ShareSpaceButtonImpl = ({ onClick }) => {
|
|
942
|
-
const { t } =
|
|
947
|
+
const { t } = useTranslation16(SPACE_PLUGIN);
|
|
943
948
|
return /* @__PURE__ */ React16.createElement(IconButton4, {
|
|
944
949
|
"data-testid": "spacePlugin.shareSpaceButton",
|
|
945
950
|
icon: "ph--users--regular",
|
|
@@ -955,7 +960,7 @@ import { generateName } from "@dxos/display-name";
|
|
|
955
960
|
import { PublicKey, useClient as useClient5 } from "@dxos/react-client";
|
|
956
961
|
import { getSpace as getSpace3, useMembers, fullyQualifiedId as fullyQualifiedId2 } from "@dxos/react-client/echo";
|
|
957
962
|
import { useIdentity } from "@dxos/react-client/halo";
|
|
958
|
-
import { Avatar, AvatarGroup, AvatarGroupItem, Tooltip as Tooltip2, useTranslation as
|
|
963
|
+
import { Avatar, AvatarGroup, AvatarGroupItem, Tooltip as Tooltip2, useTranslation as useTranslation17, List as List2, ListItem as ListItem2, useDefaultValue } from "@dxos/react-ui";
|
|
959
964
|
import { AttentionGlyph, useAttended, useAttention } from "@dxos/react-ui-attention";
|
|
960
965
|
import { ComplexMap, keyToFallback } from "@dxos/util";
|
|
961
966
|
|
|
@@ -1129,7 +1134,7 @@ var SmallPresenceLive = ({ id, open, viewers }) => {
|
|
|
1129
1134
|
});
|
|
1130
1135
|
};
|
|
1131
1136
|
var SmallPresence = ({ count = 0, attended, containsAttended }) => {
|
|
1132
|
-
const { t } =
|
|
1137
|
+
const { t } = useTranslation17(SPACE_PLUGIN);
|
|
1133
1138
|
return /* @__PURE__ */ React17.createElement(Tooltip2.Root, null, /* @__PURE__ */ React17.createElement(Tooltip2.Trigger, {
|
|
1134
1139
|
asChild: true
|
|
1135
1140
|
}, /* @__PURE__ */ React17.createElement(AttentionGlyph, {
|
|
@@ -1146,10 +1151,10 @@ var SmallPresence = ({ count = 0, attended, containsAttended }) => {
|
|
|
1146
1151
|
|
|
1147
1152
|
// packages/plugins/plugin-space/src/components/SpacePluginSettings.tsx
|
|
1148
1153
|
import React18 from "react";
|
|
1149
|
-
import { Input as Input4, useTranslation as
|
|
1154
|
+
import { Input as Input4, useTranslation as useTranslation18 } from "@dxos/react-ui";
|
|
1150
1155
|
import { DeprecatedFormContainer, DeprecatedFormInput } from "@dxos/react-ui-form";
|
|
1151
1156
|
var SpacePluginSettings = ({ settings }) => {
|
|
1152
|
-
const { t } =
|
|
1157
|
+
const { t } = useTranslation18(SPACE_PLUGIN);
|
|
1153
1158
|
return /* @__PURE__ */ React18.createElement(DeprecatedFormContainer, null, /* @__PURE__ */ React18.createElement(DeprecatedFormInput, {
|
|
1154
1159
|
label: t("show hidden spaces label")
|
|
1155
1160
|
}, /* @__PURE__ */ React18.createElement(Input4.Switch, {
|
|
@@ -1163,12 +1168,12 @@ import React19, { useCallback as useCallback11, useState as useState9 } from "re
|
|
|
1163
1168
|
import { log as log3 } from "@dxos/log";
|
|
1164
1169
|
import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
|
|
1165
1170
|
import { useClient as useClient6 } from "@dxos/react-client";
|
|
1166
|
-
import { Input as Input5, Toolbar, useTranslation as
|
|
1171
|
+
import { Input as Input5, Toolbar, useTranslation as useTranslation19 } from "@dxos/react-ui";
|
|
1167
1172
|
import { DeprecatedFormContainer as DeprecatedFormContainer2, DeprecatedFormInput as DeprecatedFormInput2 } from "@dxos/react-ui-form";
|
|
1168
1173
|
import { HuePicker, IconPicker } from "@dxos/react-ui-pickers";
|
|
1169
1174
|
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsPanel.tsx";
|
|
1170
1175
|
var SpaceSettingsPanel = ({ space }) => {
|
|
1171
|
-
const { t } =
|
|
1176
|
+
const { t } = useTranslation19(SPACE_PLUGIN);
|
|
1172
1177
|
const client = useClient6();
|
|
1173
1178
|
const edgeEnabled = Boolean(client.config.values.runtime?.client?.edgeFeatures?.echoReplicator);
|
|
1174
1179
|
const [edgeReplication, setEdgeReplication] = useState9(space.internal.data.edgeReplication === EdgeReplicationSetting.ENABLED);
|
|
@@ -1222,12 +1227,12 @@ var SpaceSettingsPanel = ({ space }) => {
|
|
|
1222
1227
|
import React20, { useMemo, useState as useState10 } from "react";
|
|
1223
1228
|
import { Surface as Surface2, useCapabilities as useCapabilities2 } from "@dxos/app-framework";
|
|
1224
1229
|
import { useClient as useClient7 } from "@dxos/react-client";
|
|
1225
|
-
import { Button as Button6, Clipboard, Dialog as Dialog4, Icon as Icon4, toLocalizedString as toLocalizedString3, useTranslation as
|
|
1230
|
+
import { Button as Button6, Clipboard, Dialog as Dialog4, Icon as Icon4, toLocalizedString as toLocalizedString3, useTranslation as useTranslation20 } from "@dxos/react-ui";
|
|
1226
1231
|
import { Tabs } from "@dxos/react-ui-tabs";
|
|
1227
1232
|
import { SpacePanel } from "@dxos/shell/react";
|
|
1228
1233
|
var SPACE_SETTINGS_DIALOG = `${SPACE_PLUGIN}/SpaceSettingsDialog`;
|
|
1229
1234
|
var SpaceSettingsDialog = ({ space, target, createInvitationUrl, initialTab = "members", namesCache }) => {
|
|
1230
|
-
const { t } =
|
|
1235
|
+
const { t } = useTranslation20(SPACE_PLUGIN);
|
|
1231
1236
|
const client = useClient7();
|
|
1232
1237
|
const [tabsActivePart, setTabsActivePart] = useState10("list");
|
|
1233
1238
|
const [selected, setSelected] = useState10(initialTab);
|
|
@@ -1327,7 +1332,7 @@ import { useAppGraph as useAppGraph3 } from "@dxos/app-framework";
|
|
|
1327
1332
|
import { QueryEdgeStatusResponse } from "@dxos/protocols/proto/dxos/client/services";
|
|
1328
1333
|
import { EdgeReplicationSetting as EdgeReplicationSetting2 } from "@dxos/protocols/proto/dxos/echo/metadata";
|
|
1329
1334
|
import { useClient as useClient9 } from "@dxos/react-client";
|
|
1330
|
-
import { Tooltip as Tooltip3, useTranslation as
|
|
1335
|
+
import { Tooltip as Tooltip3, useTranslation as useTranslation21 } from "@dxos/react-ui";
|
|
1331
1336
|
import { AttentionGlyph as AttentionGlyph2, useAttended as useAttended2, useAttention as useAttention2 } from "@dxos/react-ui-attention";
|
|
1332
1337
|
|
|
1333
1338
|
// packages/plugins/plugin-space/src/components/SyncStatus/sync-state.ts
|
|
@@ -1426,7 +1431,7 @@ var useEdgeStatus = () => {
|
|
|
1426
1431
|
return status;
|
|
1427
1432
|
};
|
|
1428
1433
|
var InlineSyncStatus = ({ space, open }) => {
|
|
1429
|
-
const { t } =
|
|
1434
|
+
const { t } = useTranslation21(SPACE_PLUGIN);
|
|
1430
1435
|
const id = space.id;
|
|
1431
1436
|
const { hasAttention, isAncestor, isRelated } = useAttention2(id);
|
|
1432
1437
|
const isAttended = hasAttention || isAncestor || isRelated;
|
|
@@ -1456,7 +1461,7 @@ var InlineSyncStatus = ({ space, open }) => {
|
|
|
1456
1461
|
import React23, { useCallback as useCallback12, useEffect as useEffect8, useState as useState14 } from "react";
|
|
1457
1462
|
import { StatusBar } from "@dxos/plugin-status-bar";
|
|
1458
1463
|
import { useClient as useClient11 } from "@dxos/react-client";
|
|
1459
|
-
import { Icon as Icon6, Input as Input6, Popover as Popover3, useTranslation as
|
|
1464
|
+
import { Icon as Icon6, Input as Input6, Popover as Popover3, useTranslation as useTranslation23 } from "@dxos/react-ui";
|
|
1460
1465
|
import { SyntaxHighlighter } from "@dxos/react-ui-syntax-highlighter";
|
|
1461
1466
|
import { mx as mx6 } from "@dxos/react-ui-theme";
|
|
1462
1467
|
|
|
@@ -1464,7 +1469,7 @@ import { mx as mx6 } from "@dxos/react-ui-theme";
|
|
|
1464
1469
|
import React22, { useEffect as useEffect7, useState as useState13 } from "react";
|
|
1465
1470
|
import { useClient as useClient10 } from "@dxos/react-client";
|
|
1466
1471
|
import { useSpace } from "@dxos/react-client/echo";
|
|
1467
|
-
import { Icon as Icon5, toLocalizedString as toLocalizedString4, useTranslation as
|
|
1472
|
+
import { Icon as Icon5, toLocalizedString as toLocalizedString4, useTranslation as useTranslation22 } from "@dxos/react-ui";
|
|
1468
1473
|
import { mx as mx5 } from "@dxos/react-ui-theme";
|
|
1469
1474
|
var SYNC_STALLED_TIMEOUT = 5e3;
|
|
1470
1475
|
var styles = {
|
|
@@ -1496,7 +1501,7 @@ var useActive = (count) => {
|
|
|
1496
1501
|
return active;
|
|
1497
1502
|
};
|
|
1498
1503
|
var SpaceRowContainer = ({ spaceId, state }) => {
|
|
1499
|
-
const { t } =
|
|
1504
|
+
const { t } = useTranslation22(SPACE_PLUGIN);
|
|
1500
1505
|
const client = useClient10();
|
|
1501
1506
|
const space = useSpace(spaceId);
|
|
1502
1507
|
if (!space) {
|
|
@@ -1678,7 +1683,7 @@ var SyncStatus = () => {
|
|
|
1678
1683
|
});
|
|
1679
1684
|
};
|
|
1680
1685
|
var SyncStatusIndicator = ({ state, saved }) => {
|
|
1681
|
-
const { t } =
|
|
1686
|
+
const { t } = useTranslation23(SPACE_PLUGIN);
|
|
1682
1687
|
const summary = getSyncSummary(state);
|
|
1683
1688
|
const offline = Object.values(state).length === 0;
|
|
1684
1689
|
const needsToUpload = summary.differentDocuments > 0 || summary.missingOnRemote > 0;
|
|
@@ -1728,7 +1733,7 @@ var SyncStatusIndicator = ({ state, saved }) => {
|
|
|
1728
1733
|
};
|
|
1729
1734
|
var SyncStatusDetail = ({ classNames, state, summary, debug }) => {
|
|
1730
1735
|
const [showAll, setShowAll] = useState14(false);
|
|
1731
|
-
const { t } =
|
|
1736
|
+
const { t } = useTranslation23(SPACE_PLUGIN);
|
|
1732
1737
|
const entries = Object.entries(state).filter(([_, value]) => showAll || value.missingOnLocal + value.missingOnRemote > 0).toSorted(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
|
1733
1738
|
const handleCheckedChange = useCallback12((state2) => setShowAll(state2), [
|
|
1734
1739
|
setShowAll
|
|
@@ -1806,4 +1811,4 @@ export {
|
|
|
1806
1811
|
SpaceState,
|
|
1807
1812
|
SpacesReady
|
|
1808
1813
|
};
|
|
1809
|
-
//# sourceMappingURL=chunk-
|
|
1814
|
+
//# sourceMappingURL=chunk-PCEP3KQY.mjs.map
|