@dxos/plugin-client 0.8.2-main.2f9c567 → 0.8.2-main.30e4dbb

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.
Files changed (39) hide show
  1. package/dist/lib/browser/{app-graph-builder-2MEWX6SJ.mjs → app-graph-builder-HF6N4HAT.mjs} +2 -1
  2. package/dist/lib/browser/app-graph-builder-HF6N4HAT.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +2 -2
  4. package/dist/lib/browser/index.mjs.map +1 -1
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/node/{app-graph-builder-JBJ243GL.cjs → app-graph-builder-EX2ZCSCE.cjs} +5 -4
  7. package/dist/lib/node/app-graph-builder-EX2ZCSCE.cjs.map +7 -0
  8. package/dist/lib/node/index.cjs +2 -2
  9. package/dist/lib/node/index.cjs.map +1 -1
  10. package/dist/lib/node/meta.json +1 -1
  11. package/dist/lib/node-esm/{app-graph-builder-7NA7GGEF.mjs → app-graph-builder-5LDVLNG5.mjs} +2 -1
  12. package/dist/lib/node-esm/app-graph-builder-5LDVLNG5.mjs.map +7 -0
  13. package/dist/lib/node-esm/index.mjs +2 -2
  14. package/dist/lib/node-esm/index.mjs.map +1 -1
  15. package/dist/lib/node-esm/meta.json +1 -1
  16. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  17. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  18. package/dist/types/src/capabilities/client.d.ts.map +1 -1
  19. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  20. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  21. package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
  22. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  23. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -1
  24. package/dist/types/src/components/DevicesContainer.d.ts.map +1 -1
  25. package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
  26. package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
  27. package/dist/types/src/components/ResetDialog.d.ts.map +1 -1
  28. package/dist/types/tsconfig.tsbuildinfo +1 -1
  29. package/package.json +23 -23
  30. package/src/capabilities/app-graph-builder.ts +1 -0
  31. package/src/components/DevicesContainer.stories.tsx +1 -1
  32. package/src/components/ProfileContainer.stories.tsx +1 -1
  33. package/src/components/RecoveryCodeDialog.stories.tsx +1 -1
  34. package/src/components/RecoveryCredentialsContainer.stories.tsx +1 -1
  35. package/src/components/ResetDialog.stories.tsx +1 -1
  36. package/src/translations.ts +1 -1
  37. package/dist/lib/browser/app-graph-builder-2MEWX6SJ.mjs.map +0 -7
  38. package/dist/lib/node/app-graph-builder-JBJ243GL.cjs.map +0 -7
  39. package/dist/lib/node-esm/app-graph-builder-7NA7GGEF.mjs.map +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EAMZ,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAW7B,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;+CAIiD,qBAAqB;AAAxE,wBAyNK"}
1
+ {"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EAMZ,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAW7B,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;yBAIc,sBAAmC,qBAAqB;AAAxE,wBAyNK"}
@@ -1 +1 @@
1
- {"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/migrations.ts"],"names":[],"mappings":"AAMA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;kCAI5D,cAAc;AAAvC,wBAWE"}
1
+ {"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/migrations.ts"],"names":[],"mappings":"AAMA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;yBAIrE,SAAS,cAAc;AAAvC,wBAWE"}
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAiB,YAAY,EAAe,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;2DAEgD,mBAAmB;AAArE,wBAsCK"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAiB,YAAY,EAAe,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 +1 @@
1
- {"version":3,"file":"schema-defs.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/schema-defs.ts"],"names":[],"mappings":"AAMA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;kCAK5D,cAAc;AAAvC,wBAcE"}
1
+ {"version":3,"file":"schema-defs.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/schema-defs.ts"],"names":[],"mappings":"AAMA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;yBAKrE,SAAS,cAAc;AAAvC,wBAcE"}
@@ -1 +1 @@
1
- {"version":3,"file":"DevicesContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevicesContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2C,MAAM,OAAO,CAAC;AA0BhE,eAAO,MAAM,gBAAgB,6BAE1B;IACD,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,sBAoFA,CAAC"}
1
+ {"version":3,"file":"DevicesContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevicesContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2C,MAAM,OAAO,CAAC;AA0BhE,eAAO,MAAM,gBAAgB,GAAI,0BAE9B;IACD,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,sBAoFA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"JoinDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/JoinDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAM3C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAKnE,eAAO,MAAM,WAAW,sCAAgC,CAAC;AAEzD,eAAO,MAAM,UAAU,UAAW,cAAc,sBAmC/C,CAAC"}
1
+ {"version":3,"file":"JoinDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/JoinDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAM3C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAKnE,eAAO,MAAM,WAAW,sCAAgC,CAAC;AAEzD,eAAO,MAAM,UAAU,GAAI,OAAO,cAAc,sBAmC/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RecoveryCodeDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/RecoveryCodeDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAMrD,eAAO,MAAM,oBAAoB,8CAAwC,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,kBAAkB,aAAc,uBAAuB,sBAoCnE,CAAC"}
1
+ {"version":3,"file":"RecoveryCodeDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/RecoveryCodeDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAMrD,eAAO,MAAM,oBAAoB,8CAAwC,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,UAAU,uBAAuB,sBAoCnE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ResetDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ResetDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAGzE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,YAAY,uCAAiC,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC;AAEtG,eAAO,MAAM,WAAW,sBAAuB,gBAAgB,sBA8B9D,CAAC"}
1
+ {"version":3,"file":"ResetDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ResetDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAGzE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,YAAY,uCAAiC,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC;AAEtG,eAAO,MAAM,WAAW,GAAI,mBAAmB,gBAAgB,sBA8B9D,CAAC"}
@@ -1 +1 @@
1
- {"version":"5.7.3"}
1
+ {"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-client",
3
- "version": "0.8.2-main.2f9c567",
3
+ "version": "0.8.2-main.30e4dbb",
4
4
  "description": "DXOS Surface plugin for DXOS Client",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -36,22 +36,22 @@
36
36
  "@preact/signals-core": "^1.6.0",
37
37
  "effect": "3.14.21",
38
38
  "react-qr-rounded": "^1.0.0",
39
- "@dxos/async": "0.8.2-main.2f9c567",
40
- "@dxos/config": "0.8.2-main.2f9c567",
41
- "@dxos/echo-signals": "0.8.2-main.2f9c567",
42
- "@dxos/invariant": "0.8.2-main.2f9c567",
43
- "@dxos/echo-schema": "0.8.2-main.2f9c567",
44
- "@dxos/app-framework": "0.8.2-main.2f9c567",
45
- "@dxos/local-storage": "0.8.2-main.2f9c567",
46
- "@dxos/log": "0.8.2-main.2f9c567",
47
- "@dxos/plugin-graph": "0.8.2-main.2f9c567",
48
- "@dxos/plugin-observability": "0.8.2-main.2f9c567",
49
- "@dxos/react-client": "0.8.2-main.2f9c567",
50
- "@dxos/react-ui-form": "0.8.2-main.2f9c567",
51
- "@dxos/react-ui-pickers": "0.8.2-main.2f9c567",
52
- "@dxos/shell": "0.8.2-main.2f9c567",
53
- "@dxos/react-ui-stack": "0.8.2-main.2f9c567",
54
- "@dxos/util": "0.8.2-main.2f9c567"
39
+ "@dxos/app-framework": "0.8.2-main.30e4dbb",
40
+ "@dxos/async": "0.8.2-main.30e4dbb",
41
+ "@dxos/config": "0.8.2-main.30e4dbb",
42
+ "@dxos/invariant": "0.8.2-main.30e4dbb",
43
+ "@dxos/echo-signals": "0.8.2-main.30e4dbb",
44
+ "@dxos/local-storage": "0.8.2-main.30e4dbb",
45
+ "@dxos/log": "0.8.2-main.30e4dbb",
46
+ "@dxos/plugin-graph": "0.8.2-main.30e4dbb",
47
+ "@dxos/echo-schema": "0.8.2-main.30e4dbb",
48
+ "@dxos/plugin-observability": "0.8.2-main.30e4dbb",
49
+ "@dxos/react-client": "0.8.2-main.30e4dbb",
50
+ "@dxos/react-ui-pickers": "0.8.2-main.30e4dbb",
51
+ "@dxos/react-ui-form": "0.8.2-main.30e4dbb",
52
+ "@dxos/react-ui-stack": "0.8.2-main.30e4dbb",
53
+ "@dxos/shell": "0.8.2-main.30e4dbb",
54
+ "@dxos/util": "0.8.2-main.30e4dbb"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@phosphor-icons/react": "^2.1.5",
@@ -61,18 +61,18 @@
61
61
  "react": "~18.2.0",
62
62
  "react-dom": "~18.2.0",
63
63
  "vite": "5.4.7",
64
- "@dxos/live-object": "0.8.2-main.2f9c567",
65
- "@dxos/react-ui-theme": "0.8.2-main.2f9c567",
66
- "@dxos/react-ui": "0.8.2-main.2f9c567",
67
- "@dxos/storybook-utils": "0.8.2-main.2f9c567"
64
+ "@dxos/react-ui": "0.8.2-main.30e4dbb",
65
+ "@dxos/live-object": "0.8.2-main.30e4dbb",
66
+ "@dxos/react-ui-theme": "0.8.2-main.30e4dbb",
67
+ "@dxos/storybook-utils": "0.8.2-main.30e4dbb"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@phosphor-icons/react": "^2.1.5",
71
71
  "effect": "^3.13.3",
72
72
  "react": "~18.2.0",
73
73
  "react-dom": "~18.2.0",
74
- "@dxos/react-ui": "0.8.2-main.2f9c567",
75
- "@dxos/react-ui-theme": "0.8.2-main.2f9c567"
74
+ "@dxos/react-ui": "0.8.2-main.30e4dbb",
75
+ "@dxos/react-ui-theme": "0.8.2-main.30e4dbb"
76
76
  },
77
77
  "publishConfig": {
78
78
  "access": "public"
@@ -27,6 +27,7 @@ export default (context: PluginsContext) =>
27
27
  properties: {
28
28
  label: ['open user account label', { ns: CLIENT_PLUGIN }],
29
29
  icon: 'ph--user--regular',
30
+ disposition: 'menu',
30
31
  keyBinding: {
31
32
  macos: 'meta+shift+.',
32
33
  // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.
@@ -30,7 +30,7 @@ const meta: Meta = {
30
30
  ],
31
31
  }),
32
32
  withTheme,
33
- withLayout({ tooltips: true }),
33
+ withLayout(),
34
34
  ],
35
35
  parameters: {
36
36
  layout: 'fullscreen',
@@ -15,7 +15,7 @@ import translations from '../translations';
15
15
  const meta: Meta = {
16
16
  title: 'plugins/plugin-client/ProfileContainer',
17
17
  component: ProfileContainer,
18
- decorators: [withClientProvider({ createIdentity: true }), withTheme, withLayout({ tooltips: true })],
18
+ decorators: [withClientProvider({ createIdentity: true }), withTheme, withLayout()],
19
19
  parameters: {
20
20
  layout: 'fullscreen',
21
21
  translations,
@@ -36,7 +36,7 @@ const meta: Meta<RecoveryCodeDialogProps> = {
36
36
  title: 'plugins/plugin-client/RecoveryCodeDialog',
37
37
  component: RecoveryCodeDialog,
38
38
  render: DefaultStory,
39
- decorators: [withClientProvider({ createIdentity: true }), withTheme, withLayout({ tooltips: true })],
39
+ decorators: [withClientProvider({ createIdentity: true }), withTheme, withLayout()],
40
40
  parameters: {
41
41
  layout: 'fullscreen',
42
42
  translations,
@@ -29,7 +29,7 @@ const meta: Meta = {
29
29
  ],
30
30
  }),
31
31
  withTheme,
32
- withLayout({ tooltips: true }),
32
+ withLayout(),
33
33
  ],
34
34
  parameters: {
35
35
  layout: 'fullscreen',
@@ -29,7 +29,7 @@ const meta: Meta<ResetDialogProps> = {
29
29
  title: 'plugins/plugin-client/ResetDialog',
30
30
  component: ResetDialog,
31
31
  render: Render,
32
- decorators: [withPluginManager({ plugins: [IntentPlugin()] }), withTheme, withLayout({ tooltips: true })],
32
+ decorators: [withPluginManager({ plugins: [IntentPlugin()] }), withTheme, withLayout()],
33
33
  parameters: {
34
34
  layout: 'fullscreen',
35
35
  translations,
@@ -10,7 +10,7 @@ export default [
10
10
  [CLIENT_PLUGIN]: {
11
11
  'account label': 'User Account',
12
12
  'profile label': 'Profile',
13
- 'profile description': 'You can adjust how you’re represented in Composer here.',
13
+ 'profile description': 'You can adjust how your user settings here.',
14
14
  'devices label': 'Devices',
15
15
  'devices verbose label': 'Manage devices',
16
16
  'add device description':
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { createIntent } from '@dxos/app-framework';\nimport { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';\nimport { createExtension, toSignal, type Node } from '@dxos/plugin-graph';\nimport { ConnectionState } from '@dxos/react-client/mesh';\n\nimport { ClientCapabilities } from './capabilities';\nimport { CLIENT_PLUGIN } from '../meta';\nimport { Account, ClientAction } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(\n Capabilities.AppGraphBuilder,\n createExtension({\n id: CLIENT_PLUGIN,\n filter: (node): node is Node<null> => node.id === 'root',\n actions: () => [\n {\n id: `${CLIENT_PLUGIN}/open-user-account`,\n data: async () => {\n const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);\n await dispatch(createIntent(ClientAction.ShareIdentity));\n },\n properties: {\n label: ['open user account label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n keyBinding: {\n macos: 'meta+shift+.',\n // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.\n windows: 'alt+shift+.',\n linux: 'alt+shift+>',\n },\n },\n },\n ],\n connector: () => {\n const client = context.requestCapability(ClientCapabilities.Client);\n const identity = client.halo.identity.get();\n const status = toSignal(\n (onChange) => client.mesh.networkStatus.subscribe(() => onChange()).unsubscribe,\n () => client.mesh.networkStatus.get(),\n );\n\n return [\n {\n id: Account.id,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['account label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n disposition: 'user-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: CLIENT_PLUGIN,\n properties: {\n label: ['profile label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n },\n },\n {\n id: Account.Devices,\n data: Account.Devices,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['devices label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--devices--regular',\n testId: 'clientPlugin.devices',\n },\n },\n {\n id: Account.Security,\n data: Account.Security,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['security label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--key--regular',\n },\n },\n ],\n },\n ];\n },\n }),\n );\n"],
5
- "mappings": ";;;;;;;;;;;;AAIA,SAASA,oBAAoB;AAC7B,SAASC,cAAcC,mBAAwC;AAC/D,SAASC,iBAAiBC,gBAA2B;AACrD,SAASC,uBAAuB;AAMhC,IAAA,4BAAe,CAACC,YACdC,YACEC,aAAaC,iBACbC,gBAAgB;EACdC,IAAIC;EACJC,QAAQ,CAACC,SAA6BA,KAAKH,OAAO;EAClDI,SAAS,MAAM;IACb;MACEJ,IAAI,GAAGC,aAAAA;MACPI,MAAM,YAAA;AACJ,cAAM,EAAEC,iBAAiBC,SAAQ,IAAKZ,QAAQa,kBAAkBX,aAAaY,gBAAgB;AAC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C9Ce,MAAM;YACR;UACF;;MAEJ;;EAEJ;AACF,CAAA,CAAA;",
6
- "names": ["createIntent", "Capabilities", "contributes", "createExtension", "toSignal", "ConnectionState", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "CLIENT_PLUGIN", "filter", "node", "actions", "data", "dispatchPromise", "dispatch", "requestCapability", "IntentDispatcher", "createIntent", "ClientAction", "ShareIdentity", "properties", "label", "ns", "icon", "keyBinding", "macos", "windows", "linux", "connector", "client", "ClientCapabilities", "Client", "identity", "halo", "get", "status", "toSignal", "onChange", "mesh", "networkStatus", "subscribe", "unsubscribe", "Account", "type", "disposition", "userId", "identityKey", "toHex", "hue", "profile", "emoji", "swarm", "ConnectionState", "OFFLINE", "nodes", "Profile", "Devices", "testId", "Security"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { createIntent } from '@dxos/app-framework';\nimport { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';\nimport { createExtension, toSignal, type Node } from '@dxos/plugin-graph';\nimport { ConnectionState } from '@dxos/react-client/mesh';\n\nimport { ClientCapabilities } from './capabilities';\nimport { CLIENT_PLUGIN } from '../meta';\nimport { Account, ClientAction } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(\n Capabilities.AppGraphBuilder,\n createExtension({\n id: CLIENT_PLUGIN,\n filter: (node): node is Node<null> => node.id === 'root',\n actions: () => [\n {\n id: `${CLIENT_PLUGIN}/open-user-account`,\n data: async () => {\n const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);\n await dispatch(createIntent(ClientAction.ShareIdentity));\n },\n properties: {\n label: ['open user account label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n keyBinding: {\n macos: 'meta+shift+.',\n // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.\n windows: 'alt+shift+.',\n linux: 'alt+shift+>',\n },\n },\n },\n ],\n connector: () => {\n const client = context.requestCapability(ClientCapabilities.Client);\n const identity = client.halo.identity.get();\n const status = toSignal(\n (onChange) => client.mesh.networkStatus.subscribe(() => onChange()).unsubscribe,\n () => client.mesh.networkStatus.get(),\n );\n\n return [\n {\n id: Account.id,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['account label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n disposition: 'user-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: CLIENT_PLUGIN,\n properties: {\n label: ['profile label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n },\n },\n {\n id: Account.Devices,\n data: Account.Devices,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['devices label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--devices--regular',\n testId: 'clientPlugin.devices',\n },\n },\n {\n id: Account.Security,\n data: Account.Security,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['security label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--key--regular',\n },\n },\n ],\n },\n ];\n },\n }),\n );\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAA6B;AAC7B,IAAAA,wBAA+D;AAC/D,0BAAqD;AACrD,kBAAgC;AAMhC,IAAA,4BAAe,CAACC,gBACdC,mCACEC,mCAAaC,qBACbC,qCAAgB;EACdC,IAAIC;EACJC,QAAQ,CAACC,SAA6BA,KAAKH,OAAO;EAClDI,SAAS,MAAM;IACb;MACEJ,IAAI,GAAGC,mCAAAA;MACPI,MAAM,YAAA;AACJ,cAAM,EAAEC,iBAAiBC,SAAQ,IAAKZ,QAAQa,kBAAkBX,mCAAaY,gBAAgB;AAC7F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BAAc;;cAC9Ce,MAAM;YACR;UACF;;MAEJ;;EAEJ;AACF,CAAA,CAAA;",
6
- "names": ["import_app_framework", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "CLIENT_PLUGIN", "filter", "node", "actions", "data", "dispatchPromise", "dispatch", "requestCapability", "IntentDispatcher", "createIntent", "ClientAction", "ShareIdentity", "properties", "label", "ns", "icon", "keyBinding", "macos", "windows", "linux", "connector", "client", "ClientCapabilities", "Client", "identity", "halo", "get", "status", "toSignal", "onChange", "mesh", "networkStatus", "subscribe", "unsubscribe", "Account", "type", "disposition", "userId", "identityKey", "toHex", "hue", "profile", "emoji", "swarm", "ConnectionState", "OFFLINE", "nodes", "Profile", "Devices", "testId", "Security"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { createIntent } from '@dxos/app-framework';\nimport { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';\nimport { createExtension, toSignal, type Node } from '@dxos/plugin-graph';\nimport { ConnectionState } from '@dxos/react-client/mesh';\n\nimport { ClientCapabilities } from './capabilities';\nimport { CLIENT_PLUGIN } from '../meta';\nimport { Account, ClientAction } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(\n Capabilities.AppGraphBuilder,\n createExtension({\n id: CLIENT_PLUGIN,\n filter: (node): node is Node<null> => node.id === 'root',\n actions: () => [\n {\n id: `${CLIENT_PLUGIN}/open-user-account`,\n data: async () => {\n const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);\n await dispatch(createIntent(ClientAction.ShareIdentity));\n },\n properties: {\n label: ['open user account label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n keyBinding: {\n macos: 'meta+shift+.',\n // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.\n windows: 'alt+shift+.',\n linux: 'alt+shift+>',\n },\n },\n },\n ],\n connector: () => {\n const client = context.requestCapability(ClientCapabilities.Client);\n const identity = client.halo.identity.get();\n const status = toSignal(\n (onChange) => client.mesh.networkStatus.subscribe(() => onChange()).unsubscribe,\n () => client.mesh.networkStatus.get(),\n );\n\n return [\n {\n id: Account.id,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['account label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n disposition: 'user-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: CLIENT_PLUGIN,\n properties: {\n label: ['profile label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--user--regular',\n },\n },\n {\n id: Account.Devices,\n data: Account.Devices,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['devices label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--devices--regular',\n testId: 'clientPlugin.devices',\n },\n },\n {\n id: Account.Security,\n data: Account.Security,\n type: CLIENT_PLUGIN,\n properties: {\n label: ['security label', { ns: CLIENT_PLUGIN }],\n icon: 'ph--key--regular',\n },\n },\n ],\n },\n ];\n },\n }),\n );\n"],
5
- "mappings": ";;;;;;;;;;;;;AAIA,SAASA,oBAAoB;AAC7B,SAASC,cAAcC,mBAAwC;AAC/D,SAASC,iBAAiBC,gBAA2B;AACrD,SAASC,uBAAuB;AAMhC,IAAA,4BAAe,CAACC,YACdC,YACEC,aAAaC,iBACbC,gBAAgB;EACdC,IAAIC;EACJC,QAAQ,CAACC,SAA6BA,KAAKH,OAAO;EAClDI,SAAS,MAAM;IACb;MACEJ,IAAI,GAAGC,aAAAA;MACPI,MAAM,YAAA;AACJ,cAAM,EAAEC,iBAAiBC,SAAQ,IAAKZ,QAAQa,kBAAkBX,aAAaY,gBAAgB;AAC7F,cAAMF,SAASG,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;UACF;;MAEJ;;EAEJ;AACF,CAAA,CAAA;",
6
- "names": ["createIntent", "Capabilities", "contributes", "createExtension", "toSignal", "ConnectionState", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "CLIENT_PLUGIN", "filter", "node", "actions", "data", "dispatchPromise", "dispatch", "requestCapability", "IntentDispatcher", "createIntent", "ClientAction", "ShareIdentity", "properties", "label", "ns", "icon", "keyBinding", "macos", "windows", "linux", "connector", "client", "ClientCapabilities", "Client", "identity", "halo", "get", "status", "toSignal", "onChange", "mesh", "networkStatus", "subscribe", "unsubscribe", "Account", "type", "disposition", "userId", "identityKey", "toHex", "hue", "profile", "emoji", "swarm", "ConnectionState", "OFFLINE", "nodes", "Profile", "Devices", "testId", "Security"]
7
- }