@dxos/plugin-client 0.6.14-staging.e15392e → 0.7.0
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/{chunk-3ESI7PGR.mjs → chunk-VCPHSTE7.mjs} +5 -3
- package/dist/lib/browser/chunk-VCPHSTE7.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +178 -38
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +3 -1
- package/dist/lib/node/{chunk-ZWE6N7MY.cjs → chunk-JYQZCE2U.cjs} +8 -5
- package/dist/lib/node/chunk-JYQZCE2U.cjs.map +7 -0
- package/dist/lib/node/index.cjs +180 -45
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.cjs +7 -5
- package/dist/lib/node/meta.cjs.map +2 -2
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/{chunk-SZVMJZ6O.mjs → chunk-4FDLD5H4.mjs} +5 -3
- package/dist/lib/node-esm/chunk-4FDLD5H4.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +178 -38
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/meta.mjs +3 -1
- package/dist/types/src/ClientPlugin.d.ts +17 -3
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/components/IdentityDialog.d.ts +4 -0
- package/dist/types/src/components/IdentityDialog.d.ts.map +1 -0
- package/dist/types/src/components/JoinDialog.d.ts +4 -0
- package/dist/types/src/components/JoinDialog.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +3 -0
- package/dist/types/src/components/index.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +3 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/package.json +13 -11
- package/src/ClientPlugin.tsx +88 -30
- package/src/components/IdentityDialog.tsx +59 -0
- package/src/components/JoinDialog.tsx +57 -0
- package/src/components/index.ts +6 -0
- package/src/meta.ts +4 -1
- package/dist/lib/browser/chunk-3ESI7PGR.mjs.map +0 -7
- package/dist/lib/node/chunk-ZWE6N7MY.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-SZVMJZ6O.mjs.map +0 -7
|
@@ -2,18 +2,127 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
2
2
|
import {
|
|
3
3
|
CLIENT_PLUGIN,
|
|
4
4
|
ClientAction,
|
|
5
|
+
OBSERVABILITY_ACTION,
|
|
5
6
|
meta_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4FDLD5H4.mjs";
|
|
7
8
|
|
|
8
9
|
// packages/plugins/plugin-client/src/ClientPlugin.tsx
|
|
9
|
-
import
|
|
10
|
-
import { filterPlugins, parseIntentPlugin, resolvePlugin } from "@dxos/app-framework";
|
|
10
|
+
import React3 from "react";
|
|
11
|
+
import { filterPlugins, LayoutAction as LayoutAction3, parseIntentPlugin, resolvePlugin } from "@dxos/app-framework";
|
|
11
12
|
import { Config, Defaults, Envs, Local, Storage } from "@dxos/config";
|
|
12
13
|
import { registerSignalsRuntime } from "@dxos/echo-signals/react";
|
|
13
14
|
import { log } from "@dxos/log";
|
|
14
15
|
import { createExtension } from "@dxos/plugin-graph";
|
|
15
16
|
import { Client, ClientProvider } from "@dxos/react-client";
|
|
16
17
|
|
|
18
|
+
// packages/plugins/plugin-client/src/components/IdentityDialog.tsx
|
|
19
|
+
import React, { useCallback } from "react";
|
|
20
|
+
import { LayoutAction, useIntentDispatcher } from "@dxos/app-framework";
|
|
21
|
+
import { useClient } from "@dxos/react-client";
|
|
22
|
+
import { Dialog } from "@dxos/react-ui";
|
|
23
|
+
import { ClipboardProvider, IdentityPanel } from "@dxos/shell/react";
|
|
24
|
+
var IdentityDialog = (props) => {
|
|
25
|
+
const dispatch = useIntentDispatcher();
|
|
26
|
+
const client = useClient();
|
|
27
|
+
const handleDone = useCallback(() => dispatch({
|
|
28
|
+
action: LayoutAction.SET_LAYOUT,
|
|
29
|
+
data: {
|
|
30
|
+
element: "dialog",
|
|
31
|
+
state: false
|
|
32
|
+
}
|
|
33
|
+
}), [
|
|
34
|
+
dispatch
|
|
35
|
+
]);
|
|
36
|
+
const handleResetStorage = useCallback(async () => {
|
|
37
|
+
await client.reset();
|
|
38
|
+
await dispatch({
|
|
39
|
+
action: ClientAction.RESET_STORAGE
|
|
40
|
+
});
|
|
41
|
+
}, [
|
|
42
|
+
dispatch
|
|
43
|
+
]);
|
|
44
|
+
const handleRecover = useCallback(async () => {
|
|
45
|
+
await client.reset();
|
|
46
|
+
await dispatch({
|
|
47
|
+
action: ClientAction.RESET_STORAGE,
|
|
48
|
+
data: {
|
|
49
|
+
target: "recoverIdentity"
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}, [
|
|
53
|
+
dispatch
|
|
54
|
+
]);
|
|
55
|
+
const handleJoinNewIdentity = useCallback(async () => {
|
|
56
|
+
await client.reset();
|
|
57
|
+
await dispatch({
|
|
58
|
+
action: ClientAction.RESET_STORAGE,
|
|
59
|
+
data: {
|
|
60
|
+
target: "deviceInvitation"
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}, [
|
|
64
|
+
dispatch
|
|
65
|
+
]);
|
|
66
|
+
return /* @__PURE__ */ React.createElement(Dialog.Content, null, /* @__PURE__ */ React.createElement(ClipboardProvider, null, /* @__PURE__ */ React.createElement(IdentityPanel, {
|
|
67
|
+
...props,
|
|
68
|
+
doneActionParent: /* @__PURE__ */ React.createElement(Dialog.Close, {
|
|
69
|
+
asChild: true
|
|
70
|
+
}),
|
|
71
|
+
onDone: handleDone,
|
|
72
|
+
onResetStorage: handleResetStorage,
|
|
73
|
+
onRecover: handleRecover,
|
|
74
|
+
onJoinNewIdentity: handleJoinNewIdentity
|
|
75
|
+
})));
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// packages/plugins/plugin-client/src/components/JoinDialog.tsx
|
|
79
|
+
import React2, { useCallback as useCallback2 } from "react";
|
|
80
|
+
import { LayoutAction as LayoutAction2, useIntentDispatcher as useIntentDispatcher2 } from "@dxos/app-framework";
|
|
81
|
+
import { Dialog as Dialog2 } from "@dxos/react-ui";
|
|
82
|
+
import { JoinPanel } from "@dxos/shell/react";
|
|
83
|
+
var JoinDialog = (props) => {
|
|
84
|
+
const dispatch = useIntentDispatcher2();
|
|
85
|
+
const handleCancelResetStorage = useCallback2(() => dispatch({
|
|
86
|
+
plugin: CLIENT_PLUGIN,
|
|
87
|
+
action: ClientAction.SHARE_IDENTITY
|
|
88
|
+
}), [
|
|
89
|
+
dispatch
|
|
90
|
+
]);
|
|
91
|
+
const handleDone = useCallback2(async (result) => {
|
|
92
|
+
if (result?.identityKey) {
|
|
93
|
+
await Promise.all([
|
|
94
|
+
dispatch({
|
|
95
|
+
action: LayoutAction2.SET_LAYOUT,
|
|
96
|
+
data: {
|
|
97
|
+
element: "dialog",
|
|
98
|
+
state: false
|
|
99
|
+
}
|
|
100
|
+
}),
|
|
101
|
+
dispatch({
|
|
102
|
+
action: OBSERVABILITY_ACTION,
|
|
103
|
+
data: {
|
|
104
|
+
name: props.initialDisposition === "recover-identity" ? "identity.recover" : "identity.join"
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
]);
|
|
108
|
+
}
|
|
109
|
+
}, [
|
|
110
|
+
dispatch
|
|
111
|
+
]);
|
|
112
|
+
return /* @__PURE__ */ React2.createElement(Dialog2.Content, null, /* @__PURE__ */ React2.createElement(JoinPanel, {
|
|
113
|
+
mode: "halo-only",
|
|
114
|
+
...props,
|
|
115
|
+
exitActionParent: /* @__PURE__ */ React2.createElement(Dialog2.Close, {
|
|
116
|
+
asChild: true
|
|
117
|
+
}),
|
|
118
|
+
doneActionParent: /* @__PURE__ */ React2.createElement(Dialog2.Close, {
|
|
119
|
+
asChild: true
|
|
120
|
+
}),
|
|
121
|
+
onCancelResetStorage: handleCancelResetStorage,
|
|
122
|
+
onDone: handleDone
|
|
123
|
+
}));
|
|
124
|
+
};
|
|
125
|
+
|
|
17
126
|
// packages/plugins/plugin-client/src/translations.ts
|
|
18
127
|
var translations_default = [
|
|
19
128
|
{
|
|
@@ -29,10 +138,15 @@ var translations_default = [
|
|
|
29
138
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-client/src/ClientPlugin.tsx";
|
|
30
139
|
var parseClientPlugin = (plugin) => (plugin?.provides).client instanceof Client ? plugin : void 0;
|
|
31
140
|
var parseSchemaPlugin = (plugin) => Array.isArray(plugin?.provides.echo?.schema) ? plugin : void 0;
|
|
32
|
-
var ClientPlugin = ({ appKey, onClientInitialized, onReady, ...options }) => {
|
|
141
|
+
var ClientPlugin = ({ appKey, invitationUrl = window.location.origin, invitationParam = "deviceInvitationCode", onClientInitialized, onReady, onReset, ...options }) => {
|
|
33
142
|
registerSignalsRuntime();
|
|
34
143
|
let client;
|
|
35
144
|
let error = null;
|
|
145
|
+
const createDeviceInvitationUrl = (invitationCode) => {
|
|
146
|
+
const baseUrl = new URL(invitationUrl);
|
|
147
|
+
baseUrl.searchParams.set(invitationParam, invitationCode);
|
|
148
|
+
return baseUrl.toString();
|
|
149
|
+
};
|
|
36
150
|
return {
|
|
37
151
|
meta: meta_default,
|
|
38
152
|
initialize: async () => {
|
|
@@ -56,7 +170,7 @@ var ClientPlugin = ({ appKey, onClientInitialized, onReady, ...options }) => {
|
|
|
56
170
|
}
|
|
57
171
|
return {
|
|
58
172
|
client,
|
|
59
|
-
context: ({ children }) => /* @__PURE__ */
|
|
173
|
+
context: ({ children }) => /* @__PURE__ */ React3.createElement(ClientProvider, {
|
|
60
174
|
client
|
|
61
175
|
}, children)
|
|
62
176
|
};
|
|
@@ -71,7 +185,7 @@ var ClientPlugin = ({ appKey, onClientInitialized, onReady, ...options }) => {
|
|
|
71
185
|
id: plugin.meta.id
|
|
72
186
|
}, {
|
|
73
187
|
F: __dxlog_file,
|
|
74
|
-
L:
|
|
188
|
+
L: 141,
|
|
75
189
|
S: void 0,
|
|
76
190
|
C: (f, a) => f(...a)
|
|
77
191
|
});
|
|
@@ -83,6 +197,23 @@ var ClientPlugin = ({ appKey, onClientInitialized, onReady, ...options }) => {
|
|
|
83
197
|
},
|
|
84
198
|
provides: {
|
|
85
199
|
translations: translations_default,
|
|
200
|
+
surface: {
|
|
201
|
+
component: ({ data, role, ...rest }) => {
|
|
202
|
+
switch (role) {
|
|
203
|
+
case "dialog":
|
|
204
|
+
if (data.component === "dxos.org/plugin/client/IdentityDialog") {
|
|
205
|
+
return /* @__PURE__ */ React3.createElement(IdentityDialog, {
|
|
206
|
+
...data.subject,
|
|
207
|
+
createInvitationUrl: createDeviceInvitationUrl
|
|
208
|
+
});
|
|
209
|
+
} else if (data.component === "dxos.org/plugin/client/JoinDialog") {
|
|
210
|
+
return /* @__PURE__ */ React3.createElement(JoinDialog, data.subject);
|
|
211
|
+
}
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
return null;
|
|
215
|
+
}
|
|
216
|
+
},
|
|
86
217
|
graph: {
|
|
87
218
|
builder: (plugins) => {
|
|
88
219
|
const intentPlugin = resolvePlugin(plugins, parseIntentPlugin);
|
|
@@ -97,7 +228,7 @@ var ClientPlugin = ({ appKey, onClientInitialized, onReady, ...options }) => {
|
|
|
97
228
|
await intentPlugin?.provides.intent.dispatch([
|
|
98
229
|
{
|
|
99
230
|
plugin: CLIENT_PLUGIN,
|
|
100
|
-
action: ClientAction.
|
|
231
|
+
action: ClientAction.SHARE_IDENTITY
|
|
101
232
|
}
|
|
102
233
|
]);
|
|
103
234
|
},
|
|
@@ -125,11 +256,6 @@ var ClientPlugin = ({ appKey, onClientInitialized, onReady, ...options }) => {
|
|
|
125
256
|
intent: {
|
|
126
257
|
resolver: async (intent) => {
|
|
127
258
|
switch (intent.action) {
|
|
128
|
-
case ClientAction.OPEN_SHELL:
|
|
129
|
-
await client.shell.open(intent.data?.layout);
|
|
130
|
-
return {
|
|
131
|
-
data: true
|
|
132
|
-
};
|
|
133
259
|
case ClientAction.CREATE_IDENTITY: {
|
|
134
260
|
const data = await client.halo.createIdentity();
|
|
135
261
|
return {
|
|
@@ -137,10 +263,9 @@ var ClientPlugin = ({ appKey, onClientInitialized, onReady, ...options }) => {
|
|
|
137
263
|
intents: [
|
|
138
264
|
[
|
|
139
265
|
{
|
|
140
|
-
|
|
141
|
-
action: "dxos.org/plugin/observability/send-event",
|
|
266
|
+
action: OBSERVABILITY_ACTION,
|
|
142
267
|
data: {
|
|
143
|
-
name: "identity.
|
|
268
|
+
name: "identity.create"
|
|
144
269
|
}
|
|
145
270
|
}
|
|
146
271
|
]
|
|
@@ -148,18 +273,20 @@ var ClientPlugin = ({ appKey, onClientInitialized, onReady, ...options }) => {
|
|
|
148
273
|
};
|
|
149
274
|
}
|
|
150
275
|
case ClientAction.JOIN_IDENTITY: {
|
|
151
|
-
const data = await client.shell.joinIdentity({
|
|
152
|
-
invitationCode: intent.data?.invitationCode
|
|
153
|
-
});
|
|
154
276
|
return {
|
|
155
|
-
data,
|
|
277
|
+
data: true,
|
|
156
278
|
intents: [
|
|
157
279
|
[
|
|
158
280
|
{
|
|
159
|
-
|
|
160
|
-
action: "dxos.org/plugin/observability/send-event",
|
|
281
|
+
action: LayoutAction3.SET_LAYOUT,
|
|
161
282
|
data: {
|
|
162
|
-
|
|
283
|
+
element: "dialog",
|
|
284
|
+
component: "dxos.org/plugin/client/JoinDialog",
|
|
285
|
+
dialogBlockAlign: "start",
|
|
286
|
+
subject: {
|
|
287
|
+
initialInvitationCode: intent.data?.invitationCode,
|
|
288
|
+
initialDisposition: "accept-halo-invitation"
|
|
289
|
+
}
|
|
163
290
|
}
|
|
164
291
|
}
|
|
165
292
|
]
|
|
@@ -167,22 +294,24 @@ var ClientPlugin = ({ appKey, onClientInitialized, onReady, ...options }) => {
|
|
|
167
294
|
};
|
|
168
295
|
}
|
|
169
296
|
case ClientAction.SHARE_IDENTITY: {
|
|
170
|
-
const data = await client.shell.shareIdentity();
|
|
171
297
|
return {
|
|
172
|
-
data,
|
|
298
|
+
data: true,
|
|
173
299
|
intents: [
|
|
174
300
|
[
|
|
175
301
|
{
|
|
176
|
-
|
|
177
|
-
action: "dxos.org/plugin/observability/send-event",
|
|
302
|
+
action: LayoutAction3.SET_LAYOUT,
|
|
178
303
|
data: {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
304
|
+
element: "dialog",
|
|
305
|
+
component: "dxos.org/plugin/client/IdentityDialog",
|
|
306
|
+
dialogBlockAlign: "start"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
[
|
|
311
|
+
{
|
|
312
|
+
action: OBSERVABILITY_ACTION,
|
|
313
|
+
data: {
|
|
314
|
+
name: "identity.share"
|
|
186
315
|
}
|
|
187
316
|
}
|
|
188
317
|
]
|
|
@@ -190,22 +319,33 @@ var ClientPlugin = ({ appKey, onClientInitialized, onReady, ...options }) => {
|
|
|
190
319
|
};
|
|
191
320
|
}
|
|
192
321
|
case ClientAction.RECOVER_IDENTITY: {
|
|
193
|
-
const data = await client.shell.recoverIdentity();
|
|
194
322
|
return {
|
|
195
|
-
data,
|
|
323
|
+
data: true,
|
|
196
324
|
intents: [
|
|
197
325
|
[
|
|
198
326
|
{
|
|
199
|
-
|
|
200
|
-
action: "dxos.org/plugin/observability/send-event",
|
|
327
|
+
action: LayoutAction3.SET_LAYOUT,
|
|
201
328
|
data: {
|
|
202
|
-
|
|
329
|
+
element: "dialog",
|
|
330
|
+
component: "dxos.org/plugin/client/JoinDialog",
|
|
331
|
+
dialogBlockAlign: "start",
|
|
332
|
+
subject: {
|
|
333
|
+
initialDisposition: "recover-identity"
|
|
334
|
+
}
|
|
203
335
|
}
|
|
204
336
|
}
|
|
205
337
|
]
|
|
206
338
|
]
|
|
207
339
|
};
|
|
208
340
|
}
|
|
341
|
+
case ClientAction.RESET_STORAGE: {
|
|
342
|
+
await onReset?.({
|
|
343
|
+
target: intent.data?.target
|
|
344
|
+
});
|
|
345
|
+
return {
|
|
346
|
+
data: true
|
|
347
|
+
};
|
|
348
|
+
}
|
|
209
349
|
}
|
|
210
350
|
}
|
|
211
351
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/ClientPlugin.tsx", "../../../src/translations.ts", "../../../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Schema as S } from '@effect/schema';\nimport React from 'react';\n\nimport {\n filterPlugins,\n parseIntentPlugin,\n resolvePlugin,\n type GraphBuilderProvides,\n type IntentResolverProvides,\n type Plugin,\n type PluginDefinition,\n type TranslationsProvides,\n} from '@dxos/app-framework';\nimport { Config, Defaults, Envs, Local, Storage } from '@dxos/config';\nimport { registerSignalsRuntime } from '@dxos/echo-signals/react';\nimport { log } from '@dxos/log';\nimport { createExtension, type Node } from '@dxos/plugin-graph';\nimport { Client, type ClientOptions, ClientProvider } from '@dxos/react-client';\n\nimport meta, { CLIENT_PLUGIN, ClientAction } from './meta';\nimport translations from './translations';\n\nexport type ClientPluginOptions = ClientOptions & {\n /**\n * Used to track app-specific state in spaces.\n */\n appKey: string;\n\n /**\n * Run after the client has been initialized.\n */\n onClientInitialized?: (client: Client) => Promise<void>;\n\n /**\n * Run after the identity has been successfully initialized.\n * Run with client during plugin ready phase.\n */\n onReady?: (client: Client, plugins: Plugin[]) => Promise<void>;\n};\n\nexport type ClientPluginProvides = IntentResolverProvides &\n GraphBuilderProvides &\n TranslationsProvides & {\n client: Client;\n };\n\nexport const parseClientPlugin = (plugin?: Plugin) =>\n (plugin?.provides as any).client instanceof Client ? (plugin as Plugin<ClientPluginProvides>) : undefined;\n\nexport type SchemaProvides = {\n echo: {\n schema: S.Schema<any>[];\n };\n};\n\nexport const parseSchemaPlugin = (plugin?: Plugin) =>\n Array.isArray((plugin?.provides as any).echo?.schema) ? (plugin as Plugin<SchemaProvides>) : undefined;\n\nexport const ClientPlugin = ({\n appKey,\n onClientInitialized,\n onReady,\n ...options\n}: ClientPluginOptions): PluginDefinition<\n Omit<ClientPluginProvides, 'client'>,\n Pick<ClientPluginProvides, 'client'>\n> => {\n registerSignalsRuntime();\n\n let client: Client;\n let error: unknown = null;\n\n return {\n meta,\n initialize: async () => {\n const config = new Config(await Storage(), Envs(), Local(), Defaults());\n client = new Client({ config, ...options });\n\n try {\n await client.initialize();\n await onClientInitialized?.(client);\n\n // TODO(wittjosiah): Remove. This is a hack to get the app to boot with the new identity after a reset.\n client.reloaded.on(() => {\n client.halo.identity.subscribe(async (identity) => {\n if (identity) {\n window.location.href = window.location.origin;\n }\n });\n });\n } catch (err) {\n error = err;\n }\n\n return {\n client,\n context: ({ children }) => <ClientProvider client={client}>{children}</ClientProvider>,\n };\n },\n ready: async (plugins) => {\n if (error) {\n throw error;\n }\n\n await onReady?.(client, plugins);\n\n filterPlugins(plugins, parseSchemaPlugin).forEach((plugin) => {\n log('ready', { id: plugin.meta.id });\n client.addTypes(plugin.provides.echo.schema);\n });\n },\n unload: async () => {\n await client.destroy();\n },\n provides: {\n translations,\n graph: {\n builder: (plugins) => {\n const intentPlugin = resolvePlugin(plugins, parseIntentPlugin);\n const id = `${CLIENT_PLUGIN}/open-shell`;\n\n return createExtension({\n id: CLIENT_PLUGIN,\n filter: (node): node is Node<null> => node.id === 'root',\n actions: () => [\n {\n id,\n data: async () => {\n await intentPlugin?.provides.intent.dispatch([\n { plugin: CLIENT_PLUGIN, action: ClientAction.OPEN_SHELL },\n ]);\n },\n properties: {\n label: ['open shell label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--address-book--regular',\n keyBinding: {\n macos: 'meta+shift+.',\n // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.\n windows: 'alt+shift+.',\n linux: 'alt+shift+>',\n },\n testId: 'clientPlugin.openShell',\n },\n },\n ],\n });\n },\n },\n intent: {\n resolver: async (intent) => {\n switch (intent.action) {\n case ClientAction.OPEN_SHELL:\n await client.shell.open(intent.data?.layout);\n return { data: true };\n\n case ClientAction.CREATE_IDENTITY: {\n const data = await client.halo.createIdentity();\n return {\n data,\n intents: [\n [\n {\n // NOTE: This action is hardcoded to avoid circular dependency with observability plugin.\n action: 'dxos.org/plugin/observability/send-event',\n data: {\n name: 'identity.created',\n },\n },\n ],\n ],\n };\n }\n\n case ClientAction.JOIN_IDENTITY: {\n const data = await client.shell.joinIdentity({ invitationCode: intent.data?.invitationCode });\n return {\n data,\n intents: [\n [\n {\n // NOTE: This action is hardcoded to avoid circular dependency with observability plugin.\n action: 'dxos.org/plugin/observability/send-event',\n data: {\n name: 'identity.joined',\n },\n },\n ],\n ],\n };\n }\n\n case ClientAction.SHARE_IDENTITY: {\n const data = await client.shell.shareIdentity();\n return {\n data,\n intents: [\n [\n {\n // NOTE: This action is hardcoded to avoid circular dependency with observability plugin.\n action: 'dxos.org/plugin/observability/send-event',\n data: {\n name: 'identity.shared',\n properties: {\n deviceKey: data.device?.deviceKey.truncate(),\n deviceKind: data.device?.kind,\n error: data.error?.message,\n canceled: data.cancelled,\n },\n },\n },\n ],\n ],\n };\n }\n\n case ClientAction.RECOVER_IDENTITY: {\n const data = await client.shell.recoverIdentity();\n return {\n data,\n intents: [\n [\n {\n // NOTE: This action is hardcoded to avoid circular dependency with observability plugin.\n action: 'dxos.org/plugin/observability/send-event',\n data: {\n name: 'identity.recovered',\n },\n },\n ],\n ],\n };\n }\n }\n },\n },\n },\n };\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CLIENT_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [CLIENT_PLUGIN]: {\n 'open shell label': 'Open HALO',\n },\n },\n },\n];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { ClientPlugin } from './ClientPlugin';\n\nexport default ClientPlugin;\n\nexport * from './ClientPlugin';\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["React", "filterPlugins", "parseIntentPlugin", "resolvePlugin", "Config", "Defaults", "Envs", "Local", "Storage", "registerSignalsRuntime", "log", "createExtension", "Client", "ClientProvider", "CLIENT_PLUGIN", "parseClientPlugin", "plugin", "provides", "client", "Client", "undefined", "parseSchemaPlugin", "Array", "isArray", "echo", "schema", "ClientPlugin", "appKey", "onClientInitialized", "onReady", "options", "registerSignalsRuntime", "error", "meta", "initialize", "config", "Config", "Storage", "Envs", "Local", "Defaults", "reloaded", "on", "halo", "identity", "subscribe", "
|
|
3
|
+
"sources": ["../../../src/ClientPlugin.tsx", "../../../src/components/IdentityDialog.tsx", "../../../src/components/JoinDialog.tsx", "../../../src/translations.ts", "../../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Schema as S } from '@effect/schema';\nimport React from 'react';\n\nimport {\n filterPlugins,\n LayoutAction,\n parseIntentPlugin,\n resolvePlugin,\n type SurfaceProvides,\n type GraphBuilderProvides,\n type IntentResolverProvides,\n type Plugin,\n type PluginDefinition,\n type TranslationsProvides,\n} from '@dxos/app-framework';\nimport { Config, Defaults, Envs, Local, Storage } from '@dxos/config';\nimport { registerSignalsRuntime } from '@dxos/echo-signals/react';\nimport { log } from '@dxos/log';\nimport { createExtension, type Node } from '@dxos/plugin-graph';\nimport { Client, type ClientOptions, ClientProvider } from '@dxos/react-client';\nimport { type IdentityPanelProps, type JoinPanelProps } from '@dxos/shell/react';\n\nimport { IdentityDialog, JoinDialog } from './components';\nimport meta, { CLIENT_PLUGIN, ClientAction, OBSERVABILITY_ACTION } from './meta';\nimport translations from './translations';\n\nexport type ClientPluginOptions = ClientOptions & {\n /**\n * Used to track app-specific state in spaces.\n */\n appKey: string;\n\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?: (client: Client) => Promise<void>;\n\n /**\n * Run after the identity has been successfully initialized.\n * Run with client during plugin ready phase.\n */\n onReady?: (client: Client, plugins: Plugin[]) => Promise<void>;\n\n /**\n * Called when the client is reset.\n */\n onReset?: (params: { target?: string }) => Promise<void>;\n};\n\nexport type ClientPluginProvides = IntentResolverProvides &\n GraphBuilderProvides &\n SurfaceProvides &\n TranslationsProvides & {\n client: Client;\n };\n\nexport const parseClientPlugin = (plugin?: Plugin) =>\n (plugin?.provides as any).client instanceof Client ? (plugin as Plugin<ClientPluginProvides>) : undefined;\n\nexport type SchemaProvides = {\n echo: {\n schema: S.Schema<any>[];\n };\n};\n\nexport const parseSchemaPlugin = (plugin?: Plugin) =>\n Array.isArray((plugin?.provides as any).echo?.schema) ? (plugin as Plugin<SchemaProvides>) : undefined;\n\nexport const ClientPlugin = ({\n appKey,\n invitationUrl = window.location.origin,\n invitationParam = 'deviceInvitationCode',\n onClientInitialized,\n onReady,\n onReset,\n ...options\n}: ClientPluginOptions): PluginDefinition<\n Omit<ClientPluginProvides, 'client'>,\n Pick<ClientPluginProvides, 'client'>\n> => {\n registerSignalsRuntime();\n\n let client: Client;\n let error: unknown = null;\n\n const createDeviceInvitationUrl = (invitationCode: string) => {\n const baseUrl = new URL(invitationUrl);\n baseUrl.searchParams.set(invitationParam, invitationCode);\n return baseUrl.toString();\n };\n\n return {\n meta,\n initialize: async () => {\n const config = new Config(await Storage(), Envs(), Local(), Defaults());\n client = new Client({ config, ...options });\n\n try {\n await client.initialize();\n await onClientInitialized?.(client);\n\n // TODO(wittjosiah): Remove. This is a hack to get the app to boot with the new identity after a reset.\n client.reloaded.on(() => {\n client.halo.identity.subscribe(async (identity) => {\n if (identity) {\n window.location.href = window.location.origin;\n }\n });\n });\n } catch (err) {\n error = err;\n }\n\n return {\n client,\n context: ({ children }) => <ClientProvider client={client}>{children}</ClientProvider>,\n };\n },\n ready: async (plugins) => {\n if (error) {\n throw error;\n }\n\n await onReady?.(client, plugins);\n\n filterPlugins(plugins, parseSchemaPlugin).forEach((plugin) => {\n log('ready', { id: plugin.meta.id });\n client.addTypes(plugin.provides.echo.schema);\n });\n },\n unload: async () => {\n await client.destroy();\n },\n provides: {\n translations,\n surface: {\n component: ({ data, role, ...rest }) => {\n switch (role) {\n case 'dialog':\n if (data.component === 'dxos.org/plugin/client/IdentityDialog') {\n return (\n <IdentityDialog\n {...(data.subject as IdentityPanelProps)}\n createInvitationUrl={createDeviceInvitationUrl}\n />\n );\n } else if (data.component === 'dxos.org/plugin/client/JoinDialog') {\n return <JoinDialog {...(data.subject as JoinPanelProps)} />;\n }\n break;\n }\n\n return null;\n },\n },\n graph: {\n builder: (plugins) => {\n const intentPlugin = resolvePlugin(plugins, parseIntentPlugin);\n const id = `${CLIENT_PLUGIN}/open-shell`;\n\n return createExtension({\n id: CLIENT_PLUGIN,\n filter: (node): node is Node<null> => node.id === 'root',\n actions: () => [\n {\n id,\n data: async () => {\n await intentPlugin?.provides.intent.dispatch([\n { plugin: CLIENT_PLUGIN, action: ClientAction.SHARE_IDENTITY },\n ]);\n },\n properties: {\n label: ['open shell label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--address-book--regular',\n keyBinding: {\n macos: 'meta+shift+.',\n // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.\n windows: 'alt+shift+.',\n linux: 'alt+shift+>',\n },\n testId: 'clientPlugin.openShell',\n },\n },\n ],\n });\n },\n },\n intent: {\n resolver: async (intent) => {\n switch (intent.action) {\n case ClientAction.CREATE_IDENTITY: {\n const data = await client.halo.createIdentity();\n return {\n data,\n intents: [\n [\n {\n action: OBSERVABILITY_ACTION,\n data: {\n name: 'identity.create',\n },\n },\n ],\n ],\n };\n }\n\n case ClientAction.JOIN_IDENTITY: {\n return {\n data: true,\n intents: [\n [\n {\n action: LayoutAction.SET_LAYOUT,\n data: {\n element: 'dialog',\n component: 'dxos.org/plugin/client/JoinDialog',\n dialogBlockAlign: 'start',\n subject: {\n initialInvitationCode: intent.data?.invitationCode,\n initialDisposition: 'accept-halo-invitation',\n } satisfies Partial<JoinPanelProps>,\n },\n },\n ],\n ],\n };\n }\n\n case ClientAction.SHARE_IDENTITY: {\n return {\n data: true,\n intents: [\n [\n {\n action: LayoutAction.SET_LAYOUT,\n data: {\n element: 'dialog',\n component: 'dxos.org/plugin/client/IdentityDialog',\n dialogBlockAlign: 'start',\n },\n },\n ],\n [\n {\n action: OBSERVABILITY_ACTION,\n data: {\n name: 'identity.share',\n },\n },\n ],\n ],\n };\n }\n\n case ClientAction.RECOVER_IDENTITY: {\n return {\n data: true,\n intents: [\n [\n {\n action: LayoutAction.SET_LAYOUT,\n data: {\n element: 'dialog',\n component: 'dxos.org/plugin/client/JoinDialog',\n dialogBlockAlign: 'start',\n subject: {\n initialDisposition: 'recover-identity',\n } satisfies Partial<JoinPanelProps>,\n },\n },\n ],\n ],\n };\n }\n\n case ClientAction.RESET_STORAGE: {\n await onReset?.({ target: intent.data?.target });\n return { data: true };\n }\n }\n },\n },\n },\n };\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback } from 'react';\n\nimport { LayoutAction, useIntentDispatcher } from '@dxos/app-framework';\nimport { useClient } from '@dxos/react-client';\nimport { Dialog } from '@dxos/react-ui';\nimport { ClipboardProvider, IdentityPanel, type IdentityPanelProps } from '@dxos/shell/react';\n\nimport { ClientAction } from '../meta';\n\nexport const IdentityDialog = (props: IdentityPanelProps) => {\n const dispatch = useIntentDispatcher();\n const client = useClient();\n\n const handleDone = useCallback(\n () =>\n dispatch({\n action: LayoutAction.SET_LAYOUT,\n data: {\n element: 'dialog',\n state: false,\n },\n }),\n [dispatch],\n );\n\n const handleResetStorage = useCallback(async () => {\n await client.reset();\n await dispatch({ action: ClientAction.RESET_STORAGE });\n }, [dispatch]);\n\n const handleRecover = useCallback(async () => {\n await client.reset();\n await dispatch({ action: ClientAction.RESET_STORAGE, data: { target: 'recoverIdentity' } });\n }, [dispatch]);\n\n const handleJoinNewIdentity = useCallback(async () => {\n await client.reset();\n await dispatch({ action: ClientAction.RESET_STORAGE, data: { target: 'deviceInvitation' } });\n }, [dispatch]);\n\n return (\n <Dialog.Content>\n <ClipboardProvider>\n <IdentityPanel\n {...props}\n doneActionParent={<Dialog.Close asChild />}\n onDone={handleDone}\n onResetStorage={handleResetStorage}\n onRecover={handleRecover}\n onJoinNewIdentity={handleJoinNewIdentity}\n />\n </ClipboardProvider>\n </Dialog.Content>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback } from 'react';\n\nimport { LayoutAction, useIntentDispatcher } from '@dxos/app-framework';\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, ClientAction, OBSERVABILITY_ACTION } from '../meta';\n\nexport const JoinDialog = (props: JoinPanelProps) => {\n const dispatch = useIntentDispatcher();\n\n const handleCancelResetStorage = useCallback(\n () => dispatch({ plugin: CLIENT_PLUGIN, action: ClientAction.SHARE_IDENTITY }),\n [dispatch],\n );\n\n const handleDone = useCallback(\n async (result: InvitationResult | null) => {\n if (result?.identityKey) {\n await Promise.all([\n dispatch({\n action: LayoutAction.SET_LAYOUT,\n data: {\n element: 'dialog',\n state: false,\n },\n }),\n dispatch({\n action: OBSERVABILITY_ACTION,\n data: {\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 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 },\n },\n },\n];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { ClientPlugin } from './ClientPlugin';\n\nexport default ClientPlugin;\n\nexport * from './ClientPlugin';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAKA,OAAOA,YAAW;AAElB,SACEC,eACAC,gBAAAA,eACAC,mBACAC,qBAOK;AACP,SAASC,QAAQC,UAAUC,MAAMC,OAAOC,eAAe;AACvD,SAASC,8BAA8B;AACvC,SAASC,WAAW;AACpB,SAASC,uBAAkC;AAC3C,SAASC,QAA4BC,sBAAsB;;;ACnB3D,OAAOC,SAASC,mBAAmB;AAEnC,SAASC,cAAcC,2BAA2B;AAClD,SAASC,iBAAiB;AAC1B,SAASC,cAAc;AACvB,SAASC,mBAAmBC,qBAA8C;AAInE,IAAMC,iBAAiB,CAACC,UAAAA;AAC7B,QAAMC,WAAWC,oBAAAA;AACjB,QAAMC,SAASC,UAAAA;AAEf,QAAMC,aAAaC,YACjB,MACEL,SAAS;IACPM,QAAQC,aAAaC;IACrBC,MAAM;MACJC,SAAS;MACTC,OAAO;IACT;EACF,CAAA,GACF;IAACX;GAAS;AAGZ,QAAMY,qBAAqBP,YAAY,YAAA;AACrC,UAAMH,OAAOW,MAAK;AAClB,UAAMb,SAAS;MAAEM,QAAQQ,aAAaC;IAAc,CAAA;EACtD,GAAG;IAACf;GAAS;AAEb,QAAMgB,gBAAgBX,YAAY,YAAA;AAChC,UAAMH,OAAOW,MAAK;AAClB,UAAMb,SAAS;MAAEM,QAAQQ,aAAaC;MAAeN,MAAM;QAAEQ,QAAQ;MAAkB;IAAE,CAAA;EAC3F,GAAG;IAACjB;GAAS;AAEb,QAAMkB,wBAAwBb,YAAY,YAAA;AACxC,UAAMH,OAAOW,MAAK;AAClB,UAAMb,SAAS;MAAEM,QAAQQ,aAAaC;MAAeN,MAAM;QAAEQ,QAAQ;MAAmB;IAAE,CAAA;EAC5F,GAAG;IAACjB;GAAS;AAEb,SACE,sBAAA,cAACmB,OAAOC,SAAO,MACb,sBAAA,cAAC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;AACjC,oBAAMhC,OAAO,MAAM3D,OAAOsC,KAAKsD,eAAc;AAC7C,qBAAO;gBACLjC;gBACAkC,SAAS;kBACP;oBACE;sBACEf,QAAQgB;sBACRnC,MAAM;wBACJoC,MAAM;sBACR;oBACF;;;cAGN;YACF;YAEA,KAAKhB,aAAaiB,eAAe;AAC/B,qBAAO;gBACLrC,MAAM;gBACNkC,SAAS;kBACP;oBACE;sBACEf,QAAQmB,cAAaC;sBACrBvC,MAAM;wBACJwC,SAAS;wBACTzC,WAAW;wBACX0C,kBAAkB;wBAClBrC,SAAS;0BACPsC,uBAAuBzB,OAAOjB,MAAMrC;0BACpCgF,oBAAoB;wBACtB;sBACF;oBACF;;;cAGN;YACF;YAEA,KAAKvB,aAAaC,gBAAgB;AAChC,qBAAO;gBACLrB,MAAM;gBACNkC,SAAS;kBACP;oBACE;sBACEf,QAAQmB,cAAaC;sBACrBvC,MAAM;wBACJwC,SAAS;wBACTzC,WAAW;wBACX0C,kBAAkB;sBACpB;oBACF;;kBAEF;oBACE;sBACEtB,QAAQgB;sBACRnC,MAAM;wBACJoC,MAAM;sBACR;oBACF;;;cAGN;YACF;YAEA,KAAKhB,aAAawB,kBAAkB;AAClC,qBAAO;gBACL5C,MAAM;gBACNkC,SAAS;kBACP;oBACE;sBACEf,QAAQmB,cAAaC;sBACrBvC,MAAM;wBACJwC,SAAS;wBACTzC,WAAW;wBACX0C,kBAAkB;wBAClBrC,SAAS;0BACPuC,oBAAoB;wBACtB;sBACF;oBACF;;;cAGN;YACF;YAEA,KAAKvB,aAAayB,eAAe;AAC/B,oBAAMvF,UAAU;gBAAEwF,QAAQ7B,OAAOjB,MAAM8C;cAAO,CAAA;AAC9C,qBAAO;gBAAE9C,MAAM;cAAK;YACtB;UACF;QACF;MACF;IACF;EACF;AACF;;;AIrSA,IAAA,cAAe+C;",
|
|
6
|
+
"names": ["React", "filterPlugins", "LayoutAction", "parseIntentPlugin", "resolvePlugin", "Config", "Defaults", "Envs", "Local", "Storage", "registerSignalsRuntime", "log", "createExtension", "Client", "ClientProvider", "React", "useCallback", "LayoutAction", "useIntentDispatcher", "useClient", "Dialog", "ClipboardProvider", "IdentityPanel", "IdentityDialog", "props", "dispatch", "useIntentDispatcher", "client", "useClient", "handleDone", "useCallback", "action", "LayoutAction", "SET_LAYOUT", "data", "element", "state", "handleResetStorage", "reset", "ClientAction", "RESET_STORAGE", "handleRecover", "target", "handleJoinNewIdentity", "Dialog", "Content", "ClipboardProvider", "IdentityPanel", "doneActionParent", "Close", "asChild", "onDone", "onResetStorage", "onRecover", "onJoinNewIdentity", "React", "useCallback", "LayoutAction", "useIntentDispatcher", "Dialog", "JoinPanel", "JoinDialog", "props", "dispatch", "useIntentDispatcher", "handleCancelResetStorage", "useCallback", "plugin", "CLIENT_PLUGIN", "action", "ClientAction", "SHARE_IDENTITY", "handleDone", "result", "identityKey", "Promise", "all", "LayoutAction", "SET_LAYOUT", "data", "element", "state", "OBSERVABILITY_ACTION", "name", "initialDisposition", "React", "Dialog", "Content", "JoinPanel", "mode", "exitActionParent", "Close", "asChild", "doneActionParent", "onCancelResetStorage", "onDone", "CLIENT_PLUGIN", "parseClientPlugin", "plugin", "provides", "client", "Client", "undefined", "parseSchemaPlugin", "Array", "isArray", "echo", "schema", "ClientPlugin", "appKey", "invitationUrl", "window", "location", "origin", "invitationParam", "onClientInitialized", "onReady", "onReset", "options", "registerSignalsRuntime", "error", "createDeviceInvitationUrl", "invitationCode", "baseUrl", "URL", "searchParams", "set", "toString", "meta", "initialize", "config", "Config", "Storage", "Envs", "Local", "Defaults", "reloaded", "on", "halo", "identity", "subscribe", "href", "err", "context", "children", "React", "ClientProvider", "ready", "plugins", "filterPlugins", "forEach", "log", "id", "addTypes", "unload", "destroy", "translations", "surface", "component", "data", "role", "rest", "IdentityDialog", "subject", "createInvitationUrl", "JoinDialog", "graph", "builder", "intentPlugin", "resolvePlugin", "parseIntentPlugin", "CLIENT_PLUGIN", "createExtension", "filter", "node", "actions", "intent", "dispatch", "action", "ClientAction", "SHARE_IDENTITY", "properties", "label", "ns", "icon", "keyBinding", "macos", "windows", "linux", "testId", "resolver", "CREATE_IDENTITY", "createIdentity", "intents", "OBSERVABILITY_ACTION", "name", "JOIN_IDENTITY", "LayoutAction", "SET_LAYOUT", "element", "dialogBlockAlign", "initialInvitationCode", "initialDisposition", "RECOVER_IDENTITY", "RESET_STORAGE", "target", "ClientPlugin"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-client/src/meta.ts":{"bytes":
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-client/src/meta.ts":{"bytes":2945,"imports":[],"format":"esm"},"packages/plugins/plugin-client/src/components/IdentityDialog.tsx":{"bytes":6567,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/shell/react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-client/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-client/src/components/JoinDialog.tsx":{"bytes":6031,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/shell/react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-client/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-client/src/components/index.ts":{"bytes":625,"imports":[{"path":"packages/plugins/plugin-client/src/components/IdentityDialog.tsx","kind":"import-statement","original":"./IdentityDialog"},{"path":"packages/plugins/plugin-client/src/components/JoinDialog.tsx","kind":"import-statement","original":"./JoinDialog"}],"format":"esm"},"packages/plugins/plugin-client/src/translations.ts":{"bytes":1043,"imports":[{"path":"packages/plugins/plugin-client/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-client/src/ClientPlugin.tsx":{"bytes":30969,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/config","kind":"import-statement","external":true},{"path":"@dxos/echo-signals/react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-client/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-client/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-client/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-client/src/index.ts":{"bytes":782,"imports":[{"path":"packages/plugins/plugin-client/src/ClientPlugin.tsx","kind":"import-statement","original":"./ClientPlugin"},{"path":"packages/plugins/plugin-client/src/ClientPlugin.tsx","kind":"import-statement","original":"./ClientPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-client/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":21274},"packages/plugins/plugin-client/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-client/dist/lib/node-esm/chunk-4FDLD5H4.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/config","kind":"import-statement","external":true},{"path":"@dxos/echo-signals/react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/shell/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/shell/react","kind":"import-statement","external":true}],"exports":["ClientPlugin","default","parseClientPlugin","parseSchemaPlugin"],"entryPoint":"packages/plugins/plugin-client/src/index.ts","inputs":{"packages/plugins/plugin-client/src/ClientPlugin.tsx":{"bytesInOutput":7460},"packages/plugins/plugin-client/src/components/IdentityDialog.tsx":{"bytesInOutput":1649},"packages/plugins/plugin-client/src/components/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-client/src/components/JoinDialog.tsx":{"bytesInOutput":1474},"packages/plugins/plugin-client/src/translations.ts":{"bytesInOutput":134},"packages/plugins/plugin-client/src/index.ts":{"bytesInOutput":32}},"bytes":11432},"packages/plugins/plugin-client/dist/lib/node-esm/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-client/dist/lib/node-esm/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-client/dist/lib/node-esm/chunk-4FDLD5H4.mjs","kind":"import-statement"}],"exports":["CLIENT_PLUGIN","ClientAction","OBSERVABILITY_ACTION","default"],"entryPoint":"packages/plugins/plugin-client/src/meta.ts","inputs":{},"bytes":333},"packages/plugins/plugin-client/dist/lib/node-esm/chunk-4FDLD5H4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1287},"packages/plugins/plugin-client/dist/lib/node-esm/chunk-4FDLD5H4.mjs":{"imports":[],"exports":["CLIENT_PLUGIN","ClientAction","OBSERVABILITY_ACTION","meta_default"],"inputs":{"packages/plugins/plugin-client/src/meta.ts":{"bytesInOutput":840}},"bytes":1108}}}
|
|
@@ -2,11 +2,13 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
2
2
|
import {
|
|
3
3
|
CLIENT_PLUGIN,
|
|
4
4
|
ClientAction,
|
|
5
|
+
OBSERVABILITY_ACTION,
|
|
5
6
|
meta_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4FDLD5H4.mjs";
|
|
7
8
|
export {
|
|
8
9
|
CLIENT_PLUGIN,
|
|
9
10
|
ClientAction,
|
|
11
|
+
OBSERVABILITY_ACTION,
|
|
10
12
|
meta_default as default
|
|
11
13
|
};
|
|
12
14
|
//# sourceMappingURL=meta.mjs.map
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { type Schema as S } from '@effect/schema';
|
|
2
|
-
import { type GraphBuilderProvides, type IntentResolverProvides, type Plugin, type PluginDefinition, type TranslationsProvides } from '@dxos/app-framework';
|
|
2
|
+
import { type SurfaceProvides, type GraphBuilderProvides, type IntentResolverProvides, type Plugin, type PluginDefinition, type TranslationsProvides } from '@dxos/app-framework';
|
|
3
3
|
import { Client, type ClientOptions } from '@dxos/react-client';
|
|
4
4
|
export type ClientPluginOptions = ClientOptions & {
|
|
5
5
|
/**
|
|
6
6
|
* Used to track app-specific state in spaces.
|
|
7
7
|
*/
|
|
8
8
|
appKey: string;
|
|
9
|
+
/**
|
|
10
|
+
* Base URL for the invitation link.
|
|
11
|
+
*/
|
|
12
|
+
invitationUrl?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Query parameter for the invitation code.
|
|
15
|
+
*/
|
|
16
|
+
invitationParam?: string;
|
|
9
17
|
/**
|
|
10
18
|
* Run after the client has been initialized.
|
|
11
19
|
*/
|
|
@@ -15,8 +23,14 @@ export type ClientPluginOptions = ClientOptions & {
|
|
|
15
23
|
* Run with client during plugin ready phase.
|
|
16
24
|
*/
|
|
17
25
|
onReady?: (client: Client, plugins: Plugin[]) => Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Called when the client is reset.
|
|
28
|
+
*/
|
|
29
|
+
onReset?: (params: {
|
|
30
|
+
target?: string;
|
|
31
|
+
}) => Promise<void>;
|
|
18
32
|
};
|
|
19
|
-
export type ClientPluginProvides = IntentResolverProvides & GraphBuilderProvides & TranslationsProvides & {
|
|
33
|
+
export type ClientPluginProvides = IntentResolverProvides & GraphBuilderProvides & SurfaceProvides & TranslationsProvides & {
|
|
20
34
|
client: Client;
|
|
21
35
|
};
|
|
22
36
|
export declare const parseClientPlugin: (plugin?: Plugin) => Plugin<ClientPluginProvides> | undefined;
|
|
@@ -26,5 +40,5 @@ export type SchemaProvides = {
|
|
|
26
40
|
};
|
|
27
41
|
};
|
|
28
42
|
export declare const parseSchemaPlugin: (plugin?: Plugin) => Plugin<SchemaProvides> | undefined;
|
|
29
|
-
export declare const ClientPlugin: ({ appKey, onClientInitialized, onReady, ...options }: ClientPluginOptions) => PluginDefinition<Omit<ClientPluginProvides, "client">, Pick<ClientPluginProvides, "client">>;
|
|
43
|
+
export declare const ClientPlugin: ({ appKey, invitationUrl, invitationParam, onClientInitialized, onReady, onReset, ...options }: ClientPluginOptions) => PluginDefinition<Omit<ClientPluginProvides, "client">, Pick<ClientPluginProvides, "client">>;
|
|
30
44
|
//# sourceMappingURL=ClientPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientPlugin.d.ts","sourceRoot":"","sources":["../../../src/ClientPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,
|
|
1
|
+
{"version":3,"file":"ClientPlugin.d.ts","sourceRoot":"","sources":["../../../src/ClientPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAkB,MAAM,oBAAoB,CAAC;AAOhF,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAE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AAO,MAAM,cAAc,UAAW,kBAAkB,sBA6CvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoinDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/JoinDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInE,eAAO,MAAM,UAAU,UAAW,cAAc,sBA2C/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -5,10 +5,11 @@ declare const _default: {
|
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare enum ClientAction {
|
|
8
|
-
OPEN_SHELL = "dxos.org/plugin/client/action/SHELL",
|
|
9
8
|
CREATE_IDENTITY = "dxos.org/plugin/client/action/CREATE_IDENTITY",
|
|
10
9
|
JOIN_IDENTITY = "dxos.org/plugin/client/action/JOIN_IDENTITY",
|
|
11
10
|
SHARE_IDENTITY = "dxos.org/plugin/client/action/SHARE_IDENTITY",
|
|
12
|
-
RECOVER_IDENTITY = "dxos.org/plugin/client/action/RECOVER_IDENTITY"
|
|
11
|
+
RECOVER_IDENTITY = "dxos.org/plugin/client/action/RECOVER_IDENTITY",
|
|
12
|
+
RESET_STORAGE = "dxos.org/plugin/client/action/RESET_STORAGE"
|
|
13
13
|
}
|
|
14
|
+
export declare const OBSERVABILITY_ACTION = "dxos.org/plugin/observability/send-event";
|
|
14
15
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,2BAA2B,CAAC;;;;;AAEtD,wBAGuB;AAGvB,oBAAY,YAAY;IACtB,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,2BAA2B,CAAC;;;;;AAEtD,wBAGuB;AAGvB,oBAAY,YAAY;IACtB,eAAe,kDAAqC;IACpD,aAAa,gDAAmC;IAChD,cAAc,iDAAoC;IAClD,gBAAgB,mDAAsC;IACtD,aAAa,gDAAmC;CACjD;AAGD,eAAO,MAAM,oBAAoB,6CAA6C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "DXOS Surface plugin for DXOS Client",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -33,15 +33,17 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@phosphor-icons/react": "^2.1.5",
|
|
36
|
-
"@dxos/app-framework": "0.
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/echo-
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
36
|
+
"@dxos/app-framework": "0.7.0",
|
|
37
|
+
"@dxos/config": "0.7.0",
|
|
38
|
+
"@dxos/invariant": "0.7.0",
|
|
39
|
+
"@dxos/echo-schema": "0.7.0",
|
|
40
|
+
"@dxos/local-storage": "0.7.0",
|
|
41
|
+
"@dxos/log": "0.7.0",
|
|
42
|
+
"@dxos/plugin-graph": "0.7.0",
|
|
43
|
+
"@dxos/react-client": "0.7.0",
|
|
44
|
+
"@dxos/echo-signals": "0.7.0",
|
|
45
|
+
"@dxos/shell": "0.7.0",
|
|
46
|
+
"@dxos/react-ui": "0.7.0"
|
|
45
47
|
},
|
|
46
48
|
"devDependencies": {
|
|
47
49
|
"@types/react": "~18.2.0",
|
|
@@ -49,7 +51,7 @@
|
|
|
49
51
|
"react": "~18.2.0",
|
|
50
52
|
"react-dom": "~18.2.0",
|
|
51
53
|
"vite": "5.4.7",
|
|
52
|
-
"@dxos/storybook-utils": "0.
|
|
54
|
+
"@dxos/storybook-utils": "0.7.0"
|
|
53
55
|
},
|
|
54
56
|
"peerDependencies": {
|
|
55
57
|
"@phosphor-icons/react": "^2.1.5",
|