@dxos/plugin-client 0.8.4-main.69d29f4 → 0.8.4-main.6fa680abb7
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/DevicesContainer-3N7ANEJ7.mjs +268 -0
- package/dist/lib/browser/DevicesContainer-3N7ANEJ7.mjs.map +7 -0
- package/dist/lib/browser/JoinDialog-VTTK7NHO.mjs +59 -0
- package/dist/lib/browser/JoinDialog-VTTK7NHO.mjs.map +7 -0
- package/dist/lib/browser/ProfileContainer-XV7OXJC2.mjs +171 -0
- package/dist/lib/browser/ProfileContainer-XV7OXJC2.mjs.map +7 -0
- package/dist/lib/browser/RecoveryCodeDialog-WO34OZEJ.mjs +60 -0
- package/dist/lib/browser/RecoveryCodeDialog-WO34OZEJ.mjs.map +7 -0
- package/dist/lib/browser/RecoveryCredentialsContainer-G22FSTIX.mjs +57 -0
- package/dist/lib/browser/RecoveryCredentialsContainer-G22FSTIX.mjs.map +7 -0
- package/dist/lib/browser/ResetDialog-W24FOWBQ.mjs +52 -0
- package/dist/lib/browser/ResetDialog-W24FOWBQ.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-3FGBMLTF.mjs → app-graph-builder-GGJKFY3X.mjs} +9 -6
- package/dist/lib/browser/app-graph-builder-GGJKFY3X.mjs.map +7 -0
- package/dist/lib/browser/{chunk-4BZGRIFS.mjs → chunk-FVEKZBM7.mjs} +34 -44
- package/dist/lib/browser/chunk-FVEKZBM7.mjs.map +7 -0
- package/dist/lib/browser/{chunk-F7H2Y3Z2.mjs → chunk-GSVYEYVS.mjs} +4 -4
- package/dist/lib/browser/chunk-HSFDKP5D.mjs +15 -0
- package/dist/lib/browser/{chunk-G7C3S2BE.mjs.map → chunk-HSFDKP5D.mjs.map} +1 -1
- package/dist/lib/browser/chunk-JHSBBOCI.mjs +15 -0
- package/dist/lib/browser/chunk-JHSBBOCI.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +60 -49
- package/dist/lib/browser/cli/index.mjs.map +3 -3
- package/dist/lib/browser/{client-IX5LMWV4.mjs → client-BXCP3EUE.mjs} +11 -11
- package/dist/lib/browser/client-BXCP3EUE.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +26 -23
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{migrations-3EBTAW3N.mjs → migrations-GKUA2ARL.mjs} +6 -5
- package/dist/lib/browser/migrations-GKUA2ARL.mjs.map +7 -0
- package/dist/lib/browser/{operation-resolver-2NT3ISVP.mjs → operation-resolver-VSWA74RS.mjs} +24 -23
- package/dist/lib/browser/operation-resolver-VSWA74RS.mjs.map +7 -0
- package/dist/lib/browser/{react-context-4UABG3GP.mjs → react-context-GZ3T5UON.mjs} +8 -6
- package/dist/lib/browser/react-context-GZ3T5UON.mjs.map +7 -0
- package/dist/lib/browser/react-surface-5VZP34X3.mjs +77 -0
- package/dist/lib/browser/react-surface-5VZP34X3.mjs.map +7 -0
- package/dist/lib/browser/{schema-defs-O7VLP745.mjs → schema-defs-KAG6HQMI.mjs} +8 -6
- package/dist/lib/browser/schema-defs-KAG6HQMI.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +2 -1
- package/dist/lib/node-esm/DevicesContainer-V7HEUPO7.mjs +269 -0
- package/dist/lib/node-esm/DevicesContainer-V7HEUPO7.mjs.map +7 -0
- package/dist/lib/node-esm/JoinDialog-XVKW4SLT.mjs +60 -0
- package/dist/lib/node-esm/JoinDialog-XVKW4SLT.mjs.map +7 -0
- package/dist/lib/node-esm/ProfileContainer-B5LJ6TMU.mjs +172 -0
- package/dist/lib/node-esm/ProfileContainer-B5LJ6TMU.mjs.map +7 -0
- package/dist/lib/node-esm/RecoveryCodeDialog-YIRGXM7N.mjs +61 -0
- package/dist/lib/node-esm/RecoveryCodeDialog-YIRGXM7N.mjs.map +7 -0
- package/dist/lib/node-esm/RecoveryCredentialsContainer-MVJEFNXX.mjs +58 -0
- package/dist/lib/node-esm/RecoveryCredentialsContainer-MVJEFNXX.mjs.map +7 -0
- package/dist/lib/node-esm/ResetDialog-GGBWSQZO.mjs +54 -0
- package/dist/lib/node-esm/ResetDialog-GGBWSQZO.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-2PIYVUNC.mjs → app-graph-builder-PTNZ46NN.mjs} +9 -6
- package/dist/lib/node-esm/app-graph-builder-PTNZ46NN.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BOTJSPCT.mjs +17 -0
- package/dist/lib/node-esm/chunk-BOTJSPCT.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-JAF64TFQ.mjs → chunk-DT2ZNOGU.mjs} +33 -44
- package/dist/lib/node-esm/chunk-DT2ZNOGU.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-BCELGXRI.mjs → chunk-OFJUOKY7.mjs} +4 -4
- package/dist/lib/node-esm/chunk-VLNCZYIC.mjs +16 -0
- package/dist/lib/node-esm/{chunk-PRAFFO54.mjs.map → chunk-VLNCZYIC.mjs.map} +1 -1
- package/dist/lib/node-esm/cli/index.mjs +60 -49
- package/dist/lib/node-esm/cli/index.mjs.map +3 -3
- package/dist/lib/node-esm/{client-FFPK5UFP.mjs → client-EGZHGRRC.mjs} +11 -11
- package/dist/lib/node-esm/client-EGZHGRRC.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +26 -23
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{migrations-WSZSFGDK.mjs → migrations-4NEKCBGU.mjs} +6 -5
- package/dist/lib/node-esm/migrations-4NEKCBGU.mjs.map +7 -0
- package/dist/lib/node-esm/{operation-resolver-VW5R2BE4.mjs → operation-resolver-4GWB3YZG.mjs} +24 -23
- package/dist/lib/node-esm/operation-resolver-4GWB3YZG.mjs.map +7 -0
- package/dist/lib/node-esm/{react-context-UVXMGPW4.mjs → react-context-T2ORT5CC.mjs} +8 -6
- package/dist/lib/node-esm/react-context-T2ORT5CC.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-B65OUZYI.mjs +78 -0
- package/dist/lib/node-esm/react-surface-B65OUZYI.mjs.map +7 -0
- package/dist/lib/node-esm/{schema-defs-QLRGBIKY.mjs → schema-defs-GXQ47JZN.mjs} +8 -6
- package/dist/lib/node-esm/schema-defs-GXQ47JZN.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +2 -1
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/client/client.d.ts +2 -2
- package/dist/types/src/capabilities/client/client.d.ts.map +1 -1
- package/dist/types/src/capabilities/client/index.d.ts +2 -1
- package/dist/types/src/capabilities/client/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations/migrations.d.ts +1 -1
- package/dist/types/src/capabilities/migrations/migrations.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts +1 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts +1 -1
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -1
- package/dist/types/src/cli/commands/profile/create.d.ts +2 -1
- package/dist/types/src/cli/commands/profile/create.d.ts.map +1 -1
- package/dist/types/src/cli/commands/profile/delete.d.ts +1 -1
- package/dist/types/src/cli/commands/profile/delete.d.ts.map +1 -1
- package/dist/types/src/cli/commands/profile/list.d.ts.map +1 -1
- package/dist/types/src/cli/plugin.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -6
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -0
- package/dist/types/src/{components → containers/DevicesContainer}/DevicesContainer.stories.d.ts +9 -7
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/DevicesContainer/index.d.ts +3 -0
- package/dist/types/src/containers/DevicesContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/index.d.ts +3 -0
- package/dist/types/src/containers/JoinDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/ProfileContainer/ProfileContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ProfileContainer/index.d.ts +3 -0
- package/dist/types/src/containers/ProfileContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts +4 -0
- package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts +3 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ResetDialog}/ResetDialog.d.ts +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ResetDialog}/ResetDialog.stories.d.ts +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ResetDialog/index.d.ts +4 -0
- package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +10 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +1 -1
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +36 -32
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +36 -35
- package/src/ClientPlugin.ts +27 -19
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +4 -3
- package/src/capabilities/client/client.ts +7 -5
- package/src/capabilities/migrations/migrations.ts +3 -3
- package/src/capabilities/operation-resolver/operation-resolver.ts +13 -12
- package/src/capabilities/react-context/react-context.tsx +3 -3
- package/src/capabilities/react-surface/react-surface.tsx +12 -12
- package/src/capabilities/schema-defs/schema-defs.ts +7 -6
- package/src/cli/commands/edge/status.ts +2 -2
- package/src/cli/commands/halo/create/create.ts +2 -2
- package/src/cli/commands/profile/create.ts +9 -6
- package/src/cli/commands/profile/delete.ts +5 -2
- package/src/cli/commands/profile/list.ts +13 -11
- package/src/cli/plugin.ts +7 -6
- package/src/components/index.ts +0 -7
- package/src/constants.ts +3 -3
- package/src/{components → containers/DevicesContainer}/DevicesContainer.stories.tsx +8 -6
- package/src/{components → containers/DevicesContainer}/DevicesContainer.tsx +49 -57
- package/src/containers/DevicesContainer/index.ts +7 -0
- package/src/{components → containers/JoinDialog}/JoinDialog.tsx +8 -6
- package/src/containers/JoinDialog/index.ts +7 -0
- package/src/{components → containers/ProfileContainer}/ProfileContainer.stories.tsx +4 -4
- package/src/{components → containers/ProfileContainer}/ProfileContainer.tsx +20 -28
- package/src/containers/ProfileContainer/index.ts +7 -0
- package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.stories.tsx +4 -4
- package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.tsx +28 -25
- package/src/containers/RecoveryCodeDialog/index.ts +8 -0
- package/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.stories.tsx +8 -6
- package/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.tsx +19 -19
- package/src/containers/RecoveryCredentialsContainer/index.ts +7 -0
- package/src/{components → containers/ResetDialog}/ResetDialog.stories.tsx +27 -14
- package/src/{components → containers/ResetDialog}/ResetDialog.tsx +10 -10
- package/src/containers/ResetDialog/index.ts +8 -0
- package/src/containers/index.ts +15 -0
- package/src/meta.ts +1 -1
- package/src/translations.ts +1 -1
- package/src/types/capabilities.ts +3 -3
- package/src/types/events.ts +5 -5
- package/src/types/schema.ts +28 -23
- package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs.map +0 -7
- package/dist/lib/browser/chunk-4BZGRIFS.mjs.map +0 -7
- package/dist/lib/browser/chunk-G7C3S2BE.mjs +0 -15
- package/dist/lib/browser/client-IX5LMWV4.mjs.map +0 -7
- package/dist/lib/browser/migrations-3EBTAW3N.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs.map +0 -7
- package/dist/lib/browser/react-context-4UABG3GP.mjs.map +0 -7
- package/dist/lib/browser/react-surface-RSQ74XCT.mjs +0 -675
- package/dist/lib/browser/react-surface-RSQ74XCT.mjs.map +0 -7
- package/dist/lib/browser/schema-defs-O7VLP745.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JAF64TFQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PRAFFO54.mjs +0 -16
- package/dist/lib/node-esm/client-FFPK5UFP.mjs.map +0 -7
- package/dist/lib/node-esm/migrations-WSZSFGDK.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs.map +0 -7
- package/dist/lib/node-esm/react-context-UVXMGPW4.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-KBHANGGC.mjs +0 -676
- package/dist/lib/node-esm/react-surface-KBHANGGC.mjs.map +0 -7
- package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs.map +0 -7
- package/dist/types/src/components/DevicesContainer.d.ts.map +0 -1
- package/dist/types/src/components/DevicesContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/JoinDialog.d.ts.map +0 -1
- package/dist/types/src/components/ProfileContainer.d.ts.map +0 -1
- package/dist/types/src/components/ProfileContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResetDialog.d.ts.map +0 -1
- package/dist/types/src/components/ResetDialog.stories.d.ts.map +0 -1
- /package/dist/lib/browser/{chunk-F7H2Y3Z2.mjs.map → chunk-GSVYEYVS.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-BCELGXRI.mjs.map → chunk-OFJUOKY7.mjs.map} +0 -0
- /package/dist/types/src/{components → containers/DevicesContainer}/DevicesContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/JoinDialog}/JoinDialog.d.ts +0 -0
- /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.stories.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.stories.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.stories.d.ts +0 -0
package/dist/lib/node-esm/{operation-resolver-VW5R2BE4.mjs → operation-resolver-4GWB3YZG.mjs}
RENAMED
|
@@ -3,17 +3,19 @@ import {
|
|
|
3
3
|
JOIN_DIALOG,
|
|
4
4
|
RECOVERY_CODE_DIALOG,
|
|
5
5
|
RESET_DIALOG
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VLNCZYIC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Account,
|
|
9
9
|
ClientCapabilities,
|
|
10
10
|
ClientEvents,
|
|
11
11
|
ClientOperation
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DT2ZNOGU.mjs";
|
|
13
|
+
import "./chunk-BOTJSPCT.mjs";
|
|
13
14
|
|
|
14
15
|
// src/capabilities/operation-resolver/operation-resolver.ts
|
|
15
16
|
import * as Effect from "effect/Effect";
|
|
16
|
-
import {
|
|
17
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
18
|
+
import { LayoutOperation, getSpacePath } from "@dxos/app-toolkit";
|
|
17
19
|
import { PublicKey } from "@dxos/client";
|
|
18
20
|
import { runAndForwardErrors } from "@dxos/effect";
|
|
19
21
|
import { invariant } from "@dxos/invariant";
|
|
@@ -22,16 +24,15 @@ import { Operation } from "@dxos/operation";
|
|
|
22
24
|
import { ObservabilityOperation } from "@dxos/plugin-observability/types";
|
|
23
25
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/capabilities/operation-resolver/operation-resolver.ts";
|
|
24
26
|
var RECOVER_IDENTITY_RPC_TIMEOUT = 2e4;
|
|
25
|
-
var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(function* (
|
|
26
|
-
|
|
27
|
-
return Capability.contributes(Common.Capability.OperationResolver, [
|
|
27
|
+
var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(function* ({ appName = "Composer" } = {}) {
|
|
28
|
+
return Capability.contributes(Capabilities.OperationResolver, [
|
|
28
29
|
//
|
|
29
30
|
// CreateIdentity
|
|
30
31
|
//
|
|
31
32
|
OperationResolver.make({
|
|
32
33
|
operation: ClientOperation.CreateIdentity,
|
|
33
34
|
handler: Effect.fnUntraced(function* (profile) {
|
|
34
|
-
const manager = yield* Capability.get(
|
|
35
|
+
const manager = yield* Capability.get(Capabilities.PluginManager);
|
|
35
36
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
36
37
|
const data = yield* Effect.promise(() => client.halo.createIdentity(profile));
|
|
37
38
|
yield* Effect.promise(() => runAndForwardErrors(manager.activate(ClientEvents.IdentityCreated)));
|
|
@@ -47,7 +48,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
47
48
|
OperationResolver.make({
|
|
48
49
|
operation: ClientOperation.JoinIdentity,
|
|
49
50
|
handler: Effect.fnUntraced(function* (data) {
|
|
50
|
-
yield* Operation.invoke(
|
|
51
|
+
yield* Operation.invoke(LayoutOperation.UpdateDialog, {
|
|
51
52
|
subject: JOIN_DIALOG,
|
|
52
53
|
blockAlign: "start",
|
|
53
54
|
props: {
|
|
@@ -63,12 +64,12 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
63
64
|
OperationResolver.make({
|
|
64
65
|
operation: ClientOperation.ShareIdentity,
|
|
65
66
|
handler: Effect.fnUntraced(function* () {
|
|
66
|
-
yield* Operation.invoke(
|
|
67
|
-
subject: Account.id
|
|
67
|
+
yield* Operation.invoke(LayoutOperation.SwitchWorkspace, {
|
|
68
|
+
subject: getSpacePath(Account.id)
|
|
68
69
|
});
|
|
69
|
-
yield* Operation.invoke(
|
|
70
|
+
yield* Operation.invoke(LayoutOperation.Open, {
|
|
70
71
|
subject: [
|
|
71
|
-
Account.Profile
|
|
72
|
+
`${getSpacePath(Account.id)}/${Account.Profile}`
|
|
72
73
|
]
|
|
73
74
|
});
|
|
74
75
|
yield* Operation.schedule(ObservabilityOperation.SendEvent, {
|
|
@@ -82,7 +83,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
82
83
|
OperationResolver.make({
|
|
83
84
|
operation: ClientOperation.RecoverIdentity,
|
|
84
85
|
handler: Effect.fnUntraced(function* () {
|
|
85
|
-
yield* Operation.invoke(
|
|
86
|
+
yield* Operation.invoke(LayoutOperation.UpdateDialog, {
|
|
86
87
|
subject: JOIN_DIALOG,
|
|
87
88
|
blockAlign: "start",
|
|
88
89
|
props: {
|
|
@@ -97,7 +98,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
97
98
|
OperationResolver.make({
|
|
98
99
|
operation: ClientOperation.ResetStorage,
|
|
99
100
|
handler: Effect.fnUntraced(function* (data) {
|
|
100
|
-
yield* Operation.invoke(
|
|
101
|
+
yield* Operation.invoke(LayoutOperation.UpdateDialog, {
|
|
101
102
|
subject: RESET_DIALOG,
|
|
102
103
|
blockAlign: "start",
|
|
103
104
|
props: {
|
|
@@ -115,7 +116,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
115
116
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
116
117
|
invariant(client.services.services.EdgeAgentService, "Missing EdgeAgentService", {
|
|
117
118
|
F: __dxlog_file,
|
|
118
|
-
L:
|
|
119
|
+
L: 115,
|
|
119
120
|
S: this,
|
|
120
121
|
A: [
|
|
121
122
|
"client.services.services.EdgeAgentService",
|
|
@@ -136,7 +137,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
136
137
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
137
138
|
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
138
139
|
F: __dxlog_file,
|
|
139
|
-
L:
|
|
140
|
+
L: 129,
|
|
140
141
|
S: this,
|
|
141
142
|
A: [
|
|
142
143
|
"client.services.services.IdentityService",
|
|
@@ -144,7 +145,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
144
145
|
]
|
|
145
146
|
});
|
|
146
147
|
const { recoveryCode } = yield* Effect.promise(() => client.services.services.IdentityService.createRecoveryCredential({}));
|
|
147
|
-
yield* Operation.invoke(
|
|
148
|
+
yield* Operation.invoke(LayoutOperation.UpdateDialog, {
|
|
148
149
|
subject: RECOVERY_CODE_DIALOG,
|
|
149
150
|
blockAlign: "start",
|
|
150
151
|
type: "alert",
|
|
@@ -164,7 +165,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
164
165
|
const identity = client.halo.identity.get();
|
|
165
166
|
invariant(identity, "Identity not available", {
|
|
166
167
|
F: __dxlog_file,
|
|
167
|
-
L:
|
|
168
|
+
L: 150,
|
|
168
169
|
S: this,
|
|
169
170
|
A: [
|
|
170
171
|
"identity",
|
|
@@ -202,7 +203,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
202
203
|
}));
|
|
203
204
|
invariant(credential, "Credential not available", {
|
|
204
205
|
F: __dxlog_file,
|
|
205
|
-
L:
|
|
206
|
+
L: 175,
|
|
206
207
|
S: this,
|
|
207
208
|
A: [
|
|
208
209
|
"credential",
|
|
@@ -213,7 +214,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
213
214
|
const algorithm = credential.response.getPublicKeyAlgorithm() === -7 ? "ES256" : "ED25519";
|
|
214
215
|
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
215
216
|
F: __dxlog_file,
|
|
216
|
-
L:
|
|
217
|
+
L: 179,
|
|
217
218
|
S: this,
|
|
218
219
|
A: [
|
|
219
220
|
"client.services.services.IdentityService",
|
|
@@ -238,7 +239,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
238
239
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
239
240
|
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
240
241
|
F: __dxlog_file,
|
|
241
|
-
L:
|
|
242
|
+
L: 199,
|
|
242
243
|
S: this,
|
|
243
244
|
A: [
|
|
244
245
|
"client.services.services.IdentityService",
|
|
@@ -277,7 +278,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
277
278
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
278
279
|
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
279
280
|
F: __dxlog_file,
|
|
280
|
-
L:
|
|
281
|
+
L: 238,
|
|
281
282
|
S: this,
|
|
282
283
|
A: [
|
|
283
284
|
"client.services.services.IdentityService",
|
|
@@ -296,4 +297,4 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
296
297
|
export {
|
|
297
298
|
operation_resolver_default as default
|
|
298
299
|
};
|
|
299
|
-
//# sourceMappingURL=operation-resolver-
|
|
300
|
+
//# sourceMappingURL=operation-resolver-4GWB3YZG.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/operation-resolver/operation-resolver.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { LayoutOperation, getSpacePath } from '@dxos/app-toolkit';\nimport { PublicKey } from '@dxos/client';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { invariant } from '@dxos/invariant';\nimport { OperationResolver } from '@dxos/operation';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/types';\nimport { type JoinPanelProps } from '@dxos/shell/react';\n\nimport { JOIN_DIALOG, RECOVERY_CODE_DIALOG, RESET_DIALOG } from '../../constants';\nimport { ClientEvents } from '../../types';\nimport { Account, ClientCapabilities, ClientOperation } from '../../types';\n\ntype OperationResolverOptions = {\n appName?: string;\n};\n\nconst RECOVER_IDENTITY_RPC_TIMEOUT = 20_000;\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* ({ appName = 'Composer' }: OperationResolverOptions = {}) {\n return Capability.contributes(Capabilities.OperationResolver, [\n //\n // CreateIdentity\n //\n OperationResolver.make({\n operation: ClientOperation.CreateIdentity,\n handler: Effect.fnUntraced(function* (profile) {\n const manager = yield* Capability.get(Capabilities.PluginManager);\n const client = yield* Capability.get(ClientCapabilities.Client);\n const data = yield* Effect.promise(() => client.halo.createIdentity(profile));\n yield* Effect.promise(() => runAndForwardErrors(manager.activate(ClientEvents.IdentityCreated)));\n yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.create' });\n return data;\n }),\n }),\n\n //\n // JoinIdentity\n //\n OperationResolver.make({\n operation: ClientOperation.JoinIdentity,\n handler: Effect.fnUntraced(function* (data) {\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: JOIN_DIALOG,\n blockAlign: 'start',\n props: {\n initialInvitationCode: data.invitationCode,\n initialDisposition: 'accept-halo-invitation',\n },\n });\n }),\n }),\n\n //\n // ShareIdentity\n //\n OperationResolver.make({\n operation: ClientOperation.ShareIdentity,\n handler: Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: getSpacePath(Account.id) });\n yield* Operation.invoke(LayoutOperation.Open, {\n subject: [`${getSpacePath(Account.id)}/${Account.Profile}`],\n });\n yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.share' });\n }),\n }),\n\n //\n // RecoverIdentity\n //\n OperationResolver.make({\n operation: ClientOperation.RecoverIdentity,\n handler: Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: JOIN_DIALOG,\n blockAlign: 'start',\n props: {\n initialDisposition: 'recover-identity',\n } satisfies Partial<JoinPanelProps>,\n });\n }),\n }),\n\n //\n // ResetStorage\n //\n OperationResolver.make({\n operation: ClientOperation.ResetStorage,\n handler: Effect.fnUntraced(function* (data) {\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: RESET_DIALOG,\n blockAlign: 'start',\n props: {\n mode: data.mode ?? 'reset storage',\n },\n });\n }),\n }),\n\n //\n // CreateAgent\n //\n OperationResolver.make({\n operation: ClientOperation.CreateAgent,\n handler: Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.EdgeAgentService, 'Missing EdgeAgentService');\n yield* Effect.promise(() =>\n client.services.services.EdgeAgentService!.createAgent(undefined, { timeout: 10_000 }),\n );\n }),\n }),\n\n //\n // CreateRecoveryCode\n //\n OperationResolver.make({\n operation: ClientOperation.CreateRecoveryCode,\n handler: Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n const { recoveryCode } = yield* Effect.promise(() =>\n client.services.services.IdentityService!.createRecoveryCredential({}),\n );\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: RECOVERY_CODE_DIALOG,\n blockAlign: 'start',\n type: 'alert',\n props: { code: recoveryCode },\n });\n }),\n }),\n\n //\n // CreatePasskey\n //\n OperationResolver.make({\n operation: ClientOperation.CreatePasskey,\n handler: Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const identity = client.halo.identity.get();\n invariant(identity, 'Identity not available');\n\n const lookupKey = PublicKey.random();\n const credential = yield* Effect.promise(() =>\n navigator.credentials.create({\n publicKey: {\n challenge: new Uint8Array(),\n rp: { id: location.hostname, name: appName },\n user: {\n id: lookupKey.asUint8Array() as Uint8Array<ArrayBuffer>,\n name: identity.did,\n displayName: identity.profile?.displayName ?? '',\n },\n pubKeyCredParams: [\n { type: 'public-key', alg: -8 }, // Ed25519 (not yet supported across all browsers)\n { type: 'public-key', alg: -7 }, // ES256\n ],\n authenticatorSelection: {\n residentKey: 'required',\n requireResidentKey: true,\n },\n },\n }),\n );\n\n invariant(credential, 'Credential not available');\n const recoveryKey = PublicKey.from(new Uint8Array((credential as any).response.getPublicKey()));\n const algorithm = (credential as any).response.getPublicKeyAlgorithm() === -7 ? 'ES256' : 'ED25519';\n\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n yield* Effect.promise(() =>\n client.services.services.IdentityService!.createRecoveryCredential({\n data: {\n recoveryKey,\n algorithm,\n lookupKey,\n },\n }),\n );\n }),\n }),\n\n //\n // RedeemPasskey\n //\n OperationResolver.make({\n operation: ClientOperation.RedeemPasskey,\n handler: Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n const { deviceKey, controlFeedKey, challenge } = yield* Effect.promise(() =>\n client.services.services.IdentityService!.requestRecoveryChallenge(),\n );\n const credential = yield* Effect.promise(() =>\n navigator.credentials.get({\n publicKey: {\n challenge: Buffer.from(challenge, 'base64'),\n rpId: location.hostname,\n userVerification: 'required',\n },\n }),\n );\n const lookupKey = PublicKey.from(new Uint8Array((credential as any).response.userHandle));\n yield* Effect.promise(() =>\n client.services.services.IdentityService!.recoverIdentity(\n {\n external: {\n lookupKey,\n deviceKey,\n controlFeedKey,\n signature: Buffer.from((credential as any).response.signature),\n clientDataJson: Buffer.from((credential as any).response.clientDataJSON),\n authenticatorData: Buffer.from((credential as any).response.authenticatorData),\n },\n },\n { timeout: RECOVER_IDENTITY_RPC_TIMEOUT },\n ),\n );\n }),\n }),\n\n //\n // RedeemToken\n //\n OperationResolver.make({\n operation: ClientOperation.RedeemToken,\n handler: Effect.fnUntraced(function* (data) {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n yield* Effect.promise(() =>\n client.services.services.IdentityService!.recoverIdentity(\n { token: data.token },\n { timeout: RECOVER_IDENTITY_RPC_TIMEOUT },\n ),\n );\n }),\n }),\n ]);\n }),\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,WAAWiB,MAAI;AACxC,cAAMH,SAAS,OAAOhB,WAAWc,IAAIG,mBAAmBC,MAAM;AAC9DqC,kBAAUvC,OAAOwC,SAASA,SAASM,iBAAiB,iCAAA;;;;;;;;;AACpD,eAAc1C,eAAQ,MACpBJ,OAAOwC,SAASA,SAASM,gBAAiB4C,gBACxC;UAAEO,OAAO9F,KAAK8F;QAAM,GACpB;UAAErD,SAAS7D;QAA6B,CAAA,CAAA;MAG9C,CAAA;IACF,CAAA;GACD;AACH,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "LayoutOperation", "getSpacePath", "PublicKey", "runAndForwardErrors", "invariant", "OperationResolver", "Operation", "ObservabilityOperation", "RECOVER_IDENTITY_RPC_TIMEOUT", "Capability", "makeModule", "fnUntraced", "appName", "contributes", "Capabilities", "OperationResolver", "make", "operation", "ClientOperation", "CreateIdentity", "handler", "profile", "manager", "get", "PluginManager", "client", "ClientCapabilities", "Client", "data", "promise", "halo", "createIdentity", "runAndForwardErrors", "activate", "ClientEvents", "IdentityCreated", "Operation", "schedule", "ObservabilityOperation", "SendEvent", "name", "JoinIdentity", "invoke", "LayoutOperation", "UpdateDialog", "subject", "JOIN_DIALOG", "blockAlign", "props", "initialInvitationCode", "invitationCode", "initialDisposition", "ShareIdentity", "SwitchWorkspace", "getSpacePath", "Account", "id", "Open", "Profile", "RecoverIdentity", "ResetStorage", "RESET_DIALOG", "mode", "CreateAgent", "invariant", "services", "EdgeAgentService", "createAgent", "undefined", "timeout", "CreateRecoveryCode", "IdentityService", "recoveryCode", "createRecoveryCredential", "RECOVERY_CODE_DIALOG", "type", "code", "CreatePasskey", "identity", "lookupKey", "PublicKey", "random", "credential", "navigator", "credentials", "create", "publicKey", "challenge", "Uint8Array", "rp", "location", "hostname", "user", "asUint8Array", "did", "displayName", "pubKeyCredParams", "alg", "authenticatorSelection", "residentKey", "requireResidentKey", "recoveryKey", "from", "response", "getPublicKey", "algorithm", "getPublicKeyAlgorithm", "RedeemPasskey", "deviceKey", "controlFeedKey", "requestRecoveryChallenge", "Buffer", "rpId", "userVerification", "userHandle", "recoverIdentity", "external", "signature", "clientDataJson", "clientDataJSON", "authenticatorData", "RedeemToken", "token"]
|
|
7
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
ClientCapabilities
|
|
3
|
+
ClientCapabilities
|
|
4
|
+
} from "./chunk-DT2ZNOGU.mjs";
|
|
5
|
+
import {
|
|
4
6
|
meta
|
|
5
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BOTJSPCT.mjs";
|
|
6
8
|
|
|
7
9
|
// src/capabilities/react-context/react-context.tsx
|
|
8
10
|
import * as Effect from "effect/Effect";
|
|
9
11
|
import React from "react";
|
|
10
|
-
import {
|
|
11
|
-
import { useCapability } from "@dxos/app-framework/
|
|
12
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
13
|
+
import { useCapability } from "@dxos/app-framework/ui";
|
|
12
14
|
import { ClientProvider } from "@dxos/react-client";
|
|
13
|
-
var react_context_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(
|
|
15
|
+
var react_context_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactContext, {
|
|
14
16
|
id: meta.id,
|
|
15
17
|
context: ({ children }) => {
|
|
16
18
|
const client = useCapability(ClientCapabilities.Client);
|
|
@@ -22,4 +24,4 @@ var react_context_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
22
24
|
export {
|
|
23
25
|
react_context_default as default
|
|
24
26
|
};
|
|
25
|
-
//# sourceMappingURL=react-context-
|
|
27
|
+
//# sourceMappingURL=react-context-T2ORT5CC.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-context/react-context.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { useCapability } from '@dxos/app-framework/ui';\nimport { ClientProvider } from '@dxos/react-client';\n\nimport { meta } from '../../meta';\nimport { ClientCapabilities } from '../../types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactContext, {\n id: meta.id,\n context: ({ children }: { children?: React.ReactNode }) => {\n const client = useCapability(ClientCapabilities.Client);\n return <ClientProvider client={client}>{children}</ClientProvider>;\n },\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,qBAAqB;AAC9B,SAASC,sBAAsB;AAK/B,IAAA,wBAAeC,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,aAAaC,cAAc;EAChDC,IAAIC,KAAKD;EACTE,SAAS,CAAC,EAAEC,SAAQ,MAAkC;AACpD,UAAMC,SAASC,cAAcC,mBAAmBC,MAAM;AACtD,WAAO,sBAAA,cAACC,gBAAAA;MAAeJ;OAAiBD,QAAAA;EAC1C;AACF,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "React", "Capabilities", "Capability", "useCapability", "ClientProvider", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactContext", "id", "meta", "context", "children", "client", "useCapability", "ClientCapabilities", "Client", "ClientProvider"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
JOIN_DIALOG,
|
|
4
|
+
RECOVERY_CODE_DIALOG,
|
|
5
|
+
RESET_DIALOG
|
|
6
|
+
} from "./chunk-VLNCZYIC.mjs";
|
|
7
|
+
import {
|
|
8
|
+
Account
|
|
9
|
+
} from "./chunk-DT2ZNOGU.mjs";
|
|
10
|
+
import "./chunk-BOTJSPCT.mjs";
|
|
11
|
+
|
|
12
|
+
// src/capabilities/react-surface/react-surface.tsx
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
16
|
+
import { Surface } from "@dxos/app-framework/ui";
|
|
17
|
+
|
|
18
|
+
// src/containers/index.ts
|
|
19
|
+
import { lazy } from "react";
|
|
20
|
+
var DevicesContainer = lazy(() => import("./DevicesContainer-V7HEUPO7.mjs"));
|
|
21
|
+
var JoinDialog = lazy(() => import("./JoinDialog-XVKW4SLT.mjs"));
|
|
22
|
+
var ProfileContainer = lazy(() => import("./ProfileContainer-B5LJ6TMU.mjs"));
|
|
23
|
+
var RecoveryCodeDialog = lazy(() => import("./RecoveryCodeDialog-YIRGXM7N.mjs"));
|
|
24
|
+
var RecoveryCredentialsContainer = lazy(() => import("./RecoveryCredentialsContainer-MVJEFNXX.mjs"));
|
|
25
|
+
var ResetDialog = lazy(() => import("./ResetDialog-GGBWSQZO.mjs"));
|
|
26
|
+
|
|
27
|
+
// src/capabilities/react-surface/react-surface.tsx
|
|
28
|
+
var react_surface_default = Capability.makeModule(Effect.fnUntraced(function* ({ createInvitationUrl, onReset }) {
|
|
29
|
+
const capabilityManager = yield* Capability.Service;
|
|
30
|
+
return Capability.contributes(Capabilities.ReactSurface, [
|
|
31
|
+
Surface.create({
|
|
32
|
+
id: Account.Profile,
|
|
33
|
+
role: "article",
|
|
34
|
+
filter: (data) => data.subject === Account.Profile,
|
|
35
|
+
component: () => /* @__PURE__ */ React.createElement(ProfileContainer, null)
|
|
36
|
+
}),
|
|
37
|
+
Surface.create({
|
|
38
|
+
id: Account.Devices,
|
|
39
|
+
role: "article",
|
|
40
|
+
filter: (data) => data.subject === Account.Devices,
|
|
41
|
+
component: () => /* @__PURE__ */ React.createElement(DevicesContainer, {
|
|
42
|
+
createInvitationUrl
|
|
43
|
+
})
|
|
44
|
+
}),
|
|
45
|
+
Surface.create({
|
|
46
|
+
id: Account.Security,
|
|
47
|
+
role: "article",
|
|
48
|
+
filter: (data) => data.subject === Account.Security,
|
|
49
|
+
component: () => /* @__PURE__ */ React.createElement(RecoveryCredentialsContainer, null)
|
|
50
|
+
}),
|
|
51
|
+
Surface.create({
|
|
52
|
+
id: JOIN_DIALOG,
|
|
53
|
+
role: "dialog",
|
|
54
|
+
filter: (data) => data.component === JOIN_DIALOG,
|
|
55
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(JoinDialog, data.props)
|
|
56
|
+
}),
|
|
57
|
+
Surface.create({
|
|
58
|
+
id: RECOVERY_CODE_DIALOG,
|
|
59
|
+
role: "dialog",
|
|
60
|
+
filter: (data) => data.component === RECOVERY_CODE_DIALOG,
|
|
61
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(RecoveryCodeDialog, data.props)
|
|
62
|
+
}),
|
|
63
|
+
Surface.create({
|
|
64
|
+
id: RESET_DIALOG,
|
|
65
|
+
role: "dialog",
|
|
66
|
+
filter: (data) => data.component === RESET_DIALOG,
|
|
67
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(ResetDialog, {
|
|
68
|
+
...data.props,
|
|
69
|
+
onReset,
|
|
70
|
+
capabilityManager
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
]);
|
|
74
|
+
}));
|
|
75
|
+
export {
|
|
76
|
+
react_surface_default as default
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=react-surface-B65OUZYI.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface/react-surface.tsx", "../../../src/containers/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { type JoinPanelProps } from '@dxos/shell/react';\n\nimport { JOIN_DIALOG, RECOVERY_CODE_DIALOG, RESET_DIALOG } from '../../constants';\nimport {\n DevicesContainer,\n JoinDialog,\n ProfileContainer,\n RecoveryCodeDialog,\n type RecoveryCodeDialogProps,\n RecoveryCredentialsContainer,\n ResetDialog,\n type ResetDialogProps,\n} from '../../containers';\nimport { Account, type ClientPluginOptions } from '../../types';\n\ntype ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {\n createInvitationUrl: (invitationCode: string) => string;\n};\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* ({ createInvitationUrl, onReset }: ReactSurfaceOptions) {\n const capabilityManager = yield* Capability.Service;\n\n return Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: Account.Profile,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Profile,\n component: () => <ProfileContainer />,\n }),\n Surface.create({\n id: Account.Devices,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Devices,\n component: () => <DevicesContainer createInvitationUrl={createInvitationUrl} />,\n }),\n Surface.create({\n id: Account.Security,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Security,\n component: () => <RecoveryCredentialsContainer />,\n }),\n Surface.create({\n id: JOIN_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: JoinPanelProps } => data.component === JOIN_DIALOG,\n component: ({ data }: { data: any }) => <JoinDialog {...data.props} />,\n }),\n Surface.create({\n id: RECOVERY_CODE_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: RecoveryCodeDialogProps } => data.component === RECOVERY_CODE_DIALOG,\n component: ({ data }: { data: any }) => <RecoveryCodeDialog {...data.props} />,\n }),\n Surface.create({\n id: RESET_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: ResetDialogProps } => data.component === RESET_DIALOG,\n component: ({ data }: { data: any }) => (\n <ResetDialog {...data.props} onReset={onReset} capabilityManager={capabilityManager} />\n ),\n }),\n ]);\n }),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport { type RecoveryCodeDialogProps } from './RecoveryCodeDialog';\nexport { type ResetDialogProps } from './ResetDialog';\n\nexport const DevicesContainer: ComponentType<any> = lazy(() => import('./DevicesContainer'));\nexport const JoinDialog: ComponentType<any> = lazy(() => import('./JoinDialog'));\nexport const ProfileContainer: ComponentType<any> = lazy(() => import('./ProfileContainer'));\nexport const RecoveryCodeDialog: ComponentType<any> = lazy(() => import('./RecoveryCodeDialog'));\nexport const RecoveryCredentialsContainer: ComponentType<any> = lazy(() => import('./RecoveryCredentialsContainer'));\nexport const ResetDialog: ComponentType<any> = lazy(() => import('./ResetDialog'));\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;;;ACJxB,SAA6BC,YAAY;AAKlC,IAAMC,mBAAuCC,KAAK,MAAM,OAAO,iCAAA,CAAA;AAC/D,IAAMC,aAAiCD,KAAK,MAAM,OAAO,2BAAA,CAAA;AACzD,IAAME,mBAAuCF,KAAK,MAAM,OAAO,iCAAA,CAAA;AAC/D,IAAMG,qBAAyCH,KAAK,MAAM,OAAO,mCAAA,CAAA;AACjE,IAAMI,+BAAmDJ,KAAK,MAAM,OAAO,6CAAA,CAAA;AAC3E,IAAMK,cAAkCL,KAAK,MAAM,OAAO,4BAAA,CAAA;;;ADcjE,IAAA,wBAAeM,WAAWC,WACjBC,kBAAW,WAAW,EAAEC,qBAAqBC,QAAO,GAAuB;AAChF,QAAMC,oBAAoB,OAAOL,WAAWM;AAE5C,SAAON,WAAWO,YAAYC,aAAaC,cAAc;IACvDC,QAAQC,OAAO;MACbC,IAAIC,QAAQC;MACZC,MAAM;MACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQC;MACxDK,WAAW,MAAM,sBAAA,cAACC,kBAAAA,IAAAA;IACpB,CAAA;IACAV,QAAQC,OAAO;MACbC,IAAIC,QAAQQ;MACZN,MAAM;MACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQQ;MACxDF,WAAW,MAAM,sBAAA,cAACG,kBAAAA;QAAiBnB;;IACrC,CAAA;IACAO,QAAQC,OAAO;MACbC,IAAIC,QAAQU;MACZR,MAAM;MACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQU;MACxDJ,WAAW,MAAM,sBAAA,cAACK,8BAAAA,IAAAA;IACpB,CAAA;IACAd,QAAQC,OAAO;MACbC,IAAIa;MACJV,MAAM;MACNC,QAAQ,CAACC,SAA4CA,KAAKE,cAAcM;MACxEN,WAAW,CAAC,EAAEF,KAAI,MAAsB,sBAAA,cAACS,YAAeT,KAAKU,KAAK;IACpE,CAAA;IACAjB,QAAQC,OAAO;MACbC,IAAIgB;MACJb,MAAM;MACNC,QAAQ,CAACC,SAAqDA,KAAKE,cAAcS;MACjFT,WAAW,CAAC,EAAEF,KAAI,MAAsB,sBAAA,cAACY,oBAAuBZ,KAAKU,KAAK;IAC5E,CAAA;IACAjB,QAAQC,OAAO;MACbC,IAAIkB;MACJf,MAAM;MACNC,QAAQ,CAACC,SAA8CA,KAAKE,cAAcW;MAC1EX,WAAW,CAAC,EAAEF,KAAI,MAChB,sBAAA,cAACc,aAAAA;QAAa,GAAGd,KAAKU;QAAOvB;QAAkBC;;IAEnD,CAAA;GACD;AACH,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "React", "Capabilities", "Capability", "Surface", "lazy", "DevicesContainer", "lazy", "JoinDialog", "ProfileContainer", "RecoveryCodeDialog", "RecoveryCredentialsContainer", "ResetDialog", "Capability", "makeModule", "fnUntraced", "createInvitationUrl", "onReset", "capabilityManager", "Service", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "Account", "Profile", "role", "filter", "data", "subject", "component", "ProfileContainer", "Devices", "DevicesContainer", "Security", "RecoveryCredentialsContainer", "JOIN_DIALOG", "JoinDialog", "props", "RECOVERY_CODE_DIALOG", "RecoveryCodeDialog", "RESET_DIALOG", "ResetDialog"]
|
|
7
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ClientCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DT2ZNOGU.mjs";
|
|
5
|
+
import "./chunk-BOTJSPCT.mjs";
|
|
5
6
|
|
|
6
7
|
// src/capabilities/schema-defs/schema-defs.ts
|
|
7
8
|
import * as Effect from "effect/Effect";
|
|
8
|
-
import {
|
|
9
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
10
|
+
import { AppCapabilities } from "@dxos/app-toolkit";
|
|
9
11
|
var schema_defs_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
10
|
-
const registry = yield* Capability.get(
|
|
12
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
11
13
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
12
|
-
const schemasAtom = yield* Capability.atom(
|
|
14
|
+
const schemasAtom = yield* Capability.atom(AppCapabilities.Schema);
|
|
13
15
|
let previous = [];
|
|
14
16
|
const cancel = registry.subscribe(schemasAtom, async (_schemas) => {
|
|
15
17
|
const schemas = Array.from(new Set(_schemas.flat()));
|
|
@@ -19,9 +21,9 @@ var schema_defs_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
|
19
21
|
}, {
|
|
20
22
|
immediate: true
|
|
21
23
|
});
|
|
22
|
-
return Capability.contributes(
|
|
24
|
+
return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => cancel()));
|
|
23
25
|
}));
|
|
24
26
|
export {
|
|
25
27
|
schema_defs_default as default
|
|
26
28
|
};
|
|
27
|
-
//# sourceMappingURL=schema-defs-
|
|
29
|
+
//# sourceMappingURL=schema-defs-GXQ47JZN.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/schema-defs/schema-defs.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { type Type } from '@dxos/echo';\n\nimport { ClientCapabilities } from '../../types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const client = yield* Capability.get(ClientCapabilities.Client);\n const schemasAtom = yield* Capability.atom(AppCapabilities.Schema);\n\n // TODO(wittjosiah): Unregister schemas when they are disabled.\n let previous: Type.AnyEntity[] = [];\n const cancel = registry.subscribe(\n schemasAtom,\n async (_schemas: any[]) => {\n // TODO(wittjosiah): This doesn't seem to de-dupe schemas as expected.\n const schemas = Array.from(new Set(_schemas.flat())) as Type.AnyEntity[];\n // TODO(wittjosiah): Filter out schemas which the client has already registered.\n const newSchemas = schemas.filter((schema) => !previous.includes(schema));\n previous = schemas;\n await client.addTypes(newSchemas);\n },\n { immediate: true },\n );\n\n return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => cancel()));\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,uBAAuB;AAKhC,IAAA,sBAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,WAAW,OAAOH,WAAWI,IAAIC,aAAaC,YAAY;AAChE,QAAMC,SAAS,OAAOP,WAAWI,IAAII,mBAAmBC,MAAM;AAC9D,QAAMC,cAAc,OAAOV,WAAWW,KAAKC,gBAAgBC,MAAM;AAGjE,MAAIC,WAA6B,CAAA;AACjC,QAAMC,SAASZ,SAASa,UACtBN,aACA,OAAOO,aAAAA;AAEL,UAAMC,UAAUC,MAAMC,KAAK,IAAIC,IAAIJ,SAASK,KAAI,CAAA,CAAA;AAEhD,UAAMC,aAAaL,QAAQM,OAAO,CAACC,WAAW,CAACX,SAASY,SAASD,MAAAA,CAAAA;AACjEX,eAAWI;AACX,UAAMX,OAAOoB,SAASJ,UAAAA;EACxB,GACA;IAAEK,WAAW;EAAK,CAAA;AAGpB,SAAO5B,WAAW6B,YAAYxB,aAAayB,MAAM,MAAM,MAAaC,YAAK,MAAMhB,OAAAA,CAAAA,CAAAA;AACjF,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "AppCapabilities", "Capability", "makeModule", "fnUntraced", "registry", "get", "Capabilities", "AtomRegistry", "client", "ClientCapabilities", "Client", "schemasAtom", "atom", "AppCapabilities", "Schema", "previous", "cancel", "subscribe", "_schemas", "schemas", "Array", "from", "Set", "flat", "newSchemas", "filter", "schema", "includes", "addTypes", "immediate", "contributes", "Null", "sync"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientPlugin.d.ts","sourceRoot":"","sources":["../../../src/ClientPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"ClientPlugin.d.ts","sourceRoot":"","sources":["../../../src/ClientPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiD,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAe5F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,YAAY,2CA4CxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import { Capability } from '@dxos/app-framework';
|
|
3
3
|
import { GraphBuilder } from '@dxos/plugin-graph';
|
|
4
|
-
declare const _default: (props
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<GraphBuilder.BuilderExtensions>>, never, Capability.Service>;
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=app-graph-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAc,YAAY,EAAe,MAAM,oBAAoB,CAAC;;AAM3E,wBAgFE"}
|
|
@@ -2,7 +2,7 @@ import * as Effect from 'effect/Effect';
|
|
|
2
2
|
import { Capability, Plugin } from '@dxos/app-framework';
|
|
3
3
|
import { Client } from '@dxos/client';
|
|
4
4
|
import { type ClientPluginOptions } from '../../types';
|
|
5
|
-
type ClientCapabilityOptions = Omit<ClientPluginOptions, 'appKey' | '
|
|
6
|
-
declare const _default: (props
|
|
5
|
+
type ClientCapabilityOptions = Omit<ClientPluginOptions, 'appKey' | 'shareableLinkOrigin' | 'invitationPath' | 'invitationParam' | 'onReset'>;
|
|
6
|
+
declare const _default: (props: ClientCapabilityOptions) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<Client>>, Capability.Capability<Capability.InterfaceDef<import("effect/Layer").Layer<any, any, any>>>], Error, Capability.Service | Plugin.Service>;
|
|
7
7
|
export default _default;
|
|
8
8
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/client/client.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/client/client.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,MAAM,EAAiB,MAAM,cAAc,CAAC;AAKrD,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE3E,KAAK,uBAAuB,GAAG,IAAI,CACjC,mBAAmB,EACnB,QAAQ,GAAG,qBAAqB,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,SAAS,CACpF,CAAC;;AAEF,wBAyDE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Capability } from '@dxos/app-framework';
|
|
2
2
|
export declare const Client: Capability.LazyCapability<{
|
|
3
|
-
types?: import("@dxos/echo/Type").
|
|
3
|
+
types?: import("@dxos/echo/Type").AnyEntity[] | undefined;
|
|
4
4
|
services?: import("@dxos/util").MaybePromise<import("@dxos/client-protocol").ClientServicesProvider> | undefined;
|
|
5
5
|
config?: import("@dxos/config").Config | undefined;
|
|
6
6
|
shell?: string | undefined;
|
|
7
7
|
createWorker?: (() => SharedWorker) | undefined;
|
|
8
8
|
createOpfsWorker?: (() => Worker) | undefined;
|
|
9
|
+
sqlitePath?: string | undefined;
|
|
9
10
|
invitationProp?: string | undefined;
|
|
10
11
|
onClientInitialized?: ((params: {
|
|
11
12
|
client: import("@dxos/client").Client;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/client/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/client/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;uLAAsD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import { Capability } from '@dxos/app-framework';
|
|
3
|
-
declare const _default: (props
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=migrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/migrations/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/migrations/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAI/D,wBAmBE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Capability } from '@dxos/app-framework';
|
|
2
2
|
export declare const OperationResolver: Capability.LazyCapability<{
|
|
3
3
|
appName?: string;
|
|
4
|
-
}, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/
|
|
4
|
+
} | undefined, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").OperationResolver[]>>, Error>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,iBAAiB;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,iBAAiB;;qIAA6E,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
|
-
import {
|
|
2
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
3
3
|
type OperationResolverOptions = {
|
|
4
4
|
appName?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: (props
|
|
6
|
+
declare const _default: (props: OperationResolverOptions | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.OperationResolver[]>>, never, never>;
|
|
7
7
|
export default _default;
|
|
8
8
|
//# sourceMappingURL=operation-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/operation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"operation-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/operation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAc/D,KAAK,wBAAwB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;;AAIF,wBA8NE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Capability } from '@dxos/app-framework';
|
|
4
|
-
declare const _default: (props
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
|
|
5
5
|
id: string;
|
|
6
6
|
dependsOn?: string[];
|
|
7
7
|
context: React.FC<React.PropsWithChildren>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-context/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-context/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;;;;;AAO/D,wBAUE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Capability } from '@dxos/app-framework';
|
|
2
2
|
export declare const ReactSurface: Capability.LazyCapability<Pick<import("../..").ClientPluginOptions, "onReset"> & {
|
|
3
3
|
createInvitationUrl: (invitationCode: string) => string;
|
|
4
|
-
}, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/
|
|
4
|
+
}, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY;;kHAAmE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
|
-
import {
|
|
2
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
3
3
|
import { type ClientPluginOptions } from '../../types';
|
|
4
4
|
type ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {
|
|
5
5
|
createInvitationUrl: (invitationCode: string) => string;
|
|
6
6
|
};
|
|
7
|
-
declare const _default: (props
|
|
7
|
+
declare const _default: (props: ReactSurfaceOptions) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, Capability.Service>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAe/D,OAAO,EAAW,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEhE,KAAK,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAChE,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,CAAC;;AAEF,wBA6CE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import { Capability } from '@dxos/app-framework';
|
|
3
|
-
declare const _default: (props
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=schema-defs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-defs.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/schema-defs/schema-defs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,
|
|
1
|
+
{"version":3,"file":"schema-defs.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/schema-defs/schema-defs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAM/D,wBAuBE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../../../src/cli/commands/halo/create/create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAG/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../../../src/cli/commands/halo/create/create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAG/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAA4B,MAAM,gBAAgB,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAM7C,eAAO,MAAM,OAAO;WAIX,OAAO;iBACD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;8HAoClC,CAAC;AAEH,eAAO,MAAM,MAAM;;;EAYsC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as Command from '@effect/cli/Command';
|
|
2
2
|
import * as FileSystem from '@effect/platform/FileSystem';
|
|
3
|
+
import * as Path from '@effect/platform/Path';
|
|
3
4
|
import * as Option from 'effect/Option';
|
|
4
5
|
import { CommandConfig } from '@dxos/cli-util';
|
|
5
|
-
export declare const create: Command.Command<"create", CommandConfig | FileSystem.FileSystem, import("@effect/platform/Error").PlatformError, {
|
|
6
|
+
export declare const create: Command.Command<"create", CommandConfig | FileSystem.FileSystem | Path.Path, import("@effect/platform/Error").PlatformError, {
|
|
6
7
|
readonly template: "default" | "main" | "local" | "dev";
|
|
7
8
|
readonly name: Option.Option<string>;
|
|
8
9
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/profile/create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/profile/create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAG9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAS,MAAM,gBAAgB,CAAC;AAiDtD,eAAO,MAAM,MAAM;;;EA2BlB,CAAC"}
|