@dxos/plugin-client 0.8.3 → 0.8.4-main.1da679c

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 (164) hide show
  1. package/dist/lib/browser/{app-graph-builder-CBRN2DMK.mjs → app-graph-builder-MCGM4PFO.mjs} +20 -20
  2. package/dist/lib/browser/app-graph-builder-MCGM4PFO.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-PSSNS4C6.mjs → chunk-3F2Q2RKC.mjs} +3 -3
  4. package/dist/lib/browser/chunk-3F2Q2RKC.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-UCVFWBKT.mjs → chunk-CAF2COXW.mjs} +3 -3
  6. package/dist/lib/browser/{chunk-5MC5HCIM.mjs → chunk-FOCQEA72.mjs} +34 -41
  7. package/dist/lib/browser/chunk-FOCQEA72.mjs.map +7 -0
  8. package/dist/lib/browser/{chunk-MCEXD5XH.mjs → chunk-GS3LDHYD.mjs} +2 -2
  9. package/dist/lib/browser/{chunk-IA3AVM4I.mjs → chunk-HLWIF3AW.mjs} +14 -15
  10. package/dist/lib/browser/chunk-HLWIF3AW.mjs.map +7 -0
  11. package/dist/lib/browser/{client-NMS3MSFP.mjs → client-H2RZI6UX.mjs} +15 -9
  12. package/dist/lib/browser/client-H2RZI6UX.mjs.map +7 -0
  13. package/dist/lib/browser/index.mjs +18 -18
  14. package/dist/lib/browser/index.mjs.map +3 -3
  15. package/dist/lib/browser/{intent-resolver-SLQZMO6I.mjs → intent-resolver-IE7KHWIY.mjs} +18 -18
  16. package/dist/lib/browser/intent-resolver-IE7KHWIY.mjs.map +7 -0
  17. package/dist/lib/browser/meta.json +1 -1
  18. package/dist/lib/browser/{migrations-QRQV6ZAM.mjs → migrations-CJY2LQHD.mjs} +6 -6
  19. package/dist/lib/{node-esm/migrations-AK43ZE6G.mjs.map → browser/migrations-CJY2LQHD.mjs.map} +2 -2
  20. package/dist/lib/browser/{react-context-IE2O2OYK.mjs → react-context-TSUCH5YS.mjs} +6 -6
  21. package/dist/lib/browser/{react-context-IE2O2OYK.mjs.map → react-context-TSUCH5YS.mjs.map} +2 -2
  22. package/dist/lib/browser/{react-surface-QFC2G27R.mjs → react-surface-WQD43JR7.mjs} +8 -8
  23. package/dist/lib/browser/{react-surface-QFC2G27R.mjs.map → react-surface-WQD43JR7.mjs.map} +3 -3
  24. package/dist/lib/browser/{schema-defs-DNRDVQQJ.mjs → schema-defs-TLXADNLY.mjs} +6 -6
  25. package/dist/lib/browser/schema-defs-TLXADNLY.mjs.map +7 -0
  26. package/dist/lib/browser/types/index.mjs +10 -0
  27. package/dist/lib/node-esm/{app-graph-builder-OZEAAKNT.mjs → app-graph-builder-BJPS5RD7.mjs} +20 -20
  28. package/dist/lib/node-esm/app-graph-builder-BJPS5RD7.mjs.map +7 -0
  29. package/dist/lib/node-esm/{chunk-37E3EI46.mjs → chunk-IOGTQFLM.mjs} +3 -3
  30. package/dist/lib/node-esm/chunk-IOGTQFLM.mjs.map +7 -0
  31. package/dist/lib/node-esm/{chunk-STGGUFV2.mjs → chunk-JG6AFSFU.mjs} +14 -15
  32. package/dist/lib/node-esm/chunk-JG6AFSFU.mjs.map +7 -0
  33. package/dist/lib/node-esm/{chunk-WHKQMAO5.mjs → chunk-MUWDSQ65.mjs} +34 -41
  34. package/dist/lib/node-esm/chunk-MUWDSQ65.mjs.map +7 -0
  35. package/dist/lib/node-esm/{chunk-HM7VB4ZV.mjs → chunk-SZLX4BVJ.mjs} +2 -2
  36. package/dist/lib/node-esm/{chunk-FJYSQRBO.mjs → chunk-UMO3ETDV.mjs} +3 -3
  37. package/dist/lib/node-esm/{client-EBFQZRSF.mjs → client-AWF6PE6V.mjs} +15 -9
  38. package/dist/lib/node-esm/client-AWF6PE6V.mjs.map +7 -0
  39. package/dist/lib/node-esm/index.mjs +18 -18
  40. package/dist/lib/node-esm/index.mjs.map +3 -3
  41. package/dist/lib/node-esm/{intent-resolver-MV55C5ED.mjs → intent-resolver-ZJ4E3NNT.mjs} +18 -18
  42. package/dist/lib/node-esm/intent-resolver-ZJ4E3NNT.mjs.map +7 -0
  43. package/dist/lib/node-esm/meta.json +1 -1
  44. package/dist/lib/node-esm/{migrations-AK43ZE6G.mjs → migrations-X6RLWYR2.mjs} +6 -6
  45. package/dist/lib/{browser/migrations-QRQV6ZAM.mjs.map → node-esm/migrations-X6RLWYR2.mjs.map} +2 -2
  46. package/dist/lib/node-esm/{react-context-6N7NMUJE.mjs → react-context-M6G62KT3.mjs} +6 -6
  47. package/dist/lib/node-esm/{react-context-6N7NMUJE.mjs.map → react-context-M6G62KT3.mjs.map} +2 -2
  48. package/dist/lib/node-esm/{react-surface-JUYTGBEM.mjs → react-surface-TXSWRGX7.mjs} +8 -8
  49. package/dist/lib/node-esm/{react-surface-JUYTGBEM.mjs.map → react-surface-TXSWRGX7.mjs.map} +3 -3
  50. package/dist/lib/node-esm/{schema-defs-O2KQQXJH.mjs → schema-defs-4PGAJ4RQ.mjs} +6 -6
  51. package/dist/lib/node-esm/schema-defs-4PGAJ4RQ.mjs.map +7 -0
  52. package/dist/lib/node-esm/{types.mjs → types/index.mjs} +3 -3
  53. package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -1
  54. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  55. package/dist/types/src/capabilities/capabilities.d.ts +2 -3
  56. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
  57. package/dist/types/src/capabilities/client.d.ts +1 -1
  58. package/dist/types/src/capabilities/client.d.ts.map +1 -1
  59. package/dist/types/src/capabilities/index.d.ts +8 -8
  60. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  61. package/dist/types/src/capabilities/intent-resolver.d.ts +1 -1
  62. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  63. package/dist/types/src/capabilities/migrations.d.ts +1 -1
  64. package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
  65. package/dist/types/src/capabilities/react-context.d.ts +2 -2
  66. package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
  67. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  68. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  69. package/dist/types/src/capabilities/schema-defs.d.ts +1 -1
  70. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -1
  71. package/dist/types/src/components/DevicesContainer.d.ts.map +1 -1
  72. package/dist/types/src/components/DevicesContainer.stories.d.ts +225 -4
  73. package/dist/types/src/components/DevicesContainer.stories.d.ts.map +1 -1
  74. package/dist/types/src/components/ProfileContainer.d.ts.map +1 -1
  75. package/dist/types/src/components/ProfileContainer.stories.d.ts +57 -4
  76. package/dist/types/src/components/ProfileContainer.stories.d.ts.map +1 -1
  77. package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts +59 -4
  78. package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts.map +1 -1
  79. package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +1 -1
  80. package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts +58 -4
  81. package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
  82. package/dist/types/src/components/ResetDialog.stories.d.ts +59 -3
  83. package/dist/types/src/components/ResetDialog.stories.d.ts.map +1 -1
  84. package/dist/types/src/translations.d.ts +46 -46
  85. package/dist/types/src/translations.d.ts.map +1 -1
  86. package/dist/types/src/types/index.d.ts +2 -0
  87. package/dist/types/src/types/index.d.ts.map +1 -0
  88. package/dist/types/src/{types.d.ts → types/schema.d.ts} +30 -24
  89. package/dist/types/src/types/schema.d.ts.map +1 -0
  90. package/dist/types/tsconfig.tsbuildinfo +1 -1
  91. package/package.json +35 -36
  92. package/src/ClientPlugin.ts +3 -3
  93. package/src/capabilities/app-graph-builder.ts +16 -15
  94. package/src/capabilities/capabilities.ts +4 -3
  95. package/src/capabilities/client.ts +6 -4
  96. package/src/capabilities/intent-resolver.ts +5 -4
  97. package/src/capabilities/migrations.ts +1 -1
  98. package/src/capabilities/react-context.tsx +2 -1
  99. package/src/capabilities/react-surface.tsx +3 -3
  100. package/src/capabilities/schema-defs.ts +3 -3
  101. package/src/components/DevicesContainer.stories.tsx +11 -10
  102. package/src/components/DevicesContainer.tsx +59 -68
  103. package/src/components/JoinDialog.tsx +1 -1
  104. package/src/components/ProfileContainer.stories.tsx +7 -6
  105. package/src/components/ProfileContainer.tsx +20 -23
  106. package/src/components/RecoveryCodeDialog.stories.tsx +9 -8
  107. package/src/components/RecoveryCredentialsContainer.stories.tsx +9 -8
  108. package/src/components/RecoveryCredentialsContainer.tsx +44 -47
  109. package/src/components/ResetDialog.stories.tsx +7 -6
  110. package/src/components/ResetDialog.tsx +1 -1
  111. package/src/translations.ts +6 -4
  112. package/src/types/index.ts +5 -0
  113. package/src/{types.ts → types/schema.ts} +14 -15
  114. package/dist/lib/browser/app-graph-builder-CBRN2DMK.mjs.map +0 -7
  115. package/dist/lib/browser/chunk-5MC5HCIM.mjs.map +0 -7
  116. package/dist/lib/browser/chunk-IA3AVM4I.mjs.map +0 -7
  117. package/dist/lib/browser/chunk-PSSNS4C6.mjs.map +0 -7
  118. package/dist/lib/browser/client-NMS3MSFP.mjs.map +0 -7
  119. package/dist/lib/browser/intent-resolver-SLQZMO6I.mjs.map +0 -7
  120. package/dist/lib/browser/schema-defs-DNRDVQQJ.mjs.map +0 -7
  121. package/dist/lib/browser/types.mjs +0 -10
  122. package/dist/lib/node/app-graph-builder-BEEYM3A5.cjs +0 -134
  123. package/dist/lib/node/app-graph-builder-BEEYM3A5.cjs.map +0 -7
  124. package/dist/lib/node/chunk-BEJWU2NE.cjs +0 -718
  125. package/dist/lib/node/chunk-BEJWU2NE.cjs.map +0 -7
  126. package/dist/lib/node/chunk-BL6EBWOS.cjs +0 -131
  127. package/dist/lib/node/chunk-BL6EBWOS.cjs.map +0 -7
  128. package/dist/lib/node/chunk-CIYUKY3J.cjs +0 -37
  129. package/dist/lib/node/chunk-CIYUKY3J.cjs.map +0 -7
  130. package/dist/lib/node/chunk-DJKWB5L6.cjs +0 -35
  131. package/dist/lib/node/chunk-DJKWB5L6.cjs.map +0 -7
  132. package/dist/lib/node/chunk-DNKJCPU7.cjs +0 -38
  133. package/dist/lib/node/chunk-DNKJCPU7.cjs.map +0 -7
  134. package/dist/lib/node/client-Q3EQS4HA.cjs +0 -51
  135. package/dist/lib/node/client-Q3EQS4HA.cjs.map +0 -7
  136. package/dist/lib/node/index.cjs +0 -175
  137. package/dist/lib/node/index.cjs.map +0 -7
  138. package/dist/lib/node/intent-resolver-QURURONO.cjs +0 -312
  139. package/dist/lib/node/intent-resolver-QURURONO.cjs.map +0 -7
  140. package/dist/lib/node/meta.json +0 -1
  141. package/dist/lib/node/migrations-6FEWMF7U.cjs +0 -39
  142. package/dist/lib/node/migrations-6FEWMF7U.cjs.map +0 -7
  143. package/dist/lib/node/react-context-JS7Y5ZOK.cjs +0 -48
  144. package/dist/lib/node/react-context-JS7Y5ZOK.cjs.map +0 -7
  145. package/dist/lib/node/react-surface-RGRHOPVK.cjs +0 -82
  146. package/dist/lib/node/react-surface-RGRHOPVK.cjs.map +0 -7
  147. package/dist/lib/node/schema-defs-TA52ARBO.cjs +0 -41
  148. package/dist/lib/node/schema-defs-TA52ARBO.cjs.map +0 -7
  149. package/dist/lib/node/types.cjs +0 -32
  150. package/dist/lib/node/types.cjs.map +0 -7
  151. package/dist/lib/node-esm/app-graph-builder-OZEAAKNT.mjs.map +0 -7
  152. package/dist/lib/node-esm/chunk-37E3EI46.mjs.map +0 -7
  153. package/dist/lib/node-esm/chunk-STGGUFV2.mjs.map +0 -7
  154. package/dist/lib/node-esm/chunk-WHKQMAO5.mjs.map +0 -7
  155. package/dist/lib/node-esm/client-EBFQZRSF.mjs.map +0 -7
  156. package/dist/lib/node-esm/intent-resolver-MV55C5ED.mjs.map +0 -7
  157. package/dist/lib/node-esm/schema-defs-O2KQQXJH.mjs.map +0 -7
  158. package/dist/types/src/types.d.ts.map +0 -1
  159. /package/dist/lib/browser/{chunk-UCVFWBKT.mjs.map → chunk-CAF2COXW.mjs.map} +0 -0
  160. /package/dist/lib/browser/{chunk-MCEXD5XH.mjs.map → chunk-GS3LDHYD.mjs.map} +0 -0
  161. /package/dist/lib/browser/{types.mjs.map → types/index.mjs.map} +0 -0
  162. /package/dist/lib/node-esm/{chunk-HM7VB4ZV.mjs.map → chunk-SZLX4BVJ.mjs.map} +0 -0
  163. /package/dist/lib/node-esm/{chunk-FJYSQRBO.mjs.map → chunk-UMO3ETDV.mjs.map} +0 -0
  164. /package/dist/lib/node-esm/{types.mjs.map → types/index.mjs.map} +0 -0
@@ -9,16 +9,16 @@ import {
9
9
  RecoveryCodeDialog,
10
10
  RecoveryCredentialsContainer,
11
11
  ResetDialog
12
- } from "./chunk-WHKQMAO5.mjs";
12
+ } from "./chunk-MUWDSQ65.mjs";
13
13
  import {
14
14
  Account
15
- } from "./chunk-STGGUFV2.mjs";
16
- import "./chunk-HM7VB4ZV.mjs";
15
+ } from "./chunk-JG6AFSFU.mjs";
16
+ import "./chunk-SZLX4BVJ.mjs";
17
17
 
18
- // packages/plugins/plugin-client/src/capabilities/react-surface.tsx
18
+ // src/capabilities/react-surface.tsx
19
19
  import React from "react";
20
- import { createSurface, Capabilities, contributes } from "@dxos/app-framework";
21
- var react_surface_default = ({ createInvitationUrl, onReset }) => contributes(Capabilities.ReactSurface, [
20
+ import { Capabilities, contributes, createSurface } from "@dxos/app-framework";
21
+ var react_surface_default = (({ createInvitationUrl, onReset }) => contributes(Capabilities.ReactSurface, [
22
22
  createSurface({
23
23
  id: Account.Profile,
24
24
  role: "article",
@@ -60,8 +60,8 @@ var react_surface_default = ({ createInvitationUrl, onReset }) => contributes(Ca
60
60
  onReset
61
61
  })
62
62
  })
63
- ]);
63
+ ]));
64
64
  export {
65
65
  react_surface_default as default
66
66
  };
67
- //# sourceMappingURL=react-surface-JUYTGBEM.mjs.map
67
+ //# sourceMappingURL=react-surface-TXSWRGX7.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/capabilities/react-surface.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { createSurface, Capabilities, contributes } from '@dxos/app-framework';\nimport { type JoinPanelProps } from '@dxos/shell/react';\n\nimport {\n DevicesContainer,\n JOIN_DIALOG,\n JoinDialog,\n ProfileContainer,\n RECOVERY_CODE_DIALOG,\n RecoveryCodeDialog,\n RecoveryCredentialsContainer,\n RESET_DIALOG,\n ResetDialog,\n type ResetDialogProps,\n type RecoveryCodeDialogProps,\n} from '../components';\nimport { Account, type ClientPluginOptions } from '../types';\n\ntype ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {\n createInvitationUrl: (invitationCode: string) => string;\n};\n\nexport default ({ createInvitationUrl, onReset }: ReactSurfaceOptions) =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: Account.Profile,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Profile,\n component: () => <ProfileContainer />,\n }),\n createSurface({\n id: Account.Devices,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Devices,\n component: ({ data }) => <DevicesContainer createInvitationUrl={createInvitationUrl} />,\n }),\n createSurface({\n id: Account.Security,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Security,\n component: () => <RecoveryCredentialsContainer />,\n }),\n createSurface({\n id: JOIN_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: JoinPanelProps } => data.component === JOIN_DIALOG,\n component: ({ data }) => <JoinDialog {...data.props} />,\n }),\n createSurface({\n id: RECOVERY_CODE_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: RecoveryCodeDialogProps } => data.component === RECOVERY_CODE_DIALOG,\n component: ({ data }) => <RecoveryCodeDialog {...data.props} />,\n }),\n createSurface({\n id: RESET_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: ResetDialogProps } => data.component === RESET_DIALOG,\n component: ({ data }) => <ResetDialog {...data.props} onReset={onReset} />,\n }),\n ]);\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,eAAeC,cAAcC,mBAAmB;AAsBzD,IAAA,wBAAe,CAAC,EAAEC,qBAAqBC,QAAO,MAC5CC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAIC,QAAQC;IACZC,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQC;IACxDK,WAAW,MAAM,sBAAA,cAACC,kBAAAA,IAAAA;EACpB,CAAA;EACAT,cAAc;IACZC,IAAIC,QAAQQ;IACZN,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQQ;IACxDF,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACK,kBAAAA;MAAiBhB;;EAC7C,CAAA;EACAK,cAAc;IACZC,IAAIC,QAAQU;IACZR,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQU;IACxDJ,WAAW,MAAM,sBAAA,cAACK,8BAAAA,IAAAA;EACpB,CAAA;EACAb,cAAc;IACZC,IAAIa;IACJV,MAAM;IACNC,QAAQ,CAACC,SAA4CA,KAAKE,cAAcM;IACxEN,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACS,YAAeT,KAAKU,KAAK;EACrD,CAAA;EACAhB,cAAc;IACZC,IAAIgB;IACJb,MAAM;IACNC,QAAQ,CAACC,SAAqDA,KAAKE,cAAcS;IACjFT,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACY,oBAAuBZ,KAAKU,KAAK;EAC7D,CAAA;EACAhB,cAAc;IACZC,IAAIkB;IACJf,MAAM;IACNC,QAAQ,CAACC,SAA8CA,KAAKE,cAAcW;IAC1EX,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACc,aAAAA;MAAa,GAAGd,KAAKU;MAAOpB;;EACxD,CAAA;CACD;",
6
- "names": ["React", "createSurface", "Capabilities", "contributes", "createInvitationUrl", "onReset", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "Account", "Profile", "role", "filter", "data", "subject", "component", "ProfileContainer", "Devices", "DevicesContainer", "Security", "RecoveryCredentialsContainer", "JOIN_DIALOG", "JoinDialog", "props", "RECOVERY_CODE_DIALOG", "RecoveryCodeDialog", "RESET_DIALOG", "ResetDialog"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { type JoinPanelProps } from '@dxos/shell/react';\n\nimport {\n DevicesContainer,\n JOIN_DIALOG,\n JoinDialog,\n ProfileContainer,\n RECOVERY_CODE_DIALOG,\n RESET_DIALOG,\n RecoveryCodeDialog,\n type RecoveryCodeDialogProps,\n RecoveryCredentialsContainer,\n ResetDialog,\n type ResetDialogProps,\n} from '../components';\nimport { Account, type ClientPluginOptions } from '../types';\n\ntype ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {\n createInvitationUrl: (invitationCode: string) => string;\n};\n\nexport default ({ createInvitationUrl, onReset }: ReactSurfaceOptions) =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: Account.Profile,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Profile,\n component: () => <ProfileContainer />,\n }),\n createSurface({\n id: Account.Devices,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Devices,\n component: ({ data }) => <DevicesContainer createInvitationUrl={createInvitationUrl} />,\n }),\n createSurface({\n id: Account.Security,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Security,\n component: () => <RecoveryCredentialsContainer />,\n }),\n createSurface({\n id: JOIN_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: JoinPanelProps } => data.component === JOIN_DIALOG,\n component: ({ data }) => <JoinDialog {...data.props} />,\n }),\n createSurface({\n id: RECOVERY_CODE_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: RecoveryCodeDialogProps } => data.component === RECOVERY_CODE_DIALOG,\n component: ({ data }) => <RecoveryCodeDialog {...data.props} />,\n }),\n createSurface({\n id: RESET_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: ResetDialogProps } => data.component === RESET_DIALOG,\n component: ({ data }) => <ResetDialog {...data.props} onReset={onReset} />,\n }),\n ]);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AAsBzD,IAAA,yBAAe,CAAC,EAAEC,qBAAqBC,QAAO,MAC5CC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAIC,QAAQC;IACZC,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQC;IACxDK,WAAW,MAAM,sBAAA,cAACC,kBAAAA,IAAAA;EACpB,CAAA;EACAT,cAAc;IACZC,IAAIC,QAAQQ;IACZN,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQQ;IACxDF,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACK,kBAAAA;MAAiBhB;;EAC7C,CAAA;EACAK,cAAc;IACZC,IAAIC,QAAQU;IACZR,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQU;IACxDJ,WAAW,MAAM,sBAAA,cAACK,8BAAAA,IAAAA;EACpB,CAAA;EACAb,cAAc;IACZC,IAAIa;IACJV,MAAM;IACNC,QAAQ,CAACC,SAA4CA,KAAKE,cAAcM;IACxEN,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACS,YAAeT,KAAKU,KAAK;EACrD,CAAA;EACAhB,cAAc;IACZC,IAAIgB;IACJb,MAAM;IACNC,QAAQ,CAACC,SAAqDA,KAAKE,cAAcS;IACjFT,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACY,oBAAuBZ,KAAKU,KAAK;EAC7D,CAAA;EACAhB,cAAc;IACZC,IAAIkB;IACJf,MAAM;IACNC,QAAQ,CAACC,SAA8CA,KAAKE,cAAcW;IAC1EX,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACc,aAAAA;MAAa,GAAGd,KAAKU;MAAOpB;;EACxD,CAAA;CACD;",
6
+ "names": ["React", "Capabilities", "contributes", "createSurface", "createInvitationUrl", "onReset", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "Account", "Profile", "role", "filter", "data", "subject", "component", "ProfileContainer", "Devices", "DevicesContainer", "Security", "RecoveryCredentialsContainer", "JOIN_DIALOG", "JoinDialog", "props", "RECOVERY_CODE_DIALOG", "RecoveryCodeDialog", "RESET_DIALOG", "ResetDialog"]
7
7
  }
@@ -1,12 +1,12 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  ClientCapabilities
4
- } from "./chunk-37E3EI46.mjs";
5
- import "./chunk-HM7VB4ZV.mjs";
4
+ } from "./chunk-IOGTQFLM.mjs";
5
+ import "./chunk-SZLX4BVJ.mjs";
6
6
 
7
- // packages/plugins/plugin-client/src/capabilities/schema-defs.ts
7
+ // src/capabilities/schema-defs.ts
8
8
  import { Capabilities, contributes } from "@dxos/app-framework";
9
- var schema_defs_default = (context) => {
9
+ var schema_defs_default = ((context) => {
10
10
  const registry = context.getCapability(Capabilities.RxRegistry);
11
11
  const client = context.getCapability(ClientCapabilities.Client);
12
12
  let previous = [];
@@ -19,8 +19,8 @@ var schema_defs_default = (context) => {
19
19
  immediate: true
20
20
  });
21
21
  return contributes(Capabilities.Null, null, () => cancel());
22
- };
22
+ });
23
23
  export {
24
24
  schema_defs_default as default
25
25
  };
26
- //# sourceMappingURL=schema-defs-O2KQQXJH.mjs.map
26
+ //# sourceMappingURL=schema-defs-4PGAJ4RQ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/schema-defs.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';\nimport { type Type } from '@dxos/echo';\n\nimport { ClientCapabilities } from './capabilities';\n\nexport default (context: PluginContext) => {\n const registry = context.getCapability(Capabilities.RxRegistry);\n const client = context.getCapability(ClientCapabilities.Client);\n\n // TODO(wittjosiah): Unregister schemas when they are disabled.\n let previous: Type.Obj.Any[] = [];\n const cancel = registry.subscribe(\n context.capabilities(ClientCapabilities.Schema),\n (_schemas) => {\n const schemas = Array.from(new Set(_schemas.flat()));\n // TODO(wittjosiah): Filter out schemas which the client has already registered.\n const newSchemas = schemas.filter((schema) => !previous.includes(schema));\n previous = schemas;\n client.addTypes(newSchemas);\n },\n { immediate: true },\n );\n\n return contributes(Capabilities.Null, null, () => cancel());\n};\n"],
5
+ "mappings": ";;;;;;;AAIA,SAASA,cAAkCC,mBAAmB;AAK9D,IAAA,uBAAe,CAACC,YAAAA;AACd,QAAMC,WAAWD,QAAQE,cAAcC,aAAaC,UAAU;AAC9D,QAAMC,SAASL,QAAQE,cAAcI,mBAAmBC,MAAM;AAG9D,MAAIC,WAA2B,CAAA;AAC/B,QAAMC,SAASR,SAASS,UACtBV,QAAQW,aAAaL,mBAAmBM,MAAM,GAC9C,CAACC,aAAAA;AACC,UAAMC,UAAUC,MAAMC,KAAK,IAAIC,IAAIJ,SAASK,KAAI,CAAA,CAAA;AAEhD,UAAMC,aAAaL,QAAQM,OAAO,CAACC,WAAW,CAACb,SAASc,SAASD,MAAAA,CAAAA;AACjEb,eAAWM;AACXT,WAAOkB,SAASJ,UAAAA;EAClB,GACA;IAAEK,WAAW;EAAK,CAAA;AAGpB,SAAOC,YAAYtB,aAAauB,MAAM,MAAM,MAAMjB,OAAAA,CAAAA;AACpD;",
6
+ "names": ["Capabilities", "contributes", "context", "registry", "getCapability", "Capabilities", "RxRegistry", "client", "ClientCapabilities", "Client", "previous", "cancel", "subscribe", "capabilities", "Schema", "_schemas", "schemas", "Array", "from", "Set", "flat", "newSchemas", "filter", "schema", "includes", "addTypes", "immediate", "contributes", "Null"]
7
+ }
@@ -2,10 +2,10 @@ import { createRequire } from 'node:module';const require = createRequire(import
2
2
  import {
3
3
  Account,
4
4
  ClientAction
5
- } from "./chunk-STGGUFV2.mjs";
6
- import "./chunk-HM7VB4ZV.mjs";
5
+ } from "../chunk-JG6AFSFU.mjs";
6
+ import "../chunk-SZLX4BVJ.mjs";
7
7
  export {
8
8
  Account,
9
9
  ClientAction
10
10
  };
11
- //# sourceMappingURL=types.mjs.map
11
+ //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,4 @@
1
1
  import { type PluginContext } from '@dxos/app-framework';
2
- declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-graph").BuilderExtensions>;
2
+ declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>;
3
3
  export default _default;
4
4
  //# sourceMappingURL=app-graph-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAQA,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBAQpE,SAAS,aAAa;AAAtC,wBAgGI"}
1
+ {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAQA,OAAO,EAAgB,KAAK,aAAa,EAAe,MAAM,qBAAqB,CAAC;yBASpE,SAAS,aAAa;AAAtC,wBAgGI"}
@@ -1,10 +1,9 @@
1
1
  import { type Client } from '@dxos/client';
2
2
  import { type ObjectMigration } from '@dxos/client/echo';
3
- import { type TypedObject } from '@dxos/echo-schema';
4
3
  export declare namespace ClientCapabilities {
5
4
  const Client: import("@dxos/app-framework").InterfaceDef<Client>;
6
- const Schema: import("@dxos/app-framework").InterfaceDef<TypedObject<any, any>[]>;
7
- const SchemaWhiteList: import("@dxos/app-framework").InterfaceDef<TypedObject<any, any>[]>;
5
+ const Schema: import("@dxos/app-framework").InterfaceDef<import("effect/Schema").Schema.AnyNoContext[]>;
6
+ const SchemaWhiteList: import("@dxos/app-framework").InterfaceDef<import("effect/Schema").Schema.AnyNoContext[]>;
8
7
  const Migration: import("@dxos/app-framework").InterfaceDef<ObjectMigration[]>;
9
8
  }
10
9
  //# sourceMappingURL=capabilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/capabilities.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,yBAAiB,kBAAkB,CAAC;IAC3B,MAAM,MAAM,oDAAiE,CAAC;IAC9E,MAAM,MAAM,qEAAwE,CAAC;IACrF,MAAM,eAAe,qEAAkF,CAAC;IACxG,MAAM,SAAS,+DAA+E,CAAC;CACvG"}
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/capabilities.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKzD,yBAAiB,kBAAkB,CAAC;IAC3B,MAAM,MAAM,oDAAiE,CAAC;IAC9E,MAAM,MAAM,2FAAyE,CAAC;IAEtF,MAAM,eAAe,2FAAmF,CAAC;IACzG,MAAM,SAAS,+DAA+E,CAAC;CACvG"}
@@ -4,6 +4,6 @@ import { type ClientPluginOptions } from '../types';
4
4
  type ClientCapabilityOptions = Omit<ClientPluginOptions, 'appKey' | 'invitationUrl' | 'invitationParam' | 'onReset'> & {
5
5
  context: PluginContext;
6
6
  };
7
- declare const _default: ({ context, onClientInitialized, onSpacesReady, ...options }: ClientCapabilityOptions) => Promise<import("@dxos/app-framework").Capability<Client>>;
7
+ declare const _default: ({ context, onClientInitialized, onSpacesReady, ...options }: ClientCapabilityOptions) => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Client>>>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAI5C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,KAAK,uBAAuB,GAAG,IAAI,CAAC,mBAAmB,EAAE,QAAQ,GAAG,eAAe,GAAG,iBAAiB,GAAG,SAAS,CAAC,GAAG;IACrH,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;yBAEoB,6DAA6D,uBAAuB;AAA1G,wBAyBE"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG5C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAIpD,KAAK,uBAAuB,GAAG,IAAI,CAAC,mBAAmB,EAAE,QAAQ,GAAG,eAAe,GAAG,iBAAiB,GAAG,SAAS,CAAC,GAAG;IACrH,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;yBAEoB,6DAA6D,uBAAuB;AAA1G,wBA0BE"}
@@ -1,20 +1,20 @@
1
- export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-graph").BuilderExtensions> | import("@dxos/app-framework").AnyCapability[]>>;
1
+ export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-graph").BuilderExtensions>> | import("@dxos/app-framework").AnyCapability[]>>;
2
2
  export declare const Client: (props?: (Omit<import("../types").ClientPluginOptions, "appKey" | "invitationUrl" | "invitationParam" | "onReset"> & {
3
3
  context: import("@dxos/app-framework").PluginContext;
4
- }) | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/client").Client> | import("@dxos/app-framework").AnyCapability[]>>;
4
+ }) | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/client").Client>> | import("@dxos/app-framework").AnyCapability[]>>;
5
5
  export declare const IntentResolver: (props?: {
6
6
  context: import("@dxos/app-framework").PluginContext;
7
7
  appName?: string;
8
- } | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
9
- export declare const Migrations: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<null> | import("@dxos/app-framework").AnyCapability[]>>;
10
- export declare const ReactContext: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<Readonly<{
8
+ } | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-framework").Capabilities.IntentResolver>> | import("@dxos/app-framework").AnyCapability[]>>;
9
+ export declare const Migrations: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<null>> | import("@dxos/app-framework").AnyCapability[]>>;
10
+ export declare const ReactContext: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Readonly<{
11
11
  id: string;
12
12
  dependsOn?: string[];
13
13
  context: import("react").FC<import("react").PropsWithChildren>;
14
- }>> | import("@dxos/app-framework").AnyCapability[]>>;
14
+ }>>> | import("@dxos/app-framework").AnyCapability[]>>;
15
15
  export declare const ReactSurface: (props?: (Pick<import("../types").ClientPluginOptions, "onReset"> & {
16
16
  createInvitationUrl: (invitationCode: string) => string;
17
- }) | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
18
- export declare const SchemaDefs: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<null> | import("@dxos/app-framework").AnyCapability[]>>;
17
+ }) | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-framework").Capabilities.ReactSurface>> | import("@dxos/app-framework").AnyCapability[]>>;
18
+ export declare const SchemaDefs: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<null>> | import("@dxos/app-framework").AnyCapability[]>>;
19
19
  export * from './capabilities';
20
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,oOAAkD,CAAC;AAC/E,eAAO,MAAM,MAAM;;kKAAuC,CAAC;AAC3D,eAAO,MAAM,cAAc;;;6LAAgD,CAAC;AAC5E,eAAO,MAAM,UAAU,6LAA2C,CAAC;AACnE,eAAO,MAAM,YAAY;;;;qDAA8C,CAAC;AACxE,eAAO,MAAM,YAAY;;4LAA8C,CAAC;AACxE,eAAO,MAAM,UAAU,6LAA4C,CAAC;AAEpE,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,gRAAkD,CAAC;AAC/E,eAAO,MAAM,MAAM;;8MAAuC,CAAC;AAC3D,eAAO,MAAM,cAAc;;;yOAAgD,CAAC;AAC5E,eAAO,MAAM,UAAU,yOAA2C,CAAC;AACnE,eAAO,MAAM,YAAY;;;;sDAA8C,CAAC;AACxE,eAAO,MAAM,YAAY;;wOAA8C,CAAC;AACxE,eAAO,MAAM,UAAU,yOAA4C,CAAC;AAEpE,cAAc,gBAAgB,CAAC"}
@@ -3,6 +3,6 @@ type IntentResolverOptions = {
3
3
  context: PluginContext;
4
4
  appName?: string;
5
5
  };
6
- declare const _default: ({ context, appName }: IntentResolverOptions) => import("@dxos/app-framework").Capability<Capabilities.IntentResolver>;
6
+ declare const _default: ({ context, appName }: IntentResolverOptions) => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.IntentResolver>>;
7
7
  export default _default;
8
8
  //# sourceMappingURL=intent-resolver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EAMZ,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAC;AAW7B,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;yBAIc,sBAAmC,qBAAqB;AAAxE,wBAyNK"}
1
+ {"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EAEZ,KAAK,aAAa,EAKnB,MAAM,qBAAqB,CAAC;AAY7B,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;yBAIc,sBAAmC,qBAAqB;AAAxE,wBAyNK"}
@@ -1,4 +1,4 @@
1
1
  import { type PluginContext } from '@dxos/app-framework';
2
- declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<null>;
2
+ declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<null>>;
3
3
  export default _default;
4
4
  //# sourceMappingURL=migrations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBAIpE,SAAS,aAAa;AAAtC,wBAgBE"}
1
+ {"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,aAAa,EAAe,MAAM,qBAAqB,CAAC;yBAIpE,SAAS,aAAa;AAAtC,wBAgBE"}
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- declare const _default: () => import("@dxos/app-framework").Capability<Readonly<{
2
+ declare const _default: () => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Readonly<{
3
3
  id: string;
4
4
  dependsOn?: string[];
5
5
  context: React.FC<React.PropsWithChildren>;
6
- }>>;
6
+ }>>>;
7
7
  export default _default;
8
8
  //# sourceMappingURL=react-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAQ1B,wBAOK"}
1
+ {"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAS1B,wBAOK"}
@@ -3,6 +3,6 @@ import { type ClientPluginOptions } from '../types';
3
3
  type ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {
4
4
  createInvitationUrl: (invitationCode: string) => string;
5
5
  };
6
- declare const _default: ({ createInvitationUrl, onReset }: ReactSurfaceOptions) => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
6
+ declare const _default: ({ createInvitationUrl, onReset }: ReactSurfaceOptions) => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.ReactSurface>>;
7
7
  export default _default;
8
8
  //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAiB,YAAY,EAAe,MAAM,qBAAqB,CAAC;AAgB/E,OAAO,EAAW,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE7D,KAAK,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAChE,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,CAAC;yBAEc,kCAAkC,mBAAmB;AAArE,wBAsCK"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;AAgB/E,OAAO,EAAW,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE7D,KAAK,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAChE,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,CAAC;yBAEc,kCAAkC,mBAAmB;AAArE,wBAsCK"}
@@ -1,4 +1,4 @@
1
1
  import { type PluginContext } from '@dxos/app-framework';
2
- declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<null>;
2
+ declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<null>>;
3
3
  export default _default;
4
4
  //# sourceMappingURL=schema-defs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-defs.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/schema-defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBAKpE,SAAS,aAAa;AAAtC,wBAmBE"}
1
+ {"version":3,"file":"schema-defs.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/schema-defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,aAAa,EAAe,MAAM,qBAAqB,CAAC;yBAKpE,SAAS,aAAa;AAAtC,wBAmBE"}
@@ -1 +1 @@
1
- {"version":3,"file":"DevicesContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevicesContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2C,MAAM,OAAO,CAAC;AA0BhE,MAAM,MAAM,qBAAqB,GAAG;IAClC,mBAAmB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,yBAAyB,qBAAqB,sBAsF9E,CAAC"}
1
+ {"version":3,"file":"DevicesContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevicesContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAwBhE,MAAM,MAAM,qBAAqB,GAAG;IAClC,mBAAmB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,yBAAyB,qBAAqB,sBA4E9E,CAAC"}
@@ -1,8 +1,229 @@
1
1
  import '@dxos-theme';
2
- import { type StoryObj, type Meta } from '@storybook/react';
3
- import { DevicesContainer } from './DevicesContainer';
4
- declare const meta: Meta;
2
+ import { type StoryObj } from '@storybook/react-vite';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ createInvitationUrl }: import("./DevicesContainer").DevicesContainerProps) => import("react").JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ layout: string;
9
+ translations: ({
10
+ readonly 'en-US': {
11
+ readonly [meta
12
+ .id]: {
13
+ readonly 'account label': "User Account";
14
+ readonly 'profile label': "Profile";
15
+ readonly 'profile description': "You can adjust how your user settings here.";
16
+ readonly 'devices label': "Devices";
17
+ readonly 'devices verbose label': "Manage devices";
18
+ readonly 'add device description': "Authenticating another device is a two-step process. To get started, create a code using the button below.";
19
+ readonly 'devices description': "You can add and remove devices, configure your agent in the cloud, reset this device, or log in as a different identity here.";
20
+ readonly 'create device invitation label': "Create code";
21
+ readonly 'qr code description': "Scan this QR code using the device you want to log in to, or copy the URL and share it with the new device.";
22
+ readonly 'security label': "Security";
23
+ readonly 'reset device description': "Log out from this device, erasing all the data on this device.";
24
+ readonly 'join new identity description': "Log out from this device, erasing all the data currently on this device, and use a QR code or URL to log in.";
25
+ readonly 'recover identity description': "Log out from this device, erasing all the data currently on this device, and use a passkey or recovery code to log in.";
26
+ readonly 'danger zone title': "Log out";
27
+ readonly 'danger zone description': "Because Composer is decentralized, logging out entails erasing all the data on this device. If you have any data on this device that you’d like to keep, you can log in on a separate device using a passkey or complete a peer-to-peer device invitation above.";
28
+ readonly 'display name label': "Display name";
29
+ readonly 'display name description': "Your name as it appears in the app.";
30
+ readonly 'display name input placeholder': "Enter a name";
31
+ readonly 'icon label': "Avatar";
32
+ readonly 'icon description': "The emoji used to represent you in the app.";
33
+ readonly 'hue label': "Color";
34
+ readonly 'hue description': "The color used to represent you in the app, including as your avatar’s background, your cursor as it appears to others, and the messages you send in group threads.";
35
+ readonly 'did label': "DID";
36
+ readonly 'did description': "Your unique ID.";
37
+ readonly 'open user account label': "Open user account";
38
+ readonly 'manage credentials dialog title': "Manage Account Recovery";
39
+ readonly 'credentials list label': "Recovery credentials";
40
+ readonly 'no credentials title': "WARNING: There is currently no way to recover your account.";
41
+ readonly 'no credentials message': "Create a recovery credential above to secure your account.";
42
+ readonly 'recovery setup dialog title': "Account Security";
43
+ readonly 'recovery setup dialog description': "In order to maintain access to your account you need to register a recovery credential. Passkeys are the recommended way to do this, they can be stored in your browser or in a password manager.";
44
+ readonly 'create passkey label': "Create Passkey";
45
+ readonly 'create passkey description': "A passkey is a secure and easy to use credential that can be used to recover your account.";
46
+ readonly 'create recovery code label': "Create Recovery Code";
47
+ readonly 'create recovery code description': "A recovery code is 12 word phrase representing a private key.";
48
+ readonly 'recovery code dialog title': "Recovery Code";
49
+ readonly 'recovery code dialog description': "This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your devices.";
50
+ readonly 'recovery code dialog warning 1': "NOTE: This code will not be displayed again.";
51
+ readonly 'recovery code dialog warning 2': "It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your account.";
52
+ readonly 'recovery code confirmation label': "Please confirm you have saved the code.";
53
+ readonly 'continue label': "Continue";
54
+ };
55
+ };
56
+ } | {
57
+ readonly 'en-US': {
58
+ readonly os: {
59
+ readonly "manage profile label": "Manage identity";
60
+ readonly "identity offline description": "Offline";
61
+ readonly "sidebar label": "DXOS sidebar";
62
+ readonly "copy invitation code label": "Copy URL";
63
+ readonly "copy success label": "Copied";
64
+ readonly "copy self did label": "Copy DID";
65
+ readonly "open share panel label": "View QR code";
66
+ readonly "manage credentials label": "Manage credentials";
67
+ readonly "joining space heading": "Joining space";
68
+ readonly "join space heading": "Enter space invitation";
69
+ readonly "halo heading": "Initialize device identity";
70
+ readonly "exit label": "Exit";
71
+ readonly "identity selector title": "Join as";
72
+ readonly "identity radio group title": "Select an identity that is already associated with this device";
73
+ readonly "add identity label": "Add";
74
+ readonly "continue label": "Continue";
75
+ readonly "pending label": "Pending";
76
+ readonly "back label": "Back";
77
+ readonly "next label": "Next";
78
+ readonly "close label": "Close";
79
+ readonly "auth choices label": "Choose an identity";
80
+ readonly "create identity label": "Create an identity";
81
+ readonly "create identity description": "Create a new identity.";
82
+ readonly "recover identity label": "Use a recovery code";
83
+ readonly "recover identity description": "Enter your recovery code to log in manually.";
84
+ readonly "invitation input placeholder": "Invitation code";
85
+ readonly "recovery code placeholder": "Recovery code";
86
+ readonly "display name placeholder": "Display name";
87
+ readonly "join identity label": "Use another device";
88
+ readonly "join identity description": "Add this device to an identity you\u2019re already logged into on another device.";
89
+ readonly "deselect identity label": "Back to identities";
90
+ readonly "addition method chooser title": "An identity is required to continue";
91
+ readonly "new identity input label": "Set display name";
92
+ readonly "recover identity input label": "Type or paste your recovery code";
93
+ readonly "failed to create identity message": "Failed to create an identity.";
94
+ readonly "failed to recover identity message": "Failed to recover an identity from the provided recovery code.";
95
+ readonly "failed to authenticate message": "Incorrect code.";
96
+ readonly "identity added label": "Created identity & added to this device:";
97
+ readonly "join space as identity heading": "<part>as </part><part><icon/><label>{{labelValue}}</label></part>";
98
+ readonly "error status label": "Failed";
99
+ readonly "timeout status label": "Timed out";
100
+ readonly "cancelled status label": "Cancelled";
101
+ readonly "init status label": "Ready to connect";
102
+ readonly "connecting status label": "Connecting\u2026";
103
+ readonly "connected status label": "Enter authentication code";
104
+ readonly "authenticating status label": "Enter authentication code";
105
+ readonly "success status label": "Success";
106
+ readonly "cancel label": "Cancel";
107
+ readonly "done label": "Done";
108
+ readonly "reset label": "Start over";
109
+ readonly "auth code input label": "Enter the verification code";
110
+ readonly "invitation input label": "Paste an invitation code or URL";
111
+ readonly "create device invitation label": "Add device";
112
+ readonly "create space invitation label": "Invite";
113
+ readonly "qr label": "Scan to accept invitation";
114
+ readonly "empty invitations message": "No pending invitations";
115
+ readonly "empty device list message": "No devices authenticated other than this device.";
116
+ readonly "show all spaces label": "All spaces";
117
+ readonly "all spaces label": "All spaces";
118
+ readonly "create space label": "Create a new space";
119
+ readonly "join space label": "Join a space";
120
+ readonly "show current space label": "Current space";
121
+ readonly "view space invitations label": "View space invitations";
122
+ readonly "toggle sidebar label": "Open/close sidebar";
123
+ readonly "open sidebar label": "Open sidebar";
124
+ readonly "close sidebar label": "Close sidebar";
125
+ readonly "welcome message": "Welcome";
126
+ readonly "selecting identity heading": "Selecting identity";
127
+ readonly "devices heading": "Devices";
128
+ readonly "identity heading": "Profile settings";
129
+ readonly "choose add device label": "Add device";
130
+ readonly "choose devices label": "Manage devices";
131
+ readonly "choose profile label": "Edit profile";
132
+ readonly "choose sign out label": "Reset storage";
133
+ readonly "choose join new identity label": "Join existing device";
134
+ readonly "empty space members message": "There is nobody in this space yet.";
135
+ readonly "back to all invitations label": "Back to all invitations";
136
+ readonly "invitation heading": "Invitation";
137
+ readonly "invitation list heading": "Invitations";
138
+ readonly "device invitation list heading": "Pending device invitations";
139
+ readonly "space invitation list heading": "Pending invitations";
140
+ readonly "device list heading": "Devices";
141
+ readonly "space member list heading": "Members";
142
+ readonly "space panel heading": "Space membership";
143
+ readonly "auth code message": "Enter the following auth code on the joining device. Click the code to copy\u00A0it.";
144
+ readonly "auth other device emoji message": "Be sure the other device shows the following\u00A0emoji.";
145
+ readonly "display name input label": "Display name";
146
+ readonly "display name input placeholder": "Enter a display name";
147
+ readonly "invite one label": "Create single-use invitation";
148
+ readonly "invite one description": "Only one user may join.";
149
+ readonly "invite one qr label": "Single-use invitation";
150
+ readonly "invite one list item label": "Active single-use invitation";
151
+ readonly "invite many label": "Create multi-use invitation";
152
+ readonly "invite many description": "Anyone with the link can join.";
153
+ readonly "invite many qr label": "Multi-use invitation";
154
+ readonly "invite many list item label": "Active multi-use invitation";
155
+ readonly "invite options label": "Change the active invite option.";
156
+ readonly "reset in progress label": "Resetting...";
157
+ readonly "confirm label": "Confirm";
158
+ readonly "delete label": "Delete";
159
+ readonly "reset storage input label": "WARNING: This will delete all data on this device. Type {{confirmationValue}} to continue.";
160
+ readonly "join new identity input label": "WARNING: To join an existing device all data on this device will be deleted. Type {{confirmationValue}} to continue.";
161
+ readonly "failed to reset identity message": "Failed to reset identity.";
162
+ readonly "confirmation value": "RESET";
163
+ readonly "confirmation placeholder": "Enter {{confirmationValue}} to continue.";
164
+ readonly "sign out chooser title": "Danger zone";
165
+ readonly "sign out chooser message": "Proceeding with the action below will erase all data on this device.";
166
+ readonly "join new identity label": "Join an existing identity";
167
+ readonly "reset device label": "Reset storage";
168
+ readonly "reset device confirm message": "Are you sure you want to reset your device? All data will be lost.";
169
+ readonly "emoji and color label": "Emoji and color";
170
+ readonly "clear label": "Use default";
171
+ readonly "select emoji label": "Avatar emoji";
172
+ readonly "select hue label": "Avatar background color";
173
+ readonly "resetting message": "One moment while the device is reset\u2026";
174
+ readonly "expires label": "Expires {{timeLeft}}";
175
+ readonly "no expiration label": "Doesn\u2019t expire";
176
+ readonly "drag handle label": "Drag to rearrange";
177
+ readonly "expand label": "Expand";
178
+ readonly "collapse label": "Collapse";
179
+ readonly "add object to space label": "Add to a space";
180
+ readonly "red label": "Red";
181
+ readonly "orange label": "Orange";
182
+ readonly "amber label": "Amber";
183
+ readonly "yellow label": "Yellow";
184
+ readonly "lime label": "Lime";
185
+ readonly "green label": "Green";
186
+ readonly "emerald label": "Emerald";
187
+ readonly "teal label": "Teal";
188
+ readonly "cyan label": "Cyan";
189
+ readonly "sky label": "Sky";
190
+ readonly "blue label": "Blue";
191
+ readonly "indigo label": "Indigo";
192
+ readonly "violet label": "Violet";
193
+ readonly "purple label": "Purple";
194
+ readonly "fuchsia label": "Fuchsia";
195
+ readonly "pink label": "Pink";
196
+ readonly "rose label": "Rose";
197
+ readonly "select a hue label": "Select color";
198
+ readonly "hue label": "Hue";
199
+ readonly "icon label": "Icon";
200
+ readonly "current device tag label": "This device";
201
+ readonly "device name placeholder": "{{platform}} on {{os}}";
202
+ readonly "more options label": "More options";
203
+ readonly "disconnect label": "Go offline";
204
+ readonly "connect label": "Go online";
205
+ readonly "edit device label": "Edit device name & avatar";
206
+ readonly "agent heading": "Agent";
207
+ readonly "create agent clickwrap": "By creating an agent, you agree to our <tosLink href=\"https://dxos.org/tos\">Terms of\u00A0Service</tosLink>.";
208
+ readonly "create agent description": "Creating an agent helps keep your devices and peers in-sync. An agent is like any other device, but since it\u2019s always online your changes will sync even when all your physical devices are\u00A0asleep.";
209
+ readonly "create agent label": "Start an agent";
210
+ readonly "destroy agent label": "Shut down agent";
211
+ readonly "agent device label": "Your agent";
212
+ readonly "shell fallback title": "Shell failed to connect";
213
+ readonly "creating agent label": "Starting agent\u2026";
214
+ readonly "destroying agent label": "Stopping agent\u2026";
215
+ readonly "getting agent label": "Checking agent status\u2026";
216
+ readonly "agent requested label": "Agent requested";
217
+ readonly "agent requested description": "The agent service is creating an agent for you. Once the agent connects, it will display in the devices list.";
218
+ readonly "authenticating label": "Authenticating\u2026";
219
+ readonly "create recovery code label": "Create recovery code";
220
+ readonly "choose recover identity label": "Recover identity";
221
+ };
222
+ };
223
+ })[];
224
+ };
225
+ };
5
226
  export default meta;
6
- type Story = StoryObj<typeof DevicesContainer>;
227
+ type Story = StoryObj<typeof meta>;
7
228
  export declare const Default: Story;
8
229
  //# sourceMappingURL=DevicesContainer.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DevicesContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/DevicesContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAO5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItD,QAAA,MAAM,IAAI,EAAE,IAqBX,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
1
+ {"version":3,"file":"DevicesContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/DevicesContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAYjE,QAAA,MAAM,IAAI;;;;;;;;yBAV6B,CAAQ,IAAI;qBACnD,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BsC,CAAC;AAE1C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ProfileContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2D,MAAM,OAAO,CAAC;AA0BhF,eAAO,MAAM,gBAAgB,yBAoI5B,CAAC"}
1
+ {"version":3,"file":"ProfileContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ProfileContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAyBhF,eAAO,MAAM,gBAAgB,yBAkI5B,CAAC"}