@dxos/plugin-client 0.7.5-main.9d26e3a → 0.7.5-main.b19bfc8

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 (160) hide show
  1. package/dist/lib/browser/app-graph-builder-ON64R7SO.mjs +44 -0
  2. package/dist/lib/browser/app-graph-builder-ON64R7SO.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-52IJQ35F.mjs → chunk-7DPLXOMO.mjs} +17 -7
  4. package/dist/lib/browser/chunk-7DPLXOMO.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-EYBZZHSM.mjs +271 -0
  6. package/dist/lib/browser/chunk-EYBZZHSM.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-GHEQL2E6.mjs +16 -0
  8. package/dist/lib/browser/chunk-GHEQL2E6.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-X4QUPYC6.mjs → chunk-NHIL4T3L.mjs} +3 -3
  10. package/dist/lib/browser/chunk-NHIL4T3L.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-RGMLBYIF.mjs +18 -0
  12. package/dist/lib/browser/chunk-RGMLBYIF.mjs.map +7 -0
  13. package/dist/lib/browser/client-A7YSVURS.mjs +36 -0
  14. package/dist/lib/browser/client-A7YSVURS.mjs.map +7 -0
  15. package/dist/lib/browser/index.mjs +83 -370
  16. package/dist/lib/browser/index.mjs.map +4 -4
  17. package/dist/lib/browser/intent-resolver-SSM6WXAW.mjs +263 -0
  18. package/dist/lib/browser/intent-resolver-SSM6WXAW.mjs.map +7 -0
  19. package/dist/lib/browser/meta.json +1 -1
  20. package/dist/lib/browser/react-context-R3SG55F5.mjs +24 -0
  21. package/dist/lib/browser/react-context-R3SG55F5.mjs.map +7 -0
  22. package/dist/lib/browser/react-surface-XGOUHVIH.mjs +57 -0
  23. package/dist/lib/browser/react-surface-XGOUHVIH.mjs.map +7 -0
  24. package/dist/lib/browser/schema-J4MJIXRP.mjs +23 -0
  25. package/dist/lib/browser/schema-J4MJIXRP.mjs.map +7 -0
  26. package/dist/lib/browser/types.mjs +4 -6
  27. package/dist/lib/node/app-graph-builder-RW7ESEX3.cjs +58 -0
  28. package/dist/lib/node/app-graph-builder-RW7ESEX3.cjs.map +7 -0
  29. package/dist/lib/node/chunk-7LVBFGKQ.cjs +299 -0
  30. package/dist/lib/node/chunk-7LVBFGKQ.cjs.map +7 -0
  31. package/dist/lib/node/{chunk-RUA5KXVW.cjs → chunk-OIFPM5ZW.cjs} +7 -7
  32. package/dist/lib/node/chunk-OIFPM5ZW.cjs.map +7 -0
  33. package/dist/lib/node/{chunk-NFO3ADQC.cjs → chunk-TREVKZCJ.cjs} +21 -12
  34. package/dist/lib/node/chunk-TREVKZCJ.cjs.map +7 -0
  35. package/dist/lib/node/{meta.cjs → chunk-UHIGZJQL.cjs} +13 -8
  36. package/dist/lib/node/chunk-UHIGZJQL.cjs.map +7 -0
  37. package/dist/lib/node/chunk-XPC4JOPP.cjs +37 -0
  38. package/dist/lib/node/chunk-XPC4JOPP.cjs.map +7 -0
  39. package/dist/lib/node/client-2RQATBB6.cjs +50 -0
  40. package/dist/lib/node/client-2RQATBB6.cjs.map +7 -0
  41. package/dist/lib/node/index.cjs +80 -359
  42. package/dist/lib/node/index.cjs.map +4 -4
  43. package/dist/lib/node/intent-resolver-RIHCW2KJ.cjs +271 -0
  44. package/dist/lib/node/intent-resolver-RIHCW2KJ.cjs.map +7 -0
  45. package/dist/lib/node/meta.json +1 -1
  46. package/dist/lib/node/react-context-TD6VGBVA.cjs +48 -0
  47. package/dist/lib/node/react-context-TD6VGBVA.cjs.map +7 -0
  48. package/dist/lib/node/react-surface-IY7GXEGU.cjs +74 -0
  49. package/dist/lib/node/react-surface-IY7GXEGU.cjs.map +7 -0
  50. package/dist/lib/node/schema-JXJS75HQ.cjs +39 -0
  51. package/dist/lib/node/schema-JXJS75HQ.cjs.map +7 -0
  52. package/dist/lib/node/types.cjs +4 -6
  53. package/dist/lib/node/types.cjs.map +2 -2
  54. package/dist/lib/node-esm/app-graph-builder-TDYRWNI7.mjs +45 -0
  55. package/dist/lib/node-esm/app-graph-builder-TDYRWNI7.mjs.map +7 -0
  56. package/dist/lib/node-esm/chunk-CRF22MJJ.mjs +272 -0
  57. package/dist/lib/node-esm/chunk-CRF22MJJ.mjs.map +7 -0
  58. package/dist/lib/node-esm/{chunk-GMGRQ5Q7.mjs → chunk-HO7WDE7C.mjs} +3 -3
  59. package/dist/lib/node-esm/chunk-HO7WDE7C.mjs.map +7 -0
  60. package/dist/lib/node-esm/{chunk-TI4GNGMM.mjs → chunk-QJMF2MWP.mjs} +17 -7
  61. package/dist/lib/node-esm/chunk-QJMF2MWP.mjs.map +7 -0
  62. package/dist/lib/node-esm/chunk-QR72BXJK.mjs +19 -0
  63. package/dist/lib/node-esm/chunk-QR72BXJK.mjs.map +7 -0
  64. package/dist/lib/node-esm/chunk-T35SFKK3.mjs +17 -0
  65. package/dist/lib/node-esm/chunk-T35SFKK3.mjs.map +7 -0
  66. package/dist/lib/node-esm/client-36DKBSB7.mjs +37 -0
  67. package/dist/lib/node-esm/client-36DKBSB7.mjs.map +7 -0
  68. package/dist/lib/node-esm/index.mjs +83 -370
  69. package/dist/lib/node-esm/index.mjs.map +4 -4
  70. package/dist/lib/node-esm/intent-resolver-WWTVE6T6.mjs +264 -0
  71. package/dist/lib/node-esm/intent-resolver-WWTVE6T6.mjs.map +7 -0
  72. package/dist/lib/node-esm/meta.json +1 -1
  73. package/dist/lib/node-esm/react-context-ZOGDOWJ2.mjs +25 -0
  74. package/dist/lib/node-esm/react-context-ZOGDOWJ2.mjs.map +7 -0
  75. package/dist/lib/node-esm/react-surface-F3PDFJMV.mjs +58 -0
  76. package/dist/lib/node-esm/react-surface-F3PDFJMV.mjs.map +7 -0
  77. package/dist/lib/node-esm/schema-XM4HBLIX.mjs +24 -0
  78. package/dist/lib/node-esm/schema-XM4HBLIX.mjs.map +7 -0
  79. package/dist/lib/node-esm/types.mjs +4 -6
  80. package/dist/types/src/ClientPlugin.d.ts +2 -3
  81. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  82. package/dist/types/src/capabilities/app-graph-builder.d.ts +181 -0
  83. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  84. package/dist/types/src/capabilities/capabilities.d.ts +7 -0
  85. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
  86. package/dist/types/src/capabilities/client.d.ts +9 -0
  87. package/dist/types/src/capabilities/client.d.ts.map +1 -0
  88. package/dist/types/src/capabilities/index.d.ts +195 -0
  89. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  90. package/dist/types/src/capabilities/intent-resolver.d.ts +9 -0
  91. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
  92. package/dist/types/src/capabilities/react-context.d.ts +8 -0
  93. package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
  94. package/dist/types/src/capabilities/react-surface.d.ts +7 -0
  95. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  96. package/dist/types/src/capabilities/schema.d.ts +4 -0
  97. package/dist/types/src/capabilities/schema.d.ts.map +1 -0
  98. package/dist/types/src/components/IdentityDialog.d.ts +1 -2
  99. package/dist/types/src/components/IdentityDialog.d.ts.map +1 -1
  100. package/dist/types/src/components/JoinDialog.d.ts +1 -2
  101. package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
  102. package/dist/types/src/components/ManageCredentialsDialog.d.ts +3 -0
  103. package/dist/types/src/components/ManageCredentialsDialog.d.ts.map +1 -0
  104. package/dist/types/src/components/ManageCredentialsDialog.stories.d.ts +8 -0
  105. package/dist/types/src/components/ManageCredentialsDialog.stories.d.ts.map +1 -0
  106. package/dist/types/src/components/RecoveryCodeDialog.d.ts +1 -2
  107. package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
  108. package/dist/types/src/components/RecoverySetupDialog.d.ts +3 -0
  109. package/dist/types/src/components/RecoverySetupDialog.d.ts.map +1 -0
  110. package/dist/types/src/components/RecoverySetupDialog.stories.d.ts +8 -0
  111. package/dist/types/src/components/RecoverySetupDialog.stories.d.ts.map +1 -0
  112. package/dist/types/src/components/index.d.ts +1 -0
  113. package/dist/types/src/components/index.d.ts.map +1 -1
  114. package/dist/types/src/events.d.ts +7 -0
  115. package/dist/types/src/events.d.ts.map +1 -0
  116. package/dist/types/src/index.d.ts +3 -2
  117. package/dist/types/src/index.d.ts.map +1 -1
  118. package/dist/types/src/meta.d.ts +1 -2
  119. package/dist/types/src/meta.d.ts.map +1 -1
  120. package/dist/types/src/translations.d.ts +7 -0
  121. package/dist/types/src/translations.d.ts.map +1 -1
  122. package/dist/types/src/types.d.ts +22 -18
  123. package/dist/types/src/types.d.ts.map +1 -1
  124. package/dist/types/tsconfig.tsbuildinfo +1 -1
  125. package/package.json +23 -24
  126. package/src/ClientPlugin.ts +64 -0
  127. package/src/capabilities/app-graph-builder.ts +39 -0
  128. package/src/capabilities/capabilities.ts +14 -0
  129. package/src/capabilities/client.ts +40 -0
  130. package/src/capabilities/index.ts +14 -0
  131. package/src/capabilities/intent-resolver.ts +198 -0
  132. package/src/capabilities/react-context.tsx +20 -0
  133. package/src/capabilities/react-surface.tsx +59 -0
  134. package/src/capabilities/schema.ts +26 -0
  135. package/src/components/IdentityDialog.tsx +15 -3
  136. package/src/components/JoinDialog.tsx +1 -1
  137. package/src/components/ManageCredentialsDialog.stories.tsx +57 -0
  138. package/src/components/ManageCredentialsDialog.tsx +64 -0
  139. package/src/components/RecoveryCodeDialog.stories.tsx +5 -5
  140. package/src/components/RecoveryCodeDialog.tsx +2 -1
  141. package/src/components/RecoverySetupDialog.stories.tsx +77 -0
  142. package/src/components/RecoverySetupDialog.tsx +52 -0
  143. package/src/components/index.ts +1 -0
  144. package/src/events.ts +14 -0
  145. package/src/index.ts +4 -4
  146. package/src/meta.ts +1 -1
  147. package/src/translations.ts +10 -1
  148. package/src/types.ts +16 -32
  149. package/dist/lib/browser/chunk-52IJQ35F.mjs.map +0 -7
  150. package/dist/lib/browser/chunk-X4QUPYC6.mjs.map +0 -7
  151. package/dist/lib/browser/meta.mjs +0 -9
  152. package/dist/lib/browser/meta.mjs.map +0 -7
  153. package/dist/lib/node/chunk-NFO3ADQC.cjs.map +0 -7
  154. package/dist/lib/node/chunk-RUA5KXVW.cjs.map +0 -7
  155. package/dist/lib/node/meta.cjs.map +0 -7
  156. package/dist/lib/node-esm/chunk-GMGRQ5Q7.mjs.map +0 -7
  157. package/dist/lib/node-esm/chunk-TI4GNGMM.mjs.map +0 -7
  158. package/dist/lib/node-esm/meta.mjs +0 -10
  159. package/dist/lib/node-esm/meta.mjs.map +0 -7
  160. package/src/ClientPlugin.tsx +0 -227
@@ -28,162 +28,37 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var node_exports = {};
30
30
  __export(node_exports, {
31
+ CLIENT_PLUGIN: () => import_chunk_OIFPM5ZW.CLIENT_PLUGIN,
32
+ ClientCapabilities: () => import_chunk_UHIGZJQL.ClientCapabilities,
33
+ ClientEvents: () => import_chunk_XPC4JOPP.ClientEvents,
31
34
  ClientPlugin: () => ClientPlugin,
32
- default: () => src_default
35
+ meta: () => import_chunk_OIFPM5ZW.meta
33
36
  });
34
37
  module.exports = __toCommonJS(node_exports);
35
- var import_chunk_NFO3ADQC = require("./chunk-NFO3ADQC.cjs");
36
- var import_chunk_RUA5KXVW = require("./chunk-RUA5KXVW.cjs");
37
- var import_react = __toESM(require("react"));
38
+ var import_chunk_XPC4JOPP = require("./chunk-XPC4JOPP.cjs");
39
+ var import_chunk_UHIGZJQL = require("./chunk-UHIGZJQL.cjs");
40
+ var import_chunk_OIFPM5ZW = require("./chunk-OIFPM5ZW.cjs");
38
41
  var import_app_framework = require("@dxos/app-framework");
39
- var import_config = require("@dxos/config");
40
- var import_react2 = require("@dxos/echo-signals/react");
41
- var import_invariant = require("@dxos/invariant");
42
- var import_plugin_graph = require("@dxos/plugin-graph");
43
- var import_types = require("@dxos/plugin-observability/types");
44
- var import_react_client = require("@dxos/react-client");
45
- var import_react3 = __toESM(require("react"));
46
42
  var import_app_framework2 = require("@dxos/app-framework");
47
- var import_react_client2 = require("@dxos/react-client");
48
- var import_react_ui = require("@dxos/react-ui");
49
- var import_react4 = require("@dxos/shell/react");
50
- var import_react5 = __toESM(require("react"));
51
- var import_app_framework3 = require("@dxos/app-framework");
52
- var import_types2 = require("@dxos/plugin-observability/types");
53
- var import_react_ui2 = require("@dxos/react-ui");
54
- var import_react6 = require("@dxos/shell/react");
55
- var import_react7 = __toESM(require("react"));
56
- var import_react_ui3 = require("@dxos/react-ui");
57
- var IDENTITY_DIALOG = `${import_chunk_RUA5KXVW.CLIENT_PLUGIN}/IdentityDialog`;
58
- var IdentityDialog = (props) => {
59
- const { dispatchPromise: dispatch } = (0, import_app_framework2.useIntentDispatcher)();
60
- const client = (0, import_react_client2.useClient)();
61
- const handleDone = (0, import_react3.useCallback)(() => dispatch((0, import_app_framework2.createIntent)(import_app_framework2.LayoutAction.SetLayout, {
62
- element: "dialog",
63
- state: false
64
- })), [
65
- dispatch
66
- ]);
67
- const handleResetStorage = (0, import_react3.useCallback)(async () => {
68
- await client.reset();
69
- await dispatch((0, import_app_framework2.createIntent)(import_chunk_NFO3ADQC.ClientAction.ResetStorage));
70
- }, [
71
- dispatch
72
- ]);
73
- const handleRecover = (0, import_react3.useCallback)(async () => {
74
- await client.reset();
75
- await dispatch((0, import_app_framework2.createIntent)(import_chunk_NFO3ADQC.ClientAction.ResetStorage, {
76
- target: "recoverIdentity"
77
- }));
78
- }, [
79
- dispatch
80
- ]);
81
- const handleJoinNewIdentity = (0, import_react3.useCallback)(async () => {
82
- await client.reset();
83
- await dispatch((0, import_app_framework2.createIntent)(import_chunk_NFO3ADQC.ClientAction.ResetStorage, {
84
- target: "deviceInvitation"
85
- }));
86
- }, [
87
- dispatch
88
- ]);
89
- return /* @__PURE__ */ import_react3.default.createElement(import_react_ui.Dialog.Content, null, /* @__PURE__ */ import_react3.default.createElement(import_react_ui.Clipboard.Provider, null, /* @__PURE__ */ import_react3.default.createElement(import_react4.IdentityPanel, {
90
- ...props,
91
- doneActionParent: /* @__PURE__ */ import_react3.default.createElement(import_react_ui.Dialog.Close, {
92
- asChild: true
93
- }),
94
- onDone: handleDone,
95
- onResetStorage: handleResetStorage,
96
- onRecover: handleRecover,
97
- onJoinNewIdentity: handleJoinNewIdentity
98
- })));
99
- };
100
- var JOIN_DIALOG = `${import_chunk_RUA5KXVW.CLIENT_PLUGIN}/JoinDialog`;
101
- var JoinDialog = (props) => {
102
- const { dispatchPromise: dispatch } = (0, import_app_framework3.useIntentDispatcher)();
103
- const handleCancelResetStorage = (0, import_react5.useCallback)(() => dispatch((0, import_app_framework3.createIntent)(import_chunk_NFO3ADQC.ClientAction.ShareIdentity)), [
104
- dispatch
105
- ]);
106
- const handleDone = (0, import_react5.useCallback)(async (result) => {
107
- if (result?.identityKey) {
108
- await Promise.all([
109
- dispatch((0, import_app_framework3.createIntent)(import_app_framework3.LayoutAction.SetLayout, {
110
- element: "dialog",
111
- state: false
112
- })),
113
- dispatch((0, import_app_framework3.createIntent)(import_types2.ObservabilityAction.SendEvent, {
114
- name: props.initialDisposition === "recover-identity" ? "identity.recover" : "identity.join"
115
- }))
116
- ]);
117
- }
118
- }, [
119
- dispatch
120
- ]);
121
- return /* @__PURE__ */ import_react5.default.createElement(import_react_ui2.Dialog.Content, null, /* @__PURE__ */ import_react5.default.createElement(import_react6.JoinPanel, {
122
- mode: "halo-only",
123
- ...props,
124
- exitActionParent: /* @__PURE__ */ import_react5.default.createElement(import_react_ui2.Dialog.Close, {
125
- asChild: true
126
- }),
127
- doneActionParent: /* @__PURE__ */ import_react5.default.createElement(import_react_ui2.Dialog.Close, {
128
- asChild: true
129
- }),
130
- onCancelResetStorage: handleCancelResetStorage,
131
- onDone: handleDone
132
- }));
133
- };
134
- var RECOVER_CODE_DIALOG = `${import_chunk_RUA5KXVW.CLIENT_PLUGIN}/RecoveryCodeDialog`;
135
- var RecoveryCodeDialog = ({ code }) => {
136
- const { t } = (0, import_react_ui3.useTranslation)(import_chunk_RUA5KXVW.CLIENT_PLUGIN);
137
- const [confirmation, setConfirmation] = (0, import_react7.useState)(false);
138
- const handleConfirmation = (0, import_react7.useCallback)((checked) => setConfirmation(checked), []);
139
- return /* @__PURE__ */ import_react7.default.createElement(import_react_ui3.AlertDialog.Content, {
140
- classNames: "bs-content min-bs-[15rem] max-bs-full md:max-is-[40rem] overflow-hidden"
141
- }, /* @__PURE__ */ import_react7.default.createElement(import_react_ui3.AlertDialog.Title, null, t("recovery code dialog title")), /* @__PURE__ */ import_react7.default.createElement("p", {
142
- className: "py-4"
143
- }, t("recovery code dialog description")), /* @__PURE__ */ import_react7.default.createElement(import_react_ui3.Clipboard.Provider, null, /* @__PURE__ */ import_react7.default.createElement(Code, {
144
- code
145
- })), /* @__PURE__ */ import_react7.default.createElement("div", {
146
- className: "flex flex-col py-4 gap-2"
147
- }, /* @__PURE__ */ import_react7.default.createElement("p", null, t("recovery code dialog warning 1")), /* @__PURE__ */ import_react7.default.createElement("p", null, t("recovery code dialog warning 2"))), /* @__PURE__ */ import_react7.default.createElement("div", {
148
- className: "flex items-center gap-2 pbe-4"
149
- }, /* @__PURE__ */ import_react7.default.createElement(import_react_ui3.Input.Root, null, /* @__PURE__ */ import_react7.default.createElement(import_react_ui3.Input.Checkbox, {
150
- "data-testid": "recoveryCode.confirm",
151
- checked: confirmation,
152
- onCheckedChange: handleConfirmation
153
- }), /* @__PURE__ */ import_react7.default.createElement(import_react_ui3.Input.Label, null, t("recovery code confirmation label")))), /* @__PURE__ */ import_react7.default.createElement("div", {
154
- className: "flex justify-end"
155
- }, /* @__PURE__ */ import_react7.default.createElement(import_react_ui3.AlertDialog.Action, {
156
- asChild: true
157
- }, /* @__PURE__ */ import_react7.default.createElement(import_react_ui3.Button, {
158
- "data-testid": "recoveryCode.continue",
159
- variant: "primary",
160
- disabled: !confirmation
161
- }, t("continue label")))));
162
- };
163
- var Code = ({ code }) => {
164
- const words = code.split(" ");
165
- return /* @__PURE__ */ import_react7.default.createElement("div", {
166
- className: "relative p-2 border border-separator rounded group"
167
- }, /* @__PURE__ */ import_react7.default.createElement(import_react_ui3.Clipboard.IconButton, {
168
- value: code,
169
- classNames: "absolute top-2 right-2 invisible group-hover:visible"
170
- }), /* @__PURE__ */ import_react7.default.createElement("div", {
171
- className: "grid grid-cols-4"
172
- }, words.map((word, i) => /* @__PURE__ */ import_react7.default.createElement("div", {
173
- key: i,
174
- className: "flex items-center p-2 gap-2 items-center"
175
- }, /* @__PURE__ */ import_react7.default.createElement("div", {
176
- className: "w-4 text-xs text-center text-subdued"
177
- }, i + 1), /* @__PURE__ */ import_react7.default.createElement("div", {
178
- className: "text-sm"
179
- }, word)))));
180
- };
43
+ var AppGraphBuilder = (0, import_app_framework2.lazy)(async () => import("./app-graph-builder-RW7ESEX3.cjs"));
44
+ var Client = (0, import_app_framework2.lazy)(async () => import("./client-2RQATBB6.cjs"));
45
+ var IntentResolver = (0, import_app_framework2.lazy)(async () => import("./intent-resolver-RIHCW2KJ.cjs"));
46
+ var ReactContext = (0, import_app_framework2.lazy)(async () => import("./react-context-TD6VGBVA.cjs"));
47
+ var ReactSurface = (0, import_app_framework2.lazy)(async () => import("./react-surface-IY7GXEGU.cjs"));
48
+ var Schema = (0, import_app_framework2.lazy)(async () => import("./schema-JXJS75HQ.cjs"));
181
49
  var translations_default = [
182
50
  {
183
51
  "en-US": {
184
- [import_chunk_RUA5KXVW.CLIENT_PLUGIN]: {
52
+ [import_chunk_OIFPM5ZW.CLIENT_PLUGIN]: {
185
53
  "open shell label": "Open HALO",
186
- "recovery code dialog title": "Account Recovery",
54
+ "manage credentials dialog title": "Manage Account Recovery",
55
+ "recovery setup dialog title": "Account Recovery",
56
+ "recovery setup dialog description": "In order to recover your account you need to register a recovery credential. Passkeys are the recommended way to do this, they can be stored in your browser or in a password manager.",
57
+ "create passkey label": "Create Passkey",
58
+ "create passkey description": "A passkey is a secure and easy to use credential that can be used to recover your account.",
59
+ "create recovery code label": "Create Recovery Code",
60
+ "create recovery code description": "A recovery code is 12 word phrase representing a private key.",
61
+ "recovery code dialog title": "Recovery Code",
187
62
  "recovery code dialog description": "This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your devices.",
188
63
  "recovery code dialog warning 1": "NOTE: This code will not be displayed again.",
189
64
  "recovery code dialog warning 2": "It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your account.",
@@ -193,224 +68,70 @@ var translations_default = [
193
68
  }
194
69
  }
195
70
  ];
196
- var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-client/src/ClientPlugin.tsx";
197
- var ClientPlugin = ({ appKey, invitationUrl = window.location.origin, invitationParam = "deviceInvitationCode", onClientInitialized, onReady, onReset, ...options }) => {
198
- (0, import_react2.registerSignalsRuntime)();
199
- let client;
200
- let error = null;
201
- const createDeviceInvitationUrl = (invitationCode) => {
71
+ var ClientPlugin = ({ invitationUrl = window.location.origin, invitationParam = "deviceInvitationCode", onReset, ...options }) => {
72
+ const createInvitationUrl = (invitationCode) => {
202
73
  const baseUrl = new URL(invitationUrl);
203
74
  baseUrl.searchParams.set(invitationParam, invitationCode);
204
75
  return baseUrl.toString();
205
76
  };
206
- return {
207
- meta: import_chunk_RUA5KXVW.meta_default,
208
- initialize: async () => {
209
- const config = new import_config.Config(await (0, import_config.Storage)(), (0, import_config.Envs)(), (0, import_config.Local)(), (0, import_config.Defaults)());
210
- client = new import_react_client.Client({
211
- config,
212
- ...options
213
- });
214
- try {
215
- await client.initialize();
216
- await onClientInitialized?.(client);
217
- client.reloaded.on(() => {
218
- client.halo.identity.subscribe(async (identity) => {
219
- if (identity) {
220
- window.location.href = window.location.origin;
221
- }
222
- });
223
- });
224
- } catch (err) {
225
- error = err;
226
- }
227
- return {
228
- client,
229
- context: ({ children }) => /* @__PURE__ */ import_react.default.createElement(import_react_client.ClientProvider, {
230
- client
231
- }, children)
232
- };
233
- },
234
- ready: async ({ plugins }) => {
235
- if (error) {
236
- throw error;
237
- }
238
- await onReady?.(client, plugins);
239
- },
240
- unload: async () => {
241
- await client.destroy();
242
- },
243
- provides: {
244
- translations: translations_default,
245
- surface: {
246
- definitions: () => [
247
- (0, import_app_framework.createSurface)({
248
- id: IDENTITY_DIALOG,
249
- role: "dialog",
250
- filter: (data) => data.component === IDENTITY_DIALOG,
251
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(IdentityDialog, {
252
- ...data.subject,
253
- createInvitationUrl: createDeviceInvitationUrl
254
- })
255
- }),
256
- (0, import_app_framework.createSurface)({
257
- id: JOIN_DIALOG,
258
- role: "dialog",
259
- filter: (data) => data.component === JOIN_DIALOG,
260
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(JoinDialog, data.subject)
261
- }),
262
- (0, import_app_framework.createSurface)({
263
- id: RECOVER_CODE_DIALOG,
264
- role: "dialog",
265
- filter: (data) => data.component === RECOVER_CODE_DIALOG,
266
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(RecoveryCodeDialog, data.subject)
267
- })
268
- ]
269
- },
270
- graph: {
271
- builder: (plugins) => {
272
- const dispatch = (0, import_app_framework.resolvePlugin)(plugins, import_app_framework.parseIntentPlugin)?.provides.intent.dispatchPromise;
273
- const id = `${import_chunk_RUA5KXVW.CLIENT_PLUGIN}/open-shell`;
274
- return (0, import_plugin_graph.createExtension)({
275
- id: import_chunk_RUA5KXVW.CLIENT_PLUGIN,
276
- filter: (node) => node.id === "root",
277
- actions: () => [
278
- {
279
- id,
280
- data: async () => {
281
- await dispatch?.((0, import_app_framework.createIntent)(import_chunk_NFO3ADQC.ClientAction.ShareIdentity));
282
- },
283
- properties: {
284
- label: [
285
- "open shell label",
286
- {
287
- ns: import_chunk_RUA5KXVW.CLIENT_PLUGIN
288
- }
289
- ],
290
- icon: "ph--address-book--regular",
291
- keyBinding: {
292
- macos: "meta+shift+.",
293
- // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.
294
- windows: "alt+shift+.",
295
- linux: "alt+shift+>"
296
- },
297
- testId: "clientPlugin.openShell"
298
- }
299
- }
300
- ]
301
- });
302
- }
303
- },
304
- intent: {
305
- resolvers: () => [
306
- (0, import_app_framework.createResolver)(import_chunk_NFO3ADQC.ClientAction.CreateIdentity, async () => {
307
- const data = await client.halo.createIdentity();
308
- return {
309
- data,
310
- intents: [
311
- (0, import_app_framework.createIntent)(import_types.ObservabilityAction.SendEvent, {
312
- name: "identity.create"
313
- })
314
- ]
315
- };
316
- }),
317
- (0, import_app_framework.createResolver)(import_chunk_NFO3ADQC.ClientAction.JoinIdentity, async (data) => {
318
- return {
319
- intents: [
320
- (0, import_app_framework.createIntent)(import_app_framework.LayoutAction.SetLayout, {
321
- element: "dialog",
322
- component: JOIN_DIALOG,
323
- dialogBlockAlign: "start",
324
- subject: {
325
- initialInvitationCode: data.invitationCode,
326
- initialDisposition: "accept-halo-invitation"
327
- }
328
- })
329
- ]
330
- };
331
- }),
332
- (0, import_app_framework.createResolver)(import_chunk_NFO3ADQC.ClientAction.ShareIdentity, async () => {
333
- return {
334
- intents: [
335
- (0, import_app_framework.createIntent)(import_app_framework.LayoutAction.SetLayout, {
336
- element: "dialog",
337
- component: IDENTITY_DIALOG,
338
- dialogBlockAlign: "start"
339
- }),
340
- (0, import_app_framework.createIntent)(import_types.ObservabilityAction.SendEvent, {
341
- name: "identity.share"
342
- })
343
- ]
344
- };
345
- }),
346
- (0, import_app_framework.createResolver)(import_chunk_NFO3ADQC.ClientAction.RecoverIdentity, async () => {
347
- return {
348
- intents: [
349
- (0, import_app_framework.createIntent)(import_app_framework.LayoutAction.SetLayout, {
350
- element: "dialog",
351
- component: JOIN_DIALOG,
352
- dialogBlockAlign: "start",
353
- subject: {
354
- initialDisposition: "recover-identity"
355
- }
356
- })
357
- ]
358
- };
359
- }),
360
- (0, import_app_framework.createResolver)(import_chunk_NFO3ADQC.ClientAction.ResetStorage, async (data) => {
361
- await onReset?.({
362
- target: data.target
363
- });
364
- return {};
365
- }),
366
- (0, import_app_framework.createResolver)(import_chunk_NFO3ADQC.ClientAction.CreateAgent, async () => {
367
- (0, import_invariant.invariant)(client.services.services.EdgeAgentService, "Missing EdgeAgentService", {
368
- F: __dxlog_file,
369
- L: 203,
370
- S: void 0,
371
- A: [
372
- "client.services.services.EdgeAgentService",
373
- "'Missing EdgeAgentService'"
374
- ]
375
- });
376
- await client.services.services.EdgeAgentService.createAgent(null, {
377
- timeout: 1e4
378
- });
379
- }),
380
- (0, import_app_framework.createResolver)(import_chunk_NFO3ADQC.ClientAction.CreateRecoveryCode, async () => {
381
- (0, import_invariant.invariant)(client.services.services.IdentityService, "IdentityService not available", {
382
- F: __dxlog_file,
383
- L: 207,
384
- S: void 0,
385
- A: [
386
- "client.services.services.IdentityService",
387
- "'IdentityService not available'"
388
- ]
389
- });
390
- const { seedphrase } = await client.services.services.IdentityService.createRecoveryPhrase();
391
- return {
392
- intents: [
393
- (0, import_app_framework.createIntent)(import_app_framework.LayoutAction.SetLayout, {
394
- element: "dialog",
395
- dialogBlockAlign: "start",
396
- dialogType: "alert",
397
- state: true,
398
- component: RECOVER_CODE_DIALOG,
399
- subject: {
400
- code: seedphrase
401
- }
402
- })
403
- ]
404
- };
405
- })
406
- ]
407
- }
408
- }
409
- };
77
+ return (0, import_app_framework.definePlugin)(import_chunk_OIFPM5ZW.meta, [
78
+ (0, import_app_framework.defineModule)({
79
+ id: `${import_chunk_OIFPM5ZW.meta.id}/module/client`,
80
+ activatesOn: (0, import_app_framework.oneOf)(import_app_framework.Events.Startup, import_app_framework.Events.SetupAppGraph),
81
+ activatesAfter: [
82
+ import_chunk_XPC4JOPP.ClientEvents.ClientReady
83
+ ],
84
+ activate: (context) => Client({
85
+ ...options,
86
+ context
87
+ })
88
+ }),
89
+ (0, import_app_framework.defineModule)({
90
+ id: `${import_chunk_OIFPM5ZW.meta.id}/module/schema`,
91
+ activatesOn: import_chunk_XPC4JOPP.ClientEvents.ClientReady,
92
+ activatesBefore: [
93
+ import_chunk_XPC4JOPP.ClientEvents.SetupSchema
94
+ ],
95
+ activate: Schema
96
+ }),
97
+ (0, import_app_framework.defineModule)({
98
+ id: `${import_chunk_OIFPM5ZW.meta.id}/module/react-context`,
99
+ activatesOn: import_app_framework.Events.Startup,
100
+ activate: ReactContext
101
+ }),
102
+ (0, import_app_framework.defineModule)({
103
+ id: `${import_chunk_OIFPM5ZW.meta.id}/module/react-surface`,
104
+ activatesOn: import_app_framework.Events.SetupReactSurface,
105
+ activate: () => ReactSurface({
106
+ createInvitationUrl
107
+ })
108
+ }),
109
+ (0, import_app_framework.defineModule)({
110
+ id: `${import_chunk_OIFPM5ZW.meta.id}/module/app-graph-builder`,
111
+ activatesOn: import_app_framework.Events.SetupAppGraph,
112
+ activate: AppGraphBuilder
113
+ }),
114
+ (0, import_app_framework.defineModule)({
115
+ id: `${import_chunk_OIFPM5ZW.meta.id}/module/intent-resolver`,
116
+ activatesOn: import_app_framework.Events.SetupIntentResolver,
117
+ activate: (context) => IntentResolver({
118
+ context,
119
+ onReset
120
+ })
121
+ }),
122
+ (0, import_app_framework.defineModule)({
123
+ id: `${import_chunk_OIFPM5ZW.meta.id}/module/translations`,
124
+ activatesOn: import_app_framework.Events.SetupTranslations,
125
+ activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
126
+ })
127
+ ]);
410
128
  };
411
- var src_default = ClientPlugin;
412
129
  // Annotate the CommonJS export names for ESM import in node:
413
130
  0 && (module.exports = {
414
- ClientPlugin
131
+ CLIENT_PLUGIN,
132
+ ClientCapabilities,
133
+ ClientEvents,
134
+ ClientPlugin,
135
+ meta
415
136
  });
416
137
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/ClientPlugin.tsx", "../../../src/components/IdentityDialog.tsx", "../../../src/components/JoinDialog.tsx", "../../../src/components/RecoveryCodeDialog.tsx", "../../../src/translations.ts", "../../../src/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport {\n LayoutAction,\n parseIntentPlugin,\n resolvePlugin,\n type PluginDefinition,\n createSurface,\n createIntent,\n createResolver,\n} from '@dxos/app-framework';\nimport { Config, Defaults, Envs, Local, Storage } from '@dxos/config';\nimport { registerSignalsRuntime } from '@dxos/echo-signals/react';\nimport { invariant } from '@dxos/invariant';\nimport { createExtension, type Node } from '@dxos/plugin-graph';\nimport { ObservabilityAction } from '@dxos/plugin-observability/types';\nimport { Client, ClientProvider } from '@dxos/react-client';\nimport { type IdentityPanelProps, type JoinPanelProps } from '@dxos/shell/react';\n\nimport {\n IDENTITY_DIALOG,\n IdentityDialog,\n JOIN_DIALOG,\n JoinDialog,\n RECOVER_CODE_DIALOG,\n RecoveryCodeDialog,\n type RecoveryCodeDialogProps,\n} from './components';\nimport meta, { CLIENT_PLUGIN } from './meta';\nimport translations from './translations';\nimport { ClientAction, type ClientPluginOptions, type ClientPluginProvides } from './types';\n\nexport const ClientPlugin = ({\n appKey,\n invitationUrl = window.location.origin,\n invitationParam = 'deviceInvitationCode',\n onClientInitialized,\n onReady,\n onReset,\n ...options\n}: ClientPluginOptions): PluginDefinition<\n Omit<ClientPluginProvides, 'client'>,\n Pick<ClientPluginProvides, 'client'>\n> => {\n registerSignalsRuntime();\n\n let client: Client;\n let error: unknown = null;\n\n const createDeviceInvitationUrl = (invitationCode: string) => {\n const baseUrl = new URL(invitationUrl);\n baseUrl.searchParams.set(invitationParam, invitationCode);\n return baseUrl.toString();\n };\n\n return {\n meta,\n initialize: async () => {\n const config = new Config(await Storage(), Envs(), Local(), Defaults());\n client = new Client({ config, ...options });\n\n try {\n await client.initialize();\n await onClientInitialized?.(client);\n\n // TODO(wittjosiah): Remove. This is a hack to get the app to boot with the new identity after a reset.\n client.reloaded.on(() => {\n client.halo.identity.subscribe(async (identity) => {\n if (identity) {\n window.location.href = window.location.origin;\n }\n });\n });\n } catch (err) {\n error = err;\n }\n\n return {\n client,\n context: ({ children }) => <ClientProvider client={client}>{children}</ClientProvider>,\n };\n },\n ready: async ({ plugins }) => {\n if (error) {\n throw error;\n }\n\n await onReady?.(client, plugins);\n },\n unload: async () => {\n await client.destroy();\n },\n provides: {\n translations,\n surface: {\n definitions: () => [\n createSurface({\n id: IDENTITY_DIALOG,\n role: 'dialog',\n filter: (data): data is { subject: IdentityPanelProps } => data.component === IDENTITY_DIALOG,\n component: ({ data }) => (\n <IdentityDialog {...data.subject} createInvitationUrl={createDeviceInvitationUrl} />\n ),\n }),\n createSurface({\n id: JOIN_DIALOG,\n role: 'dialog',\n filter: (data): data is { subject: JoinPanelProps } => data.component === JOIN_DIALOG,\n component: ({ data }) => <JoinDialog {...data.subject} />,\n }),\n createSurface({\n id: RECOVER_CODE_DIALOG,\n role: 'dialog',\n filter: (data): data is { subject: RecoveryCodeDialogProps } => data.component === RECOVER_CODE_DIALOG,\n component: ({ data }) => <RecoveryCodeDialog {...data.subject} />,\n }),\n ],\n },\n graph: {\n builder: (plugins) => {\n const dispatch = resolvePlugin(plugins, parseIntentPlugin)?.provides.intent.dispatchPromise;\n const id = `${CLIENT_PLUGIN}/open-shell`;\n\n return createExtension({\n id: CLIENT_PLUGIN,\n filter: (node): node is Node<null> => node.id === 'root',\n actions: () => [\n {\n id,\n data: async () => {\n await dispatch?.(createIntent(ClientAction.ShareIdentity));\n },\n properties: {\n label: ['open shell label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--address-book--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 testId: 'clientPlugin.openShell',\n },\n },\n ],\n });\n },\n },\n intent: {\n resolvers: () => [\n createResolver(ClientAction.CreateIdentity, async () => {\n const data = await client.halo.createIdentity();\n return { data, intents: [createIntent(ObservabilityAction.SendEvent, { name: 'identity.create' })] };\n }),\n createResolver(ClientAction.JoinIdentity, async (data) => {\n return {\n intents: [\n createIntent(LayoutAction.SetLayout, {\n element: 'dialog',\n component: JOIN_DIALOG,\n dialogBlockAlign: 'start',\n subject: {\n initialInvitationCode: data.invitationCode,\n initialDisposition: 'accept-halo-invitation',\n } satisfies Partial<JoinPanelProps>,\n }),\n ],\n };\n }),\n createResolver(ClientAction.ShareIdentity, async () => {\n return {\n intents: [\n createIntent(LayoutAction.SetLayout, {\n element: 'dialog',\n component: IDENTITY_DIALOG,\n dialogBlockAlign: 'start',\n }),\n createIntent(ObservabilityAction.SendEvent, { name: 'identity.share' }),\n ],\n };\n }),\n createResolver(ClientAction.RecoverIdentity, async () => {\n return {\n intents: [\n createIntent(LayoutAction.SetLayout, {\n element: 'dialog',\n component: JOIN_DIALOG,\n dialogBlockAlign: 'start',\n subject: { initialDisposition: 'recover-identity' } satisfies Partial<JoinPanelProps>,\n }),\n ],\n };\n }),\n createResolver(ClientAction.ResetStorage, async (data) => {\n await onReset?.({ target: data.target });\n return {};\n }),\n createResolver(ClientAction.CreateAgent, async () => {\n invariant(client.services.services.EdgeAgentService, 'Missing EdgeAgentService');\n await client.services.services.EdgeAgentService.createAgent(null as any, { timeout: 10_000 });\n }),\n createResolver(ClientAction.CreateRecoveryCode, async () => {\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n // TODO(wittjosiah): This needs a proper api. Rename property.\n const { seedphrase } = await client.services.services.IdentityService.createRecoveryPhrase();\n return {\n intents: [\n createIntent(LayoutAction.SetLayout, {\n element: 'dialog',\n dialogBlockAlign: 'start',\n dialogType: 'alert',\n state: true,\n component: RECOVER_CODE_DIALOG,\n subject: { code: seedphrase },\n }),\n ],\n };\n }),\n ],\n },\n },\n };\n};\n", "//\n// Copyright 2024 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 { Clipboard, Dialog } from '@dxos/react-ui';\nimport { IdentityPanel, type IdentityPanelProps } from '@dxos/shell/react';\n\nimport { CLIENT_PLUGIN } from '../meta';\nimport { ClientAction } from '../types';\n\nexport const IDENTITY_DIALOG = `${CLIENT_PLUGIN}/IdentityDialog`;\n\nexport const IdentityDialog = (props: IdentityPanelProps) => {\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const client = useClient();\n\n const handleDone = useCallback(\n () =>\n dispatch(\n createIntent(LayoutAction.SetLayout, {\n element: 'dialog',\n state: false,\n }),\n ),\n [dispatch],\n );\n\n const handleResetStorage = useCallback(async () => {\n await client.reset();\n await dispatch(createIntent(ClientAction.ResetStorage));\n }, [dispatch]);\n\n const handleRecover = useCallback(async () => {\n await client.reset();\n await dispatch(createIntent(ClientAction.ResetStorage, { target: 'recoverIdentity' }));\n }, [dispatch]);\n\n const handleJoinNewIdentity = useCallback(async () => {\n await client.reset();\n await dispatch(createIntent(ClientAction.ResetStorage, { target: 'deviceInvitation' }));\n }, [dispatch]);\n\n return (\n <Dialog.Content>\n <Clipboard.Provider>\n <IdentityPanel\n {...props}\n doneActionParent={<Dialog.Close asChild />}\n onDone={handleDone}\n onResetStorage={handleResetStorage}\n onRecover={handleRecover}\n onJoinNewIdentity={handleJoinNewIdentity}\n />\n </Clipboard.Provider>\n </Dialog.Content>\n );\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 } 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\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.SetLayout, { element: 'dialog', 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 <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 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 RECOVER_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 items-center'>\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 2023 DXOS.org\n//\n\nimport { CLIENT_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [CLIENT_PLUGIN]: {\n 'open shell label': 'Open HALO',\n 'recovery code dialog title': 'Account Recovery',\n 'recovery code dialog description':\n 'This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your devices.',\n 'recovery code dialog warning 1': 'NOTE: This code will not be displayed again.',\n 'recovery code dialog warning 2':\n 'It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your account.',\n 'recovery code confirmation label': 'Please confirm you have saved the code.',\n 'continue label': 'Continue',\n },\n },\n },\n];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { ClientPlugin } from './ClientPlugin';\n\nexport default ClientPlugin;\n\nexport * from './ClientPlugin';\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAElB,2BAQO;AACP,oBAAuD;AACvD,IAAAA,gBAAuC;AACvC,uBAA0B;AAC1B,0BAA2C;AAC3C,mBAAoC;AACpC,0BAAuC;AChBvC,IAAAA,gBAAmC;AAEnC,IAAAC,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S;oBACPxJ,qBAAAA,cAAaC,qBAAAA,aAAaC,WAAW;kBACnCC,SAAS;kBACT6H,WAAWvG;kBACXiI,kBAAkB;kBAClBzB,SAAS;oBAAE7F,oBAAoB;kBAAmB;gBACpD,CAAA;;YAEJ;UACF,CAAA;cACAiH,qCAAe9I,mCAAaC,cAAc,OAAOuH,SAAAA;AAC/C,kBAAM1C,UAAU;cAAE3E,QAAQqH,KAAKrH;YAAO,CAAA;AACtC,mBAAO,CAAC;UACV,CAAA;cACA2I,qCAAe9I,mCAAasJ,aAAa,YAAA;AACvCC,4CAAUlK,OAAOmK,SAASA,SAASC,kBAAkB,4BAAA;;;;;;;;;AACrD,kBAAMpK,OAAOmK,SAASA,SAASC,iBAAiBC,YAAY,MAAa;cAAEC,SAAS;YAAO,CAAA;UAC7F,CAAA;cACAb,qCAAe9I,mCAAa4J,oBAAoB,YAAA;AAC9CL,4CAAUlK,OAAOmK,SAASA,SAASK,iBAAiB,iCAAA;;;;;;;;;AAEpD,kBAAM,EAAEC,WAAU,IAAK,MAAMzK,OAAOmK,SAASA,SAASK,gBAAgBE,qBAAoB;AAC1F,mBAAO;cACLd,SAAS;oBACPxJ,qBAAAA,cAAaC,qBAAAA,aAAaC,WAAW;kBACnCC,SAAS;kBACTuJ,kBAAkB;kBAClBa,YAAY;kBACZnK,OAAO;kBACP4H,WAAWvF;kBACXwF,SAAS;oBAAEtF,MAAM0H;kBAAW;gBAC9B,CAAA;;YAEJ;UACF,CAAA;;MAEJ;IACF;EACF;AACF;AK5NA,IAAA,cAAezF;",
6
- "names": ["import_react", "import_app_framework", "import_react_client", "import_types", "import_react_ui", "IDENTITY_DIALOG", "CLIENT_PLUGIN", "IdentityDialog", "props", "dispatchPromise", "dispatch", "useIntentDispatcher", "client", "useClient", "handleDone", "useCallback", "createIntent", "LayoutAction", "SetLayout", "element", "state", "handleResetStorage", "reset", "ClientAction", "ResetStorage", "handleRecover", "target", "handleJoinNewIdentity", "React", "Dialog", "Content", "Clipboard", "Provider", "IdentityPanel", "doneActionParent", "Close", "asChild", "onDone", "onResetStorage", "onRecover", "onJoinNewIdentity", "JOIN_DIALOG", "JoinDialog", "handleCancelResetStorage", "ShareIdentity", "result", "identityKey", "Promise", "all", "ObservabilityAction", "SendEvent", "name", "initialDisposition", "JoinPanel", "mode", "exitActionParent", "onCancelResetStorage", "RECOVER_CODE_DIALOG", "RecoveryCodeDialog", "code", "t", "useTranslation", "confirmation", "setConfirmation", "useState", "handleConfirmation", "checked", "AlertDialog", "classNames", "Title", "p", "className", "Code", "div", "Input", "Root", "Checkbox", "data-testid", "onCheckedChange", "Label", "Action", "Button", "variant", "disabled", "words", "split", "IconButton", "value", "map", "word", "i", "key", "ClientPlugin", "appKey", "invitationUrl", "window", "location", "origin", "invitationParam", "onClientInitialized", "onReady", "onReset", "options", "registerSignalsRuntime", "error", "createDeviceInvitationUrl", "invitationCode", "baseUrl", "URL", "searchParams", "set", "toString", "meta", "initialize", "config", "Config", "Storage", "Envs", "Local", "Defaults", "Client", "reloaded", "on", "halo", "identity", "subscribe", "href", "err", "context", "children", "ClientProvider", "ready", "plugins", "unload", "destroy", "provides", "translations", "surface", "definitions", "createSurface", "id", "role", "filter", "data", "component", "subject", "createInvitationUrl", "graph", "builder", "resolvePlugin", "parseIntentPlugin", "intent", "createExtension", "node", "actions", "properties", "label", "ns", "icon", "keyBinding", "macos", "windows", "linux", "testId", "resolvers", "createResolver", "CreateIdentity", "createIdentity", "intents", "JoinIdentity", "dialogBlockAlign", "initialInvitationCode", "RecoverIdentity", "CreateAgent", "invariant", "services", "EdgeAgentService", "createAgent", "timeout", "CreateRecoveryCode", "IdentityService", "seedphrase", "createRecoveryPhrase", "dialogType"]
3
+ "sources": ["../../../src/ClientPlugin.ts", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, defineModule, definePlugin, Events, oneOf } from '@dxos/app-framework';\n\nimport { Client, AppGraphBuilder, IntentResolver, ReactContext, ReactSurface, Schema } from './capabilities';\nimport { ClientEvents } from './events';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { type ClientPluginOptions } from './types';\n\nexport const ClientPlugin = ({\n invitationUrl = window.location.origin,\n invitationParam = 'deviceInvitationCode',\n onReset,\n ...options\n}: ClientPluginOptions) => {\n const createInvitationUrl = (invitationCode: string) => {\n const baseUrl = new URL(invitationUrl);\n baseUrl.searchParams.set(invitationParam, invitationCode);\n return baseUrl.toString();\n };\n\n return definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/client`,\n activatesOn: oneOf(Events.Startup, Events.SetupAppGraph),\n activatesAfter: [ClientEvents.ClientReady],\n activate: (context) => Client({ ...options, context }),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.ClientReady,\n activatesBefore: [ClientEvents.SetupSchema],\n activate: Schema,\n }),\n defineModule({\n id: `${meta.id}/module/react-context`,\n activatesOn: Events.Startup,\n activate: ReactContext,\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: () => ReactSurface({ createInvitationUrl }),\n }),\n defineModule({\n id: `${meta.id}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: AppGraphBuilder,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: (context) => IntentResolver({ context, onReset }),\n }),\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n ]);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = lazy(async () => import('./app-graph-builder'));\nexport const Client = lazy(async () => import('./client'));\nexport const IntentResolver = lazy(async () => import('./intent-resolver'));\nexport const ReactContext = lazy(async () => import('./react-context'));\nexport const ReactSurface = lazy(async () => import('./react-surface'));\nexport const Schema = lazy(async () => import('./schema'));\n\nexport * from './capabilities';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CLIENT_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [CLIENT_PLUGIN]: {\n 'open shell label': 'Open HALO',\n 'manage credentials dialog title': 'Manage Account Recovery',\n 'recovery setup dialog title': 'Account Recovery',\n 'recovery setup dialog description':\n 'In order to recover your account you need to register a recovery credential. Passkeys are the recommended way to do this, they can be stored in your browser or in a password manager.',\n 'create passkey label': 'Create Passkey',\n 'create passkey description':\n 'A passkey is a secure and easy to use credential that can be used to recover your account.',\n 'create recovery code label': 'Create Recovery Code',\n 'create recovery code description': 'A recovery code is 12 word phrase representing a private key.',\n 'recovery code dialog title': 'Recovery Code',\n 'recovery code dialog description':\n 'This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your devices.',\n 'recovery code dialog warning 1': 'NOTE: This code will not be displayed again.',\n 'recovery code dialog warning 2':\n 'It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your account.',\n 'recovery code confirmation label': 'Please confirm you have saved the code.',\n 'continue label': 'Continue',\n },\n },\n },\n];\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAAqF;ACArF,IAAAA,wBAAqB;AAEd,IAAMC,sBAAkBC,4BAAK,YAAY,OAAO,kCAAA,CAAA;AAChD,IAAMC,aAASD,4BAAK,YAAY,OAAO,uBAAA,CAAA;AACvC,IAAME,qBAAiBF,4BAAK,YAAY,OAAO,gCAAA,CAAA;AAC/C,IAAMG,mBAAeH,4BAAK,YAAY,OAAO,8BAAA,CAAA;AAC7C,IAAMI,mBAAeJ,4BAAK,YAAY,OAAO,8BAAA,CAAA;AAC7C,IAAMK,aAASL,4BAAK,YAAY,OAAO,uBAAA,CAAA;ACL9C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACM,mCAAAA,GAAgB;QACf,oBAAoB;QACpB,mCAAmC;QACnC,+BA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Ae;QAAEiC;QAAStB;MAAQ,CAAA;IAC3D,CAAA;QACAW,mCAAa;MACXC,IAAI,GAAGF,2BAAKE,EAAE;MACdC,aAAaE,4BAAOY;MACpBN,UAAU,UAAMO,kCAAYC,kCAAaC,cAAcC,oBAAAA;IACzD,CAAA;GACD;AACH;",
6
+ "names": ["import_app_framework", "AppGraphBuilder", "lazy", "Client", "IntentResolver", "ReactContext", "ReactSurface", "Schema", "CLIENT_PLUGIN", "ClientPlugin", "invitationUrl", "window", "location", "origin", "invitationParam", "onReset", "options", "createInvitationUrl", "invitationCode", "baseUrl", "URL", "searchParams", "set", "toString", "definePlugin", "meta", "defineModule", "id", "activatesOn", "oneOf", "Events", "Startup", "SetupAppGraph", "activatesAfter", "ClientEvents", "ClientReady", "activate", "context", "activatesBefore", "SetupSchema", "SetupReactSurface", "SetupIntentResolver", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations"]
7
7
  }