@dxos/plugin-client 0.8.0 → 0.8.1-main.013e445
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-ON64R7SO.mjs → app-graph-builder-AYO4YOHF.mjs} +3 -3
- package/dist/lib/browser/{chunk-OLUST5AO.mjs → chunk-4PLF3BEB.mjs} +2 -2
- package/dist/lib/browser/{chunk-XK4HM5M7.mjs → chunk-5PFNFGEX.mjs} +2 -2
- package/dist/lib/browser/{chunk-NHIL4T3L.mjs → chunk-MCEXD5XH.mjs} +1 -1
- package/dist/lib/browser/{chunk-NHIL4T3L.mjs.map → chunk-MCEXD5XH.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-HNJZ74DZ.mjs → chunk-RVH34XOH.mjs} +3 -3
- package/dist/lib/browser/{chunk-7DPLXOMO.mjs → chunk-VZ5F6WXE.mjs} +2 -2
- package/dist/lib/browser/{client-UUGITHCW.mjs → client-HTXOBFCI.mjs} +4 -4
- package/dist/lib/browser/index.mjs +10 -10
- package/dist/lib/browser/{intent-resolver-AIUHL34E.mjs → intent-resolver-UNXR6JZ4.mjs} +6 -6
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{migrations-XODC625X.mjs → migrations-RDPWB4BY.mjs} +3 -3
- package/dist/lib/browser/{react-context-JBD7Y3SN.mjs → react-context-AFAG3P7A.mjs} +3 -3
- package/dist/lib/browser/{react-surface-QGPWIUFR.mjs → react-surface-BSCIKZIB.mjs} +4 -4
- package/dist/lib/browser/{schema-Y7ZNXYSL.mjs → schema-ILFMQTBA.mjs} +3 -3
- package/dist/lib/browser/types.mjs +2 -2
- package/dist/lib/node/{app-graph-builder-RW7ESEX3.cjs → app-graph-builder-LYPDRPML.cjs} +10 -10
- package/dist/lib/node/{chunk-TREVKZCJ.cjs → chunk-2MVZ5CAW.cjs} +6 -6
- package/dist/lib/node/{chunk-UTG3UR3N.cjs → chunk-BGAW4D7O.cjs} +24 -24
- package/dist/lib/node/{chunk-OIFPM5ZW.cjs → chunk-DJKWB5L6.cjs} +4 -4
- package/dist/lib/node/{chunk-OIFPM5ZW.cjs.map → chunk-DJKWB5L6.cjs.map} +2 -2
- package/dist/lib/node/{chunk-T4K27K2F.cjs → chunk-GNGRRSK6.cjs} +8 -8
- package/dist/lib/node/{chunk-FR2K56EV.cjs → chunk-W64EOF2B.cjs} +10 -10
- package/dist/lib/node/{client-5BHSU35T.cjs → client-OHUMS7CA.cjs} +9 -9
- package/dist/lib/node/index.cjs +29 -29
- package/dist/lib/node/{intent-resolver-PWCHHNV3.cjs → intent-resolver-CDCTQRTP.cjs} +28 -28
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{migrations-YCBZUPWO.cjs → migrations-3OU3VYRY.cjs} +8 -8
- package/dist/lib/node/{react-context-MPHNGZHT.cjs → react-context-O3YMNGY2.cjs} +8 -8
- package/dist/lib/node/{react-surface-TPISDIHR.cjs → react-surface-UW35ICXB.cjs} +22 -22
- package/dist/lib/node/{schema-NMMCMK64.cjs → schema-3O23NSBJ.cjs} +8 -8
- package/dist/lib/node/types.cjs +3 -3
- package/dist/lib/node/types.cjs.map +1 -1
- package/dist/lib/node-esm/{app-graph-builder-TDYRWNI7.mjs → app-graph-builder-RAWYJUPF.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-XLLNVLWU.mjs → chunk-BP56BGZR.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-HO7WDE7C.mjs → chunk-HM7VB4ZV.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-HO7WDE7C.mjs.map → chunk-HM7VB4ZV.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-SHJBU4QR.mjs → chunk-IRS6TBYR.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-QJMF2MWP.mjs → chunk-TBU6HCXG.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-3OU2ZXLK.mjs → chunk-WLNBFUQQ.mjs} +2 -2
- package/dist/lib/node-esm/{client-ZDGFGLX4.mjs → client-H2PDNSQA.mjs} +4 -4
- package/dist/lib/node-esm/index.mjs +10 -10
- package/dist/lib/node-esm/{intent-resolver-FIXGPH7C.mjs → intent-resolver-BEI7L57D.mjs} +6 -6
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{migrations-VIEIPYJW.mjs → migrations-WF3AJRHK.mjs} +3 -3
- package/dist/lib/node-esm/{react-context-KUEOXWWK.mjs → react-context-CS3VYUGG.mjs} +3 -3
- package/dist/lib/node-esm/{react-surface-KBROL4VH.mjs → react-surface-6TPONAIZ.mjs} +4 -4
- package/dist/lib/node-esm/{schema-NE5IYLMD.mjs → schema-UTCDWIZB.mjs} +3 -3
- package/dist/lib/node-esm/types.mjs +2 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/components/IdentityDialog.d.ts +2 -1
- package/dist/types/src/components/IdentityDialog.d.ts.map +1 -1
- package/dist/types/src/components/JoinDialog.d.ts +2 -1
- package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/components/ManageCredentialsDialog.d.ts +2 -1
- package/dist/types/src/components/ManageCredentialsDialog.d.ts.map +1 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts +2 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
- package/dist/types/src/components/RecoverySetupDialog.d.ts +2 -1
- package/dist/types/src/components/RecoverySetupDialog.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -4
- package/dist/types/src/meta.d.ts.map +1 -1
- package/package.json +19 -19
- package/src/meta.ts +2 -2
- /package/dist/lib/browser/{app-graph-builder-ON64R7SO.mjs.map → app-graph-builder-AYO4YOHF.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-OLUST5AO.mjs.map → chunk-4PLF3BEB.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-XK4HM5M7.mjs.map → chunk-5PFNFGEX.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-HNJZ74DZ.mjs.map → chunk-RVH34XOH.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-7DPLXOMO.mjs.map → chunk-VZ5F6WXE.mjs.map} +0 -0
- /package/dist/lib/browser/{client-UUGITHCW.mjs.map → client-HTXOBFCI.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-AIUHL34E.mjs.map → intent-resolver-UNXR6JZ4.mjs.map} +0 -0
- /package/dist/lib/browser/{migrations-XODC625X.mjs.map → migrations-RDPWB4BY.mjs.map} +0 -0
- /package/dist/lib/browser/{react-context-JBD7Y3SN.mjs.map → react-context-AFAG3P7A.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-QGPWIUFR.mjs.map → react-surface-BSCIKZIB.mjs.map} +0 -0
- /package/dist/lib/browser/{schema-Y7ZNXYSL.mjs.map → schema-ILFMQTBA.mjs.map} +0 -0
- /package/dist/lib/node/{app-graph-builder-RW7ESEX3.cjs.map → app-graph-builder-LYPDRPML.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-TREVKZCJ.cjs.map → chunk-2MVZ5CAW.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-UTG3UR3N.cjs.map → chunk-BGAW4D7O.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-T4K27K2F.cjs.map → chunk-GNGRRSK6.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-FR2K56EV.cjs.map → chunk-W64EOF2B.cjs.map} +0 -0
- /package/dist/lib/node/{client-5BHSU35T.cjs.map → client-OHUMS7CA.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-PWCHHNV3.cjs.map → intent-resolver-CDCTQRTP.cjs.map} +0 -0
- /package/dist/lib/node/{migrations-YCBZUPWO.cjs.map → migrations-3OU3VYRY.cjs.map} +0 -0
- /package/dist/lib/node/{react-context-MPHNGZHT.cjs.map → react-context-O3YMNGY2.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-TPISDIHR.cjs.map → react-surface-UW35ICXB.cjs.map} +0 -0
- /package/dist/lib/node/{schema-NMMCMK64.cjs.map → schema-3O23NSBJ.cjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-builder-TDYRWNI7.mjs.map → app-graph-builder-RAWYJUPF.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-XLLNVLWU.mjs.map → chunk-BP56BGZR.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-SHJBU4QR.mjs.map → chunk-IRS6TBYR.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-QJMF2MWP.mjs.map → chunk-TBU6HCXG.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-3OU2ZXLK.mjs.map → chunk-WLNBFUQQ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{client-ZDGFGLX4.mjs.map → client-H2PDNSQA.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-FIXGPH7C.mjs.map → intent-resolver-BEI7L57D.mjs.map} +0 -0
- /package/dist/lib/node-esm/{migrations-VIEIPYJW.mjs.map → migrations-WF3AJRHK.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-context-KUEOXWWK.mjs.map → react-context-CS3VYUGG.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-KBROL4VH.mjs.map → react-surface-6TPONAIZ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{schema-NE5IYLMD.mjs.map → schema-UTCDWIZB.mjs.map} +0 -0
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_BGAW4D7O_exports = {};
|
|
30
|
+
__export(chunk_BGAW4D7O_exports, {
|
|
31
31
|
IDENTITY_DIALOG: () => IDENTITY_DIALOG,
|
|
32
32
|
IdentityDialog: () => IdentityDialog,
|
|
33
33
|
JOIN_DIALOG: () => JOIN_DIALOG,
|
|
@@ -39,9 +39,9 @@ __export(chunk_UTG3UR3N_exports, {
|
|
|
39
39
|
RecoveryCodeDialog: () => RecoveryCodeDialog,
|
|
40
40
|
RecoverySetupDialog: () => RecoverySetupDialog
|
|
41
41
|
});
|
|
42
|
-
module.exports = __toCommonJS(
|
|
43
|
-
var
|
|
44
|
-
var
|
|
42
|
+
module.exports = __toCommonJS(chunk_BGAW4D7O_exports);
|
|
43
|
+
var import_chunk_2MVZ5CAW = require("./chunk-2MVZ5CAW.cjs");
|
|
44
|
+
var import_chunk_DJKWB5L6 = require("./chunk-DJKWB5L6.cjs");
|
|
45
45
|
var import_react = require("@phosphor-icons/react");
|
|
46
46
|
var import_react2 = __toESM(require("react"));
|
|
47
47
|
var import_app_framework = require("@dxos/app-framework");
|
|
@@ -65,9 +65,9 @@ var import_react10 = __toESM(require("react"));
|
|
|
65
65
|
var import_app_framework4 = require("@dxos/app-framework");
|
|
66
66
|
var import_react_ui5 = require("@dxos/react-ui");
|
|
67
67
|
var import_react11 = require("@dxos/shell/react");
|
|
68
|
-
var MANAGE_CREDENTIALS_DIALOG = `${
|
|
68
|
+
var MANAGE_CREDENTIALS_DIALOG = `${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/ManageCredentialsDialog`;
|
|
69
69
|
var ManageCredentialsDialog = () => {
|
|
70
|
-
const { t } = (0, import_react_ui.useTranslation)(
|
|
70
|
+
const { t } = (0, import_react_ui.useTranslation)(import_chunk_DJKWB5L6.CLIENT_PLUGIN);
|
|
71
71
|
const { dispatchPromise: dispatch } = (0, import_app_framework.useIntentDispatcher)();
|
|
72
72
|
const credentials = (0, import_halo.useCredentials)();
|
|
73
73
|
const recoveryCredentials = credentials.filter((credential) => credential.subject.assertion["@type"] === "dxos.halo.credentials.IdentityRecovery");
|
|
@@ -77,13 +77,13 @@ var ManageCredentialsDialog = () => {
|
|
|
77
77
|
description: t("create passkey description"),
|
|
78
78
|
// TODO(wittjosiah): Ideally this would be a `user-key` icon.
|
|
79
79
|
icon: import_react.Key,
|
|
80
|
-
onClick: () => dispatch((0, import_app_framework.createIntent)(
|
|
80
|
+
onClick: () => dispatch((0, import_app_framework.createIntent)(import_chunk_2MVZ5CAW.ClientAction.CreatePasskey))
|
|
81
81
|
},
|
|
82
82
|
createRecoveryCode: {
|
|
83
83
|
label: t("create recovery code label"),
|
|
84
84
|
description: t("create recovery code description"),
|
|
85
85
|
icon: import_react.Receipt,
|
|
86
|
-
onClick: () => dispatch((0, import_app_framework.createIntent)(
|
|
86
|
+
onClick: () => dispatch((0, import_app_framework.createIntent)(import_chunk_2MVZ5CAW.ClientAction.CreateRecoveryCode))
|
|
87
87
|
}
|
|
88
88
|
}), [
|
|
89
89
|
t
|
|
@@ -103,11 +103,11 @@ var ManageCredentialsDialog = () => {
|
|
|
103
103
|
actions
|
|
104
104
|
}));
|
|
105
105
|
};
|
|
106
|
-
var IDENTITY_DIALOG = `${
|
|
106
|
+
var IDENTITY_DIALOG = `${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/IdentityDialog`;
|
|
107
107
|
var IdentityDialog = (props) => {
|
|
108
108
|
const { dispatchPromise: dispatch } = (0, import_app_framework2.useIntentDispatcher)();
|
|
109
109
|
const client = (0, import_react_client.useClient)();
|
|
110
|
-
const { t } = (0, import_react_ui2.useTranslation)(
|
|
110
|
+
const { t } = (0, import_react_ui2.useTranslation)(import_chunk_DJKWB5L6.CLIENT_PLUGIN);
|
|
111
111
|
const handleDone = (0, import_react4.useCallback)(() => dispatch((0, import_app_framework2.createIntent)(import_app_framework2.LayoutAction.UpdateDialog, {
|
|
112
112
|
part: "dialog",
|
|
113
113
|
options: {
|
|
@@ -118,13 +118,13 @@ var IdentityDialog = (props) => {
|
|
|
118
118
|
]);
|
|
119
119
|
const handleResetStorage = (0, import_react4.useCallback)(async () => {
|
|
120
120
|
await client.reset();
|
|
121
|
-
await dispatch((0, import_app_framework2.createIntent)(
|
|
121
|
+
await dispatch((0, import_app_framework2.createIntent)(import_chunk_2MVZ5CAW.ClientAction.ResetStorage));
|
|
122
122
|
}, [
|
|
123
123
|
dispatch
|
|
124
124
|
]);
|
|
125
125
|
const handleRecover = (0, import_react4.useCallback)(async () => {
|
|
126
126
|
await client.reset();
|
|
127
|
-
await dispatch((0, import_app_framework2.createIntent)(
|
|
127
|
+
await dispatch((0, import_app_framework2.createIntent)(import_chunk_2MVZ5CAW.ClientAction.ResetStorage, {
|
|
128
128
|
target: "recoverIdentity"
|
|
129
129
|
}));
|
|
130
130
|
}, [
|
|
@@ -132,7 +132,7 @@ var IdentityDialog = (props) => {
|
|
|
132
132
|
]);
|
|
133
133
|
const handleJoinNewIdentity = (0, import_react4.useCallback)(async () => {
|
|
134
134
|
await client.reset();
|
|
135
|
-
await dispatch((0, import_app_framework2.createIntent)(
|
|
135
|
+
await dispatch((0, import_app_framework2.createIntent)(import_chunk_2MVZ5CAW.ClientAction.ResetStorage, {
|
|
136
136
|
target: "deviceInvitation"
|
|
137
137
|
}));
|
|
138
138
|
}, [
|
|
@@ -166,11 +166,11 @@ var IdentityDialog = (props) => {
|
|
|
166
166
|
onManageCredentials: handleManageCredentials
|
|
167
167
|
})));
|
|
168
168
|
};
|
|
169
|
-
var JOIN_DIALOG = `${
|
|
169
|
+
var JOIN_DIALOG = `${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/JoinDialog`;
|
|
170
170
|
var JoinDialog = (props) => {
|
|
171
171
|
const { dispatchPromise: dispatch } = (0, import_app_framework3.useIntentDispatcher)();
|
|
172
|
-
const { t } = (0, import_react_ui3.useTranslation)(
|
|
173
|
-
const handleCancelResetStorage = (0, import_react6.useCallback)(() => dispatch((0, import_app_framework3.createIntent)(
|
|
172
|
+
const { t } = (0, import_react_ui3.useTranslation)(import_chunk_DJKWB5L6.CLIENT_PLUGIN);
|
|
173
|
+
const handleCancelResetStorage = (0, import_react6.useCallback)(() => dispatch((0, import_app_framework3.createIntent)(import_chunk_2MVZ5CAW.ClientAction.ShareIdentity)), [
|
|
174
174
|
dispatch
|
|
175
175
|
]);
|
|
176
176
|
const handleDone = (0, import_react6.useCallback)(async (result) => {
|
|
@@ -207,9 +207,9 @@ var JoinDialog = (props) => {
|
|
|
207
207
|
onDone: handleDone
|
|
208
208
|
}));
|
|
209
209
|
};
|
|
210
|
-
var RECOVER_CODE_DIALOG = `${
|
|
210
|
+
var RECOVER_CODE_DIALOG = `${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/RecoveryCodeDialog`;
|
|
211
211
|
var RecoveryCodeDialog = ({ code }) => {
|
|
212
|
-
const { t } = (0, import_react_ui4.useTranslation)(
|
|
212
|
+
const { t } = (0, import_react_ui4.useTranslation)(import_chunk_DJKWB5L6.CLIENT_PLUGIN);
|
|
213
213
|
const [confirmation, setConfirmation] = (0, import_react8.useState)(false);
|
|
214
214
|
const handleConfirmation = (0, import_react8.useCallback)((checked) => setConfirmation(checked), []);
|
|
215
215
|
return /* @__PURE__ */ import_react8.default.createElement(import_react_ui4.AlertDialog.Content, {
|
|
@@ -254,9 +254,9 @@ var Code = ({ code }) => {
|
|
|
254
254
|
className: "text-sm"
|
|
255
255
|
}, word)))));
|
|
256
256
|
};
|
|
257
|
-
var RECOVER_SETUP_DIALOG = `${
|
|
257
|
+
var RECOVER_SETUP_DIALOG = `${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/RecoverySetupDialog`;
|
|
258
258
|
var RecoverySetupDialog = () => {
|
|
259
|
-
const { t } = (0, import_react_ui5.useTranslation)(
|
|
259
|
+
const { t } = (0, import_react_ui5.useTranslation)(import_chunk_DJKWB5L6.CLIENT_PLUGIN);
|
|
260
260
|
const { dispatchPromise: dispatch } = (0, import_app_framework4.useIntentDispatcher)();
|
|
261
261
|
const actions = (0, import_react10.useMemo)(() => ({
|
|
262
262
|
createPasskey: {
|
|
@@ -265,7 +265,7 @@ var RecoverySetupDialog = () => {
|
|
|
265
265
|
// TODO(wittjosiah): Ideally this would be a `user-key` icon.
|
|
266
266
|
icon: import_react9.Key,
|
|
267
267
|
onClick: async () => {
|
|
268
|
-
await dispatch((0, import_app_framework4.createIntent)(
|
|
268
|
+
await dispatch((0, import_app_framework4.createIntent)(import_chunk_2MVZ5CAW.ClientAction.CreatePasskey));
|
|
269
269
|
await dispatch((0, import_app_framework4.createIntent)(import_app_framework4.LayoutAction.UpdateDialog, {
|
|
270
270
|
part: "dialog",
|
|
271
271
|
options: {
|
|
@@ -278,7 +278,7 @@ var RecoverySetupDialog = () => {
|
|
|
278
278
|
label: t("create recovery code label"),
|
|
279
279
|
description: t("create recovery code description"),
|
|
280
280
|
icon: import_react9.Receipt,
|
|
281
|
-
onClick: () => dispatch((0, import_app_framework4.createIntent)(
|
|
281
|
+
onClick: () => dispatch((0, import_app_framework4.createIntent)(import_chunk_2MVZ5CAW.ClientAction.CreateRecoveryCode))
|
|
282
282
|
}
|
|
283
283
|
}), [
|
|
284
284
|
t
|
|
@@ -306,4 +306,4 @@ var RecoverySetupDialog = () => {
|
|
|
306
306
|
RecoveryCodeDialog,
|
|
307
307
|
RecoverySetupDialog
|
|
308
308
|
});
|
|
309
|
-
//# sourceMappingURL=chunk-
|
|
309
|
+
//# sourceMappingURL=chunk-BGAW4D7O.cjs.map
|
|
@@ -16,12 +16,12 @@ 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_DJKWB5L6_exports = {};
|
|
20
|
+
__export(chunk_DJKWB5L6_exports, {
|
|
21
21
|
CLIENT_PLUGIN: () => CLIENT_PLUGIN,
|
|
22
22
|
meta: () => meta
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_DJKWB5L6_exports);
|
|
25
25
|
var CLIENT_PLUGIN = "dxos.org/plugin/client";
|
|
26
26
|
var meta = {
|
|
27
27
|
id: CLIENT_PLUGIN,
|
|
@@ -32,4 +32,4 @@ var meta = {
|
|
|
32
32
|
CLIENT_PLUGIN,
|
|
33
33
|
meta
|
|
34
34
|
});
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-DJKWB5L6.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CLIENT_PLUGIN = 'dxos.org/plugin/client';\n\nexport const meta = {\n id: CLIENT_PLUGIN,\n name: 'Client',\n}
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,gBAAgB;AAEtB,IAAMC,
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CLIENT_PLUGIN = 'dxos.org/plugin/client';\n\nexport const meta: PluginMeta = {\n id: CLIENT_PLUGIN,\n name: 'Client',\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,gBAAgB;AAEtB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;AACR;",
|
|
6
6
|
"names": ["CLIENT_PLUGIN", "meta", "id", "name"]
|
|
7
7
|
}
|
|
@@ -16,21 +16,21 @@ 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_GNGRRSK6_exports = {};
|
|
20
|
+
__export(chunk_GNGRRSK6_exports, {
|
|
21
21
|
ClientCapabilities: () => ClientCapabilities
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_GNGRRSK6_exports);
|
|
24
|
+
var import_chunk_DJKWB5L6 = require("./chunk-DJKWB5L6.cjs");
|
|
25
25
|
var import_app_framework = require("@dxos/app-framework");
|
|
26
26
|
var ClientCapabilities;
|
|
27
27
|
(function(ClientCapabilities2) {
|
|
28
|
-
ClientCapabilities2.Client = (0, import_app_framework.defineCapability)(`${
|
|
29
|
-
ClientCapabilities2.Schema = (0, import_app_framework.defineCapability)(`${
|
|
30
|
-
ClientCapabilities2.Migration = (0, import_app_framework.defineCapability)(`${
|
|
28
|
+
ClientCapabilities2.Client = (0, import_app_framework.defineCapability)(`${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/capability/client`);
|
|
29
|
+
ClientCapabilities2.Schema = (0, import_app_framework.defineCapability)(`${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/capability/schema`);
|
|
30
|
+
ClientCapabilities2.Migration = (0, import_app_framework.defineCapability)(`${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/capability/migration`);
|
|
31
31
|
})(ClientCapabilities || (ClientCapabilities = {}));
|
|
32
32
|
// Annotate the CommonJS export names for ESM import in node:
|
|
33
33
|
0 && (module.exports = {
|
|
34
34
|
ClientCapabilities
|
|
35
35
|
});
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
36
|
+
//# sourceMappingURL=chunk-GNGRRSK6.cjs.map
|
|
@@ -16,23 +16,23 @@ 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_W64EOF2B_exports = {};
|
|
20
|
+
__export(chunk_W64EOF2B_exports, {
|
|
21
21
|
ClientEvents: () => ClientEvents
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_W64EOF2B_exports);
|
|
24
|
+
var import_chunk_DJKWB5L6 = require("./chunk-DJKWB5L6.cjs");
|
|
25
25
|
var import_app_framework = require("@dxos/app-framework");
|
|
26
26
|
var ClientEvents;
|
|
27
27
|
(function(ClientEvents2) {
|
|
28
|
-
ClientEvents2.ClientReady = (0, import_app_framework.defineEvent)(`${
|
|
29
|
-
ClientEvents2.SetupSchema = (0, import_app_framework.defineEvent)(`${
|
|
30
|
-
ClientEvents2.SetupMigration = (0, import_app_framework.defineEvent)(`${
|
|
31
|
-
ClientEvents2.IdentityCreated = (0, import_app_framework.defineEvent)(`${
|
|
32
|
-
ClientEvents2.SpacesReady = (0, import_app_framework.defineEvent)(`${
|
|
28
|
+
ClientEvents2.ClientReady = (0, import_app_framework.defineEvent)(`${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/event/client-ready`);
|
|
29
|
+
ClientEvents2.SetupSchema = (0, import_app_framework.defineEvent)(`${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/event/setup-schema`);
|
|
30
|
+
ClientEvents2.SetupMigration = (0, import_app_framework.defineEvent)(`${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/event/setup-migration`);
|
|
31
|
+
ClientEvents2.IdentityCreated = (0, import_app_framework.defineEvent)(`${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/event/identity-created`);
|
|
32
|
+
ClientEvents2.SpacesReady = (0, import_app_framework.defineEvent)(`${import_chunk_DJKWB5L6.CLIENT_PLUGIN}/event/spaces-ready`);
|
|
33
33
|
})(ClientEvents || (ClientEvents = {}));
|
|
34
34
|
// Annotate the CommonJS export names for ESM import in node:
|
|
35
35
|
0 && (module.exports = {
|
|
36
36
|
ClientEvents
|
|
37
37
|
});
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-W64EOF2B.cjs.map
|
|
@@ -16,14 +16,14 @@ 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_OHUMS7CA_exports = {};
|
|
20
|
+
__export(client_OHUMS7CA_exports, {
|
|
21
21
|
default: () => client_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(client_OHUMS7CA_exports);
|
|
24
|
+
var import_chunk_W64EOF2B = require("./chunk-W64EOF2B.cjs");
|
|
25
|
+
var import_chunk_GNGRRSK6 = require("./chunk-GNGRRSK6.cjs");
|
|
26
|
+
var import_chunk_DJKWB5L6 = require("./chunk-DJKWB5L6.cjs");
|
|
27
27
|
var import_app_framework = require("@dxos/app-framework");
|
|
28
28
|
var import_react_client = require("@dxos/react-client");
|
|
29
29
|
var client_default = async ({ context, onClientInitialized, ...options }) => {
|
|
@@ -39,12 +39,12 @@ var client_default = async ({ context, onClientInitialized, ...options }) => {
|
|
|
39
39
|
});
|
|
40
40
|
const subscription = client.spaces.isReady.subscribe(async (ready) => {
|
|
41
41
|
if (ready) {
|
|
42
|
-
await context.activate(
|
|
42
|
+
await context.activate(import_chunk_W64EOF2B.ClientEvents.SpacesReady);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
return (0, import_app_framework.contributes)(
|
|
45
|
+
return (0, import_app_framework.contributes)(import_chunk_GNGRRSK6.ClientCapabilities.Client, client, async () => {
|
|
46
46
|
subscription.unsubscribe();
|
|
47
47
|
await client.destroy();
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=client-
|
|
50
|
+
//# sourceMappingURL=client-OHUMS7CA.cjs.map
|
package/dist/lib/node/index.cjs
CHANGED
|
@@ -28,29 +28,29 @@ 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: () =>
|
|
32
|
-
ClientCapabilities: () =>
|
|
33
|
-
ClientEvents: () =>
|
|
31
|
+
CLIENT_PLUGIN: () => import_chunk_DJKWB5L6.CLIENT_PLUGIN,
|
|
32
|
+
ClientCapabilities: () => import_chunk_GNGRRSK6.ClientCapabilities,
|
|
33
|
+
ClientEvents: () => import_chunk_W64EOF2B.ClientEvents,
|
|
34
34
|
ClientPlugin: () => ClientPlugin,
|
|
35
|
-
meta: () =>
|
|
35
|
+
meta: () => import_chunk_DJKWB5L6.meta
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(node_exports);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
38
|
+
var import_chunk_W64EOF2B = require("./chunk-W64EOF2B.cjs");
|
|
39
|
+
var import_chunk_GNGRRSK6 = require("./chunk-GNGRRSK6.cjs");
|
|
40
|
+
var import_chunk_DJKWB5L6 = require("./chunk-DJKWB5L6.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-
|
|
46
|
-
var Migrations = (0, import_app_framework2.lazy)(async () => import("./migrations-
|
|
47
|
-
var ReactContext = (0, import_app_framework2.lazy)(async () => import("./react-context-
|
|
48
|
-
var ReactSurface = (0, import_app_framework2.lazy)(async () => import("./react-surface-
|
|
49
|
-
var Schema = (0, import_app_framework2.lazy)(async () => import("./schema-
|
|
43
|
+
var AppGraphBuilder = (0, import_app_framework2.lazy)(async () => import("./app-graph-builder-LYPDRPML.cjs"));
|
|
44
|
+
var Client = (0, import_app_framework2.lazy)(async () => import("./client-OHUMS7CA.cjs"));
|
|
45
|
+
var IntentResolver = (0, import_app_framework2.lazy)(async () => import("./intent-resolver-CDCTQRTP.cjs"));
|
|
46
|
+
var Migrations = (0, import_app_framework2.lazy)(async () => import("./migrations-3OU3VYRY.cjs"));
|
|
47
|
+
var ReactContext = (0, import_app_framework2.lazy)(async () => import("./react-context-O3YMNGY2.cjs"));
|
|
48
|
+
var ReactSurface = (0, import_app_framework2.lazy)(async () => import("./react-surface-UW35ICXB.cjs"));
|
|
49
|
+
var Schema = (0, import_app_framework2.lazy)(async () => import("./schema-3O23NSBJ.cjs"));
|
|
50
50
|
var translations_default = [
|
|
51
51
|
{
|
|
52
52
|
"en-US": {
|
|
53
|
-
[
|
|
53
|
+
[import_chunk_DJKWB5L6.CLIENT_PLUGIN]: {
|
|
54
54
|
"open shell label": "Open HALO",
|
|
55
55
|
"manage credentials dialog title": "Manage Account Recovery",
|
|
56
56
|
"recovery setup dialog title": "Account Recovery",
|
|
@@ -75,12 +75,12 @@ var ClientPlugin = ({ invitationUrl = window.location.origin, invitationParam =
|
|
|
75
75
|
baseUrl.searchParams.set(invitationParam, invitationCode);
|
|
76
76
|
return baseUrl.toString();
|
|
77
77
|
};
|
|
78
|
-
return (0, import_app_framework.definePlugin)(
|
|
78
|
+
return (0, import_app_framework.definePlugin)(import_chunk_DJKWB5L6.meta, [
|
|
79
79
|
(0, import_app_framework.defineModule)({
|
|
80
|
-
id: `${
|
|
80
|
+
id: `${import_chunk_DJKWB5L6.meta.id}/module/client`,
|
|
81
81
|
activatesOn: (0, import_app_framework.oneOf)(import_app_framework.Events.Startup, import_app_framework.Events.SetupAppGraph),
|
|
82
82
|
activatesAfter: [
|
|
83
|
-
|
|
83
|
+
import_chunk_W64EOF2B.ClientEvents.ClientReady
|
|
84
84
|
],
|
|
85
85
|
activate: (context) => Client({
|
|
86
86
|
...options,
|
|
@@ -88,40 +88,40 @@ var ClientPlugin = ({ invitationUrl = window.location.origin, invitationParam =
|
|
|
88
88
|
})
|
|
89
89
|
}),
|
|
90
90
|
(0, import_app_framework.defineModule)({
|
|
91
|
-
id: `${
|
|
92
|
-
activatesOn:
|
|
91
|
+
id: `${import_chunk_DJKWB5L6.meta.id}/module/schema`,
|
|
92
|
+
activatesOn: import_chunk_W64EOF2B.ClientEvents.ClientReady,
|
|
93
93
|
activatesBefore: [
|
|
94
|
-
|
|
94
|
+
import_chunk_W64EOF2B.ClientEvents.SetupSchema
|
|
95
95
|
],
|
|
96
96
|
activate: Schema
|
|
97
97
|
}),
|
|
98
98
|
(0, import_app_framework.defineModule)({
|
|
99
|
-
id: `${
|
|
100
|
-
activatesOn:
|
|
99
|
+
id: `${import_chunk_DJKWB5L6.meta.id}/module/migration`,
|
|
100
|
+
activatesOn: import_chunk_W64EOF2B.ClientEvents.ClientReady,
|
|
101
101
|
activatesBefore: [
|
|
102
|
-
|
|
102
|
+
import_chunk_W64EOF2B.ClientEvents.SetupMigration
|
|
103
103
|
],
|
|
104
104
|
activate: Migrations
|
|
105
105
|
}),
|
|
106
106
|
(0, import_app_framework.defineModule)({
|
|
107
|
-
id: `${
|
|
107
|
+
id: `${import_chunk_DJKWB5L6.meta.id}/module/react-context`,
|
|
108
108
|
activatesOn: import_app_framework.Events.Startup,
|
|
109
109
|
activate: ReactContext
|
|
110
110
|
}),
|
|
111
111
|
(0, import_app_framework.defineModule)({
|
|
112
|
-
id: `${
|
|
112
|
+
id: `${import_chunk_DJKWB5L6.meta.id}/module/react-surface`,
|
|
113
113
|
activatesOn: import_app_framework.Events.SetupReactSurface,
|
|
114
114
|
activate: () => ReactSurface({
|
|
115
115
|
createInvitationUrl
|
|
116
116
|
})
|
|
117
117
|
}),
|
|
118
118
|
(0, import_app_framework.defineModule)({
|
|
119
|
-
id: `${
|
|
119
|
+
id: `${import_chunk_DJKWB5L6.meta.id}/module/app-graph-builder`,
|
|
120
120
|
activatesOn: import_app_framework.Events.SetupAppGraph,
|
|
121
121
|
activate: AppGraphBuilder
|
|
122
122
|
}),
|
|
123
123
|
(0, import_app_framework.defineModule)({
|
|
124
|
-
id: `${
|
|
124
|
+
id: `${import_chunk_DJKWB5L6.meta.id}/module/intent-resolver`,
|
|
125
125
|
activatesOn: import_app_framework.Events.SetupIntentResolver,
|
|
126
126
|
activate: (context) => IntentResolver({
|
|
127
127
|
context,
|
|
@@ -129,7 +129,7 @@ var ClientPlugin = ({ invitationUrl = window.location.origin, invitationParam =
|
|
|
129
129
|
})
|
|
130
130
|
}),
|
|
131
131
|
(0, import_app_framework.defineModule)({
|
|
132
|
-
id: `${
|
|
132
|
+
id: `${import_chunk_DJKWB5L6.meta.id}/module/translations`,
|
|
133
133
|
activatesOn: import_app_framework.Events.SetupTranslations,
|
|
134
134
|
activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
|
|
135
135
|
})
|
|
@@ -16,16 +16,16 @@ 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 intent_resolver_CDCTQRTP_exports = {};
|
|
20
|
+
__export(intent_resolver_CDCTQRTP_exports, {
|
|
21
21
|
default: () => intent_resolver_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(intent_resolver_CDCTQRTP_exports);
|
|
24
|
+
var import_chunk_W64EOF2B = require("./chunk-W64EOF2B.cjs");
|
|
25
|
+
var import_chunk_GNGRRSK6 = require("./chunk-GNGRRSK6.cjs");
|
|
26
|
+
var import_chunk_BGAW4D7O = require("./chunk-BGAW4D7O.cjs");
|
|
27
|
+
var import_chunk_2MVZ5CAW = require("./chunk-2MVZ5CAW.cjs");
|
|
28
|
+
var import_chunk_DJKWB5L6 = require("./chunk-DJKWB5L6.cjs");
|
|
29
29
|
var import_app_framework = require("@dxos/app-framework");
|
|
30
30
|
var import_invariant = require("@dxos/invariant");
|
|
31
31
|
var import_types = require("@dxos/plugin-observability/types");
|
|
@@ -33,12 +33,12 @@ var import_react_client = require("@dxos/react-client");
|
|
|
33
33
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-client/src/capabilities/intent-resolver.ts";
|
|
34
34
|
var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0, import_app_framework.contributes)(import_app_framework.Capabilities.IntentResolver, [
|
|
35
35
|
(0, import_app_framework.createResolver)({
|
|
36
|
-
intent:
|
|
36
|
+
intent: import_chunk_2MVZ5CAW.ClientAction.CreateIdentity,
|
|
37
37
|
resolve: async () => {
|
|
38
38
|
const manager = context.requestCapability(import_app_framework.Capabilities.PluginManager);
|
|
39
|
-
const client = context.requestCapability(
|
|
39
|
+
const client = context.requestCapability(import_chunk_GNGRRSK6.ClientCapabilities.Client);
|
|
40
40
|
const data = await client.halo.createIdentity();
|
|
41
|
-
await manager.activate(
|
|
41
|
+
await manager.activate(import_chunk_W64EOF2B.ClientEvents.IdentityCreated);
|
|
42
42
|
return {
|
|
43
43
|
data,
|
|
44
44
|
intents: [
|
|
@@ -50,13 +50,13 @@ var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0
|
|
|
50
50
|
}
|
|
51
51
|
}),
|
|
52
52
|
(0, import_app_framework.createResolver)({
|
|
53
|
-
intent:
|
|
53
|
+
intent: import_chunk_2MVZ5CAW.ClientAction.JoinIdentity,
|
|
54
54
|
resolve: async (data) => {
|
|
55
55
|
return {
|
|
56
56
|
intents: [
|
|
57
57
|
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdateDialog, {
|
|
58
58
|
part: "dialog",
|
|
59
|
-
subject:
|
|
59
|
+
subject: import_chunk_BGAW4D7O.JOIN_DIALOG,
|
|
60
60
|
options: {
|
|
61
61
|
blockAlign: "start",
|
|
62
62
|
props: {
|
|
@@ -70,13 +70,13 @@ var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0
|
|
|
70
70
|
}
|
|
71
71
|
}),
|
|
72
72
|
(0, import_app_framework.createResolver)({
|
|
73
|
-
intent:
|
|
73
|
+
intent: import_chunk_2MVZ5CAW.ClientAction.ShareIdentity,
|
|
74
74
|
resolve: async () => {
|
|
75
75
|
return {
|
|
76
76
|
intents: [
|
|
77
77
|
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdateDialog, {
|
|
78
78
|
part: "dialog",
|
|
79
|
-
subject:
|
|
79
|
+
subject: import_chunk_BGAW4D7O.IDENTITY_DIALOG,
|
|
80
80
|
options: {
|
|
81
81
|
blockAlign: "start"
|
|
82
82
|
}
|
|
@@ -89,13 +89,13 @@ var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0
|
|
|
89
89
|
}
|
|
90
90
|
}),
|
|
91
91
|
(0, import_app_framework.createResolver)({
|
|
92
|
-
intent:
|
|
92
|
+
intent: import_chunk_2MVZ5CAW.ClientAction.RecoverIdentity,
|
|
93
93
|
resolve: async () => {
|
|
94
94
|
return {
|
|
95
95
|
intents: [
|
|
96
96
|
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdateDialog, {
|
|
97
97
|
part: "dialog",
|
|
98
|
-
subject:
|
|
98
|
+
subject: import_chunk_BGAW4D7O.JOIN_DIALOG,
|
|
99
99
|
options: {
|
|
100
100
|
blockAlign: "start",
|
|
101
101
|
props: {
|
|
@@ -108,7 +108,7 @@ var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0
|
|
|
108
108
|
}
|
|
109
109
|
}),
|
|
110
110
|
(0, import_app_framework.createResolver)({
|
|
111
|
-
intent:
|
|
111
|
+
intent: import_chunk_2MVZ5CAW.ClientAction.ResetStorage,
|
|
112
112
|
resolve: async (data) => {
|
|
113
113
|
await onReset?.({
|
|
114
114
|
target: data.target
|
|
@@ -116,9 +116,9 @@ var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0
|
|
|
116
116
|
}
|
|
117
117
|
}),
|
|
118
118
|
(0, import_app_framework.createResolver)({
|
|
119
|
-
intent:
|
|
119
|
+
intent: import_chunk_2MVZ5CAW.ClientAction.CreateAgent,
|
|
120
120
|
resolve: async () => {
|
|
121
|
-
const client = context.requestCapability(
|
|
121
|
+
const client = context.requestCapability(import_chunk_GNGRRSK6.ClientCapabilities.Client);
|
|
122
122
|
(0, import_invariant.invariant)(client.services.services.EdgeAgentService, "Missing EdgeAgentService", {
|
|
123
123
|
F: __dxlog_file,
|
|
124
124
|
L: 106,
|
|
@@ -134,9 +134,9 @@ var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0
|
|
|
134
134
|
}
|
|
135
135
|
}),
|
|
136
136
|
(0, import_app_framework.createResolver)({
|
|
137
|
-
intent:
|
|
137
|
+
intent: import_chunk_2MVZ5CAW.ClientAction.CreateRecoveryCode,
|
|
138
138
|
resolve: async () => {
|
|
139
|
-
const client = context.requestCapability(
|
|
139
|
+
const client = context.requestCapability(import_chunk_GNGRRSK6.ClientCapabilities.Client);
|
|
140
140
|
(0, import_invariant.invariant)(client.services.services.IdentityService, "IdentityService not available", {
|
|
141
141
|
F: __dxlog_file,
|
|
142
142
|
L: 114,
|
|
@@ -151,7 +151,7 @@ var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0
|
|
|
151
151
|
intents: [
|
|
152
152
|
(0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdateDialog, {
|
|
153
153
|
part: "dialog",
|
|
154
|
-
subject:
|
|
154
|
+
subject: import_chunk_BGAW4D7O.RECOVER_CODE_DIALOG,
|
|
155
155
|
options: {
|
|
156
156
|
blockAlign: "start",
|
|
157
157
|
type: "alert",
|
|
@@ -165,9 +165,9 @@ var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0
|
|
|
165
165
|
}
|
|
166
166
|
}),
|
|
167
167
|
(0, import_app_framework.createResolver)({
|
|
168
|
-
intent:
|
|
168
|
+
intent: import_chunk_2MVZ5CAW.ClientAction.CreatePasskey,
|
|
169
169
|
resolve: async () => {
|
|
170
|
-
const client = context.requestCapability(
|
|
170
|
+
const client = context.requestCapability(import_chunk_GNGRRSK6.ClientCapabilities.Client);
|
|
171
171
|
const identity = client.halo.identity.get();
|
|
172
172
|
(0, import_invariant.invariant)(identity, "Identity not available", {
|
|
173
173
|
F: __dxlog_file,
|
|
@@ -238,9 +238,9 @@ var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0
|
|
|
238
238
|
}
|
|
239
239
|
}),
|
|
240
240
|
(0, import_app_framework.createResolver)({
|
|
241
|
-
intent:
|
|
241
|
+
intent: import_chunk_2MVZ5CAW.ClientAction.RedeemPasskey,
|
|
242
242
|
resolve: async () => {
|
|
243
|
-
const client = context.requestCapability(
|
|
243
|
+
const client = context.requestCapability(import_chunk_GNGRRSK6.ClientCapabilities.Client);
|
|
244
244
|
(0, import_invariant.invariant)(client.services.services.IdentityService, "IdentityService not available", {
|
|
245
245
|
F: __dxlog_file,
|
|
246
246
|
L: 182,
|
|
@@ -272,4 +272,4 @@ var intent_resolver_default = ({ context, appName = "Composer", onReset }) => (0
|
|
|
272
272
|
}
|
|
273
273
|
})
|
|
274
274
|
]);
|
|
275
|
-
//# sourceMappingURL=intent-resolver-
|
|
275
|
+
//# sourceMappingURL=intent-resolver-CDCTQRTP.cjs.map
|