@dxos/shell 0.6.14-main.f49f251 → 0.6.14-staging.54a8bab
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/bundle/shell.mjs +1335 -1325
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +28 -28
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/bundle/style.css +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +11 -8
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/lib/browser/testing/index.mjs +1 -39
- package/dist/lib/browser/testing/index.mjs.map +4 -4
- package/dist/lib/node/chunk-Q7SFCCGT.cjs +33 -0
- package/dist/lib/node/chunk-Q7SFCCGT.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -0
- package/dist/lib/node/react.cjs +4766 -0
- package/dist/lib/node/react.cjs.map +7 -0
- package/dist/lib/node/react.css +7 -0
- package/dist/lib/node/react.css.map +7 -0
- package/dist/lib/node/testing/index.cjs +181 -0
- package/dist/lib/node/testing/index.cjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/lib/node-esm/react.css +7 -0
- package/dist/lib/node-esm/react.css.map +7 -0
- package/dist/lib/node-esm/react.mjs +4812 -0
- package/dist/lib/node-esm/react.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +161 -0
- package/dist/lib/node-esm/testing/index.mjs.map +7 -0
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js +2 -2
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.js +10 -10
- package/dist/types/src/components/InvitationList/InvitationList.stories.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +13 -6
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts +1 -0
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js +5 -0
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +15 -15
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js.map +1 -1
- package/dist/types/src/playwright/invitations-manager.d.ts +1 -2
- package/dist/types/src/playwright/invitations-manager.d.ts.map +1 -1
- package/dist/types/src/playwright/invitations-manager.js +2 -3
- package/dist/types/src/playwright/invitations-manager.js.map +1 -1
- package/dist/types/src/playwright/invitations.spec.js +13 -9
- package/dist/types/src/playwright/invitations.spec.js.map +1 -1
- package/dist/types/src/testing/index.d.ts +0 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/index.js +1 -1
- package/dist/types/src/testing/index.js.map +1 -1
- package/package.json +38 -27
- package/src/components/IdentityList/SpaceMemberList.stories.tsx +1 -1
- package/src/components/InvitationList/InvitationList.stories.tsx +1 -1
- package/src/panels/IdentityPanel/IdentityPanel.tsx +13 -3
- package/src/panels/IdentityPanel/IdentityPanelProps.ts +1 -0
- package/src/panels/IdentityPanel/steps/IdentityActionChooser.tsx +1 -1
- package/src/panels/IdentityPanel/useEdgeAgentsHandlers.ts +7 -0
- package/src/panels/SpacePanel/SpacePanel.stories.tsx +1 -1
- package/src/playwright/invitations-manager.ts +2 -3
- package/src/playwright/invitations.spec.ts +14 -9
- package/src/testing/index.ts +2 -1
|
@@ -1429,7 +1429,7 @@ var IdentityActionChooserImpl = ({ devices, connectionState, agentHostingEnabled
|
|
|
1429
1429
|
connectionState,
|
|
1430
1430
|
onClickAdd,
|
|
1431
1431
|
onClickJoinExisting,
|
|
1432
|
-
onClickRecover,
|
|
1432
|
+
onClickRecover: agentProps.agentStatus === "created" ? onClickRecover : void 0,
|
|
1433
1433
|
onClickReset,
|
|
1434
1434
|
onAgentDestroy: agentProps.onAgentDestroy
|
|
1435
1435
|
}), !managedDeviceAvailable && agentHostingEnabled && /* @__PURE__ */ React25.createElement(AgentConfig, agentProps));
|
|
@@ -1448,6 +1448,7 @@ import { useClient as useClient5 } from "@dxos/react-client";
|
|
|
1448
1448
|
import { useEffect as useEffect2, useState as useState6 } from "react";
|
|
1449
1449
|
import { invariant } from "@dxos/invariant";
|
|
1450
1450
|
import { QueryAgentStatusResponse } from "@dxos/protocols/proto/dxos/client/services";
|
|
1451
|
+
import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
|
|
1451
1452
|
import { useClient as useClient3 } from "@dxos/react-client";
|
|
1452
1453
|
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/IdentityPanel/useEdgeAgentsHandlers.ts";
|
|
1453
1454
|
var useEdgeAgentHandlers = ({ identity }) => {
|
|
@@ -1484,7 +1485,7 @@ var useEdgeAgentHandlers = ({ identity }) => {
|
|
|
1484
1485
|
const onAgentCreate = async () => {
|
|
1485
1486
|
invariant(identity, "Identity not found", {
|
|
1486
1487
|
F: __dxlog_file3,
|
|
1487
|
-
L:
|
|
1488
|
+
L: 58,
|
|
1488
1489
|
S: void 0,
|
|
1489
1490
|
A: [
|
|
1490
1491
|
"identity",
|
|
@@ -1506,6 +1507,7 @@ var useEdgeAgentHandlers = ({ identity }) => {
|
|
|
1506
1507
|
setValidationMessage("");
|
|
1507
1508
|
try {
|
|
1508
1509
|
await service.createAgent();
|
|
1510
|
+
await Promise.all(client.spaces.get().map((space) => space?.internal.setEdgeReplicationPreference(EdgeReplicationSetting.ENABLED)));
|
|
1509
1511
|
setAgentStatus("created");
|
|
1510
1512
|
} catch (err) {
|
|
1511
1513
|
setAgentStatus("error");
|
|
@@ -1870,7 +1872,7 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/I
|
|
|
1870
1872
|
var viewStyles = "pbs-1 pbe-3 pli-3";
|
|
1871
1873
|
var getHueValue = (identity) => identity?.profile?.data?.hue || hexToHue2(identity?.identityKey.toHex() ?? "0");
|
|
1872
1874
|
var getEmojiValue = (identity) => identity?.profile?.data?.emoji || hexToEmoji4(identity?.identityKey.toHex() ?? "0");
|
|
1873
|
-
var IdentityHeading = ({ titleId, title, identity, onDone, onUpdateProfile, connectionState, onChangeConnectionState }) => {
|
|
1875
|
+
var IdentityHeading = ({ titleId, title, identity, hideRecover, onDone, onUpdateProfile, connectionState, onChangeConnectionState }) => {
|
|
1874
1876
|
const client = useClient6();
|
|
1875
1877
|
const fallbackValue = keyToFallback3(identity.identityKey);
|
|
1876
1878
|
const { t } = useTranslation14("os");
|
|
@@ -1903,7 +1905,7 @@ var IdentityHeading = ({ titleId, title, identity, onDone, onUpdateProfile, conn
|
|
|
1903
1905
|
const handleRecoveryCode = async () => {
|
|
1904
1906
|
invariant3(client.services.services.IdentityService, "IdentityService not available", {
|
|
1905
1907
|
F: __dxlog_file6,
|
|
1906
|
-
L:
|
|
1908
|
+
L: 77,
|
|
1907
1909
|
S: void 0,
|
|
1908
1910
|
A: [
|
|
1909
1911
|
"client.services.services.IdentityService",
|
|
@@ -1914,7 +1916,6 @@ var IdentityHeading = ({ titleId, title, identity, onDone, onUpdateProfile, conn
|
|
|
1914
1916
|
void setTextValue(seedphrase);
|
|
1915
1917
|
};
|
|
1916
1918
|
const isConnected = connectionState === ConnectionState2.ONLINE;
|
|
1917
|
-
const isProduction = client.config.values.runtime?.app?.env?.DX_ENVIRONMENT === "production";
|
|
1918
1919
|
return /* @__PURE__ */ React29.createElement(Heading, {
|
|
1919
1920
|
titleId,
|
|
1920
1921
|
title,
|
|
@@ -1971,7 +1972,7 @@ var IdentityHeading = ({ titleId, title, identity, onDone, onUpdateProfile, conn
|
|
|
1971
1972
|
}))), /* @__PURE__ */ React29.createElement(Tooltip7.Portal, null, /* @__PURE__ */ React29.createElement(Tooltip7.Content, {
|
|
1972
1973
|
side: "bottom",
|
|
1973
1974
|
classNames: "z-50"
|
|
1974
|
-
}, t(publicKeyCopied ? "copy success label" : "copy self public key label"), /* @__PURE__ */ React29.createElement(Tooltip7.Arrow, null)))), !
|
|
1975
|
+
}, t(publicKeyCopied ? "copy success label" : "copy self public key label"), /* @__PURE__ */ React29.createElement(Tooltip7.Arrow, null)))), !hideRecover && /* @__PURE__ */ React29.createElement(Tooltip7.Root, null, /* @__PURE__ */ React29.createElement(Tooltip7.Trigger, {
|
|
1975
1976
|
asChild: true
|
|
1976
1977
|
}, /* @__PURE__ */ React29.createElement(Toolbar3.Button, {
|
|
1977
1978
|
classNames: "bs-[--rail-action]",
|
|
@@ -2015,10 +2016,12 @@ var IdentityPanelImpl = (props) => {
|
|
|
2015
2016
|
t
|
|
2016
2017
|
]);
|
|
2017
2018
|
const onCancelReset = () => rest.send?.("unchooseAction");
|
|
2019
|
+
const hideRecover = rest.agentStatus !== "created";
|
|
2018
2020
|
return /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(IdentityHeading, {
|
|
2019
2021
|
identity,
|
|
2020
2022
|
titleId,
|
|
2021
2023
|
title,
|
|
2024
|
+
hideRecover,
|
|
2022
2025
|
onDone,
|
|
2023
2026
|
onUpdateProfile,
|
|
2024
2027
|
connectionState,
|
|
@@ -2088,7 +2091,7 @@ var IdentityPanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => co
|
|
|
2088
2091
|
if (!identity) {
|
|
2089
2092
|
log6.error("IdentityPanel rendered with no active identity.", void 0, {
|
|
2090
2093
|
F: __dxlog_file6,
|
|
2091
|
-
L:
|
|
2094
|
+
L: 288,
|
|
2092
2095
|
S: void 0,
|
|
2093
2096
|
C: (f, a) => f(...a)
|
|
2094
2097
|
});
|
|
@@ -2105,7 +2108,7 @@ var IdentityPanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => co
|
|
|
2105
2108
|
const subscription = identityService.subscribe((state) => {
|
|
2106
2109
|
log6("[state]", state, {
|
|
2107
2110
|
F: __dxlog_file6,
|
|
2108
|
-
L:
|
|
2111
|
+
L: 301,
|
|
2109
2112
|
S: void 0,
|
|
2110
2113
|
C: (f, a) => f(...a)
|
|
2111
2114
|
});
|