@dxos/shell 0.7.5-labs.e27f9b9 → 0.7.5-main.2567c87
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 +57515 -56513
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +146 -148
- 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.css +7 -0
- package/dist/lib/browser/react.css.map +7 -0
- package/dist/lib/browser/react.mjs +782 -518
- package/dist/lib/browser/react.mjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react.cjs +879 -615
- package/dist/lib/node/react.cjs.map +4 -4
- package/dist/lib/node/react.css +7 -0
- package/dist/lib/node/react.css.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- 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 +782 -518
- package/dist/lib/node-esm/react.mjs.map +4 -4
- package/dist/types/src/components/AgentConfig.js +1 -1
- package/dist/types/src/components/AgentConfig.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceList.js +1 -1
- package/dist/types/src/components/DeviceList/DeviceList.js.map +1 -1
- package/dist/types/src/components/EmojiPicker.d.ts +19 -0
- package/dist/types/src/components/EmojiPicker.d.ts.map +1 -0
- package/dist/types/src/components/EmojiPicker.js +146 -0
- package/dist/types/src/components/EmojiPicker.js.map +1 -0
- package/dist/types/src/components/HuePicker.d.ts +18 -0
- package/dist/types/src/components/HuePicker.d.ts.map +1 -0
- package/dist/types/src/components/HuePicker.js +133 -0
- package/dist/types/src/components/HuePicker.js.map +1 -0
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/index.js +2 -0
- package/dist/types/src/components/index.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +2 -3
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +0 -2
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js +2 -3
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +0 -5
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js.map +1 -1
- package/dist/types/src/testing/fixtures/identities.d.ts.map +1 -1
- package/dist/types/src/testing/fixtures/identities.js +0 -2
- package/dist/types/src/testing/fixtures/identities.js.map +1 -1
- package/package.json +30 -31
- package/src/components/AgentConfig.tsx +1 -1
- package/src/components/DeviceList/DeviceList.tsx +1 -1
- package/src/components/EmojiPicker.tsx +187 -0
- package/src/components/HuePicker.tsx +182 -0
- package/src/components/emoji.css +25 -0
- package/src/components/index.ts +2 -0
- package/src/panels/IdentityPanel/IdentityPanel.stories.tsx +0 -2
- package/src/panels/IdentityPanel/IdentityPanel.tsx +1 -2
- package/src/panels/IdentityPanel/steps/ProfileForm.tsx +1 -2
- package/src/panels/JoinPanel/steps/IdentityInput.tsx +1 -1
- package/src/panels/SpacePanel/SpacePanel.stories.tsx +1 -6
- package/src/testing/fixtures/identities.ts +0 -2
package/src/components/index.ts
CHANGED
|
@@ -6,7 +6,6 @@ import '@dxos-theme';
|
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
|
-
import { IdentityDid } from '@dxos/keys';
|
|
10
9
|
import { ConnectionState } from '@dxos/protocols/proto/dxos/client/services';
|
|
11
10
|
import { faker } from '@dxos/random';
|
|
12
11
|
import { PublicKey } from '@dxos/react-client';
|
|
@@ -28,7 +27,6 @@ const noOpProps: IdentityPanelImplProps = {
|
|
|
28
27
|
activeView: 'identity action chooser',
|
|
29
28
|
createInvitationUrl: (code) => code,
|
|
30
29
|
identity: {
|
|
31
|
-
did: IdentityDid.random(),
|
|
32
30
|
identityKey: PublicKey.random(),
|
|
33
31
|
profile: {
|
|
34
32
|
displayName: faker.person.firstName(),
|
|
@@ -13,7 +13,6 @@ import { useInvitationStatus } from '@dxos/react-client/invitations';
|
|
|
13
13
|
import { type CancellableInvitationObservable } from '@dxos/react-client/invitations';
|
|
14
14
|
import { useNetworkStatus, ConnectionState } from '@dxos/react-client/mesh';
|
|
15
15
|
import { Avatar, Input, Toolbar, Tooltip, useClipboard, useId, useTranslation } from '@dxos/react-ui';
|
|
16
|
-
import { EmojiPickerToolbarButton, HuePickerToolbarButton } from '@dxos/react-ui-pickers';
|
|
17
16
|
import { getSize } from '@dxos/react-ui-theme';
|
|
18
17
|
import { hexToEmoji, hexToHue, keyToFallback } from '@dxos/util';
|
|
19
18
|
|
|
@@ -25,7 +24,7 @@ import {
|
|
|
25
24
|
import { useIdentityMachine } from './identityMachine';
|
|
26
25
|
import { IdentityActionChooser } from './steps';
|
|
27
26
|
import { useAgentHandlers } from './useAgentHandlers';
|
|
28
|
-
import { Viewport, CloseButton, Heading } from '../../components';
|
|
27
|
+
import { Viewport, CloseButton, EmojiPickerToolbarButton, Heading, HuePickerToolbarButton } from '../../components';
|
|
29
28
|
import { ConfirmReset, InvitationManager } from '../../steps';
|
|
30
29
|
|
|
31
30
|
const viewStyles = 'pbs-1 pbe-3 pli-3';
|
|
@@ -8,10 +8,9 @@ import { type Event, type SingleOrArray } from 'xstate';
|
|
|
8
8
|
import { log } from '@dxos/log';
|
|
9
9
|
import { type Identity } from '@dxos/react-client/halo';
|
|
10
10
|
import { useClipboard, useTranslation } from '@dxos/react-ui';
|
|
11
|
-
import { EmojiPickerBlock, HuePickerBlock } from '@dxos/react-ui-pickers';
|
|
12
11
|
import { hexToEmoji, hexToHue } from '@dxos/util';
|
|
13
12
|
|
|
14
|
-
import { Action, Actions, StepHeading, Input } from '../../../components';
|
|
13
|
+
import { Action, Actions, StepHeading, Input, EmojiPickerBlock, HuePickerBlock } from '../../../components';
|
|
15
14
|
import { type IdentityPanelStepProps } from '../IdentityPanelProps';
|
|
16
15
|
import { type IdentityEvent } from '../identityMachine';
|
|
17
16
|
|
|
@@ -31,7 +31,7 @@ export const IdentityInput = (props: IdentityInputProps) => {
|
|
|
31
31
|
const [validationMessage, setValidationMessage] = useState('');
|
|
32
32
|
const handleConfirm = async (value: string) => {
|
|
33
33
|
if (isRecover) {
|
|
34
|
-
await client.halo.recoverIdentity({
|
|
34
|
+
await client.halo.recoverIdentity({ seedphrase: value }).then(
|
|
35
35
|
(identity) => {
|
|
36
36
|
send?.({ type: 'selectIdentity' as const, identity });
|
|
37
37
|
},
|
|
@@ -6,7 +6,7 @@ import '@dxos-theme';
|
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { PublicKey } from '@dxos/keys';
|
|
10
10
|
import { HaloSpaceMember, SpaceMember } from '@dxos/react-client/echo';
|
|
11
11
|
import { Invitation } from '@dxos/react-client/invitations';
|
|
12
12
|
import { withTheme } from '@dxos/storybook-utils';
|
|
@@ -179,7 +179,6 @@ export const SpaceManagerWithMember = () => {
|
|
|
179
179
|
presence: SpaceMember.PresenceState.ONLINE,
|
|
180
180
|
role: HaloSpaceMember.Role.ADMIN,
|
|
181
181
|
identity: {
|
|
182
|
-
did: IdentityDid.random(),
|
|
183
182
|
identityKey: PublicKey.random(),
|
|
184
183
|
},
|
|
185
184
|
},
|
|
@@ -213,7 +212,6 @@ export const SpaceManagerWithMembers = () => {
|
|
|
213
212
|
presence: SpaceMember.PresenceState.ONLINE,
|
|
214
213
|
role: HaloSpaceMember.Role.ADMIN,
|
|
215
214
|
identity: {
|
|
216
|
-
did: IdentityDid.random(),
|
|
217
215
|
identityKey: PublicKey.random(),
|
|
218
216
|
profile: {
|
|
219
217
|
displayName: 'John Doe',
|
|
@@ -254,7 +252,6 @@ export const SpaceManagerWithMoreMembers = () => {
|
|
|
254
252
|
presence: SpaceMember.PresenceState.ONLINE,
|
|
255
253
|
role: HaloSpaceMember.Role.ADMIN,
|
|
256
254
|
identity: {
|
|
257
|
-
did: IdentityDid.random(),
|
|
258
255
|
identityKey: PublicKey.random(),
|
|
259
256
|
profile: {
|
|
260
257
|
displayName: 'John Doe',
|
|
@@ -265,7 +262,6 @@ export const SpaceManagerWithMoreMembers = () => {
|
|
|
265
262
|
presence: SpaceMember.PresenceState.OFFLINE,
|
|
266
263
|
role: HaloSpaceMember.Role.ADMIN,
|
|
267
264
|
identity: {
|
|
268
|
-
did: IdentityDid.random(),
|
|
269
265
|
identityKey: PublicKey.random(),
|
|
270
266
|
profile: {
|
|
271
267
|
displayName: 'Alice Wong',
|
|
@@ -276,7 +272,6 @@ export const SpaceManagerWithMoreMembers = () => {
|
|
|
276
272
|
presence: SpaceMember.PresenceState.OFFLINE,
|
|
277
273
|
role: HaloSpaceMember.Role.ADMIN,
|
|
278
274
|
identity: {
|
|
279
|
-
did: IdentityDid.random(),
|
|
280
275
|
identityKey: PublicKey.random(),
|
|
281
276
|
profile: {
|
|
282
277
|
displayName: 'Steel Nickels',
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { IdentityDid } from '@dxos/keys';
|
|
6
5
|
import { PublicKey } from '@dxos/react-client';
|
|
7
6
|
import { HaloSpaceMember, SpaceMember } from '@dxos/react-client/echo';
|
|
8
7
|
|
|
9
8
|
export const alice: SpaceMember = {
|
|
10
9
|
role: HaloSpaceMember.Role.ADMIN,
|
|
11
10
|
identity: {
|
|
12
|
-
did: IdentityDid.random(),
|
|
13
11
|
identityKey: PublicKey.random(),
|
|
14
12
|
profile: {
|
|
15
13
|
displayName: 'Alice',
|