@dxos/plugin-client 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6
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-ELAYKIQU.mjs +12 -0
- package/dist/lib/browser/chunk-ELAYKIQU.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-M43LJQ5U.mjs +175 -0
- package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +7 -0
- package/dist/lib/browser/chunk-WNJRYPGG.mjs +131 -0
- package/dist/lib/browser/chunk-WNJRYPGG.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +92 -80
- package/dist/lib/browser/cli/index.mjs.map +3 -3
- package/dist/lib/browser/create-agent-WXBNGUBQ.mjs +34 -0
- package/dist/lib/browser/create-agent-WXBNGUBQ.mjs.map +7 -0
- package/dist/lib/browser/create-identity-LIE4RCXJ.mjs +30 -0
- package/dist/lib/browser/create-identity-LIE4RCXJ.mjs.map +7 -0
- package/dist/lib/browser/create-passkey-PYZ47DJT.mjs +105 -0
- package/dist/lib/browser/create-passkey-PYZ47DJT.mjs.map +7 -0
- package/dist/lib/browser/create-recovery-code-NSRU3QDJ.mjs +44 -0
- package/dist/lib/browser/create-recovery-code-NSRU3QDJ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +90 -93
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/join-identity-B6DC2VW7.mjs +27 -0
- package/dist/lib/browser/join-identity-B6DC2VW7.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/recover-identity-Z3H4GJ3L.mjs +26 -0
- package/dist/lib/browser/recover-identity-Z3H4GJ3L.mjs.map +7 -0
- package/dist/lib/browser/redeem-passkey-ODK47PIR.mjs +82 -0
- package/dist/lib/browser/redeem-passkey-ODK47PIR.mjs.map +7 -0
- package/dist/lib/browser/redeem-token-OYXEFDM3.mjs +37 -0
- package/dist/lib/browser/redeem-token-OYXEFDM3.mjs.map +7 -0
- package/dist/lib/browser/reset-storage-JAU4CS2U.mjs +26 -0
- package/dist/lib/browser/reset-storage-JAU4CS2U.mjs.map +7 -0
- package/dist/lib/browser/share-identity-H2JNYYCP.mjs +31 -0
- package/dist/lib/browser/share-identity-H2JNYYCP.mjs.map +7 -0
- package/dist/lib/browser/testing/index.mjs +22 -0
- package/dist/lib/browser/testing/index.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +4 -5
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IT5LAIV3.mjs +133 -0
- package/dist/lib/node-esm/chunk-IT5LAIV3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-J5RWSQT6.mjs +14 -0
- package/dist/lib/node-esm/chunk-J5RWSQT6.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs +176 -0
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +92 -80
- package/dist/lib/node-esm/cli/index.mjs.map +3 -3
- package/dist/lib/node-esm/create-agent-I7VGTH7O.mjs +35 -0
- package/dist/lib/node-esm/create-agent-I7VGTH7O.mjs.map +7 -0
- package/dist/lib/node-esm/create-identity-NWY3YT5C.mjs +31 -0
- package/dist/lib/node-esm/create-identity-NWY3YT5C.mjs.map +7 -0
- package/dist/lib/node-esm/create-passkey-2LQEEIAN.mjs +106 -0
- package/dist/lib/node-esm/create-passkey-2LQEEIAN.mjs.map +7 -0
- package/dist/lib/node-esm/create-recovery-code-2MVK5CVE.mjs +45 -0
- package/dist/lib/node-esm/create-recovery-code-2MVK5CVE.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +90 -93
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/join-identity-6NT75FSO.mjs +28 -0
- package/dist/lib/node-esm/join-identity-6NT75FSO.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/recover-identity-3UKCQ2M4.mjs +27 -0
- package/dist/lib/node-esm/recover-identity-3UKCQ2M4.mjs.map +7 -0
- package/dist/lib/node-esm/redeem-passkey-TDNEMVJJ.mjs +83 -0
- package/dist/lib/node-esm/redeem-passkey-TDNEMVJJ.mjs.map +7 -0
- package/dist/lib/node-esm/redeem-token-ZBYMFFKM.mjs +38 -0
- package/dist/lib/node-esm/redeem-token-ZBYMFFKM.mjs.map +7 -0
- package/dist/lib/node-esm/reset-storage-NY3ALG72.mjs +27 -0
- package/dist/lib/node-esm/reset-storage-NY3ALG72.mjs.map +7 -0
- package/dist/lib/node-esm/share-identity-FDIZWTDG.mjs +32 -0
- package/dist/lib/node-esm/share-identity-FDIZWTDG.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +23 -0
- package/dist/lib/node-esm/testing/index.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +4 -5
- package/dist/types/src/ClientPlugin.d.ts +1 -1
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/client.d.ts +8 -0
- package/dist/types/src/capabilities/client.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +32 -7
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts +5 -0
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
- package/dist/types/src/capabilities/navigation-handler/index.d.ts +4 -0
- package/dist/types/src/capabilities/navigation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts +15 -0
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/{client/index.d.ts → node.d.ts} +7 -3
- package/dist/types/src/capabilities/node.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +1 -1
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +9 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/schema-defs.d.ts +5 -0
- package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
- package/dist/types/src/cli/commands/config/view.d.ts.map +1 -1
- package/dist/types/src/cli/commands/device/info/info.d.ts +2 -2
- package/dist/types/src/cli/commands/device/info/info.d.ts.map +1 -1
- package/dist/types/src/cli/commands/device/list/list.d.ts +2 -2
- package/dist/types/src/cli/commands/device/list/list.d.ts.map +1 -1
- package/dist/types/src/cli/commands/device/update/update.d.ts.map +1 -1
- package/dist/types/src/cli/commands/edge/status.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/create/create.d.ts +2 -2
- package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts +1 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts +2 -2
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts +2 -2
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/update/update.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 +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/containers/DevicesContainer/DevicesContainer.stories.d.ts +184 -0
- 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/JoinDialog.stories.d.ts +15 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.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/index.d.ts +2 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/create-agent.d.ts +5 -0
- package/dist/types/src/operations/create-agent.d.ts.map +1 -0
- package/dist/types/src/operations/create-identity.d.ts +5 -0
- package/dist/types/src/operations/create-identity.d.ts.map +1 -0
- package/dist/types/src/operations/create-passkey.d.ts +5 -0
- package/dist/types/src/operations/create-passkey.d.ts.map +1 -0
- package/dist/types/src/operations/create-recovery-code.d.ts +5 -0
- package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +36 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/join-identity.d.ts +5 -0
- package/dist/types/src/operations/join-identity.d.ts.map +1 -0
- package/dist/types/src/operations/recover-identity.d.ts +5 -0
- package/dist/types/src/operations/recover-identity.d.ts.map +1 -0
- package/dist/types/src/operations/redeem-passkey.d.ts +5 -0
- package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -0
- package/dist/types/src/operations/redeem-token.d.ts +5 -0
- package/dist/types/src/operations/redeem-token.d.ts.map +1 -0
- package/dist/types/src/operations/reset-storage.d.ts +5 -0
- package/dist/types/src/operations/reset-storage.d.ts.map +1 -0
- package/dist/types/src/operations/share-identity.d.ts +5 -0
- package/dist/types/src/operations/share-identity.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/initializeIdentity.d.ts +13 -0
- package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- 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 +26 -175
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +72 -36
- package/src/ClientPlugin.ts +38 -25
- package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +21 -19
- package/src/capabilities/{client/client.ts → client.ts} +16 -12
- package/src/capabilities/index.ts +15 -7
- package/src/capabilities/{migrations/migrations.ts → migrations.ts} +4 -4
- package/src/capabilities/navigation-handler/index.ts +9 -0
- package/src/capabilities/navigation-handler/navigation-handler.ts +64 -0
- package/src/capabilities/node.ts +13 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/{react-context/react-context.tsx → react-context.tsx} +7 -7
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +13 -13
- package/src/capabilities/{schema-defs/schema-defs.ts → schema-defs.ts} +8 -7
- package/src/cli/commands/config/view.ts +4 -1
- package/src/cli/commands/device/info/info.test.ts +0 -1
- package/src/cli/commands/device/info/info.ts +0 -2
- package/src/cli/commands/device/list/list.test.ts +0 -1
- package/src/cli/commands/device/list/list.ts +0 -2
- package/src/cli/commands/device/update/update.ts +0 -2
- package/src/cli/commands/edge/status.ts +3 -2
- package/src/cli/commands/halo/create/create.ts +13 -6
- package/src/cli/commands/halo/credential/list/list.test.ts +0 -1
- package/src/cli/commands/halo/credential/list/list.ts +4 -7
- package/src/cli/commands/halo/identity/identity.ts +0 -1
- package/src/cli/commands/halo/keys/keys.ts +0 -2
- package/src/cli/commands/halo/seed/seed.ts +0 -2
- package/src/cli/commands/halo/update/update.test.ts +0 -1
- package/src/cli/commands/halo/update/update.ts +0 -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 +12 -11
- package/src/cli/plugin.ts +12 -13
- package/src/components/index.ts +0 -7
- package/src/constants.ts +4 -4
- package/src/{components → containers/DevicesContainer}/DevicesContainer.stories.tsx +10 -7
- package/src/{components → containers/DevicesContainer}/DevicesContainer.tsx +76 -83
- package/src/containers/DevicesContainer/index.ts +7 -0
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +43 -0
- package/src/{components → containers/JoinDialog}/JoinDialog.tsx +20 -15
- 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 +21 -29
- 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 +29 -26
- package/src/containers/RecoveryCodeDialog/index.ts +8 -0
- package/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.stories.tsx +10 -7
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx +66 -0
- 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 +11 -11
- package/src/containers/ResetDialog/index.ts +8 -0
- package/src/containers/index.ts +15 -0
- package/src/index.ts +2 -5
- package/src/meta.ts +1 -1
- package/src/operations/create-agent.ts +27 -0
- package/src/operations/create-identity.ts +30 -0
- package/src/operations/create-passkey.ts +89 -0
- package/src/operations/create-recovery-code.ts +35 -0
- package/src/operations/definitions.ts +107 -0
- package/src/operations/index.ts +20 -0
- package/src/operations/join-identity.ts +29 -0
- package/src/operations/recover-identity.ts +29 -0
- package/src/operations/redeem-passkey.ts +86 -0
- package/src/operations/redeem-token.ts +32 -0
- package/src/operations/reset-storage.ts +28 -0
- package/src/operations/share-identity.ts +27 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/initializeIdentity.ts +24 -0
- package/src/translations.ts +53 -42
- package/src/types/capabilities.ts +4 -4
- package/src/types/events.ts +6 -6
- package/src/types/schema.ts +18 -123
- package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs +0 -118
- package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs.map +0 -7
- package/dist/lib/browser/chunk-4BZGRIFS.mjs +0 -293
- package/dist/lib/browser/chunk-4BZGRIFS.mjs.map +0 -7
- package/dist/lib/browser/chunk-F7H2Y3Z2.mjs +0 -18
- package/dist/lib/browser/chunk-F7H2Y3Z2.mjs.map +0 -7
- package/dist/lib/browser/chunk-G7C3S2BE.mjs +0 -15
- package/dist/lib/browser/chunk-G7C3S2BE.mjs.map +0 -7
- package/dist/lib/browser/client-IX5LMWV4.mjs +0 -86
- package/dist/lib/browser/client-IX5LMWV4.mjs.map +0 -7
- package/dist/lib/browser/migrations-3EBTAW3N.mjs +0 -24
- package/dist/lib/browser/migrations-3EBTAW3N.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs +0 -298
- package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs.map +0 -7
- package/dist/lib/browser/react-context-4UABG3GP.mjs +0 -24
- 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 +0 -26
- package/dist/lib/browser/schema-defs-O7VLP745.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs +0 -119
- package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BCELGXRI.mjs +0 -20
- package/dist/lib/node-esm/chunk-BCELGXRI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JAF64TFQ.mjs +0 -295
- 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/chunk-PRAFFO54.mjs.map +0 -7
- package/dist/lib/node-esm/client-FFPK5UFP.mjs +0 -87
- package/dist/lib/node-esm/client-FFPK5UFP.mjs.map +0 -7
- package/dist/lib/node-esm/migrations-WSZSFGDK.mjs +0 -25
- package/dist/lib/node-esm/migrations-WSZSFGDK.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs +0 -299
- package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs.map +0 -7
- package/dist/lib/node-esm/react-context-UVXMGPW4.mjs +0 -25
- 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 +0 -27
- package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/client/client.d.ts +0 -8
- package/dist/types/src/capabilities/client/client.d.ts.map +0 -1
- package/dist/types/src/capabilities/client/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/migrations/index.d.ts +0 -3
- package/dist/types/src/capabilities/migrations/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/migrations/migrations.d.ts +0 -5
- package/dist/types/src/capabilities/migrations/migrations.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -8
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
- package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -9
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-defs/index.d.ts +0 -3
- package/dist/types/src/capabilities/schema-defs/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts +0 -5
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts.map +0 -1
- package/dist/types/src/components/DevicesContainer.d.ts.map +0 -1
- package/dist/types/src/components/DevicesContainer.stories.d.ts +0 -181
- 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/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/client/index.ts +0 -7
- package/src/capabilities/migrations/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -248
- package/src/capabilities/react-context/index.ts +0 -7
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/schema-defs/index.ts +0 -7
- package/src/components/RecoveryCredentialsContainer.tsx +0 -68
- /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
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CreatePasskey
|
|
3
|
+
} from "./chunk-M43LJQ5U.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ClientCapabilities
|
|
6
|
+
} from "./chunk-WNJRYPGG.mjs";
|
|
7
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
8
|
+
|
|
9
|
+
// src/operations/create-passkey.ts
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
import * as Match from "effect/Match";
|
|
12
|
+
import { Capability } from "@dxos/app-framework";
|
|
13
|
+
import { supportsNativePasskeys, createNativePasskey, extractPublicKeyFromAttestation } from "@dxos/app-toolkit";
|
|
14
|
+
import { PublicKey } from "@dxos/client";
|
|
15
|
+
import { invariant } from "@dxos/invariant";
|
|
16
|
+
import { Operation } from "@dxos/operation";
|
|
17
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/create-passkey.ts";
|
|
18
|
+
var handler = CreatePasskey.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
|
|
19
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
20
|
+
const identity = client.halo.identity.get();
|
|
21
|
+
invariant(identity, "Identity not available", {
|
|
22
|
+
F: __dxlog_file,
|
|
23
|
+
L: 23,
|
|
24
|
+
S: this,
|
|
25
|
+
A: [
|
|
26
|
+
"identity",
|
|
27
|
+
"'Identity not available'"
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
const lookupKey = PublicKey.random();
|
|
31
|
+
const { recoveryKey, algorithm } = yield* Match.value(supportsNativePasskeys()).pipe(Match.when(true, () => Effect.gen(function* () {
|
|
32
|
+
const result = yield* Effect.promise(() => createNativePasskey({
|
|
33
|
+
username: identity.did,
|
|
34
|
+
userId: lookupKey.asUint8Array()
|
|
35
|
+
}));
|
|
36
|
+
const { publicKey, algorithm: alg } = extractPublicKeyFromAttestation(result.attestation_object);
|
|
37
|
+
return {
|
|
38
|
+
recoveryKey: PublicKey.from(publicKey),
|
|
39
|
+
algorithm: alg === -7 ? "ES256" : "ED25519"
|
|
40
|
+
};
|
|
41
|
+
})), Match.orElse(() => Effect.gen(function* () {
|
|
42
|
+
const credential = yield* Effect.promise(() => navigator.credentials.create({
|
|
43
|
+
publicKey: {
|
|
44
|
+
challenge: new Uint8Array(),
|
|
45
|
+
rp: {
|
|
46
|
+
id: location.hostname,
|
|
47
|
+
name: "Composer"
|
|
48
|
+
},
|
|
49
|
+
user: {
|
|
50
|
+
id: lookupKey.asUint8Array(),
|
|
51
|
+
name: identity.did,
|
|
52
|
+
displayName: identity.profile?.displayName ?? ""
|
|
53
|
+
},
|
|
54
|
+
pubKeyCredParams: [
|
|
55
|
+
{
|
|
56
|
+
type: "public-key",
|
|
57
|
+
alg: -8
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: "public-key",
|
|
61
|
+
alg: -7
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
authenticatorSelection: {
|
|
65
|
+
residentKey: "required",
|
|
66
|
+
requireResidentKey: true
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
invariant(credential, "Credential not available", {
|
|
71
|
+
F: __dxlog_file,
|
|
72
|
+
L: 66,
|
|
73
|
+
S: this,
|
|
74
|
+
A: [
|
|
75
|
+
"credential",
|
|
76
|
+
"'Credential not available'"
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
return {
|
|
80
|
+
recoveryKey: PublicKey.from(new Uint8Array(credential.response.getPublicKey())),
|
|
81
|
+
algorithm: credential.response.getPublicKeyAlgorithm() === -7 ? "ES256" : "ED25519"
|
|
82
|
+
};
|
|
83
|
+
})));
|
|
84
|
+
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
85
|
+
F: __dxlog_file,
|
|
86
|
+
L: 75,
|
|
87
|
+
S: this,
|
|
88
|
+
A: [
|
|
89
|
+
"client.services.services.IdentityService",
|
|
90
|
+
"'IdentityService not available'"
|
|
91
|
+
]
|
|
92
|
+
});
|
|
93
|
+
yield* Effect.promise(() => client.services.services.IdentityService.createRecoveryCredential({
|
|
94
|
+
data: {
|
|
95
|
+
recoveryKey,
|
|
96
|
+
algorithm,
|
|
97
|
+
lookupKey
|
|
98
|
+
}
|
|
99
|
+
}));
|
|
100
|
+
})));
|
|
101
|
+
var create_passkey_default = handler;
|
|
102
|
+
export {
|
|
103
|
+
create_passkey_default as default
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=create-passkey-PYZ47DJT.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/create-passkey.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Match from 'effect/Match';\n\nimport { Capability } from '@dxos/app-framework';\nimport { supportsNativePasskeys, createNativePasskey, extractPublicKeyFromAttestation } from '@dxos/app-toolkit';\nimport { PublicKey } from '@dxos/client';\nimport { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\n\nimport { CreatePasskey } from './definitions';\n\nimport { ClientCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof CreatePasskey> = CreatePasskey.pipe(\n Operation.withHandler(\n 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\n const { recoveryKey, algorithm } = yield* Match.value(supportsNativePasskeys()).pipe(\n Match.when(true, () =>\n Effect.gen(function* () {\n const result = yield* Effect.promise(() =>\n createNativePasskey({\n username: identity.did,\n userId: lookupKey.asUint8Array(),\n }),\n );\n const { publicKey, algorithm: alg } = extractPublicKeyFromAttestation(result.attestation_object);\n return {\n recoveryKey: PublicKey.from(publicKey),\n algorithm: alg === -7 ? 'ES256' : 'ED25519',\n };\n }),\n ),\n Match.orElse(() =>\n Effect.gen(function* () {\n const credential = yield* Effect.promise(() =>\n navigator.credentials.create({\n publicKey: {\n challenge: new Uint8Array(),\n rp: { id: location.hostname, name: 'Composer' },\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 },\n { type: 'public-key', alg: -7 },\n ],\n authenticatorSelection: {\n residentKey: 'required',\n requireResidentKey: true,\n },\n },\n }),\n );\n invariant(credential, 'Credential not available');\n return {\n recoveryKey: PublicKey.from(new Uint8Array((credential as any).response.getPublicKey())),\n algorithm: (credential as any).response.getPublicKeyAlgorithm() === -7 ? 'ES256' : 'ED25519',\n };\n }),\n ),\n );\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\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,WAAW;AAEvB,SAASC,kBAAkB;AAC3B,SAASC,wBAAwBC,qBAAqBC,uCAAuC;AAC7F,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;;AAM1B,IAAMC,UAAuDC,cAAcC,KACzEC,UAAUC,YACDC,kBAAW,aAAA;AAChB,QAAMC,SAAS,OAAOC,WAAWC,IAAIC,mBAAmBC,MAAM;AAC9D,QAAMC,WAAWL,OAAOM,KAAKD,SAASH,IAAG;AACzCK,YAAUF,UAAU,0BAAA;;;;;;;;;AAEpB,QAAMG,YAAYC,UAAUC,OAAM;AAElC,QAAM,EAAEC,aAAaC,UAAS,IAAK,OAAaC,YAAMC,uBAAAA,CAAAA,EAA0BlB,KACxEmB,WAAK,MAAM,MACRC,WAAI,aAAA;AACT,UAAMC,SAAS,OAAcC,eAAQ,MACnCC,oBAAoB;MAClBC,UAAUf,SAASgB;MACnBC,QAAQd,UAAUe,aAAY;IAChC,CAAA,CAAA;AAEF,UAAM,EAAEC,WAAWZ,WAAWa,IAAG,IAAKC,gCAAgCT,OAAOU,kBAAkB;AAC/F,WAAO;MACLhB,aAAaF,UAAUmB,KAAKJ,SAAAA;MAC5BZ,WAAWa,QAAQ,KAAK,UAAU;IACpC;EACF,CAAA,CAAA,GAEII,aAAO,MACJb,WAAI,aAAA;AACT,UAAMc,aAAa,OAAcZ,eAAQ,MACvCa,UAAUC,YAAYC,OAAO;MAC3BT,WAAW;QACTU,WAAW,IAAIC,WAAAA;QACfC,IAAI;UAAEC,IAAIC,SAASC;UAAUC,MAAM;QAAW;QAC9CC,MAAM;UACJJ,IAAI7B,UAAUe,aAAY;UAC1BiB,MAAMnC,SAASgB;UACfqB,aAAarC,SAASsC,SAASD,eAAe;QAChD;QACAE,kBAAkB;UAChB;YAAEC,MAAM;YAAcpB,KAAK;UAAG;UAC9B;YAAEoB,MAAM;YAAcpB,KAAK;UAAG;;QAEhCqB,wBAAwB;UACtBC,aAAa;UACbC,oBAAoB;QACtB;MACF;IACF,CAAA,CAAA;AAEFzC,cAAUuB,YAAY,4BAAA;;;;;;;;;AACtB,WAAO;MACLnB,aAAaF,UAAUmB,KAAK,IAAIO,WAAYL,WAAmBmB,SAASC,aAAY,CAAA,CAAA;MACpFtC,WAAYkB,WAAmBmB,SAASE,sBAAqB,MAAO,KAAK,UAAU;IACrF;EACF,CAAA,CAAA,CAAA;AAIJ5C,YAAUP,OAAOoD,SAASA,SAASC,iBAAiB,iCAAA;;;;;;;;;AACpD,SAAcnC,eAAQ,MACpBlB,OAAOoD,SAASA,SAASC,gBAAiBC,yBAAyB;IACjEC,MAAM;MACJ5C;MACAC;MACAJ;IACF;EACF,CAAA,CAAA;AAEJ,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAed;",
|
|
6
|
+
"names": ["Effect", "Match", "Capability", "supportsNativePasskeys", "createNativePasskey", "extractPublicKeyFromAttestation", "PublicKey", "invariant", "Operation", "handler", "CreatePasskey", "pipe", "Operation", "withHandler", "fnUntraced", "client", "Capability", "get", "ClientCapabilities", "Client", "identity", "halo", "invariant", "lookupKey", "PublicKey", "random", "recoveryKey", "algorithm", "value", "supportsNativePasskeys", "when", "gen", "result", "promise", "createNativePasskey", "username", "did", "userId", "asUint8Array", "publicKey", "alg", "extractPublicKeyFromAttestation", "attestation_object", "from", "orElse", "credential", "navigator", "credentials", "create", "challenge", "Uint8Array", "rp", "id", "location", "hostname", "name", "user", "displayName", "profile", "pubKeyCredParams", "type", "authenticatorSelection", "residentKey", "requireResidentKey", "response", "getPublicKey", "getPublicKeyAlgorithm", "services", "IdentityService", "createRecoveryCredential", "data"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RECOVERY_CODE_DIALOG
|
|
3
|
+
} from "./chunk-ELAYKIQU.mjs";
|
|
4
|
+
import {
|
|
5
|
+
CreateRecoveryCode
|
|
6
|
+
} from "./chunk-M43LJQ5U.mjs";
|
|
7
|
+
import {
|
|
8
|
+
ClientCapabilities
|
|
9
|
+
} from "./chunk-WNJRYPGG.mjs";
|
|
10
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
11
|
+
|
|
12
|
+
// src/operations/create-recovery-code.ts
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
14
|
+
import { Capability } from "@dxos/app-framework";
|
|
15
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
16
|
+
import { invariant } from "@dxos/invariant";
|
|
17
|
+
import { Operation } from "@dxos/operation";
|
|
18
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/create-recovery-code.ts";
|
|
19
|
+
var handler = CreateRecoveryCode.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
|
|
20
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
21
|
+
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
22
|
+
F: __dxlog_file,
|
|
23
|
+
L: 21,
|
|
24
|
+
S: this,
|
|
25
|
+
A: [
|
|
26
|
+
"client.services.services.IdentityService",
|
|
27
|
+
"'IdentityService not available'"
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
const { recoveryCode } = yield* Effect.promise(() => client.services.services.IdentityService.createRecoveryCredential({}));
|
|
31
|
+
yield* Operation.invoke(LayoutOperation.UpdateDialog, {
|
|
32
|
+
subject: RECOVERY_CODE_DIALOG,
|
|
33
|
+
blockAlign: "start",
|
|
34
|
+
type: "alert",
|
|
35
|
+
props: {
|
|
36
|
+
code: recoveryCode
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
})));
|
|
40
|
+
var create_recovery_code_default = handler;
|
|
41
|
+
export {
|
|
42
|
+
create_recovery_code_default as default
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=create-recovery-code-NSRU3QDJ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/create-recovery-code.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\n\nimport { CreateRecoveryCode } from './definitions';\n\nimport { RECOVERY_CODE_DIALOG } from '../constants';\nimport { ClientCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof CreateRecoveryCode> = CreateRecoveryCode.pipe(\n Operation.withHandler(\n 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\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;;AAO1B,IAAMC,UAA4DC,mBAAmBC,KACnFC,UAAUC,YACDC,kBAAW,aAAA;AAChB,QAAMC,SAAS,OAAOC,WAAWC,IAAIC,mBAAmBC,MAAM;AAC9DC,YAAUL,OAAOM,SAASA,SAASC,iBAAiB,iCAAA;;;;;;;;;AACpD,QAAM,EAAEC,aAAY,IAAK,OAAcC,eAAQ,MAC7CT,OAAOM,SAASA,SAASC,gBAAiBG,yBAAyB,CAAC,CAAA,CAAA;AAEtE,SAAOb,UAAUc,OAAOC,gBAAgBC,cAAc;IACpDC,SAASC;IACTC,YAAY;IACZC,MAAM;IACNC,OAAO;MAAEC,MAAMX;IAAa;EAC9B,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,+BAAed;",
|
|
6
|
+
"names": ["Effect", "Capability", "LayoutOperation", "invariant", "Operation", "handler", "CreateRecoveryCode", "pipe", "Operation", "withHandler", "fnUntraced", "client", "Capability", "get", "ClientCapabilities", "Client", "invariant", "services", "IdentityService", "recoveryCode", "promise", "createRecoveryCredential", "invoke", "LayoutOperation", "UpdateDialog", "subject", "RECOVERY_CODE_DIALOG", "blockAlign", "type", "props", "code"]
|
|
7
|
+
}
|
|
@@ -1,85 +1,70 @@
|
|
|
1
|
-
import
|
|
2
|
-
Client,
|
|
3
|
-
OperationResolver,
|
|
4
|
-
SchemaDefs
|
|
5
|
-
} from "./chunk-F7H2Y3Z2.mjs";
|
|
6
|
-
import {
|
|
7
|
-
Account,
|
|
8
|
-
ClientAction,
|
|
9
|
-
ClientCapabilities,
|
|
10
|
-
ClientEvents,
|
|
11
|
-
ClientOperation,
|
|
12
|
-
meta
|
|
13
|
-
} from "./chunk-4BZGRIFS.mjs";
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
14
2
|
|
|
15
3
|
// src/ClientPlugin.ts
|
|
16
|
-
import { ActivationEvent,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import { Capability } from "@dxos/app-framework";
|
|
20
|
-
var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("./app-graph-builder-3FGBMLTF.mjs"));
|
|
21
|
-
|
|
22
|
-
// src/capabilities/migrations/index.ts
|
|
23
|
-
import { Capability as Capability2 } from "@dxos/app-framework";
|
|
24
|
-
var Migrations = Capability2.lazy("Migrations", () => import("./migrations-3EBTAW3N.mjs"));
|
|
25
|
-
|
|
26
|
-
// src/capabilities/react-context/index.ts
|
|
27
|
-
import { Capability as Capability3 } from "@dxos/app-framework";
|
|
28
|
-
var ReactContext = Capability3.lazy("ReactContext", () => import("./react-context-4UABG3GP.mjs"));
|
|
29
|
-
|
|
30
|
-
// src/capabilities/react-surface/index.ts
|
|
31
|
-
import { Capability as Capability4 } from "@dxos/app-framework";
|
|
32
|
-
var ReactSurface = Capability4.lazy("ReactSurface", () => import("./react-surface-RSQ74XCT.mjs"));
|
|
4
|
+
import { ActivationEvent, ActivationEvents, Capability, Plugin } from "@dxos/app-framework";
|
|
5
|
+
import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
|
|
6
|
+
import { meta as meta2 } from "#meta";
|
|
33
7
|
|
|
34
8
|
// src/translations.ts
|
|
35
9
|
import { translations as shellTranslations } from "@dxos/shell/react";
|
|
10
|
+
import { meta } from "#meta";
|
|
36
11
|
var pluginTranslations = [
|
|
37
12
|
{
|
|
38
13
|
"en-US": {
|
|
39
14
|
[meta.id]: {
|
|
40
|
-
"account
|
|
41
|
-
"profile
|
|
42
|
-
"profile
|
|
43
|
-
"devices
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"danger
|
|
55
|
-
"
|
|
56
|
-
"display
|
|
57
|
-
"display
|
|
58
|
-
"
|
|
59
|
-
"icon
|
|
60
|
-
"
|
|
61
|
-
"hue
|
|
62
|
-
"
|
|
63
|
-
"did
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"credentials
|
|
67
|
-
"
|
|
68
|
-
"no
|
|
69
|
-
"recovery
|
|
70
|
-
"recovery
|
|
71
|
-
"
|
|
15
|
+
"account.label": "User profile",
|
|
16
|
+
"profile.label": "Profile",
|
|
17
|
+
"profile.description": "You can adjust how your user settings here.",
|
|
18
|
+
"devices.label": "Devices",
|
|
19
|
+
"add-device.label": "Add device",
|
|
20
|
+
"devices-verbose.label": "Manage devices",
|
|
21
|
+
"add-device.description": "Authenticating another device is a two-step process. To get started, create a code using the button below.",
|
|
22
|
+
"devices.description": "You can add and remove devices, configure your agent in the cloud, reset this device, or log in as a different identity here.",
|
|
23
|
+
"create-device-invitation.label": "Create code",
|
|
24
|
+
"qr-code.description": "Scan this QR code using the device you want to log in to, or copy the URL and share it with the new device.",
|
|
25
|
+
"security.label": "Security",
|
|
26
|
+
"reset-device.description": "Log out from this device, erasing all the data on this\xA0device.",
|
|
27
|
+
"join-new-identity.description": "Log out from this device, erasing all the data currently on this device, and use a QR code or URL to log\xA0in.",
|
|
28
|
+
"recover-identity.description": "Log out from this device, erasing all the data currently on this device, and use a passkey or recovery code to log\xA0in.",
|
|
29
|
+
"danger-zone.title": "Log out",
|
|
30
|
+
"danger-zone.description": "Because Composer is decentralized, logging out entails erasing all the data on this device. If you have any data on this device that you\u2019d like to keep, you can log in on a separate device using a passkey or complete a peer-to-peer\xA0device invitation above.",
|
|
31
|
+
"display-name.label": "Display name",
|
|
32
|
+
"display-name.description": "Your name as it appears in the app.",
|
|
33
|
+
"display-name-input.placeholder": "Enter a name",
|
|
34
|
+
"icon.label": "Avatar",
|
|
35
|
+
"icon.description": "The emoji used to represent the user.",
|
|
36
|
+
"hue.label": "Color",
|
|
37
|
+
"hue.description": "The color used to represent you in the app, including as your avatar\u2019s background, your cursor as it appears to others, and the messages you send in group threads.",
|
|
38
|
+
"did.label": "DID",
|
|
39
|
+
"did.description": "Your unique ID.",
|
|
40
|
+
"open-user-account.label": "Open user account",
|
|
41
|
+
"manage-credentials-dialog.title": "Manage Account Recovery",
|
|
42
|
+
"credentials-list.label": "Recovery credentials",
|
|
43
|
+
"no-credentials.title": "WARNING: There is currently no way to recover your account.",
|
|
44
|
+
"no-credentials.message": "Create a recovery credential above to secure your\xA0account.",
|
|
45
|
+
"recovery-setup-dialog.title": "Account Security",
|
|
46
|
+
"recovery-setup-dialog.description": "In order to maintain access to your account you need to register a recovery credential. Passkeys are the recommended way to do this, they can be stored in your browser or in a password\xA0manager.",
|
|
47
|
+
"create-passkey.label": "Create Passkey",
|
|
72
48
|
// TODO(wittjosiah): At link to user-focused passkey information.
|
|
73
49
|
// Something like https://www.tomsguide.com/news/what-are-passkeys.
|
|
74
|
-
"create
|
|
75
|
-
"create
|
|
76
|
-
"create
|
|
77
|
-
"recovery
|
|
78
|
-
"recovery
|
|
79
|
-
"recovery
|
|
80
|
-
"recovery
|
|
81
|
-
"recovery
|
|
82
|
-
"continue
|
|
50
|
+
"create-passkey.description": "A passkey is a secure and easy to use credential that can be used to recover your\xA0account.",
|
|
51
|
+
"create-recovery-code.label": "Create Recovery Code",
|
|
52
|
+
"create-recovery-code.description": "A recovery code is 12 word phrase representing a private\xA0key.",
|
|
53
|
+
"recovery-code-dialog.title": "Recovery Code",
|
|
54
|
+
"recovery-code-dialog.description": "This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your\xA0devices.",
|
|
55
|
+
"recovery-code-dialog-warning-1.message": "NOTE: This code will not be displayed\xA0again.",
|
|
56
|
+
"recovery-code-dialog-warning-2.message": "It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your\xA0account.",
|
|
57
|
+
"recovery-code-confirmation.label": "Please confirm you have saved the\xA0code.",
|
|
58
|
+
"continue.label": "Continue",
|
|
59
|
+
"auth-code.message": "Authorization code",
|
|
60
|
+
"auth-other-device-emoji.message": "Authorization icon",
|
|
61
|
+
"cancel.label": "Cancel",
|
|
62
|
+
"join-new-identity.label": "Join an existing identity",
|
|
63
|
+
"qr.label": "QR Code",
|
|
64
|
+
"recover-identity.label": "Use a recovery code",
|
|
65
|
+
"reset-device.label": "Reset storage",
|
|
66
|
+
"reset-dialog.description": "Reset storage",
|
|
67
|
+
"reset-dialog.title": "Reset storage"
|
|
83
68
|
}
|
|
84
69
|
}
|
|
85
70
|
}
|
|
@@ -90,10 +75,24 @@ var translations = [
|
|
|
90
75
|
];
|
|
91
76
|
|
|
92
77
|
// src/ClientPlugin.ts
|
|
93
|
-
|
|
78
|
+
import { ClientEvents } from "#types";
|
|
79
|
+
import { AppGraphBuilder, Client, Migrations, NavigationHandler, OperationHandler, ReactContext, ReactSurface, SchemaDefs } from "#capabilities";
|
|
80
|
+
var ClientPlugin = Plugin.define(meta2).pipe(AppPlugin.addAppGraphModule({
|
|
81
|
+
activate: AppGraphBuilder
|
|
82
|
+
}), AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({
|
|
83
|
+
activate: () => NavigationHandler({
|
|
84
|
+
invitationProp
|
|
85
|
+
})
|
|
86
|
+
})), AppPlugin.addOperationHandlerModule({
|
|
87
|
+
activate: OperationHandler
|
|
88
|
+
}), AppPlugin.addReactContextModule({
|
|
89
|
+
activate: ReactContext
|
|
90
|
+
}), AppPlugin.addTranslationsModule({
|
|
91
|
+
translations
|
|
92
|
+
}), Plugin.addModule((options) => {
|
|
94
93
|
return {
|
|
95
|
-
id:
|
|
96
|
-
activatesOn: ActivationEvent.oneOf(
|
|
94
|
+
id: Capability.getModuleTag(Client),
|
|
95
|
+
activatesOn: ActivationEvent.oneOf(ActivationEvents.Startup, AppActivationEvents.SetupAppGraph),
|
|
97
96
|
activatesAfter: [
|
|
98
97
|
ClientEvents.ClientReady
|
|
99
98
|
],
|
|
@@ -102,7 +101,7 @@ var ClientPlugin = Plugin.define(meta).pipe(Plugin.addModule((options) => {
|
|
|
102
101
|
}), Plugin.addModule({
|
|
103
102
|
activatesOn: ClientEvents.ClientReady,
|
|
104
103
|
activatesBefore: [
|
|
105
|
-
|
|
104
|
+
AppActivationEvents.SetupSchema
|
|
106
105
|
],
|
|
107
106
|
activate: SchemaDefs
|
|
108
107
|
}), Plugin.addModule({
|
|
@@ -111,36 +110,34 @@ var ClientPlugin = Plugin.define(meta).pipe(Plugin.addModule((options) => {
|
|
|
111
110
|
ClientEvents.SetupMigration
|
|
112
111
|
],
|
|
113
112
|
activate: Migrations
|
|
114
|
-
}),
|
|
115
|
-
activate: ReactContext
|
|
116
|
-
}), Plugin.addModule(({ invitationUrl = window.location.origin, invitationProp = "deviceInvitationCode", onReset }) => {
|
|
113
|
+
}), Plugin.addModule(({ shareableLinkOrigin = typeof window !== "undefined" ? window.location.origin : "http://localhost", invitationPath = "/", invitationProp = "deviceInvitationCode", onReset }) => {
|
|
117
114
|
const createInvitationUrl = (invitationCode) => {
|
|
118
|
-
const baseUrl = new URL(
|
|
115
|
+
const baseUrl = new URL(invitationPath || "/", shareableLinkOrigin);
|
|
119
116
|
baseUrl.searchParams.set(invitationProp, invitationCode);
|
|
120
117
|
return baseUrl.toString();
|
|
121
118
|
};
|
|
122
119
|
return {
|
|
123
|
-
id:
|
|
124
|
-
activatesOn:
|
|
120
|
+
id: Capability.getModuleTag(ReactSurface),
|
|
121
|
+
activatesOn: ActivationEvents.SetupReactSurface,
|
|
125
122
|
activate: () => ReactSurface({
|
|
126
123
|
createInvitationUrl,
|
|
127
124
|
onReset
|
|
128
125
|
})
|
|
129
126
|
};
|
|
130
|
-
}), Common.Plugin.addAppGraphModule({
|
|
131
|
-
activate: AppGraphBuilder
|
|
132
|
-
}), Common.Plugin.addOperationResolverModule({
|
|
133
|
-
activate: OperationResolver
|
|
134
|
-
}), Common.Plugin.addTranslationsModule({
|
|
135
|
-
translations
|
|
136
127
|
}), Plugin.make);
|
|
128
|
+
|
|
129
|
+
// src/meta.ts
|
|
130
|
+
import { trim } from "@dxos/util";
|
|
131
|
+
var meta3 = {
|
|
132
|
+
id: "org.dxos.plugin.client",
|
|
133
|
+
name: "Client",
|
|
134
|
+
description: trim`
|
|
135
|
+
Core client connectivity and peer-to-peer networking infrastructure.
|
|
136
|
+
Manages identity, authentication, and real-time synchronization across devices.
|
|
137
|
+
`
|
|
138
|
+
};
|
|
137
139
|
export {
|
|
138
|
-
Account,
|
|
139
|
-
ClientAction,
|
|
140
|
-
ClientCapabilities,
|
|
141
|
-
ClientEvents,
|
|
142
|
-
ClientOperation,
|
|
143
140
|
ClientPlugin,
|
|
144
|
-
meta
|
|
141
|
+
meta3 as meta
|
|
145
142
|
};
|
|
146
143
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/ClientPlugin.ts", "../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent,
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["ActivationEvent", "
|
|
3
|
+
"sources": ["../../../src/ClientPlugin.ts", "../../../src/translations.ts", "../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent, ActivationEvents, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\n\nimport { meta } from '#meta';\nimport { translations } from './translations';\nimport { ClientEvents } from '#types';\nimport { type ClientPluginOptions } from '#types';\n\nimport {\n AppGraphBuilder,\n Client,\n Migrations,\n NavigationHandler,\n OperationHandler,\n ReactContext,\n ReactSurface,\n SchemaDefs,\n} from '#capabilities';\n\nexport const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({\n activate: () => NavigationHandler({ invitationProp }),\n })),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addReactContextModule({ activate: ReactContext }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule((options) => {\n return {\n id: Capability.getModuleTag(Client),\n activatesOn: ActivationEvent.oneOf(ActivationEvents.Startup, AppActivationEvents.SetupAppGraph),\n activatesAfter: [ClientEvents.ClientReady],\n activate: () => Client(options),\n };\n }),\n Plugin.addModule({\n activatesOn: ClientEvents.ClientReady,\n activatesBefore: [AppActivationEvents.SetupSchema],\n activate: SchemaDefs,\n }),\n Plugin.addModule({\n activatesOn: ClientEvents.ClientReady,\n activatesBefore: [ClientEvents.SetupMigration],\n activate: Migrations,\n }),\n Plugin.addModule(\n ({\n shareableLinkOrigin = typeof window !== 'undefined' ? window.location.origin : 'http://localhost',\n invitationPath = '/',\n invitationProp = 'deviceInvitationCode',\n onReset,\n }) => {\n const createInvitationUrl = (invitationCode: string) => {\n const baseUrl = new URL(invitationPath || '/', shareableLinkOrigin);\n baseUrl.searchParams.set(invitationProp, invitationCode);\n return baseUrl.toString();\n };\n\n return {\n id: Capability.getModuleTag(ReactSurface),\n activatesOn: ActivationEvents.SetupReactSurface,\n activate: () => ReactSurface({ createInvitationUrl, onReset }),\n };\n },\n ),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as shellTranslations } from '@dxos/shell/react';\n\nimport { meta } from '#meta';\n\n// TODO(burdon): Disambiguate with sdk/shell\nconst pluginTranslations = [\n {\n 'en-US': {\n [meta.id]: {\n 'account.label': 'User profile',\n 'profile.label': 'Profile',\n 'profile.description': 'You can adjust how your user settings here.',\n 'devices.label': 'Devices',\n 'add-device.label': 'Add device',\n 'devices-verbose.label': 'Manage devices',\n 'add-device.description':\n 'Authenticating another device is a two-step process. To get started, create a code using the button below.',\n 'devices.description':\n 'You can add and remove devices, configure your agent in the cloud, reset this device, or log in as a different identity here.',\n 'create-device-invitation.label': 'Create code',\n 'qr-code.description':\n 'Scan this QR code using the device you want to log in to, or copy the URL and share it with the new device.',\n 'security.label': 'Security',\n 'reset-device.description': 'Log out from this device, erasing all the data on this device.',\n 'join-new-identity.description':\n 'Log out from this device, erasing all the data currently on this device, and use a QR code or URL to log in.',\n 'recover-identity.description':\n 'Log out from this device, erasing all the data currently on this device, and use a passkey or recovery code to log in.',\n 'danger-zone.title': 'Log out',\n 'danger-zone.description':\n 'Because Composer is decentralized, logging out entails erasing all the data on this device. If you have any data on this device that you’d like to keep, you can log in on a separate device using a passkey or complete a peer-to-peer device invitation above.',\n 'display-name.label': 'Display name',\n 'display-name.description': 'Your name as it appears in the app.',\n 'display-name-input.placeholder': 'Enter a name',\n 'icon.label': 'Avatar',\n 'icon.description': 'The emoji used to represent the user.',\n 'hue.label': 'Color',\n 'hue.description':\n 'The color used to represent you in the app, including as your avatar’s background, your cursor as it appears to others, and the messages you send in group threads.',\n 'did.label': 'DID',\n 'did.description': 'Your unique ID.',\n 'open-user-account.label': 'Open user account',\n 'manage-credentials-dialog.title': 'Manage Account Recovery',\n 'credentials-list.label': 'Recovery credentials',\n 'no-credentials.title': 'WARNING: There is currently no way to recover your account.',\n 'no-credentials.message': 'Create a recovery credential above to secure your account.',\n 'recovery-setup-dialog.title': 'Account Security',\n 'recovery-setup-dialog.description':\n 'In order to maintain access to your account you need to register a recovery credential. Passkeys are the recommended way to do this, they can be stored in your browser or in a password manager.',\n 'create-passkey.label': 'Create Passkey',\n // TODO(wittjosiah): At link to user-focused passkey information.\n // Something like https://www.tomsguide.com/news/what-are-passkeys.\n 'create-passkey.description':\n 'A passkey is a secure and easy to use credential that can be used to recover your account.',\n 'create-recovery-code.label': 'Create Recovery Code',\n 'create-recovery-code.description': 'A recovery code is 12 word phrase representing a private key.',\n 'recovery-code-dialog.title': 'Recovery Code',\n 'recovery-code-dialog.description':\n 'This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your devices.',\n 'recovery-code-dialog-warning-1.message': 'NOTE: This code will not be displayed again.',\n 'recovery-code-dialog-warning-2.message':\n 'It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your account.',\n 'recovery-code-confirmation.label': 'Please confirm you have saved the code.',\n 'continue.label': 'Continue',\n 'auth-code.message': 'Authorization code',\n 'auth-other-device-emoji.message': 'Authorization icon',\n 'cancel.label': 'Cancel',\n 'join-new-identity.label': 'Join an existing identity',\n 'qr.label': 'QR Code',\n 'recover-identity.label': 'Use a recovery code',\n 'reset-device.label': 'Reset storage',\n 'reset-dialog.description': 'Reset storage',\n 'reset-dialog.title': 'Reset storage',\n },\n },\n },\n] as const satisfies Resource[];\n\nexport const translations: Resource[] = [...pluginTranslations, ...shellTranslations];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.client',\n name: 'Client',\n description: trim`\n Core client connectivity and peer-to-peer networking infrastructure.\n Manages identity, authentication, and real-time synchronization across devices.\n `,\n};\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,iBAAiBC,kBAAkBC,YAAYC,cAAc;AACtE,SAASC,qBAAqBC,iBAAiB;AAE/C,SAASC,QAAAA,aAAY;;;ACFrB,SAASC,gBAAgBC,yBAAyB;AAElD,SAASC,YAAY;AAGrB,IAAMC,qBAAqB;EACzB;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,iBAAiB;QACjB,iBAAiB;QACjB,uBAAuB;QACvB,iBAAiB;QACjB,oBAAoB;QACpB,yBAAyB;QACzB,0BACE;QACF,uBACE;QACF,kCAAkC;QAClC,uBACE;QACF,kBAAkB;QAClB,4BAA4B;QAC5B,iCACE;QACF,gCACE;QACF,qBAAqB;QACrB,2BACE;QACF,sBAAsB;QACtB,4BAA4B;QAC5B,kCAAkC;QAClC,cAAc;QACd,oBAAoB;QACpB,aAAa;QACb,mBACE;QACF,aAAa;QACb,mBAAmB;QACnB,2BAA2B;QAC3B,mCAAmC;QACnC,0BAA0B;QAC1B,wBAAwB;QACxB,0BAA0B;QAC1B,+BAA+B;QAC/B,qCACE;QACF,wBAAwB;;;QAGxB,8BACE;QACF,8BAA8B;QAC9B,oCAAoC;QACpC,8BAA8B;QAC9B,oCACE;QACF,0CAA0C;QAC1C,0CACE;QACF,oCAAoC;QACpC,kBAAkB;QAClB,qBAAqB;QACrB,mCAAmC;QACnC,gBAAgB;QAChB,2BAA2B;QAC3B,YAAY;QACZ,0BAA0B;QAC1B,sBAAsB;QACtB,4BAA4B;QAC5B,sBAAsB;MACxB;IACF;EACF;;AAGK,IAAMC,eAA2B;KAAIH;KAAuBI;;;;AD1EnE,SAASC,oBAAoB;AAG7B,SACEC,iBACAC,QACAC,YACAC,mBACAC,kBACAC,cACAC,cACAC,kBACK;AAEA,IAAMC,eAAeC,OAAOC,OAA4BC,KAAAA,EAAMC,KACnEC,UAAUC,kBAAkB;EAAEC,UAAUC;AAAgB,CAAA,GACxDH,UAAUI,2BAA2B,CAAC,EAAEC,eAAc,OAAQ;EAC5DH,UAAU,MAAMI,kBAAkB;IAAED;EAAe,CAAA;AACrD,EAAA,GACAL,UAAUO,0BAA0B;EAAEL,UAAUM;AAAiB,CAAA,GACjER,UAAUS,sBAAsB;EAAEP,UAAUQ;AAAa,CAAA,GACzDV,UAAUW,sBAAsB;EAAEC;AAAa,CAAA,GAC/ChB,OAAOiB,UAAU,CAACC,YAAAA;AAChB,SAAO;IACLC,IAAIC,WAAWC,aAAaC,MAAAA;IAC5BC,aAAaC,gBAAgBC,MAAMC,iBAAiBC,SAASC,oBAAoBC,aAAa;IAC9FC,gBAAgB;MAACC,aAAaC;;IAC9B1B,UAAU,MAAMgB,OAAOJ,OAAAA;EACzB;AACF,CAAA,GACAlB,OAAOiB,UAAU;EACfM,aAAaQ,aAAaC;EAC1BC,iBAAiB;IAACL,oBAAoBM;;EACtC5B,UAAU6B;AACZ,CAAA,GACAnC,OAAOiB,UAAU;EACfM,aAAaQ,aAAaC;EAC1BC,iBAAiB;IAACF,aAAaK;;EAC/B9B,UAAU+B;AACZ,CAAA,GACArC,OAAOiB,UACL,CAAC,EACCqB,sBAAsB,OAAOC,WAAW,cAAcA,OAAOC,SAASC,SAAS,oBAC/EC,iBAAiB,KACjBjC,iBAAiB,wBACjBkC,QAAO,MACR;AACC,QAAMC,sBAAsB,CAACC,mBAAAA;AAC3B,UAAMC,UAAU,IAAIC,IAAIL,kBAAkB,KAAKJ,mBAAAA;AAC/CQ,YAAQE,aAAaC,IAAIxC,gBAAgBoC,cAAAA;AACzC,WAAOC,QAAQI,SAAQ;EACzB;AAEA,SAAO;IACL/B,IAAIC,WAAWC,aAAa8B,YAAAA;IAC5B5B,aAAaG,iBAAiB0B;IAC9B9C,UAAU,MAAM6C,aAAa;MAAEP;MAAqBD;IAAQ,CAAA;EAC9D;AACF,CAAA,GAEF3C,OAAOqD,IAAI;;;AEhEb,SAASC,YAAY;AAEd,IAAMC,QAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;AAIf;",
|
|
6
|
+
"names": ["ActivationEvent", "ActivationEvents", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "meta", "translations", "shellTranslations", "meta", "pluginTranslations", "meta", "id", "translations", "shellTranslations", "ClientEvents", "AppGraphBuilder", "Client", "Migrations", "NavigationHandler", "OperationHandler", "ReactContext", "ReactSurface", "SchemaDefs", "ClientPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addAppGraphModule", "activate", "AppGraphBuilder", "addNavigationHandlerModule", "invitationProp", "NavigationHandler", "addOperationHandlerModule", "OperationHandler", "addReactContextModule", "ReactContext", "addTranslationsModule", "translations", "addModule", "options", "id", "Capability", "getModuleTag", "Client", "activatesOn", "ActivationEvent", "oneOf", "ActivationEvents", "Startup", "AppActivationEvents", "SetupAppGraph", "activatesAfter", "ClientEvents", "ClientReady", "activatesBefore", "SetupSchema", "SchemaDefs", "SetupMigration", "Migrations", "shareableLinkOrigin", "window", "location", "origin", "invitationPath", "onReset", "createInvitationUrl", "invitationCode", "baseUrl", "URL", "searchParams", "set", "toString", "ReactSurface", "SetupReactSurface", "make", "trim", "meta", "id", "name", "description", "trim"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
JOIN_DIALOG
|
|
3
|
+
} from "./chunk-ELAYKIQU.mjs";
|
|
4
|
+
import {
|
|
5
|
+
JoinIdentity
|
|
6
|
+
} from "./chunk-M43LJQ5U.mjs";
|
|
7
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
8
|
+
|
|
9
|
+
// src/operations/join-identity.ts
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
12
|
+
import { Operation } from "@dxos/operation";
|
|
13
|
+
var handler = JoinIdentity.pipe(Operation.withHandler(Effect.fnUntraced(function* (data) {
|
|
14
|
+
yield* Operation.invoke(LayoutOperation.UpdateDialog, {
|
|
15
|
+
subject: JOIN_DIALOG,
|
|
16
|
+
blockAlign: "start",
|
|
17
|
+
props: {
|
|
18
|
+
initialInvitationCode: data.invitationCode,
|
|
19
|
+
initialDisposition: "accept-halo-invitation"
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
})));
|
|
23
|
+
var join_identity_default = handler;
|
|
24
|
+
export {
|
|
25
|
+
join_identity_default as default
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=join-identity-B6DC2VW7.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/join-identity.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\n\nimport { JoinIdentity } from './definitions';\n\nimport { JOIN_DIALOG } from '../constants';\n\nconst handler: Operation.WithHandler<typeof JoinIdentity> = JoinIdentity.pipe(\n Operation.withHandler(\n 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\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAM1B,IAAMC,UAAsDC,aAAaC,KACvEC,UAAUC,YACDC,kBAAW,WAAWC,MAAI;AAC/B,SAAOH,UAAUI,OAAOC,gBAAgBC,cAAc;IACpDC,SAASC;IACTC,YAAY;IACZC,OAAO;MACLC,uBAAuBR,KAAKS;MAC5BC,oBAAoB;IACtB;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,wBAAehB;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Operation", "handler", "JoinIdentity", "pipe", "Operation", "withHandler", "fnUntraced", "data", "invoke", "LayoutOperation", "UpdateDialog", "subject", "JOIN_DIALOG", "blockAlign", "props", "initialInvitationCode", "invitationCode", "initialDisposition"]
|
|
7
|
+
}
|