@dxos/shell 0.5.2-main.2408cc7 → 0.5.2-main.41b4fdd
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 +2719 -2705
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +47 -47
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +20 -8
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.js +11 -3
- package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +13 -78
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js +28 -45
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanelProps.d.ts +4 -0
- package/dist/types/src/panels/JoinPanel/JoinPanelProps.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/joinMachine.d.ts +1 -0
- package/dist/types/src/panels/JoinPanel/joinMachine.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/joinMachine.js +4 -3
- package/dist/types/src/panels/JoinPanel/joinMachine.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js +6 -3
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js.map +1 -1
- package/dist/types/src/panels/Panels.stories.d.ts +3 -0
- package/dist/types/src/panels/Panels.stories.d.ts.map +1 -1
- package/dist/types/src/panels/Panels.stories.js +2 -1
- package/dist/types/src/panels/Panels.stories.js.map +1 -1
- package/dist/types/src/steps/InvitationManager.js +1 -1
- package/dist/types/src/steps/InvitationManager.js.map +1 -1
- package/dist/types/src/translations/locales/en-US.d.ts +1 -0
- package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
- package/dist/types/src/translations/locales/en-US.js +1 -0
- package/dist/types/src/translations/locales/en-US.js.map +1 -1
- package/package.json +21 -21
- package/src/panels/JoinPanel/JoinPanel.stories.tsx +16 -44
- package/src/panels/JoinPanel/JoinPanel.tsx +12 -0
- package/src/panels/JoinPanel/JoinPanelProps.ts +4 -0
- package/src/panels/JoinPanel/joinMachine.ts +1 -1
- package/src/panels/JoinPanel/steps/InvitationAuthenticator.tsx +11 -3
- package/src/panels/Panels.stories.tsx +2 -1
- package/src/steps/InvitationManager.tsx +1 -1
- package/src/translations/locales/en-US.ts +1 -0
|
@@ -1572,7 +1572,7 @@ var InvitationManager = ({ invitationUrl, active, send, status, multiUse, authCo
|
|
|
1572
1572
|
code: authCode,
|
|
1573
1573
|
large: true,
|
|
1574
1574
|
classNames: "text-black dark:text-white"
|
|
1575
|
-
}), /* @__PURE__ */ React27.createElement(Label, null, "
|
|
1575
|
+
}), /* @__PURE__ */ React27.createElement(Label, null, t("auth other device emoji message")), emoji && /* @__PURE__ */ React27.createElement(Emoji, {
|
|
1576
1576
|
text: emoji
|
|
1577
1577
|
})), /* @__PURE__ */ React27.createElement(InvitationManagerView, {
|
|
1578
1578
|
id: "showing final"
|
|
@@ -2905,10 +2905,8 @@ var InvitationAuthenticator = ({ failed, Kind, active, pending, invitationId, on
|
|
|
2905
2905
|
};
|
|
2906
2906
|
return /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement("div", {
|
|
2907
2907
|
role: "none",
|
|
2908
|
-
className: "grow flex flex-col justify-center"
|
|
2909
|
-
},
|
|
2910
|
-
text: hexToEmoji5(invitationId)
|
|
2911
|
-
}), /* @__PURE__ */ React37.createElement(Input3.Root, failed && {
|
|
2908
|
+
className: "grow flex flex-col justify-center gap-4"
|
|
2909
|
+
}, /* @__PURE__ */ React37.createElement(Input3.Root, failed && {
|
|
2912
2910
|
validationValence: "error"
|
|
2913
2911
|
}, /* @__PURE__ */ React37.createElement(Input3.Label, {
|
|
2914
2912
|
asChild: true
|
|
@@ -2925,7 +2923,11 @@ var InvitationAuthenticator = ({ failed, Kind, active, pending, invitationId, on
|
|
|
2925
2923
|
"data-1p-ignore": true
|
|
2926
2924
|
}), failed && /* @__PURE__ */ React37.createElement(Input3.DescriptionAndValidation, {
|
|
2927
2925
|
classNames: "text-center"
|
|
2928
|
-
}, /* @__PURE__ */ React37.createElement(Input3.Validation, null, t("failed to authenticate message"))))
|
|
2926
|
+
}, /* @__PURE__ */ React37.createElement(Input3.Validation, null, t("failed to authenticate message")))), invitationId && /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement(Label, null, t("auth other device emoji message")), /* @__PURE__ */ React37.createElement("div", {
|
|
2927
|
+
className: "flex justify-center"
|
|
2928
|
+
}, /* @__PURE__ */ React37.createElement(Emoji, {
|
|
2929
|
+
text: hexToEmoji5(invitationId)
|
|
2930
|
+
})))), /* @__PURE__ */ React37.createElement(Actions, null, /* @__PURE__ */ React37.createElement(Action, {
|
|
2929
2931
|
variant: "ghost",
|
|
2930
2932
|
disabled,
|
|
2931
2933
|
onClick: () => onInvitationCancel?.(),
|
|
@@ -2966,7 +2968,7 @@ var resolvedTextColor = (status) => status === Invitation6.State.ERROR ? errorTe
|
|
|
2966
2968
|
// packages/sdk/shell/src/panels/JoinPanel/JoinPanel.tsx
|
|
2967
2969
|
var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/JoinPanel.tsx";
|
|
2968
2970
|
var JoinPanelImpl = (props) => {
|
|
2969
|
-
const { titleId, send, activeView, failed, mode, unredeemedCodes, invitationStates, succeededKeys, failReasons, onExit, onHaloDone, onSpaceDone, exitActionParent, doneActionParent, onHaloInvitationCancel, onSpaceInvitationCancel, onHaloInvitationAuthenticate, onSpaceInvitationAuthenticate, onCancelResetStorage, onConfirmResetStorage, IdentityInput: IdentityInputComponent = IdentityInput, ConfirmReset: ConfirmResetComponent = ConfirmReset } = props;
|
|
2971
|
+
const { titleId, send, activeView, failed, mode, unredeemedCodes, invitationIds, invitationStates, succeededKeys, failReasons, onExit, onHaloDone, onSpaceDone, exitActionParent, doneActionParent, onHaloInvitationCancel, onSpaceInvitationCancel, onHaloInvitationAuthenticate, onSpaceInvitationAuthenticate, onCancelResetStorage, onConfirmResetStorage, IdentityInput: IdentityInputComponent = IdentityInput, ConfirmReset: ConfirmResetComponent = ConfirmReset } = props;
|
|
2970
2972
|
return /* @__PURE__ */ React38.createElement(DensityProvider2, {
|
|
2971
2973
|
density: "fine"
|
|
2972
2974
|
}, mode !== "halo-only" && /* @__PURE__ */ React38.createElement(JoinHeading, {
|
|
@@ -3034,6 +3036,7 @@ var JoinPanelImpl = (props) => {
|
|
|
3034
3036
|
}, /* @__PURE__ */ React38.createElement(InvitationAuthenticator, {
|
|
3035
3037
|
send,
|
|
3036
3038
|
Kind: "Halo",
|
|
3039
|
+
invitationId: invitationIds?.Halo,
|
|
3037
3040
|
active: activeView === "halo invitation authenticator",
|
|
3038
3041
|
onInvitationCancel: onHaloInvitationCancel,
|
|
3039
3042
|
onInvitationAuthenticate: onHaloInvitationAuthenticate,
|
|
@@ -3089,6 +3092,7 @@ var JoinPanelImpl = (props) => {
|
|
|
3089
3092
|
}, /* @__PURE__ */ React38.createElement(InvitationAuthenticator, {
|
|
3090
3093
|
send,
|
|
3091
3094
|
Kind: "Space",
|
|
3095
|
+
invitationId: invitationIds?.Space,
|
|
3092
3096
|
active: activeView === "space invitation authenticator",
|
|
3093
3097
|
onInvitationCancel: onSpaceInvitationCancel,
|
|
3094
3098
|
onInvitationAuthenticate: onSpaceInvitationAuthenticate,
|
|
@@ -3127,7 +3131,7 @@ var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialDisposition =
|
|
|
3127
3131
|
const subscription = joinService.subscribe((state) => {
|
|
3128
3132
|
log10("[state]", state, {
|
|
3129
3133
|
F: __dxlog_file9,
|
|
3130
|
-
L:
|
|
3134
|
+
L: 207,
|
|
3131
3135
|
S: void 0,
|
|
3132
3136
|
C: (f, a) => f(...a)
|
|
3133
3137
|
});
|
|
@@ -3311,6 +3315,12 @@ var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialDisposition =
|
|
|
3311
3315
|
}), [
|
|
3312
3316
|
joinState
|
|
3313
3317
|
]);
|
|
3318
|
+
const invitationIds = useMemo4(() => ({
|
|
3319
|
+
Halo: joinState.context.halo.invitationObservable?.get().invitationId,
|
|
3320
|
+
Space: joinState.context.space.invitationObservable?.get().invitationId
|
|
3321
|
+
}), [
|
|
3322
|
+
joinState
|
|
3323
|
+
]);
|
|
3314
3324
|
const failReasons = useMemo4(() => ({
|
|
3315
3325
|
Halo: joinState.context.halo.failReason,
|
|
3316
3326
|
Space: joinState.context.space.failReason
|
|
@@ -3359,6 +3369,7 @@ var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialDisposition =
|
|
|
3359
3369
|
"authenticating"
|
|
3360
3370
|
].some((str) => joinState?.configuration[0].id.includes(str)),
|
|
3361
3371
|
unredeemedCodes,
|
|
3372
|
+
invitationIds,
|
|
3362
3373
|
invitationStates,
|
|
3363
3374
|
succeededKeys,
|
|
3364
3375
|
identity,
|
|
@@ -4037,6 +4048,7 @@ var os = {
|
|
|
4037
4048
|
"space member list heading": "Members",
|
|
4038
4049
|
"space panel heading": "Space membership",
|
|
4039
4050
|
"auth code message": "Enter the following auth code on the joining device.",
|
|
4051
|
+
"auth other device emoji message": "Be sure the other device shows the following symbol:",
|
|
4040
4052
|
"display name input label": "Display name",
|
|
4041
4053
|
"display name input placeholder": "Enter a display name",
|
|
4042
4054
|
"invite one label": "Single-use invitation",
|