@dxos/shell 0.4.10-main.fe71b4c → 0.4.10-next.169e4e3
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/{index-BnojJ-lm.mjs → index-C6Dqr0aO.mjs} +1104 -1097
- package/dist/bundle/index-C6Dqr0aO.mjs.map +1 -0
- package/dist/bundle/{index-BjPIerZ_.mjs → index-Dvri-LiT.mjs} +2 -2
- package/dist/bundle/{index-BjPIerZ_.mjs.map → index-Dvri-LiT.mjs.map} +1 -1
- package/dist/bundle/shell.mjs +1 -1
- package/dist/bundle/shell.umd.js +37 -37
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +11 -9
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/lib/browser/testing/index.mjs +3 -2
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/types/src/components/EmojiPicker.d.ts +1 -2
- package/dist/types/src/components/EmojiPicker.d.ts.map +1 -1
- package/dist/types/src/components/EmojiPicker.js.map +1 -1
- package/dist/types/src/components/HuePicker.d.ts +1 -2
- package/dist/types/src/components/HuePicker.d.ts.map +1 -1
- package/dist/types/src/components/HuePicker.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +9 -4
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/playwright/invitations.spec.js +3 -1
- package/dist/types/src/playwright/invitations.spec.js.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.js +3 -0
- package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
- package/dist/types/src/testing/shell-manager.d.ts.map +1 -1
- package/dist/types/src/testing/shell-manager.js +3 -2
- package/dist/types/src/testing/shell-manager.js.map +1 -1
- package/package.json +21 -21
- package/src/components/EmojiPicker.tsx +2 -2
- package/src/components/HuePicker.tsx +2 -2
- package/src/panels/IdentityPanel/IdentityPanel.tsx +10 -4
- package/src/playwright/invitations.spec.ts +3 -1
- package/src/stories/Invitations.e2e-stories.tsx +3 -0
- package/src/testing/shell-manager.ts +3 -2
- package/dist/bundle/index-BnojJ-lm.mjs.map +0 -1
|
@@ -53,8 +53,8 @@ const IdentityHeading = ({
|
|
|
53
53
|
const fallbackValue = keyToFallback(identity.identityKey);
|
|
54
54
|
const { t } = useTranslation('os');
|
|
55
55
|
const [displayName, setDisplayName] = useState(identity.profile?.displayName ?? '');
|
|
56
|
-
const [emoji,
|
|
57
|
-
const [hue,
|
|
56
|
+
const [emoji, setEmojiDirectly] = useState<string>(getEmojiValue(identity));
|
|
57
|
+
const [hue, setHueDirectly] = useState<string>(getHueValue(identity));
|
|
58
58
|
const { textValue, setTextValue } = useClipboardContext();
|
|
59
59
|
const identityHex = identity.identityKey.toHex();
|
|
60
60
|
const copied = textValue === identityHex;
|
|
@@ -67,9 +67,15 @@ const IdentityHeading = ({
|
|
|
67
67
|
return onUpdateProfile?.(nextProfile);
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
const setEmoji = (nextEmoji: string) => {
|
|
71
|
+
setEmojiDirectly(nextEmoji);
|
|
71
72
|
void handleUpdateProfile();
|
|
72
|
-
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const setHue = (nextHue: string) => {
|
|
76
|
+
setHueDirectly(nextHue);
|
|
77
|
+
void handleUpdateProfile();
|
|
78
|
+
};
|
|
73
79
|
|
|
74
80
|
const isConnected = connectionState === ConnectionState.ONLINE;
|
|
75
81
|
|
|
@@ -15,7 +15,9 @@ test.describe('Invitations', () => {
|
|
|
15
15
|
let manager: InvitationsManager;
|
|
16
16
|
|
|
17
17
|
// TODO(wittjosiah): Storybook takes a bit to be ready for testing against.
|
|
18
|
-
test.beforeAll(async ({ browser }) => {
|
|
18
|
+
test.beforeAll(async ({ browser, browserName }) => {
|
|
19
|
+
// TODO(wittjosiah): Storybook is broken in Safari/Webkit.
|
|
20
|
+
test.skip(browserName === 'webkit');
|
|
19
21
|
test.setTimeout(60_000);
|
|
20
22
|
manager = new InvitationsManager(browser);
|
|
21
23
|
await manager.init();
|
|
@@ -216,6 +216,9 @@ const Invitations = (args: { id: number; count: number }) => {
|
|
|
216
216
|
);
|
|
217
217
|
};
|
|
218
218
|
|
|
219
|
+
// TODO(wittjosiah): This story fails to start in Safari/Webkit.
|
|
220
|
+
// The issue appears to be related to dynamic imports during client initialization.
|
|
221
|
+
// This does not seem to be a problem in other browsers nor in Safari in the app.
|
|
219
222
|
export const Default = {
|
|
220
223
|
render: (args: { id: number }) => (
|
|
221
224
|
<ClipboardProvider>
|
|
@@ -75,7 +75,7 @@ export class ShellManager extends ScopedShellManager {
|
|
|
75
75
|
await this.shell.getByTestId('device-list-item-current.options').click();
|
|
76
76
|
await this.shell.getByTestId('device-list-item-current.join-existing').click();
|
|
77
77
|
await this.shell.getByTestId('join-new-identity.reset-identity-input').fill('CONFIRM');
|
|
78
|
-
await this.shell.getByTestId('join-new-identity.reset-identity-
|
|
78
|
+
await this.shell.getByTestId('join-new-identity.reset-identity-confirm').click();
|
|
79
79
|
await this.inputInvitation('device', invitationCode, this.shell);
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -117,7 +117,8 @@ export class ShellManager extends ScopedShellManager {
|
|
|
117
117
|
|
|
118
118
|
private async _onConsoleMessage(message: ConsoleMessage) {
|
|
119
119
|
try {
|
|
120
|
-
const
|
|
120
|
+
const text = message.text();
|
|
121
|
+
const json = JSON.parse(text.slice(text.indexOf('{')));
|
|
121
122
|
if (json.invitationCode) {
|
|
122
123
|
this._invitationCode.wake(json.invitationCode);
|
|
123
124
|
}
|