@dxos/plugin-client 0.8.4-main.406dc2a → 0.8.4-main.52d7546f51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/app-graph-builder-DTETNB5U.mjs +119 -0
- package/dist/lib/browser/app-graph-builder-DTETNB5U.mjs.map +7 -0
- package/dist/lib/browser/chunk-4BZGRIFS.mjs +293 -0
- package/dist/lib/browser/chunk-4BZGRIFS.mjs.map +7 -0
- package/dist/lib/browser/chunk-G7C3S2BE.mjs +15 -0
- package/dist/lib/browser/chunk-G7C3S2BE.mjs.map +7 -0
- package/dist/lib/browser/chunk-MY6BJCB6.mjs +18 -0
- package/dist/lib/browser/chunk-MY6BJCB6.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +1049 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/client-XOQQ5POJ.mjs +86 -0
- package/dist/lib/browser/client-XOQQ5POJ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +75 -84
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/migrations-YNQ7L5GT.mjs +24 -0
- package/dist/lib/browser/migrations-YNQ7L5GT.mjs.map +7 -0
- package/dist/lib/browser/operation-resolver-N4YCJ4KS.mjs +299 -0
- package/dist/lib/browser/operation-resolver-N4YCJ4KS.mjs.map +7 -0
- package/dist/lib/browser/react-context-FDXHIBZL.mjs +24 -0
- package/dist/lib/browser/react-context-FDXHIBZL.mjs.map +7 -0
- package/dist/lib/browser/react-surface-ZP3FLVRS.mjs +676 -0
- package/dist/lib/browser/react-surface-ZP3FLVRS.mjs.map +7 -0
- package/dist/lib/browser/schema-defs-AYXOYD2M.mjs +27 -0
- package/dist/lib/browser/schema-defs-AYXOYD2M.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +9 -4
- package/dist/lib/node-esm/app-graph-builder-PFKVFRXI.mjs +120 -0
- package/dist/lib/node-esm/app-graph-builder-PFKVFRXI.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JAF64TFQ.mjs +295 -0
- package/dist/lib/node-esm/chunk-JAF64TFQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-MUOMX53G.mjs +20 -0
- package/dist/lib/node-esm/chunk-MUOMX53G.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-PRAFFO54.mjs +16 -0
- package/dist/lib/node-esm/chunk-PRAFFO54.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +1050 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/client-3YIMWKR7.mjs +87 -0
- package/dist/lib/node-esm/client-3YIMWKR7.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +75 -84
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/migrations-ZH5GNG4U.mjs +25 -0
- package/dist/lib/node-esm/migrations-ZH5GNG4U.mjs.map +7 -0
- package/dist/lib/node-esm/operation-resolver-CHGWI5P2.mjs +300 -0
- package/dist/lib/node-esm/operation-resolver-CHGWI5P2.mjs.map +7 -0
- package/dist/lib/node-esm/react-context-7Z2TVUTV.mjs +25 -0
- package/dist/lib/node-esm/react-context-7Z2TVUTV.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-BHJMHIMH.mjs +677 -0
- package/dist/lib/node-esm/react-surface-BHJMHIMH.mjs.map +7 -0
- package/dist/lib/node-esm/schema-defs-TV2SCKSH.mjs +28 -0
- package/dist/lib/node-esm/schema-defs-TV2SCKSH.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-resolver/index.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +8 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.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 +9 -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/DevicesContainer.d.ts.map +1 -1
- package/dist/types/src/components/DevicesContainer.stories.d.ts +3 -49
- package/dist/types/src/components/DevicesContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/JoinDialog.d.ts +0 -1
- package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/components/ProfileContainer.d.ts.map +1 -1
- package/dist/types/src/components/ProfileContainer.stories.d.ts +1 -47
- package/dist/types/src/components/ProfileContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts +0 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
- package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts +1 -47
- package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +1 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts +1 -47
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/ResetDialog.d.ts +5 -3
- package/dist/types/src/components/ResetDialog.d.ts.map +1 -1
- package/dist/types/src/components/ResetDialog.stories.d.ts +3 -49
- package/dist/types/src/components/ResetDialog.stories.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/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/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 +163 -9
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +53 -37
- package/src/ClientPlugin.ts +36 -53
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +96 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/client/client.ts +75 -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-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +249 -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 +75 -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 +26 -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 +29 -0
- package/src/cli/commands/device/info/info.ts +50 -0
- package/src/cli/commands/device/list/index.ts +5 -0
- package/src/cli/commands/device/list/list.test.ts +31 -0
- package/src/cli/commands/device/list/list.ts +30 -0
- package/src/cli/commands/device/update/index.ts +5 -0
- package/src/cli/commands/device/update/update.ts +70 -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 +45 -0
- package/src/cli/commands/halo/create/create.test.ts +52 -0
- package/src/cli/commands/halo/create/create.ts +75 -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 +28 -0
- package/src/cli/commands/halo/credential/list/list.ts +118 -0
- package/src/cli/commands/halo/identity/identity.test.ts +40 -0
- package/src/cli/commands/halo/identity/identity.ts +46 -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 +42 -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 +38 -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 +29 -0
- package/src/cli/commands/halo/update/update.ts +69 -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 +87 -0
- package/src/cli/commands/profile/delete.ts +33 -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 +54 -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/DevicesContainer.stories.tsx +9 -6
- package/src/components/DevicesContainer.tsx +37 -45
- package/src/components/JoinDialog.tsx +13 -15
- package/src/components/ProfileContainer.stories.tsx +1 -1
- package/src/components/ProfileContainer.tsx +62 -56
- package/src/components/RecoveryCodeDialog.stories.tsx +1 -1
- package/src/components/RecoveryCodeDialog.tsx +3 -5
- package/src/components/RecoveryCredentialsContainer.stories.tsx +8 -6
- package/src/components/RecoveryCredentialsContainer.tsx +19 -21
- package/src/components/ResetDialog.stories.tsx +29 -9
- package/src/components/ResetDialog.tsx +24 -20
- package/src/constants.ts +9 -0
- package/src/index.ts +1 -2
- package/src/meta.ts +7 -2
- 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 +120 -7
- package/dist/lib/browser/app-graph-builder-LUY3BJGC.mjs +0 -124
- package/dist/lib/browser/app-graph-builder-LUY3BJGC.mjs.map +0 -7
- package/dist/lib/browser/chunk-C7B7NM2G.mjs +0 -686
- package/dist/lib/browser/chunk-C7B7NM2G.mjs.map +0 -7
- package/dist/lib/browser/chunk-PFY3EQPI.mjs +0 -18
- package/dist/lib/browser/chunk-PFY3EQPI.mjs.map +0 -7
- package/dist/lib/browser/chunk-QB3D2P4J.mjs +0 -10
- package/dist/lib/browser/chunk-QB3D2P4J.mjs.map +0 -7
- package/dist/lib/browser/chunk-TRA2GP4M.mjs +0 -110
- package/dist/lib/browser/chunk-TRA2GP4M.mjs.map +0 -7
- package/dist/lib/browser/chunk-VTC4GIND.mjs +0 -19
- package/dist/lib/browser/chunk-VTC4GIND.mjs.map +0 -7
- package/dist/lib/browser/client-5PWEJ3U6.mjs +0 -43
- package/dist/lib/browser/client-5PWEJ3U6.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-L5NVP2G3.mjs +0 -305
- package/dist/lib/browser/intent-resolver-L5NVP2G3.mjs.map +0 -7
- package/dist/lib/browser/migrations-MWQCO5KY.mjs +0 -23
- package/dist/lib/browser/migrations-MWQCO5KY.mjs.map +0 -7
- package/dist/lib/browser/react-context-S4SRYUVY.mjs +0 -24
- package/dist/lib/browser/react-context-S4SRYUVY.mjs.map +0 -7
- package/dist/lib/browser/react-surface-6PV7RVQN.mjs +0 -66
- package/dist/lib/browser/react-surface-6PV7RVQN.mjs.map +0 -7
- package/dist/lib/browser/schema-defs-E3USCMH3.mjs +0 -25
- package/dist/lib/browser/schema-defs-E3USCMH3.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-S3BVB3IU.mjs +0 -125
- package/dist/lib/node-esm/app-graph-builder-S3BVB3IU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4MPOOMDQ.mjs +0 -111
- package/dist/lib/node-esm/chunk-4MPOOMDQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-H73VVAMA.mjs +0 -687
- package/dist/lib/node-esm/chunk-H73VVAMA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-K5IFPSCL.mjs +0 -20
- package/dist/lib/node-esm/chunk-K5IFPSCL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QE4LPI2A.mjs +0 -12
- package/dist/lib/node-esm/chunk-QE4LPI2A.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UYDFBGYA.mjs +0 -19
- package/dist/lib/node-esm/chunk-UYDFBGYA.mjs.map +0 -7
- package/dist/lib/node-esm/client-ODN7EBTY.mjs +0 -44
- package/dist/lib/node-esm/client-ODN7EBTY.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-3JZIPI6F.mjs +0 -306
- package/dist/lib/node-esm/intent-resolver-3JZIPI6F.mjs.map +0 -7
- package/dist/lib/node-esm/migrations-ARXHGBH5.mjs +0 -24
- package/dist/lib/node-esm/migrations-ARXHGBH5.mjs.map +0 -7
- package/dist/lib/node-esm/react-context-4SZYNSIS.mjs +0 -25
- package/dist/lib/node-esm/react-context-4SZYNSIS.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-BOST4EH2.mjs +0 -67
- package/dist/lib/node-esm/react-surface-BOST4EH2.mjs.map +0 -7
- package/dist/lib/node-esm/schema-defs-ATH5YBDR.mjs +0 -26
- package/dist/lib/node-esm/schema-defs-ATH5YBDR.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/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 -21
- package/src/capabilities/react-surface.tsx +0 -67
- package/src/capabilities/schema-defs.ts +0 -29
- package/src/events.ts +0 -15
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/migrations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';\n\nimport { ClientCapabilities } from './capabilities';\n\nexport default (context: PluginContext) => {\n const registry = context.getCapability(Capabilities.RxRegistry);\n const client = context.getCapability(ClientCapabilities.Client);\n\n // NOTE: Migrations are currently unidirectional and idempotent.\n const cancel = registry.subscribe(\n context.capabilities(ClientCapabilities.Migration),\n (_migrations) => {\n const migrations = Array.from(new Set(_migrations.flat()));\n const spaces = client.spaces.get();\n void Promise.all(spaces.map((space) => space.db.runMigrations(migrations)));\n },\n { immediate: true },\n );\n\n return contributes(Capabilities.Null, null, () => cancel());\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;AAIA,SAASA,cAAkCC,mBAAmB;AAI9D,IAAA,sBAAe,CAACC,YAAAA;AACd,QAAMC,WAAWD,QAAQE,cAAcC,aAAaC,UAAU;AAC9D,QAAMC,SAASL,QAAQE,cAAcI,mBAAmBC,MAAM;AAG9D,QAAMC,SAASP,SAASQ,UACtBT,QAAQU,aAAaJ,mBAAmBK,SAAS,GACjD,CAACC,gBAAAA;AACC,UAAMC,aAAaC,MAAMC,KAAK,IAAIC,IAAIJ,YAAYK,KAAI,CAAA,CAAA;AACtD,UAAMC,SAASb,OAAOa,OAAOC,IAAG;AAChC,SAAKC,QAAQC,IAAIH,OAAOI,IAAI,CAACC,UAAUA,MAAMC,GAAGC,cAAcZ,UAAAA,CAAAA,CAAAA;EAChE,GACA;IAAEa,WAAW;EAAK,CAAA;AAGpB,SAAOC,YAAYxB,aAAayB,MAAM,MAAM,MAAMpB,OAAAA,CAAAA;AACpD;",
|
|
6
|
-
"names": ["Capabilities", "contributes", "context", "registry", "getCapability", "Capabilities", "RxRegistry", "client", "ClientCapabilities", "Client", "cancel", "subscribe", "capabilities", "Migration", "_migrations", "migrations", "Array", "from", "Set", "flat", "spaces", "get", "Promise", "all", "map", "space", "db", "runMigrations", "immediate", "contributes", "Null"]
|
|
7
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
ClientCapabilities
|
|
4
|
-
} from "./chunk-UYDFBGYA.mjs";
|
|
5
|
-
import {
|
|
6
|
-
meta
|
|
7
|
-
} from "./chunk-QE4LPI2A.mjs";
|
|
8
|
-
|
|
9
|
-
// src/capabilities/react-context.tsx
|
|
10
|
-
import React from "react";
|
|
11
|
-
import { Capabilities, contributes, useCapability } from "@dxos/app-framework";
|
|
12
|
-
import { ClientProvider } from "@dxos/react-client";
|
|
13
|
-
var react_context_default = (() => contributes(Capabilities.ReactContext, {
|
|
14
|
-
id: meta.id,
|
|
15
|
-
context: ({ children }) => {
|
|
16
|
-
const client = useCapability(ClientCapabilities.Client);
|
|
17
|
-
return /* @__PURE__ */ React.createElement(ClientProvider, {
|
|
18
|
-
client
|
|
19
|
-
}, children);
|
|
20
|
-
}
|
|
21
|
-
}));
|
|
22
|
-
export {
|
|
23
|
-
react_context_default as default
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=react-context-4SZYNSIS.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/react-context.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, useCapability } from '@dxos/app-framework';\nimport { ClientProvider } from '@dxos/react-client';\n\nimport { meta } from '../meta';\n\nimport { ClientCapabilities } from './capabilities';\n\nexport default () =>\n contributes(Capabilities.ReactContext, {\n id: meta.id,\n context: ({ children }) => {\n const client = useCapability(ClientCapabilities.Client);\n return <ClientProvider client={client}>{children}</ClientProvider>;\n },\n });\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,sBAAsB;AAM/B,IAAA,yBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,IAAIC,KAAKD;EACTE,SAAS,CAAC,EAAEC,SAAQ,MAAE;AACpB,UAAMC,SAASC,cAAcC,mBAAmBC,MAAM;AACtD,WAAO,sBAAA,cAACC,gBAAAA;MAAeJ;OAAiBD,QAAAA;EAC1C;AACF,CAAA;",
|
|
6
|
-
"names": ["React", "Capabilities", "contributes", "useCapability", "ClientProvider", "contributes", "Capabilities", "ReactContext", "id", "meta", "context", "children", "client", "useCapability", "ClientCapabilities", "Client", "ClientProvider"]
|
|
7
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
DevicesContainer,
|
|
4
|
-
JOIN_DIALOG,
|
|
5
|
-
JoinDialog,
|
|
6
|
-
ProfileContainer,
|
|
7
|
-
RECOVERY_CODE_DIALOG,
|
|
8
|
-
RESET_DIALOG,
|
|
9
|
-
RecoveryCodeDialog,
|
|
10
|
-
RecoveryCredentialsContainer,
|
|
11
|
-
ResetDialog
|
|
12
|
-
} from "./chunk-H73VVAMA.mjs";
|
|
13
|
-
import {
|
|
14
|
-
Account
|
|
15
|
-
} from "./chunk-4MPOOMDQ.mjs";
|
|
16
|
-
import "./chunk-QE4LPI2A.mjs";
|
|
17
|
-
|
|
18
|
-
// src/capabilities/react-surface.tsx
|
|
19
|
-
import React from "react";
|
|
20
|
-
import { Capabilities, contributes, createSurface } from "@dxos/app-framework";
|
|
21
|
-
var react_surface_default = (({ createInvitationUrl, onReset }) => contributes(Capabilities.ReactSurface, [
|
|
22
|
-
createSurface({
|
|
23
|
-
id: Account.Profile,
|
|
24
|
-
role: "article",
|
|
25
|
-
filter: (data) => data.subject === Account.Profile,
|
|
26
|
-
component: () => /* @__PURE__ */ React.createElement(ProfileContainer, null)
|
|
27
|
-
}),
|
|
28
|
-
createSurface({
|
|
29
|
-
id: Account.Devices,
|
|
30
|
-
role: "article",
|
|
31
|
-
filter: (data) => data.subject === Account.Devices,
|
|
32
|
-
component: ({ data }) => /* @__PURE__ */ React.createElement(DevicesContainer, {
|
|
33
|
-
createInvitationUrl
|
|
34
|
-
})
|
|
35
|
-
}),
|
|
36
|
-
createSurface({
|
|
37
|
-
id: Account.Security,
|
|
38
|
-
role: "article",
|
|
39
|
-
filter: (data) => data.subject === Account.Security,
|
|
40
|
-
component: () => /* @__PURE__ */ React.createElement(RecoveryCredentialsContainer, null)
|
|
41
|
-
}),
|
|
42
|
-
createSurface({
|
|
43
|
-
id: JOIN_DIALOG,
|
|
44
|
-
role: "dialog",
|
|
45
|
-
filter: (data) => data.component === JOIN_DIALOG,
|
|
46
|
-
component: ({ data }) => /* @__PURE__ */ React.createElement(JoinDialog, data.props)
|
|
47
|
-
}),
|
|
48
|
-
createSurface({
|
|
49
|
-
id: RECOVERY_CODE_DIALOG,
|
|
50
|
-
role: "dialog",
|
|
51
|
-
filter: (data) => data.component === RECOVERY_CODE_DIALOG,
|
|
52
|
-
component: ({ data }) => /* @__PURE__ */ React.createElement(RecoveryCodeDialog, data.props)
|
|
53
|
-
}),
|
|
54
|
-
createSurface({
|
|
55
|
-
id: RESET_DIALOG,
|
|
56
|
-
role: "dialog",
|
|
57
|
-
filter: (data) => data.component === RESET_DIALOG,
|
|
58
|
-
component: ({ data }) => /* @__PURE__ */ React.createElement(ResetDialog, {
|
|
59
|
-
...data.props,
|
|
60
|
-
onReset
|
|
61
|
-
})
|
|
62
|
-
})
|
|
63
|
-
]));
|
|
64
|
-
export {
|
|
65
|
-
react_surface_default as default
|
|
66
|
-
};
|
|
67
|
-
//# sourceMappingURL=react-surface-BOST4EH2.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/react-surface.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { type JoinPanelProps } from '@dxos/shell/react';\n\nimport {\n DevicesContainer,\n JOIN_DIALOG,\n JoinDialog,\n ProfileContainer,\n RECOVERY_CODE_DIALOG,\n RESET_DIALOG,\n RecoveryCodeDialog,\n type RecoveryCodeDialogProps,\n RecoveryCredentialsContainer,\n ResetDialog,\n type ResetDialogProps,\n} from '../components';\nimport { Account, type ClientPluginOptions } from '../types';\n\ntype ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {\n createInvitationUrl: (invitationCode: string) => string;\n};\n\nexport default ({ createInvitationUrl, onReset }: ReactSurfaceOptions) =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: Account.Profile,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Profile,\n component: () => <ProfileContainer />,\n }),\n createSurface({\n id: Account.Devices,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Devices,\n component: ({ data }) => <DevicesContainer createInvitationUrl={createInvitationUrl} />,\n }),\n createSurface({\n id: Account.Security,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Security,\n component: () => <RecoveryCredentialsContainer />,\n }),\n createSurface({\n id: JOIN_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: JoinPanelProps } => data.component === JOIN_DIALOG,\n component: ({ data }) => <JoinDialog {...data.props} />,\n }),\n createSurface({\n id: RECOVERY_CODE_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: RecoveryCodeDialogProps } => data.component === RECOVERY_CODE_DIALOG,\n component: ({ data }) => <RecoveryCodeDialog {...data.props} />,\n }),\n createSurface({\n id: RESET_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: ResetDialogProps } => data.component === RESET_DIALOG,\n component: ({ data }) => <ResetDialog {...data.props} onReset={onReset} />,\n }),\n ]);\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AAsBzD,IAAA,yBAAe,CAAC,EAAEC,qBAAqBC,QAAO,MAC5CC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAIC,QAAQC;IACZC,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQC;IACxDK,WAAW,MAAM,sBAAA,cAACC,kBAAAA,IAAAA;EACpB,CAAA;EACAT,cAAc;IACZC,IAAIC,QAAQQ;IACZN,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQQ;IACxDF,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACK,kBAAAA;MAAiBhB;;EAC7C,CAAA;EACAK,cAAc;IACZC,IAAIC,QAAQU;IACZR,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQU;IACxDJ,WAAW,MAAM,sBAAA,cAACK,8BAAAA,IAAAA;EACpB,CAAA;EACAb,cAAc;IACZC,IAAIa;IACJV,MAAM;IACNC,QAAQ,CAACC,SAA4CA,KAAKE,cAAcM;IACxEN,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACS,YAAeT,KAAKU,KAAK;EACrD,CAAA;EACAhB,cAAc;IACZC,IAAIgB;IACJb,MAAM;IACNC,QAAQ,CAACC,SAAqDA,KAAKE,cAAcS;IACjFT,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACY,oBAAuBZ,KAAKU,KAAK;EAC7D,CAAA;EACAhB,cAAc;IACZC,IAAIkB;IACJf,MAAM;IACNC,QAAQ,CAACC,SAA8CA,KAAKE,cAAcW;IAC1EX,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACc,aAAAA;MAAa,GAAGd,KAAKU;MAAOpB;;EACxD,CAAA;CACD;",
|
|
6
|
-
"names": ["React", "Capabilities", "contributes", "createSurface", "createInvitationUrl", "onReset", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "Account", "Profile", "role", "filter", "data", "subject", "component", "ProfileContainer", "Devices", "DevicesContainer", "Security", "RecoveryCredentialsContainer", "JOIN_DIALOG", "JoinDialog", "props", "RECOVERY_CODE_DIALOG", "RecoveryCodeDialog", "RESET_DIALOG", "ResetDialog"]
|
|
7
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
ClientCapabilities
|
|
4
|
-
} from "./chunk-UYDFBGYA.mjs";
|
|
5
|
-
import "./chunk-QE4LPI2A.mjs";
|
|
6
|
-
|
|
7
|
-
// src/capabilities/schema-defs.ts
|
|
8
|
-
import { Capabilities, contributes } from "@dxos/app-framework";
|
|
9
|
-
var schema_defs_default = ((context) => {
|
|
10
|
-
const registry = context.getCapability(Capabilities.RxRegistry);
|
|
11
|
-
const client = context.getCapability(ClientCapabilities.Client);
|
|
12
|
-
let previous = [];
|
|
13
|
-
const cancel = registry.subscribe(context.capabilities(ClientCapabilities.Schema), (_schemas) => {
|
|
14
|
-
const schemas = Array.from(new Set(_schemas.flat()));
|
|
15
|
-
const newSchemas = schemas.filter((schema) => !previous.includes(schema));
|
|
16
|
-
previous = schemas;
|
|
17
|
-
client.addTypes(newSchemas);
|
|
18
|
-
}, {
|
|
19
|
-
immediate: true
|
|
20
|
-
});
|
|
21
|
-
return contributes(Capabilities.Null, null, () => cancel());
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
schema_defs_default as default
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=schema-defs-ATH5YBDR.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/schema-defs.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';\nimport { type Type } from '@dxos/echo';\n\nimport { ClientCapabilities } from './capabilities';\n\nexport default (context: PluginContext) => {\n const registry = context.getCapability(Capabilities.RxRegistry);\n const client = context.getCapability(ClientCapabilities.Client);\n\n // TODO(wittjosiah): Unregister schemas when they are disabled.\n let previous: Type.Obj.Any[] = [];\n const cancel = registry.subscribe(\n context.capabilities(ClientCapabilities.Schema),\n (_schemas) => {\n const schemas = Array.from(new Set(_schemas.flat()));\n // TODO(wittjosiah): Filter out schemas which the client has already registered.\n const newSchemas = schemas.filter((schema) => !previous.includes(schema));\n previous = schemas;\n client.addTypes(newSchemas);\n },\n { immediate: true },\n );\n\n return contributes(Capabilities.Null, null, () => cancel());\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;AAIA,SAASA,cAAkCC,mBAAmB;AAK9D,IAAA,uBAAe,CAACC,YAAAA;AACd,QAAMC,WAAWD,QAAQE,cAAcC,aAAaC,UAAU;AAC9D,QAAMC,SAASL,QAAQE,cAAcI,mBAAmBC,MAAM;AAG9D,MAAIC,WAA2B,CAAA;AAC/B,QAAMC,SAASR,SAASS,UACtBV,QAAQW,aAAaL,mBAAmBM,MAAM,GAC9C,CAACC,aAAAA;AACC,UAAMC,UAAUC,MAAMC,KAAK,IAAIC,IAAIJ,SAASK,KAAI,CAAA,CAAA;AAEhD,UAAMC,aAAaL,QAAQM,OAAO,CAACC,WAAW,CAACb,SAASc,SAASD,MAAAA,CAAAA;AACjEb,eAAWM;AACXT,WAAOkB,SAASJ,UAAAA;EAClB,GACA;IAAEK,WAAW;EAAK,CAAA;AAGpB,SAAOC,YAAYtB,aAAauB,MAAM,MAAM,MAAMjB,OAAAA,CAAAA;AACpD;",
|
|
6
|
-
"names": ["Capabilities", "contributes", "context", "registry", "getCapability", "Capabilities", "RxRegistry", "client", "ClientCapabilities", "Client", "previous", "cancel", "subscribe", "capabilities", "Schema", "_schemas", "schemas", "Array", "from", "Set", "flat", "newSchemas", "filter", "schema", "includes", "addTypes", "immediate", "contributes", "Null"]
|
|
7
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type PluginContext } from '@dxos/app-framework';
|
|
2
|
-
declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>;
|
|
3
|
-
export default _default;
|
|
4
|
-
//# sourceMappingURL=app-graph-builder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,aAAa,EAAe,MAAM,qBAAqB,CAAC;yBASpE,SAAS,aAAa;AAAtC,wBAgGI"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Client } from '@dxos/client';
|
|
2
|
-
import { type ObjectMigration } from '@dxos/client/echo';
|
|
3
|
-
export declare namespace ClientCapabilities {
|
|
4
|
-
const Client: import("@dxos/app-framework").InterfaceDef<Client>;
|
|
5
|
-
const Schema: import("@dxos/app-framework").InterfaceDef<import("effect/Schema").Schema.AnyNoContext[]>;
|
|
6
|
-
const SchemaWhiteList: import("@dxos/app-framework").InterfaceDef<import("effect/Schema").Schema.AnyNoContext[]>;
|
|
7
|
-
const Migration: import("@dxos/app-framework").InterfaceDef<ObjectMigration[]>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/capabilities.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKzD,yBAAiB,kBAAkB,CAAC;IAC3B,MAAM,MAAM,oDAA2D,CAAC;IACxE,MAAM,MAAM,2FAAmE,CAAC;IAEhF,MAAM,eAAe,2FAA6E,CAAC;IACnG,MAAM,SAAS,+DAAyE,CAAC;CACjG"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type PluginContext } from '@dxos/app-framework';
|
|
2
|
-
import { Client } from '@dxos/react-client';
|
|
3
|
-
import { type ClientPluginOptions } from '../types';
|
|
4
|
-
type ClientCapabilityOptions = Omit<ClientPluginOptions, 'appKey' | 'invitationUrl' | 'invitationParam' | 'onReset'> & {
|
|
5
|
-
context: PluginContext;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: ({ context, onClientInitialized, onSpacesReady, ...options }: ClientCapabilityOptions) => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Client>>>;
|
|
8
|
-
export default _default;
|
|
9
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG5C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAIpD,KAAK,uBAAuB,GAAG,IAAI,CAAC,mBAAmB,EAAE,QAAQ,GAAG,eAAe,GAAG,iBAAiB,GAAG,SAAS,CAAC,GAAG;IACrH,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;yBAEoB,6DAA6D,uBAAuB;AAA1G,wBA0BE"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Capabilities, type PluginContext } from '@dxos/app-framework';
|
|
2
|
-
type IntentResolverOptions = {
|
|
3
|
-
context: PluginContext;
|
|
4
|
-
appName?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: ({ context, appName }: IntentResolverOptions) => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.IntentResolver>>;
|
|
7
|
-
export default _default;
|
|
8
|
-
//# sourceMappingURL=intent-resolver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EAEZ,KAAK,aAAa,EAKnB,MAAM,qBAAqB,CAAC;AAY7B,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;yBAIc,sBAAmC,qBAAqB;AAAxE,wBAyNK"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,aAAa,EAAe,MAAM,qBAAqB,CAAC;yBAIpE,SAAS,aAAa;AAAtC,wBAgBE"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: () => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Readonly<{
|
|
3
|
-
id: string;
|
|
4
|
-
dependsOn?: string[];
|
|
5
|
-
context: React.FC<React.PropsWithChildren>;
|
|
6
|
-
}>>>;
|
|
7
|
-
export default _default;
|
|
8
|
-
//# sourceMappingURL=react-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAS1B,wBAOK"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Capabilities } from '@dxos/app-framework';
|
|
2
|
-
import { type ClientPluginOptions } from '../types';
|
|
3
|
-
type ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {
|
|
4
|
-
createInvitationUrl: (invitationCode: string) => string;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: ({ createInvitationUrl, onReset }: ReactSurfaceOptions) => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.ReactSurface>>;
|
|
7
|
-
export default _default;
|
|
8
|
-
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;AAgB/E,OAAO,EAAW,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE7D,KAAK,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAChE,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,CAAC;yBAEc,kCAAkC,mBAAmB;AAArE,wBAsCK"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type PluginContext } from '@dxos/app-framework';
|
|
2
|
-
declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<null>>;
|
|
3
|
-
export default _default;
|
|
4
|
-
//# sourceMappingURL=schema-defs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema-defs.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/schema-defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,aAAa,EAAe,MAAM,qBAAqB,CAAC;yBAKpE,SAAS,aAAa;AAAtC,wBAmBE"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare namespace ClientEvents {
|
|
2
|
-
const ClientReady: import("@dxos/app-framework").ActivationEvent;
|
|
3
|
-
const SetupSchema: import("@dxos/app-framework").ActivationEvent;
|
|
4
|
-
const SetupMigration: import("@dxos/app-framework").ActivationEvent;
|
|
5
|
-
const IdentityCreated: import("@dxos/app-framework").ActivationEvent;
|
|
6
|
-
const SpacesReady: import("@dxos/app-framework").ActivationEvent;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/events.ts"],"names":[],"mappings":"AAQA,yBAAiB,YAAY,CAAC;IACrB,MAAM,WAAW,+CAA+C,CAAC;IACjE,MAAM,WAAW,+CAA+C,CAAC;IACjE,MAAM,cAAc,+CAAkD,CAAC;IACvE,MAAM,eAAe,+CAAmD,CAAC;IACzE,MAAM,WAAW,+CAA+C,CAAC;CACzE"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Rx } from '@effect-rx/rx-react';
|
|
6
|
-
import * as Function from 'effect/Function';
|
|
7
|
-
import * as Option from 'effect/Option';
|
|
8
|
-
|
|
9
|
-
import { createIntent } from '@dxos/app-framework';
|
|
10
|
-
import { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';
|
|
11
|
-
import { ROOT_ID, createExtension, rxFromObservable } from '@dxos/plugin-graph';
|
|
12
|
-
import { ConnectionState } from '@dxos/react-client/mesh';
|
|
13
|
-
|
|
14
|
-
import { meta } from '../meta';
|
|
15
|
-
import { Account, ClientAction } from '../types';
|
|
16
|
-
|
|
17
|
-
import { ClientCapabilities } from './capabilities';
|
|
18
|
-
|
|
19
|
-
export default (context: PluginContext) =>
|
|
20
|
-
contributes(
|
|
21
|
-
Capabilities.AppGraphBuilder,
|
|
22
|
-
createExtension({
|
|
23
|
-
id: meta.id,
|
|
24
|
-
actions: (node) =>
|
|
25
|
-
Rx.make((get) =>
|
|
26
|
-
Function.pipe(
|
|
27
|
-
get(node),
|
|
28
|
-
Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
|
|
29
|
-
Option.map(() => {
|
|
30
|
-
return [
|
|
31
|
-
{
|
|
32
|
-
id: `${meta.id}/open-user-account`,
|
|
33
|
-
data: async () => {
|
|
34
|
-
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
35
|
-
await dispatch(createIntent(ClientAction.ShareIdentity));
|
|
36
|
-
},
|
|
37
|
-
properties: {
|
|
38
|
-
label: ['open user account label', { ns: meta.id }],
|
|
39
|
-
icon: 'ph--user--regular',
|
|
40
|
-
disposition: 'menu',
|
|
41
|
-
keyBinding: {
|
|
42
|
-
macos: 'meta+shift+.',
|
|
43
|
-
// TODO(wittjosiah): Test on windows to see if it behaves the same as linux.
|
|
44
|
-
windows: 'alt+shift+.',
|
|
45
|
-
linux: 'alt+shift+>',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
];
|
|
50
|
-
}),
|
|
51
|
-
Option.getOrElse(() => []),
|
|
52
|
-
),
|
|
53
|
-
),
|
|
54
|
-
connector: (node) =>
|
|
55
|
-
Rx.make((get) =>
|
|
56
|
-
Function.pipe(
|
|
57
|
-
get(node),
|
|
58
|
-
Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
|
|
59
|
-
Option.map(() => {
|
|
60
|
-
const client = context.getCapability(ClientCapabilities.Client);
|
|
61
|
-
const identity = get(rxFromObservable(client.halo.identity));
|
|
62
|
-
const status = get(rxFromObservable(client.mesh.networkStatus));
|
|
63
|
-
|
|
64
|
-
return [
|
|
65
|
-
{
|
|
66
|
-
id: Account.id,
|
|
67
|
-
type: meta.id,
|
|
68
|
-
properties: {
|
|
69
|
-
label: ['account label', { ns: meta.id }],
|
|
70
|
-
icon: 'ph--user--regular',
|
|
71
|
-
disposition: 'user-account',
|
|
72
|
-
// NOTE: This currently needs to be the identity key because the fallback is generated from hex.
|
|
73
|
-
userId: identity?.identityKey.toHex(),
|
|
74
|
-
hue: identity?.profile?.data?.hue,
|
|
75
|
-
emoji: identity?.profile?.data?.emoji,
|
|
76
|
-
status: status.swarm === ConnectionState.OFFLINE ? 'error' : 'active',
|
|
77
|
-
},
|
|
78
|
-
nodes: [
|
|
79
|
-
{
|
|
80
|
-
id: Account.Profile,
|
|
81
|
-
data: Account.Profile,
|
|
82
|
-
type: meta.id,
|
|
83
|
-
properties: {
|
|
84
|
-
label: ['profile label', { ns: meta.id }],
|
|
85
|
-
icon: 'ph--user--regular',
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: Account.Devices,
|
|
90
|
-
data: Account.Devices,
|
|
91
|
-
type: meta.id,
|
|
92
|
-
properties: {
|
|
93
|
-
label: ['devices label', { ns: meta.id }],
|
|
94
|
-
icon: 'ph--devices--regular',
|
|
95
|
-
testId: 'clientPlugin.devices',
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
id: Account.Security,
|
|
100
|
-
data: Account.Security,
|
|
101
|
-
type: meta.id,
|
|
102
|
-
properties: {
|
|
103
|
-
label: ['security label', { ns: meta.id }],
|
|
104
|
-
icon: 'ph--key--regular',
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
],
|
|
108
|
-
},
|
|
109
|
-
];
|
|
110
|
-
}),
|
|
111
|
-
Option.getOrElse(() => []),
|
|
112
|
-
),
|
|
113
|
-
),
|
|
114
|
-
}),
|
|
115
|
-
);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { defineCapability } from '@dxos/app-framework';
|
|
6
|
-
import { type Client } from '@dxos/client';
|
|
7
|
-
import { type ObjectMigration } from '@dxos/client/echo';
|
|
8
|
-
import { type Type } from '@dxos/echo';
|
|
9
|
-
|
|
10
|
-
import { meta } from '../meta';
|
|
11
|
-
|
|
12
|
-
export namespace ClientCapabilities {
|
|
13
|
-
export const Client = defineCapability<Client>(`${meta.id}/capability/client`);
|
|
14
|
-
export const Schema = defineCapability<Type.Obj.Any[]>(`${meta.id}/capability/schema`);
|
|
15
|
-
// TODO(wittjosiah): More descriptive name.
|
|
16
|
-
export const SchemaWhiteList = defineCapability<Type.Obj.Any[]>(`${meta.id}/capability/schema-whitelist`);
|
|
17
|
-
export const Migration = defineCapability<ObjectMigration[]>(`${meta.id}/capability/migration`);
|
|
18
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { type PluginContext, contributes } from '@dxos/app-framework';
|
|
6
|
-
import { Client } from '@dxos/react-client';
|
|
7
|
-
|
|
8
|
-
import { ClientEvents } from '../events';
|
|
9
|
-
import { type ClientPluginOptions } from '../types';
|
|
10
|
-
|
|
11
|
-
import { ClientCapabilities } from './capabilities';
|
|
12
|
-
|
|
13
|
-
type ClientCapabilityOptions = Omit<ClientPluginOptions, 'appKey' | 'invitationUrl' | 'invitationParam' | 'onReset'> & {
|
|
14
|
-
context: PluginContext;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export default async ({ context, onClientInitialized, onSpacesReady, ...options }: ClientCapabilityOptions) => {
|
|
18
|
-
const client = new Client(options);
|
|
19
|
-
await client.initialize();
|
|
20
|
-
await onClientInitialized?.({ context, client });
|
|
21
|
-
|
|
22
|
-
// TODO(wittjosiah): Remove. This is a hack to get the app to boot with the new identity after a reset.
|
|
23
|
-
client.reloaded.on(() => {
|
|
24
|
-
client.halo.identity.subscribe(async (identity) => {
|
|
25
|
-
if (identity) {
|
|
26
|
-
window.location.href = window.location.origin;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
// TODO(burdon): The callback isn't called?
|
|
32
|
-
const subscription = client.spaces.isReady.subscribe(async (ready) => {
|
|
33
|
-
if (ready) {
|
|
34
|
-
await context.activatePromise(ClientEvents.SpacesReady);
|
|
35
|
-
await onSpacesReady?.({ context, client });
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
return contributes(ClientCapabilities.Client, client, async () => {
|
|
40
|
-
subscription.unsubscribe();
|
|
41
|
-
await client.destroy();
|
|
42
|
-
});
|
|
43
|
-
};
|