@dxos/plugin-client 0.7.5-labs.071a3e2 → 0.7.5-labs.401163d
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.
- package/dist/lib/browser/{app-graph-builder-6LOTDB4T.mjs → app-graph-builder-JRQVJHEH.mjs} +2 -2
- package/dist/lib/browser/chunk-BFNE5KCF.mjs +271 -0
- package/dist/lib/browser/chunk-BFNE5KCF.mjs.map +7 -0
- package/dist/lib/browser/{chunk-E3OUNOEL.mjs → chunk-GYCVFUTM.mjs} +13 -1
- package/dist/lib/browser/{chunk-E3OUNOEL.mjs.map → chunk-GYCVFUTM.mjs.map} +3 -3
- package/dist/lib/browser/{client-BEJK55IM.mjs → client-BY3RGW3H.mjs} +2 -7
- package/dist/lib/browser/client-BY3RGW3H.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +12 -5
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/{intent-resolver-E6TL7E24.mjs → intent-resolver-LWSDA6RM.mjs} +110 -6
- package/dist/lib/browser/intent-resolver-LWSDA6RM.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-K5NKVCIB.mjs → react-surface-6BINNBEX.mjs} +20 -4
- package/dist/lib/browser/react-surface-6BINNBEX.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +1 -1
- package/dist/lib/node/{app-graph-builder-JCND3P6G.cjs → app-graph-builder-R6QR2VLZ.cjs} +6 -6
- package/dist/lib/node/chunk-3P5BBMXO.cjs +299 -0
- package/dist/lib/node/chunk-3P5BBMXO.cjs.map +7 -0
- package/dist/lib/node/{chunk-NVYWMDF3.cjs → chunk-NZKGFE46.cjs} +16 -4
- package/dist/lib/node/{chunk-NVYWMDF3.cjs.map → chunk-NZKGFE46.cjs.map} +3 -3
- package/dist/lib/node/{client-AHIW24VM.cjs → client-JCI7A3IV.cjs} +5 -10
- package/dist/lib/node/client-JCI7A3IV.cjs.map +7 -0
- package/dist/lib/node/index.cjs +12 -5
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/{intent-resolver-DUPICQ3F.cjs → intent-resolver-ODZVEAZ2.cjs} +124 -20
- package/dist/lib/node/intent-resolver-ODZVEAZ2.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-YQ2PKXNV.cjs → react-surface-KRKGFWS3.cjs} +27 -15
- package/dist/lib/node/react-surface-KRKGFWS3.cjs.map +7 -0
- package/dist/lib/node/types.cjs +2 -2
- package/dist/lib/node/types.cjs.map +1 -1
- package/dist/lib/node-esm/{app-graph-builder-ZLGKFBLY.mjs → app-graph-builder-WXXGCOJB.mjs} +2 -2
- package/dist/lib/node-esm/chunk-2FPF25KT.mjs +272 -0
- package/dist/lib/node-esm/chunk-2FPF25KT.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-74T33KTB.mjs → chunk-M2NR7HNG.mjs} +13 -1
- package/dist/lib/node-esm/{chunk-74T33KTB.mjs.map → chunk-M2NR7HNG.mjs.map} +3 -3
- package/dist/lib/node-esm/{client-FY7IDNRL.mjs → client-XWK653HB.mjs} +2 -7
- package/dist/lib/node-esm/client-XWK653HB.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +12 -5
- package/dist/lib/node-esm/index.mjs.map +2 -2
- package/dist/lib/node-esm/{intent-resolver-QUQH2LS2.mjs → intent-resolver-IHYGJREB.mjs} +110 -6
- package/dist/lib/node-esm/intent-resolver-IHYGJREB.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-H34XQPWC.mjs → react-surface-OQFDVSAP.mjs} +20 -4
- package/dist/lib/node-esm/react-surface-OQFDVSAP.mjs.map +7 -0
- package/dist/lib/node-esm/types.mjs +1 -1
- package/dist/types/src/capabilities/client.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +2 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/IdentityDialog.d.ts.map +1 -1
- package/dist/types/src/components/ManageCredentialsDialog.d.ts +4 -0
- package/dist/types/src/components/ManageCredentialsDialog.d.ts.map +1 -0
- package/dist/types/src/components/ManageCredentialsDialog.stories.d.ts +8 -0
- package/dist/types/src/components/ManageCredentialsDialog.stories.d.ts.map +1 -0
- package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
- package/dist/types/src/components/RecoverySetupDialog.d.ts +4 -0
- package/dist/types/src/components/RecoverySetupDialog.d.ts.map +1 -0
- package/dist/types/src/components/RecoverySetupDialog.stories.d.ts +8 -0
- package/dist/types/src/components/RecoverySetupDialog.stories.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +7 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +16 -0
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +20 -16
- package/src/capabilities/client.ts +1 -3
- package/src/capabilities/intent-resolver.ts +69 -1
- package/src/capabilities/react-surface.tsx +15 -0
- package/src/components/IdentityDialog.tsx +12 -0
- package/src/components/ManageCredentialsDialog.stories.tsx +57 -0
- package/src/components/ManageCredentialsDialog.tsx +64 -0
- package/src/components/RecoveryCodeDialog.stories.tsx +4 -4
- package/src/components/RecoveryCodeDialog.tsx +2 -1
- package/src/components/RecoverySetupDialog.stories.tsx +77 -0
- package/src/components/RecoverySetupDialog.tsx +52 -0
- package/src/components/index.ts +1 -0
- package/src/translations.ts +10 -1
- package/src/types.ts +10 -0
- package/dist/lib/browser/chunk-PDSHZE3P.mjs +0 -162
- package/dist/lib/browser/chunk-PDSHZE3P.mjs.map +0 -7
- package/dist/lib/browser/client-BEJK55IM.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-E6TL7E24.mjs.map +0 -7
- package/dist/lib/browser/react-surface-K5NKVCIB.mjs.map +0 -7
- package/dist/lib/node/chunk-VUJ3ZPK3.cjs +0 -190
- package/dist/lib/node/chunk-VUJ3ZPK3.cjs.map +0 -7
- package/dist/lib/node/client-AHIW24VM.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-DUPICQ3F.cjs.map +0 -7
- package/dist/lib/node/react-surface-YQ2PKXNV.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-WS4CKCUR.mjs +0 -163
- package/dist/lib/node-esm/chunk-WS4CKCUR.mjs.map +0 -7
- package/dist/lib/node-esm/client-FY7IDNRL.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-QUQH2LS2.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-H34XQPWC.mjs.map +0 -7
- /package/dist/lib/browser/{app-graph-builder-6LOTDB4T.mjs.map → app-graph-builder-JRQVJHEH.mjs.map} +0 -0
- /package/dist/lib/node/{app-graph-builder-JCND3P6G.cjs.map → app-graph-builder-R6QR2VLZ.cjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-builder-ZLGKFBLY.mjs.map → app-graph-builder-WXXGCOJB.mjs.map} +0 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var chunk_3P5BBMXO_exports = {};
|
|
30
|
+
__export(chunk_3P5BBMXO_exports, {
|
|
31
|
+
IDENTITY_DIALOG: () => IDENTITY_DIALOG,
|
|
32
|
+
IdentityDialog: () => IdentityDialog,
|
|
33
|
+
JOIN_DIALOG: () => JOIN_DIALOG,
|
|
34
|
+
JoinDialog: () => JoinDialog,
|
|
35
|
+
MANAGE_CREDENTIALS_DIALOG: () => MANAGE_CREDENTIALS_DIALOG,
|
|
36
|
+
ManageCredentialsDialog: () => ManageCredentialsDialog,
|
|
37
|
+
RECOVER_CODE_DIALOG: () => RECOVER_CODE_DIALOG,
|
|
38
|
+
RECOVER_SETUP_DIALOG: () => RECOVER_SETUP_DIALOG,
|
|
39
|
+
RecoveryCodeDialog: () => RecoveryCodeDialog,
|
|
40
|
+
RecoverySetupDialog: () => RecoverySetupDialog
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(chunk_3P5BBMXO_exports);
|
|
43
|
+
var import_chunk_NZKGFE46 = require("./chunk-NZKGFE46.cjs");
|
|
44
|
+
var import_chunk_OIFPM5ZW = require("./chunk-OIFPM5ZW.cjs");
|
|
45
|
+
var import_react = require("@phosphor-icons/react");
|
|
46
|
+
var import_react2 = __toESM(require("react"));
|
|
47
|
+
var import_app_framework = require("@dxos/app-framework");
|
|
48
|
+
var import_halo = require("@dxos/react-client/halo");
|
|
49
|
+
var import_react_ui = require("@dxos/react-ui");
|
|
50
|
+
var import_react3 = require("@dxos/shell/react");
|
|
51
|
+
var import_react4 = __toESM(require("react"));
|
|
52
|
+
var import_app_framework2 = require("@dxos/app-framework");
|
|
53
|
+
var import_react_client = require("@dxos/react-client");
|
|
54
|
+
var import_react_ui2 = require("@dxos/react-ui");
|
|
55
|
+
var import_react5 = require("@dxos/shell/react");
|
|
56
|
+
var import_react6 = __toESM(require("react"));
|
|
57
|
+
var import_app_framework3 = require("@dxos/app-framework");
|
|
58
|
+
var import_types = require("@dxos/plugin-observability/types");
|
|
59
|
+
var import_react_ui3 = require("@dxos/react-ui");
|
|
60
|
+
var import_react7 = require("@dxos/shell/react");
|
|
61
|
+
var import_react8 = __toESM(require("react"));
|
|
62
|
+
var import_react_ui4 = require("@dxos/react-ui");
|
|
63
|
+
var import_react9 = require("@phosphor-icons/react");
|
|
64
|
+
var import_react10 = __toESM(require("react"));
|
|
65
|
+
var import_app_framework4 = require("@dxos/app-framework");
|
|
66
|
+
var import_react_ui5 = require("@dxos/react-ui");
|
|
67
|
+
var import_react11 = require("@dxos/shell/react");
|
|
68
|
+
var MANAGE_CREDENTIALS_DIALOG = `${import_chunk_OIFPM5ZW.CLIENT_PLUGIN}/ManageCredentialsDialog`;
|
|
69
|
+
var ManageCredentialsDialog = () => {
|
|
70
|
+
const { t } = (0, import_react_ui.useTranslation)(import_chunk_OIFPM5ZW.CLIENT_PLUGIN);
|
|
71
|
+
const { dispatchPromise: dispatch } = (0, import_app_framework.useIntentDispatcher)();
|
|
72
|
+
const credentials = (0, import_halo.useCredentials)();
|
|
73
|
+
const recoveryCredentials = credentials.filter((credential) => credential.subject.assertion["@type"] === "dxos.halo.credentials.IdentityRecovery");
|
|
74
|
+
const actions = (0, import_react2.useMemo)(() => ({
|
|
75
|
+
createPasskey: {
|
|
76
|
+
label: t("create passkey label"),
|
|
77
|
+
description: t("create passkey description"),
|
|
78
|
+
// TODO(wittjosiah): Ideally this would be a `user-key` icon.
|
|
79
|
+
icon: import_react.Key,
|
|
80
|
+
onClick: () => dispatch((0, import_app_framework.createIntent)(import_chunk_NZKGFE46.ClientAction.CreatePasskey))
|
|
81
|
+
},
|
|
82
|
+
createRecoveryCode: {
|
|
83
|
+
label: t("create recovery code label"),
|
|
84
|
+
description: t("create recovery code description"),
|
|
85
|
+
icon: import_react.Receipt,
|
|
86
|
+
onClick: () => dispatch((0, import_app_framework.createIntent)(import_chunk_NZKGFE46.ClientAction.CreateRecoveryCode))
|
|
87
|
+
}
|
|
88
|
+
}), [
|
|
89
|
+
t
|
|
90
|
+
]);
|
|
91
|
+
return /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Dialog.Content, {
|
|
92
|
+
classNames: "bs-content min-bs-[15rem] max-bs-full md:max-is-[25rem] overflow-hidden"
|
|
93
|
+
}, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Dialog.Title, null, t("manage credentials dialog title")), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.List, {
|
|
94
|
+
classNames: "py-4"
|
|
95
|
+
}, recoveryCredentials.map((credential) => /* @__PURE__ */ import_react2.default.createElement(import_react_ui.ListItem.Root, {
|
|
96
|
+
key: credential.id?.toHex()
|
|
97
|
+
}, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.ListItem.Endcap, null, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Icon, {
|
|
98
|
+
icon: "ph--key--regular",
|
|
99
|
+
size: 5
|
|
100
|
+
})), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.ListItem.Heading, null, credential.issuanceDate.toLocaleString())))), /* @__PURE__ */ import_react2.default.createElement("div", {
|
|
101
|
+
className: "grow"
|
|
102
|
+
}), /* @__PURE__ */ import_react2.default.createElement(import_react3.BifurcatedAction, {
|
|
103
|
+
actions
|
|
104
|
+
}));
|
|
105
|
+
};
|
|
106
|
+
var IDENTITY_DIALOG = `${import_chunk_OIFPM5ZW.CLIENT_PLUGIN}/IdentityDialog`;
|
|
107
|
+
var IdentityDialog = (props) => {
|
|
108
|
+
const { dispatchPromise: dispatch } = (0, import_app_framework2.useIntentDispatcher)();
|
|
109
|
+
const client = (0, import_react_client.useClient)();
|
|
110
|
+
const handleDone = (0, import_react4.useCallback)(() => dispatch((0, import_app_framework2.createIntent)(import_app_framework2.LayoutAction.UpdateDialog, {
|
|
111
|
+
part: "dialog",
|
|
112
|
+
options: {
|
|
113
|
+
state: false
|
|
114
|
+
}
|
|
115
|
+
})), [
|
|
116
|
+
dispatch
|
|
117
|
+
]);
|
|
118
|
+
const handleResetStorage = (0, import_react4.useCallback)(async () => {
|
|
119
|
+
await client.reset();
|
|
120
|
+
await dispatch((0, import_app_framework2.createIntent)(import_chunk_NZKGFE46.ClientAction.ResetStorage));
|
|
121
|
+
}, [
|
|
122
|
+
dispatch
|
|
123
|
+
]);
|
|
124
|
+
const handleRecover = (0, import_react4.useCallback)(async () => {
|
|
125
|
+
await client.reset();
|
|
126
|
+
await dispatch((0, import_app_framework2.createIntent)(import_chunk_NZKGFE46.ClientAction.ResetStorage, {
|
|
127
|
+
target: "recoverIdentity"
|
|
128
|
+
}));
|
|
129
|
+
}, [
|
|
130
|
+
dispatch
|
|
131
|
+
]);
|
|
132
|
+
const handleJoinNewIdentity = (0, import_react4.useCallback)(async () => {
|
|
133
|
+
await client.reset();
|
|
134
|
+
await dispatch((0, import_app_framework2.createIntent)(import_chunk_NZKGFE46.ClientAction.ResetStorage, {
|
|
135
|
+
target: "deviceInvitation"
|
|
136
|
+
}));
|
|
137
|
+
}, [
|
|
138
|
+
dispatch
|
|
139
|
+
]);
|
|
140
|
+
const handleManageCredentials = (0, import_react4.useCallback)(async () => {
|
|
141
|
+
await dispatch((0, import_app_framework2.createIntent)(import_app_framework2.LayoutAction.UpdateDialog, {
|
|
142
|
+
part: "dialog",
|
|
143
|
+
subject: MANAGE_CREDENTIALS_DIALOG,
|
|
144
|
+
options: {
|
|
145
|
+
state: true,
|
|
146
|
+
blockAlign: "start"
|
|
147
|
+
}
|
|
148
|
+
}));
|
|
149
|
+
}, [
|
|
150
|
+
dispatch
|
|
151
|
+
]);
|
|
152
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Dialog.Content, null, /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Clipboard.Provider, null, /* @__PURE__ */ import_react4.default.createElement(import_react5.IdentityPanel, {
|
|
153
|
+
...props,
|
|
154
|
+
doneActionParent: /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Dialog.Close, {
|
|
155
|
+
asChild: true
|
|
156
|
+
}),
|
|
157
|
+
onDone: handleDone,
|
|
158
|
+
onResetStorage: handleResetStorage,
|
|
159
|
+
onRecover: handleRecover,
|
|
160
|
+
onJoinNewIdentity: handleJoinNewIdentity,
|
|
161
|
+
onManageCredentials: handleManageCredentials
|
|
162
|
+
})));
|
|
163
|
+
};
|
|
164
|
+
var JOIN_DIALOG = `${import_chunk_OIFPM5ZW.CLIENT_PLUGIN}/JoinDialog`;
|
|
165
|
+
var JoinDialog = (props) => {
|
|
166
|
+
const { dispatchPromise: dispatch } = (0, import_app_framework3.useIntentDispatcher)();
|
|
167
|
+
const handleCancelResetStorage = (0, import_react6.useCallback)(() => dispatch((0, import_app_framework3.createIntent)(import_chunk_NZKGFE46.ClientAction.ShareIdentity)), [
|
|
168
|
+
dispatch
|
|
169
|
+
]);
|
|
170
|
+
const handleDone = (0, import_react6.useCallback)(async (result) => {
|
|
171
|
+
if (result?.identityKey) {
|
|
172
|
+
await Promise.all([
|
|
173
|
+
dispatch((0, import_app_framework3.createIntent)(import_app_framework3.LayoutAction.UpdateDialog, {
|
|
174
|
+
part: "dialog",
|
|
175
|
+
options: {
|
|
176
|
+
state: false
|
|
177
|
+
}
|
|
178
|
+
})),
|
|
179
|
+
dispatch((0, import_app_framework3.createIntent)(import_types.ObservabilityAction.SendEvent, {
|
|
180
|
+
name: props.initialDisposition === "recover-identity" ? "identity.recover" : "identity.join"
|
|
181
|
+
}))
|
|
182
|
+
]);
|
|
183
|
+
}
|
|
184
|
+
}, [
|
|
185
|
+
dispatch
|
|
186
|
+
]);
|
|
187
|
+
return /* @__PURE__ */ import_react6.default.createElement(import_react_ui3.Dialog.Content, null, /* @__PURE__ */ import_react6.default.createElement(import_react7.JoinPanel, {
|
|
188
|
+
mode: "halo-only",
|
|
189
|
+
...props,
|
|
190
|
+
exitActionParent: /* @__PURE__ */ import_react6.default.createElement(import_react_ui3.Dialog.Close, {
|
|
191
|
+
asChild: true
|
|
192
|
+
}),
|
|
193
|
+
doneActionParent: /* @__PURE__ */ import_react6.default.createElement(import_react_ui3.Dialog.Close, {
|
|
194
|
+
asChild: true
|
|
195
|
+
}),
|
|
196
|
+
onCancelResetStorage: handleCancelResetStorage,
|
|
197
|
+
onDone: handleDone
|
|
198
|
+
}));
|
|
199
|
+
};
|
|
200
|
+
var RECOVER_CODE_DIALOG = `${import_chunk_OIFPM5ZW.CLIENT_PLUGIN}/RecoveryCodeDialog`;
|
|
201
|
+
var RecoveryCodeDialog = ({ code }) => {
|
|
202
|
+
const { t } = (0, import_react_ui4.useTranslation)(import_chunk_OIFPM5ZW.CLIENT_PLUGIN);
|
|
203
|
+
const [confirmation, setConfirmation] = (0, import_react8.useState)(false);
|
|
204
|
+
const handleConfirmation = (0, import_react8.useCallback)((checked) => setConfirmation(checked), []);
|
|
205
|
+
return /* @__PURE__ */ import_react8.default.createElement(import_react_ui4.AlertDialog.Content, {
|
|
206
|
+
classNames: "bs-content min-bs-[15rem] max-bs-full md:max-is-[40rem] overflow-hidden"
|
|
207
|
+
}, /* @__PURE__ */ import_react8.default.createElement(import_react_ui4.AlertDialog.Title, null, t("recovery code dialog title")), /* @__PURE__ */ import_react8.default.createElement("p", {
|
|
208
|
+
className: "py-4"
|
|
209
|
+
}, t("recovery code dialog description")), /* @__PURE__ */ import_react8.default.createElement(import_react_ui4.Clipboard.Provider, null, /* @__PURE__ */ import_react8.default.createElement(Code, {
|
|
210
|
+
code
|
|
211
|
+
})), /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
212
|
+
className: "flex flex-col py-4 gap-2"
|
|
213
|
+
}, /* @__PURE__ */ import_react8.default.createElement("p", null, t("recovery code dialog warning 1")), /* @__PURE__ */ import_react8.default.createElement("p", null, t("recovery code dialog warning 2"))), /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
214
|
+
className: "flex items-center gap-2 pbe-4"
|
|
215
|
+
}, /* @__PURE__ */ import_react8.default.createElement(import_react_ui4.Input.Root, null, /* @__PURE__ */ import_react8.default.createElement(import_react_ui4.Input.Checkbox, {
|
|
216
|
+
"data-testid": "recoveryCode.confirm",
|
|
217
|
+
checked: confirmation,
|
|
218
|
+
onCheckedChange: handleConfirmation
|
|
219
|
+
}), /* @__PURE__ */ import_react8.default.createElement(import_react_ui4.Input.Label, null, t("recovery code confirmation label")))), /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
220
|
+
className: "flex justify-end"
|
|
221
|
+
}, /* @__PURE__ */ import_react8.default.createElement(import_react_ui4.AlertDialog.Action, {
|
|
222
|
+
asChild: true
|
|
223
|
+
}, /* @__PURE__ */ import_react8.default.createElement(import_react_ui4.Button, {
|
|
224
|
+
"data-testid": "recoveryCode.continue",
|
|
225
|
+
variant: "primary",
|
|
226
|
+
disabled: !confirmation
|
|
227
|
+
}, t("continue label")))));
|
|
228
|
+
};
|
|
229
|
+
var Code = ({ code }) => {
|
|
230
|
+
const words = code.split(" ");
|
|
231
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
232
|
+
className: "relative p-2 border border-separator rounded group"
|
|
233
|
+
}, /* @__PURE__ */ import_react8.default.createElement(import_react_ui4.Clipboard.IconButton, {
|
|
234
|
+
value: code,
|
|
235
|
+
classNames: "absolute top-2 right-2 invisible group-hover:visible"
|
|
236
|
+
}), /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
237
|
+
className: "grid grid-cols-4"
|
|
238
|
+
}, words.map((word, i) => /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
239
|
+
key: i,
|
|
240
|
+
className: "flex items-center p-2 gap-2"
|
|
241
|
+
}, /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
242
|
+
className: "w-4 text-xs text-center text-subdued"
|
|
243
|
+
}, i + 1), /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
244
|
+
className: "text-sm"
|
|
245
|
+
}, word)))));
|
|
246
|
+
};
|
|
247
|
+
var RECOVER_SETUP_DIALOG = `${import_chunk_OIFPM5ZW.CLIENT_PLUGIN}/RecoverySetupDialog`;
|
|
248
|
+
var RecoverySetupDialog = () => {
|
|
249
|
+
const { t } = (0, import_react_ui5.useTranslation)(import_chunk_OIFPM5ZW.CLIENT_PLUGIN);
|
|
250
|
+
const { dispatchPromise: dispatch } = (0, import_app_framework4.useIntentDispatcher)();
|
|
251
|
+
const actions = (0, import_react10.useMemo)(() => ({
|
|
252
|
+
createPasskey: {
|
|
253
|
+
label: t("create passkey label"),
|
|
254
|
+
description: t("create passkey description"),
|
|
255
|
+
// TODO(wittjosiah): Ideally this would be a `user-key` icon.
|
|
256
|
+
icon: import_react9.Key,
|
|
257
|
+
onClick: async () => {
|
|
258
|
+
await dispatch((0, import_app_framework4.createIntent)(import_chunk_NZKGFE46.ClientAction.CreatePasskey));
|
|
259
|
+
await dispatch((0, import_app_framework4.createIntent)(import_app_framework4.LayoutAction.UpdateDialog, {
|
|
260
|
+
part: "dialog",
|
|
261
|
+
options: {
|
|
262
|
+
state: false
|
|
263
|
+
}
|
|
264
|
+
}));
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
createRecoveryCode: {
|
|
268
|
+
label: t("create recovery code label"),
|
|
269
|
+
description: t("create recovery code description"),
|
|
270
|
+
icon: import_react9.Receipt,
|
|
271
|
+
onClick: () => dispatch((0, import_app_framework4.createIntent)(import_chunk_NZKGFE46.ClientAction.CreateRecoveryCode))
|
|
272
|
+
}
|
|
273
|
+
}), [
|
|
274
|
+
t
|
|
275
|
+
]);
|
|
276
|
+
return /* @__PURE__ */ import_react10.default.createElement(import_react_ui5.AlertDialog.Content, {
|
|
277
|
+
classNames: "bs-content min-bs-[15rem] max-bs-full md:max-is-[25rem] overflow-hidden"
|
|
278
|
+
}, /* @__PURE__ */ import_react10.default.createElement(import_react_ui5.AlertDialog.Title, null, t("recovery setup dialog title")), /* @__PURE__ */ import_react10.default.createElement("p", {
|
|
279
|
+
className: "py-4"
|
|
280
|
+
}, t("recovery setup dialog description")), /* @__PURE__ */ import_react10.default.createElement("div", {
|
|
281
|
+
className: "grow"
|
|
282
|
+
}), /* @__PURE__ */ import_react10.default.createElement(import_react11.BifurcatedAction, {
|
|
283
|
+
actions
|
|
284
|
+
}));
|
|
285
|
+
};
|
|
286
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
287
|
+
0 && (module.exports = {
|
|
288
|
+
IDENTITY_DIALOG,
|
|
289
|
+
IdentityDialog,
|
|
290
|
+
JOIN_DIALOG,
|
|
291
|
+
JoinDialog,
|
|
292
|
+
MANAGE_CREDENTIALS_DIALOG,
|
|
293
|
+
ManageCredentialsDialog,
|
|
294
|
+
RECOVER_CODE_DIALOG,
|
|
295
|
+
RECOVER_SETUP_DIALOG,
|
|
296
|
+
RecoveryCodeDialog,
|
|
297
|
+
RecoverySetupDialog
|
|
298
|
+
});
|
|
299
|
+
//# sourceMappingURL=chunk-3P5BBMXO.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/ManageCredentialsDialog.tsx", "../../../src/components/IdentityDialog.tsx", "../../../src/components/JoinDialog.tsx", "../../../src/components/RecoveryCodeDialog.tsx", "../../../src/components/RecoverySetupDialog.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Receipt, Key } from '@phosphor-icons/react';\nimport React, { useMemo } from 'react';\n\nimport { createIntent, useIntentDispatcher } from '@dxos/app-framework';\nimport { useCredentials } from '@dxos/react-client/halo';\nimport { Dialog, Icon, List, ListItem, useTranslation } from '@dxos/react-ui';\nimport { BifurcatedAction, type ActionMenuItem } from '@dxos/shell/react';\n\nimport { CLIENT_PLUGIN } from '../meta';\nimport { ClientAction } from '../types';\n\nexport const MANAGE_CREDENTIALS_DIALOG = `${CLIENT_PLUGIN}/ManageCredentialsDialog`;\n\n// TODO(wittjosiah): Factor panel out to @dxos/shell.\nexport const ManageCredentialsDialog = () => {\n const { t } = useTranslation(CLIENT_PLUGIN);\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const credentials = useCredentials();\n const recoveryCredentials = credentials.filter(\n (credential) => credential.subject.assertion['@type'] === 'dxos.halo.credentials.IdentityRecovery',\n );\n\n // TODO(wittjosiah): Reconsile w/ RecoverySetupDialog actions.\n const actions: Record<string, ActionMenuItem> = useMemo(\n () => ({\n createPasskey: {\n label: t('create passkey label'),\n description: t('create passkey description'),\n // TODO(wittjosiah): Ideally this would be a `user-key` icon.\n icon: Key,\n onClick: () => dispatch(createIntent(ClientAction.CreatePasskey)),\n },\n createRecoveryCode: {\n label: t('create recovery code label'),\n description: t('create recovery code description'),\n icon: Receipt,\n onClick: () => dispatch(createIntent(ClientAction.CreateRecoveryCode)),\n },\n }),\n [t],\n );\n\n return (\n <Dialog.Content classNames='bs-content min-bs-[15rem] max-bs-full md:max-is-[25rem] overflow-hidden'>\n <Dialog.Title>{t('manage credentials dialog title')}</Dialog.Title>\n <List classNames='py-4'>\n {recoveryCredentials.map((credential) => (\n <ListItem.Root key={credential.id?.toHex()}>\n <ListItem.Endcap>\n <Icon icon='ph--key--regular' size={5} />\n </ListItem.Endcap>\n <ListItem.Heading>{credential.issuanceDate.toLocaleString()}</ListItem.Heading>\n </ListItem.Root>\n ))}\n </List>\n <div className='grow' />\n <BifurcatedAction actions={actions} />\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 { useClient } from '@dxos/react-client';\nimport { Clipboard, Dialog } from '@dxos/react-ui';\nimport { IdentityPanel, type IdentityPanelProps } from '@dxos/shell/react';\n\nimport { MANAGE_CREDENTIALS_DIALOG } from './ManageCredentialsDialog';\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.UpdateDialog, {\n part: 'dialog',\n options: { 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 const handleManageCredentials = useCallback(async () => {\n await dispatch(\n createIntent(LayoutAction.UpdateDialog, {\n part: 'dialog',\n subject: MANAGE_CREDENTIALS_DIALOG,\n options: { state: true, blockAlign: 'start' },\n }),\n );\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 onManageCredentials={handleManageCredentials}\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.UpdateDialog, { part: 'dialog', options: { state: false } })),\n dispatch(\n createIntent(ObservabilityAction.SendEvent, {\n name: props.initialDisposition === 'recover-identity' ? 'identity.recover' : 'identity.join',\n }),\n ),\n ]);\n }\n },\n [dispatch],\n );\n\n return (\n <Dialog.Content>\n <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\n// TODO(wittjosiah): Factor panel out to @dxos/shell.\nexport const RecoveryCodeDialog = ({ code }: RecoveryCodeDialogProps) => {\n const { t } = useTranslation(CLIENT_PLUGIN);\n const [confirmation, setConfirmation] = useState(false);\n\n const handleConfirmation = useCallback((checked: boolean) => setConfirmation(checked), []);\n\n return (\n <AlertDialog.Content classNames='bs-content min-bs-[15rem] max-bs-full md:max-is-[40rem] overflow-hidden'>\n <AlertDialog.Title>{t('recovery code dialog title')}</AlertDialog.Title>\n <p className='py-4'>{t('recovery code dialog description')}</p>\n <Clipboard.Provider>\n <Code code={code} />\n </Clipboard.Provider>\n <div className='flex flex-col py-4 gap-2'>\n <p>{t('recovery code dialog warning 1')}</p>\n <p>{t('recovery code dialog warning 2')}</p>\n </div>\n <div className='flex items-center gap-2 pbe-4'>\n <Input.Root>\n <Input.Checkbox\n data-testid='recoveryCode.confirm'\n checked={confirmation}\n onCheckedChange={handleConfirmation}\n />\n <Input.Label>{t('recovery code confirmation label')}</Input.Label>\n </Input.Root>\n </div>\n <div className='flex justify-end'>\n <AlertDialog.Action asChild>\n <Button data-testid='recoveryCode.continue' variant='primary' disabled={!confirmation}>\n {t('continue label')}\n </Button>\n </AlertDialog.Action>\n </div>\n </AlertDialog.Content>\n );\n};\n\nconst Code = ({ code }: { code: string }) => {\n const words = code.split(' ');\n return (\n <div className='relative p-2 border border-separator rounded group'>\n <Clipboard.IconButton value={code} classNames='absolute top-2 right-2 invisible group-hover:visible' />\n <div className='grid grid-cols-4'>\n {words.map((word, i) => (\n <div key={i} className='flex items-center p-2 gap-2'>\n <div className='w-4 text-xs text-center text-subdued'>{i + 1}</div>\n <div className='text-sm'>{word}</div>\n </div>\n ))}\n </div>\n </div>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { Key, Receipt } from '@phosphor-icons/react';\nimport React, { useMemo } from 'react';\n\nimport { createIntent, LayoutAction, useIntentDispatcher } from '@dxos/app-framework';\nimport { AlertDialog, useTranslation } from '@dxos/react-ui';\nimport { type ActionMenuItem, BifurcatedAction } from '@dxos/shell/react';\n\nimport { CLIENT_PLUGIN } from '../meta';\nimport { ClientAction } from '../types';\n\nexport const RECOVER_SETUP_DIALOG = `${CLIENT_PLUGIN}/RecoverySetupDialog`;\n\n// TODO(wittjosiah): Factor panel out to @dxos/shell.\nexport const RecoverySetupDialog = () => {\n const { t } = useTranslation(CLIENT_PLUGIN);\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n\n const actions: Record<string, ActionMenuItem> = useMemo(\n () => ({\n createPasskey: {\n label: t('create passkey label'),\n description: t('create passkey description'),\n // TODO(wittjosiah): Ideally this would be a `user-key` icon.\n icon: Key,\n onClick: async () => {\n await dispatch(createIntent(ClientAction.CreatePasskey));\n await dispatch(createIntent(LayoutAction.UpdateDialog, { part: 'dialog', options: { state: false } }));\n },\n },\n createRecoveryCode: {\n label: t('create recovery code label'),\n description: t('create recovery code description'),\n icon: Receipt,\n onClick: () => dispatch(createIntent(ClientAction.CreateRecoveryCode)),\n },\n }),\n [t],\n );\n\n return (\n <AlertDialog.Content classNames='bs-content min-bs-[15rem] max-bs-full md:max-is-[25rem] overflow-hidden'>\n <AlertDialog.Title>{t('recovery setup dialog title')}</AlertDialog.Title>\n <p className='py-4'>{t('recovery setup dialog description')}</p>\n <div className='grow' />\n <BifurcatedAction actions={actions} />\n </AlertDialog.Content>\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAA6B;AAC7B,IAAAA,gBAA+B;AAE/B,2BAAkD;AAClD,kBAA+B;AAC/B,sBAA6D;AAC7D,IAAAA,gBAAsD;ACNtD,IAAAA,gBAAmC;AAEnC,IAAAC,wBAAgE;AAChE,0BAA0B;AAC1B,IAAAC,mBAAkC;AAClC,IAAAF,gBAAuD;ACLvD,IAAAA,gBAAmC;AAEnC,IAAAC,wBAAgE;AAChE,mBAAoC;AAEpC,IAAAC,mBAAuB;AACvB,IAAAF,gBAA+C;AC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A;MACfiB,MAAMO,cAAAA;MACNL,SAAS,MAAMhB,aAASiB,sBAAAA,cAAaC,mCAAaI,kBAAkB,CAAA;IACtE;EACF,IACA;IAACzB;GAAE;AAGL,SACE0B,+BAAAA,QAAA,cAAC4E,iBAAAA,YAAY1E,SAAO;IAACC,YAAW;KAC9BH,+BAAAA,QAAA,cAAC4E,iBAAAA,YAAYxE,OAAK,MAAE9B,EAAE,6BAAA,CAAA,GACtB0B,+BAAAA,QAAA,cAAC6E,KAAAA;IAAE1D,WAAU;KAAQ7C,EAAE,mCAAA,CAAA,GACvB0B,+BAAAA,QAAA,cAACkB,OAAAA;IAAIC,WAAU;MACfnB,+BAAAA,QAAA,cAACoB,eAAAA,kBAAAA;IAAiBlC;;AAGxB;",
|
|
6
|
+
"names": ["import_react", "import_app_framework", "import_react_ui", "MANAGE_CREDENTIALS_DIALOG", "CLIENT_PLUGIN", "ManageCredentialsDialog", "t", "useTranslation", "dispatchPromise", "dispatch", "useIntentDispatcher", "credentials", "useCredentials", "recoveryCredentials", "filter", "credential", "subject", "assertion", "actions", "useMemo", "createPasskey", "label", "description", "icon", "Key", "onClick", "createIntent", "ClientAction", "CreatePasskey", "createRecoveryCode", "Receipt", "CreateRecoveryCode", "React", "Dialog", "Content", "classNames", "Title", "List", "map", "ListItem", "Root", "key", "id", "toHex", "Endcap", "Icon", "size", "Heading", "issuanceDate", "toLocaleString", "div", "className", "BifurcatedAction", "IDENTITY_DIALOG", "IdentityDialog", "props", "client", "useClient", "handleDone", "useCallback", "LayoutAction", "UpdateDialog", "part", "options", "state", "handleResetStorage", "reset", "ResetStorage", "handleRecover", "target", "handleJoinNewIdentity", "handleManageCredentials", "blockAlign", "Clipboard", "Provider", "IdentityPanel", "doneActionParent", "Close", "asChild", "onDone", "onResetStorage", "onRecover", "onJoinNewIdentity", "onManageCredentials", "JOIN_DIALOG", "JoinDialog", "handleCancelResetStorage", "ShareIdentity", "result", "identityKey", "Promise", "all", "ObservabilityAction", "SendEvent", "name", "initialDisposition", "JoinPanel", "mode", "exitActionParent", "onCancelResetStorage", "RECOVER_CODE_DIALOG", "RecoveryCodeDialog", "code", "confirmation", "setConfirmation", "useState", "handleConfirmation", "checked", "AlertDialog", "p", "Code", "Input", "Checkbox", "data-testid", "onCheckedChange", "Label", "Action", "Button", "variant", "disabled", "words", "split", "IconButton", "value", "word", "i", "RECOVER_SETUP_DIALOG", "RecoverySetupDialog"]
|
|
7
|
+
}
|
|
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_NZKGFE46_exports = {};
|
|
20
|
+
__export(chunk_NZKGFE46_exports, {
|
|
21
21
|
ClientAction: () => ClientAction
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_NZKGFE46_exports);
|
|
24
24
|
var import_chunk_OIFPM5ZW = require("./chunk-OIFPM5ZW.cjs");
|
|
25
25
|
var import_echo_schema = require("@dxos/echo-schema");
|
|
26
26
|
var import_react_client = require("@dxos/react-client");
|
|
@@ -87,9 +87,21 @@ var ClientAction;
|
|
|
87
87
|
}) {
|
|
88
88
|
}
|
|
89
89
|
ClientAction2.CreateRecoveryCode = CreateRecoveryCode;
|
|
90
|
+
class CreatePasskey extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/create-passkey`, {
|
|
91
|
+
input: import_echo_schema.S.Void,
|
|
92
|
+
output: import_echo_schema.S.Void
|
|
93
|
+
}) {
|
|
94
|
+
}
|
|
95
|
+
ClientAction2.CreatePasskey = CreatePasskey;
|
|
96
|
+
class RedeemPasskey extends import_echo_schema.S.TaggedClass()(`${CLIENT_ACTION}/redeem-passkey`, {
|
|
97
|
+
input: import_echo_schema.S.Void,
|
|
98
|
+
output: import_echo_schema.S.Void
|
|
99
|
+
}) {
|
|
100
|
+
}
|
|
101
|
+
ClientAction2.RedeemPasskey = RedeemPasskey;
|
|
90
102
|
})(ClientAction || (ClientAction = {}));
|
|
91
103
|
// Annotate the CommonJS export names for ESM import in node:
|
|
92
104
|
0 && (module.exports = {
|
|
93
105
|
ClientAction
|
|
94
106
|
});
|
|
95
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-NZKGFE46.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/types.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { type PluginsContext } from '@dxos/app-framework';\nimport { S } from '@dxos/echo-schema';\nimport { type Client, PublicKey, type ClientOptions } from '@dxos/react-client';\nimport { type MaybePromise } from '@dxos/util';\n\nimport { CLIENT_PLUGIN } from './meta';\n\n// TODO(wittjosiah): Factor out. Generate?\nconst IdentitySchema = S.Struct({\n identityKey: S.instanceOf(PublicKey),\n spaceKey: S.optional(S.instanceOf(PublicKey)),\n profile: S.optional(\n S.Struct({\n displayName: S.optional(S.String),\n avatarCid: S.optional(S.String),\n data: S.optional(S.Record({ key: S.String, value: S.Any })),\n }),\n ),\n});\n\nconst CLIENT_ACTION = `${CLIENT_PLUGIN}/action`;\nexport namespace ClientAction {\n export class CreateIdentity extends S.TaggedClass<CreateIdentity>()(`${CLIENT_ACTION}/create-identity`, {\n input: S.Struct({\n displayName: S.optional(S.String),\n }),\n output: IdentitySchema,\n }) {}\n\n export class JoinIdentity extends S.TaggedClass<JoinIdentity>()(`${CLIENT_ACTION}/join-identity`, {\n input: S.Struct({\n invitationCode: S.String,\n }),\n output: S.Void,\n }) {}\n\n export class ShareIdentity extends S.TaggedClass<ShareIdentity>()(`${CLIENT_ACTION}/share-identity`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class RecoverIdentity extends S.TaggedClass<RecoverIdentity>()(`${CLIENT_ACTION}/recover-identity`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class ResetStorage extends S.TaggedClass<ResetStorage>()(`${CLIENT_ACTION}/reset-storage`, {\n input: S.Struct({\n target: S.optional(S.String),\n }),\n output: S.Void,\n }) {}\n\n export class CreateAgent extends S.TaggedClass<CreateAgent>()(`${CLIENT_ACTION}/create-agent`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class CreateRecoveryCode extends S.TaggedClass<CreateRecoveryCode>()(`${CLIENT_ACTION}/create-recovery-code`, {\n input: S.Void,\n output: S.Void,\n }) {}\n}\n\nexport type ClientPluginOptions = ClientOptions & {\n /**\n * Base URL for the invitation link.\n */\n invitationUrl?: string;\n\n /**\n * Query parameter for the invitation code.\n */\n invitationParam?: string;\n\n /**\n * Run after the client has been initialized.\n */\n onClientInitialized?: (context: PluginsContext, client: Client) => MaybePromise<void>;\n\n /**\n * Called when the client is reset.\n */\n onReset?: (params: { target?: string }) => MaybePromise<void>;\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAKA,yBAAkB;AAClB,0BAA2D;AAM3D,IAAMA,iBAAiBC,qBAAEC,OAAO;EAC9BC,aAAaF,qBAAEG,WAAWC,6BAAAA;EAC1BC,UAAUL,qBAAEM,SAASN,qBAAEG,WAAWC,6BAAAA,CAAAA;EAClCG,SAASP,qBAAEM,SACTN,qBAAEC,OAAO;IACPO,aAAaR,qBAAEM,SAASN,qBAAES,MAAM;IAChCC,WAAWV,qBAAEM,SAASN,qBAAES,MAAM;IAC9BE,MAAMX,qBAAEM,SAASN,qBAAEY,OAAO;MAAEC,KAAKb,qBAAES;MAAQK,OAAOd,qBAAEe;IAAI,CAAA,CAAA;EAC1D,CAAA,CAAA;AAEJ,CAAA;AAEA,IAAMC,gBAAgB,GAAGC,mCAAAA;;UACRC,eAAAA;EACR,MAAMC,uBAAuBnB,qBAAEoB,YAAW,EAAmB,GAAGJ,aAAAA,oB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entitySchema", "S", "Struct", "identityKey", "instanceOf", "PublicKey", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "CLIENT_ACTION", "CLIENT_PLUGIN", "ClientAction", "CreateIdentity", "TaggedClass", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "target", "CreateAgent", "CreateRecoveryCode"]
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { type PluginsContext } from '@dxos/app-framework';\nimport { S } from '@dxos/echo-schema';\nimport { type Client, PublicKey, type ClientOptions } from '@dxos/react-client';\nimport { type MaybePromise } from '@dxos/util';\n\nimport { CLIENT_PLUGIN } from './meta';\n\n// TODO(wittjosiah): Factor out. Generate?\nconst IdentitySchema = S.Struct({\n identityKey: S.instanceOf(PublicKey),\n spaceKey: S.optional(S.instanceOf(PublicKey)),\n profile: S.optional(\n S.Struct({\n displayName: S.optional(S.String),\n avatarCid: S.optional(S.String),\n data: S.optional(S.Record({ key: S.String, value: S.Any })),\n }),\n ),\n});\n\nconst CLIENT_ACTION = `${CLIENT_PLUGIN}/action`;\nexport namespace ClientAction {\n export class CreateIdentity extends S.TaggedClass<CreateIdentity>()(`${CLIENT_ACTION}/create-identity`, {\n input: S.Struct({\n displayName: S.optional(S.String),\n }),\n output: IdentitySchema,\n }) {}\n\n export class JoinIdentity extends S.TaggedClass<JoinIdentity>()(`${CLIENT_ACTION}/join-identity`, {\n input: S.Struct({\n invitationCode: S.String,\n }),\n output: S.Void,\n }) {}\n\n export class ShareIdentity extends S.TaggedClass<ShareIdentity>()(`${CLIENT_ACTION}/share-identity`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class RecoverIdentity extends S.TaggedClass<RecoverIdentity>()(`${CLIENT_ACTION}/recover-identity`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class ResetStorage extends S.TaggedClass<ResetStorage>()(`${CLIENT_ACTION}/reset-storage`, {\n input: S.Struct({\n target: S.optional(S.String),\n }),\n output: S.Void,\n }) {}\n\n export class CreateAgent extends S.TaggedClass<CreateAgent>()(`${CLIENT_ACTION}/create-agent`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class CreateRecoveryCode extends S.TaggedClass<CreateRecoveryCode>()(`${CLIENT_ACTION}/create-recovery-code`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class CreatePasskey extends S.TaggedClass<CreatePasskey>()(`${CLIENT_ACTION}/create-passkey`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class RedeemPasskey extends S.TaggedClass<RedeemPasskey>()(`${CLIENT_ACTION}/redeem-passkey`, {\n input: S.Void,\n output: S.Void,\n }) {}\n}\n\nexport type ClientPluginOptions = ClientOptions & {\n /**\n * Base URL for the invitation link.\n */\n invitationUrl?: string;\n\n /**\n * Query parameter for the invitation code.\n */\n invitationParam?: string;\n\n /**\n * Run after the client has been initialized.\n */\n onClientInitialized?: (context: PluginsContext, client: Client) => MaybePromise<void>;\n\n /**\n * Called when the client is reset.\n */\n onReset?: (params: { target?: string }) => MaybePromise<void>;\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAKA,yBAAkB;AAClB,0BAA2D;AAM3D,IAAMA,iBAAiBC,qBAAEC,OAAO;EAC9BC,aAAaF,qBAAEG,WAAWC,6BAAAA;EAC1BC,UAAUL,qBAAEM,SAASN,qBAAEG,WAAWC,6BAAAA,CAAAA;EAClCG,SAASP,qBAAEM,SACTN,qBAAEC,OAAO;IACPO,aAAaR,qBAAEM,SAASN,qBAAES,MAAM;IAChCC,WAAWV,qBAAEM,SAASN,qBAAES,MAAM;IAC9BE,MAAMX,qBAAEM,SAASN,qBAAEY,OAAO;MAAEC,KAAKb,qBAAES;MAAQK,OAAOd,qBAAEe;IAAI,CAAA,CAAA;EAC1D,CAAA,CAAA;AAEJ,CAAA;AAEA,IAAMC,gBAAgB,GAAGC,mCAAAA;;UACRC,eAAAA;E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CAAA,EAAA;EAAI;gBAHSM,qBAAAA;EAKN,MAAMC,sBAAsBhC,qBAAEoB,YAAW,EAAkB,GAAGJ,aAAAA,mBAAgC;IACnGK,OAAOrB,qBAAEyB;IACTH,QAAQtB,qBAAEyB;EACZ,CAAA,EAAA;EAAI;gBAHSO,gBAAAA;EAKN,MAAMC,sBAAsBjC,qBAAEoB,YAAW,EAAkB,GAAGJ,aAAAA,mBAAgC;IACnGK,OAAOrB,qBAAEyB;IACTH,QAAQtB,qBAAEyB;EACZ,CAAA,EAAA;EAAI;gBAHSQ,gBAAAA;AAIf,GAnDiBf,iBAAAA,eAAAA,CAAAA,EAAAA;",
|
|
6
|
+
"names": ["IdentitySchema", "S", "Struct", "identityKey", "instanceOf", "PublicKey", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "CLIENT_ACTION", "CLIENT_PLUGIN", "ClientAction", "CreateIdentity", "TaggedClass", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "target", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey"]
|
|
7
7
|
}
|
|
@@ -16,23 +16,18 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var client_JCI7A3IV_exports = {};
|
|
20
|
+
__export(client_JCI7A3IV_exports, {
|
|
21
21
|
default: () => client_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(client_JCI7A3IV_exports);
|
|
24
24
|
var import_chunk_XPC4JOPP = require("./chunk-XPC4JOPP.cjs");
|
|
25
25
|
var import_chunk_ZI7AV5RP = require("./chunk-ZI7AV5RP.cjs");
|
|
26
26
|
var import_chunk_OIFPM5ZW = require("./chunk-OIFPM5ZW.cjs");
|
|
27
27
|
var import_app_framework = require("@dxos/app-framework");
|
|
28
|
-
var import_config = require("@dxos/config");
|
|
29
28
|
var import_react_client = require("@dxos/react-client");
|
|
30
29
|
var client_default = async ({ context, onClientInitialized, ...options }) => {
|
|
31
|
-
const
|
|
32
|
-
const client = new import_react_client.Client({
|
|
33
|
-
config,
|
|
34
|
-
...options
|
|
35
|
-
});
|
|
30
|
+
const client = new import_react_client.Client(options);
|
|
36
31
|
await client.initialize();
|
|
37
32
|
await onClientInitialized?.(context, client);
|
|
38
33
|
client.reloaded.on(() => {
|
|
@@ -52,4 +47,4 @@ var client_default = async ({ context, onClientInitialized, ...options }) => {
|
|
|
52
47
|
await client.destroy();
|
|
53
48
|
});
|
|
54
49
|
};
|
|
55
|
-
//# sourceMappingURL=client-
|
|
50
|
+
//# sourceMappingURL=client-JCI7A3IV.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/client.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { contributes, type PluginsContext } from '@dxos/app-framework';\nimport { Client } from '@dxos/react-client';\n\nimport { ClientCapabilities } from './capabilities';\nimport { ClientEvents } from '../events';\nimport { type ClientPluginOptions } from '../types';\n\ntype ClientCapabilityOptions = Omit<ClientPluginOptions, 'appKey' | 'invitationUrl' | 'invitationParam' | 'onReset'> & {\n context: PluginsContext;\n};\n\nexport default async ({ context, onClientInitialized, ...options }: ClientCapabilityOptions) => {\n const client = new Client(options);\n await client.initialize();\n await onClientInitialized?.(context, 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\n const subscription = client.spaces.isReady.subscribe(async (ready) => {\n if (ready) {\n await context.activate(ClientEvents.SpacesReady);\n }\n });\n\n return contributes(ClientCapabilities.Client, client, async () => {\n subscription.unsubscribe();\n await client.destroy();\n });\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAAiD;AACjD,0BAAuB;AAUvB,IAAA,iBAAe,OAAO,EAAEA,SAASC,qBAAqB,GAAGC,QAAAA,MAAkC;AACzF,QAAMC,SAAS,IAAIC,2BAAOF,OAAAA;AAC1B,QAAMC,OAAOE,WAAU;AACvB,QAAMJ,sBAAsBD,SAASG,MAAAA;AAGrCA,SAAOG,SAASC,GAAG,MAAA;AACjBJ,WAAOK,KAAKC,SAASC,UAAU,OAAOD,aAAAA;AACpC,UAAIA,UAAU;AACZE,eAAOC,SAASC,OAAOF,OAAOC,SAASE;MACzC;IACF,CAAA;EACF,CAAA;AAEA,QAAMC,eAAeZ,OAAOa,OAAOC,QAAQP,UAAU,OAAOQ,UAAAA;AAC1D,QAAIA,OAAO;AACT,YAAMlB,QAAQmB,SAASC,mCAAaC,WAAW;IACjD;EACF,CAAA;AAEA,aAAOC,kCAAYC,yCAAmBnB,QAAQD,QAAQ,YAAA;AACpDY,iBAAaS,YAAW;AACxB,UAAMrB,OAAOsB,QAAO;EACtB,CAAA;AACF;",
|
|
6
|
+
"names": ["context", "onClientInitialized", "options", "client", "Client", "initialize", "reloaded", "on", "halo", "identity", "subscribe", "window", "location", "href", "origin", "subscription", "spaces", "isReady", "ready", "activate", "ClientEvents", "SpacesReady", "contributes", "ClientCapabilities", "unsubscribe", "destroy"]
|
|
7
|
+
}
|
package/dist/lib/node/index.cjs
CHANGED
|
@@ -40,18 +40,25 @@ var import_chunk_ZI7AV5RP = require("./chunk-ZI7AV5RP.cjs");
|
|
|
40
40
|
var import_chunk_OIFPM5ZW = require("./chunk-OIFPM5ZW.cjs");
|
|
41
41
|
var import_app_framework = require("@dxos/app-framework");
|
|
42
42
|
var import_app_framework2 = require("@dxos/app-framework");
|
|
43
|
-
var AppGraphBuilder = (0, import_app_framework2.lazy)(async () => import("./app-graph-builder-
|
|
44
|
-
var Client = (0, import_app_framework2.lazy)(async () => import("./client-
|
|
45
|
-
var IntentResolver = (0, import_app_framework2.lazy)(async () => import("./intent-resolver-
|
|
43
|
+
var AppGraphBuilder = (0, import_app_framework2.lazy)(async () => import("./app-graph-builder-R6QR2VLZ.cjs"));
|
|
44
|
+
var Client = (0, import_app_framework2.lazy)(async () => import("./client-JCI7A3IV.cjs"));
|
|
45
|
+
var IntentResolver = (0, import_app_framework2.lazy)(async () => import("./intent-resolver-ODZVEAZ2.cjs"));
|
|
46
46
|
var ReactContext = (0, import_app_framework2.lazy)(async () => import("./react-context-WMOFXPT4.cjs"));
|
|
47
|
-
var ReactSurface = (0, import_app_framework2.lazy)(async () => import("./react-surface-
|
|
47
|
+
var ReactSurface = (0, import_app_framework2.lazy)(async () => import("./react-surface-KRKGFWS3.cjs"));
|
|
48
48
|
var Schema = (0, import_app_framework2.lazy)(async () => import("./schema-HW4W3QYU.cjs"));
|
|
49
49
|
var translations_default = [
|
|
50
50
|
{
|
|
51
51
|
"en-US": {
|
|
52
52
|
[import_chunk_OIFPM5ZW.CLIENT_PLUGIN]: {
|
|
53
53
|
"open shell label": "Open HALO",
|
|
54
|
-
"
|
|
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",
|
|
55
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.",
|
|
56
63
|
"recovery code dialog warning 1": "NOTE: This code will not be displayed again.",
|
|
57
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.",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
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.SetupSurfaces,\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.SetupIntents,\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 'recovery
|
|
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,8BAA8B;QAC9B,oCACE;QACF,kCAAkC;QAClC,kCACE;QACF,oCAAoC;QACpC,kBAAkB;MACpB;IACF;EACF;;
|
|
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.SetupSurfaces,\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.SetupIntents,\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,mCAAm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,YAAYjC,eAAe;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
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", "SetupSurfaces", "SetupIntents", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations"]
|
|
7
7
|
}
|