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

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 (134) hide show
  1. package/dist/lib/browser/{app-graph-builder-ROTCC3C4.mjs → app-graph-builder-WAS4YZNA.mjs} +31 -35
  2. package/dist/lib/browser/app-graph-builder-WAS4YZNA.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-AN7FJKIJ.mjs +105 -0
  4. package/dist/lib/browser/chunk-AN7FJKIJ.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-7OW22D2O.mjs → chunk-XZ4TQC56.mjs} +25 -29
  6. package/dist/lib/browser/chunk-XZ4TQC56.mjs.map +7 -0
  7. package/dist/lib/browser/{client-ICXXK55V.mjs → client-LV67Q3R7.mjs} +1 -1
  8. package/dist/lib/browser/client-LV67Q3R7.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +9 -9
  10. package/dist/lib/browser/index.mjs.map +3 -3
  11. package/dist/lib/browser/{intent-resolver-L4STUWGK.mjs → intent-resolver-NCISOZW4.mjs} +10 -10
  12. package/dist/lib/browser/intent-resolver-NCISOZW4.mjs.map +7 -0
  13. package/dist/lib/browser/meta.json +1 -1
  14. package/dist/lib/browser/migrations-3DWFOL5Q.mjs +21 -0
  15. package/dist/lib/browser/migrations-3DWFOL5Q.mjs.map +7 -0
  16. package/dist/lib/browser/{react-surface-VXFG7BEM.mjs → react-surface-J7SZR2J6.mjs} +3 -3
  17. package/dist/lib/browser/schema-JQAT6Q7S.mjs +23 -0
  18. package/dist/lib/browser/schema-JQAT6Q7S.mjs.map +7 -0
  19. package/dist/lib/browser/types.mjs +1 -1
  20. package/dist/lib/node/{app-graph-builder-DOHFMHXU.cjs → app-graph-builder-PXOJZJO5.cjs} +40 -44
  21. package/dist/lib/node/app-graph-builder-PXOJZJO5.cjs.map +7 -0
  22. package/dist/lib/node/{chunk-FABH7MJ3.cjs → chunk-3JE5BFCT.cjs} +25 -29
  23. package/dist/lib/node/chunk-3JE5BFCT.cjs.map +7 -0
  24. package/dist/lib/node/{chunk-J5SQ5Q22.cjs → chunk-FROKBEVH.cjs} +47 -47
  25. package/dist/lib/node/chunk-FROKBEVH.cjs.map +7 -0
  26. package/dist/lib/node/{client-OUBG63HJ.cjs → client-BKTGRBYM.cjs} +4 -4
  27. package/dist/lib/node/client-BKTGRBYM.cjs.map +7 -0
  28. package/dist/lib/node/index.cjs +9 -9
  29. package/dist/lib/node/index.cjs.map +3 -3
  30. package/dist/lib/node/{intent-resolver-IDLAVEHS.cjs → intent-resolver-U2576ALY.cjs} +29 -29
  31. package/dist/lib/node/intent-resolver-U2576ALY.cjs.map +7 -0
  32. package/dist/lib/node/meta.json +1 -1
  33. package/dist/lib/node/{migrations-ZI52SX4M.cjs → migrations-TGNI4FVL.cjs} +9 -11
  34. package/dist/lib/node/migrations-TGNI4FVL.cjs.map +7 -0
  35. package/dist/lib/node/{react-surface-UGXE6OAD.cjs → react-surface-BSTIXMER.cjs} +24 -24
  36. package/dist/lib/node/{schema-defs-BYGBDKOU.cjs → schema-INQ72F54.cjs} +11 -13
  37. package/dist/lib/node/schema-INQ72F54.cjs.map +7 -0
  38. package/dist/lib/node/types.cjs +3 -3
  39. package/dist/lib/node/types.cjs.map +1 -1
  40. package/dist/lib/node-esm/{app-graph-builder-XMXJG5YT.mjs → app-graph-builder-KIN6NWFI.mjs} +31 -35
  41. package/dist/lib/node-esm/app-graph-builder-KIN6NWFI.mjs.map +7 -0
  42. package/dist/lib/node-esm/chunk-AD5W5QCQ.mjs +106 -0
  43. package/dist/lib/node-esm/chunk-AD5W5QCQ.mjs.map +7 -0
  44. package/dist/lib/node-esm/{chunk-34X2AMVA.mjs → chunk-LZN2UNN7.mjs} +25 -29
  45. package/dist/lib/node-esm/chunk-LZN2UNN7.mjs.map +7 -0
  46. package/dist/lib/node-esm/{client-YJNEHNUV.mjs → client-QQD6WFOB.mjs} +1 -1
  47. package/dist/lib/node-esm/client-QQD6WFOB.mjs.map +7 -0
  48. package/dist/lib/node-esm/index.mjs +9 -9
  49. package/dist/lib/node-esm/index.mjs.map +3 -3
  50. package/dist/lib/node-esm/{intent-resolver-73FZIXX5.mjs → intent-resolver-G25U4UGI.mjs} +10 -10
  51. package/dist/lib/node-esm/intent-resolver-G25U4UGI.mjs.map +7 -0
  52. package/dist/lib/node-esm/meta.json +1 -1
  53. package/dist/lib/node-esm/{migrations-GHO52HKW.mjs → migrations-IVGATGZR.mjs} +6 -8
  54. package/dist/lib/node-esm/migrations-IVGATGZR.mjs.map +7 -0
  55. package/dist/lib/node-esm/{react-surface-R65DYUV6.mjs → react-surface-ZPI7T4EM.mjs} +3 -3
  56. package/dist/lib/node-esm/schema-OK7HY3JJ.mjs +24 -0
  57. package/dist/lib/node-esm/schema-OK7HY3JJ.mjs.map +7 -0
  58. package/dist/lib/node-esm/types.mjs +1 -1
  59. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  60. package/dist/types/src/capabilities/app-graph-builder.d.ts +179 -2
  61. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  62. package/dist/types/src/capabilities/client.d.ts +2 -2
  63. package/dist/types/src/capabilities/client.d.ts.map +1 -1
  64. package/dist/types/src/capabilities/index.d.ts +181 -5
  65. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  66. package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
  67. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  68. package/dist/types/src/capabilities/migrations.d.ts +2 -2
  69. package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
  70. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  71. package/dist/types/src/capabilities/schema.d.ts +4 -0
  72. package/dist/types/src/capabilities/schema.d.ts.map +1 -0
  73. package/dist/types/src/components/DevicesContainer.d.ts +3 -4
  74. package/dist/types/src/components/DevicesContainer.d.ts.map +1 -1
  75. package/dist/types/src/components/DevicesContainer.stories.d.ts.map +1 -1
  76. package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
  77. package/dist/types/src/components/ProfileContainer.d.ts.map +1 -1
  78. package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
  79. package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +1 -1
  80. package/dist/types/src/components/ResetDialog.d.ts.map +1 -1
  81. package/dist/types/src/components/ResetDialog.stories.d.ts.map +1 -1
  82. package/dist/types/src/types.d.ts +53 -53
  83. package/dist/types/src/types.d.ts.map +1 -1
  84. package/dist/types/tsconfig.tsbuildinfo +1 -1
  85. package/package.json +25 -31
  86. package/src/ClientPlugin.ts +2 -2
  87. package/src/capabilities/app-graph-builder.ts +76 -94
  88. package/src/capabilities/client.ts +2 -2
  89. package/src/capabilities/index.ts +1 -1
  90. package/src/capabilities/intent-resolver.ts +9 -9
  91. package/src/capabilities/migrations.ts +11 -14
  92. package/src/capabilities/schema.ts +26 -0
  93. package/src/components/DevicesContainer.stories.tsx +3 -7
  94. package/src/components/DevicesContainer.tsx +61 -85
  95. package/src/components/ProfileContainer.stories.tsx +1 -1
  96. package/src/components/ProfileContainer.tsx +21 -30
  97. package/src/components/RecoveryCodeDialog.stories.tsx +1 -1
  98. package/src/components/RecoveryCredentialsContainer.stories.tsx +2 -2
  99. package/src/components/RecoveryCredentialsContainer.tsx +46 -48
  100. package/src/components/ResetDialog.stories.tsx +1 -7
  101. package/src/translations.ts +2 -2
  102. package/src/types.ts +46 -50
  103. package/dist/lib/browser/app-graph-builder-ROTCC3C4.mjs.map +0 -7
  104. package/dist/lib/browser/chunk-7OW22D2O.mjs.map +0 -7
  105. package/dist/lib/browser/chunk-XPHDZ277.mjs +0 -105
  106. package/dist/lib/browser/chunk-XPHDZ277.mjs.map +0 -7
  107. package/dist/lib/browser/client-ICXXK55V.mjs.map +0 -7
  108. package/dist/lib/browser/intent-resolver-L4STUWGK.mjs.map +0 -7
  109. package/dist/lib/browser/migrations-DYDZ7DVP.mjs +0 -23
  110. package/dist/lib/browser/migrations-DYDZ7DVP.mjs.map +0 -7
  111. package/dist/lib/browser/schema-defs-QVXP2JGN.mjs +0 -25
  112. package/dist/lib/browser/schema-defs-QVXP2JGN.mjs.map +0 -7
  113. package/dist/lib/node/app-graph-builder-DOHFMHXU.cjs.map +0 -7
  114. package/dist/lib/node/chunk-FABH7MJ3.cjs.map +0 -7
  115. package/dist/lib/node/chunk-J5SQ5Q22.cjs.map +0 -7
  116. package/dist/lib/node/client-OUBG63HJ.cjs.map +0 -7
  117. package/dist/lib/node/intent-resolver-IDLAVEHS.cjs.map +0 -7
  118. package/dist/lib/node/migrations-ZI52SX4M.cjs.map +0 -7
  119. package/dist/lib/node/schema-defs-BYGBDKOU.cjs.map +0 -7
  120. package/dist/lib/node-esm/app-graph-builder-XMXJG5YT.mjs.map +0 -7
  121. package/dist/lib/node-esm/chunk-34X2AMVA.mjs.map +0 -7
  122. package/dist/lib/node-esm/chunk-V6SJNSKG.mjs +0 -106
  123. package/dist/lib/node-esm/chunk-V6SJNSKG.mjs.map +0 -7
  124. package/dist/lib/node-esm/client-YJNEHNUV.mjs.map +0 -7
  125. package/dist/lib/node-esm/intent-resolver-73FZIXX5.mjs.map +0 -7
  126. package/dist/lib/node-esm/migrations-GHO52HKW.mjs.map +0 -7
  127. package/dist/lib/node-esm/schema-defs-O4OHIIBN.mjs +0 -26
  128. package/dist/lib/node-esm/schema-defs-O4OHIIBN.mjs.map +0 -7
  129. package/dist/types/src/capabilities/schema-defs.d.ts +0 -4
  130. package/dist/types/src/capabilities/schema-defs.d.ts.map +0 -1
  131. package/src/capabilities/schema-defs.ts +0 -29
  132. /package/dist/lib/browser/{react-surface-VXFG7BEM.mjs.map → react-surface-J7SZR2J6.mjs.map} +0 -0
  133. /package/dist/lib/node/{react-surface-UGXE6OAD.cjs.map → react-surface-BSTIXMER.cjs.map} +0 -0
  134. /package/dist/lib/node-esm/{react-surface-R65DYUV6.mjs.map → react-surface-ZPI7T4EM.mjs.map} +0 -0
@@ -16,56 +16,52 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var app_graph_builder_DOHFMHXU_exports = {};
20
- __export(app_graph_builder_DOHFMHXU_exports, {
19
+ var app_graph_builder_PXOJZJO5_exports = {};
20
+ __export(app_graph_builder_PXOJZJO5_exports, {
21
21
  default: () => app_graph_builder_default
22
22
  });
23
- module.exports = __toCommonJS(app_graph_builder_DOHFMHXU_exports);
23
+ module.exports = __toCommonJS(app_graph_builder_PXOJZJO5_exports);
24
24
  var import_chunk_ZVQIICEN = require("./chunk-ZVQIICEN.cjs");
25
- var import_chunk_J5SQ5Q22 = require("./chunk-J5SQ5Q22.cjs");
25
+ var import_chunk_FROKBEVH = require("./chunk-FROKBEVH.cjs");
26
26
  var import_chunk_DJKWB5L6 = require("./chunk-DJKWB5L6.cjs");
27
- var import_rx_react = require("@effect-rx/rx-react");
28
- var import_effect = require("effect");
29
27
  var import_app_framework = require("@dxos/app-framework");
30
28
  var import_app_framework2 = require("@dxos/app-framework");
31
29
  var import_plugin_graph = require("@dxos/plugin-graph");
32
30
  var import_mesh = require("@dxos/react-client/mesh");
33
31
  var app_graph_builder_default = (context) => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.AppGraphBuilder, (0, import_plugin_graph.createExtension)({
34
32
  id: import_chunk_DJKWB5L6.CLIENT_PLUGIN,
35
- actions: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => node2.id === import_plugin_graph.ROOT_ID ? import_effect.Option.some(node2) : import_effect.Option.none()), import_effect.Option.map(() => {
36
- return [
37
- {
38
- id: `${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/open-user-account`,
39
- data: async () => {
40
- const { dispatchPromise: dispatch } = context.getCapability(import_app_framework2.Capabilities.IntentDispatcher);
41
- await dispatch((0, import_app_framework.createIntent)(import_chunk_J5SQ5Q22.ClientAction.ShareIdentity));
42
- },
43
- properties: {
44
- label: [
45
- "open user account label",
46
- {
47
- ns: import_chunk_DJKWB5L6.CLIENT_PLUGIN
48
- }
49
- ],
50
- icon: "ph--user--regular",
51
- disposition: "menu",
52
- keyBinding: {
53
- macos: "meta+shift+.",
54
- // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.
55
- windows: "alt+shift+.",
56
- linux: "alt+shift+>"
33
+ filter: (node) => node.id === "root",
34
+ actions: () => [
35
+ {
36
+ id: `${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/open-user-account`,
37
+ data: async () => {
38
+ const { dispatchPromise: dispatch } = context.requestCapability(import_app_framework2.Capabilities.IntentDispatcher);
39
+ await dispatch((0, import_app_framework.createIntent)(import_chunk_FROKBEVH.ClientAction.ShareIdentity));
40
+ },
41
+ properties: {
42
+ label: [
43
+ "open user account label",
44
+ {
45
+ ns: import_chunk_DJKWB5L6.CLIENT_PLUGIN
57
46
  }
47
+ ],
48
+ icon: "ph--user--regular",
49
+ keyBinding: {
50
+ macos: "meta+shift+.",
51
+ // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.
52
+ windows: "alt+shift+.",
53
+ linux: "alt+shift+>"
58
54
  }
59
55
  }
60
- ];
61
- }), import_effect.Option.getOrElse(() => []))),
62
- connector: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => node2.id === import_plugin_graph.ROOT_ID ? import_effect.Option.some(node2) : import_effect.Option.none()), import_effect.Option.map(() => {
63
- const client = context.getCapability(import_chunk_ZVQIICEN.ClientCapabilities.Client);
64
- const identity = get((0, import_plugin_graph.rxFromObservable)(client.halo.identity));
65
- const status = get((0, import_plugin_graph.rxFromObservable)(client.mesh.networkStatus));
56
+ }
57
+ ],
58
+ connector: () => {
59
+ const client = context.requestCapability(import_chunk_ZVQIICEN.ClientCapabilities.Client);
60
+ const identity = client.halo.identity.get();
61
+ const status = (0, import_plugin_graph.toSignal)((onChange) => client.mesh.networkStatus.subscribe(() => onChange()).unsubscribe, () => client.mesh.networkStatus.get());
66
62
  return [
67
63
  {
68
- id: import_chunk_J5SQ5Q22.Account.id,
64
+ id: import_chunk_FROKBEVH.Account.id,
69
65
  type: import_chunk_DJKWB5L6.CLIENT_PLUGIN,
70
66
  properties: {
71
67
  label: [
@@ -80,12 +76,12 @@ var app_graph_builder_default = (context) => (0, import_app_framework2.contribut
80
76
  userId: identity?.identityKey.toHex(),
81
77
  hue: identity?.profile?.data?.hue,
82
78
  emoji: identity?.profile?.data?.emoji,
83
- status: status.swarm === import_mesh.ConnectionState.OFFLINE ? "error" : "active"
79
+ status: status?.swarm === import_mesh.ConnectionState.OFFLINE ? "error" : "active"
84
80
  },
85
81
  nodes: [
86
82
  {
87
- id: import_chunk_J5SQ5Q22.Account.Profile,
88
- data: import_chunk_J5SQ5Q22.Account.Profile,
83
+ id: import_chunk_FROKBEVH.Account.Profile,
84
+ data: import_chunk_FROKBEVH.Account.Profile,
89
85
  type: import_chunk_DJKWB5L6.CLIENT_PLUGIN,
90
86
  properties: {
91
87
  label: [
@@ -98,8 +94,8 @@ var app_graph_builder_default = (context) => (0, import_app_framework2.contribut
98
94
  }
99
95
  },
100
96
  {
101
- id: import_chunk_J5SQ5Q22.Account.Devices,
102
- data: import_chunk_J5SQ5Q22.Account.Devices,
97
+ id: import_chunk_FROKBEVH.Account.Devices,
98
+ data: import_chunk_FROKBEVH.Account.Devices,
103
99
  type: import_chunk_DJKWB5L6.CLIENT_PLUGIN,
104
100
  properties: {
105
101
  label: [
@@ -113,8 +109,8 @@ var app_graph_builder_default = (context) => (0, import_app_framework2.contribut
113
109
  }
114
110
  },
115
111
  {
116
- id: import_chunk_J5SQ5Q22.Account.Security,
117
- data: import_chunk_J5SQ5Q22.Account.Security,
112
+ id: import_chunk_FROKBEVH.Account.Security,
113
+ data: import_chunk_FROKBEVH.Account.Security,
118
114
  type: import_chunk_DJKWB5L6.CLIENT_PLUGIN,
119
115
  properties: {
120
116
  label: [
@@ -129,6 +125,6 @@ var app_graph_builder_default = (context) => (0, import_app_framework2.contribut
129
125
  ]
130
126
  }
131
127
  ];
132
- }), import_effect.Option.getOrElse(() => [])))
128
+ }
133
129
  }));
134
- //# sourceMappingURL=app-graph-builder-DOHFMHXU.cjs.map
130
+ //# sourceMappingURL=app-graph-builder-PXOJZJO5.cjs.map
@@ -0,0 +1,7 @@
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,2BAA6B;AAC7B,IAAAA,wBAA+D;AAC/D,0BAAqD;AACrD,kBAAgC;AAMhC,IAAA,4BAAe,CAACC,gBACdC,mCACEC,mCAAaC,qBACbC,qCAAgB;EACdC,IAAIC;EACJC,QAAQ,CAACC,SAA6BA,KAAKH,OAAO;EAClDI,SAAS,MAAM;IACb;MACEJ,IAAI,GAAGC,mCAAAA;MACPI,MAAM,YAAA;AACJ,cAAM,EAAEC,iBAAiBC,SAAQ,IAAKZ,QAAQa,kBAAkBX,mCAAaY,gBAAgB;AAC7F,cAAMF,aAASG,mCAAaC,mCAAaC,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,yCAAmBC,MAAM;AAClE,UAAMC,WAAWH,OAAOI,KAAKD,SAASE,IAAG;AACzC,UAAMC,aAASC,8BACb,CAACC,aAAaR,OAAOS,KAAKC,cAAcC,UAAU,MAAMH,SAAAA,CAAAA,EAAYI,aACpE,MAAMZ,OAAOS,KAAKC,cAAcL,IAAG,CAAA;AAGrC,WAAO;MACL;QACE3B,IAAImC,8BAAQnC;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,4BAAgBC,UAAU,UAAU;QAChE;QACAC,OAAO;UACL;YACE/C,IAAImC,8BAAQa;YACZ3C,MAAM8B,8BAAQa;YACdZ,MAAMnC;YACNY,YAAY;cACVC,OAAO;gBAAC;gBAAiB;kBAAEC,IAAId;gBAAc;;cAC7Ce,MAAM;YACR;UACF;UACA;YACEhB,IAAImC,8BAAQc;YACZ5C,MAAM8B,8BAAQc;YACdb,MAAMnC;YACNY,YAAY;cACVC,OAAO;gBAAC;gBAAiB;kBAAEC,IAAId;gBAAc;;cAC7Ce,MAAM;cACNkC,QAAQ;YACV;UACF;UACA;YACElD,IAAImC,8BAAQgB;YACZ9C,MAAM8B,8BAAQgB;YACdf,MAAMnC;YACNY,YAAY;cACVC,OAAO;gBAAC;gBAAkB;kBAAEC,IAAId;gBAAc;;cAC9Ce,MAAM;YACR;UACF;;MAEJ;;EAEJ;AACF,CAAA,CAAA;",
6
+ "names": ["import_app_framework", "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
+ }
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_FABH7MJ3_exports = {};
30
- __export(chunk_FABH7MJ3_exports, {
29
+ var chunk_3JE5BFCT_exports = {};
30
+ __export(chunk_3JE5BFCT_exports, {
31
31
  DevicesContainer: () => DevicesContainer,
32
32
  JOIN_DIALOG: () => JOIN_DIALOG,
33
33
  JoinDialog: () => JoinDialog,
@@ -38,8 +38,8 @@ __export(chunk_FABH7MJ3_exports, {
38
38
  RecoveryCredentialsContainer: () => RecoveryCredentialsContainer,
39
39
  ResetDialog: () => ResetDialog
40
40
  });
41
- module.exports = __toCommonJS(chunk_FABH7MJ3_exports);
42
- var import_chunk_J5SQ5Q22 = require("./chunk-J5SQ5Q22.cjs");
41
+ module.exports = __toCommonJS(chunk_3JE5BFCT_exports);
42
+ var import_chunk_FROKBEVH = require("./chunk-FROKBEVH.cjs");
43
43
  var import_chunk_DJKWB5L6 = require("./chunk-DJKWB5L6.cjs");
44
44
  var import_react = require("@phosphor-icons/react");
45
45
  var import_react2 = __toESM(require("react"));
@@ -90,22 +90,22 @@ var DevicesContainer = ({ createInvitationUrl }) => {
90
90
  const { dispatchPromise: dispatch } = (0, import_app_framework.useIntentDispatcher)();
91
91
  const devices = (0, import_halo.useDevices)();
92
92
  const { swarm: connectionState } = (0, import_mesh.useNetworkStatus)();
93
- const handleResetStorage = (0, import_react2.useCallback)(() => dispatch((0, import_app_framework.createIntent)(import_chunk_J5SQ5Q22.ClientAction.ResetStorage)), [
93
+ const handleResetStorage = (0, import_react2.useCallback)(() => dispatch((0, import_app_framework.createIntent)(import_chunk_FROKBEVH.ClientAction.ResetStorage)), [
94
94
  dispatch
95
95
  ]);
96
- const handleRecover = (0, import_react2.useCallback)(() => dispatch((0, import_app_framework.createIntent)(import_chunk_J5SQ5Q22.ClientAction.ResetStorage, {
96
+ const handleRecover = (0, import_react2.useCallback)(() => dispatch((0, import_app_framework.createIntent)(import_chunk_FROKBEVH.ClientAction.ResetStorage, {
97
97
  mode: "recover"
98
98
  })), [
99
99
  dispatch
100
100
  ]);
101
- const handleJoinNewIdentity = (0, import_react2.useCallback)(() => dispatch((0, import_app_framework.createIntent)(import_chunk_J5SQ5Q22.ClientAction.ResetStorage, {
101
+ const handleJoinNewIdentity = (0, import_react2.useCallback)(() => dispatch((0, import_app_framework.createIntent)(import_chunk_FROKBEVH.ClientAction.ResetStorage, {
102
102
  mode: "join new identity"
103
103
  })), [
104
104
  dispatch
105
105
  ]);
106
106
  return /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Clipboard.Provider, null, /* @__PURE__ */ import_react2.default.createElement(import_react_ui_stack.StackItem.Content, {
107
- classNames: "block overflow-y-auto"
108
- }, /* @__PURE__ */ import_react2.default.createElement(import_react_ui_form.ControlPage, null, /* @__PURE__ */ import_react2.default.createElement(import_react_ui_form.ControlSection, {
107
+ classNames: "p-2 block overflow-y-auto"
108
+ }, /* @__PURE__ */ import_react2.default.createElement(import_react_ui_form.ControlSection, {
109
109
  title: t("devices verbose label", {
110
110
  ns: import_chunk_DJKWB5L6.CLIENT_PLUGIN
111
111
  }),
@@ -122,7 +122,7 @@ var DevicesContainer = ({ createInvitationUrl }) => {
122
122
  device,
123
123
  connectionState
124
124
  });
125
- }))), createInvitationUrl && /* @__PURE__ */ import_react2.default.createElement(import_react_ui_form.ControlFrameItem, {
125
+ }))), /* @__PURE__ */ import_react2.default.createElement(import_react_ui_form.ControlFrameItem, {
126
126
  title: "Add device"
127
127
  }, /* @__PURE__ */ import_react2.default.createElement(DeviceInvitation, {
128
128
  createInvitationUrl
@@ -160,7 +160,7 @@ var DevicesContainer = ({ createInvitationUrl }) => {
160
160
  variant: "destructive",
161
161
  onClick: handleJoinNewIdentity,
162
162
  "data-testid": "devicesContainer.joinExisting"
163
- }, t("join new identity label"))))))));
163
+ }, t("join new identity label")))))));
164
164
  };
165
165
  var DeviceInvitation = (props) => {
166
166
  const client = (0, import_react_client.useClient)();
@@ -176,7 +176,7 @@ var DeviceInvitation = (props) => {
176
176
  authCode: invitation3.authCode
177
177
  }), void 0, {
178
178
  F: __dxlog_file,
179
- L: 141,
179
+ L: 122,
180
180
  S: void 0,
181
181
  C: (f, a) => f(...a)
182
182
  });
@@ -285,16 +285,12 @@ var InvitationQR = ({ id, url, onCancel }) => {
285
285
  }))), /* @__PURE__ */ import_react2.default.createElement("span", {
286
286
  id: qrLabel,
287
287
  className: "sr-only"
288
- }, t("qr label"))), /* @__PURE__ */ import_react2.default.createElement("div", {
289
- className: "flex justify-center"
290
- }, /* @__PURE__ */ import_react2.default.createElement("div", {
291
- className: "flex gap-2"
292
- }, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Clipboard.Button, {
288
+ }, t("qr label")), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Clipboard.Button, {
293
289
  value: url ?? "never"
294
- }), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Button, {
290
+ })), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Button, {
295
291
  variant: "ghost",
296
292
  onClick: onCancel
297
- }, t("cancel label")))));
293
+ }, t("cancel label")));
298
294
  };
299
295
  var InvitationAuthCode = ({ id, code, onCancel }) => {
300
296
  const { t } = (0, import_react_ui.useTranslation)("os");
@@ -326,7 +322,7 @@ var JOIN_DIALOG = `${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/JoinDialog`;
326
322
  var JoinDialog = (props) => {
327
323
  const { dispatchPromise: dispatch } = (0, import_app_framework2.useIntentDispatcher)();
328
324
  const { t } = (0, import_react_ui2.useTranslation)(import_chunk_DJKWB5L6.CLIENT_PLUGIN);
329
- const handleCancelResetStorage = (0, import_react4.useCallback)(() => dispatch((0, import_app_framework2.createIntent)(import_chunk_J5SQ5Q22.ClientAction.ShareIdentity)), [
325
+ const handleCancelResetStorage = (0, import_react4.useCallback)(() => dispatch((0, import_app_framework2.createIntent)(import_chunk_FROKBEVH.ClientAction.ShareIdentity)), [
330
326
  dispatch
331
327
  ]);
332
328
  const handleDone = (0, import_react4.useCallback)(async (result) => {
@@ -472,8 +468,8 @@ var ProfileContainer = () => {
472
468
  t
473
469
  ]);
474
470
  return /* @__PURE__ */ import_react6.default.createElement(import_react_ui_stack2.StackItem.Content, {
475
- classNames: "block overflow-y-auto"
476
- }, /* @__PURE__ */ import_react6.default.createElement(import_react_ui_form2.ControlPage, null, /* @__PURE__ */ import_react6.default.createElement(import_react_ui3.Clipboard.Provider, null, /* @__PURE__ */ import_react6.default.createElement(import_react_ui_form2.ControlSection, {
471
+ classNames: "p-2 block overflow-y-auto"
472
+ }, /* @__PURE__ */ import_react6.default.createElement(import_react_ui3.Clipboard.Provider, null, /* @__PURE__ */ import_react6.default.createElement(import_react_ui_form2.ControlSection, {
477
473
  title: t("profile label"),
478
474
  description: t("profile description")
479
475
  }, /* @__PURE__ */ import_react6.default.createElement(import_react_ui_form2.Form, {
@@ -483,7 +479,7 @@ var ProfileContainer = () => {
483
479
  onSave: handleSave,
484
480
  Custom: customElements,
485
481
  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'
486
- })))));
482
+ }))));
487
483
  };
488
484
  var ProfileSchema = import_effect.Schema.Struct({
489
485
  displayName: import_effect.Schema.String.annotations({
@@ -553,8 +549,8 @@ var RecoveryCredentialsContainer = () => {
553
549
  const credentials = (0, import_halo3.useCredentials)();
554
550
  const recoveryCredentials = credentials.filter((credential) => credential.subject.assertion["@type"] === "dxos.halo.credentials.IdentityRecovery");
555
551
  return /* @__PURE__ */ import_react8.default.createElement(import_react_ui_stack3.StackItem.Content, {
556
- classNames: "block overflow-y-auto"
557
- }, /* @__PURE__ */ import_react8.default.createElement(import_react_ui_form3.ControlPage, null, /* @__PURE__ */ import_react8.default.createElement(import_react_ui_form3.ControlSection, {
552
+ classNames: "p-2 block overflow-y-auto"
553
+ }, /* @__PURE__ */ import_react8.default.createElement(import_react_ui_form3.ControlSection, {
558
554
  title: t("recovery setup dialog title"),
559
555
  description: t("recovery setup dialog description")
560
556
  }, /* @__PURE__ */ import_react8.default.createElement(import_react_ui_form3.ControlGroup, null, /* @__PURE__ */ import_react8.default.createElement(import_react_ui_form3.ControlItem, {
@@ -565,7 +561,7 @@ var RecoveryCredentialsContainer = () => {
565
561
  icon: "ph--key--duotone",
566
562
  variant: "primary",
567
563
  size: 5,
568
- onClick: () => dispatch((0, import_app_framework3.createIntent)(import_chunk_J5SQ5Q22.ClientAction.CreatePasskey))
564
+ onClick: () => dispatch((0, import_app_framework3.createIntent)(import_chunk_FROKBEVH.ClientAction.CreatePasskey))
569
565
  })), /* @__PURE__ */ import_react8.default.createElement(import_react_ui_form3.ControlItem, {
570
566
  title: t("create recovery code label"),
571
567
  description: t("create recovery code description")
@@ -574,7 +570,7 @@ var RecoveryCredentialsContainer = () => {
574
570
  icon: "ph--receipt--duotone",
575
571
  variant: "default",
576
572
  size: 5,
577
- onClick: () => dispatch((0, import_app_framework3.createIntent)(import_chunk_J5SQ5Q22.ClientAction.CreateRecoveryCode))
573
+ onClick: () => dispatch((0, import_app_framework3.createIntent)(import_chunk_FROKBEVH.ClientAction.CreateRecoveryCode))
578
574
  })))), /* @__PURE__ */ import_react8.default.createElement(import_react_ui_form3.ControlSection, {
579
575
  title: t("credentials list label")
580
576
  }, recoveryCredentials.length < 1 ? /* @__PURE__ */ import_react8.default.createElement(import_react_ui5.Message.Root, {
@@ -591,7 +587,7 @@ var RecoveryCredentialsContainer = () => {
591
587
  }, /* @__PURE__ */ import_react8.default.createElement(import_react_ui5.ListItem.Endcap, null, /* @__PURE__ */ import_react8.default.createElement(import_react_ui5.Icon, {
592
588
  icon: "ph--key--regular",
593
589
  size: 5
594
- })), /* @__PURE__ */ import_react8.default.createElement(import_react_ui5.ListItem.Heading, null, credential.issuanceDate.toLocaleString())))))));
590
+ })), /* @__PURE__ */ import_react8.default.createElement(import_react_ui5.ListItem.Heading, null, credential.issuanceDate.toLocaleString()))))));
595
591
  };
596
592
  var RESET_DIALOG = `${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/ResetDialog`;
597
593
  var ResetDialog = ({ mode, onReset }) => {
@@ -645,4 +641,4 @@ var ResetDialog = ({ mode, onReset }) => {
645
641
  RecoveryCredentialsContainer,
646
642
  ResetDialog
647
643
  });
648
- //# sourceMappingURL=chunk-FABH7MJ3.cjs.map
644
+ //# sourceMappingURL=chunk-3JE5BFCT.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/DevicesContainer.tsx", "../../../src/components/JoinDialog.tsx", "../../../src/components/ProfileContainer.tsx", "../../../src/components/RecoveryCodeDialog.tsx", "../../../src/components/RecoveryCredentialsContainer.tsx", "../../../src/components/ResetDialog.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Check, X } from '@phosphor-icons/react';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { QR } from 'react-qr-rounded';\n\nimport { createIntent, useIntentDispatcher } from '@dxos/app-framework';\nimport { log } from '@dxos/log';\nimport { useClient, useMulticastObservable } from '@dxos/react-client';\nimport { type Device, useDevices } from '@dxos/react-client/halo';\nimport { type CancellableInvitationObservable, Invitation, InvitationEncoder } from '@dxos/react-client/invitations';\nimport { useNetworkStatus } from '@dxos/react-client/mesh';\nimport { Button, Clipboard, IconButton, List, useId, useTranslation } from '@dxos/react-ui';\nimport { ControlFrame, ControlFrameItem, ControlGroup, ControlItem, ControlSection } from '@dxos/react-ui-form';\nimport { StackItem } from '@dxos/react-ui-stack';\nimport { getSize, mx } from '@dxos/react-ui-theme';\nimport { AuthCode, Centered, DeviceListItem, Emoji, Viewport } from '@dxos/shell/react';\nimport { hexToEmoji } from '@dxos/util';\n\nimport { CLIENT_PLUGIN } from '../meta';\nimport { ClientAction } from '../types';\n\nexport const DevicesContainer = ({\n createInvitationUrl,\n}: {\n createInvitationUrl: (invitationCode: string) => string;\n}) => {\n const { t } = useTranslation('os');\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const devices = useDevices();\n const { swarm: connectionState } = useNetworkStatus();\n\n const handleResetStorage = useCallback(() => dispatch(createIntent(ClientAction.ResetStorage)), [dispatch]);\n\n const handleRecover = useCallback(\n () => dispatch(createIntent(ClientAction.ResetStorage, { mode: 'recover' })),\n [dispatch],\n );\n\n const handleJoinNewIdentity = useCallback(\n () => dispatch(createIntent(ClientAction.ResetStorage, { mode: 'join new identity' })),\n [dispatch],\n );\n\n return (\n <Clipboard.Provider>\n <StackItem.Content classNames='p-2 block overflow-y-auto'>\n <ControlSection\n title={t('devices verbose label', { ns: CLIENT_PLUGIN })}\n description={t('devices description', { ns: CLIENT_PLUGIN })}\n >\n <ControlFrame>\n <ControlFrameItem title={t('devices label', { ns: CLIENT_PLUGIN })}>\n <List>\n {devices.map((device: Device) => {\n return (\n <DeviceListItem key={device.deviceKey.toHex()} device={device} connectionState={connectionState} />\n );\n })}\n </List>\n </ControlFrameItem>\n <ControlFrameItem title='Add device'>\n <DeviceInvitation createInvitationUrl={createInvitationUrl} />\n </ControlFrameItem>\n </ControlFrame>\n </ControlSection>\n <ControlSection\n title={t('danger zone title', { ns: CLIENT_PLUGIN })}\n description={t('danger zone description', { ns: CLIENT_PLUGIN })}\n >\n <ControlGroup>\n <ControlItem\n title={t('reset device label')}\n description={t('reset device description', { ns: CLIENT_PLUGIN })}\n >\n <Button variant='destructive' onClick={handleResetStorage} data-testid='devicesContainer.reset'>\n {t('reset device label')}\n </Button>\n </ControlItem>\n <ControlItem\n title={t('recover identity label')}\n description={t('recover identity description', { ns: CLIENT_PLUGIN })}\n >\n <Button variant='destructive' onClick={handleRecover} data-testid='devicesContainer.recover'>\n {t('recover identity label')}\n </Button>\n </ControlItem>\n <ControlItem\n title={t('join new identity label')}\n description={t('join new identity description', { ns: CLIENT_PLUGIN })}\n >\n <Button variant='destructive' onClick={handleJoinNewIdentity} data-testid='devicesContainer.joinExisting'>\n {t('join new identity label')}\n </Button>\n </ControlItem>\n </ControlGroup>\n </ControlSection>\n </StackItem.Content>\n </Clipboard.Provider>\n );\n};\n\ntype DeviceInvitationProps = {\n invitation?: CancellableInvitationObservable;\n createInvitationUrl: (invitationCode: string) => string;\n onInvitationDone: () => void;\n onInvitationCreate: () => void;\n};\n\nconst DeviceInvitation = (props: Pick<DeviceInvitationProps, 'createInvitationUrl'>) => {\n const client = useClient();\n const [invitation, setInvitation] = useState<CancellableInvitationObservable>();\n\n const onInvitationCreate = useCallback(() => {\n const invitation = client.halo.share();\n if (client.config.values.runtime?.app?.env?.DX_ENVIRONMENT !== 'production') {\n const subscription = invitation.subscribe((invitation: Invitation) => {\n const invitationCode = InvitationEncoder.encode(invitation);\n if (invitation.state === Invitation.State.CONNECTING) {\n log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));\n subscription.unsubscribe();\n }\n });\n }\n setInvitation(invitation);\n }, [client]);\n\n const onInvitationDone = useCallback(() => {\n setInvitation(undefined);\n }, []);\n\n if (invitation) {\n return <DeviceInvitationImpl {...props} {...{ invitation, onInvitationCreate, onInvitationDone }} />;\n } else {\n return <InvitationSection {...props} {...{ onInvitationCreate, onInvitationDone }} />;\n }\n};\n\nconst DeviceInvitationImpl = ({\n invitation: invitationObservable,\n createInvitationUrl,\n onInvitationDone,\n onInvitationCreate,\n}: DeviceInvitationProps) => {\n const invitation = useMulticastObservable(invitationObservable!);\n const url = createInvitationUrl(InvitationEncoder.encode(invitation));\n\n useEffect(() => {\n if (invitation.state >= Invitation.State.SUCCESS) {\n onInvitationDone();\n }\n }, [invitation.state]);\n\n return <InvitationSection {...invitation} {...{ url, onInvitationDone, onInvitationCreate }} />;\n};\n\ntype InvitationComponentProps = Partial<\n Pick<Invitation, 'authCode' | 'invitationId'> &\n Pick<DeviceInvitationProps, 'onInvitationDone' | 'onInvitationCreate'> & {\n state: number;\n url: string;\n }\n>;\n\nconst InvitationSection = ({\n state = -1,\n authCode,\n invitationId = 'never',\n url = 'never',\n onInvitationDone = () => {},\n onInvitationCreate = () => {},\n}: InvitationComponentProps) => {\n const { t } = useTranslation(CLIENT_PLUGIN);\n const activeView =\n state < 0\n ? 'init'\n : state >= Invitation.State.CANCELLED\n ? 'complete'\n : state >= Invitation.State.READY_FOR_AUTHENTICATION && authCode\n ? 'auth-code'\n : 'qr-code';\n return activeView === 'init' ? (\n <>\n <p className='text-description mbe-2'>{t('add device description')}</p>\n <IconButton\n icon='ph--plus--regular'\n label={t('create device invitation label')}\n disabled={state >= 0}\n classNames='is-full'\n data-testid='devicesContainer.createInvitation'\n onClick={onInvitationCreate}\n />\n </>\n ) : (\n <Viewport.Root activeView={activeView}>\n <Viewport.Views>\n <Viewport.View id='init'>\n {/* This view intentionally left blank while conditionally rendering the viewport. */}\n </Viewport.View>\n <Viewport.View id='complete'>\n <InvitationComplete statusValue={state} />\n </Viewport.View>\n <Viewport.View id='auth-code'>\n <InvitationAuthCode id={invitationId} code={authCode ?? 'never'} onCancel={onInvitationDone} />\n </Viewport.View>\n <Viewport.View id='qr-code'>\n <InvitationQR id={invitationId} url={url} onCancel={onInvitationDone} />\n </Viewport.View>\n </Viewport.Views>\n </Viewport.Root>\n );\n};\n\nconst InvitationQR = ({ id, url, onCancel }: { id: string; url: string; onCancel: () => void }) => {\n const { t } = useTranslation('os');\n const qrLabel = useId('devices-container__qr-code');\n const emoji = hexToEmoji(id);\n return (\n <>\n <p className='text-description'>{t('qr code description', { ns: CLIENT_PLUGIN })}</p>\n <div role='group' className='grid grid-cols-[1fr_min-content] mlb-2 gap-2'>\n <div role='none' className='is-full aspect-square relative text-description'>\n <QR\n rounding={100}\n backgroundColor='transparent'\n color='currentColor'\n aria-labelledby={qrLabel}\n errorCorrectionLevel='Q'\n cutout={true}\n >\n {url ?? 'never'}\n </QR>\n <Centered>\n <Emoji text={emoji} />\n </Centered>\n </div>\n <span id={qrLabel} className='sr-only'>\n {t('qr label')}\n </span>\n <Clipboard.Button value={url ?? 'never'} />\n </div>\n <Button variant='ghost' onClick={onCancel}>\n {t('cancel label')}\n </Button>\n </>\n );\n};\n\nconst InvitationAuthCode = ({ id, code, onCancel }: { id: string; code: string; onCancel: () => void }) => {\n const { t } = useTranslation('os');\n const emoji = hexToEmoji(id);\n\n return (\n <>\n <p className='text-description'>{t('auth other device emoji message')}</p>\n {emoji && <Emoji text={emoji} className='mli-auto mlb-2 text-center' />}\n <p className='text-description'>{t('auth code message')}</p>\n <AuthCode code={code} large classNames='mli-auto mlb-2 text-center grow' />\n <Button variant='ghost' onClick={onCancel}>\n {t('cancel label')}\n </Button>\n </>\n );\n};\n\nconst InvitationComplete = ({ statusValue }: { statusValue: number }) => {\n return statusValue > 0 ? <Check className={mx('m-1.5', getSize(6))} /> : <X className={mx('m-1.5', getSize(6))} />;\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback } from 'react';\n\nimport { createIntent, LayoutAction, useIntentDispatcher } from '@dxos/app-framework';\nimport { ObservabilityAction } from '@dxos/plugin-observability/types';\nimport { type InvitationResult } from '@dxos/react-client/invitations';\nimport { Dialog, useTranslation } from '@dxos/react-ui';\nimport { JoinPanel, type JoinPanelProps } from '@dxos/shell/react';\n\nimport { CLIENT_PLUGIN } from '../meta';\nimport { ClientAction } from '../types';\n\nexport const JOIN_DIALOG = `${CLIENT_PLUGIN}/JoinDialog`;\n\nexport const JoinDialog = (props: JoinPanelProps) => {\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const { t } = useTranslation(CLIENT_PLUGIN);\n\n const handleCancelResetStorage = useCallback(() => dispatch(createIntent(ClientAction.ShareIdentity)), [dispatch]);\n\n const handleDone = useCallback(\n async (result: InvitationResult | null) => {\n if (result?.identityKey) {\n await Promise.all([\n dispatch(createIntent(LayoutAction.UpdateDialog, { part: 'dialog', options: { state: false } })),\n dispatch(\n createIntent(ObservabilityAction.SendEvent, {\n name: props.initialDisposition === 'recover-identity' ? 'identity.recover' : 'identity.join',\n }),\n ),\n ]);\n }\n },\n [dispatch],\n );\n\n return (\n <Dialog.Content>\n <Dialog.Title classNames='sr-only'>{t('join space label', { ns: 'os' })}</Dialog.Title>\n <JoinPanel\n mode='halo-only'\n {...props}\n exitActionParent={<Dialog.Close asChild />}\n doneActionParent={<Dialog.Close asChild />}\n onCancelResetStorage={handleCancelResetStorage}\n onDone={handleDone}\n />\n </Dialog.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Schema as S } from 'effect';\nimport React, { type ChangeEvent, useCallback, useMemo, useState } from 'react';\n\nimport { debounce } from '@dxos/async';\nimport { useClient } from '@dxos/react-client';\nimport { type Identity, useIdentity } from '@dxos/react-client/halo';\nimport { ButtonGroup, Clipboard, Input, useTranslation } from '@dxos/react-ui';\nimport { Form, type InputComponent, ControlItem, ControlItemInput, ControlSection } from '@dxos/react-ui-form';\nimport { EmojiPickerBlock, HuePicker } from '@dxos/react-ui-pickers';\nimport { StackItem } from '@dxos/react-ui-stack';\nimport { hexToHue, hexToEmoji } from '@dxos/util';\n\nimport { CLIENT_PLUGIN } from '../meta';\n\n// TODO(thure): Factor out?\nconst getDefaultHueValue = (identity: Identity | null) => hexToHue(identity?.identityKey.toHex() ?? '0');\nconst getDefaultEmojiValue = (identity: Identity | null) => hexToEmoji(identity?.identityKey.toHex() ?? '0');\nconst getHueValue = (identity: Identity | null) => identity?.profile?.data?.hue || getDefaultHueValue(identity);\nconst getEmojiValue = (identity: Identity | null) => identity?.profile?.data?.emoji || getDefaultEmojiValue(identity);\n\nexport const ProfileContainer = () => {\n const { t } = useTranslation(CLIENT_PLUGIN);\n const client = useClient();\n const identity = useIdentity();\n const [displayName, setDisplayNameDirectly] = useState(identity?.profile?.displayName ?? '');\n const [emoji, setEmojiDirectly] = useState<string>(getEmojiValue(identity));\n const [hue, setHueDirectly] = useState<string>(getHueValue(identity));\n\n const updateProfile = useMemo(\n () =>\n debounce(\n (profile: Partial<Profile>) =>\n client.halo.updateProfile({\n displayName: profile.displayName,\n data: {\n emoji: profile.emoji,\n hue: profile.hue,\n },\n }),\n 2_000,\n ),\n [],\n );\n\n const handleSave = useCallback(\n (profile: Profile) => {\n setDisplayNameDirectly(profile.displayName);\n setEmojiDirectly(profile.emoji);\n setHueDirectly(profile.hue);\n updateProfile(profile);\n },\n [identity],\n );\n\n const values = useMemo(\n () => ({\n displayName,\n emoji,\n hue,\n did: identity?.did,\n }),\n [identity, displayName, emoji, hue],\n );\n\n // TODO(wittjosiah): Integrate descriptions with the form schema.\n const customElements: Partial<Record<string, InputComponent>> = useMemo(\n () => ({\n displayName: ({ type, label, getValue, onValueChange }) => {\n const handleChange = useCallback(\n ({ target: { value } }: ChangeEvent<HTMLInputElement>) => onValueChange(type, value),\n [onValueChange, type],\n );\n return (\n <ControlItemInput title={label} description={t('display name description')}>\n <Input.TextInput\n value={getValue()}\n onChange={handleChange}\n placeholder={t('display name input placeholder')}\n classNames='min-is-64'\n />\n </ControlItemInput>\n );\n },\n emoji: ({ type, label, getValue, onValueChange }) => {\n const handleChange = useCallback((nextEmoji: string) => onValueChange(type, nextEmoji), [onValueChange, type]);\n const handleEmojiReset = useCallback(\n () => onValueChange(type, getDefaultEmojiValue(identity)),\n [onValueChange, type],\n );\n return (\n <ControlItem title={label} description={t('icon description')}>\n <EmojiPickerBlock\n triggerVariant='default'\n emoji={getValue()}\n onChangeEmoji={handleChange}\n onClickClear={handleEmojiReset}\n classNames='justify-self-end'\n />\n </ControlItem>\n );\n },\n hue: ({ type, label, getValue, onValueChange }) => {\n const handleChange = useCallback((nextHue: string) => onValueChange(type, nextHue), [onValueChange, type]);\n const handleHueReset = useCallback(\n () => onValueChange(type, getDefaultHueValue(identity)),\n [onValueChange, type],\n );\n return (\n <ControlItem title={label} description={t('hue description')}>\n <HuePicker\n value={getValue()}\n onChange={handleChange}\n onReset={handleHueReset}\n classNames='[--hue-preview-size:1.5rem] justify-self-end'\n />\n </ControlItem>\n );\n },\n // TODO(wittjosiah): We need text input annotations for disabled and copyable.\n did: ({ label, getValue }) => {\n return (\n <ControlItemInput title={label} description={t('did description')}>\n <ButtonGroup>\n <Input.TextInput value={getValue()} disabled classNames='min-is-64' />\n <Clipboard.IconButton value={getValue() ?? ''} />\n </ButtonGroup>\n </ControlItemInput>\n );\n },\n }),\n [t],\n );\n\n return (\n <StackItem.Content classNames='p-2 block overflow-y-auto'>\n <Clipboard.Provider>\n <ControlSection title={t('profile label')} description={t('profile description')}>\n <Form\n schema={ProfileSchema}\n values={values}\n autoSave\n onSave={handleSave}\n Custom={customElements}\n 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'\n />\n </ControlSection>\n </Clipboard.Provider>\n </StackItem.Content>\n );\n};\n\n// TODO(wittjosiah): Integrate annotations with translations.\nconst ProfileSchema = S.Struct({\n displayName: S.String.annotations({ title: 'Display name' }),\n emoji: S.String.annotations({ title: 'Avatar' }),\n hue: S.String.annotations({ title: 'Color' }),\n did: S.String.annotations({ title: 'DID' }),\n});\ntype Profile = S.Schema.Type<typeof ProfileSchema>;\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback, useState } from 'react';\n\nimport { AlertDialog, Button, Clipboard, Input, useTranslation } from '@dxos/react-ui';\n\nimport { CLIENT_PLUGIN } from '../meta';\n\nexport const RECOVERY_CODE_DIALOG = `${CLIENT_PLUGIN}/RecoveryCodeDialog`;\n\nexport type RecoveryCodeDialogProps = {\n code: string;\n};\n\nexport const RecoveryCodeDialog = ({ code }: RecoveryCodeDialogProps) => {\n const { t } = useTranslation(CLIENT_PLUGIN);\n const [confirmation, setConfirmation] = useState(false);\n\n const handleConfirmation = useCallback((checked: boolean) => setConfirmation(checked), []);\n\n return (\n <AlertDialog.Content classNames='bs-content min-bs-[15rem] max-bs-full md:max-is-[40rem] overflow-hidden'>\n <AlertDialog.Title>{t('recovery code dialog title')}</AlertDialog.Title>\n <p className='py-4'>{t('recovery code dialog description')}</p>\n <Clipboard.Provider>\n <Code code={code} />\n </Clipboard.Provider>\n <div className='flex flex-col py-4 gap-2'>\n <p>{t('recovery code dialog warning 1')}</p>\n <p>{t('recovery code dialog warning 2')}</p>\n </div>\n <div className='flex items-center gap-2 pbe-4'>\n <Input.Root>\n <Input.Checkbox\n data-testid='recoveryCode.confirm'\n checked={confirmation}\n onCheckedChange={handleConfirmation}\n />\n <Input.Label>{t('recovery code confirmation label')}</Input.Label>\n </Input.Root>\n </div>\n <div className='flex justify-end'>\n <AlertDialog.Action asChild>\n <Button data-testid='recoveryCode.continue' variant='primary' disabled={!confirmation}>\n {t('continue label')}\n </Button>\n </AlertDialog.Action>\n </div>\n </AlertDialog.Content>\n );\n};\n\nconst Code = ({ code }: { code: string }) => {\n const words = code.split(' ');\n return (\n <div className='relative p-2 border border-separator rounded group'>\n <Clipboard.IconButton value={code} classNames='absolute top-2 right-2 invisible group-hover:visible' />\n <div className='grid grid-cols-4'>\n {words.map((word, i) => (\n <div key={i} className='flex items-center p-2 gap-2'>\n <div className='w-4 text-xs text-center text-subdued'>{i + 1}</div>\n <div className='text-sm'>{word}</div>\n </div>\n ))}\n </div>\n </div>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\n\nimport { createIntent, useIntentDispatcher } from '@dxos/app-framework';\nimport { useCredentials } from '@dxos/react-client/halo';\nimport { Icon, IconButton, List, ListItem, useTranslation, Message } from '@dxos/react-ui';\nimport { ControlGroup, ControlItem, ControlSection } from '@dxos/react-ui-form';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { CLIENT_PLUGIN } from '../meta';\nimport { ClientAction } from '../types';\n\nexport const MANAGE_CREDENTIALS_DIALOG = `${CLIENT_PLUGIN}/ManageCredentialsDialog`;\n\nexport const RecoveryCredentialsContainer = () => {\n const { t } = useTranslation(CLIENT_PLUGIN);\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const credentials = useCredentials();\n const recoveryCredentials = credentials.filter(\n (credential) => credential.subject.assertion['@type'] === 'dxos.halo.credentials.IdentityRecovery',\n );\n\n return (\n <StackItem.Content classNames='p-2 block overflow-y-auto'>\n <ControlSection title={t('recovery setup dialog title')} description={t('recovery setup dialog description')}>\n <ControlGroup>\n <ControlItem title={t('create passkey label')} description={t('create passkey description')}>\n <IconButton\n label={t('create passkey label')}\n icon='ph--key--duotone'\n variant='primary'\n size={5}\n onClick={() => dispatch(createIntent(ClientAction.CreatePasskey))}\n />\n </ControlItem>\n <ControlItem title={t('create recovery code label')} description={t('create recovery code description')}>\n <IconButton\n label={t('create recovery code label')}\n icon='ph--receipt--duotone'\n variant='default'\n size={5}\n onClick={() => dispatch(createIntent(ClientAction.CreateRecoveryCode))}\n />\n </ControlItem>\n </ControlGroup>\n </ControlSection>\n <ControlSection title={t('credentials list label')}>\n {recoveryCredentials.length < 1 ? (\n <Message.Root valence='error' className='container-max-width'>\n <Message.Title>\n <Icon icon='ph--shield-warning--duotone' size={5} classNames='inline-block align-top mbs-px mie-1' />\n {t('no credentials title')}\n </Message.Title>\n <Message.Body>{t('no credentials message')}</Message.Body>\n </Message.Root>\n ) : (\n <List classNames='container-max-width pli-2'>\n {recoveryCredentials.map((credential) => (\n <ListItem.Root key={credential.id?.toHex()}>\n <ListItem.Endcap>\n <Icon icon='ph--key--regular' size={5} />\n </ListItem.Endcap>\n <ListItem.Heading>{credential.issuanceDate.toLocaleString()}</ListItem.Heading>\n </ListItem.Root>\n ))}\n </List>\n )}\n </ControlSection>\n </StackItem.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { useCallback } from 'react';\n\nimport { createIntent, LayoutAction, useIntentDispatcher } from '@dxos/app-framework';\nimport { useClient } from '@dxos/react-client';\nimport { Dialog, useTranslation } from '@dxos/react-ui';\nimport { ConfirmReset, type ConfirmResetProps } from '@dxos/shell/react';\n\nimport { CLIENT_PLUGIN } from '../meta';\nimport { type ClientPluginOptions } from '../types';\n\nexport const RESET_DIALOG = `${CLIENT_PLUGIN}/ResetDialog`;\n\nexport type ResetDialogProps = Pick<ConfirmResetProps, 'mode'> & Pick<ClientPluginOptions, 'onReset'>;\n\nexport const ResetDialog = ({ mode, onReset }: ResetDialogProps) => {\n const { t } = useTranslation(CLIENT_PLUGIN);\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const client = useClient();\n\n const handleReset = useCallback(async () => {\n await client.reset();\n const target =\n mode === 'join new identity' ? 'deviceInvitation' : mode === 'recover' ? 'recoverIdentity' : undefined;\n await onReset?.({ target });\n }, [dispatch, client, mode, onReset]);\n\n const handleCancel = useCallback(() => {\n void dispatch(\n createIntent(LayoutAction.UpdateDialog, {\n part: 'dialog',\n options: { state: false },\n }),\n );\n }, [dispatch]);\n\n // TODO(wittjosiah): Add the sr-only translations.\n // TODO(wittjosiah): Add missing descriptions to other dialogs.\n return (\n <Dialog.Content classNames='bs-content min-bs-[15rem] max-bs-full md:max-is-[40rem] overflow-hidden'>\n <Dialog.Title classNames='sr-only'>{t('reset dialog title')}</Dialog.Title>\n <Dialog.Description classNames='sr-only'>{t('reset dialog description')}</Dialog.Description>\n <ConfirmReset active mode={mode} onConfirm={handleReset} onCancel={handleCancel} />\n </Dialog.Content>\n );\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAyB;AACzB,IAAAA,gBAAwD;AACxD,8BAAmB;AAEnB,2BAAkD;AAClD,iBAAoB;AACpB,0BAAkD;AAClD,kBAAwC;AACxC,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,iBAAAA,gBAAe0B,mCAAAA;AAC7B,QAAM,EAAEzB,iBAAiBC,SAAQ,QAAKC,sBAAAA,qBAAAA;AACtC,QAAM0C,aAASC,qBAAAA,WAAAA;AAEf,QAAMwM,kBAAc5O,cAAAA,aAAY,YAAA;AAC9B,UAAMmC,OAAO0M,MAAK;AAClB,UAAMpE,SACJpK,SAAS,sBAAsB,qBAAqBA,SAAS,YAAY,oBAAoB4D;AAC/F,UAAMuH,UAAU;MAAEf;IAAO,CAAA;EAC3B,GAAG;IAACjL;IAAU2C;IAAQ9B;IAAMmL;GAAQ;AAEpC,QAAMsD,mBAAe9O,cAAAA,aAAY,MAAA;AAC/B,SAAKR,aACHS,sBAAAA,cAAa8H,sBAAAA,aAAaC,cAAc;MACtCC,MAAM;MACNC,SAAS;QAAE5E,OAAO;MAAM;IAC1B,CAAA,CAAA;EAEJ,GAAG;IAAC9D;GAAS;AAIb,SACEe,8BAAAA,QAAA,cAACgI,iBAAAA,OAAO5H,SAAO;IAACC,YAAW;KACzBL,8BAAAA,QAAA,cAACgI,iBAAAA,OAAOC,OAAK;IAAC5H,YAAW;KAAWvB,EAAE,oBAAA,CAAA,GACtCkB,8BAAAA,QAAA,cAACgI,iBAAAA,OAAOwG,aAAW;IAACnO,YAAW;KAAWvB,EAAE,0BAAA,CAAA,GAC5CkB,8BAAAA,QAAA,cAACyO,6BAAAA;IAAaC,QAAAA;IAAO5O;IAAY6O,WAAWN;IAAahJ,UAAUkJ;;AAGzE;",
6
+ "names": ["import_react", "import_app_framework", "import_react_ui", "import_react_client", "import_halo", "import_react_ui_form", "import_react_ui_stack", "import_util", "DevicesContainer", "createInvitationUrl", "t", "useTranslation", "dispatchPromise", "dispatch", "useIntentDispatcher", "devices", "useDevices", "swarm", "connectionState", "useNetworkStatus", "handleResetStorage", "useCallback", "createIntent", "ClientAction", "ResetStorage", "handleRecover", "mode", "handleJoinNewIdentity", "React", "Clipboard", "Provider", "StackItem", "Content", "classNames", "ControlSection", "title", "ns", "CLIENT_PLUGIN", "description", "ControlFrame", "ControlFrameItem", "List", "map", "device", "DeviceListItem", "key", "deviceKey", "toHex", "DeviceInvitation", "ControlGroup", "ControlItem", "Button", "variant", "onClick", "data-testid", "props", "client", "useClient", "invitation", "setInvitation", "useState", "onInvitationCreate", "halo", "share", "config", "values", "runtime", "app", "env", "DX_ENVIRONMENT", "subscription", "subscribe", "invitationCode", "InvitationEncoder", "encode", "state", "Invitation", "State", "CONNECTING", "log", "info", "JSON", "stringify", "authCode", "unsubscribe", "onInvitationDone", "undefined", "DeviceInvitationImpl", "InvitationSection", "invitationObservable", "useMulticastObservable", "url", "useEffect", "SUCCESS", "invitationId", "activeView", "CANCELLED", "READY_FOR_AUTHENTICATION", "p", "className", "IconButton", "icon", "label", "disabled", "Viewport", "Root", "Views", "View", "id", "InvitationComplete", "statusValue", "InvitationAuthCode", "code", "onCancel", "InvitationQR", "qrLabel", "useId", "emoji", "hexToEmoji", "div", "role", "QR", "rounding", "backgroundColor", "color", "aria-labelledby", "errorCorrectionLevel", "cutout", "Centered", "Emoji", "text", "span", "value", "AuthCode", "large", "Check", "mx", "getSize", "X", "JOIN_DIALOG", "JoinDialog", "handleCancelResetStorage", "ShareIdentity", "handleDone", "result", "identityKey", "Promise", "all", "LayoutAction", "UpdateDialog", "part", "options", "ObservabilityAction", "SendEvent", "name", "initialDisposition", "Dialog", "Title", "JoinPanel", "exitActionParent", "Close", "asChild", "doneActionParent", "onCancelResetStorage", "onDone", "getDefaultHueValue", "identity", "hexToHue", "getDefaultEmojiValue", "getHueValue", "profile", "data", "hue", "getEmojiValue", "ProfileContainer", "useIdentity", "displayName", "setDisplayNameDirectly", "setEmojiDirectly", "setHueDirectly", "updateProfile", "useMemo", "debounce", "handleSave", "did", "customElements", "type", "getValue", "onValueChange", "handleChange", "target", "ControlItemInput", "Input", "TextInput", "onChange", "placeholder", "nextEmoji", "handleEmojiReset", "EmojiPickerBlock", "triggerVariant", "onChangeEmoji", "onClickClear", "nextHue", "handleHueReset", "HuePicker", "onReset", "ButtonGroup", "Form", "schema", "ProfileSchema", "autoSave", "onSave", "Custom", "S", "Struct", "String", "annotations", "RECOVERY_CODE_DIALOG", "RecoveryCodeDialog", "confirmation", "setConfirmation", "handleConfirmation", "checked", "AlertDialog", "Code", "Checkbox", "onCheckedChange", "Label", "Action", "words", "split", "word", "i", "MANAGE_CREDENTIALS_DIALOG", "RecoveryCredentialsContainer", "credentials", "useCredentials", "recoveryCredentials", "filter", "credential", "subject", "assertion", "size", "CreatePasskey", "CreateRecoveryCode", "length", "Message", "valence", "Icon", "Body", "ListItem", "Endcap", "Heading", "issuanceDate", "toLocaleString", "RESET_DIALOG", "ResetDialog", "handleReset", "reset", "handleCancel", "Description", "ConfirmReset", "active", "onConfirm"]
7
+ }
@@ -16,95 +16,95 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_J5SQ5Q22_exports = {};
20
- __export(chunk_J5SQ5Q22_exports, {
19
+ var chunk_FROKBEVH_exports = {};
20
+ __export(chunk_FROKBEVH_exports, {
21
21
  Account: () => Account,
22
22
  ClientAction: () => ClientAction
23
23
  });
24
- module.exports = __toCommonJS(chunk_J5SQ5Q22_exports);
24
+ module.exports = __toCommonJS(chunk_FROKBEVH_exports);
25
25
  var import_chunk_DJKWB5L6 = require("./chunk-DJKWB5L6.cjs");
26
- var import_effect = require("effect");
26
+ var import_echo_schema = require("@dxos/echo-schema");
27
27
  var import_react_client = require("@dxos/react-client");
28
- var IdentitySchema = import_effect.Schema.Struct({
29
- identityKey: import_effect.Schema.instanceOf(import_react_client.PublicKey),
30
- spaceKey: import_effect.Schema.optional(import_effect.Schema.instanceOf(import_react_client.PublicKey)),
31
- profile: import_effect.Schema.optional(import_effect.Schema.Struct({
32
- displayName: import_effect.Schema.optional(import_effect.Schema.String),
33
- avatarCid: import_effect.Schema.optional(import_effect.Schema.String),
34
- data: import_effect.Schema.optional(import_effect.Schema.Record({
35
- key: import_effect.Schema.String,
36
- value: import_effect.Schema.Any
28
+ var IdentitySchema = import_echo_schema.S.Struct({
29
+ identityKey: import_echo_schema.S.instanceOf(import_react_client.PublicKey),
30
+ spaceKey: import_echo_schema.S.optional(import_echo_schema.S.instanceOf(import_react_client.PublicKey)),
31
+ profile: import_echo_schema.S.optional(import_echo_schema.S.Struct({
32
+ displayName: import_echo_schema.S.optional(import_echo_schema.S.String),
33
+ avatarCid: import_echo_schema.S.optional(import_echo_schema.S.String),
34
+ data: import_echo_schema.S.optional(import_echo_schema.S.Record({
35
+ key: import_echo_schema.S.String,
36
+ value: import_echo_schema.S.Any
37
37
  }))
38
38
  }))
39
39
  });
40
40
  var CLIENT_ACTION = `${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/action`;
41
41
  var ClientAction;
42
42
  (function(ClientAction2) {
43
- class CreateIdentity extends import_effect.Schema.TaggedClass()(`${CLIENT_ACTION}/create-identity`, {
44
- input: import_effect.Schema.Struct({
45
- displayName: import_effect.Schema.optional(import_effect.Schema.String)
43
+ class CreateIdentity extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/create-identity`, {
44
+ input: import_echo_schema.S.Struct({
45
+ displayName: import_echo_schema.S.optional(import_echo_schema.S.String)
46
46
  }),
47
47
  output: IdentitySchema
48
48
  }) {
49
49
  }
50
50
  ClientAction2.CreateIdentity = CreateIdentity;
51
- class JoinIdentity extends import_effect.Schema.TaggedClass()(`${CLIENT_ACTION}/join-identity`, {
52
- input: import_effect.Schema.Struct({
53
- invitationCode: import_effect.Schema.optional(import_effect.Schema.String)
51
+ class JoinIdentity extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/join-identity`, {
52
+ input: import_echo_schema.S.Struct({
53
+ invitationCode: import_echo_schema.S.optional(import_echo_schema.S.String)
54
54
  }),
55
- output: import_effect.Schema.Void
55
+ output: import_echo_schema.S.Void
56
56
  }) {
57
57
  }
58
58
  ClientAction2.JoinIdentity = JoinIdentity;
59
- class ShareIdentity extends import_effect.Schema.TaggedClass()(`${CLIENT_ACTION}/share-identity`, {
60
- input: import_effect.Schema.Void,
61
- output: import_effect.Schema.Void
59
+ class ShareIdentity extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/share-identity`, {
60
+ input: import_echo_schema.S.Void,
61
+ output: import_echo_schema.S.Void
62
62
  }) {
63
63
  }
64
64
  ClientAction2.ShareIdentity = ShareIdentity;
65
- class RecoverIdentity extends import_effect.Schema.TaggedClass()(`${CLIENT_ACTION}/recover-identity`, {
66
- input: import_effect.Schema.Void,
67
- output: import_effect.Schema.Void
65
+ class RecoverIdentity extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/recover-identity`, {
66
+ input: import_echo_schema.S.Void,
67
+ output: import_echo_schema.S.Void
68
68
  }) {
69
69
  }
70
70
  ClientAction2.RecoverIdentity = RecoverIdentity;
71
- class ResetStorage extends import_effect.Schema.TaggedClass()(`${CLIENT_ACTION}/reset-storage`, {
72
- input: import_effect.Schema.Struct({
73
- mode: import_effect.Schema.optional(import_effect.Schema.String)
71
+ class ResetStorage extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/reset-storage`, {
72
+ input: import_echo_schema.S.Struct({
73
+ mode: import_echo_schema.S.optional(import_echo_schema.S.String)
74
74
  }),
75
- output: import_effect.Schema.Void
75
+ output: import_echo_schema.S.Void
76
76
  }) {
77
77
  }
78
78
  ClientAction2.ResetStorage = ResetStorage;
79
- class CreateAgent extends import_effect.Schema.TaggedClass()(`${CLIENT_ACTION}/create-agent`, {
80
- input: import_effect.Schema.Void,
81
- output: import_effect.Schema.Void
79
+ class CreateAgent extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/create-agent`, {
80
+ input: import_echo_schema.S.Void,
81
+ output: import_echo_schema.S.Void
82
82
  }) {
83
83
  }
84
84
  ClientAction2.CreateAgent = CreateAgent;
85
- class CreateRecoveryCode extends import_effect.Schema.TaggedClass()(`${CLIENT_ACTION}/create-recovery-code`, {
86
- input: import_effect.Schema.Void,
87
- output: import_effect.Schema.Void
85
+ class CreateRecoveryCode extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/create-recovery-code`, {
86
+ input: import_echo_schema.S.Void,
87
+ output: import_echo_schema.S.Void
88
88
  }) {
89
89
  }
90
90
  ClientAction2.CreateRecoveryCode = CreateRecoveryCode;
91
- class CreatePasskey extends import_effect.Schema.TaggedClass()(`${CLIENT_ACTION}/create-passkey`, {
92
- input: import_effect.Schema.Void,
93
- output: import_effect.Schema.Void
91
+ class CreatePasskey extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/create-passkey`, {
92
+ input: import_echo_schema.S.Void,
93
+ output: import_echo_schema.S.Void
94
94
  }) {
95
95
  }
96
96
  ClientAction2.CreatePasskey = CreatePasskey;
97
- class RedeemPasskey extends import_effect.Schema.TaggedClass()(`${CLIENT_ACTION}/redeem-passkey`, {
98
- input: import_effect.Schema.Void,
99
- output: import_effect.Schema.Void
97
+ class RedeemPasskey extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/redeem-passkey`, {
98
+ input: import_echo_schema.S.Void,
99
+ output: import_echo_schema.S.Void
100
100
  }) {
101
101
  }
102
102
  ClientAction2.RedeemPasskey = RedeemPasskey;
103
- class RedeemToken extends import_effect.Schema.TaggedClass()(`${CLIENT_ACTION}/redeem-token`, {
104
- input: import_effect.Schema.Struct({
105
- token: import_effect.Schema.String
103
+ class RedeemToken extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/redeem-token`, {
104
+ input: import_echo_schema.S.Struct({
105
+ token: import_echo_schema.S.String
106
106
  }),
107
- output: import_effect.Schema.Void
107
+ output: import_echo_schema.S.Void
108
108
  }) {
109
109
  }
110
110
  ClientAction2.RedeemToken = RedeemToken;
@@ -122,4 +122,4 @@ var Account;
122
122
  Account,
123
123
  ClientAction
124
124
  });
125
- //# sourceMappingURL=chunk-J5SQ5Q22.cjs.map
125
+ //# sourceMappingURL=chunk-FROKBEVH.cjs.map
@@ -0,0 +1,7 @@
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": ";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,yBAAkB;AAClB,0BAA2D;AAM3D,IAAMA,iBAAiBC,qBAAEC,OAAO;EAC9BC,aAAaF,qBAAEG,WAAWC,6BAAAA;EAC1BC,UAAUL,qBAAEM,SAASN,qBAAEG,WAAWC,6BAAAA,CAAAA;EAClCG,SAASP,qBAAEM,SACTN,qBAAEC,OAAO;IACPO,aAAaR,qBAAEM,SAASN,qBAAES,MAAM;IAChCC,WAAWV,qBAAEM,SAASN,q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BAA8B;IAC7FK,OAAOrB,qBAAEyB;IACTH,QAAQtB,qBAAEyB;EACZ,CAAA,EAAA;EAAI;gBAHSK,cAAAA;EAKN,MAAMC,2BAA2B/B,qBAAEoB,YAAW,EAAuB,GAAGJ,aAAAA,yBAAsC;IACnHK,OAAOrB,qBAAEyB;IACTH,QAAQtB,qBAAEyB;EACZ,CAAA,EAAA;EAAI;gBAHSM,qBAAAA;EAKN,MAAMC,sBAAsBhC,qBAAEoB,YAAW,EAAkB,GAAGJ,aAAAA,mBAAgC;IACnGK,OAAOrB,qBAAEyB;IACTH,QAAQtB,qBAAEyB;EACZ,CAAA,EAAA;EAAI;gBAHSO,gBAAAA;EAKN,MAAMC,sBAAsBjC,qBAAEoB,YAAW,EAAkB,GAAGJ,aAAAA,mBAAgC;IACnGK,OAAOrB,qBAAEyB;IACTH,QAAQtB,qBAAEyB;EACZ,CAAA,EAAA;EAAI;gBAHSQ,gBAAAA;EAKN,MAAMC,oBAAoBlC,qBAAEoB,YAAW,EAAgB,GAAGJ,aAAAA,iBAA8B;IAC7FK,OAAOrB,qBAAEC,OAAO;MACdkC,OAAOnC,qBAAES;IACX,CAAA;IACAa,QAAQtB,qBAAEyB;EACZ,CAAA,EAAA;EAAI;gBALSS,cAAAA;AAMf,GA1DiBhB,iBAAAA,eAAAA,CAAAA,EAAAA;;UAkFAkB,UAAAA;AAEf,QAAMC,MAAM;WAGCC,KAAK,IAAID,GAAAA;WAETE,UAAU,GAAGF,GAAAA;WACbG,UAAU,GAAGH,GAAAA;WACbI,WAAW,GAAGJ,GAAAA;AAC7B,GAViBD,YAAAA,UAAAA,CAAAA,EAAAA;",
6
+ "names": ["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
+ }