@dxos/shell 0.4.10-main.a22e148 → 0.4.10-main.b39148d
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 +4057 -4062
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +40 -40
- 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 +14 -22
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js +1 -1
- package/dist/types/src/composites/Shell/Shell.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/SignOutChooser.js +2 -2
- package/dist/types/src/panels/IdentityPanel/steps/SignOutChooser.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.js +4 -5
- package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanelProps.d.ts +0 -2
- package/dist/types/src/panels/JoinPanel/JoinPanelProps.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.d.ts +2 -4
- package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.js +4 -5
- package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.js.map +1 -1
- package/package.json +19 -19
- package/src/composites/Shell/Shell.tsx +0 -1
- package/src/panels/IdentityPanel/steps/SignOutChooser.tsx +9 -2
- package/src/panels/JoinPanel/JoinPanel.tsx +0 -4
- package/src/panels/JoinPanel/JoinPanelProps.ts +0 -2
- package/src/panels/JoinPanel/steps/ResetIdentity.tsx +3 -15
|
@@ -1375,13 +1375,15 @@ var SignOutChooserImpl = ({ disabled, onResetDevice, onJoinNewIdentity, onBack }
|
|
|
1375
1375
|
disabled,
|
|
1376
1376
|
onClick: onBack
|
|
1377
1377
|
}, t("back label")), /* @__PURE__ */ React27.createElement(Action, {
|
|
1378
|
-
variant: "
|
|
1378
|
+
variant: "primary",
|
|
1379
1379
|
"data-testid": "sign-out.join-new-identity",
|
|
1380
|
+
classNames: "!bg-error-500 hover:!bg-error-550",
|
|
1380
1381
|
disabled,
|
|
1381
1382
|
onClick: onJoinNewIdentity
|
|
1382
1383
|
}, t("join new identity label")), /* @__PURE__ */ React27.createElement(Action, {
|
|
1383
|
-
variant: "
|
|
1384
|
+
variant: "primary",
|
|
1384
1385
|
"data-testid": "sign-out.reset-device",
|
|
1386
|
+
classNames: "!bg-error-500 hover:!bg-error-550",
|
|
1385
1387
|
disabled,
|
|
1386
1388
|
onClick: onResetDevice
|
|
1387
1389
|
}, t("reset device label"))));
|
|
@@ -2826,7 +2828,7 @@ import { log as log9 } from "@dxos/log";
|
|
|
2826
2828
|
import { useClient as useClient5 } from "@dxos/react-client";
|
|
2827
2829
|
import { useTranslation as useTranslation24 } from "@dxos/react-ui";
|
|
2828
2830
|
var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/steps/ResetIdentity.tsx";
|
|
2829
|
-
var ResetIdentity = ({ send, active
|
|
2831
|
+
var ResetIdentity = ({ send, active }) => {
|
|
2830
2832
|
const client = useClient5();
|
|
2831
2833
|
const { t } = useTranslation24("os");
|
|
2832
2834
|
const [validationMessage, setValidationMessage] = useState9("");
|
|
@@ -2838,7 +2840,7 @@ var ResetIdentity = ({ send, active, onCancelResetIdentity }) => {
|
|
|
2838
2840
|
}), (error) => {
|
|
2839
2841
|
log9.catch(error, void 0, {
|
|
2840
2842
|
F: __dxlog_file9,
|
|
2841
|
-
L:
|
|
2843
|
+
L: 35,
|
|
2842
2844
|
S: void 0,
|
|
2843
2845
|
C: (f, a) => f(...a)
|
|
2844
2846
|
});
|
|
@@ -2850,11 +2852,10 @@ var ResetIdentity = ({ send, active, onCancelResetIdentity }) => {
|
|
|
2850
2852
|
disabled: !active,
|
|
2851
2853
|
pending,
|
|
2852
2854
|
validationMessage,
|
|
2853
|
-
onConfirm: () => resetIdentity()
|
|
2854
|
-
onCancelResetIdentity
|
|
2855
|
+
onConfirm: () => resetIdentity()
|
|
2855
2856
|
});
|
|
2856
2857
|
};
|
|
2857
|
-
var ResetIdentityImpl = ({ disabled, pending, validationMessage, onConfirm
|
|
2858
|
+
var ResetIdentityImpl = ({ disabled, pending, validationMessage, onConfirm }) => {
|
|
2858
2859
|
const { t } = useTranslation24("os");
|
|
2859
2860
|
const confirmationValue = t("confirmation value");
|
|
2860
2861
|
const [inputValue, setInputValue] = useState9("");
|
|
@@ -2871,12 +2872,8 @@ var ResetIdentityImpl = ({ disabled, pending, validationMessage, onConfirm, onCa
|
|
|
2871
2872
|
placeholder: confirmationValue,
|
|
2872
2873
|
onChange: ({ target: { value } }) => setInputValue(value)
|
|
2873
2874
|
})), /* @__PURE__ */ React38.createElement(Actions, null, /* @__PURE__ */ React38.createElement(Action, {
|
|
2874
|
-
disabled,
|
|
2875
|
-
onClick: () => onCancelResetIdentity?.(),
|
|
2876
|
-
"data-testid": "reset-identity-input-cancel"
|
|
2877
|
-
}, t("cancel label")), /* @__PURE__ */ React38.createElement(Action, {
|
|
2878
2875
|
// TODO(wittjosiah): Probably make this red?
|
|
2879
|
-
variant: "
|
|
2876
|
+
variant: "primary",
|
|
2880
2877
|
disabled: disabled || pending || inputValue !== confirmationValue,
|
|
2881
2878
|
onClick: () => onConfirm?.(),
|
|
2882
2879
|
"data-testid": "reset-identity-input-confirm"
|
|
@@ -2910,7 +2907,7 @@ var resolvedTextColor = (status) => status === Invitation7.State.ERROR ? errorTe
|
|
|
2910
2907
|
// packages/sdk/shell/src/panels/JoinPanel/JoinPanel.tsx
|
|
2911
2908
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/JoinPanel.tsx";
|
|
2912
2909
|
var JoinPanelImpl = (props) => {
|
|
2913
|
-
const { titleId, send, activeView, failed, mode, unredeemedCodes, invitationStates, succeededKeys, failReasons, onExit, onHaloDone, onSpaceDone, exitActionParent, doneActionParent, onHaloInvitationCancel, onSpaceInvitationCancel, onHaloInvitationAuthenticate, onSpaceInvitationAuthenticate,
|
|
2910
|
+
const { titleId, send, activeView, failed, mode, unredeemedCodes, invitationStates, succeededKeys, failReasons, onExit, onHaloDone, onSpaceDone, exitActionParent, doneActionParent, onHaloInvitationCancel, onSpaceInvitationCancel, onHaloInvitationAuthenticate, onSpaceInvitationAuthenticate, IdentityInput: IdentityInputComponent = IdentityInput, ResetIdentity: ResetIdentityComponent = ResetIdentity } = props;
|
|
2914
2911
|
return /* @__PURE__ */ React39.createElement(DensityProvider3, {
|
|
2915
2912
|
density: "fine"
|
|
2916
2913
|
}, mode !== "halo-only" && /* @__PURE__ */ React39.createElement(JoinHeading, {
|
|
@@ -2933,8 +2930,7 @@ var JoinPanelImpl = (props) => {
|
|
|
2933
2930
|
}, /* @__PURE__ */ React39.createElement(ResetIdentityComponent, {
|
|
2934
2931
|
send,
|
|
2935
2932
|
method: "reset identity",
|
|
2936
|
-
active: activeView === "reset identity confirmation"
|
|
2937
|
-
onCancelResetIdentity
|
|
2933
|
+
active: activeView === "reset identity confirmation"
|
|
2938
2934
|
})), /* @__PURE__ */ React39.createElement(Viewport.View, {
|
|
2939
2935
|
classNames: stepStyles,
|
|
2940
2936
|
id: "create identity input"
|
|
@@ -3050,7 +3046,7 @@ var JoinPanelImpl = (props) => {
|
|
|
3050
3046
|
onDone: onSpaceDone
|
|
3051
3047
|
})))));
|
|
3052
3048
|
};
|
|
3053
|
-
var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialInvitationCode, exitActionParent, onExit, doneActionParent, onDone: propsOnDone
|
|
3049
|
+
var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialInvitationCode, exitActionParent, onExit, doneActionParent, onDone: propsOnDone }) => {
|
|
3054
3050
|
const client = useClient6();
|
|
3055
3051
|
const identity = useIdentity2();
|
|
3056
3052
|
const { hasIosKeyboard } = useThemeContext4();
|
|
@@ -3070,7 +3066,7 @@ var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialInvitationCod
|
|
|
3070
3066
|
const subscription = joinService.subscribe((state) => {
|
|
3071
3067
|
log10("[state]", state, {
|
|
3072
3068
|
F: __dxlog_file10,
|
|
3073
|
-
L:
|
|
3069
|
+
L: 198,
|
|
3074
3070
|
S: void 0,
|
|
3075
3071
|
C: (f, a) => f(...a)
|
|
3076
3072
|
});
|
|
@@ -3315,8 +3311,7 @@ var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialInvitationCod
|
|
|
3315
3311
|
type: "authenticateSpaceVerificationCode"
|
|
3316
3312
|
});
|
|
3317
3313
|
return joinState.context.space.invitationObservable?.authenticate(authCode);
|
|
3318
|
-
}
|
|
3319
|
-
onCancelResetIdentity
|
|
3314
|
+
}
|
|
3320
3315
|
});
|
|
3321
3316
|
};
|
|
3322
3317
|
|
|
@@ -3742,9 +3737,6 @@ var Shell = ({ runtime, origin }) => {
|
|
|
3742
3737
|
return /* @__PURE__ */ React45.createElement(JoinDialog, {
|
|
3743
3738
|
mode: "halo-only",
|
|
3744
3739
|
initialInvitationCode: invitationCode,
|
|
3745
|
-
onCancelResetIdentity: () => runtime.setLayout({
|
|
3746
|
-
layout: ShellLayout.IDENTITY
|
|
3747
|
-
}),
|
|
3748
3740
|
onDone: () => {
|
|
3749
3741
|
void runtime.setAppContext({
|
|
3750
3742
|
display: ShellDisplay.NONE
|