@dxos/plugin-client 0.8.2-staging.7ac8446 → 0.8.2

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.
Files changed (156) hide show
  1. package/dist/lib/browser/{app-graph-builder-WAS4YZNA.mjs → app-graph-builder-CBRN2DMK.mjs} +36 -32
  2. package/dist/lib/browser/app-graph-builder-CBRN2DMK.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-DCUIJY75.mjs +694 -0
  4. package/dist/lib/browser/chunk-DCUIJY75.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-IA3AVM4I.mjs +111 -0
  6. package/dist/lib/browser/chunk-IA3AVM4I.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-BGY6BSUC.mjs → chunk-PSSNS4C6.mjs} +2 -2
  8. package/dist/lib/{node-esm/chunk-K3KGGSJZ.mjs.map → browser/chunk-PSSNS4C6.mjs.map} +1 -1
  9. package/dist/lib/browser/{chunk-4PLF3BEB.mjs → chunk-UCVFWBKT.mjs} +2 -2
  10. package/dist/lib/{node-esm/chunk-BP56BGZR.mjs.map → browser/chunk-UCVFWBKT.mjs.map} +1 -1
  11. package/dist/lib/browser/{client-LV67Q3R7.mjs → client-NMS3MSFP.mjs} +5 -4
  12. package/dist/lib/browser/client-NMS3MSFP.mjs.map +7 -0
  13. package/dist/lib/browser/index.mjs +12 -12
  14. package/dist/lib/browser/index.mjs.map +3 -3
  15. package/dist/lib/browser/{intent-resolver-NCISOZW4.mjs → intent-resolver-KGM6A3BF.mjs} +14 -14
  16. package/dist/lib/browser/intent-resolver-KGM6A3BF.mjs.map +7 -0
  17. package/dist/lib/browser/meta.json +1 -1
  18. package/dist/lib/browser/migrations-QRQV6ZAM.mjs +23 -0
  19. package/dist/lib/browser/migrations-QRQV6ZAM.mjs.map +7 -0
  20. package/dist/lib/browser/{react-context-WEH7SL4I.mjs → react-context-IE2O2OYK.mjs} +2 -2
  21. package/dist/lib/browser/{react-surface-J7SZR2J6.mjs → react-surface-CKZHHWY3.mjs} +3 -3
  22. package/dist/lib/browser/schema-defs-DNRDVQQJ.mjs +25 -0
  23. package/dist/lib/browser/schema-defs-DNRDVQQJ.mjs.map +7 -0
  24. package/dist/lib/browser/types.mjs +1 -1
  25. package/dist/lib/node/{app-graph-builder-PXOJZJO5.cjs → app-graph-builder-BEEYM3A5.cjs} +45 -41
  26. package/dist/lib/node/app-graph-builder-BEEYM3A5.cjs.map +7 -0
  27. package/dist/lib/node/chunk-73HHNJMV.cjs +719 -0
  28. package/dist/lib/node/chunk-73HHNJMV.cjs.map +7 -0
  29. package/dist/lib/node/chunk-BL6EBWOS.cjs +131 -0
  30. package/dist/lib/node/chunk-BL6EBWOS.cjs.map +7 -0
  31. package/dist/lib/node/{chunk-ZVQIICEN.cjs → chunk-CIYUKY3J.cjs} +5 -5
  32. package/dist/lib/node/{chunk-ZVQIICEN.cjs.map → chunk-CIYUKY3J.cjs.map} +1 -1
  33. package/dist/lib/node/{chunk-W64EOF2B.cjs → chunk-DNKJCPU7.cjs} +5 -5
  34. package/dist/lib/node/{chunk-W64EOF2B.cjs.map → chunk-DNKJCPU7.cjs.map} +1 -1
  35. package/dist/lib/node/{client-BKTGRBYM.cjs → client-Q3EQS4HA.cjs} +10 -9
  36. package/dist/lib/node/client-Q3EQS4HA.cjs.map +7 -0
  37. package/dist/lib/node/index.cjs +19 -19
  38. package/dist/lib/node/index.cjs.map +3 -3
  39. package/dist/lib/node/{intent-resolver-U2576ALY.cjs → intent-resolver-Q4QBA5B2.cjs} +34 -34
  40. package/dist/lib/node/intent-resolver-Q4QBA5B2.cjs.map +7 -0
  41. package/dist/lib/node/meta.json +1 -1
  42. package/dist/lib/node/{migrations-TGNI4FVL.cjs → migrations-6FEWMF7U.cjs} +12 -10
  43. package/dist/lib/node/migrations-6FEWMF7U.cjs.map +7 -0
  44. package/dist/lib/node/{react-context-SF3M3YLR.cjs → react-context-JS7Y5ZOK.cjs} +6 -6
  45. package/dist/lib/node/{react-surface-BSTIXMER.cjs → react-surface-GHKLUOKW.cjs} +24 -24
  46. package/dist/lib/node/{schema-INQ72F54.cjs → schema-defs-TA52ARBO.cjs} +14 -12
  47. package/dist/lib/node/schema-defs-TA52ARBO.cjs.map +7 -0
  48. package/dist/lib/node/types.cjs +3 -3
  49. package/dist/lib/node/types.cjs.map +1 -1
  50. package/dist/lib/node-esm/{app-graph-builder-KIN6NWFI.mjs → app-graph-builder-OZEAAKNT.mjs} +36 -32
  51. package/dist/lib/node-esm/app-graph-builder-OZEAAKNT.mjs.map +7 -0
  52. package/dist/lib/node-esm/{chunk-K3KGGSJZ.mjs → chunk-37E3EI46.mjs} +2 -2
  53. package/dist/lib/{browser/chunk-BGY6BSUC.mjs.map → node-esm/chunk-37E3EI46.mjs.map} +1 -1
  54. package/dist/lib/node-esm/{chunk-BP56BGZR.mjs → chunk-FJYSQRBO.mjs} +2 -2
  55. package/dist/lib/{browser/chunk-4PLF3BEB.mjs.map → node-esm/chunk-FJYSQRBO.mjs.map} +1 -1
  56. package/dist/lib/node-esm/chunk-STGGUFV2.mjs +112 -0
  57. package/dist/lib/node-esm/chunk-STGGUFV2.mjs.map +7 -0
  58. package/dist/lib/node-esm/chunk-ULXZABZ4.mjs +695 -0
  59. package/dist/lib/node-esm/chunk-ULXZABZ4.mjs.map +7 -0
  60. package/dist/lib/node-esm/{client-QQD6WFOB.mjs → client-EBFQZRSF.mjs} +5 -4
  61. package/dist/lib/node-esm/client-EBFQZRSF.mjs.map +7 -0
  62. package/dist/lib/node-esm/index.mjs +12 -12
  63. package/dist/lib/node-esm/index.mjs.map +3 -3
  64. package/dist/lib/node-esm/{intent-resolver-G25U4UGI.mjs → intent-resolver-2GCG4LCE.mjs} +14 -14
  65. package/dist/lib/node-esm/intent-resolver-2GCG4LCE.mjs.map +7 -0
  66. package/dist/lib/node-esm/meta.json +1 -1
  67. package/dist/lib/node-esm/{migrations-IVGATGZR.mjs → migrations-AK43ZE6G.mjs} +9 -7
  68. package/dist/lib/node-esm/migrations-AK43ZE6G.mjs.map +7 -0
  69. package/dist/lib/node-esm/{react-context-EAKKTE5A.mjs → react-context-6N7NMUJE.mjs} +2 -2
  70. package/dist/lib/node-esm/{react-surface-ZPI7T4EM.mjs → react-surface-UCUL26AF.mjs} +3 -3
  71. package/dist/lib/node-esm/schema-defs-O2KQQXJH.mjs +26 -0
  72. package/dist/lib/node-esm/schema-defs-O2KQQXJH.mjs.map +7 -0
  73. package/dist/lib/node-esm/types.mjs +1 -1
  74. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  75. package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
  76. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  77. package/dist/types/src/capabilities/client.d.ts +3 -3
  78. package/dist/types/src/capabilities/client.d.ts.map +1 -1
  79. package/dist/types/src/capabilities/index.d.ts +5 -181
  80. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  81. package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
  82. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  83. package/dist/types/src/capabilities/migrations.d.ts +2 -2
  84. package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
  85. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  86. package/dist/types/src/capabilities/schema-defs.d.ts +4 -0
  87. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
  88. package/dist/types/src/components/DevicesContainer.d.ts +4 -3
  89. package/dist/types/src/components/DevicesContainer.d.ts.map +1 -1
  90. package/dist/types/src/components/DevicesContainer.stories.d.ts.map +1 -1
  91. package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
  92. package/dist/types/src/components/ProfileContainer.d.ts.map +1 -1
  93. package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
  94. package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +1 -1
  95. package/dist/types/src/components/ResetDialog.d.ts.map +1 -1
  96. package/dist/types/src/components/ResetDialog.stories.d.ts.map +1 -1
  97. package/dist/types/src/types.d.ts +59 -53
  98. package/dist/types/src/types.d.ts.map +1 -1
  99. package/dist/types/tsconfig.tsbuildinfo +1 -1
  100. package/package.json +33 -26
  101. package/src/ClientPlugin.ts +2 -2
  102. package/src/capabilities/app-graph-builder.ts +94 -76
  103. package/src/capabilities/client.ts +4 -3
  104. package/src/capabilities/index.ts +1 -1
  105. package/src/capabilities/intent-resolver.ts +11 -11
  106. package/src/capabilities/migrations.ts +14 -11
  107. package/src/capabilities/schema-defs.ts +29 -0
  108. package/src/components/DevicesContainer.stories.tsx +7 -3
  109. package/src/components/DevicesContainer.tsx +85 -61
  110. package/src/components/ProfileContainer.stories.tsx +1 -1
  111. package/src/components/ProfileContainer.tsx +30 -21
  112. package/src/components/RecoveryCodeDialog.stories.tsx +1 -1
  113. package/src/components/RecoveryCredentialsContainer.stories.tsx +2 -2
  114. package/src/components/RecoveryCredentialsContainer.tsx +48 -46
  115. package/src/components/ResetDialog.stories.tsx +7 -1
  116. package/src/translations.ts +2 -2
  117. package/src/types.ts +60 -47
  118. package/dist/lib/browser/app-graph-builder-WAS4YZNA.mjs.map +0 -7
  119. package/dist/lib/browser/chunk-AN7FJKIJ.mjs +0 -105
  120. package/dist/lib/browser/chunk-AN7FJKIJ.mjs.map +0 -7
  121. package/dist/lib/browser/chunk-XZ4TQC56.mjs +0 -619
  122. package/dist/lib/browser/chunk-XZ4TQC56.mjs.map +0 -7
  123. package/dist/lib/browser/client-LV67Q3R7.mjs.map +0 -7
  124. package/dist/lib/browser/intent-resolver-NCISOZW4.mjs.map +0 -7
  125. package/dist/lib/browser/migrations-3DWFOL5Q.mjs +0 -21
  126. package/dist/lib/browser/migrations-3DWFOL5Q.mjs.map +0 -7
  127. package/dist/lib/browser/schema-JQAT6Q7S.mjs +0 -23
  128. package/dist/lib/browser/schema-JQAT6Q7S.mjs.map +0 -7
  129. package/dist/lib/node/app-graph-builder-PXOJZJO5.cjs.map +0 -7
  130. package/dist/lib/node/chunk-3JE5BFCT.cjs +0 -644
  131. package/dist/lib/node/chunk-3JE5BFCT.cjs.map +0 -7
  132. package/dist/lib/node/chunk-FROKBEVH.cjs +0 -125
  133. package/dist/lib/node/chunk-FROKBEVH.cjs.map +0 -7
  134. package/dist/lib/node/client-BKTGRBYM.cjs.map +0 -7
  135. package/dist/lib/node/intent-resolver-U2576ALY.cjs.map +0 -7
  136. package/dist/lib/node/migrations-TGNI4FVL.cjs.map +0 -7
  137. package/dist/lib/node/schema-INQ72F54.cjs.map +0 -7
  138. package/dist/lib/node-esm/app-graph-builder-KIN6NWFI.mjs.map +0 -7
  139. package/dist/lib/node-esm/chunk-AD5W5QCQ.mjs +0 -106
  140. package/dist/lib/node-esm/chunk-AD5W5QCQ.mjs.map +0 -7
  141. package/dist/lib/node-esm/chunk-LZN2UNN7.mjs +0 -620
  142. package/dist/lib/node-esm/chunk-LZN2UNN7.mjs.map +0 -7
  143. package/dist/lib/node-esm/client-QQD6WFOB.mjs.map +0 -7
  144. package/dist/lib/node-esm/intent-resolver-G25U4UGI.mjs.map +0 -7
  145. package/dist/lib/node-esm/migrations-IVGATGZR.mjs.map +0 -7
  146. package/dist/lib/node-esm/schema-OK7HY3JJ.mjs +0 -24
  147. package/dist/lib/node-esm/schema-OK7HY3JJ.mjs.map +0 -7
  148. package/dist/types/src/capabilities/schema.d.ts +0 -4
  149. package/dist/types/src/capabilities/schema.d.ts.map +0 -1
  150. package/src/capabilities/schema.ts +0 -26
  151. /package/dist/lib/browser/{react-context-WEH7SL4I.mjs.map → react-context-IE2O2OYK.mjs.map} +0 -0
  152. /package/dist/lib/browser/{react-surface-J7SZR2J6.mjs.map → react-surface-CKZHHWY3.mjs.map} +0 -0
  153. /package/dist/lib/node/{react-context-SF3M3YLR.cjs.map → react-context-JS7Y5ZOK.cjs.map} +0 -0
  154. /package/dist/lib/node/{react-surface-BSTIXMER.cjs.map → react-surface-GHKLUOKW.cjs.map} +0 -0
  155. /package/dist/lib/node-esm/{react-context-EAKKTE5A.mjs.map → react-context-6N7NMUJE.mjs.map} +0 -0
  156. /package/dist/lib/node-esm/{react-surface-ZPI7T4EM.mjs.map → react-surface-UCUL26AF.mjs.map} +0 -0
@@ -2,14 +2,21 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Schema as S } from 'effect';
5
+ import { Schema } from 'effect';
6
6
  import React, { type ChangeEvent, useCallback, useMemo, useState } from 'react';
7
7
 
8
8
  import { debounce } from '@dxos/async';
9
9
  import { useClient } from '@dxos/react-client';
10
10
  import { type Identity, useIdentity } from '@dxos/react-client/halo';
11
11
  import { ButtonGroup, Clipboard, Input, useTranslation } from '@dxos/react-ui';
12
- import { Form, type InputComponent, ControlItem, ControlItemInput, ControlSection } from '@dxos/react-ui-form';
12
+ import {
13
+ Form,
14
+ type InputComponent,
15
+ ControlItem,
16
+ ControlItemInput,
17
+ ControlSection,
18
+ ControlPage,
19
+ } from '@dxos/react-ui-form';
13
20
  import { EmojiPickerBlock, HuePicker } from '@dxos/react-ui-pickers';
14
21
  import { StackItem } from '@dxos/react-ui-stack';
15
22
  import { hexToHue, hexToEmoji } from '@dxos/util';
@@ -136,28 +143,30 @@ export const ProfileContainer = () => {
136
143
  );
137
144
 
138
145
  return (
139
- <StackItem.Content classNames='p-2 block overflow-y-auto'>
140
- <Clipboard.Provider>
141
- <ControlSection title={t('profile label')} description={t('profile description')}>
142
- <Form
143
- schema={ProfileSchema}
144
- values={values}
145
- autoSave
146
- onSave={handleSave}
147
- Custom={customElements}
148
- classNames='p-0 container-max-width [&_[role="form"]]:grid [&_[role="form"]]:grid-cols-1 md:[&_[role="form"]]:grid-cols-[1fr_min-content] [&_[role="form"]]:gap-4'
149
- />
150
- </ControlSection>
151
- </Clipboard.Provider>
146
+ <StackItem.Content classNames='block overflow-y-auto'>
147
+ <ControlPage>
148
+ <Clipboard.Provider>
149
+ <ControlSection title={t('profile label')} description={t('profile description')}>
150
+ <Form
151
+ schema={ProfileSchema}
152
+ values={values}
153
+ autoSave
154
+ onSave={handleSave}
155
+ Custom={customElements}
156
+ classNames='p-0 container-max-width [&_[role="form"]]:grid [&_[role="form"]]:grid-cols-1 md:[&_[role="form"]]:grid-cols-[1fr_min-content] [&_[role="form"]]:gap-4'
157
+ />
158
+ </ControlSection>
159
+ </Clipboard.Provider>
160
+ </ControlPage>
152
161
  </StackItem.Content>
153
162
  );
154
163
  };
155
164
 
156
165
  // TODO(wittjosiah): Integrate annotations with translations.
157
- const ProfileSchema = S.Struct({
158
- displayName: S.String.annotations({ title: 'Display name' }),
159
- emoji: S.String.annotations({ title: 'Avatar' }),
160
- hue: S.String.annotations({ title: 'Color' }),
161
- did: S.String.annotations({ title: 'DID' }),
166
+ const ProfileSchema = Schema.Struct({
167
+ displayName: Schema.String.annotations({ title: 'Display name' }),
168
+ emoji: Schema.String.annotations({ title: 'Avatar' }),
169
+ hue: Schema.String.annotations({ title: 'Color' }),
170
+ did: Schema.String.annotations({ title: 'DID' }),
162
171
  });
163
- type Profile = S.Schema.Type<typeof ProfileSchema>;
172
+ type Profile = Schema.Schema.Type<typeof ProfileSchema>;
@@ -36,7 +36,7 @@ const meta: Meta<RecoveryCodeDialogProps> = {
36
36
  title: 'plugins/plugin-client/RecoveryCodeDialog',
37
37
  component: RecoveryCodeDialog,
38
38
  render: DefaultStory,
39
- decorators: [withClientProvider({ createIdentity: true }), withTheme, withLayout({ tooltips: true })],
39
+ decorators: [withClientProvider({ createIdentity: true }), withTheme, withLayout()],
40
40
  parameters: {
41
41
  layout: 'fullscreen',
42
42
  translations,
@@ -20,16 +20,16 @@ const meta: Meta = {
20
20
  decorators: [
21
21
  withPluginManager({
22
22
  plugins: [
23
- IntentPlugin(),
24
23
  ClientPlugin({
25
24
  onClientInitialized: async (_, client) => {
26
25
  await client.halo.createIdentity();
27
26
  },
28
27
  }),
28
+ IntentPlugin(),
29
29
  ],
30
30
  }),
31
31
  withTheme,
32
- withLayout({ tooltips: true }),
32
+ withLayout(),
33
33
  ],
34
34
  parameters: {
35
35
  layout: 'fullscreen',
@@ -7,7 +7,7 @@ import React from 'react';
7
7
  import { createIntent, useIntentDispatcher } from '@dxos/app-framework';
8
8
  import { useCredentials } from '@dxos/react-client/halo';
9
9
  import { Icon, IconButton, List, ListItem, useTranslation, Message } from '@dxos/react-ui';
10
- import { ControlGroup, ControlItem, ControlSection } from '@dxos/react-ui-form';
10
+ import { ControlGroup, ControlItem, ControlPage, ControlSection } from '@dxos/react-ui-form';
11
11
  import { StackItem } from '@dxos/react-ui-stack';
12
12
 
13
13
  import { CLIENT_PLUGIN } from '../meta';
@@ -24,51 +24,53 @@ export const RecoveryCredentialsContainer = () => {
24
24
  );
25
25
 
26
26
  return (
27
- <StackItem.Content classNames='p-2 block overflow-y-auto'>
28
- <ControlSection title={t('recovery setup dialog title')} description={t('recovery setup dialog description')}>
29
- <ControlGroup>
30
- <ControlItem title={t('create passkey label')} description={t('create passkey description')}>
31
- <IconButton
32
- label={t('create passkey label')}
33
- icon='ph--key--duotone'
34
- variant='primary'
35
- size={5}
36
- onClick={() => dispatch(createIntent(ClientAction.CreatePasskey))}
37
- />
38
- </ControlItem>
39
- <ControlItem title={t('create recovery code label')} description={t('create recovery code description')}>
40
- <IconButton
41
- label={t('create recovery code label')}
42
- icon='ph--receipt--duotone'
43
- variant='default'
44
- size={5}
45
- onClick={() => dispatch(createIntent(ClientAction.CreateRecoveryCode))}
46
- />
47
- </ControlItem>
48
- </ControlGroup>
49
- </ControlSection>
50
- <ControlSection title={t('credentials list label')}>
51
- {recoveryCredentials.length < 1 ? (
52
- <Message.Root valence='error' className='container-max-width'>
53
- <Message.Title>
54
- <Icon icon='ph--shield-warning--duotone' size={5} classNames='inline-block align-top mbs-px mie-1' />
55
- {t('no credentials title')}
56
- </Message.Title>
57
- <Message.Body>{t('no credentials message')}</Message.Body>
58
- </Message.Root>
59
- ) : (
60
- <List classNames='container-max-width pli-2'>
61
- {recoveryCredentials.map((credential) => (
62
- <ListItem.Root key={credential.id?.toHex()}>
63
- <ListItem.Endcap>
64
- <Icon icon='ph--key--regular' size={5} />
65
- </ListItem.Endcap>
66
- <ListItem.Heading>{credential.issuanceDate.toLocaleString()}</ListItem.Heading>
67
- </ListItem.Root>
68
- ))}
69
- </List>
70
- )}
71
- </ControlSection>
27
+ <StackItem.Content classNames='block overflow-y-auto'>
28
+ <ControlPage>
29
+ <ControlSection title={t('recovery setup dialog title')} description={t('recovery setup dialog description')}>
30
+ <ControlGroup>
31
+ <ControlItem title={t('create passkey label')} description={t('create passkey description')}>
32
+ <IconButton
33
+ label={t('create passkey label')}
34
+ icon='ph--key--duotone'
35
+ variant='primary'
36
+ size={5}
37
+ onClick={() => dispatch(createIntent(ClientAction.CreatePasskey))}
38
+ />
39
+ </ControlItem>
40
+ <ControlItem title={t('create recovery code label')} description={t('create recovery code description')}>
41
+ <IconButton
42
+ label={t('create recovery code label')}
43
+ icon='ph--receipt--duotone'
44
+ variant='default'
45
+ size={5}
46
+ onClick={() => dispatch(createIntent(ClientAction.CreateRecoveryCode))}
47
+ />
48
+ </ControlItem>
49
+ </ControlGroup>
50
+ </ControlSection>
51
+ <ControlSection title={t('credentials list label')}>
52
+ {recoveryCredentials.length < 1 ? (
53
+ <Message.Root valence='error' className='container-max-width'>
54
+ <Message.Title>
55
+ <Icon icon='ph--shield-warning--duotone' size={5} classNames='inline-block align-top mbs-px mie-1' />
56
+ {t('no credentials title')}
57
+ </Message.Title>
58
+ <Message.Body>{t('no credentials message')}</Message.Body>
59
+ </Message.Root>
60
+ ) : (
61
+ <List classNames='container-max-width pli-2'>
62
+ {recoveryCredentials.map((credential) => (
63
+ <ListItem.Root key={credential.id?.toHex()}>
64
+ <ListItem.Endcap>
65
+ <Icon icon='ph--key--regular' size={5} />
66
+ </ListItem.Endcap>
67
+ <ListItem.Heading>{credential.issuanceDate.toLocaleString()}</ListItem.Heading>
68
+ </ListItem.Root>
69
+ ))}
70
+ </List>
71
+ )}
72
+ </ControlSection>
73
+ </ControlPage>
72
74
  </StackItem.Content>
73
75
  );
74
76
  };
@@ -29,7 +29,13 @@ const meta: Meta<ResetDialogProps> = {
29
29
  title: 'plugins/plugin-client/ResetDialog',
30
30
  component: ResetDialog,
31
31
  render: Render,
32
- decorators: [withPluginManager({ plugins: [IntentPlugin()] }), withTheme, withLayout({ tooltips: true })],
32
+ decorators: [
33
+ withPluginManager({
34
+ plugins: [IntentPlugin()],
35
+ }),
36
+ withTheme,
37
+ withLayout(),
38
+ ],
33
39
  parameters: {
34
40
  layout: 'fullscreen',
35
41
  translations,
@@ -10,7 +10,7 @@ export default [
10
10
  [CLIENT_PLUGIN]: {
11
11
  'account label': 'User Account',
12
12
  'profile label': 'Profile',
13
- 'profile description': 'You can adjust how you’re represented in Composer here.',
13
+ 'profile description': 'You can adjust how your user settings here.',
14
14
  'devices label': 'Devices',
15
15
  'devices verbose label': 'Manage devices',
16
16
  'add device description':
@@ -42,7 +42,7 @@ export default [
42
42
  'open user account label': 'Open user account',
43
43
  'manage credentials dialog title': 'Manage Account Recovery',
44
44
  'credentials list label': 'Recovery credentials',
45
- 'no credentials title': 'There’s no way to recover your account yet.',
45
+ 'no credentials title': 'WARNING: There is currently no way to recover your account.',
46
46
  'no credentials message': 'Create a recovery credential above to secure your account.',
47
47
  'recovery setup dialog title': 'Account Security',
48
48
  'recovery setup dialog description':
package/src/types.ts CHANGED
@@ -2,84 +2,92 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { type PluginsContext } from '@dxos/app-framework';
6
- import { S } from '@dxos/echo-schema';
5
+ import { Schema } from 'effect';
6
+
7
+ import { type PluginContext } from '@dxos/app-framework';
7
8
  import { type Client, PublicKey, type ClientOptions } from '@dxos/react-client';
8
9
  import { type MaybePromise } from '@dxos/util';
9
10
 
10
11
  import { CLIENT_PLUGIN } from './meta';
11
12
 
12
13
  // TODO(wittjosiah): Factor out. Generate?
13
- const IdentitySchema = S.Struct({
14
- identityKey: S.instanceOf(PublicKey),
15
- spaceKey: S.optional(S.instanceOf(PublicKey)),
16
- profile: S.optional(
17
- S.Struct({
18
- displayName: S.optional(S.String),
19
- avatarCid: S.optional(S.String),
20
- data: S.optional(S.Record({ key: S.String, value: S.Any })),
14
+ const IdentitySchema = Schema.Struct({
15
+ identityKey: Schema.instanceOf(PublicKey),
16
+ spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),
17
+ profile: Schema.optional(
18
+ Schema.Struct({
19
+ displayName: Schema.optional(Schema.String),
20
+ avatarCid: Schema.optional(Schema.String),
21
+ data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),
21
22
  }),
22
23
  ),
23
24
  });
24
25
 
25
26
  const CLIENT_ACTION = `${CLIENT_PLUGIN}/action`;
26
27
  export namespace ClientAction {
27
- export class CreateIdentity extends S.TaggedClass<CreateIdentity>()(`${CLIENT_ACTION}/create-identity`, {
28
- input: S.Struct({
29
- displayName: S.optional(S.String),
30
- }),
28
+ const ProfileSchema = Schema.Struct({
29
+ displayName: Schema.optional(Schema.String),
30
+ avatarCid: Schema.optional(Schema.String),
31
+ data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),
32
+ });
33
+
34
+ export class CreateIdentity extends Schema.TaggedClass<CreateIdentity>()(`${CLIENT_ACTION}/create-identity`, {
35
+ input: ProfileSchema,
31
36
  output: IdentitySchema,
32
37
  }) {}
33
38
 
34
- export class JoinIdentity extends S.TaggedClass<JoinIdentity>()(`${CLIENT_ACTION}/join-identity`, {
35
- input: S.Struct({
36
- invitationCode: S.optional(S.String),
39
+ export class JoinIdentity extends Schema.TaggedClass<JoinIdentity>()(`${CLIENT_ACTION}/join-identity`, {
40
+ input: Schema.Struct({
41
+ invitationCode: Schema.optional(Schema.String),
37
42
  }),
38
- output: S.Void,
43
+ output: Schema.Void,
39
44
  }) {}
40
45
 
41
- export class ShareIdentity extends S.TaggedClass<ShareIdentity>()(`${CLIENT_ACTION}/share-identity`, {
42
- input: S.Void,
43
- output: S.Void,
46
+ export class ShareIdentity extends Schema.TaggedClass<ShareIdentity>()(`${CLIENT_ACTION}/share-identity`, {
47
+ input: Schema.Void,
48
+ output: Schema.Void,
44
49
  }) {}
45
50
 
46
- export class RecoverIdentity extends S.TaggedClass<RecoverIdentity>()(`${CLIENT_ACTION}/recover-identity`, {
47
- input: S.Void,
48
- output: S.Void,
51
+ export class RecoverIdentity extends Schema.TaggedClass<RecoverIdentity>()(`${CLIENT_ACTION}/recover-identity`, {
52
+ input: Schema.Void,
53
+ output: Schema.Void,
49
54
  }) {}
50
55
 
51
- export class ResetStorage extends S.TaggedClass<ResetStorage>()(`${CLIENT_ACTION}/reset-storage`, {
52
- input: S.Struct({
53
- mode: S.optional(S.String),
56
+ export class ResetStorage extends Schema.TaggedClass<ResetStorage>()(`${CLIENT_ACTION}/reset-storage`, {
57
+ input: Schema.Struct({
58
+ mode: Schema.optional(Schema.String),
54
59
  }),
55
- output: S.Void,
56
- }) {}
57
-
58
- export class CreateAgent extends S.TaggedClass<CreateAgent>()(`${CLIENT_ACTION}/create-agent`, {
59
- input: S.Void,
60
- output: S.Void,
60
+ output: Schema.Void,
61
61
  }) {}
62
62
 
63
- export class CreateRecoveryCode extends S.TaggedClass<CreateRecoveryCode>()(`${CLIENT_ACTION}/create-recovery-code`, {
64
- input: S.Void,
65
- output: S.Void,
63
+ export class CreateAgent extends Schema.TaggedClass<CreateAgent>()(`${CLIENT_ACTION}/create-agent`, {
64
+ input: Schema.Void,
65
+ output: Schema.Void,
66
66
  }) {}
67
67
 
68
- export class CreatePasskey extends S.TaggedClass<CreatePasskey>()(`${CLIENT_ACTION}/create-passkey`, {
69
- input: S.Void,
70
- output: S.Void,
68
+ export class CreateRecoveryCode extends Schema.TaggedClass<CreateRecoveryCode>()(
69
+ `${CLIENT_ACTION}/create-recovery-code`,
70
+ {
71
+ input: Schema.Void,
72
+ output: Schema.Void,
73
+ },
74
+ ) {}
75
+
76
+ export class CreatePasskey extends Schema.TaggedClass<CreatePasskey>()(`${CLIENT_ACTION}/create-passkey`, {
77
+ input: Schema.Void,
78
+ output: Schema.Void,
71
79
  }) {}
72
80
 
73
- export class RedeemPasskey extends S.TaggedClass<RedeemPasskey>()(`${CLIENT_ACTION}/redeem-passkey`, {
74
- input: S.Void,
75
- output: S.Void,
81
+ export class RedeemPasskey extends Schema.TaggedClass<RedeemPasskey>()(`${CLIENT_ACTION}/redeem-passkey`, {
82
+ input: Schema.Void,
83
+ output: Schema.Void,
76
84
  }) {}
77
85
 
78
- export class RedeemToken extends S.TaggedClass<RedeemToken>()(`${CLIENT_ACTION}/redeem-token`, {
79
- input: S.Struct({
80
- token: S.String,
86
+ export class RedeemToken extends Schema.TaggedClass<RedeemToken>()(`${CLIENT_ACTION}/redeem-token`, {
87
+ input: Schema.Struct({
88
+ token: Schema.String,
81
89
  }),
82
- output: S.Void,
90
+ output: Schema.Void,
83
91
  }) {}
84
92
  }
85
93
 
@@ -97,7 +105,12 @@ export type ClientPluginOptions = ClientOptions & {
97
105
  /**
98
106
  * Run after the client has been initialized.
99
107
  */
100
- onClientInitialized?: (context: PluginsContext, client: Client) => MaybePromise<void>;
108
+ onClientInitialized?: (context: PluginContext, client: Client) => MaybePromise<void>;
109
+
110
+ /**
111
+ * Called when spaces are ready.
112
+ */
113
+ onSpacesReady?: (context: PluginContext, client: Client) => MaybePromise<void>;
101
114
 
102
115
  /**
103
116
  * Called when the client is reset.
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { createIntent } from '@dxos/app-framework';\nimport { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';\nimport { createExtension, toSignal, type Node } from '@dxos/plugin-graph';\nimport { ConnectionState } from '@dxos/react-client/mesh';\n\nimport { ClientCapabilities } from './capabilities';\nimport { CLIENT_PLUGIN } from '../meta';\nimport { Account, ClientAction } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(\n Capabilities.AppGraphBuilder,\n createExtension({\n id: CLIENT_PLUGIN,\n filter: (node): node is Node<null> => node.id === 'root',\n actions: () => [\n {\n id: `${CLIENT_PLUGIN}/open-user-account`,\n data: async () => {\n const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);\n await dispatch(createIntent(ClientAction.ShareIdentity));\n },\n properties: {\n label: ['open user account label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n keyBinding: {\n macos: 'meta+shift+.',\n // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.\n windows: 'alt+shift+.',\n linux: 'alt+shift+>',\n },\n },\n },\n ],\n connector: () => {\n const client = context.requestCapability(ClientCapabilities.Client);\n const identity = client.halo.identity.get();\n const status = toSignal(\n (onChange) => client.mesh.networkStatus.subscribe(() => onChange()).unsubscribe,\n () => client.mesh.networkStatus.get(),\n );\n\n return [\n {\n id: Account.id,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['account label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n disposition: 'user-account',\n // NOTE: This currently needs to be the identity key because the fallback is generated from hex.\n userId: identity?.identityKey.toHex(),\n hue: identity?.profile?.data?.hue,\n emoji: identity?.profile?.data?.emoji,\n status: status?.swarm === ConnectionState.OFFLINE ? 'error' : 'active',\n },\n nodes: [\n {\n id: Account.Profile,\n data: Account.Profile,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['profile label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n },\n },\n {\n id: Account.Devices,\n data: Account.Devices,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['devices label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--devices--regular',\n testId: 'clientPlugin.devices',\n },\n },\n {\n id: Account.Security,\n data: Account.Security,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['security label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--key--regular',\n },\n },\n ],\n },\n ];\n },\n }),\n );\n"],
5
- "mappings": ";;;;;;;;;;;;AAIA,SAASA,oBAAoB;AAC7B,SAASC,cAAcC,mBAAwC;AAC/D,SAASC,iBAAiBC,gBAA2B;AACrD,SAASC,uBAAuB;AAMhC,IAAA,4BAAe,CAACC,YACdC,YACEC,aAAaC,iBACbC,gBAAgB;EACdC,IAAIC;EACJC,QAAQ,CAACC,SAA6BA,KAAKH,OAAO;EAClDI,SAAS,MAAM;IACb;MACEJ,IAAI,GAAGC,aAAAA;MACPI,MAAM,YAAA;AACJ,cAAM,EAAEC,iBAAiBC,SAAQ,IAAKZ,QAAQa,kBAAkBX,aAAaY,gBAAgB;AAC7F,cAAMF,SAASG,aAAaC,aAAaC,aAAa,CAAA;MACxD;MACAC,YAAY;QACVC,OAAO;UAAC;UAA2B;YAAEC,IAAId;UAAc;;QACvDe,MAAM;QACNC,YAAY;UACVC,OAAO;;UAEPC,SAAS;UACTC,OAAO;QACT;MACF;IACF;;EAEFC,WAAW,MAAA;AACT,UAAMC,SAAS3B,QAAQa,kBAAkBe,mBAAmBC,MAAM;AAClE,UAAMC,WAAWH,OAAOI,KAAKD,SAASE,IAAG;AACzC,UAAMC,SAASC,SACb,CAACC,aAAaR,OAAOS,KAAKC,cAAcC,UAAU,MAAMH,SAAAA,CAAAA,EAAYI,aACpE,MAAMZ,OAAOS,KAAKC,cAAcL,IAAG,CAAA;AAGrC,WAAO;MACL;QACE3B,IAAImC,QAAQnC;QACZoC,MAAMnC;QACNY,YAAY;UACVC,OAAO;YAAC;YAAiB;cAAEC,IAAId;YAAc;;UAC7Ce,MAAM;UACNqB,aAAa;;UAEbC,QAAQb,UAAUc,YAAYC,MAAAA;UAC9BC,KAAKhB,UAAUiB,SAASrC,MAAMoC;UAC9BE,OAAOlB,UAAUiB,SAASrC,MAAMsC;UAChCf,QAAQA,QAAQgB,UAAUC,gBAAgBC,UAAU,UAAU;QAChE;QACAC,OAAO;UACL;YACE/C,IAAImC,QAAQa;YACZ3C,MAAM8B,QAAQa;YACdZ,MAAMnC;YACNY,YAAY;cACVC,OAAO;gBAAC;gBAAiB;kBAAEC,IAAId;gBAAc;;cAC7Ce,MAAM;YACR;UACF;UACA;YACEhB,IAAImC,QAAQc;YACZ5C,MAAM8B,QAAQc;YACdb,MAAMnC;YACNY,YAAY;cACVC,OAAO;gBAAC;gBAAiB;kBAAEC,IAAId;gBAAc;;cAC7Ce,MAAM;cACNkC,QAAQ;YACV;UACF;UACA;YACElD,IAAImC,QAAQgB;YACZ9C,MAAM8B,QAAQgB;YACdf,MAAMnC;YACNY,YAAY;cACVC,OAAO;gBAAC;gBAAkB;kBAAEC,IAAId;gBAAc;;cAC9Ce,MAAM;YACR;UACF;;MAEJ;;EAEJ;AACF,CAAA,CAAA;",
6
- "names": ["createIntent", "Capabilities", "contributes", "createExtension", "toSignal", "ConnectionState", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "CLIENT_PLUGIN", "filter", "node", "actions", "data", "dispatchPromise", "dispatch", "requestCapability", "IntentDispatcher", "createIntent", "ClientAction", "ShareIdentity", "properties", "label", "ns", "icon", "keyBinding", "macos", "windows", "linux", "connector", "client", "ClientCapabilities", "Client", "identity", "halo", "get", "status", "toSignal", "onChange", "mesh", "networkStatus", "subscribe", "unsubscribe", "Account", "type", "disposition", "userId", "identityKey", "toHex", "hue", "profile", "emoji", "swarm", "ConnectionState", "OFFLINE", "nodes", "Profile", "Devices", "testId", "Security"]
7
- }
@@ -1,105 +0,0 @@
1
- import {
2
- CLIENT_PLUGIN
3
- } from "./chunk-MCEXD5XH.mjs";
4
-
5
- // packages/plugins/plugin-client/src/types.ts
6
- import { S } from "@dxos/echo-schema";
7
- import { PublicKey } from "@dxos/react-client";
8
- var IdentitySchema = S.Struct({
9
- identityKey: S.instanceOf(PublicKey),
10
- spaceKey: S.optional(S.instanceOf(PublicKey)),
11
- profile: S.optional(S.Struct({
12
- displayName: S.optional(S.String),
13
- avatarCid: S.optional(S.String),
14
- data: S.optional(S.Record({
15
- key: S.String,
16
- value: S.Any
17
- }))
18
- }))
19
- });
20
- var CLIENT_ACTION = `${CLIENT_PLUGIN}/action`;
21
- var ClientAction;
22
- (function(ClientAction2) {
23
- class CreateIdentity extends S.TaggedClass()(`${CLIENT_ACTION}/create-identity`, {
24
- input: S.Struct({
25
- displayName: S.optional(S.String)
26
- }),
27
- output: IdentitySchema
28
- }) {
29
- }
30
- ClientAction2.CreateIdentity = CreateIdentity;
31
- class JoinIdentity extends S.TaggedClass()(`${CLIENT_ACTION}/join-identity`, {
32
- input: S.Struct({
33
- invitationCode: S.optional(S.String)
34
- }),
35
- output: S.Void
36
- }) {
37
- }
38
- ClientAction2.JoinIdentity = JoinIdentity;
39
- class ShareIdentity extends S.TaggedClass()(`${CLIENT_ACTION}/share-identity`, {
40
- input: S.Void,
41
- output: S.Void
42
- }) {
43
- }
44
- ClientAction2.ShareIdentity = ShareIdentity;
45
- class RecoverIdentity extends S.TaggedClass()(`${CLIENT_ACTION}/recover-identity`, {
46
- input: S.Void,
47
- output: S.Void
48
- }) {
49
- }
50
- ClientAction2.RecoverIdentity = RecoverIdentity;
51
- class ResetStorage extends S.TaggedClass()(`${CLIENT_ACTION}/reset-storage`, {
52
- input: S.Struct({
53
- mode: S.optional(S.String)
54
- }),
55
- output: S.Void
56
- }) {
57
- }
58
- ClientAction2.ResetStorage = ResetStorage;
59
- class CreateAgent extends S.TaggedClass()(`${CLIENT_ACTION}/create-agent`, {
60
- input: S.Void,
61
- output: S.Void
62
- }) {
63
- }
64
- ClientAction2.CreateAgent = CreateAgent;
65
- class CreateRecoveryCode extends S.TaggedClass()(`${CLIENT_ACTION}/create-recovery-code`, {
66
- input: S.Void,
67
- output: S.Void
68
- }) {
69
- }
70
- ClientAction2.CreateRecoveryCode = CreateRecoveryCode;
71
- class CreatePasskey extends S.TaggedClass()(`${CLIENT_ACTION}/create-passkey`, {
72
- input: S.Void,
73
- output: S.Void
74
- }) {
75
- }
76
- ClientAction2.CreatePasskey = CreatePasskey;
77
- class RedeemPasskey extends S.TaggedClass()(`${CLIENT_ACTION}/redeem-passkey`, {
78
- input: S.Void,
79
- output: S.Void
80
- }) {
81
- }
82
- ClientAction2.RedeemPasskey = RedeemPasskey;
83
- class RedeemToken extends S.TaggedClass()(`${CLIENT_ACTION}/redeem-token`, {
84
- input: S.Struct({
85
- token: S.String
86
- }),
87
- output: S.Void
88
- }) {
89
- }
90
- ClientAction2.RedeemToken = RedeemToken;
91
- })(ClientAction || (ClientAction = {}));
92
- var Account;
93
- (function(Account2) {
94
- const _id = "dxos.org.plugin.client.account";
95
- Account2.id = `!${_id}`;
96
- Account2.Profile = `${_id}.profile`;
97
- Account2.Devices = `${_id}.devices`;
98
- Account2.Security = `${_id}.security`;
99
- })(Account || (Account = {}));
100
-
101
- export {
102
- ClientAction,
103
- Account
104
- };
105
- //# sourceMappingURL=chunk-AN7FJKIJ.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/types.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { type PluginsContext } from '@dxos/app-framework';\nimport { S } from '@dxos/echo-schema';\nimport { type Client, PublicKey, type ClientOptions } from '@dxos/react-client';\nimport { type MaybePromise } from '@dxos/util';\n\nimport { CLIENT_PLUGIN } from './meta';\n\n// TODO(wittjosiah): Factor out. Generate?\nconst IdentitySchema = S.Struct({\n identityKey: S.instanceOf(PublicKey),\n spaceKey: S.optional(S.instanceOf(PublicKey)),\n profile: S.optional(\n S.Struct({\n displayName: S.optional(S.String),\n avatarCid: S.optional(S.String),\n data: S.optional(S.Record({ key: S.String, value: S.Any })),\n }),\n ),\n});\n\nconst CLIENT_ACTION = `${CLIENT_PLUGIN}/action`;\nexport namespace ClientAction {\n export class CreateIdentity extends S.TaggedClass<CreateIdentity>()(`${CLIENT_ACTION}/create-identity`, {\n input: S.Struct({\n displayName: S.optional(S.String),\n }),\n output: IdentitySchema,\n }) {}\n\n export class JoinIdentity extends S.TaggedClass<JoinIdentity>()(`${CLIENT_ACTION}/join-identity`, {\n input: S.Struct({\n invitationCode: S.optional(S.String),\n }),\n output: S.Void,\n }) {}\n\n export class ShareIdentity extends S.TaggedClass<ShareIdentity>()(`${CLIENT_ACTION}/share-identity`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class RecoverIdentity extends S.TaggedClass<RecoverIdentity>()(`${CLIENT_ACTION}/recover-identity`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class ResetStorage extends S.TaggedClass<ResetStorage>()(`${CLIENT_ACTION}/reset-storage`, {\n input: S.Struct({\n mode: S.optional(S.String),\n }),\n output: S.Void,\n }) {}\n\n export class CreateAgent extends S.TaggedClass<CreateAgent>()(`${CLIENT_ACTION}/create-agent`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class CreateRecoveryCode extends S.TaggedClass<CreateRecoveryCode>()(`${CLIENT_ACTION}/create-recovery-code`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class CreatePasskey extends S.TaggedClass<CreatePasskey>()(`${CLIENT_ACTION}/create-passkey`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class RedeemPasskey extends S.TaggedClass<RedeemPasskey>()(`${CLIENT_ACTION}/redeem-passkey`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class RedeemToken extends S.TaggedClass<RedeemToken>()(`${CLIENT_ACTION}/redeem-token`, {\n input: S.Struct({\n token: S.String,\n }),\n output: S.Void,\n }) {}\n}\n\nexport type ClientPluginOptions = ClientOptions & {\n /**\n * Base URL for the invitation link.\n */\n invitationUrl?: string;\n\n /**\n * Query parameter for the invitation code.\n */\n invitationParam?: string;\n\n /**\n * Run after the client has been initialized.\n */\n onClientInitialized?: (context: PluginsContext, client: Client) => MaybePromise<void>;\n\n /**\n * Called when the client is reset.\n */\n onReset?: (params: { target?: string }) => MaybePromise<void>;\n};\n\nexport namespace Account {\n // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.\n const _id = 'dxos.org.plugin.client.account';\n // TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n // Ideally this should be worked into the data model in a generic way.\n export const id = `!${_id}`;\n\n export const Profile = `${_id}.profile`;\n export const Devices = `${_id}.devices`;\n export const Security = `${_id}.security`;\n}\n"],
5
- "mappings": "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",
6
- "names": ["S", "PublicKey", "IdentitySchema", "S", "Struct", "identityKey", "instanceOf", "PublicKey", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "CLIENT_ACTION", "CLIENT_PLUGIN", "ClientAction", "CreateIdentity", "TaggedClass", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token", "Account", "_id", "id", "Profile", "Devices", "Security"]
7
- }