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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/lib/browser/{app-graph-builder-WAS4YZNA.mjs → app-graph-builder-CBRN2DMK.mjs} +36 -32
  2. package/dist/lib/browser/app-graph-builder-CBRN2DMK.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-DCUIJY75.mjs +694 -0
  4. package/dist/lib/browser/chunk-DCUIJY75.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-IA3AVM4I.mjs +111 -0
  6. package/dist/lib/browser/chunk-IA3AVM4I.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-BGY6BSUC.mjs → chunk-PSSNS4C6.mjs} +2 -2
  8. package/dist/lib/{node-esm/chunk-K3KGGSJZ.mjs.map → browser/chunk-PSSNS4C6.mjs.map} +1 -1
  9. package/dist/lib/browser/{chunk-4PLF3BEB.mjs → chunk-UCVFWBKT.mjs} +2 -2
  10. package/dist/lib/{node-esm/chunk-BP56BGZR.mjs.map → browser/chunk-UCVFWBKT.mjs.map} +1 -1
  11. package/dist/lib/browser/{client-LV67Q3R7.mjs → client-NMS3MSFP.mjs} +5 -4
  12. package/dist/lib/browser/client-NMS3MSFP.mjs.map +7 -0
  13. package/dist/lib/browser/index.mjs +12 -12
  14. package/dist/lib/browser/index.mjs.map +3 -3
  15. package/dist/lib/browser/{intent-resolver-NCISOZW4.mjs → intent-resolver-KGM6A3BF.mjs} +14 -14
  16. package/dist/lib/browser/intent-resolver-KGM6A3BF.mjs.map +7 -0
  17. package/dist/lib/browser/meta.json +1 -1
  18. package/dist/lib/browser/migrations-QRQV6ZAM.mjs +23 -0
  19. package/dist/lib/browser/migrations-QRQV6ZAM.mjs.map +7 -0
  20. package/dist/lib/browser/{react-context-WEH7SL4I.mjs → react-context-IE2O2OYK.mjs} +2 -2
  21. package/dist/lib/browser/{react-surface-J7SZR2J6.mjs → react-surface-CKZHHWY3.mjs} +3 -3
  22. package/dist/lib/browser/schema-defs-DNRDVQQJ.mjs +25 -0
  23. package/dist/lib/browser/schema-defs-DNRDVQQJ.mjs.map +7 -0
  24. package/dist/lib/browser/types.mjs +1 -1
  25. package/dist/lib/node/{app-graph-builder-PXOJZJO5.cjs → app-graph-builder-BEEYM3A5.cjs} +45 -41
  26. package/dist/lib/node/app-graph-builder-BEEYM3A5.cjs.map +7 -0
  27. package/dist/lib/node/chunk-73HHNJMV.cjs +719 -0
  28. package/dist/lib/node/chunk-73HHNJMV.cjs.map +7 -0
  29. package/dist/lib/node/chunk-BL6EBWOS.cjs +131 -0
  30. package/dist/lib/node/chunk-BL6EBWOS.cjs.map +7 -0
  31. package/dist/lib/node/{chunk-ZVQIICEN.cjs → chunk-CIYUKY3J.cjs} +5 -5
  32. package/dist/lib/node/{chunk-ZVQIICEN.cjs.map → chunk-CIYUKY3J.cjs.map} +1 -1
  33. package/dist/lib/node/{chunk-W64EOF2B.cjs → chunk-DNKJCPU7.cjs} +5 -5
  34. package/dist/lib/node/{chunk-W64EOF2B.cjs.map → chunk-DNKJCPU7.cjs.map} +1 -1
  35. package/dist/lib/node/{client-BKTGRBYM.cjs → client-Q3EQS4HA.cjs} +10 -9
  36. package/dist/lib/node/client-Q3EQS4HA.cjs.map +7 -0
  37. package/dist/lib/node/index.cjs +19 -19
  38. package/dist/lib/node/index.cjs.map +3 -3
  39. package/dist/lib/node/{intent-resolver-U2576ALY.cjs → intent-resolver-Q4QBA5B2.cjs} +34 -34
  40. package/dist/lib/node/intent-resolver-Q4QBA5B2.cjs.map +7 -0
  41. package/dist/lib/node/meta.json +1 -1
  42. package/dist/lib/node/{migrations-TGNI4FVL.cjs → migrations-6FEWMF7U.cjs} +12 -10
  43. package/dist/lib/node/migrations-6FEWMF7U.cjs.map +7 -0
  44. package/dist/lib/node/{react-context-SF3M3YLR.cjs → react-context-JS7Y5ZOK.cjs} +6 -6
  45. package/dist/lib/node/{react-surface-BSTIXMER.cjs → react-surface-GHKLUOKW.cjs} +24 -24
  46. package/dist/lib/node/{schema-INQ72F54.cjs → schema-defs-TA52ARBO.cjs} +14 -12
  47. package/dist/lib/node/schema-defs-TA52ARBO.cjs.map +7 -0
  48. package/dist/lib/node/types.cjs +3 -3
  49. package/dist/lib/node/types.cjs.map +1 -1
  50. package/dist/lib/node-esm/{app-graph-builder-KIN6NWFI.mjs → app-graph-builder-OZEAAKNT.mjs} +36 -32
  51. package/dist/lib/node-esm/app-graph-builder-OZEAAKNT.mjs.map +7 -0
  52. package/dist/lib/node-esm/{chunk-K3KGGSJZ.mjs → chunk-37E3EI46.mjs} +2 -2
  53. package/dist/lib/{browser/chunk-BGY6BSUC.mjs.map → node-esm/chunk-37E3EI46.mjs.map} +1 -1
  54. package/dist/lib/node-esm/{chunk-BP56BGZR.mjs → chunk-FJYSQRBO.mjs} +2 -2
  55. package/dist/lib/{browser/chunk-4PLF3BEB.mjs.map → node-esm/chunk-FJYSQRBO.mjs.map} +1 -1
  56. package/dist/lib/node-esm/chunk-STGGUFV2.mjs +112 -0
  57. package/dist/lib/node-esm/chunk-STGGUFV2.mjs.map +7 -0
  58. package/dist/lib/node-esm/chunk-ULXZABZ4.mjs +695 -0
  59. package/dist/lib/node-esm/chunk-ULXZABZ4.mjs.map +7 -0
  60. package/dist/lib/node-esm/{client-QQD6WFOB.mjs → client-EBFQZRSF.mjs} +5 -4
  61. package/dist/lib/node-esm/client-EBFQZRSF.mjs.map +7 -0
  62. package/dist/lib/node-esm/index.mjs +12 -12
  63. package/dist/lib/node-esm/index.mjs.map +3 -3
  64. package/dist/lib/node-esm/{intent-resolver-G25U4UGI.mjs → intent-resolver-2GCG4LCE.mjs} +14 -14
  65. package/dist/lib/node-esm/intent-resolver-2GCG4LCE.mjs.map +7 -0
  66. package/dist/lib/node-esm/meta.json +1 -1
  67. package/dist/lib/node-esm/{migrations-IVGATGZR.mjs → migrations-AK43ZE6G.mjs} +9 -7
  68. package/dist/lib/node-esm/migrations-AK43ZE6G.mjs.map +7 -0
  69. package/dist/lib/node-esm/{react-context-EAKKTE5A.mjs → react-context-6N7NMUJE.mjs} +2 -2
  70. package/dist/lib/node-esm/{react-surface-ZPI7T4EM.mjs → react-surface-UCUL26AF.mjs} +3 -3
  71. package/dist/lib/node-esm/schema-defs-O2KQQXJH.mjs +26 -0
  72. package/dist/lib/node-esm/schema-defs-O2KQQXJH.mjs.map +7 -0
  73. package/dist/lib/node-esm/types.mjs +1 -1
  74. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  75. package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
  76. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  77. package/dist/types/src/capabilities/client.d.ts +3 -3
  78. package/dist/types/src/capabilities/client.d.ts.map +1 -1
  79. package/dist/types/src/capabilities/index.d.ts +5 -181
  80. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  81. package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
  82. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  83. package/dist/types/src/capabilities/migrations.d.ts +2 -2
  84. package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
  85. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  86. package/dist/types/src/capabilities/schema-defs.d.ts +4 -0
  87. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
  88. package/dist/types/src/components/DevicesContainer.d.ts +4 -3
  89. package/dist/types/src/components/DevicesContainer.d.ts.map +1 -1
  90. package/dist/types/src/components/DevicesContainer.stories.d.ts.map +1 -1
  91. package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
  92. package/dist/types/src/components/ProfileContainer.d.ts.map +1 -1
  93. package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
  94. package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +1 -1
  95. package/dist/types/src/components/ResetDialog.d.ts.map +1 -1
  96. package/dist/types/src/components/ResetDialog.stories.d.ts.map +1 -1
  97. package/dist/types/src/types.d.ts +59 -53
  98. package/dist/types/src/types.d.ts.map +1 -1
  99. package/dist/types/tsconfig.tsbuildinfo +1 -1
  100. package/package.json +33 -26
  101. package/src/ClientPlugin.ts +2 -2
  102. package/src/capabilities/app-graph-builder.ts +94 -76
  103. package/src/capabilities/client.ts +4 -3
  104. package/src/capabilities/index.ts +1 -1
  105. package/src/capabilities/intent-resolver.ts +11 -11
  106. package/src/capabilities/migrations.ts +14 -11
  107. package/src/capabilities/schema-defs.ts +29 -0
  108. package/src/components/DevicesContainer.stories.tsx +7 -3
  109. package/src/components/DevicesContainer.tsx +85 -61
  110. package/src/components/ProfileContainer.stories.tsx +1 -1
  111. package/src/components/ProfileContainer.tsx +30 -21
  112. package/src/components/RecoveryCodeDialog.stories.tsx +1 -1
  113. package/src/components/RecoveryCredentialsContainer.stories.tsx +2 -2
  114. package/src/components/RecoveryCredentialsContainer.tsx +48 -46
  115. package/src/components/ResetDialog.stories.tsx +7 -1
  116. package/src/translations.ts +2 -2
  117. package/src/types.ts +60 -47
  118. package/dist/lib/browser/app-graph-builder-WAS4YZNA.mjs.map +0 -7
  119. package/dist/lib/browser/chunk-AN7FJKIJ.mjs +0 -105
  120. package/dist/lib/browser/chunk-AN7FJKIJ.mjs.map +0 -7
  121. package/dist/lib/browser/chunk-XZ4TQC56.mjs +0 -619
  122. package/dist/lib/browser/chunk-XZ4TQC56.mjs.map +0 -7
  123. package/dist/lib/browser/client-LV67Q3R7.mjs.map +0 -7
  124. package/dist/lib/browser/intent-resolver-NCISOZW4.mjs.map +0 -7
  125. package/dist/lib/browser/migrations-3DWFOL5Q.mjs +0 -21
  126. package/dist/lib/browser/migrations-3DWFOL5Q.mjs.map +0 -7
  127. package/dist/lib/browser/schema-JQAT6Q7S.mjs +0 -23
  128. package/dist/lib/browser/schema-JQAT6Q7S.mjs.map +0 -7
  129. package/dist/lib/node/app-graph-builder-PXOJZJO5.cjs.map +0 -7
  130. package/dist/lib/node/chunk-3JE5BFCT.cjs +0 -644
  131. package/dist/lib/node/chunk-3JE5BFCT.cjs.map +0 -7
  132. package/dist/lib/node/chunk-FROKBEVH.cjs +0 -125
  133. package/dist/lib/node/chunk-FROKBEVH.cjs.map +0 -7
  134. package/dist/lib/node/client-BKTGRBYM.cjs.map +0 -7
  135. package/dist/lib/node/intent-resolver-U2576ALY.cjs.map +0 -7
  136. package/dist/lib/node/migrations-TGNI4FVL.cjs.map +0 -7
  137. package/dist/lib/node/schema-INQ72F54.cjs.map +0 -7
  138. package/dist/lib/node-esm/app-graph-builder-KIN6NWFI.mjs.map +0 -7
  139. package/dist/lib/node-esm/chunk-AD5W5QCQ.mjs +0 -106
  140. package/dist/lib/node-esm/chunk-AD5W5QCQ.mjs.map +0 -7
  141. package/dist/lib/node-esm/chunk-LZN2UNN7.mjs +0 -620
  142. package/dist/lib/node-esm/chunk-LZN2UNN7.mjs.map +0 -7
  143. package/dist/lib/node-esm/client-QQD6WFOB.mjs.map +0 -7
  144. package/dist/lib/node-esm/intent-resolver-G25U4UGI.mjs.map +0 -7
  145. package/dist/lib/node-esm/migrations-IVGATGZR.mjs.map +0 -7
  146. package/dist/lib/node-esm/schema-OK7HY3JJ.mjs +0 -24
  147. package/dist/lib/node-esm/schema-OK7HY3JJ.mjs.map +0 -7
  148. package/dist/types/src/capabilities/schema.d.ts +0 -4
  149. package/dist/types/src/capabilities/schema.d.ts.map +0 -1
  150. package/src/capabilities/schema.ts +0 -26
  151. /package/dist/lib/browser/{react-context-WEH7SL4I.mjs.map → react-context-IE2O2OYK.mjs.map} +0 -0
  152. /package/dist/lib/browser/{react-surface-J7SZR2J6.mjs.map → react-surface-CKZHHWY3.mjs.map} +0 -0
  153. /package/dist/lib/node/{react-context-SF3M3YLR.cjs.map → react-context-JS7Y5ZOK.cjs.map} +0 -0
  154. /package/dist/lib/node/{react-surface-BSTIXMER.cjs.map → react-surface-GHKLUOKW.cjs.map} +0 -0
  155. /package/dist/lib/node-esm/{react-context-EAKKTE5A.mjs.map → react-context-6N7NMUJE.mjs.map} +0 -0
  156. /package/dist/lib/node-esm/{react-surface-ZPI7T4EM.mjs.map → react-surface-UCUL26AF.mjs.map} +0 -0
@@ -0,0 +1,695 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ ClientAction
4
+ } from "./chunk-STGGUFV2.mjs";
5
+ import {
6
+ CLIENT_PLUGIN
7
+ } from "./chunk-HM7VB4ZV.mjs";
8
+
9
+ // packages/plugins/plugin-client/src/components/DevicesContainer.tsx
10
+ import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
11
+ import { Check, X } from "@phosphor-icons/react";
12
+ import React, { useCallback, useEffect, useState } from "react";
13
+ import { QR } from "react-qr-rounded";
14
+ import { createIntent, useIntentDispatcher } from "@dxos/app-framework";
15
+ import { log } from "@dxos/log";
16
+ import { useClient, useMulticastObservable } from "@dxos/react-client";
17
+ import { useDevices } from "@dxos/react-client/halo";
18
+ import { Invitation, InvitationEncoder } from "@dxos/react-client/invitations";
19
+ import { useNetworkStatus } from "@dxos/react-client/mesh";
20
+ import { Button, Clipboard, IconButton, List, useId, useTranslation } from "@dxos/react-ui";
21
+ import { ControlFrame, ControlFrameItem, ControlGroup, ControlItem, ControlPage, ControlSection } from "@dxos/react-ui-form";
22
+ import { StackItem } from "@dxos/react-ui-stack";
23
+ import { getSize, mx } from "@dxos/react-ui-theme";
24
+ import { AuthCode, Centered, DeviceListItem, Emoji, Viewport } from "@dxos/shell/react";
25
+ import { hexToEmoji } from "@dxos/util";
26
+ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-client/src/components/DevicesContainer.tsx";
27
+ var DevicesContainer = ({ createInvitationUrl }) => {
28
+ var _effect = _useSignals();
29
+ try {
30
+ const { t } = useTranslation("os");
31
+ const { dispatchPromise: dispatch } = useIntentDispatcher();
32
+ const devices = useDevices();
33
+ const { swarm: connectionState } = useNetworkStatus();
34
+ const handleResetStorage = useCallback(() => dispatch(createIntent(ClientAction.ResetStorage)), [
35
+ dispatch
36
+ ]);
37
+ const handleRecover = useCallback(() => dispatch(createIntent(ClientAction.ResetStorage, {
38
+ mode: "recover"
39
+ })), [
40
+ dispatch
41
+ ]);
42
+ const handleJoinNewIdentity = useCallback(() => dispatch(createIntent(ClientAction.ResetStorage, {
43
+ mode: "join new identity"
44
+ })), [
45
+ dispatch
46
+ ]);
47
+ return /* @__PURE__ */ React.createElement(Clipboard.Provider, null, /* @__PURE__ */ React.createElement(StackItem.Content, {
48
+ classNames: "block overflow-y-auto"
49
+ }, /* @__PURE__ */ React.createElement(ControlPage, null, /* @__PURE__ */ React.createElement(ControlSection, {
50
+ title: t("devices verbose label", {
51
+ ns: CLIENT_PLUGIN
52
+ }),
53
+ description: t("devices description", {
54
+ ns: CLIENT_PLUGIN
55
+ })
56
+ }, /* @__PURE__ */ React.createElement(ControlFrame, null, /* @__PURE__ */ React.createElement(ControlFrameItem, {
57
+ title: t("devices label", {
58
+ ns: CLIENT_PLUGIN
59
+ })
60
+ }, /* @__PURE__ */ React.createElement(List, null, devices.map((device) => {
61
+ return /* @__PURE__ */ React.createElement(DeviceListItem, {
62
+ key: device.deviceKey.toHex(),
63
+ device,
64
+ connectionState
65
+ });
66
+ }))), createInvitationUrl && /* @__PURE__ */ React.createElement(ControlFrameItem, {
67
+ title: "Add device"
68
+ }, /* @__PURE__ */ React.createElement(DeviceInvitation, {
69
+ createInvitationUrl
70
+ })))), /* @__PURE__ */ React.createElement(ControlSection, {
71
+ title: t("danger zone title", {
72
+ ns: CLIENT_PLUGIN
73
+ }),
74
+ description: t("danger zone description", {
75
+ ns: CLIENT_PLUGIN
76
+ })
77
+ }, /* @__PURE__ */ React.createElement(ControlGroup, null, /* @__PURE__ */ React.createElement(ControlItem, {
78
+ title: t("reset device label"),
79
+ description: t("reset device description", {
80
+ ns: CLIENT_PLUGIN
81
+ })
82
+ }, /* @__PURE__ */ React.createElement(Button, {
83
+ variant: "destructive",
84
+ onClick: handleResetStorage,
85
+ "data-testid": "devicesContainer.reset"
86
+ }, t("reset device label"))), /* @__PURE__ */ React.createElement(ControlItem, {
87
+ title: t("recover identity label"),
88
+ description: t("recover identity description", {
89
+ ns: CLIENT_PLUGIN
90
+ })
91
+ }, /* @__PURE__ */ React.createElement(Button, {
92
+ variant: "destructive",
93
+ onClick: handleRecover,
94
+ "data-testid": "devicesContainer.recover"
95
+ }, t("recover identity label"))), /* @__PURE__ */ React.createElement(ControlItem, {
96
+ title: t("join new identity label"),
97
+ description: t("join new identity description", {
98
+ ns: CLIENT_PLUGIN
99
+ })
100
+ }, /* @__PURE__ */ React.createElement(Button, {
101
+ variant: "destructive",
102
+ onClick: handleJoinNewIdentity,
103
+ "data-testid": "devicesContainer.joinExisting"
104
+ }, t("join new identity label"))))))));
105
+ } finally {
106
+ _effect.f();
107
+ }
108
+ };
109
+ var DeviceInvitation = (props) => {
110
+ var _effect = _useSignals();
111
+ try {
112
+ const client = useClient();
113
+ const [invitation, setInvitation] = useState();
114
+ const onInvitationCreate = useCallback(() => {
115
+ const invitation2 = client.halo.share();
116
+ if (client.config.values.runtime?.app?.env?.DX_ENVIRONMENT !== "production") {
117
+ const subscription = invitation2.subscribe((invitation3) => {
118
+ const invitationCode = InvitationEncoder.encode(invitation3);
119
+ if (invitation3.state === Invitation.State.CONNECTING) {
120
+ log.info(JSON.stringify({
121
+ invitationCode,
122
+ authCode: invitation3.authCode
123
+ }), void 0, {
124
+ F: __dxlog_file,
125
+ L: 141,
126
+ S: void 0,
127
+ C: (f, a) => f(...a)
128
+ });
129
+ subscription.unsubscribe();
130
+ }
131
+ });
132
+ }
133
+ setInvitation(invitation2);
134
+ }, [
135
+ client
136
+ ]);
137
+ const onInvitationDone = useCallback(() => {
138
+ setInvitation(void 0);
139
+ }, []);
140
+ if (invitation) {
141
+ return /* @__PURE__ */ React.createElement(DeviceInvitationImpl, {
142
+ ...props,
143
+ invitation,
144
+ onInvitationCreate,
145
+ onInvitationDone
146
+ });
147
+ } else {
148
+ return /* @__PURE__ */ React.createElement(InvitationSection, {
149
+ ...props,
150
+ onInvitationCreate,
151
+ onInvitationDone
152
+ });
153
+ }
154
+ } finally {
155
+ _effect.f();
156
+ }
157
+ };
158
+ var DeviceInvitationImpl = ({ invitation: invitationObservable, createInvitationUrl, onInvitationDone, onInvitationCreate }) => {
159
+ var _effect = _useSignals();
160
+ try {
161
+ const invitation = useMulticastObservable(invitationObservable);
162
+ const url = createInvitationUrl(InvitationEncoder.encode(invitation));
163
+ useEffect(() => {
164
+ if (invitation.state >= Invitation.State.SUCCESS) {
165
+ onInvitationDone();
166
+ }
167
+ }, [
168
+ invitation.state
169
+ ]);
170
+ return /* @__PURE__ */ React.createElement(InvitationSection, {
171
+ ...invitation,
172
+ url,
173
+ onInvitationDone,
174
+ onInvitationCreate
175
+ });
176
+ } finally {
177
+ _effect.f();
178
+ }
179
+ };
180
+ var InvitationSection = ({ state = -1, authCode, invitationId = "never", url = "never", onInvitationDone = () => {
181
+ }, onInvitationCreate = () => {
182
+ } }) => {
183
+ var _effect = _useSignals();
184
+ try {
185
+ const { t } = useTranslation(CLIENT_PLUGIN);
186
+ const activeView = state < 0 ? "init" : state >= Invitation.State.CANCELLED ? "complete" : state >= Invitation.State.READY_FOR_AUTHENTICATION && authCode ? "auth-code" : "qr-code";
187
+ return activeView === "init" ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", {
188
+ className: "text-description mbe-2"
189
+ }, t("add device description")), /* @__PURE__ */ React.createElement(IconButton, {
190
+ icon: "ph--plus--regular",
191
+ label: t("create device invitation label"),
192
+ disabled: state >= 0,
193
+ classNames: "is-full",
194
+ "data-testid": "devicesContainer.createInvitation",
195
+ onClick: onInvitationCreate
196
+ })) : /* @__PURE__ */ React.createElement(Viewport.Root, {
197
+ activeView
198
+ }, /* @__PURE__ */ React.createElement(Viewport.Views, null, /* @__PURE__ */ React.createElement(Viewport.View, {
199
+ id: "init"
200
+ }), /* @__PURE__ */ React.createElement(Viewport.View, {
201
+ id: "complete"
202
+ }, /* @__PURE__ */ React.createElement(InvitationComplete, {
203
+ statusValue: state
204
+ })), /* @__PURE__ */ React.createElement(Viewport.View, {
205
+ id: "auth-code"
206
+ }, /* @__PURE__ */ React.createElement(InvitationAuthCode, {
207
+ id: invitationId,
208
+ code: authCode ?? "never",
209
+ onCancel: onInvitationDone
210
+ })), /* @__PURE__ */ React.createElement(Viewport.View, {
211
+ id: "qr-code"
212
+ }, /* @__PURE__ */ React.createElement(InvitationQR, {
213
+ id: invitationId,
214
+ url,
215
+ onCancel: onInvitationDone
216
+ }))));
217
+ } finally {
218
+ _effect.f();
219
+ }
220
+ };
221
+ var InvitationQR = ({ id, url, onCancel }) => {
222
+ var _effect = _useSignals();
223
+ try {
224
+ const { t } = useTranslation("os");
225
+ const qrLabel = useId("devices-container__qr-code");
226
+ const emoji = hexToEmoji(id);
227
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", {
228
+ className: "text-description"
229
+ }, t("qr code description", {
230
+ ns: CLIENT_PLUGIN
231
+ })), /* @__PURE__ */ React.createElement("div", {
232
+ role: "group",
233
+ className: "grid grid-cols-[1fr_min-content] mlb-2 gap-2"
234
+ }, /* @__PURE__ */ React.createElement("div", {
235
+ role: "none",
236
+ className: "is-full aspect-square relative text-description"
237
+ }, /* @__PURE__ */ React.createElement(QR, {
238
+ rounding: 100,
239
+ backgroundColor: "transparent",
240
+ color: "currentColor",
241
+ "aria-labelledby": qrLabel,
242
+ errorCorrectionLevel: "Q",
243
+ cutout: true
244
+ }, url ?? "never"), /* @__PURE__ */ React.createElement(Centered, null, /* @__PURE__ */ React.createElement(Emoji, {
245
+ text: emoji
246
+ }))), /* @__PURE__ */ React.createElement("span", {
247
+ id: qrLabel,
248
+ className: "sr-only"
249
+ }, t("qr label"))), /* @__PURE__ */ React.createElement("div", {
250
+ className: "flex justify-center"
251
+ }, /* @__PURE__ */ React.createElement("div", {
252
+ className: "flex gap-2"
253
+ }, /* @__PURE__ */ React.createElement(Clipboard.Button, {
254
+ value: url ?? "never"
255
+ }), /* @__PURE__ */ React.createElement(Button, {
256
+ variant: "ghost",
257
+ onClick: onCancel
258
+ }, t("cancel label")))));
259
+ } finally {
260
+ _effect.f();
261
+ }
262
+ };
263
+ var InvitationAuthCode = ({ id, code, onCancel }) => {
264
+ var _effect = _useSignals();
265
+ try {
266
+ const { t } = useTranslation("os");
267
+ const emoji = hexToEmoji(id);
268
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", {
269
+ className: "text-description"
270
+ }, t("auth other device emoji message")), emoji && /* @__PURE__ */ React.createElement(Emoji, {
271
+ text: emoji,
272
+ className: "mli-auto mlb-2 text-center"
273
+ }), /* @__PURE__ */ React.createElement("p", {
274
+ className: "text-description"
275
+ }, t("auth code message")), /* @__PURE__ */ React.createElement(AuthCode, {
276
+ code,
277
+ large: true,
278
+ classNames: "mli-auto mlb-2 text-center grow"
279
+ }), /* @__PURE__ */ React.createElement(Button, {
280
+ variant: "ghost",
281
+ onClick: onCancel
282
+ }, t("cancel label")));
283
+ } finally {
284
+ _effect.f();
285
+ }
286
+ };
287
+ var InvitationComplete = ({ statusValue }) => {
288
+ var _effect = _useSignals();
289
+ try {
290
+ return statusValue > 0 ? /* @__PURE__ */ React.createElement(Check, {
291
+ className: mx("m-1.5", getSize(6))
292
+ }) : /* @__PURE__ */ React.createElement(X, {
293
+ className: mx("m-1.5", getSize(6))
294
+ });
295
+ } finally {
296
+ _effect.f();
297
+ }
298
+ };
299
+
300
+ // packages/plugins/plugin-client/src/components/JoinDialog.tsx
301
+ import { useSignals as _useSignals2 } from "@preact-signals/safe-react/tracking";
302
+ import React2, { useCallback as useCallback2 } from "react";
303
+ import { createIntent as createIntent2, LayoutAction, useIntentDispatcher as useIntentDispatcher2 } from "@dxos/app-framework";
304
+ import { ObservabilityAction } from "@dxos/plugin-observability/types";
305
+ import { Dialog, useTranslation as useTranslation2 } from "@dxos/react-ui";
306
+ import { JoinPanel } from "@dxos/shell/react";
307
+ var JOIN_DIALOG = `${CLIENT_PLUGIN}/JoinDialog`;
308
+ var JoinDialog = (props) => {
309
+ var _effect = _useSignals2();
310
+ try {
311
+ const { dispatchPromise: dispatch } = useIntentDispatcher2();
312
+ const { t } = useTranslation2(CLIENT_PLUGIN);
313
+ const handleCancelResetStorage = useCallback2(() => dispatch(createIntent2(ClientAction.ShareIdentity)), [
314
+ dispatch
315
+ ]);
316
+ const handleDone = useCallback2(async (result) => {
317
+ if (result?.identityKey) {
318
+ await Promise.all([
319
+ dispatch(createIntent2(LayoutAction.UpdateDialog, {
320
+ part: "dialog",
321
+ options: {
322
+ state: false
323
+ }
324
+ })),
325
+ dispatch(createIntent2(ObservabilityAction.SendEvent, {
326
+ name: props.initialDisposition === "recover-identity" ? "identity.recover" : "identity.join"
327
+ }))
328
+ ]);
329
+ }
330
+ }, [
331
+ dispatch
332
+ ]);
333
+ return /* @__PURE__ */ React2.createElement(Dialog.Content, null, /* @__PURE__ */ React2.createElement(Dialog.Title, {
334
+ classNames: "sr-only"
335
+ }, t("join space label", {
336
+ ns: "os"
337
+ })), /* @__PURE__ */ React2.createElement(JoinPanel, {
338
+ mode: "halo-only",
339
+ ...props,
340
+ exitActionParent: /* @__PURE__ */ React2.createElement(Dialog.Close, {
341
+ asChild: true
342
+ }),
343
+ doneActionParent: /* @__PURE__ */ React2.createElement(Dialog.Close, {
344
+ asChild: true
345
+ }),
346
+ onCancelResetStorage: handleCancelResetStorage,
347
+ onDone: handleDone
348
+ }));
349
+ } finally {
350
+ _effect.f();
351
+ }
352
+ };
353
+
354
+ // packages/plugins/plugin-client/src/components/ProfileContainer.tsx
355
+ import { useSignals as _useSignals3 } from "@preact-signals/safe-react/tracking";
356
+ import { Schema } from "effect";
357
+ import React3, { useCallback as useCallback3, useMemo, useState as useState2 } from "react";
358
+ import { debounce } from "@dxos/async";
359
+ import { useClient as useClient2 } from "@dxos/react-client";
360
+ import { useIdentity } from "@dxos/react-client/halo";
361
+ import { ButtonGroup, Clipboard as Clipboard2, Input, useTranslation as useTranslation3 } from "@dxos/react-ui";
362
+ import { Form, ControlItem as ControlItem2, ControlItemInput, ControlSection as ControlSection2, ControlPage as ControlPage2 } from "@dxos/react-ui-form";
363
+ import { EmojiPickerBlock, HuePicker } from "@dxos/react-ui-pickers";
364
+ import { StackItem as StackItem2 } from "@dxos/react-ui-stack";
365
+ import { hexToHue, hexToEmoji as hexToEmoji2 } from "@dxos/util";
366
+ var getDefaultHueValue = (identity) => hexToHue(identity?.identityKey.toHex() ?? "0");
367
+ var getDefaultEmojiValue = (identity) => hexToEmoji2(identity?.identityKey.toHex() ?? "0");
368
+ var getHueValue = (identity) => identity?.profile?.data?.hue || getDefaultHueValue(identity);
369
+ var getEmojiValue = (identity) => identity?.profile?.data?.emoji || getDefaultEmojiValue(identity);
370
+ var ProfileContainer = () => {
371
+ var _effect = _useSignals3();
372
+ try {
373
+ const { t } = useTranslation3(CLIENT_PLUGIN);
374
+ const client = useClient2();
375
+ const identity = useIdentity();
376
+ const [displayName, setDisplayNameDirectly] = useState2(identity?.profile?.displayName ?? "");
377
+ const [emoji, setEmojiDirectly] = useState2(getEmojiValue(identity));
378
+ const [hue, setHueDirectly] = useState2(getHueValue(identity));
379
+ const updateProfile = useMemo(() => debounce((profile) => client.halo.updateProfile({
380
+ displayName: profile.displayName,
381
+ data: {
382
+ emoji: profile.emoji,
383
+ hue: profile.hue
384
+ }
385
+ }), 2e3), []);
386
+ const handleSave = useCallback3((profile) => {
387
+ setDisplayNameDirectly(profile.displayName);
388
+ setEmojiDirectly(profile.emoji);
389
+ setHueDirectly(profile.hue);
390
+ updateProfile(profile);
391
+ }, [
392
+ identity
393
+ ]);
394
+ const values = useMemo(() => ({
395
+ displayName,
396
+ emoji,
397
+ hue,
398
+ did: identity?.did
399
+ }), [
400
+ identity,
401
+ displayName,
402
+ emoji,
403
+ hue
404
+ ]);
405
+ const customElements = useMemo(() => ({
406
+ displayName: ({ type, label, getValue, onValueChange }) => {
407
+ const handleChange = useCallback3(({ target: { value } }) => onValueChange(type, value), [
408
+ onValueChange,
409
+ type
410
+ ]);
411
+ return /* @__PURE__ */ React3.createElement(ControlItemInput, {
412
+ title: label,
413
+ description: t("display name description")
414
+ }, /* @__PURE__ */ React3.createElement(Input.TextInput, {
415
+ value: getValue(),
416
+ onChange: handleChange,
417
+ placeholder: t("display name input placeholder"),
418
+ classNames: "min-is-64"
419
+ }));
420
+ },
421
+ emoji: ({ type, label, getValue, onValueChange }) => {
422
+ const handleChange = useCallback3((nextEmoji) => onValueChange(type, nextEmoji), [
423
+ onValueChange,
424
+ type
425
+ ]);
426
+ const handleEmojiReset = useCallback3(() => onValueChange(type, getDefaultEmojiValue(identity)), [
427
+ onValueChange,
428
+ type
429
+ ]);
430
+ return /* @__PURE__ */ React3.createElement(ControlItem2, {
431
+ title: label,
432
+ description: t("icon description")
433
+ }, /* @__PURE__ */ React3.createElement(EmojiPickerBlock, {
434
+ triggerVariant: "default",
435
+ emoji: getValue(),
436
+ onChangeEmoji: handleChange,
437
+ onClickClear: handleEmojiReset,
438
+ classNames: "justify-self-end"
439
+ }));
440
+ },
441
+ hue: ({ type, label, getValue, onValueChange }) => {
442
+ const handleChange = useCallback3((nextHue) => onValueChange(type, nextHue), [
443
+ onValueChange,
444
+ type
445
+ ]);
446
+ const handleHueReset = useCallback3(() => onValueChange(type, getDefaultHueValue(identity)), [
447
+ onValueChange,
448
+ type
449
+ ]);
450
+ return /* @__PURE__ */ React3.createElement(ControlItem2, {
451
+ title: label,
452
+ description: t("hue description")
453
+ }, /* @__PURE__ */ React3.createElement(HuePicker, {
454
+ value: getValue(),
455
+ onChange: handleChange,
456
+ onReset: handleHueReset,
457
+ classNames: "[--hue-preview-size:1.5rem] justify-self-end"
458
+ }));
459
+ },
460
+ // TODO(wittjosiah): We need text input annotations for disabled and copyable.
461
+ did: ({ label, getValue }) => {
462
+ return /* @__PURE__ */ React3.createElement(ControlItemInput, {
463
+ title: label,
464
+ description: t("did description")
465
+ }, /* @__PURE__ */ React3.createElement(ButtonGroup, null, /* @__PURE__ */ React3.createElement(Input.TextInput, {
466
+ value: getValue(),
467
+ disabled: true,
468
+ classNames: "min-is-64"
469
+ }), /* @__PURE__ */ React3.createElement(Clipboard2.IconButton, {
470
+ value: getValue() ?? ""
471
+ })));
472
+ }
473
+ }), [
474
+ t
475
+ ]);
476
+ return /* @__PURE__ */ React3.createElement(StackItem2.Content, {
477
+ classNames: "block overflow-y-auto"
478
+ }, /* @__PURE__ */ React3.createElement(ControlPage2, null, /* @__PURE__ */ React3.createElement(Clipboard2.Provider, null, /* @__PURE__ */ React3.createElement(ControlSection2, {
479
+ title: t("profile label"),
480
+ description: t("profile description")
481
+ }, /* @__PURE__ */ React3.createElement(Form, {
482
+ schema: ProfileSchema,
483
+ values,
484
+ autoSave: true,
485
+ onSave: handleSave,
486
+ Custom: customElements,
487
+ 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'
488
+ })))));
489
+ } finally {
490
+ _effect.f();
491
+ }
492
+ };
493
+ var ProfileSchema = Schema.Struct({
494
+ displayName: Schema.String.annotations({
495
+ title: "Display name"
496
+ }),
497
+ emoji: Schema.String.annotations({
498
+ title: "Avatar"
499
+ }),
500
+ hue: Schema.String.annotations({
501
+ title: "Color"
502
+ }),
503
+ did: Schema.String.annotations({
504
+ title: "DID"
505
+ })
506
+ });
507
+
508
+ // packages/plugins/plugin-client/src/components/RecoveryCodeDialog.tsx
509
+ import { useSignals as _useSignals4 } from "@preact-signals/safe-react/tracking";
510
+ import React4, { useCallback as useCallback4, useState as useState3 } from "react";
511
+ import { AlertDialog, Button as Button2, Clipboard as Clipboard3, Input as Input2, useTranslation as useTranslation4 } from "@dxos/react-ui";
512
+ var RECOVERY_CODE_DIALOG = `${CLIENT_PLUGIN}/RecoveryCodeDialog`;
513
+ var RecoveryCodeDialog = ({ code }) => {
514
+ var _effect = _useSignals4();
515
+ try {
516
+ const { t } = useTranslation4(CLIENT_PLUGIN);
517
+ const [confirmation, setConfirmation] = useState3(false);
518
+ const handleConfirmation = useCallback4((checked) => setConfirmation(checked), []);
519
+ return /* @__PURE__ */ React4.createElement(AlertDialog.Content, {
520
+ classNames: "bs-content min-bs-[15rem] max-bs-full md:max-is-[40rem] overflow-hidden"
521
+ }, /* @__PURE__ */ React4.createElement(AlertDialog.Title, null, t("recovery code dialog title")), /* @__PURE__ */ React4.createElement("p", {
522
+ className: "py-4"
523
+ }, t("recovery code dialog description")), /* @__PURE__ */ React4.createElement(Clipboard3.Provider, null, /* @__PURE__ */ React4.createElement(Code, {
524
+ code
525
+ })), /* @__PURE__ */ React4.createElement("div", {
526
+ className: "flex flex-col py-4 gap-2"
527
+ }, /* @__PURE__ */ React4.createElement("p", null, t("recovery code dialog warning 1")), /* @__PURE__ */ React4.createElement("p", null, t("recovery code dialog warning 2"))), /* @__PURE__ */ React4.createElement("div", {
528
+ className: "flex items-center gap-2 pbe-4"
529
+ }, /* @__PURE__ */ React4.createElement(Input2.Root, null, /* @__PURE__ */ React4.createElement(Input2.Checkbox, {
530
+ "data-testid": "recoveryCode.confirm",
531
+ checked: confirmation,
532
+ onCheckedChange: handleConfirmation
533
+ }), /* @__PURE__ */ React4.createElement(Input2.Label, null, t("recovery code confirmation label")))), /* @__PURE__ */ React4.createElement("div", {
534
+ className: "flex justify-end"
535
+ }, /* @__PURE__ */ React4.createElement(AlertDialog.Action, {
536
+ asChild: true
537
+ }, /* @__PURE__ */ React4.createElement(Button2, {
538
+ "data-testid": "recoveryCode.continue",
539
+ variant: "primary",
540
+ disabled: !confirmation
541
+ }, t("continue label")))));
542
+ } finally {
543
+ _effect.f();
544
+ }
545
+ };
546
+ var Code = ({ code }) => {
547
+ var _effect = _useSignals4();
548
+ try {
549
+ const words = code.split(" ");
550
+ return /* @__PURE__ */ React4.createElement("div", {
551
+ className: "relative p-2 border border-separator rounded group"
552
+ }, /* @__PURE__ */ React4.createElement(Clipboard3.IconButton, {
553
+ value: code,
554
+ classNames: "absolute top-2 right-2 invisible group-hover:visible"
555
+ }), /* @__PURE__ */ React4.createElement("div", {
556
+ className: "grid grid-cols-4"
557
+ }, words.map((word, i) => /* @__PURE__ */ React4.createElement("div", {
558
+ key: i,
559
+ className: "flex items-center p-2 gap-2"
560
+ }, /* @__PURE__ */ React4.createElement("div", {
561
+ className: "w-4 text-xs text-center text-subdued"
562
+ }, i + 1), /* @__PURE__ */ React4.createElement("div", {
563
+ className: "text-sm"
564
+ }, word)))));
565
+ } finally {
566
+ _effect.f();
567
+ }
568
+ };
569
+
570
+ // packages/plugins/plugin-client/src/components/RecoveryCredentialsContainer.tsx
571
+ import { useSignals as _useSignals5 } from "@preact-signals/safe-react/tracking";
572
+ import React5 from "react";
573
+ import { createIntent as createIntent3, useIntentDispatcher as useIntentDispatcher3 } from "@dxos/app-framework";
574
+ import { useCredentials } from "@dxos/react-client/halo";
575
+ import { Icon, IconButton as IconButton2, List as List2, ListItem, useTranslation as useTranslation5, Message } from "@dxos/react-ui";
576
+ import { ControlGroup as ControlGroup2, ControlItem as ControlItem3, ControlPage as ControlPage3, ControlSection as ControlSection3 } from "@dxos/react-ui-form";
577
+ import { StackItem as StackItem3 } from "@dxos/react-ui-stack";
578
+ var MANAGE_CREDENTIALS_DIALOG = `${CLIENT_PLUGIN}/ManageCredentialsDialog`;
579
+ var RecoveryCredentialsContainer = () => {
580
+ var _effect = _useSignals5();
581
+ try {
582
+ const { t } = useTranslation5(CLIENT_PLUGIN);
583
+ const { dispatchPromise: dispatch } = useIntentDispatcher3();
584
+ const credentials = useCredentials();
585
+ const recoveryCredentials = credentials.filter((credential) => credential.subject.assertion["@type"] === "dxos.halo.credentials.IdentityRecovery");
586
+ return /* @__PURE__ */ React5.createElement(StackItem3.Content, {
587
+ classNames: "block overflow-y-auto"
588
+ }, /* @__PURE__ */ React5.createElement(ControlPage3, null, /* @__PURE__ */ React5.createElement(ControlSection3, {
589
+ title: t("recovery setup dialog title"),
590
+ description: t("recovery setup dialog description")
591
+ }, /* @__PURE__ */ React5.createElement(ControlGroup2, null, /* @__PURE__ */ React5.createElement(ControlItem3, {
592
+ title: t("create passkey label"),
593
+ description: t("create passkey description")
594
+ }, /* @__PURE__ */ React5.createElement(IconButton2, {
595
+ label: t("create passkey label"),
596
+ icon: "ph--key--duotone",
597
+ variant: "primary",
598
+ size: 5,
599
+ onClick: () => dispatch(createIntent3(ClientAction.CreatePasskey))
600
+ })), /* @__PURE__ */ React5.createElement(ControlItem3, {
601
+ title: t("create recovery code label"),
602
+ description: t("create recovery code description")
603
+ }, /* @__PURE__ */ React5.createElement(IconButton2, {
604
+ label: t("create recovery code label"),
605
+ icon: "ph--receipt--duotone",
606
+ variant: "default",
607
+ size: 5,
608
+ onClick: () => dispatch(createIntent3(ClientAction.CreateRecoveryCode))
609
+ })))), /* @__PURE__ */ React5.createElement(ControlSection3, {
610
+ title: t("credentials list label")
611
+ }, recoveryCredentials.length < 1 ? /* @__PURE__ */ React5.createElement(Message.Root, {
612
+ valence: "error",
613
+ className: "container-max-width"
614
+ }, /* @__PURE__ */ React5.createElement(Message.Title, null, /* @__PURE__ */ React5.createElement(Icon, {
615
+ icon: "ph--shield-warning--duotone",
616
+ size: 5,
617
+ classNames: "inline-block align-top mbs-px mie-1"
618
+ }), t("no credentials title")), /* @__PURE__ */ React5.createElement(Message.Body, null, t("no credentials message"))) : /* @__PURE__ */ React5.createElement(List2, {
619
+ classNames: "container-max-width pli-2"
620
+ }, recoveryCredentials.map((credential) => /* @__PURE__ */ React5.createElement(ListItem.Root, {
621
+ key: credential.id?.toHex()
622
+ }, /* @__PURE__ */ React5.createElement(ListItem.Endcap, null, /* @__PURE__ */ React5.createElement(Icon, {
623
+ icon: "ph--key--regular",
624
+ size: 5
625
+ })), /* @__PURE__ */ React5.createElement(ListItem.Heading, null, credential.issuanceDate.toLocaleString())))))));
626
+ } finally {
627
+ _effect.f();
628
+ }
629
+ };
630
+
631
+ // packages/plugins/plugin-client/src/components/ResetDialog.tsx
632
+ import { useSignals as _useSignals6 } from "@preact-signals/safe-react/tracking";
633
+ import React6, { useCallback as useCallback5 } from "react";
634
+ import { createIntent as createIntent4, LayoutAction as LayoutAction2, useIntentDispatcher as useIntentDispatcher4 } from "@dxos/app-framework";
635
+ import { useClient as useClient3 } from "@dxos/react-client";
636
+ import { Dialog as Dialog2, useTranslation as useTranslation6 } from "@dxos/react-ui";
637
+ import { ConfirmReset } from "@dxos/shell/react";
638
+ var RESET_DIALOG = `${CLIENT_PLUGIN}/ResetDialog`;
639
+ var ResetDialog = ({ mode, onReset }) => {
640
+ var _effect = _useSignals6();
641
+ try {
642
+ const { t } = useTranslation6(CLIENT_PLUGIN);
643
+ const { dispatchPromise: dispatch } = useIntentDispatcher4();
644
+ const client = useClient3();
645
+ const handleReset = useCallback5(async () => {
646
+ await client.reset();
647
+ const target = mode === "join new identity" ? "deviceInvitation" : mode === "recover" ? "recoverIdentity" : void 0;
648
+ await onReset?.({
649
+ target
650
+ });
651
+ }, [
652
+ dispatch,
653
+ client,
654
+ mode,
655
+ onReset
656
+ ]);
657
+ const handleCancel = useCallback5(() => {
658
+ void dispatch(createIntent4(LayoutAction2.UpdateDialog, {
659
+ part: "dialog",
660
+ options: {
661
+ state: false
662
+ }
663
+ }));
664
+ }, [
665
+ dispatch
666
+ ]);
667
+ return /* @__PURE__ */ React6.createElement(Dialog2.Content, {
668
+ classNames: "bs-content min-bs-[15rem] max-bs-full md:max-is-[40rem] overflow-hidden"
669
+ }, /* @__PURE__ */ React6.createElement(Dialog2.Title, {
670
+ classNames: "sr-only"
671
+ }, t("reset dialog title")), /* @__PURE__ */ React6.createElement(Dialog2.Description, {
672
+ classNames: "sr-only"
673
+ }, t("reset dialog description")), /* @__PURE__ */ React6.createElement(ConfirmReset, {
674
+ active: true,
675
+ mode,
676
+ onConfirm: handleReset,
677
+ onCancel: handleCancel
678
+ }));
679
+ } finally {
680
+ _effect.f();
681
+ }
682
+ };
683
+
684
+ export {
685
+ DevicesContainer,
686
+ JOIN_DIALOG,
687
+ JoinDialog,
688
+ ProfileContainer,
689
+ RECOVERY_CODE_DIALOG,
690
+ RecoveryCodeDialog,
691
+ RecoveryCredentialsContainer,
692
+ RESET_DIALOG,
693
+ ResetDialog
694
+ };
695
+ //# sourceMappingURL=chunk-ULXZABZ4.mjs.map