@dxos/plugin-client 0.8.4-main.72ec0f3 → 0.8.4-main.7996785055
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-6AMXWDQC.mjs +270 -0
- package/dist/lib/browser/DevicesContainer-6AMXWDQC.mjs.map +7 -0
- package/dist/lib/browser/JoinDialog-V6E5PRDR.mjs +61 -0
- package/dist/lib/browser/JoinDialog-V6E5PRDR.mjs.map +7 -0
- package/dist/lib/browser/ProfileContainer-NY67SRMY.mjs +172 -0
- package/dist/lib/browser/ProfileContainer-NY67SRMY.mjs.map +7 -0
- package/dist/lib/browser/RecoveryCodeDialog-EI2PAJSC.mjs +61 -0
- package/dist/lib/browser/RecoveryCodeDialog-EI2PAJSC.mjs.map +7 -0
- package/dist/lib/browser/RecoveryCredentialsContainer-EY7S2Z5D.mjs +59 -0
- package/dist/lib/browser/RecoveryCredentialsContainer-EY7S2Z5D.mjs.map +7 -0
- package/dist/lib/browser/ResetDialog-IG33IDFF.mjs +54 -0
- package/dist/lib/browser/ResetDialog-IG33IDFF.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-VALIFJHW.mjs +125 -0
- package/dist/lib/browser/app-graph-builder-VALIFJHW.mjs.map +7 -0
- package/dist/lib/browser/chunk-5JMLFUGB.mjs +177 -0
- package/dist/lib/browser/chunk-5JMLFUGB.mjs.map +7 -0
- package/dist/lib/browser/{chunk-RDIG75CA.mjs → chunk-AYDQURY2.mjs} +35 -13
- package/dist/lib/browser/chunk-AYDQURY2.mjs.map +7 -0
- package/dist/lib/browser/chunk-C2DNTTWV.mjs +18 -0
- package/dist/lib/browser/chunk-C2DNTTWV.mjs.map +7 -0
- package/dist/lib/browser/chunk-HSFDKP5D.mjs +15 -0
- package/dist/lib/browser/chunk-HSFDKP5D.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-ZRVMXLDR.mjs → chunk-JHSBBOCI.mjs} +2 -2
- package/dist/lib/browser/chunk-JHSBBOCI.mjs.map +7 -0
- package/dist/lib/browser/chunk-RGQBPDPU.mjs +8 -0
- package/dist/lib/browser/chunk-RGQBPDPU.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +1071 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/client-ZBVFWBCD.mjs +95 -0
- package/dist/lib/browser/client-ZBVFWBCD.mjs.map +7 -0
- package/dist/lib/browser/create-agent-RVXHS2OH.mjs +35 -0
- package/dist/lib/browser/create-agent-RVXHS2OH.mjs.map +7 -0
- package/dist/lib/browser/create-identity-4WNBRKDW.mjs +31 -0
- package/dist/lib/browser/create-identity-4WNBRKDW.mjs.map +7 -0
- package/dist/lib/browser/create-passkey-2EEPMDV5.mjs +90 -0
- package/dist/lib/browser/create-passkey-2EEPMDV5.mjs.map +7 -0
- package/dist/lib/browser/create-recovery-code-BPF6HKWF.mjs +45 -0
- package/dist/lib/browser/create-recovery-code-BPF6HKWF.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +76 -84
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/join-identity-DVJMX65P.mjs +28 -0
- package/dist/lib/browser/join-identity-DVJMX65P.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/migrations-I3DAEO7O.mjs +26 -0
- package/dist/lib/browser/migrations-I3DAEO7O.mjs.map +7 -0
- package/dist/lib/browser/operation-handler-C4KCDS7Z.mjs +17 -0
- package/dist/lib/browser/operation-handler-C4KCDS7Z.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/react-context-YAEJ65GW.mjs +27 -0
- package/dist/lib/browser/react-context-YAEJ65GW.mjs.map +7 -0
- package/dist/lib/browser/react-surface-FLUCQMIE.mjs +78 -0
- package/dist/lib/browser/react-surface-FLUCQMIE.mjs.map +7 -0
- package/dist/lib/browser/recover-identity-74HATOKZ.mjs +27 -0
- package/dist/lib/browser/recover-identity-74HATOKZ.mjs.map +7 -0
- package/dist/lib/browser/redeem-passkey-FUNL7BVW.mjs +55 -0
- package/dist/lib/browser/redeem-passkey-FUNL7BVW.mjs.map +7 -0
- package/dist/lib/browser/redeem-token-GIPESPST.mjs +38 -0
- package/dist/lib/browser/redeem-token-GIPESPST.mjs.map +7 -0
- package/dist/lib/browser/reset-storage-GLHDCVZ4.mjs +27 -0
- package/dist/lib/browser/reset-storage-GLHDCVZ4.mjs.map +7 -0
- package/dist/lib/browser/schema-defs-VNCHLGPQ.mjs +29 -0
- package/dist/lib/browser/schema-defs-VNCHLGPQ.mjs.map +7 -0
- package/dist/lib/browser/share-identity-VWFBNFO3.mjs +32 -0
- package/dist/lib/browser/share-identity-VWFBNFO3.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 +9 -4
- package/dist/lib/node-esm/DevicesContainer-FCHPW753.mjs +271 -0
- package/dist/lib/node-esm/DevicesContainer-FCHPW753.mjs.map +7 -0
- package/dist/lib/node-esm/JoinDialog-PQHUAN5Y.mjs +62 -0
- package/dist/lib/node-esm/JoinDialog-PQHUAN5Y.mjs.map +7 -0
- package/dist/lib/node-esm/ProfileContainer-H24VZJE3.mjs +173 -0
- package/dist/lib/node-esm/ProfileContainer-H24VZJE3.mjs.map +7 -0
- package/dist/lib/node-esm/RecoveryCodeDialog-PWBHIQ6D.mjs +62 -0
- package/dist/lib/node-esm/RecoveryCodeDialog-PWBHIQ6D.mjs.map +7 -0
- package/dist/lib/node-esm/RecoveryCredentialsContainer-BLURHMW6.mjs +60 -0
- package/dist/lib/node-esm/RecoveryCredentialsContainer-BLURHMW6.mjs.map +7 -0
- package/dist/lib/node-esm/ResetDialog-NSALOOOA.mjs +55 -0
- package/dist/lib/node-esm/ResetDialog-NSALOOOA.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-44YGDMXN.mjs +126 -0
- package/dist/lib/node-esm/app-graph-builder-44YGDMXN.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-42EQVH2Q.mjs +10 -0
- package/dist/lib/node-esm/chunk-42EQVH2Q.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-VENKFPBC.mjs → chunk-5NENK2KO.mjs} +35 -13
- package/dist/lib/node-esm/chunk-5NENK2KO.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-QT3EQXDU.mjs → chunk-BOTJSPCT.mjs} +2 -2
- package/dist/lib/node-esm/chunk-BOTJSPCT.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ETBW54NV.mjs +20 -0
- package/dist/lib/node-esm/chunk-ETBW54NV.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-FU7MBWDD.mjs +178 -0
- package/dist/lib/node-esm/chunk-FU7MBWDD.mjs.map +7 -0
- 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-VLNCZYIC.mjs +16 -0
- package/dist/lib/node-esm/chunk-VLNCZYIC.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +1072 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/client-OFM3CBYZ.mjs +96 -0
- package/dist/lib/node-esm/client-OFM3CBYZ.mjs.map +7 -0
- package/dist/lib/node-esm/create-agent-QIWBTZSQ.mjs +36 -0
- package/dist/lib/node-esm/create-agent-QIWBTZSQ.mjs.map +7 -0
- package/dist/lib/node-esm/create-identity-P7WDMAE7.mjs +32 -0
- package/dist/lib/node-esm/create-identity-P7WDMAE7.mjs.map +7 -0
- package/dist/lib/node-esm/create-passkey-77HCW3ES.mjs +91 -0
- package/dist/lib/node-esm/create-passkey-77HCW3ES.mjs.map +7 -0
- package/dist/lib/node-esm/create-recovery-code-CCDGTSPG.mjs +46 -0
- package/dist/lib/node-esm/create-recovery-code-CCDGTSPG.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +76 -84
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/join-identity-NOGEP7RA.mjs +29 -0
- package/dist/lib/node-esm/join-identity-NOGEP7RA.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/migrations-UXF725OZ.mjs +27 -0
- package/dist/lib/node-esm/migrations-UXF725OZ.mjs.map +7 -0
- package/dist/lib/node-esm/operation-handler-KC5K4KGW.mjs +18 -0
- package/dist/lib/node-esm/operation-handler-KC5K4KGW.mjs.map +7 -0
- 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/react-context-QBDHUDWD.mjs +28 -0
- package/dist/lib/node-esm/react-context-QBDHUDWD.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-P5WSXPAW.mjs +79 -0
- package/dist/lib/node-esm/react-surface-P5WSXPAW.mjs.map +7 -0
- package/dist/lib/node-esm/recover-identity-DTFXXLZD.mjs +28 -0
- package/dist/lib/node-esm/recover-identity-DTFXXLZD.mjs.map +7 -0
- package/dist/lib/node-esm/redeem-passkey-BXNNAV2J.mjs +56 -0
- package/dist/lib/node-esm/redeem-passkey-BXNNAV2J.mjs.map +7 -0
- package/dist/lib/node-esm/redeem-token-XBW7OPDA.mjs +39 -0
- package/dist/lib/node-esm/redeem-token-XBW7OPDA.mjs.map +7 -0
- package/dist/lib/node-esm/reset-storage-SXIZA4DV.mjs +28 -0
- package/dist/lib/node-esm/reset-storage-SXIZA4DV.mjs.map +7 -0
- package/dist/lib/node-esm/schema-defs-2UZZD4Q4.mjs +30 -0
- package/dist/lib/node-esm/schema-defs-2UZZD4Q4.mjs.map +7 -0
- package/dist/lib/node-esm/share-identity-TEHV6CZC.mjs +33 -0
- package/dist/lib/node-esm/share-identity-TEHV6CZC.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 +9 -4
- package/dist/types/src/ClientPlugin.d.ts +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 +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/client/client.d.ts +8 -0
- package/dist/types/src/capabilities/client/client.d.ts.map +1 -0
- package/dist/types/src/capabilities/client/index.d.ts +18 -0
- package/dist/types/src/capabilities/client/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +7 -19
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations/index.d.ts +3 -0
- package/dist/types/src/capabilities/migrations/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/migrations/migrations.d.ts +5 -0
- package/dist/types/src/capabilities/migrations/migrations.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts +4 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-context/index.d.ts +7 -0
- package/dist/types/src/capabilities/react-context/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-context/react-context.d.ts +10 -0
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +9 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/schema-defs/index.d.ts +3 -0
- package/dist/types/src/capabilities/schema-defs/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts +5 -0
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts.map +1 -0
- package/dist/types/src/cli/commands/config/index.d.ts +5 -0
- package/dist/types/src/cli/commands/config/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/config/view.d.ts +5 -0
- package/dist/types/src/cli/commands/config/view.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/index.d.ts +7 -0
- package/dist/types/src/cli/commands/device/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/info/index.d.ts +2 -0
- package/dist/types/src/cli/commands/device/info/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/info/info.d.ts +7 -0
- package/dist/types/src/cli/commands/device/info/info.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/info/info.test.d.ts +2 -0
- package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/list/index.d.ts +2 -0
- package/dist/types/src/cli/commands/device/list/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/list/list.d.ts +7 -0
- package/dist/types/src/cli/commands/device/list/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/list/list.test.d.ts +2 -0
- package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/update/index.d.ts +2 -0
- package/dist/types/src/cli/commands/device/update/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/update/update.d.ts +11 -0
- package/dist/types/src/cli/commands/device/update/update.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/util.d.ts +16 -0
- package/dist/types/src/cli/commands/device/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/edge/index.d.ts +5 -0
- package/dist/types/src/cli/commands/edge/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/edge/status.d.ts +7 -0
- package/dist/types/src/cli/commands/edge/status.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/create/create.d.ts +15 -0
- package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/create/create.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/create/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/create/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/add/add.d.ts +13 -0
- package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/add/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/index.d.ts +12 -0
- package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/list/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts +19 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/identity/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/index.d.ts +3 -0
- package/dist/types/src/cli/commands/halo/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/join/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/join/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/join/join.d.ts +8 -0
- package/dist/types/src/cli/commands/halo/join/join.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/join/join.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/keys/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/recover/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/recover/recover.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/seed/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/share/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/share/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/share/share.d.ts +15 -0
- package/dist/types/src/cli/commands/halo/share/share.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/update/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/update/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/update/update.d.ts +11 -0
- package/dist/types/src/cli/commands/halo/update/update.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/update/update.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/util.d.ts +13 -0
- package/dist/types/src/cli/commands/halo/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/index.d.ts +6 -0
- package/dist/types/src/cli/commands/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/create.d.ts +10 -0
- package/dist/types/src/cli/commands/profile/create.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/delete.d.ts +8 -0
- package/dist/types/src/cli/commands/profile/delete.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/import.d.ts +17 -0
- package/dist/types/src/cli/commands/profile/import.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/index.d.ts +19 -0
- package/dist/types/src/cli/commands/profile/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/inspect.d.ts +13 -0
- package/dist/types/src/cli/commands/profile/inspect.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/list.d.ts +6 -0
- package/dist/types/src/cli/commands/profile/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/reset.d.ts +8 -0
- package/dist/types/src/cli/commands/profile/reset.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/util.d.ts +24 -0
- package/dist/types/src/cli/commands/profile/util.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +4 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/cli/testing/test-console.d.ts +37 -0
- package/dist/types/src/cli/testing/test-console.d.ts.map +1 -0
- 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/constants.d.ts +4 -0
- package/dist/types/src/constants.d.ts.map +1 -0
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -0
- package/dist/types/src/{components → containers/DevicesContainer}/DevicesContainer.stories.d.ts +10 -54
- 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/{components → containers/JoinDialog}/JoinDialog.d.ts +0 -1
- 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 +14 -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/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.d.ts +0 -1
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts +16 -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 +14 -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/containers/ResetDialog/ResetDialog.d.ts +9 -0
- package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -0
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +19 -0
- 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 +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.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 +2 -48
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +10 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +9 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +36 -31
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +74 -38
- package/src/ClientPlugin.ts +45 -55
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +97 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/client/client.ts +79 -0
- package/src/capabilities/client/index.ts +7 -0
- package/src/capabilities/index.ts +7 -11
- package/src/capabilities/migrations/index.ts +7 -0
- package/src/capabilities/migrations/migrations.ts +30 -0
- package/src/capabilities/operation-handler/index.ts +11 -0
- package/src/capabilities/operation-handler/operation-handler.ts +16 -0
- package/src/capabilities/react-context/index.ts +7 -0
- package/src/capabilities/react-context/react-context.tsx +25 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +74 -0
- package/src/capabilities/schema-defs/index.ts +7 -0
- package/src/capabilities/schema-defs/schema-defs.ts +36 -0
- package/src/cli/commands/config/index.ts +12 -0
- package/src/cli/commands/config/view.ts +29 -0
- package/src/cli/commands/device/index.ts +14 -0
- package/src/cli/commands/device/info/index.ts +5 -0
- package/src/cli/commands/device/info/info.test.ts +28 -0
- package/src/cli/commands/device/info/info.ts +48 -0
- package/src/cli/commands/device/list/index.ts +5 -0
- package/src/cli/commands/device/list/list.test.ts +30 -0
- package/src/cli/commands/device/list/list.ts +28 -0
- package/src/cli/commands/device/update/index.ts +5 -0
- package/src/cli/commands/device/update/update.ts +68 -0
- package/src/cli/commands/device/util.ts +55 -0
- package/src/cli/commands/edge/index.ts +12 -0
- package/src/cli/commands/edge/status.ts +46 -0
- package/src/cli/commands/halo/create/create.test.ts +52 -0
- package/src/cli/commands/halo/create/create.ts +82 -0
- package/src/cli/commands/halo/create/index.ts +5 -0
- package/src/cli/commands/halo/credential/add/add.ts +97 -0
- package/src/cli/commands/halo/credential/add/index.ts +5 -0
- package/src/cli/commands/halo/credential/index.ts +13 -0
- package/src/cli/commands/halo/credential/list/index.ts +5 -0
- package/src/cli/commands/halo/credential/list/list.test.ts +27 -0
- package/src/cli/commands/halo/credential/list/list.ts +115 -0
- package/src/cli/commands/halo/identity/identity.test.ts +40 -0
- package/src/cli/commands/halo/identity/identity.ts +45 -0
- package/src/cli/commands/halo/identity/index.ts +5 -0
- package/src/cli/commands/halo/index.ts +21 -0
- package/src/cli/commands/halo/join/index.ts +5 -0
- package/src/cli/commands/halo/join/join.test.ts +10 -0
- package/src/cli/commands/halo/join/join.ts +87 -0
- package/src/cli/commands/halo/keys/index.ts +5 -0
- package/src/cli/commands/halo/keys/keys.test.ts +29 -0
- package/src/cli/commands/halo/keys/keys.ts +40 -0
- package/src/cli/commands/halo/recover/index.ts +5 -0
- package/src/cli/commands/halo/recover/recover.test.ts +10 -0
- package/src/cli/commands/halo/recover/recover.ts +44 -0
- package/src/cli/commands/halo/seed/index.ts +5 -0
- package/src/cli/commands/halo/seed/seed.ts +36 -0
- package/src/cli/commands/halo/share/index.ts +5 -0
- package/src/cli/commands/halo/share/share.ts +97 -0
- package/src/cli/commands/halo/update/index.ts +5 -0
- package/src/cli/commands/halo/update/update.test.ts +28 -0
- package/src/cli/commands/halo/update/update.ts +67 -0
- package/src/cli/commands/halo/util.ts +18 -0
- package/src/cli/commands/index.ts +9 -0
- package/src/cli/commands/profile/create.ts +90 -0
- package/src/cli/commands/profile/delete.ts +36 -0
- package/src/cli/commands/profile/import.ts +101 -0
- package/src/cli/commands/profile/index.ts +17 -0
- package/src/cli/commands/profile/inspect.ts +64 -0
- package/src/cli/commands/profile/list.ts +55 -0
- package/src/cli/commands/profile/reset.ts +45 -0
- package/src/cli/commands/profile/util.ts +48 -0
- package/src/cli/index.ts +5 -0
- package/src/cli/plugin.ts +34 -0
- package/src/cli/testing/test-console.ts +88 -0
- package/src/components/index.ts +0 -7
- package/src/constants.ts +9 -0
- package/src/{components → containers/DevicesContainer}/DevicesContainer.stories.tsx +15 -10
- package/src/{components → containers/DevicesContainer}/DevicesContainer.tsx +60 -66
- package/src/containers/DevicesContainer/index.ts +7 -0
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +43 -0
- package/src/containers/JoinDialog/JoinDialog.tsx +56 -0
- 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 +65 -54
- 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 -27
- package/src/containers/RecoveryCodeDialog/index.ts +8 -0
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +47 -0
- package/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.tsx +22 -23
- package/src/containers/RecoveryCredentialsContainer/index.ts +7 -0
- package/src/containers/ResetDialog/ResetDialog.stories.tsx +73 -0
- package/src/containers/ResetDialog/ResetDialog.tsx +50 -0
- package/src/containers/ResetDialog/index.ts +8 -0
- package/src/containers/index.ts +15 -0
- package/src/index.ts +1 -2
- package/src/meta.ts +3 -3
- package/src/operations/create-agent.ts +27 -0
- package/src/operations/create-identity.ts +30 -0
- package/src/operations/create-passkey.ts +64 -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 +55 -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 +6 -3
- package/src/types/capabilities.ts +16 -0
- package/src/types/events.ts +15 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema.ts +27 -19
- package/dist/lib/browser/app-graph-builder-ARY4H3VC.mjs +0 -124
- package/dist/lib/browser/app-graph-builder-ARY4H3VC.mjs.map +0 -7
- package/dist/lib/browser/chunk-4G4YWIUQ.mjs +0 -686
- package/dist/lib/browser/chunk-4G4YWIUQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-4LRO3Y2O.mjs +0 -19
- package/dist/lib/browser/chunk-4LRO3Y2O.mjs.map +0 -7
- package/dist/lib/browser/chunk-N5UR2HOE.mjs +0 -18
- package/dist/lib/browser/chunk-N5UR2HOE.mjs.map +0 -7
- package/dist/lib/browser/chunk-RDIG75CA.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZRVMXLDR.mjs.map +0 -7
- package/dist/lib/browser/client-O7U3MQ6J.mjs +0 -43
- package/dist/lib/browser/client-O7U3MQ6J.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-KLK7PJZK.mjs +0 -305
- package/dist/lib/browser/intent-resolver-KLK7PJZK.mjs.map +0 -7
- package/dist/lib/browser/migrations-RUAKBBTF.mjs +0 -23
- package/dist/lib/browser/migrations-RUAKBBTF.mjs.map +0 -7
- package/dist/lib/browser/react-context-PCT5C3BN.mjs +0 -25
- package/dist/lib/browser/react-context-PCT5C3BN.mjs.map +0 -7
- package/dist/lib/browser/react-surface-RCXEA65V.mjs +0 -66
- package/dist/lib/browser/react-surface-RCXEA65V.mjs.map +0 -7
- package/dist/lib/browser/schema-defs-UNNBAEFW.mjs +0 -25
- package/dist/lib/browser/schema-defs-UNNBAEFW.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-LLM25DRR.mjs +0 -125
- package/dist/lib/node-esm/app-graph-builder-LLM25DRR.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6ANOJ7ZM.mjs +0 -19
- package/dist/lib/node-esm/chunk-6ANOJ7ZM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7M7VWQJW.mjs +0 -20
- package/dist/lib/node-esm/chunk-7M7VWQJW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DJ6XKSE4.mjs +0 -687
- package/dist/lib/node-esm/chunk-DJ6XKSE4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QT3EQXDU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VENKFPBC.mjs.map +0 -7
- package/dist/lib/node-esm/client-6MTNT7M6.mjs +0 -44
- package/dist/lib/node-esm/client-6MTNT7M6.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-YR2C224X.mjs +0 -306
- package/dist/lib/node-esm/intent-resolver-YR2C224X.mjs.map +0 -7
- package/dist/lib/node-esm/migrations-ASF2SAUR.mjs +0 -24
- package/dist/lib/node-esm/migrations-ASF2SAUR.mjs.map +0 -7
- package/dist/lib/node-esm/react-context-F4QOBWSP.mjs +0 -26
- package/dist/lib/node-esm/react-context-F4QOBWSP.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-SQBRXVMZ.mjs +0 -67
- package/dist/lib/node-esm/react-surface-SQBRXVMZ.mjs.map +0 -7
- package/dist/lib/node-esm/schema-defs-MSIT2KK2.mjs +0 -26
- package/dist/lib/node-esm/schema-defs-MSIT2KK2.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -9
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/client.d.ts +0 -9
- package/dist/types/src/capabilities/client.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -8
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/migrations.d.ts +0 -4
- package/dist/types/src/capabilities/migrations.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context.d.ts +0 -8
- package/dist/types/src/capabilities/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -8
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-defs.d.ts +0 -4
- package/dist/types/src/capabilities/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.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 +0 -60
- 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 +0 -62
- 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 +0 -60
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResetDialog.d.ts +0 -7
- package/dist/types/src/components/ResetDialog.d.ts.map +0 -1
- package/dist/types/src/components/ResetDialog.stories.d.ts +0 -65
- package/dist/types/src/components/ResetDialog.stories.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -8
- package/dist/types/src/events.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -115
- package/src/capabilities/capabilities.ts +0 -18
- package/src/capabilities/client.ts +0 -43
- package/src/capabilities/intent-resolver.ts +0 -251
- package/src/capabilities/migrations.ts +0 -25
- package/src/capabilities/react-context.tsx +0 -22
- package/src/capabilities/react-surface.tsx +0 -67
- package/src/capabilities/schema-defs.ts +0 -29
- package/src/components/JoinDialog.tsx +0 -54
- package/src/components/RecoveryCredentialsContainer.stories.tsx +0 -42
- package/src/components/ResetDialog.stories.tsx +0 -52
- package/src/components/ResetDialog.tsx +0 -50
- package/src/events.ts +0 -15
- /package/dist/types/src/{components → containers/DevicesContainer}/DevicesContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.d.ts +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
meta
|
|
4
|
+
} from "./chunk-BOTJSPCT.mjs";
|
|
5
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
6
|
+
|
|
7
|
+
// src/containers/RecoveryCodeDialog/RecoveryCodeDialog.tsx
|
|
8
|
+
import React, { useCallback, useState } from "react";
|
|
9
|
+
import { AlertDialog, Button, Clipboard, Input, useTranslation } from "@dxos/react-ui";
|
|
10
|
+
var RecoveryCodeDialog = ({ code }) => {
|
|
11
|
+
const { t } = useTranslation(meta.id);
|
|
12
|
+
const [confirmation, setConfirmation] = useState(false);
|
|
13
|
+
const handleConfirmation = useCallback((checked) => setConfirmation(checked), []);
|
|
14
|
+
return /* @__PURE__ */ React.createElement(AlertDialog.Content, {
|
|
15
|
+
size: "md",
|
|
16
|
+
classNames: "min-h-[15rem]"
|
|
17
|
+
}, /* @__PURE__ */ React.createElement(AlertDialog.Body, null, /* @__PURE__ */ React.createElement(AlertDialog.Title, null, t("recovery code dialog title")), /* @__PURE__ */ React.createElement("p", {
|
|
18
|
+
className: "py-4"
|
|
19
|
+
}, t("recovery code dialog description")), /* @__PURE__ */ React.createElement(Clipboard.Provider, null, /* @__PURE__ */ React.createElement(Code, {
|
|
20
|
+
code
|
|
21
|
+
})), /* @__PURE__ */ React.createElement("div", {
|
|
22
|
+
className: "flex flex-col py-4 gap-2"
|
|
23
|
+
}, /* @__PURE__ */ React.createElement("p", null, t("recovery code dialog warning 1")), /* @__PURE__ */ React.createElement("p", null, t("recovery code dialog warning 2"))), /* @__PURE__ */ React.createElement("div", {
|
|
24
|
+
className: "flex items-center gap-2 pb-4"
|
|
25
|
+
}, /* @__PURE__ */ React.createElement(Input.Root, null, /* @__PURE__ */ React.createElement(Input.Checkbox, {
|
|
26
|
+
"data-testid": "recoveryCode.confirm",
|
|
27
|
+
checked: confirmation,
|
|
28
|
+
onCheckedChange: handleConfirmation
|
|
29
|
+
}), /* @__PURE__ */ React.createElement(Input.Label, null, t("recovery code confirmation label"))))), /* @__PURE__ */ React.createElement(AlertDialog.ActionBar, null, /* @__PURE__ */ React.createElement(AlertDialog.Action, {
|
|
30
|
+
asChild: true
|
|
31
|
+
}, /* @__PURE__ */ React.createElement(Button, {
|
|
32
|
+
"data-testid": "recoveryCode.continue",
|
|
33
|
+
variant: "primary",
|
|
34
|
+
disabled: !confirmation
|
|
35
|
+
}, t("continue label")))));
|
|
36
|
+
};
|
|
37
|
+
var Code = ({ code }) => {
|
|
38
|
+
const words = code.split(" ");
|
|
39
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
40
|
+
className: "relative p-2 border border-separator rounded-sm group"
|
|
41
|
+
}, /* @__PURE__ */ React.createElement(Clipboard.IconButton, {
|
|
42
|
+
value: code,
|
|
43
|
+
classNames: "absolute top-2 right-2 invisible group-hover:visible"
|
|
44
|
+
}), /* @__PURE__ */ React.createElement("div", {
|
|
45
|
+
className: "grid grid-cols-4"
|
|
46
|
+
}, words.map((word, i) => /* @__PURE__ */ React.createElement("div", {
|
|
47
|
+
key: i,
|
|
48
|
+
className: "flex items-center p-2 gap-2"
|
|
49
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
50
|
+
className: "w-4 text-xs text-center text-subdued"
|
|
51
|
+
}, i + 1), /* @__PURE__ */ React.createElement("div", {
|
|
52
|
+
className: "text-sm"
|
|
53
|
+
}, word)))));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// src/containers/RecoveryCodeDialog/index.ts
|
|
57
|
+
var RecoveryCodeDialog_default = RecoveryCodeDialog;
|
|
58
|
+
export {
|
|
59
|
+
RecoveryCodeDialog,
|
|
60
|
+
RecoveryCodeDialog_default as default
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=RecoveryCodeDialog-PWBHIQ6D.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/containers/RecoveryCodeDialog/RecoveryCodeDialog.tsx", "../../../src/containers/RecoveryCodeDialog/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback, useState } from 'react';\n\nimport { AlertDialog, Button, Clipboard, Input, useTranslation } from '@dxos/react-ui';\n\nimport { meta } from '../../meta';\n\nexport type RecoveryCodeDialogProps = {\n code: string;\n};\n\n// TODO(burdon): Should have cancel button.\nexport const RecoveryCodeDialog = ({ code }: RecoveryCodeDialogProps) => {\n const { t } = useTranslation(meta.id);\n const [confirmation, setConfirmation] = useState(false);\n\n const handleConfirmation = useCallback((checked: boolean) => setConfirmation(checked), []);\n\n return (\n <AlertDialog.Content size='md' classNames='min-h-[15rem]'>\n <AlertDialog.Body>\n <AlertDialog.Title>{t('recovery code dialog title')}</AlertDialog.Title>\n <p className='py-4'>{t('recovery code dialog description')}</p>\n <Clipboard.Provider>\n <Code code={code} />\n </Clipboard.Provider>\n <div className='flex flex-col py-4 gap-2'>\n <p>{t('recovery code dialog warning 1')}</p>\n <p>{t('recovery code dialog warning 2')}</p>\n </div>\n <div className='flex items-center gap-2 pb-4'>\n <Input.Root>\n <Input.Checkbox\n data-testid='recoveryCode.confirm'\n checked={confirmation}\n onCheckedChange={handleConfirmation}\n />\n <Input.Label>{t('recovery code confirmation label')}</Input.Label>\n </Input.Root>\n </div>\n </AlertDialog.Body>\n <AlertDialog.ActionBar>\n <AlertDialog.Action asChild>\n <Button data-testid='recoveryCode.continue' variant='primary' disabled={!confirmation}>\n {t('continue label')}\n </Button>\n </AlertDialog.Action>\n </AlertDialog.ActionBar>\n </AlertDialog.Content>\n );\n};\n\nconst Code = ({ code }: { code: string }) => {\n const words = code.split(' ');\n return (\n <div className='relative p-2 border border-separator rounded-sm group'>\n <Clipboard.IconButton value={code} classNames='absolute top-2 right-2 invisible group-hover:visible' />\n <div className='grid grid-cols-4'>\n {words.map((word, i) => (\n <div key={i} className='flex items-center p-2 gap-2'>\n <div className='w-4 text-xs text-center text-subdued'>{i + 1}</div>\n <div className='text-sm'>{word}</div>\n </div>\n ))}\n </div>\n </div>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { RecoveryCodeDialog } from './RecoveryCodeDialog';\n\nexport * from './RecoveryCodeDialog';\nexport default RecoveryCodeDialog;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,OAAOA,SAASC,aAAaC,gBAAgB;AAE7C,SAASC,aAAaC,QAAQC,WAAWC,OAAOC,sBAAsB;AAS/D,IAAMC,qBAAqB,CAAC,EAAEC,KAAI,MAA2B;AAClE,QAAM,EAAEC,EAAC,IAAKC,eAAeC,KAAKC,EAAE;AACpC,QAAM,CAACC,cAAcC,eAAAA,IAAmBC,SAAS,KAAA;AAEjD,QAAMC,qBAAqBC,YAAY,CAACC,YA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B,KAAKD;IAAGvB,WAAU;KACrB,sBAAA,cAACI,OAAAA;IAAIJ,WAAU;KAAwCuB,IAAI,CAAA,GAC3D,sBAAA,cAACnB,OAAAA;IAAIJ,WAAU;KAAWsB,IAAAA,CAAAA,CAAAA,CAAAA,CAAAA;AAMtC;;;AC/DA,IAAA,6BAAeG;",
|
|
6
|
+
"names": ["React", "useCallback", "useState", "AlertDialog", "Button", "Clipboard", "Input", "useTranslation", "RecoveryCodeDialog", "code", "t", "useTranslation", "meta", "id", "confirmation", "setConfirmation", "useState", "handleConfirmation", "useCallback", "checked", "AlertDialog", "Content", "size", "classNames", "Body", "Title", "p", "className", "Clipboard", "Provider", "Code", "div", "Input", "Root", "Checkbox", "data-testid", "onCheckedChange", "Label", "ActionBar", "Action", "asChild", "Button", "variant", "disabled", "words", "split", "IconButton", "value", "map", "word", "i", "key", "RecoveryCodeDialog"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import "./chunk-42EQVH2Q.mjs";
|
|
3
|
+
import {
|
|
4
|
+
definitions_exports
|
|
5
|
+
} from "./chunk-FU7MBWDD.mjs";
|
|
6
|
+
import {
|
|
7
|
+
meta
|
|
8
|
+
} from "./chunk-BOTJSPCT.mjs";
|
|
9
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
10
|
+
|
|
11
|
+
// src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { useOperationInvoker } from "@dxos/app-framework/ui";
|
|
14
|
+
import { useCredentials } from "@dxos/react-client/halo";
|
|
15
|
+
import { Icon, IconButton, List, ListItem, Message, useTranslation } from "@dxos/react-ui";
|
|
16
|
+
import { Settings } from "@dxos/react-ui-form";
|
|
17
|
+
var MANAGE_CREDENTIALS_DIALOG = `${meta.id}.ManageCredentialsDialog`;
|
|
18
|
+
var RecoveryCredentialsContainer = () => {
|
|
19
|
+
const { t } = useTranslation(meta.id);
|
|
20
|
+
const { invokePromise } = useOperationInvoker();
|
|
21
|
+
const credentials = useCredentials();
|
|
22
|
+
const recoveryCredentials = credentials.filter((credential) => credential.subject.assertion["@type"] === "dxos.halo.credentials.IdentityRecovery");
|
|
23
|
+
return /* @__PURE__ */ React.createElement(Settings.Root, null, /* @__PURE__ */ React.createElement(Settings.Section, {
|
|
24
|
+
title: t("recovery setup dialog title"),
|
|
25
|
+
description: t("recovery setup dialog description")
|
|
26
|
+
}, /* @__PURE__ */ React.createElement(Settings.Group, null, /* @__PURE__ */ React.createElement(Settings.Item, {
|
|
27
|
+
title: t("create passkey label"),
|
|
28
|
+
description: t("create passkey description")
|
|
29
|
+
}, /* @__PURE__ */ React.createElement(IconButton, {
|
|
30
|
+
label: t("create passkey label"),
|
|
31
|
+
icon: "ph--key--duotone",
|
|
32
|
+
variant: "primary",
|
|
33
|
+
onClick: () => invokePromise(definitions_exports.CreatePasskey)
|
|
34
|
+
})), /* @__PURE__ */ React.createElement(Settings.Item, {
|
|
35
|
+
title: t("create recovery code label"),
|
|
36
|
+
description: t("create recovery code description")
|
|
37
|
+
}, /* @__PURE__ */ React.createElement(IconButton, {
|
|
38
|
+
label: t("create recovery code label"),
|
|
39
|
+
icon: "ph--receipt--duotone",
|
|
40
|
+
variant: "default",
|
|
41
|
+
onClick: () => invokePromise(definitions_exports.CreateRecoveryCode)
|
|
42
|
+
})))), /* @__PURE__ */ React.createElement(Settings.Section, {
|
|
43
|
+
title: t("credentials list label")
|
|
44
|
+
}, recoveryCredentials.length < 1 ? /* @__PURE__ */ React.createElement(Message.Root, {
|
|
45
|
+
valence: "error"
|
|
46
|
+
}, /* @__PURE__ */ React.createElement(Message.Title, {
|
|
47
|
+
icon: "ph--shield-warning--duotone"
|
|
48
|
+
}, t("no credentials title")), /* @__PURE__ */ React.createElement(Message.Content, null, t("no credentials message"))) : /* @__PURE__ */ React.createElement(List, null, recoveryCredentials.map((credential) => /* @__PURE__ */ React.createElement(ListItem.Root, {
|
|
49
|
+
key: credential.id?.toHex()
|
|
50
|
+
}, /* @__PURE__ */ React.createElement(ListItem.Endcap, null, /* @__PURE__ */ React.createElement(Icon, {
|
|
51
|
+
icon: "ph--key--regular"
|
|
52
|
+
})), /* @__PURE__ */ React.createElement(ListItem.Heading, null, credential.issuanceDate.toLocaleString()))))));
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// src/containers/RecoveryCredentialsContainer/index.ts
|
|
56
|
+
var RecoveryCredentialsContainer_default = RecoveryCredentialsContainer;
|
|
57
|
+
export {
|
|
58
|
+
RecoveryCredentialsContainer_default as default
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=RecoveryCredentialsContainer-BLURHMW6.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx", "../../../src/containers/RecoveryCredentialsContainer/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useOperationInvoker } from '@dxos/app-framework/ui';\nimport { useCredentials } from '@dxos/react-client/halo';\nimport { Icon, IconButton, List, ListItem, Message, useTranslation } from '@dxos/react-ui';\nimport { Settings } from '@dxos/react-ui-form';\n\nimport { meta } from '../../meta';\nimport { ClientOperation } from '../../operations';\n\nexport const MANAGE_CREDENTIALS_DIALOG = `${meta.id}.ManageCredentialsDialog`;\n\nexport const RecoveryCredentialsContainer = () => {\n const { t } = useTranslation(meta.id);\n const { invokePromise } = useOperationInvoker();\n const credentials = useCredentials();\n const recoveryCredentials = credentials.filter(\n (credential) => credential.subject.assertion['@type'] === 'dxos.halo.credentials.IdentityRecovery',\n );\n\n return (\n <Settings.Root>\n <Settings.Section title={t('recovery setup dialog title')} description={t('recovery setup dialog description')}>\n <Settings.Group>\n <Settings.Item title={t('create passkey label')} description={t('create passkey description')}>\n <IconButton\n label={t('create passkey label')}\n icon='ph--key--duotone'\n variant='primary'\n onClick={() => invokePromise(ClientOperation.CreatePasskey)}\n />\n </Settings.Item>\n <Settings.Item title={t('create recovery code label')} description={t('create recovery code description')}>\n <IconButton\n label={t('create recovery code label')}\n icon='ph--receipt--duotone'\n variant='default'\n onClick={() => invokePromise(ClientOperation.CreateRecoveryCode)}\n />\n </Settings.Item>\n </Settings.Group>\n </Settings.Section>\n <Settings.Section title={t('credentials list label')}>\n {recoveryCredentials.length < 1 ? (\n <Message.Root valence='error'>\n <Message.Title icon='ph--shield-warning--duotone'>{t('no credentials title')}</Message.Title>\n <Message.Content>{t('no credentials message')}</Message.Content>\n </Message.Root>\n ) : (\n <List>\n {recoveryCredentials.map((credential) => (\n <ListItem.Root key={credential.id?.toHex()}>\n <ListItem.Endcap>\n <Icon icon='ph--key--regular' />\n </ListItem.Endcap>\n <ListItem.Heading>{credential.issuanceDate.toLocaleString()}</ListItem.Heading>\n </ListItem.Root>\n ))}\n </List>\n )}\n </Settings.Section>\n </Settings.Root>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { RecoveryCredentialsContainer } from './RecoveryCredentialsContainer';\n\nexport default RecoveryCredentialsContainer;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,2BAA2B;AACpC,SAASC,sBAAsB;AAC/B,SAASC,MAAMC,YAAYC,MAAMC,UAAUC,SAASC,sBAAsB;AAC1E,SAASC,gBAAgB;AAKlB,IAAMC,4BAA4B,GAAGC,KAAKC,EAAE;AAE5C,IAAMC,+BAA+B,MAAA;AAC1C,QAAM,EAAEC,EAAC,IAAKC,eAAeJ,KAAKC,EAAE;AACpC,QAAM,EAAEI,cAAa,IAAKC,oBAAAA;AAC1B,QAAMC,cAAcC,eAAAA;AACpB,QAAMC,sBAAsBF,YAAYG,OACtC,CAACC,eAAeA,WAAWC,QAAQC,UAAU,OAAA,MAAa,wCAAA;A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Icon", "IconButton", "List", "ListItem", "Message", "useTranslation", "Settings", "MANAGE_CREDENTIALS_DIALOG", "meta", "id", "RecoveryCredentialsContainer", "t", "useTranslation", "invokePromise", "useOperationInvoker", "credentials", "useCredentials", "recoveryCredentials", "filter", "credential", "subject", "assertion", "Settings", "Root", "Section", "title", "description", "Group", "Item", "IconButton", "label", "icon", "variant", "onClick", "ClientOperation", "CreatePasskey", "CreateRecoveryCode", "length", "Message", "valence", "Title", "Content", "List", "map", "ListItem", "key", "toHex", "Endcap", "Icon", "Heading", "issuanceDate", "toLocaleString", "RecoveryCredentialsContainer"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
3
|
+
|
|
4
|
+
// src/containers/ResetDialog/ResetDialog.tsx
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import React, { useCallback } from "react";
|
|
7
|
+
import { Capability } from "@dxos/app-framework";
|
|
8
|
+
import { useOperationInvoker } from "@dxos/app-framework/ui";
|
|
9
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
10
|
+
import { runAndForwardErrors } from "@dxos/effect";
|
|
11
|
+
import { useClient } from "@dxos/react-client";
|
|
12
|
+
import { Dialog, useTranslation } from "@dxos/react-ui";
|
|
13
|
+
import { ConfirmReset, translationKey } from "@dxos/shell/react";
|
|
14
|
+
var ResetDialog = ({ mode, onReset, capabilityManager }) => {
|
|
15
|
+
const { t } = useTranslation(translationKey);
|
|
16
|
+
const { invokePromise } = useOperationInvoker();
|
|
17
|
+
const client = useClient();
|
|
18
|
+
const handleReset = useCallback(async () => {
|
|
19
|
+
await client.reset();
|
|
20
|
+
const target = mode === "join new identity" ? "deviceInvitation" : mode === "recover" ? "recoverIdentity" : void 0;
|
|
21
|
+
if (onReset) {
|
|
22
|
+
await runAndForwardErrors(onReset({
|
|
23
|
+
target
|
|
24
|
+
}).pipe(Effect.provideService(Capability.Service, capabilityManager)));
|
|
25
|
+
}
|
|
26
|
+
}, [
|
|
27
|
+
client,
|
|
28
|
+
mode,
|
|
29
|
+
onReset,
|
|
30
|
+
capabilityManager
|
|
31
|
+
]);
|
|
32
|
+
const handleCancel = useCallback(() => {
|
|
33
|
+
void invokePromise(LayoutOperation.UpdateDialog, {
|
|
34
|
+
state: false
|
|
35
|
+
});
|
|
36
|
+
}, [
|
|
37
|
+
invokePromise
|
|
38
|
+
]);
|
|
39
|
+
return /* @__PURE__ */ React.createElement(Dialog.Content, null, /* @__PURE__ */ React.createElement(Dialog.Header, null, /* @__PURE__ */ React.createElement(Dialog.Title, null, t("reset dialog title"))), /* @__PURE__ */ React.createElement(Dialog.Description, {
|
|
40
|
+
classNames: "sr-only"
|
|
41
|
+
}, t("reset dialog description")), /* @__PURE__ */ React.createElement(ConfirmReset, {
|
|
42
|
+
active: true,
|
|
43
|
+
mode,
|
|
44
|
+
onConfirm: handleReset,
|
|
45
|
+
onCancel: handleCancel
|
|
46
|
+
}));
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// src/containers/ResetDialog/index.ts
|
|
50
|
+
var ResetDialog_default = ResetDialog;
|
|
51
|
+
export {
|
|
52
|
+
ResetDialog,
|
|
53
|
+
ResetDialog_default as default
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=ResetDialog-NSALOOOA.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/containers/ResetDialog/ResetDialog.tsx", "../../../src/containers/ResetDialog/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React, { useCallback } from 'react';\n\nimport { Capability, type CapabilityManager } from '@dxos/app-framework';\nimport { useOperationInvoker } from '@dxos/app-framework/ui';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { useClient } from '@dxos/react-client';\nimport { Dialog, useTranslation } from '@dxos/react-ui';\nimport { ConfirmReset, type ConfirmResetProps, translationKey } from '@dxos/shell/react';\n\nimport { type ClientPluginOptions } from '../../types';\n\nexport type ResetDialogProps = Pick<ConfirmResetProps, 'mode'> &\n Pick<ClientPluginOptions, 'onReset'> & {\n capabilityManager: CapabilityManager.CapabilityManager;\n };\n\nexport const ResetDialog = ({ mode, onReset, capabilityManager }: ResetDialogProps) => {\n const { t } = useTranslation(translationKey);\n const { invokePromise } = useOperationInvoker();\n const client = useClient();\n\n const handleReset = useCallback(async () => {\n await client.reset();\n const target =\n mode === 'join new identity' ? 'deviceInvitation' : mode === 'recover' ? 'recoverIdentity' : undefined;\n if (onReset) {\n await runAndForwardErrors(onReset({ target }).pipe(Effect.provideService(Capability.Service, capabilityManager)));\n }\n }, [client, mode, onReset, capabilityManager]);\n\n const handleCancel = useCallback(() => {\n void invokePromise(LayoutOperation.UpdateDialog, { state: false });\n }, [invokePromise]);\n\n return (\n <Dialog.Content>\n <Dialog.Header>\n <Dialog.Title>{t('reset dialog title')}</Dialog.Title>\n </Dialog.Header>\n <Dialog.Description classNames='sr-only'>{t('reset dialog description')}</Dialog.Description>\n <ConfirmReset active mode={mode} onConfirm={handleReset} onCancel={handleCancel} />\n </Dialog.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ResetDialog } from './ResetDialog';\n\nexport * from './ResetDialog';\nexport default ResetDialog;\n"],
|
|
5
|
+
"mappings": ";;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,SAASC,mBAAmB;AAEnC,SAASC,kBAA0C;AACnD,SAASC,2BAA2B;AACpC,SAASC,uBAAuB;AAChC,SAASC,2BAA2B;AACpC,SAASC,iBAAiB;AAC1B,SAASC,QAAQC,sBAAsB;AACvC,SAASC,cAAsCC,sBAAsB;AAS9D,IAAMC,cAAc,CAAC,EAAEC,MAAMC,SAASC,kBAAiB,MAAoB;AAChF,QAAM,EAAEC,EAAC,IAAKC,eAAeC,cAAAA;AAC7B,QAAM,EAAEC,cAAa,IAAKC,oBAAAA;AAC1B,QAAMC,SAASC,UAAAA;AAEf,QAAMC,cAAcC,YAAY,YAAA;AAC9B,UAAMH,OAAOI,MAAK;AAClB,UAAMC,SACJb,SAAS,sBAAsB,qBAAqBA,SAAS,YAAY,oBAAoBc;AAC/F,QAAIb,SAAS;AACX,YAAMc,oBAAoBd,QAAQ;QAAEY;MAAO,CAAA,EAAGG,KAAYC,sBAAeC,WAAWC,SAASjB,iBAAAA,CAAAA,CAAAA;IAC/F;EACF,GAAG;IAACM;IAAQR;IAAMC;IAASC;GAAkB;AAE7C,QAAMkB,eAAeT,YAAY,MAAA;AAC/B,SAAKL,cAAce,gBAAgBC,cAAc;MAAEC,OAAO;IAAM,CAAA;EAClE,GAAG;IAACjB;GAAc;AAElB,SACE,sBAAA,cAACkB,OAAOC,SAAO,MACb,sBAAA,cAACD,OAAOE,QAAM,MACZ,sBAAA,cAACF,OAAOG,OAAK,MAAExB,EAAE,oBAAA,CAAA,CAAA,GAEnB,sBAAA,cAACqB,OAAOI,aAAW;IAACC,YAAW;KAAW1B,EAAE,0BAAA,CAAA,GAC5C,sBAAA,cAAC2B,cAAAA;IAAaC,QAAAA;IAAO/B;IAAYgC,WAAWtB;IAAauB,UAAUb;;AAGzE;;;AC1CA,IAAA,sBAAec;",
|
|
6
|
+
"names": ["Effect", "React", "useCallback", "Capability", "useOperationInvoker", "LayoutOperation", "runAndForwardErrors", "useClient", "Dialog", "useTranslation", "ConfirmReset", "translationKey", "ResetDialog", "mode", "onReset", "capabilityManager", "t", "useTranslation", "translationKey", "invokePromise", "useOperationInvoker", "client", "useClient", "handleReset", "useCallback", "reset", "target", "undefined", "runAndForwardErrors", "pipe", "provideService", "Capability", "Service", "handleCancel", "LayoutOperation", "UpdateDialog", "state", "Dialog", "Content", "Header", "Title", "Description", "classNames", "ConfirmReset", "active", "onConfirm", "onCancel", "ResetDialog"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import "./chunk-42EQVH2Q.mjs";
|
|
3
|
+
import {
|
|
4
|
+
definitions_exports
|
|
5
|
+
} from "./chunk-FU7MBWDD.mjs";
|
|
6
|
+
import {
|
|
7
|
+
Account,
|
|
8
|
+
ClientCapabilities
|
|
9
|
+
} from "./chunk-5NENK2KO.mjs";
|
|
10
|
+
import {
|
|
11
|
+
meta
|
|
12
|
+
} from "./chunk-BOTJSPCT.mjs";
|
|
13
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
14
|
+
|
|
15
|
+
// src/capabilities/app-graph-builder/app-graph-builder.ts
|
|
16
|
+
import * as Effect from "effect/Effect";
|
|
17
|
+
import { Capability } from "@dxos/app-framework";
|
|
18
|
+
import { AppCapabilities } from "@dxos/app-toolkit";
|
|
19
|
+
import { Operation } from "@dxos/operation";
|
|
20
|
+
import { CreateAtom, GraphBuilder, NodeMatcher } from "@dxos/plugin-graph";
|
|
21
|
+
import { ConnectionState } from "@dxos/react-client/mesh";
|
|
22
|
+
var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
23
|
+
const extensions = yield* GraphBuilder.createExtension({
|
|
24
|
+
id: meta.id,
|
|
25
|
+
match: NodeMatcher.whenRoot,
|
|
26
|
+
actions: () => Effect.succeed([
|
|
27
|
+
{
|
|
28
|
+
id: `${meta.id}.open-user-account`,
|
|
29
|
+
data: () => Operation.invoke(definitions_exports.ShareIdentity),
|
|
30
|
+
properties: {
|
|
31
|
+
label: [
|
|
32
|
+
"open user account label",
|
|
33
|
+
{
|
|
34
|
+
ns: meta.id
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
icon: "ph--user--regular",
|
|
38
|
+
disposition: "menu",
|
|
39
|
+
keyBinding: {
|
|
40
|
+
macos: "meta+shift+.",
|
|
41
|
+
// TODO(wittjosiah): Test on windows to see if it behaves the same as linux.
|
|
42
|
+
windows: "alt+shift+.",
|
|
43
|
+
linux: "alt+shift+>"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]),
|
|
48
|
+
connector: Effect.fnUntraced(function* (node, get) {
|
|
49
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
50
|
+
const identity = get(CreateAtom.fromObservable(client.halo.identity));
|
|
51
|
+
const status = get(CreateAtom.fromObservable(client.mesh.networkStatus));
|
|
52
|
+
return [
|
|
53
|
+
{
|
|
54
|
+
id: Account.id,
|
|
55
|
+
type: meta.id,
|
|
56
|
+
properties: {
|
|
57
|
+
label: [
|
|
58
|
+
"account label",
|
|
59
|
+
{
|
|
60
|
+
ns: meta.id
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
icon: "ph--user--regular",
|
|
64
|
+
disposition: "user-account",
|
|
65
|
+
testId: "clientPlugin.account",
|
|
66
|
+
// NOTE: This currently needs to be the identity key because the fallback is generated from hex.
|
|
67
|
+
userId: identity?.identityKey.toHex(),
|
|
68
|
+
hue: identity?.profile?.data?.hue,
|
|
69
|
+
emoji: identity?.profile?.data?.emoji,
|
|
70
|
+
status: status.swarm === ConnectionState.OFFLINE ? "error" : "active"
|
|
71
|
+
},
|
|
72
|
+
nodes: [
|
|
73
|
+
{
|
|
74
|
+
id: Account.Profile,
|
|
75
|
+
data: Account.Profile,
|
|
76
|
+
type: meta.id,
|
|
77
|
+
properties: {
|
|
78
|
+
label: [
|
|
79
|
+
"profile label",
|
|
80
|
+
{
|
|
81
|
+
ns: meta.id
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
icon: "ph--user--regular"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: Account.Devices,
|
|
89
|
+
data: Account.Devices,
|
|
90
|
+
type: meta.id,
|
|
91
|
+
properties: {
|
|
92
|
+
label: [
|
|
93
|
+
"devices label",
|
|
94
|
+
{
|
|
95
|
+
ns: meta.id
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
icon: "ph--devices--regular",
|
|
99
|
+
testId: "clientPlugin.devices"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: Account.Security,
|
|
104
|
+
data: Account.Security,
|
|
105
|
+
type: meta.id,
|
|
106
|
+
properties: {
|
|
107
|
+
label: [
|
|
108
|
+
"security label",
|
|
109
|
+
{
|
|
110
|
+
ns: meta.id
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
icon: "ph--key--regular"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
];
|
|
119
|
+
})
|
|
120
|
+
});
|
|
121
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
122
|
+
}));
|
|
123
|
+
export {
|
|
124
|
+
app_graph_builder_default as default
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=app-graph-builder-44YGDMXN.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\nimport { CreateAtom, GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';\nimport { ConnectionState } from '@dxos/react-client/mesh';\n\nimport { meta } from '../../meta';\nimport { Account, ClientCapabilities } from '../../types';\nimport { ClientOperation } from '../../operations';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* GraphBuilder.createExtension({\n id: meta.id,\n match: NodeMatcher.whenRoot,\n actions: () =>\n Effect.succeed([\n {\n id: `${meta.id}.open-user-account`,\n data: () => Operation.invoke(ClientOperation.ShareIdentity),\n properties: {\n label: ['open user account label', { ns: meta.id }],\n icon: 'ph--user--regular',\n disposition: 'menu',\n keyBinding: {\n macos: 'meta+shift+.',\n // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.\n windows: 'alt+shift+.',\n linux: 'alt+shift+>',\n },\n },\n },\n ]),\n connector: Effect.fnUntraced(function* (node, get) {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const identity = get(CreateAtom.fromObservable(client.halo.identity));\n const status = get(CreateAtom.fromObservable(client.mesh.networkStatus));\n\n return [\n {\n id: Account.id,\n type: meta.id,\n properties: {\n label: ['account label', { ns: meta.id }],\n icon: 'ph--user--regular',\n disposition: 'user-account',\n testId: 'clientPlugin.account',\n // NOTE: This currently needs to be the identity key because the fallback is generated from hex.\n userId: identity?.identityKey.toHex(),\n hue: identity?.profile?.data?.hue,\n emoji: identity?.profile?.data?.emoji,\n status: status.swarm === ConnectionState.OFFLINE ? 'error' : 'active',\n },\n nodes: [\n {\n id: Account.Profile,\n data: Account.Profile,\n type: meta.id,\n properties: {\n label: ['profile label', { ns: meta.id }],\n icon: 'ph--user--regular',\n },\n },\n {\n id: Account.Devices,\n data: Account.Devices,\n type: meta.id,\n properties: {\n label: ['devices label', { ns: meta.id }],\n icon: 'ph--devices--regular',\n testId: 'clientPlugin.devices',\n },\n },\n {\n id: Account.Security,\n data: Account.Security,\n type: meta.id,\n properties: {\n label: ['security label', { ns: meta.id }],\n icon: 'ph--key--regular',\n },\n },\n ],\n },\n ];\n }),\n });\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,cAAcC,mBAAmB;AACtD,SAASC,uBAAuB;AAMhC,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAA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oBAAEC,IAAIb,KAAKD;kBAAG;;gBACvCe,MAAM;gBACNqB,QAAQ;cACV;YACF;YACA;cACEpC,IAAIkC,QAAQe;cACZ1C,MAAM2B,QAAQe;cACdd,MAAMlC,KAAKD;cACXY,YAAY;gBACVC,OAAO;kBAAC;kBAAkB;oBAAEC,IAAIb,KAAKD;kBAAG;;gBACxCe,MAAM;cACR;YACF;;QAEJ;;IAEJ,CAAA;EACF,CAAA;AAEA,SAAOrB,WAAWwD,YAAYC,gBAAgBC,iBAAiBvD,UAAAA;AACjE,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capability", "AppCapabilities", "Operation", "CreateAtom", "GraphBuilder", "NodeMatcher", "ConnectionState", "Capability", "makeModule", "fnUntraced", "extensions", "GraphBuilder", "createExtension", "id", "meta", "match", "NodeMatcher", "whenRoot", "actions", "succeed", "data", "Operation", "invoke", "ClientOperation", "ShareIdentity", "properties", "label", "ns", "icon", "disposition", "keyBinding", "macos", "windows", "linux", "connector", "node", "get", "client", "ClientCapabilities", "Client", "identity", "CreateAtom", "fromObservable", "halo", "status", "mesh", "networkStatus", "Account", "type", "testId", "userId", "identityKey", "toHex", "hue", "profile", "emoji", "swarm", "ConnectionState", "OFFLINE", "nodes", "Profile", "Devices", "Security", "contributes", "AppCapabilities", "AppGraphBuilder"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/operations/index.ts
|
|
4
|
+
import { OperationHandlerSet } from "@dxos/operation";
|
|
5
|
+
var ClientOperationHandlerSet = OperationHandlerSet.lazy(() => import("./create-agent-QIWBTZSQ.mjs"), () => import("./create-identity-P7WDMAE7.mjs"), () => import("./create-passkey-77HCW3ES.mjs"), () => import("./create-recovery-code-CCDGTSPG.mjs"), () => import("./join-identity-NOGEP7RA.mjs"), () => import("./recover-identity-DTFXXLZD.mjs"), () => import("./redeem-passkey-BXNNAV2J.mjs"), () => import("./redeem-token-XBW7OPDA.mjs"), () => import("./reset-storage-SXIZA4DV.mjs"), () => import("./share-identity-TEHV6CZC.mjs"));
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
ClientOperationHandlerSet
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=chunk-42EQVH2Q.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * as ClientOperation from './definitions';\n\nexport const ClientOperationHandlerSet = OperationHandlerSet.lazy(\n () => import('./create-agent'),\n () => import('./create-identity'),\n () => import('./create-passkey'),\n () => import('./create-recovery-code'),\n () => import('./join-identity'),\n () => import('./recover-identity'),\n () => import('./redeem-passkey'),\n () => import('./redeem-token'),\n () => import('./reset-storage'),\n () => import('./share-identity'),\n);\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,2BAA2B;AAI7B,IAAMC,4BAA4BC,oBAAoBC,KAC3D,MAAM,OAAO,6BAAA,GACb,MAAM,OAAO,gCAAA,GACb,MAAM,OAAO,+BAAA,GACb,MAAM,OAAO,qCAAA,GACb,MAAM,OAAO,8BAAA,GACb,MAAM,OAAO,iCAAA,GACb,MAAM,OAAO,+BAAA,GACb,MAAM,OAAO,6BAAA,GACb,MAAM,OAAO,8BAAA,GACb,MAAM,OAAO,+BAAA,CAAA;",
|
|
6
|
+
"names": ["OperationHandlerSet", "ClientOperationHandlerSet", "OperationHandlerSet", "lazy"]
|
|
7
|
+
}
|
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
meta
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BOTJSPCT.mjs";
|
|
5
|
+
|
|
6
|
+
// src/types/capabilities.ts
|
|
7
|
+
import { Capability } from "@dxos/app-framework";
|
|
8
|
+
(function(ClientCapabilities2) {
|
|
9
|
+
ClientCapabilities2.Client = Capability.make(`${meta.id}.capability.client`);
|
|
10
|
+
ClientCapabilities2.Schema = Capability.make(`${meta.id}.capability.schema`);
|
|
11
|
+
ClientCapabilities2.Migration = Capability.make(`${meta.id}.capability.migration`);
|
|
12
|
+
})(ClientCapabilities || (ClientCapabilities = {}));
|
|
13
|
+
var ClientCapabilities;
|
|
14
|
+
|
|
15
|
+
// src/types/events.ts
|
|
16
|
+
import { ActivationEvent } from "@dxos/app-framework";
|
|
17
|
+
(function(ClientEvents2) {
|
|
18
|
+
ClientEvents2.ClientReady = ActivationEvent.make(`${meta.id}.event.client-ready`);
|
|
19
|
+
ClientEvents2.SetupSchema = ActivationEvent.make(`${meta.id}.event.setup-schema`);
|
|
20
|
+
ClientEvents2.SetupMigration = ActivationEvent.make(`${meta.id}.event.setup-migration`);
|
|
21
|
+
ClientEvents2.IdentityCreated = ActivationEvent.make(`${meta.id}.event.identity-created`);
|
|
22
|
+
ClientEvents2.SpacesReady = ActivationEvent.make(`${meta.id}.event.spaces-ready`);
|
|
23
|
+
})(ClientEvents || (ClientEvents = {}));
|
|
24
|
+
var ClientEvents;
|
|
5
25
|
|
|
6
26
|
// src/types/schema.ts
|
|
7
27
|
import * as Schema from "effect/Schema";
|
|
8
|
-
import { PublicKey } from "@dxos/
|
|
28
|
+
import { PublicKey } from "@dxos/client";
|
|
9
29
|
var IdentitySchema = Schema.Struct({
|
|
10
30
|
identityKey: Schema.instanceOf(PublicKey),
|
|
11
31
|
spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),
|
|
@@ -27,13 +47,13 @@ var IdentitySchema = Schema.Struct({
|
|
|
27
47
|
value: Schema.Any
|
|
28
48
|
}))
|
|
29
49
|
});
|
|
30
|
-
class CreateIdentity extends Schema.TaggedClass()(`${meta.id}
|
|
50
|
+
class CreateIdentity extends Schema.TaggedClass()(`${meta.id}.action.create-identity`, {
|
|
31
51
|
input: ProfileSchema,
|
|
32
52
|
output: IdentitySchema
|
|
33
53
|
}) {
|
|
34
54
|
}
|
|
35
55
|
ClientAction2.CreateIdentity = CreateIdentity;
|
|
36
|
-
class JoinIdentity extends Schema.TaggedClass()(`${meta.id}
|
|
56
|
+
class JoinIdentity extends Schema.TaggedClass()(`${meta.id}.action.join-identity`, {
|
|
37
57
|
input: Schema.Struct({
|
|
38
58
|
invitationCode: Schema.optional(Schema.String)
|
|
39
59
|
}),
|
|
@@ -41,19 +61,19 @@ var IdentitySchema = Schema.Struct({
|
|
|
41
61
|
}) {
|
|
42
62
|
}
|
|
43
63
|
ClientAction2.JoinIdentity = JoinIdentity;
|
|
44
|
-
class ShareIdentity extends Schema.TaggedClass()(`${meta.id}
|
|
64
|
+
class ShareIdentity extends Schema.TaggedClass()(`${meta.id}.action.share-identity`, {
|
|
45
65
|
input: Schema.Void,
|
|
46
66
|
output: Schema.Void
|
|
47
67
|
}) {
|
|
48
68
|
}
|
|
49
69
|
ClientAction2.ShareIdentity = ShareIdentity;
|
|
50
|
-
class RecoverIdentity extends Schema.TaggedClass()(`${meta.id}
|
|
70
|
+
class RecoverIdentity extends Schema.TaggedClass()(`${meta.id}.action.recover-identity`, {
|
|
51
71
|
input: Schema.Void,
|
|
52
72
|
output: Schema.Void
|
|
53
73
|
}) {
|
|
54
74
|
}
|
|
55
75
|
ClientAction2.RecoverIdentity = RecoverIdentity;
|
|
56
|
-
class ResetStorage extends Schema.TaggedClass()(`${meta.id}
|
|
76
|
+
class ResetStorage extends Schema.TaggedClass()(`${meta.id}.action.reset-storage`, {
|
|
57
77
|
input: Schema.Struct({
|
|
58
78
|
mode: Schema.optional(Schema.String)
|
|
59
79
|
}),
|
|
@@ -61,31 +81,31 @@ var IdentitySchema = Schema.Struct({
|
|
|
61
81
|
}) {
|
|
62
82
|
}
|
|
63
83
|
ClientAction2.ResetStorage = ResetStorage;
|
|
64
|
-
class CreateAgent extends Schema.TaggedClass()(`${meta.id}
|
|
84
|
+
class CreateAgent extends Schema.TaggedClass()(`${meta.id}.action.create-agent`, {
|
|
65
85
|
input: Schema.Void,
|
|
66
86
|
output: Schema.Void
|
|
67
87
|
}) {
|
|
68
88
|
}
|
|
69
89
|
ClientAction2.CreateAgent = CreateAgent;
|
|
70
|
-
class CreateRecoveryCode extends Schema.TaggedClass()(`${meta.id}
|
|
90
|
+
class CreateRecoveryCode extends Schema.TaggedClass()(`${meta.id}.action.create-recovery-code`, {
|
|
71
91
|
input: Schema.Void,
|
|
72
92
|
output: Schema.Void
|
|
73
93
|
}) {
|
|
74
94
|
}
|
|
75
95
|
ClientAction2.CreateRecoveryCode = CreateRecoveryCode;
|
|
76
|
-
class CreatePasskey extends Schema.TaggedClass()(`${meta.id}
|
|
96
|
+
class CreatePasskey extends Schema.TaggedClass()(`${meta.id}.action.create-passkey`, {
|
|
77
97
|
input: Schema.Void,
|
|
78
98
|
output: Schema.Void
|
|
79
99
|
}) {
|
|
80
100
|
}
|
|
81
101
|
ClientAction2.CreatePasskey = CreatePasskey;
|
|
82
|
-
class RedeemPasskey extends Schema.TaggedClass()(`${meta.id}
|
|
102
|
+
class RedeemPasskey extends Schema.TaggedClass()(`${meta.id}.action.redeem-passkey`, {
|
|
83
103
|
input: Schema.Void,
|
|
84
104
|
output: Schema.Void
|
|
85
105
|
}) {
|
|
86
106
|
}
|
|
87
107
|
ClientAction2.RedeemPasskey = RedeemPasskey;
|
|
88
|
-
class RedeemToken extends Schema.TaggedClass()(`${meta.id}
|
|
108
|
+
class RedeemToken extends Schema.TaggedClass()(`${meta.id}.action.redeem-token`, {
|
|
89
109
|
input: Schema.Struct({
|
|
90
110
|
token: Schema.String
|
|
91
111
|
}),
|
|
@@ -105,7 +125,9 @@ var ClientAction;
|
|
|
105
125
|
var Account;
|
|
106
126
|
|
|
107
127
|
export {
|
|
128
|
+
ClientCapabilities,
|
|
129
|
+
ClientEvents,
|
|
108
130
|
ClientAction,
|
|
109
131
|
Account
|
|
110
132
|
};
|
|
111
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-5NENK2KO.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/capabilities.ts", "../../../src/types/events.ts", "../../../src/types/schema.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { type Client } from '@dxos/client';\nimport { type ObjectMigration } from '@dxos/client/echo';\nimport { type Type } from '@dxos/echo';\n\nimport { meta } from '../meta';\n\nexport namespace ClientCapabilities {\n export const Client = Capability.make<Client>(`${meta.id}.capability.client`);\n export const Schema = Capability.make<Type.AnyEntity[]>(`${meta.id}.capability.schema`);\n export const Migration = Capability.make<ObjectMigration[]>(`${meta.id}.capability.migration`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent } from '@dxos/app-framework';\n\nimport { meta } from '../meta';\n\nexport namespace ClientEvents {\n export const ClientReady = ActivationEvent.make(`${meta.id}.event.client-ready`);\n export const SetupSchema = ActivationEvent.make(`${meta.id}.event.setup-schema`);\n export const SetupMigration = ActivationEvent.make(`${meta.id}.event.setup-migration`);\n export const IdentityCreated = ActivationEvent.make(`${meta.id}.event.identity-created`);\n export const SpacesReady = ActivationEvent.make(`${meta.id}.event.spaces-ready`);\n}\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport type * as Effect from 'effect/Effect';\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { type Client, type ClientOptions, PublicKey } from '@dxos/client';\n\nimport { meta } from '../meta';\n\n// TODO(wittjosiah): Factor out. Generate?\nconst IdentitySchema = Schema.Struct({\n identityKey: Schema.instanceOf(PublicKey),\n spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),\n profile: Schema.optional(\n Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n }),\n ),\n});\n\nexport namespace ClientAction {\n const ProfileSchema = Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n });\n\n export class CreateIdentity extends Schema.TaggedClass<CreateIdentity>()(`${meta.id}.action.create-identity`, {\n input: ProfileSchema,\n output: IdentitySchema,\n }) {}\n\n export class JoinIdentity extends Schema.TaggedClass<JoinIdentity>()(`${meta.id}.action.join-identity`, {\n input: Schema.Struct({\n invitationCode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class ShareIdentity extends Schema.TaggedClass<ShareIdentity>()(`${meta.id}.action.share-identity`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RecoverIdentity extends Schema.TaggedClass<RecoverIdentity>()(`${meta.id}.action.recover-identity`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class ResetStorage extends Schema.TaggedClass<ResetStorage>()(`${meta.id}.action.reset-storage`, {\n input: Schema.Struct({\n mode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class CreateAgent extends Schema.TaggedClass<CreateAgent>()(`${meta.id}.action.create-agent`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class CreateRecoveryCode extends Schema.TaggedClass<CreateRecoveryCode>()(\n `${meta.id}.action.create-recovery-code`,\n {\n input: Schema.Void,\n output: Schema.Void,\n },\n ) {}\n\n export class CreatePasskey extends Schema.TaggedClass<CreatePasskey>()(`${meta.id}.action.create-passkey`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RedeemPasskey extends Schema.TaggedClass<RedeemPasskey>()(`${meta.id}.action.redeem-passkey`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RedeemToken extends Schema.TaggedClass<RedeemToken>()(`${meta.id}.action.redeem-token`, {\n input: Schema.Struct({\n token: Schema.String,\n }),\n output: Schema.Void,\n }) {}\n}\n\nexport type ClientPluginOptions = ClientOptions & {\n /**\n * Base origin for the invitation link.\n */\n shareableLinkOrigin?: string;\n\n /**\n * Path for the invitation link.\n */\n invitationPath?: string;\n\n /**\n * Query parameter for the invitation code.\n */\n invitationProp?: string;\n\n /**\n * Run after the client has been initialized.\n * Plugin context is provided so capabilities are accessible.\n */\n onClientInitialized?: (params: { client: Client }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n\n /**\n * Called when spaces are ready.\n * Plugin context is provided so capabilities are accessible.\n */\n onSpacesReady?: (params: { client: Client }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n\n /**\n * Called when the client is reset.\n * Plugin context is provided so capabilities are accessible.\n */\n onReset?: (params: { target?: string }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n};\n\nexport namespace Account {\n // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.\n const _id = 'dxos.org.plugin.client.account';\n // TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n // Ideally this should be worked into the data model in a generic way.\n export const id = `!${_id}`;\n\n export const Profile = `${_id}.profile`;\n export const Devices = `${_id}.devices`;\n export const Security = `${_id}.security`;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,SAASA,kBAAkB;UAOVC,qBAAAA;sBACFC,SAASC,WAAWC,KAAa,GAAGC,KAAKC,EAAE,oBAAoB;sBAC/DC,SAASJ,WAAWC,KAAuB,GAAGC,KAAKC,EAAE,oBAAoB;sBACzEE,YAAYL,WAAWC,KAAwB,GAAGC,KAAKC,EAAE,uBAAuB;AAC/F,GAJiBL,uBAAAA,qBAAAA,CAAAA,EAAAA;;;;ACPjB,SAASQ,uBAAuB;UAIfC,eAAAA;gBACFC,cAAcC,gBAAgBC,KAAK,GAAGC,KAAKC,EAAE,qBAAqB;gBAClEC,cAAcJ,gBAAgBC,K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GF,GAAAA;WACbG,WAAW,GAAGH,GAAAA;AAC7B,GAViBD,YAAAA,UAAAA,CAAAA,EAAAA;;;",
|
|
6
|
+
"names": ["Capability", "ClientCapabilities", "Client", "Capability", "make", "meta", "id", "Schema", "Migration", "ActivationEvent", "ClientEvents", "ClientReady", "ActivationEvent", "make", "meta", "id", "SetupSchema", "SetupMigration", "IdentityCreated", "SpacesReady", "Schema", "PublicKey", "IdentitySchema", "Struct", "identityKey", "instanceOf", "PublicKey", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "ClientAction", "ProfileSchema", "CreateIdentity", "TaggedClass", "meta", "id", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token", "Account", "_id", "Profile", "Devices", "Security"]
|
|
7
|
+
}
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
3
3
|
// src/meta.ts
|
|
4
4
|
import { trim } from "@dxos/util";
|
|
5
5
|
var meta = {
|
|
6
|
-
id: "dxos.
|
|
6
|
+
id: "org.dxos.plugin.client",
|
|
7
7
|
name: "Client",
|
|
8
8
|
description: trim`
|
|
9
9
|
Core client connectivity and peer-to-peer networking infrastructure.
|
|
@@ -14,4 +14,4 @@ var meta = {
|
|
|
14
14
|
export {
|
|
15
15
|
meta
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-BOTJSPCT.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\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": ";;;AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;AAIf;",
|
|
6
|
+
"names": ["trim", "meta", "id", "name", "description", "trim"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/capabilities/client/index.ts
|
|
4
|
+
import { Capability } from "@dxos/app-framework";
|
|
5
|
+
var Client = Capability.lazy("Client", () => import("./client-OFM3CBYZ.mjs"));
|
|
6
|
+
|
|
7
|
+
// src/capabilities/operation-handler/index.ts
|
|
8
|
+
import { Capability as Capability2 } from "@dxos/app-framework";
|
|
9
|
+
var OperationHandler = Capability2.lazy("OperationHandler", () => import("./operation-handler-KC5K4KGW.mjs"));
|
|
10
|
+
|
|
11
|
+
// src/capabilities/schema-defs/index.ts
|
|
12
|
+
import { Capability as Capability3 } from "@dxos/app-framework";
|
|
13
|
+
var SchemaDefs = Capability3.lazy("SchemaDefs", () => import("./schema-defs-2UZZD4Q4.mjs"));
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
Client,
|
|
17
|
+
OperationHandler,
|
|
18
|
+
SchemaDefs
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=chunk-ETBW54NV.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/client/index.ts", "../../../src/capabilities/operation-handler/index.ts", "../../../src/capabilities/schema-defs/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const Client = Capability.lazy('Client', () => import('./client'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(\n 'OperationHandler',\n () => import('./operation-handler'),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const SchemaDefs = Capability.lazy('SchemaDefs', () => import('./schema-defs'));\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,SAASC,WAAWC,KAAK,UAAU,MAAM,OAAO,uBAAA,CAAA;;;ACF7D,SAASC,cAAAA,mBAAkB;AAGpB,IAAMC,mBAAmBC,YAAWC,KACzC,oBACA,MAAM,OAAO,kCAAA,CAAA;;;ACLf,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,aAAaC,YAAWC,KAAK,cAAc,MAAM,OAAO,4BAAA,CAAA;",
|
|
6
|
+
"names": ["Capability", "Client", "Capability", "lazy", "Capability", "OperationHandler", "Capability", "lazy", "Capability", "SchemaDefs", "Capability", "lazy"]
|
|
7
|
+
}
|