@dxos/shell 0.5.1-next.638da00 → 0.5.1-next.65aaa36
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 +2787 -2797
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +50 -50
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +9 -12
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/lib/browser/testing/index.mjs +2 -3
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/types/src/components/DeviceList/DeviceListItem.js +1 -1
- package/dist/types/src/components/DeviceList/DeviceListItem.js.map +1 -1
- package/dist/types/src/steps/ConfirmReset.js +1 -1
- package/dist/types/src/steps/ConfirmReset.js.map +1 -1
- package/dist/types/src/testing/shell-manager.d.ts.map +1 -1
- package/dist/types/src/testing/shell-manager.js +2 -3
- package/dist/types/src/testing/shell-manager.js.map +1 -1
- package/dist/types/src/translations/locales/en-US.d.ts +0 -1
- package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
- package/dist/types/src/translations/locales/en-US.js +4 -5
- package/dist/types/src/translations/locales/en-US.js.map +1 -1
- package/package.json +21 -21
- package/src/components/DeviceList/DeviceListItem.tsx +1 -1
- package/src/steps/ConfirmReset.tsx +1 -1
- package/src/testing/shell-manager.ts +2 -4
- package/src/translations/locales/en-US.ts +4 -5
|
@@ -96,7 +96,6 @@ var ScopedShellManager = class {
|
|
|
96
96
|
|
|
97
97
|
// packages/sdk/shell/src/testing/shell-manager.ts
|
|
98
98
|
import { sleep, Trigger } from "@dxos/async";
|
|
99
|
-
var CONFIRM_INPUT = "RESET";
|
|
100
99
|
var ShellManager = class extends ScopedShellManager {
|
|
101
100
|
// prettier-ignore
|
|
102
101
|
constructor(page, inIFrame = true) {
|
|
@@ -142,13 +141,13 @@ var ShellManager = class extends ScopedShellManager {
|
|
|
142
141
|
this.page.on("dialog", handleDialog);
|
|
143
142
|
await this.shell.getByTestId("device-list-item-current.options").click();
|
|
144
143
|
await this.shell.getByTestId("device-list-item-current.reset").click();
|
|
145
|
-
await this.shell.getByTestId("reset-storage.reset-identity-input").fill(
|
|
144
|
+
await this.shell.getByTestId("reset-storage.reset-identity-input").fill("CONFIRM");
|
|
146
145
|
await this.shell.getByTestId("reset-storage.reset-identity-confirm").click();
|
|
147
146
|
}
|
|
148
147
|
async joinNewIdentity(invitationCode) {
|
|
149
148
|
await this.shell.getByTestId("device-list-item-current.options").click();
|
|
150
149
|
await this.shell.getByTestId("device-list-item-current.join-existing").click();
|
|
151
|
-
await this.shell.getByTestId("join-new-identity.reset-identity-input").fill(
|
|
150
|
+
await this.shell.getByTestId("join-new-identity.reset-identity-input").fill("CONFIRM");
|
|
152
151
|
await this.shell.getByTestId("join-new-identity.reset-identity-confirm").click();
|
|
153
152
|
await this.inputInvitation("device", invitationCode, this.shell);
|
|
154
153
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/testing/fixtures/identities.ts", "../../../../src/testing/fixtures/invitations.ts", "../../../../src/testing/scoped-shell-manager.ts", "../../../../src/testing/shell-manager.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { PublicKey } from '@dxos/react-client';\nimport { SpaceMember } from '@dxos/react-client/echo';\n\nexport const alice: SpaceMember = {\n identity: {\n identityKey: PublicKey.random(),\n profile: {\n displayName: 'Alice',\n },\n },\n presence: SpaceMember.PresenceState.ONLINE,\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { PublicKey } from '@dxos/react-client';\nimport { Invitation, CancellableInvitationObservable } from '@dxos/react-client/invitations';\n\nexport const inviteWithState = (state: Invitation.State) =>\n new CancellableInvitationObservable({\n initialInvitation: {\n state,\n invitationId: Math.random().toString(16).slice(2),\n kind: Invitation.Kind.SPACE,\n authMethod: Invitation.AuthMethod.NONE,\n swarmKey: PublicKey.random(),\n type: Invitation.Type.INTERACTIVE,\n authCode: [Invitation.State.READY_FOR_AUTHENTICATION, Invitation.State.AUTHENTICATING].includes(state)\n ? '123456'\n : '',\n },\n subscriber: () => {},\n onCancel: async () => {},\n });\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type { Locator, Page, FrameLocator } from '@playwright/test';\n\ntype Scope = Locator | FrameLocator | Page;\n\nexport class ScopedShellManager {\n page!: Page;\n\n authenticatorIsVisible(type: 'device' | 'space', scope?: Scope) {\n return (scope || this.page).getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).isVisible();\n }\n\n async invitationFailed(scope?: Scope, timeout = 3000) {\n const peer = scope || this.page;\n try {\n await peer.locator('[data-testid=invitation-rescuer-reset]:not([disabled])').waitFor({ timeout });\n return true;\n } catch {\n return false;\n }\n }\n\n async inputInvitation(type: 'device' | 'space', invitation: string, scope?: Scope) {\n await (scope || this.page).getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-input`).fill(invitation);\n await this.page.keyboard.press('Enter');\n }\n\n async invitationInputContinue(type: 'device' | 'space', scope?: Scope) {\n await (scope || this.page).getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-input-continue`).click();\n }\n\n async cancelInvitation(type: 'device' | 'space', kind: 'host' | 'guest', scope?: Scope) {\n if (kind === 'guest') {\n await (scope || this.page)\n .getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-authenticator-cancel`)\n .click();\n } else {\n await (scope || this.page).getByTestId('cancel-invitation').nth(0).click();\n }\n }\n\n async readyToAuthenticate(type: 'device' | 'space', scope?: Scope, timeout = 3000) {\n const peer = scope || this.page;\n try {\n await peer\n .locator(`[data-testid=${type === 'device' ? 'halo' : 'space'}-auth-code-input]:not([disabled])`)\n .waitFor({ timeout });\n return true;\n } catch {\n return false;\n }\n }\n\n async authenticateInvitation(type: 'device' | 'space', authCode: string, scope?: Scope) {\n const peer = scope || this.page;\n // TODO(wittjosiah): Update ids.\n await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).fill(authCode);\n await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-authenticator-next`).click();\n }\n\n async clearAuthCode(type: 'device' | 'space', scope?: Scope) {\n const peer = scope || this.page;\n await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).fill('');\n await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).focus();\n }\n\n async resetInvitation(scope?: Scope) {\n await (scope || this.page).getByTestId('invitation-rescuer-reset').click();\n }\n\n async doneInvitation(type: 'device' | 'space', scope?: Scope) {\n await (scope || this.page)\n .getByTestId(type === 'device' ? 'halo-invitation-accepted-done' : 'space-invitation-accepted-done')\n .click();\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type { ConsoleMessage, Dialog, Page } from '@playwright/test';\n\nimport { sleep, Trigger } from '@dxos/async';\n\nimport { ScopedShellManager } from './scoped-shell-manager';\n\n// TODO(wittjosiah): Normalize data-testids between snake and camel case.\n\
|
|
5
|
-
"mappings": ";;;AAIA,SAASA,iBAAiB;AAC1B,SAASC,mBAAmB;AAErB,IAAMC,QAAqB;EAChCC,UAAU;IACRC,aAAaC,UAAUC,OAAM;IAC7BC,SAAS;MACPC,aAAa;IACf;EACF;EACAC,UAAUC,YAAYC,cAAcC;AACtC;;;ACXA,SAASC,aAAAA,kBAAiB;AAC1B,SAASC,YAAYC,uCAAuC;AAErD,IAAMC,kBAAkB,CAACC,UAC9B,IAAIC,gCAAgC;EAClCC,mBAAmB;IACjBF;IACAG,cAAcC,KAAKC,OAAM,EAAGC,SAAS,EAAA,EAAIC,MAAM,CAAA;IAC/CC,MAAMC,WAAWC,KAAKC;IACtBC,YAAYH,WAAWI,WAAWC;IAClCC,UAAUC,WAAUX,OAAM;IAC1BY,MAAMR,WAAWS,KAAKC;IACtBC,UAAU;MAACX,WAAWY,MAAMC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R,SAAS,WAAW,SAAS,OAAA,mCAA0C,EAC/FS,QAAQ;QAAEH;MAAQ,CAAA;AACrB,aAAO;IACT,QAAQ;AACN,aAAO;IACT;EACF;EAEA,MAAMe,uBAAuBrB,MAA0BsB,UAAkBrB,OAAe;AACtF,UAAMM,OAAON,SAAS,KAAKC;AAE3B,UAAMK,KAAKJ,YAAY,GAAGH,SAAS,WAAW,SAAS,OAAA,kBAAyB,EAAEY,KAAKU,QAAAA;AACvF,UAAMf,KAAKJ,YAAY,GAAGH,SAAS,WAAW,SAAS,OAAA,gCAAuC,EAAEgB,MAAK;EACvG;EAEA,MAAMO,cAAcvB,MAA0BC,OAAe;AAC3D,UAAMM,OAAON,SAAS,KAAKC;AAC3B,UAAMK,KAAKJ,YAAY,GAAGH,SAAS,WAAW,SAAS,OAAA,kBAAyB,EAAEY,KAAK,EAAA;AACvF,UAAML,KAAKJ,YAAY,GAAGH,SAAS,WAAW,SAAS,OAAA,kBAAyB,EAAEwB,MAAK;EACzF;EAEA,MAAMC,gBAAgBxB,OAAe;AACnC,WAAOA,SAAS,KAAKC,MAAMC,YAAY,0BAAA,EAA4Ba,MAAK;EAC1E;EAEA,MAAMU,eAAe1B,MAA0BC,OAAe;AAC5D,WAAOA,SAAS,KAAKC,MAClBC,YAAYH,SAAS,WAAW,kCAAkC,gCAAA,EAClEgB,MAAK;EACV;AACF;;;ACxEA,SAASW,OAAOC,eAAe;
|
|
6
|
-
"names": ["PublicKey", "SpaceMember", "alice", "identity", "identityKey", "PublicKey", "random", "profile", "displayName", "presence", "SpaceMember", "PresenceState", "ONLINE", "PublicKey", "Invitation", "CancellableInvitationObservable", "inviteWithState", "state", "CancellableInvitationObservable", "initialInvitation", "invitationId", "Math", "random", "toString", "slice", "kind", "Invitation", "Kind", "SPACE", "authMethod", "AuthMethod", "NONE", "swarmKey", "PublicKey", "type", "Type", "INTERACTIVE", "authCode", "State", "READY_FOR_AUTHENTICATION", "AUTHENTICATING", "includes", "subscriber", "onCancel", "ScopedShellManager", "authenticatorIsVisible", "type", "scope", "page", "getByTestId", "isVisible", "invitationFailed", "timeout", "peer", "locator", "waitFor", "inputInvitation", "invitation", "fill", "keyboard", "press", "invitationInputContinue", "click", "cancelInvitation", "kind", "nth", "readyToAuthenticate", "authenticateInvitation", "authCode", "clearAuthCode", "focus", "resetInvitation", "doneInvitation", "sleep", "Trigger", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { PublicKey } from '@dxos/react-client';\nimport { SpaceMember } from '@dxos/react-client/echo';\n\nexport const alice: SpaceMember = {\n identity: {\n identityKey: PublicKey.random(),\n profile: {\n displayName: 'Alice',\n },\n },\n presence: SpaceMember.PresenceState.ONLINE,\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { PublicKey } from '@dxos/react-client';\nimport { Invitation, CancellableInvitationObservable } from '@dxos/react-client/invitations';\n\nexport const inviteWithState = (state: Invitation.State) =>\n new CancellableInvitationObservable({\n initialInvitation: {\n state,\n invitationId: Math.random().toString(16).slice(2),\n kind: Invitation.Kind.SPACE,\n authMethod: Invitation.AuthMethod.NONE,\n swarmKey: PublicKey.random(),\n type: Invitation.Type.INTERACTIVE,\n authCode: [Invitation.State.READY_FOR_AUTHENTICATION, Invitation.State.AUTHENTICATING].includes(state)\n ? '123456'\n : '',\n },\n subscriber: () => {},\n onCancel: async () => {},\n });\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type { Locator, Page, FrameLocator } from '@playwright/test';\n\ntype Scope = Locator | FrameLocator | Page;\n\nexport class ScopedShellManager {\n page!: Page;\n\n authenticatorIsVisible(type: 'device' | 'space', scope?: Scope) {\n return (scope || this.page).getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).isVisible();\n }\n\n async invitationFailed(scope?: Scope, timeout = 3000) {\n const peer = scope || this.page;\n try {\n await peer.locator('[data-testid=invitation-rescuer-reset]:not([disabled])').waitFor({ timeout });\n return true;\n } catch {\n return false;\n }\n }\n\n async inputInvitation(type: 'device' | 'space', invitation: string, scope?: Scope) {\n await (scope || this.page).getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-input`).fill(invitation);\n await this.page.keyboard.press('Enter');\n }\n\n async invitationInputContinue(type: 'device' | 'space', scope?: Scope) {\n await (scope || this.page).getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-input-continue`).click();\n }\n\n async cancelInvitation(type: 'device' | 'space', kind: 'host' | 'guest', scope?: Scope) {\n if (kind === 'guest') {\n await (scope || this.page)\n .getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-authenticator-cancel`)\n .click();\n } else {\n await (scope || this.page).getByTestId('cancel-invitation').nth(0).click();\n }\n }\n\n async readyToAuthenticate(type: 'device' | 'space', scope?: Scope, timeout = 3000) {\n const peer = scope || this.page;\n try {\n await peer\n .locator(`[data-testid=${type === 'device' ? 'halo' : 'space'}-auth-code-input]:not([disabled])`)\n .waitFor({ timeout });\n return true;\n } catch {\n return false;\n }\n }\n\n async authenticateInvitation(type: 'device' | 'space', authCode: string, scope?: Scope) {\n const peer = scope || this.page;\n // TODO(wittjosiah): Update ids.\n await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).fill(authCode);\n await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-authenticator-next`).click();\n }\n\n async clearAuthCode(type: 'device' | 'space', scope?: Scope) {\n const peer = scope || this.page;\n await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).fill('');\n await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).focus();\n }\n\n async resetInvitation(scope?: Scope) {\n await (scope || this.page).getByTestId('invitation-rescuer-reset').click();\n }\n\n async doneInvitation(type: 'device' | 'space', scope?: Scope) {\n await (scope || this.page)\n .getByTestId(type === 'device' ? 'halo-invitation-accepted-done' : 'space-invitation-accepted-done')\n .click();\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type { ConsoleMessage, Dialog, Page } from '@playwright/test';\n\nimport { sleep, Trigger } from '@dxos/async';\n\nimport { ScopedShellManager } from './scoped-shell-manager';\n\n// TODO(wittjosiah): Normalize data-testids between snake and camel case.\n\nexport class ShellManager extends ScopedShellManager {\n private _invitationCode = new Trigger<string>();\n private _authCode = new Trigger<string>();\n\n // prettier-ignore\n constructor(\n override readonly page: Page,\n readonly inIFrame = true,\n ) {\n super();\n this.page.on('console', (message) => this._onConsoleMessage(message));\n }\n\n get shell() {\n return this.inIFrame ? this.page.frameLocator('data-testid=dxos-shell') : this.page;\n }\n\n // Getters\n\n async getDisplayName(): Promise<string | null> {\n return this.shell.getByTestId('identityHeading.displayName').textContent();\n }\n\n async isCurrentSpaceViewVisible(): Promise<boolean> {\n return await this.shell.getByTestId('current-space-view').isVisible();\n }\n\n async isSpaceListViewVisible(): Promise<boolean> {\n return await this.shell.getByTestId('space-list-view').isVisible();\n }\n\n // Actions\n\n async createIdentity(name: string) {\n await this.shell.getByTestId('create-identity').click();\n await this.page.keyboard.type(name);\n await this.shell.getByTestId('create-identity-input-continue').click();\n await this.shell.getByTestId('halo-invitation-accepted-done').click();\n }\n\n async createDeviceInvitation(): Promise<string> {\n this._invitationCode = new Trigger<string>();\n this._authCode = new Trigger<string>();\n await this.shell.getByTestId('devices-panel.create-invitation').click();\n return await this._invitationCode.wait();\n }\n\n async resetDevice() {\n const handleDialog = async (dialog: Dialog) => {\n if (dialog.type() === 'confirm') {\n await dialog.accept();\n }\n };\n\n this.page.on('dialog', handleDialog);\n await this.shell.getByTestId('device-list-item-current.options').click();\n await this.shell.getByTestId('device-list-item-current.reset').click();\n await this.shell.getByTestId('reset-storage.reset-identity-input').fill('CONFIRM');\n await this.shell.getByTestId('reset-storage.reset-identity-confirm').click();\n }\n\n async joinNewIdentity(invitationCode: string) {\n await this.shell.getByTestId('device-list-item-current.options').click();\n await this.shell.getByTestId('device-list-item-current.join-existing').click();\n await this.shell.getByTestId('join-new-identity.reset-identity-input').fill('CONFIRM');\n await this.shell.getByTestId('join-new-identity.reset-identity-confirm').click();\n await this.inputInvitation('device', invitationCode, this.shell);\n }\n\n async authenticateDevice(authCode: string, skipDone = true) {\n // Wait for focus to shift before typing.\n await sleep(1500);\n await this.authenticateInvitation('device', authCode, this.shell);\n // TODO(wittjosiah): When \"signing out\" and joinging a new identity, the done step seems to be skipped.\n if (!skipDone) {\n await this.doneInvitation('device', this.shell);\n }\n }\n\n async closeShell() {\n await this.page.keyboard.press('Escape');\n }\n\n async createSpaceInvitation(): Promise<string> {\n this._invitationCode = new Trigger<string>();\n this._authCode = new Trigger<string>();\n await this.shell.getByTestId('spaces-panel.create-invitation').click();\n return await this._invitationCode.wait();\n }\n\n async acceptSpaceInvitation(invitationCode: string) {\n await this.inputInvitation('space', invitationCode, this.shell);\n }\n\n async getAuthCode(): Promise<string> {\n return await this._authCode.wait();\n }\n\n async authenticate(authCode: string) {\n // Wait for focus to shift before typing.\n await sleep(1500);\n await this.authenticateInvitation('space', authCode, this.shell);\n await this.doneInvitation('space', this.shell);\n }\n\n private async _onConsoleMessage(message: ConsoleMessage) {\n try {\n const text = message.text();\n const json = JSON.parse(text.slice(text.indexOf('{')));\n if (json.invitationCode) {\n this._invitationCode.wake(json.invitationCode);\n }\n if (json.authCode) {\n this._authCode.wake(json.authCode);\n }\n } catch {}\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,iBAAiB;AAC1B,SAASC,mBAAmB;AAErB,IAAMC,QAAqB;EAChCC,UAAU;IACRC,aAAaC,UAAUC,OAAM;IAC7BC,SAAS;MACPC,aAAa;IACf;EACF;EACAC,UAAUC,YAAYC,cAAcC;AACtC;;;ACXA,SAASC,aAAAA,kBAAiB;AAC1B,SAASC,YAAYC,uCAAuC;AAErD,IAAMC,kBAAkB,CAACC,UAC9B,IAAIC,gCAAgC;EAClCC,mBAAmB;IACjBF;IACAG,cAAcC,KAAKC,OAAM,EAAGC,SAAS,EAAA,EAAIC,MAAM,CAAA;IAC/CC,MAAMC,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OC,KAAKC,MAAMH,KAAKI,MAAMJ,KAAKK,QAAQ,GAAA,CAAA,CAAA;AAChD,UAAIJ,KAAKf,gBAAgB;AACvB,aAAK3B,gBAAgB+C,KAAKL,KAAKf,cAAc;MAC/C;AACA,UAAIe,KAAKZ,UAAU;AACjB,aAAK5B,UAAU6C,KAAKL,KAAKZ,QAAQ;MACnC;IACF,QAAQ;IAAC;EACX;AACF;",
|
|
6
|
+
"names": ["PublicKey", "SpaceMember", "alice", "identity", "identityKey", "PublicKey", "random", "profile", "displayName", "presence", "SpaceMember", "PresenceState", "ONLINE", "PublicKey", "Invitation", "CancellableInvitationObservable", "inviteWithState", "state", "CancellableInvitationObservable", "initialInvitation", "invitationId", "Math", "random", "toString", "slice", "kind", "Invitation", "Kind", "SPACE", "authMethod", "AuthMethod", "NONE", "swarmKey", "PublicKey", "type", "Type", "INTERACTIVE", "authCode", "State", "READY_FOR_AUTHENTICATION", "AUTHENTICATING", "includes", "subscriber", "onCancel", "ScopedShellManager", "authenticatorIsVisible", "type", "scope", "page", "getByTestId", "isVisible", "invitationFailed", "timeout", "peer", "locator", "waitFor", "inputInvitation", "invitation", "fill", "keyboard", "press", "invitationInputContinue", "click", "cancelInvitation", "kind", "nth", "readyToAuthenticate", "authenticateInvitation", "authCode", "clearAuthCode", "focus", "resetInvitation", "doneInvitation", "sleep", "Trigger", "ShellManager", "ScopedShellManager", "constructor", "page", "inIFrame", "_invitationCode", "Trigger", "_authCode", "on", "message", "_onConsoleMessage", "shell", "frameLocator", "getDisplayName", "getByTestId", "textContent", "isCurrentSpaceViewVisible", "isVisible", "isSpaceListViewVisible", "createIdentity", "name", "click", "keyboard", "type", "createDeviceInvitation", "wait", "resetDevice", "handleDialog", "dialog", "accept", "fill", "joinNewIdentity", "invitationCode", "inputInvitation", "authenticateDevice", "authCode", "skipDone", "sleep", "authenticateInvitation", "doneInvitation", "closeShell", "press", "createSpaceInvitation", "acceptSpaceInvitation", "getAuthCode", "authenticate", "text", "json", "JSON", "parse", "slice", "indexOf", "wake"]
|
|
7
7
|
}
|
|
@@ -53,8 +53,8 @@ exports.DeviceListItem = (0, react_2.forwardRef)(({ device, onClickAdd, onClickE
|
|
|
53
53
|
return (react_2.default.createElement(react_ui_1.ListItem.Root, { ...props, classNames: ['flex gap-2 items-center mlb-2', classNames], "data-testid": `device-list-item${isCurrent ? '-current' : ''}`, labelId: labelId, ref: forwardedRef },
|
|
54
54
|
react_2.default.createElement(react_ui_1.Avatar.Root, { status: device.presence === halo_1.Device.PresenceState.ONLINE ? 'active' : 'inactive', labelId: labelId, hue: fallbackValue.hue, variant: 'square' },
|
|
55
55
|
react_2.default.createElement(react_ui_1.Avatar.Frame, { classNames: 'place-self-center' }, ((_a = device.profile) === null || _a === void 0 ? void 0 : _a.type) ? (device.profile.type === halo_1.DeviceType.BROWSER ? (react_2.default.createElement(react_1.Compass, { ...iconProps })) : device.profile.type === halo_1.DeviceType.NATIVE ? (react_2.default.createElement(react_1.Desktop, { ...iconProps })) : [halo_1.DeviceType.AGENT, halo_1.DeviceType.AGENT_MANAGED].includes(device.profile.type) ? (react_2.default.createElement(react_1.Robot, { ...iconProps })) : device.profile.type === halo_1.DeviceType.MOBILE ? (react_2.default.createElement(react_1.DeviceMobile, { ...iconProps })) : (react_2.default.createElement(react_1.Devices, { ...iconProps }))) : (react_2.default.createElement(react_ui_1.Avatar.Fallback, { text: fallbackValue.emoji }))),
|
|
56
|
-
react_2.default.createElement(react_ui_1.Avatar.Label, { classNames: 'flex-1 text-sm truncate' }, displayName),
|
|
57
56
|
isCurrent && react_2.default.createElement(react_ui_1.Tag, { color: 'primary' }, t('current device tag label')),
|
|
57
|
+
react_2.default.createElement(react_ui_1.Avatar.Label, { classNames: 'flex-1 text-sm truncate' }, displayName),
|
|
58
58
|
device.kind === halo_1.DeviceKind.CURRENT && (react_2.default.createElement(react_ui_1.DropdownMenu.Root, null,
|
|
59
59
|
react_2.default.createElement(react_ui_1.DropdownMenu.Trigger, { asChild: true },
|
|
60
60
|
react_2.default.createElement(react_ui_1.Button, { variant: 'ghost', classNames: 'pli-0 is-[--rail-action] bs-[--rail-action]', "data-testid": `device-list-item${isCurrent ? '-current' : ''}.options` },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceListItem.js","sourceRoot":"","sources":["../../../../../src/components/DeviceList/DeviceListItem.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,iDAU+B;AAC/B,+CAAyE;AAEzE,qDAAkD;AAClD,kDAAyE;AACzE,6CASwB;AACxB,yDAA+C;AAC/C,qCAA2C;AAI3C,MAAM,SAAS,GAAc;IAC3B,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;CACL,CAAC;AAEW,QAAA,cAAc,GAAG,IAAA,kBAAU,EAGtC,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE;;IAC/G,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IACnC,MAAM,aAAa,GAAG,IAAA,oBAAa,EAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,IAAA,gBAAK,EAAC,yBAAyB,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO;QAChC,CAAC,CAAC,CAAC,CAAC,yBAAyB,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QAC5F,CAAC,CAAC,IAAA,2BAAY,EAAC,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,C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;4BACnF,8BAAC,aAAK,IAAC,SAAS,EAAE,IAAA,wBAAO,EAAC,CAAC,CAAC,GAAI;4BAC/B,CAAC,CAAC,oBAAoB,CAAC,CACN,CACE,CACH,CACL,CACrB,CACW,CACA,CACjB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -62,7 +62,7 @@ const ConfirmResetImpl = ({ disabled, pending, validationMessage, onConfirm, onC
|
|
|
62
62
|
react_2.default.createElement(react_ui_1.Message.Body, null, t('sign out chooser message'))),
|
|
63
63
|
react_2.default.createElement(components_1.Input, { validationMessage, label: react_2.default.createElement(components_1.StepHeading, { className: 'text-start mlb-2' }, t(mode === 'join new identity' ? 'join new identity input label' : 'reset storage input label', {
|
|
64
64
|
confirmationValue,
|
|
65
|
-
})), disabled: disabled, "data-testid": `${testIdAffix}.reset-identity-input`, placeholder:
|
|
65
|
+
})), disabled: disabled, "data-testid": `${testIdAffix}.reset-identity-input`, placeholder: confirmationValue, onChange: ({ target: { value } }) => setInputValue(value) })),
|
|
66
66
|
react_2.default.createElement(components_1.Actions, null,
|
|
67
67
|
onCancel && (react_2.default.createElement(components_1.Action, { disabled: disabled, onClick: onCancel, "data-testid": `${testIdAffix}.reset-identity-cancel` }, t('cancel label'))),
|
|
68
68
|
onConfirm && (react_2.default.createElement(components_1.Action, { variant: 'destructive', disabled: disabled || pending || inputValue !== confirmationValue, onClick: onConfirm, "data-testid": `${testIdAffix}.reset-identity-confirm` }, pending ? t('reset in progress label') : t('reset device label'))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmReset.js","sourceRoot":"","sources":["../../../../src/steps/ConfirmReset.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,iDAAgD;AAChD,+CAAwC;AAExC,mCAAgC;AAChC,6CAAyD;AACzD,yDAAmD;AAGnD,8CAAoE;AAgB7D,MAAM,YAAY,GAAG,CAAC,EA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ACjE,OAAO,EAAE,SAAS,iBACL,GAAG,WAAW,yBAAyB,IAEnD,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAC1D,CACV,CACO,CACT,CACJ,CAAC;AACJ,CAAC,CAAC;AAxDW,QAAA,gBAAgB,oBAwD3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-manager.d.ts","sourceRoot":"","sources":["../../../../src/testing/shell-manager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAA0B,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"shell-manager.d.ts","sourceRoot":"","sources":["../../../../src/testing/shell-manager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAA0B,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAI5D,qBAAa,YAAa,SAAQ,kBAAkB;aAM9B,IAAI,EAAE,IAAI;IAC5B,QAAQ,CAAC,QAAQ;IANnB,OAAO,CAAC,eAAe,CAAyB;IAChD,OAAO,CAAC,SAAS,CAAyB;gBAItB,IAAI,EAAE,IAAI,EACnB,QAAQ,UAAO;IAM1B,IAAI,KAAK,mDAER;IAIK,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIxC,yBAAyB,IAAI,OAAO,CAAC,OAAO,CAAC;IAI7C,sBAAsB,IAAI,OAAO,CAAC,OAAO,CAAC;IAM1C,cAAc,CAAC,IAAI,EAAE,MAAM;IAO3B,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC;IAOzC,WAAW;IAcX,eAAe,CAAC,cAAc,EAAE,MAAM;IAQtC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,UAAO;IAUpD,UAAU;IAIV,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC;IAOxC,qBAAqB,CAAC,cAAc,EAAE,MAAM;IAI5C,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAI9B,YAAY,CAAC,QAAQ,EAAE,MAAM;YAOrB,iBAAiB;CAYhC"}
|
|
@@ -7,7 +7,6 @@ exports.ShellManager = void 0;
|
|
|
7
7
|
const async_1 = require("@dxos/async");
|
|
8
8
|
const scoped_shell_manager_1 = require("./scoped-shell-manager");
|
|
9
9
|
// TODO(wittjosiah): Normalize data-testids between snake and camel case.
|
|
10
|
-
const CONFIRM_INPUT = 'RESET';
|
|
11
10
|
class ShellManager extends scoped_shell_manager_1.ScopedShellManager {
|
|
12
11
|
// prettier-ignore
|
|
13
12
|
constructor(page, inIFrame = true) {
|
|
@@ -53,13 +52,13 @@ class ShellManager extends scoped_shell_manager_1.ScopedShellManager {
|
|
|
53
52
|
this.page.on('dialog', handleDialog);
|
|
54
53
|
await this.shell.getByTestId('device-list-item-current.options').click();
|
|
55
54
|
await this.shell.getByTestId('device-list-item-current.reset').click();
|
|
56
|
-
await this.shell.getByTestId('reset-storage.reset-identity-input').fill(
|
|
55
|
+
await this.shell.getByTestId('reset-storage.reset-identity-input').fill('CONFIRM');
|
|
57
56
|
await this.shell.getByTestId('reset-storage.reset-identity-confirm').click();
|
|
58
57
|
}
|
|
59
58
|
async joinNewIdentity(invitationCode) {
|
|
60
59
|
await this.shell.getByTestId('device-list-item-current.options').click();
|
|
61
60
|
await this.shell.getByTestId('device-list-item-current.join-existing').click();
|
|
62
|
-
await this.shell.getByTestId('join-new-identity.reset-identity-input').fill(
|
|
61
|
+
await this.shell.getByTestId('join-new-identity.reset-identity-input').fill('CONFIRM');
|
|
63
62
|
await this.shell.getByTestId('join-new-identity.reset-identity-confirm').click();
|
|
64
63
|
await this.inputInvitation('device', invitationCode, this.shell);
|
|
65
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-manager.js","sourceRoot":"","sources":["../../../../src/testing/shell-manager.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAIF,uCAA6C;AAE7C,iEAA4D;AAE5D,yEAAyE;AAEzE,
|
|
1
|
+
{"version":3,"file":"shell-manager.js","sourceRoot":"","sources":["../../../../src/testing/shell-manager.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAIF,uCAA6C;AAE7C,iEAA4D;AAE5D,yEAAyE;AAEzE,MAAa,YAAa,SAAQ,yCAAkB;IAIlD,kBAAkB;IAClB,YACoB,IAAU,EACnB,WAAW,IAAI;QAExB,KAAK,EAAE,CAAC;QAHU,SAAI,GAAJ,IAAI,CAAM;QACnB,aAAQ,GAAR,QAAQ,CAAO;QANlB,oBAAe,GAAG,IAAI,eAAO,EAAU,CAAC;QACxC,cAAS,GAAG,IAAI,eAAO,EAAU,CAAC;QAQxC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;IACxE,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IACtF,CAAC;IAED,UAAU;IAEV,KAAK,CAAC,cAAc;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,yBAAyB;QAC7B,OAAO,MAAM,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,SAAS,EAAE,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,sBAAsB;QAC1B,OAAO,MAAM,IAAI,CAAC,KAAK,C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CACF;AArHD,oCAqHC"}
|
|
@@ -96,7 +96,6 @@ export declare const os: {
|
|
|
96
96
|
'join new identity input label': string;
|
|
97
97
|
'failed to reset identity message': string;
|
|
98
98
|
'confirmation value': string;
|
|
99
|
-
'confirmation placeholder': string;
|
|
100
99
|
'sign out chooser title': string;
|
|
101
100
|
'sign out chooser message': string;
|
|
102
101
|
'join new identity label': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/translations/locales/en-US.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/translations/locales/en-US.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Id,CAAC"}
|
|
@@ -98,11 +98,10 @@ exports.os = {
|
|
|
98
98
|
'invite options label': 'Change the active invite option.',
|
|
99
99
|
'reset in progress label': 'Resetting...',
|
|
100
100
|
'confirm label': 'Confirm',
|
|
101
|
-
'reset storage input label': '
|
|
102
|
-
'join new identity input label': '
|
|
101
|
+
'reset storage input label': 'This will clear this device and all associated data. Type {{confirmationValue}} and confirm to continue.',
|
|
102
|
+
'join new identity input label': 'In order to join an existing device, storage on this device must be cleared first. Type {{confirmationValue}} to continue.',
|
|
103
103
|
'failed to reset identity message': 'Failed to reset identity.',
|
|
104
|
-
'confirmation value': '
|
|
105
|
-
'confirmation placeholder': 'Enter {{confirmationValue}} to continue.',
|
|
104
|
+
'confirmation value': 'CONFIRM',
|
|
106
105
|
'sign out chooser title': 'Danger zone',
|
|
107
106
|
'sign out chooser message': 'Proceeding with the action below will erase all data on this device.',
|
|
108
107
|
'join new identity label': 'Join a new identity',
|
|
@@ -112,7 +111,7 @@ exports.os = {
|
|
|
112
111
|
'clear label': 'Use default',
|
|
113
112
|
'select emoji label': 'Choose an emoji to use in your avatar',
|
|
114
113
|
'select hue label': 'Choose a hue to use in your avatar',
|
|
115
|
-
'resetting message': 'One moment while
|
|
114
|
+
'resetting message': 'One moment while things are reset…',
|
|
116
115
|
'red label': 'Red',
|
|
117
116
|
'orange label': 'Orange',
|
|
118
117
|
'amber label': 'Amber',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.js","sourceRoot":"","sources":["../../../../../src/translations/locales/en-US.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEW,QAAA,EAAE,GAAG;IAChB,sBAAsB,EAAE,iBAAiB;IACzC,8BAA8B,EAAE,SAAS;IACzC,eAAe,EAAE,cAAc;IAC/B,4BAA4B,EAAE,UAAU;IACxC,oBAAoB,EAAE,QAAQ;IAC9B,4BAA4B,EAAE,iBAAiB;IAC/C,wBAAwB,EAAE,cAAc;IACxC,uBAAuB,EAAE,eAAe;IACxC,oBAAoB,EAAE,wBAAwB;IAC9C,cAAc,EAAE,4BAA4B;IAC5C,YAAY,EAAE,MAAM;IACpB,yBAAyB,EAAE,SAAS;IACpC,4BAA4B,EAAE,+DAA+D;IAC7F,oBAAoB,EAAE,KAAK;IAC3B,gBAAgB,EAAE,UAAU;IAC5B,YAAY,EAAE,MAAM;IACpB,YAAY,EAAE,MAAM;IACpB,aAAa,EAAE,OAAO;IACtB,oBAAoB,EAAE,oBAAoB;IAC1C,uBAAuB,EAAE,oBAAoB;IAC7C,6BAA6B,EAAE,wBAAwB;IACvD,wBAAwB,EAAE,mBAAmB;IAC7C,8BAA8B,EAAE,4CAA4C;IAC5E,qBAAqB,EAAE,oBAAoB;IAC3C,2BAA2B,EAAE,8EAA8E;IAC3G,yBAAyB,EAAE,oBAAoB;IAC/C,+BAA+B,EAAE,qCAAqC;IACtE,0BAA0B,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,EAAE,aAAa;IAC5B,oBAAoB,EAAE,uCAAuC;IAC7D,kBAAkB,EAAE,oCAAoC;IACxD,mBAAmB,EAAE,oCAAoC;IACzD,WAAW,EAAE,KAAK;IAClB,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,OAAO;IACtB,cAAc,EAAE,QAAQ;IACxB,YAAY,EAAE,MAAM;IACpB,aAAa,EAAE,OAAO;IACtB,eAAe,EAAE,SAAS;IAC1B,YAAY,EAAE,MAAM;IACpB,YAAY,EAAE,MAAM;IACpB,WAAW,EAAE,KAAK;IAClB,YAAY,EAAE,MAAM;IACpB,cAAc,EAAE,QAAQ;IACxB,cAAc,EAAE,QAAQ;IACxB,cAAc,EAAE,QAAQ;IACxB,eAAe,EAAE,SAAS;IAC1B,YAAY,EAAE,MAAM;IACpB,YAAY,EAAE,MAAM;IACpB,0BAA0B,EAAE,aAAa;IACzC,yBAAyB,EAAE,wBAAwB;IACnD,oBAAoB,EAAE,cAAc;IACpC,kBAAkB,EAAE,wCAAwC;IAC5D,eAAe,EAAE,wCAAwC;IACzD,mBAAmB,EAAE,2BAA2B;IAChD,eAAe,EAAE,OAAO;IACxB,qBAAqB,EAAE,yBAAyB;IAChD,oBAAoB,EAClB,qMAAqM;IACvM,oBAAoB,EAAE,gBAAgB;IACtC,qBAAqB,EAAE,iBAAiB;IACxC,oBAAoB,EAAE,YAAY;IAClC,sBAAsB,EAAE,yBAAyB;CAClD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/shell",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.65aaa36",
|
|
4
4
|
"description": "DXOS’s OS experiences",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"react-qr-rounded": "^1.0.0",
|
|
43
43
|
"url-join": "^5.0.0",
|
|
44
44
|
"xstate": "^4.37.0",
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/client-protocol": "0.5.1-next.
|
|
48
|
-
"@dxos/debug": "0.5.1-next.
|
|
49
|
-
"@dxos/display-name": "0.5.1-next.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/react-ui": "0.5.1-next.
|
|
53
|
-
"@dxos/react-ui-
|
|
54
|
-
"@dxos/rpc-tunnel": "0.5.1-next.
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
45
|
+
"@dxos/async": "0.5.1-next.65aaa36",
|
|
46
|
+
"@dxos/client-services": "0.5.1-next.65aaa36",
|
|
47
|
+
"@dxos/client-protocol": "0.5.1-next.65aaa36",
|
|
48
|
+
"@dxos/debug": "0.5.1-next.65aaa36",
|
|
49
|
+
"@dxos/display-name": "0.5.1-next.65aaa36",
|
|
50
|
+
"@dxos/log": "0.5.1-next.65aaa36",
|
|
51
|
+
"@dxos/invariant": "0.5.1-next.65aaa36",
|
|
52
|
+
"@dxos/react-ui": "0.5.1-next.65aaa36",
|
|
53
|
+
"@dxos/react-ui-types": "0.5.1-next.65aaa36",
|
|
54
|
+
"@dxos/rpc-tunnel": "0.5.1-next.65aaa36",
|
|
55
|
+
"@dxos/react-ui-theme": "0.5.1-next.65aaa36",
|
|
56
|
+
"@dxos/util": "0.5.1-next.65aaa36"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -64,19 +64,19 @@
|
|
|
64
64
|
"react-dom": "^18.2.0",
|
|
65
65
|
"vite": "^5.2.9",
|
|
66
66
|
"vite-plugin-turbosnap": "^1.0.2",
|
|
67
|
-
"@dxos/config": "0.5.1-next.
|
|
68
|
-
"@dxos/protocols": "0.5.1-next.
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/react-
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
67
|
+
"@dxos/config": "0.5.1-next.65aaa36",
|
|
68
|
+
"@dxos/protocols": "0.5.1-next.65aaa36",
|
|
69
|
+
"@dxos/react-async": "0.5.1-next.65aaa36",
|
|
70
|
+
"@dxos/random": "0.5.1-next.65aaa36",
|
|
71
|
+
"@dxos/react-client": "0.5.1-next.65aaa36",
|
|
72
|
+
"@dxos/react-ui-theme": "0.5.1-next.65aaa36",
|
|
73
|
+
"@dxos/storybook-utils": "0.5.1-next.65aaa36"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@phosphor-icons/react": "^2.0.5",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-dom": "^18.2.0",
|
|
79
|
-
"@dxos/react-client": "0.5.1-next.
|
|
79
|
+
"@dxos/react-client": "0.5.1-next.65aaa36"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
@@ -82,8 +82,8 @@ export const DeviceListItem = forwardRef<
|
|
|
82
82
|
<Avatar.Fallback text={fallbackValue.emoji} />
|
|
83
83
|
)}
|
|
84
84
|
</Avatar.Frame>
|
|
85
|
-
<Avatar.Label classNames='flex-1 text-sm truncate'>{displayName}</Avatar.Label>
|
|
86
85
|
{isCurrent && <Tag color='primary'>{t('current device tag label')}</Tag>}
|
|
86
|
+
<Avatar.Label classNames='flex-1 text-sm truncate'>{displayName}</Avatar.Label>
|
|
87
87
|
{device.kind === DeviceKind.CURRENT && (
|
|
88
88
|
<DropdownMenu.Root>
|
|
89
89
|
<DropdownMenu.Trigger asChild>
|
|
@@ -86,7 +86,7 @@ export const ConfirmResetImpl = ({
|
|
|
86
86
|
}
|
|
87
87
|
disabled={disabled}
|
|
88
88
|
data-testid={`${testIdAffix}.reset-identity-input`}
|
|
89
|
-
placeholder={
|
|
89
|
+
placeholder={confirmationValue}
|
|
90
90
|
onChange={({ target: { value } }) => setInputValue(value)}
|
|
91
91
|
/>
|
|
92
92
|
</div>
|
|
@@ -10,8 +10,6 @@ import { ScopedShellManager } from './scoped-shell-manager';
|
|
|
10
10
|
|
|
11
11
|
// TODO(wittjosiah): Normalize data-testids between snake and camel case.
|
|
12
12
|
|
|
13
|
-
const CONFIRM_INPUT = 'RESET';
|
|
14
|
-
|
|
15
13
|
export class ShellManager extends ScopedShellManager {
|
|
16
14
|
private _invitationCode = new Trigger<string>();
|
|
17
15
|
private _authCode = new Trigger<string>();
|
|
@@ -69,14 +67,14 @@ export class ShellManager extends ScopedShellManager {
|
|
|
69
67
|
this.page.on('dialog', handleDialog);
|
|
70
68
|
await this.shell.getByTestId('device-list-item-current.options').click();
|
|
71
69
|
await this.shell.getByTestId('device-list-item-current.reset').click();
|
|
72
|
-
await this.shell.getByTestId('reset-storage.reset-identity-input').fill(
|
|
70
|
+
await this.shell.getByTestId('reset-storage.reset-identity-input').fill('CONFIRM');
|
|
73
71
|
await this.shell.getByTestId('reset-storage.reset-identity-confirm').click();
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
async joinNewIdentity(invitationCode: string) {
|
|
77
75
|
await this.shell.getByTestId('device-list-item-current.options').click();
|
|
78
76
|
await this.shell.getByTestId('device-list-item-current.join-existing').click();
|
|
79
|
-
await this.shell.getByTestId('join-new-identity.reset-identity-input').fill(
|
|
77
|
+
await this.shell.getByTestId('join-new-identity.reset-identity-input').fill('CONFIRM');
|
|
80
78
|
await this.shell.getByTestId('join-new-identity.reset-identity-confirm').click();
|
|
81
79
|
await this.inputInvitation('device', invitationCode, this.shell);
|
|
82
80
|
}
|
|
@@ -97,12 +97,11 @@ export const os = {
|
|
|
97
97
|
'reset in progress label': 'Resetting...',
|
|
98
98
|
'confirm label': 'Confirm',
|
|
99
99
|
'reset storage input label':
|
|
100
|
-
'
|
|
100
|
+
'This will clear this device and all associated data. Type {{confirmationValue}} and confirm to continue.',
|
|
101
101
|
'join new identity input label':
|
|
102
|
-
'
|
|
102
|
+
'In order to join an existing device, storage on this device must be cleared first. Type {{confirmationValue}} to continue.',
|
|
103
103
|
'failed to reset identity message': 'Failed to reset identity.',
|
|
104
|
-
'confirmation value': '
|
|
105
|
-
'confirmation placeholder': 'Enter {{confirmationValue}} to continue.',
|
|
104
|
+
'confirmation value': 'CONFIRM',
|
|
106
105
|
'sign out chooser title': 'Danger zone',
|
|
107
106
|
'sign out chooser message': 'Proceeding with the action below will erase all data on this device.',
|
|
108
107
|
'join new identity label': 'Join a new identity',
|
|
@@ -112,7 +111,7 @@ export const os = {
|
|
|
112
111
|
'clear label': 'Use default',
|
|
113
112
|
'select emoji label': 'Choose an emoji to use in your avatar',
|
|
114
113
|
'select hue label': 'Choose a hue to use in your avatar',
|
|
115
|
-
'resetting message': 'One moment while
|
|
114
|
+
'resetting message': 'One moment while things are reset…',
|
|
116
115
|
'red label': 'Red',
|
|
117
116
|
'orange label': 'Orange',
|
|
118
117
|
'amber label': 'Amber',
|