@dxos/plugin-client 0.8.1-main.ba2dec9 → 0.8.1-staging.31c3ee1
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-WAS4YZNA.mjs +119 -0
- package/dist/lib/browser/app-graph-builder-WAS4YZNA.mjs.map +7 -0
- package/dist/lib/browser/{chunk-OLUST5AO.mjs → chunk-4PLF3BEB.mjs} +2 -2
- package/dist/lib/browser/{chunk-7DPLXOMO.mjs → chunk-AN7FJKIJ.mjs} +21 -4
- package/dist/lib/browser/{chunk-7DPLXOMO.mjs.map → chunk-AN7FJKIJ.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-XK4HM5M7.mjs → chunk-BGY6BSUC.mjs} +3 -2
- package/dist/lib/browser/{chunk-XK4HM5M7.mjs.map → chunk-BGY6BSUC.mjs.map} +3 -3
- package/dist/lib/browser/chunk-CAM6IWZ2.mjs +619 -0
- package/dist/lib/browser/chunk-CAM6IWZ2.mjs.map +7 -0
- package/dist/lib/browser/{chunk-NHIL4T3L.mjs → chunk-MCEXD5XH.mjs} +1 -1
- package/dist/lib/browser/{chunk-NHIL4T3L.mjs.map → chunk-MCEXD5XH.mjs.map} +2 -2
- package/dist/lib/browser/{client-UUGITHCW.mjs → client-LV67Q3R7.mjs} +5 -5
- package/dist/lib/browser/{client-UUGITHCW.mjs.map → client-LV67Q3R7.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +51 -22
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/{intent-resolver-AIUHL34E.mjs → intent-resolver-JAQCJLKQ.mjs} +65 -27
- package/dist/lib/browser/intent-resolver-JAQCJLKQ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{migrations-XODC625X.mjs → migrations-3DWFOL5Q.mjs} +3 -3
- package/dist/lib/browser/{react-context-JBD7Y3SN.mjs → react-context-WEH7SL4I.mjs} +3 -3
- package/dist/lib/browser/react-surface-M6Q6RT3Q.mjs +66 -0
- package/dist/lib/browser/react-surface-M6Q6RT3Q.mjs.map +7 -0
- package/dist/lib/browser/{schema-Y7ZNXYSL.mjs → schema-JQAT6Q7S.mjs} +3 -3
- package/dist/lib/browser/types.mjs +4 -2
- package/dist/lib/node/app-graph-builder-PXOJZJO5.cjs +130 -0
- package/dist/lib/node/app-graph-builder-PXOJZJO5.cjs.map +7 -0
- package/dist/lib/node/chunk-ARZVO2AR.cjs +644 -0
- package/dist/lib/node/chunk-ARZVO2AR.cjs.map +7 -0
- package/dist/lib/node/{chunk-OIFPM5ZW.cjs → chunk-DJKWB5L6.cjs} +4 -4
- package/dist/lib/node/{chunk-OIFPM5ZW.cjs.map → chunk-DJKWB5L6.cjs.map} +2 -2
- package/dist/lib/node/{chunk-TREVKZCJ.cjs → chunk-FROKBEVH.cjs} +25 -7
- package/dist/lib/node/chunk-FROKBEVH.cjs.map +7 -0
- package/dist/lib/node/{chunk-FR2K56EV.cjs → chunk-W64EOF2B.cjs} +10 -10
- package/dist/lib/node/{chunk-T4K27K2F.cjs → chunk-ZVQIICEN.cjs} +9 -8
- package/dist/lib/node/{chunk-T4K27K2F.cjs.map → chunk-ZVQIICEN.cjs.map} +3 -3
- package/dist/lib/node/{client-5BHSU35T.cjs → client-BKTGRBYM.cjs} +9 -9
- package/dist/lib/node/{client-5BHSU35T.cjs.map → client-BKTGRBYM.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +70 -41
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/{intent-resolver-PWCHHNV3.cjs → intent-resolver-Y73DGA7F.cjs} +81 -44
- package/dist/lib/node/intent-resolver-Y73DGA7F.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{migrations-YCBZUPWO.cjs → migrations-TGNI4FVL.cjs} +8 -8
- package/dist/lib/node/{react-context-MPHNGZHT.cjs → react-context-SF3M3YLR.cjs} +8 -8
- package/dist/lib/node/{react-surface-TPISDIHR.cjs → react-surface-KWTTP7ZX.cjs} +34 -26
- package/dist/lib/node/react-surface-KWTTP7ZX.cjs.map +7 -0
- package/dist/lib/node/{schema-NMMCMK64.cjs → schema-INQ72F54.cjs} +8 -8
- package/dist/lib/node/types.cjs +5 -3
- package/dist/lib/node/types.cjs.map +2 -2
- package/dist/lib/node-esm/app-graph-builder-KIN6NWFI.mjs +120 -0
- package/dist/lib/node-esm/app-graph-builder-KIN6NWFI.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-6WHEPWQD.mjs +620 -0
- package/dist/lib/node-esm/chunk-6WHEPWQD.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-QJMF2MWP.mjs → chunk-AD5W5QCQ.mjs} +21 -4
- package/dist/lib/node-esm/{chunk-QJMF2MWP.mjs.map → chunk-AD5W5QCQ.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-XLLNVLWU.mjs → chunk-BP56BGZR.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-HO7WDE7C.mjs → chunk-HM7VB4ZV.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-HO7WDE7C.mjs.map → chunk-HM7VB4ZV.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-3OU2ZXLK.mjs → chunk-K3KGGSJZ.mjs} +3 -2
- package/dist/lib/node-esm/{chunk-3OU2ZXLK.mjs.map → chunk-K3KGGSJZ.mjs.map} +3 -3
- package/dist/lib/node-esm/{client-ZDGFGLX4.mjs → client-QQD6WFOB.mjs} +5 -5
- package/dist/lib/node-esm/{client-ZDGFGLX4.mjs.map → client-QQD6WFOB.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +51 -22
- package/dist/lib/node-esm/index.mjs.map +2 -2
- package/dist/lib/node-esm/{intent-resolver-FIXGPH7C.mjs → intent-resolver-K3CA4JRC.mjs} +65 -27
- package/dist/lib/node-esm/intent-resolver-K3CA4JRC.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{migrations-VIEIPYJW.mjs → migrations-IVGATGZR.mjs} +3 -3
- package/dist/lib/node-esm/{react-context-KUEOXWWK.mjs → react-context-EAKKTE5A.mjs} +3 -3
- package/dist/lib/node-esm/react-surface-ORRNXP2X.mjs +67 -0
- package/dist/lib/node-esm/react-surface-ORRNXP2X.mjs.map +7 -0
- package/dist/lib/node-esm/{schema-NE5IYLMD.mjs → schema-OK7HY3JJ.mjs} +3 -3
- package/dist/lib/node-esm/types.mjs +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +1 -0
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +4 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +2 -3
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/DevicesContainer.d.ts +5 -0
- package/dist/types/src/components/DevicesContainer.d.ts.map +1 -0
- package/dist/types/src/components/DevicesContainer.stories.d.ts +8 -0
- package/dist/types/src/components/DevicesContainer.stories.d.ts.map +1 -0
- package/dist/types/src/components/ProfileContainer.d.ts +3 -0
- package/dist/types/src/components/ProfileContainer.d.ts.map +1 -0
- package/dist/types/src/components/ProfileContainer.stories.d.ts +8 -0
- package/dist/types/src/components/ProfileContainer.stories.d.ts.map +1 -0
- package/dist/types/src/components/RecoveryCodeDialog.d.ts +1 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.d.ts +4 -0
- package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +1 -0
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts +8 -0
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +1 -0
- package/dist/types/src/components/ResetDialog.d.ts +7 -0
- package/dist/types/src/components/ResetDialog.d.ts.map +1 -0
- package/dist/types/src/components/ResetDialog.stories.d.ts +10 -0
- package/dist/types/src/components/ResetDialog.stories.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +4 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -4
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +28 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +17 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +26 -19
- package/src/ClientPlugin.ts +2 -2
- package/src/capabilities/app-graph-builder.ts +62 -6
- package/src/capabilities/capabilities.ts +1 -0
- package/src/capabilities/client.ts +1 -1
- package/src/capabilities/intent-resolver.ts +68 -23
- package/src/capabilities/react-surface.tsx +32 -24
- package/src/components/DevicesContainer.stories.tsx +45 -0
- package/src/components/DevicesContainer.tsx +268 -0
- package/src/components/ProfileContainer.stories.tsx +29 -0
- package/src/components/ProfileContainer.tsx +163 -0
- package/src/components/RecoveryCodeDialog.stories.tsx +2 -2
- package/src/components/RecoveryCodeDialog.tsx +1 -2
- package/src/components/{ManageCredentialsDialog.stories.tsx → RecoveryCredentialsContainer.stories.tsx} +4 -17
- package/src/components/RecoveryCredentialsContainer.tsx +74 -0
- package/src/components/ResetDialog.stories.tsx +47 -0
- package/src/components/ResetDialog.tsx +49 -0
- package/src/components/index.ts +4 -2
- package/src/meta.ts +2 -2
- package/src/translations.ts +45 -9
- package/src/types.ts +20 -1
- package/dist/lib/browser/app-graph-builder-ON64R7SO.mjs +0 -44
- package/dist/lib/browser/app-graph-builder-ON64R7SO.mjs.map +0 -7
- package/dist/lib/browser/chunk-HNJZ74DZ.mjs +0 -281
- package/dist/lib/browser/chunk-HNJZ74DZ.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-AIUHL34E.mjs.map +0 -7
- package/dist/lib/browser/react-surface-QGPWIUFR.mjs +0 -57
- package/dist/lib/browser/react-surface-QGPWIUFR.mjs.map +0 -7
- package/dist/lib/node/app-graph-builder-RW7ESEX3.cjs +0 -58
- package/dist/lib/node/app-graph-builder-RW7ESEX3.cjs.map +0 -7
- package/dist/lib/node/chunk-TREVKZCJ.cjs.map +0 -7
- package/dist/lib/node/chunk-UTG3UR3N.cjs +0 -309
- package/dist/lib/node/chunk-UTG3UR3N.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-PWCHHNV3.cjs.map +0 -7
- package/dist/lib/node/react-surface-TPISDIHR.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-TDYRWNI7.mjs +0 -45
- package/dist/lib/node-esm/app-graph-builder-TDYRWNI7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SHJBU4QR.mjs +0 -282
- package/dist/lib/node-esm/chunk-SHJBU4QR.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-FIXGPH7C.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-KBROL4VH.mjs +0 -58
- package/dist/lib/node-esm/react-surface-KBROL4VH.mjs.map +0 -7
- package/dist/types/src/components/IdentityDialog.d.ts +0 -5
- package/dist/types/src/components/IdentityDialog.d.ts.map +0 -1
- package/dist/types/src/components/ManageCredentialsDialog.d.ts +0 -4
- package/dist/types/src/components/ManageCredentialsDialog.d.ts.map +0 -1
- package/dist/types/src/components/ManageCredentialsDialog.stories.d.ts +0 -8
- package/dist/types/src/components/ManageCredentialsDialog.stories.d.ts.map +0 -1
- package/dist/types/src/components/RecoverySetupDialog.d.ts +0 -4
- package/dist/types/src/components/RecoverySetupDialog.d.ts.map +0 -1
- package/dist/types/src/components/RecoverySetupDialog.stories.d.ts +0 -8
- package/dist/types/src/components/RecoverySetupDialog.stories.d.ts.map +0 -1
- package/src/components/IdentityDialog.tsx +0 -75
- package/src/components/ManageCredentialsDialog.tsx +0 -64
- package/src/components/RecoverySetupDialog.stories.tsx +0 -77
- package/src/components/RecoverySetupDialog.tsx +0 -52
- /package/dist/lib/browser/{chunk-OLUST5AO.mjs.map → chunk-4PLF3BEB.mjs.map} +0 -0
- /package/dist/lib/browser/{migrations-XODC625X.mjs.map → migrations-3DWFOL5Q.mjs.map} +0 -0
- /package/dist/lib/browser/{react-context-JBD7Y3SN.mjs.map → react-context-WEH7SL4I.mjs.map} +0 -0
- /package/dist/lib/browser/{schema-Y7ZNXYSL.mjs.map → schema-JQAT6Q7S.mjs.map} +0 -0
- /package/dist/lib/node/{chunk-FR2K56EV.cjs.map → chunk-W64EOF2B.cjs.map} +0 -0
- /package/dist/lib/node/{migrations-YCBZUPWO.cjs.map → migrations-TGNI4FVL.cjs.map} +0 -0
- /package/dist/lib/node/{react-context-MPHNGZHT.cjs.map → react-context-SF3M3YLR.cjs.map} +0 -0
- /package/dist/lib/node/{schema-NMMCMK64.cjs.map → schema-INQ72F54.cjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-XLLNVLWU.mjs.map → chunk-BP56BGZR.mjs.map} +0 -0
- /package/dist/lib/node-esm/{migrations-VIEIPYJW.mjs.map → migrations-IVGATGZR.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-context-KUEOXWWK.mjs.map → react-context-EAKKTE5A.mjs.map} +0 -0
- /package/dist/lib/node-esm/{schema-NE5IYLMD.mjs.map → schema-OK7HY3JJ.mjs.map} +0 -0
|
@@ -178,19 +178,19 @@ export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").Plu
|
|
|
178
178
|
export declare const Client: (props?: (Omit<import("../types").ClientPluginOptions, "appKey" | "invitationUrl" | "invitationParam" | "onReset"> & {
|
|
179
179
|
context: import("@dxos/app-framework").PluginsContext;
|
|
180
180
|
}) | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/client").Client> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
181
|
-
export declare const IntentResolver: (props?:
|
|
181
|
+
export declare const IntentResolver: (props?: {
|
|
182
182
|
context: import("@dxos/app-framework").PluginsContext;
|
|
183
183
|
appName?: string;
|
|
184
|
-
}
|
|
184
|
+
} | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
185
185
|
export declare const Migrations: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<null> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
186
186
|
export declare const ReactContext: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<Readonly<{
|
|
187
187
|
id: string;
|
|
188
188
|
dependsOn?: string[];
|
|
189
189
|
context: import("react").FC<import("react").PropsWithChildren>;
|
|
190
190
|
}>> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
191
|
-
export declare const ReactSurface: (props?: {
|
|
191
|
+
export declare const ReactSurface: (props?: (Pick<import("../types").ClientPluginOptions, "onReset"> & {
|
|
192
192
|
createInvitationUrl: (invitationCode: string) => string;
|
|
193
|
-
} | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
193
|
+
}) | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
194
194
|
export declare const Schema: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<null> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
195
195
|
export * from './capabilities';
|
|
196
196
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;qBAS0xF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;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qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;qFAT/gV,CAAC;AAC/E,eAAO,MAAM,MAAM;;kKAAuC,CAAC;AAC3D,eAAO,MAAM,cAAc;;;6LAAgD,CAAC;AAC5E,eAAO,MAAM,UAAU,8LAA2C,CAAC;AACnE,eAAO,MAAM,YAAY;;;;qDAA8C,CAAC;AACxE,eAAO,MAAM,YAAY;;4LAA8C,CAAC;AACxE,eAAO,MAAM,MAAM,8LAAuC,CAAC;AAE3D,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Capabilities, type PluginsContext } from '@dxos/app-framework';
|
|
2
|
-
|
|
3
|
-
type IntentResolverOptions = Pick<ClientPluginOptions, 'onReset'> & {
|
|
2
|
+
type IntentResolverOptions = {
|
|
4
3
|
context: PluginsContext;
|
|
5
4
|
appName?: string;
|
|
6
5
|
};
|
|
7
|
-
declare const _default: ({ context, appName
|
|
6
|
+
declare const _default: ({ context, appName }: IntentResolverOptions) => import("@dxos/app-framework").Capability<Capabilities.IntentResolver>;
|
|
8
7
|
export default _default;
|
|
9
8
|
//# sourceMappingURL=intent-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"
|
|
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,7 +1,8 @@
|
|
|
1
1
|
import { Capabilities } from '@dxos/app-framework';
|
|
2
|
-
type
|
|
2
|
+
import { type ClientPluginOptions } from '../types';
|
|
3
|
+
type ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {
|
|
3
4
|
createInvitationUrl: (invitationCode: string) => string;
|
|
4
5
|
};
|
|
5
|
-
declare const _default: ({ createInvitationUrl }: ReactSurfaceOptions) => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
|
|
6
|
+
declare const _default: ({ createInvitationUrl, onReset }: ReactSurfaceOptions) => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
|
|
6
7
|
export default _default;
|
|
7
8
|
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -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,KAAK,mBAAmB,GAAG;
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DevicesContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevicesContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAmBhE,eAAO,MAAM,gBAAgB,6BAE1B;IACD,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,sBAwEA,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
|
+
import { DevicesContainer } from './DevicesContainer';
|
|
4
|
+
declare const meta: Meta;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof DevicesContainer>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
//# sourceMappingURL=DevicesContainer.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DevicesContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/DevicesContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAO5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItD,QAAA,MAAM,IAAI,EAAE,IAqBX,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ProfileContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAmBhF,eAAO,MAAM,gBAAgB,yBAiI5B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
|
+
import { ProfileContainer } from './ProfileContainer';
|
|
4
|
+
declare const meta: Meta;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof ProfileContainer>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
//# sourceMappingURL=ProfileContainer.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ProfileContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAK5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,QAAA,MAAM,IAAI,EAAE,IAQX,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const RECOVERY_CODE_DIALOG = "dxos.org/plugin/client/RecoveryCodeDialog";
|
|
3
3
|
export type RecoveryCodeDialogProps = {
|
|
4
4
|
code: string;
|
|
5
5
|
};
|
|
@@ -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,
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecoveryCredentialsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/RecoveryCredentialsContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,eAAO,MAAM,yBAAyB,mDAA6C,CAAC;AAEpF,eAAO,MAAM,4BAA4B,yBAwDxC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
|
+
import { RecoveryCredentialsContainer } from './RecoveryCredentialsContainer';
|
|
4
|
+
declare const meta: Meta;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof RecoveryCredentialsContainer>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
//# sourceMappingURL=RecoveryCredentialsContainer.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecoveryCredentialsContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/RecoveryCredentialsContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAM5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAI9E,QAAA,MAAM,IAAI,EAAE,IAqBX,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAE3D,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ConfirmResetProps } from '@dxos/shell/react';
|
|
3
|
+
import { type ClientPluginOptions } from '../types';
|
|
4
|
+
export declare const RESET_DIALOG = "dxos.org/plugin/client/ResetDialog";
|
|
5
|
+
export type ResetDialogProps = Pick<ConfirmResetProps, 'mode'> & Pick<ClientPluginOptions, 'onReset'>;
|
|
6
|
+
export declare const ResetDialog: ({ mode, onReset }: ResetDialogProps) => React.JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ResetDialog.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
|
+
import { type ResetDialogProps } from './ResetDialog';
|
|
4
|
+
declare const meta: Meta<ResetDialogProps>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<ResetDialogProps>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const JoinNewIdentity: Story;
|
|
9
|
+
export declare const Recover: Story;
|
|
10
|
+
//# sourceMappingURL=ResetDialog.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResetDialog.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ResetDialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAQ5D,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAanE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAShC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAA2C,CAAC;AAElE,eAAO,MAAM,eAAe,EAAE,KAA+C,CAAC;AAE9E,eAAO,MAAM,OAAO,EAAE,KAAqC,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './DevicesContainer';
|
|
2
2
|
export * from './JoinDialog';
|
|
3
|
+
export * from './ProfileContainer';
|
|
3
4
|
export * from './RecoveryCodeDialog';
|
|
4
|
-
export * from './
|
|
5
|
+
export * from './RecoveryCredentialsContainer';
|
|
6
|
+
export * from './ResetDialog';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,aAAa,2BAA2B,CAAC;AAEtD,eAAO,MAAM,IAAI,EAAE,UAGlB,CAAC"}
|
|
@@ -1,8 +1,35 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'en-US': {
|
|
3
3
|
"dxos.org/plugin/client": {
|
|
4
|
-
'
|
|
4
|
+
'account label': string;
|
|
5
|
+
'profile label': string;
|
|
6
|
+
'profile description': string;
|
|
7
|
+
'devices label': string;
|
|
8
|
+
'devices verbose label': string;
|
|
9
|
+
'add device description': string;
|
|
10
|
+
'devices description': string;
|
|
11
|
+
'create device invitation label': string;
|
|
12
|
+
'qr code description': string;
|
|
13
|
+
'security label': string;
|
|
14
|
+
'reset device description': string;
|
|
15
|
+
'join new identity description': string;
|
|
16
|
+
'recover identity description': string;
|
|
17
|
+
'danger zone title': string;
|
|
18
|
+
'danger zone description': string;
|
|
19
|
+
'display name label': string;
|
|
20
|
+
'display name description': string;
|
|
21
|
+
'display name input placeholder': string;
|
|
22
|
+
'icon label': string;
|
|
23
|
+
'icon description': string;
|
|
24
|
+
'hue label': string;
|
|
25
|
+
'hue description': string;
|
|
26
|
+
'did label': string;
|
|
27
|
+
'did description': string;
|
|
28
|
+
'open user account label': string;
|
|
5
29
|
'manage credentials dialog title': string;
|
|
30
|
+
'credentials list label': string;
|
|
31
|
+
'no credentials title': string;
|
|
32
|
+
'no credentials message': string;
|
|
6
33
|
'recovery setup dialog title': string;
|
|
7
34
|
'recovery setup dialog description': string;
|
|
8
35
|
'create passkey label': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA6DE"}
|
|
@@ -51,7 +51,7 @@ export declare namespace ClientAction {
|
|
|
51
51
|
readonly _tag: S.tag<"dxos.org/plugin/client/action/reset-storage">;
|
|
52
52
|
} & {
|
|
53
53
|
input: S.Struct<{
|
|
54
|
-
|
|
54
|
+
mode: S.optional<typeof S.String>;
|
|
55
55
|
}>;
|
|
56
56
|
output: typeof S.Void;
|
|
57
57
|
}>;
|
|
@@ -89,6 +89,16 @@ export declare namespace ClientAction {
|
|
|
89
89
|
}>;
|
|
90
90
|
export class RedeemPasskey extends RedeemPasskey_base {
|
|
91
91
|
}
|
|
92
|
+
const RedeemToken_base: S.TaggedClass<RedeemToken, "dxos.org/plugin/client/action/redeem-token", {
|
|
93
|
+
readonly _tag: S.tag<"dxos.org/plugin/client/action/redeem-token">;
|
|
94
|
+
} & {
|
|
95
|
+
input: S.Struct<{
|
|
96
|
+
token: typeof S.String;
|
|
97
|
+
}>;
|
|
98
|
+
output: typeof S.Void;
|
|
99
|
+
}>;
|
|
100
|
+
export class RedeemToken extends RedeemToken_base {
|
|
101
|
+
}
|
|
92
102
|
export {};
|
|
93
103
|
}
|
|
94
104
|
export type ClientPluginOptions = ClientOptions & {
|
|
@@ -111,4 +121,10 @@ export type ClientPluginOptions = ClientOptions & {
|
|
|
111
121
|
target?: string;
|
|
112
122
|
}) => MaybePromise<void>;
|
|
113
123
|
};
|
|
124
|
+
export declare namespace Account {
|
|
125
|
+
const id = "!dxos.org.plugin.client.account";
|
|
126
|
+
const Profile = "dxos.org.plugin.client.account.profile";
|
|
127
|
+
const Devices = "dxos.org.plugin.client.account.devices";
|
|
128
|
+
const Security = "dxos.org.plugin.client.account.security";
|
|
129
|
+
}
|
|
114
130
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qBAA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D,CAAC;AAEF,yBAAiB,OAAO,CAAC;IAKhB,MAAM,EAAE,oCAAY,CAAC;IAErB,MAAM,OAAO,2CAAmB,CAAC;IACjC,MAAM,OAAO,2CAAmB,CAAC;IACjC,MAAM,QAAQ,4CAAoB,CAAC;CAC3C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-client",
|
|
3
|
-
"version": "0.8.1-
|
|
3
|
+
"version": "0.8.1-staging.31c3ee1",
|
|
4
4
|
"description": "DXOS Surface plugin for DXOS Client",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -34,37 +34,44 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@preact/signals-core": "^1.6.0",
|
|
37
|
-
"
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
37
|
+
"react-qr-rounded": "^1.0.0",
|
|
38
|
+
"@dxos/config": "0.8.1-staging.31c3ee1",
|
|
39
|
+
"@dxos/app-framework": "0.8.1-staging.31c3ee1",
|
|
40
|
+
"@dxos/async": "0.8.1-staging.31c3ee1",
|
|
41
|
+
"@dxos/echo-schema": "0.8.1-staging.31c3ee1",
|
|
42
|
+
"@dxos/echo-signals": "0.8.1-staging.31c3ee1",
|
|
43
|
+
"@dxos/invariant": "0.8.1-staging.31c3ee1",
|
|
44
|
+
"@dxos/local-storage": "0.8.1-staging.31c3ee1",
|
|
45
|
+
"@dxos/log": "0.8.1-staging.31c3ee1",
|
|
46
|
+
"@dxos/plugin-graph": "0.8.1-staging.31c3ee1",
|
|
47
|
+
"@dxos/react-client": "0.8.1-staging.31c3ee1",
|
|
48
|
+
"@dxos/react-ui-form": "0.8.1-staging.31c3ee1",
|
|
49
|
+
"@dxos/plugin-observability": "0.8.1-staging.31c3ee1",
|
|
50
|
+
"@dxos/react-ui-pickers": "0.8.1-staging.31c3ee1",
|
|
51
|
+
"@dxos/react-ui-stack": "0.8.1-staging.31c3ee1",
|
|
52
|
+
"@dxos/shell": "0.8.1-staging.31c3ee1",
|
|
53
|
+
"@dxos/util": "0.8.1-staging.31c3ee1"
|
|
49
54
|
},
|
|
50
55
|
"devDependencies": {
|
|
51
56
|
"@phosphor-icons/react": "^2.1.5",
|
|
52
57
|
"@types/react": "~18.2.0",
|
|
53
58
|
"@types/react-dom": "~18.2.0",
|
|
59
|
+
"effect": "3.13.3",
|
|
54
60
|
"react": "~18.2.0",
|
|
55
61
|
"react-dom": "~18.2.0",
|
|
56
62
|
"vite": "5.4.7",
|
|
57
|
-
"@dxos/live-object": "0.8.1-
|
|
58
|
-
"@dxos/react-ui": "0.8.1-
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
63
|
+
"@dxos/live-object": "0.8.1-staging.31c3ee1",
|
|
64
|
+
"@dxos/react-ui-theme": "0.8.1-staging.31c3ee1",
|
|
65
|
+
"@dxos/storybook-utils": "0.8.1-staging.31c3ee1",
|
|
66
|
+
"@dxos/react-ui": "0.8.1-staging.31c3ee1"
|
|
61
67
|
},
|
|
62
68
|
"peerDependencies": {
|
|
63
69
|
"@phosphor-icons/react": "^2.1.5",
|
|
70
|
+
"effect": "3.13.3",
|
|
64
71
|
"react": "~18.2.0",
|
|
65
72
|
"react-dom": "~18.2.0",
|
|
66
|
-
"@dxos/react-ui-theme": "0.8.1-
|
|
67
|
-
"@dxos/react-ui": "0.8.1-
|
|
73
|
+
"@dxos/react-ui-theme": "0.8.1-staging.31c3ee1",
|
|
74
|
+
"@dxos/react-ui": "0.8.1-staging.31c3ee1"
|
|
68
75
|
},
|
|
69
76
|
"publishConfig": {
|
|
70
77
|
"access": "public"
|
package/src/ClientPlugin.ts
CHANGED
|
@@ -57,7 +57,7 @@ export const ClientPlugin = ({
|
|
|
57
57
|
defineModule({
|
|
58
58
|
id: `${meta.id}/module/react-surface`,
|
|
59
59
|
activatesOn: Events.SetupReactSurface,
|
|
60
|
-
activate: () => ReactSurface({ createInvitationUrl }),
|
|
60
|
+
activate: () => ReactSurface({ createInvitationUrl, onReset }),
|
|
61
61
|
}),
|
|
62
62
|
defineModule({
|
|
63
63
|
id: `${meta.id}/module/app-graph-builder`,
|
|
@@ -67,7 +67,7 @@ export const ClientPlugin = ({
|
|
|
67
67
|
defineModule({
|
|
68
68
|
id: `${meta.id}/module/intent-resolver`,
|
|
69
69
|
activatesOn: Events.SetupIntentResolver,
|
|
70
|
-
activate: (context) => IntentResolver({ context
|
|
70
|
+
activate: (context) => IntentResolver({ context }),
|
|
71
71
|
}),
|
|
72
72
|
defineModule({
|
|
73
73
|
id: `${meta.id}/module/translations`,
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import { createIntent } from '@dxos/app-framework';
|
|
6
6
|
import { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';
|
|
7
|
-
import { createExtension, type Node } from '@dxos/plugin-graph';
|
|
7
|
+
import { createExtension, toSignal, type Node } from '@dxos/plugin-graph';
|
|
8
|
+
import { ConnectionState } from '@dxos/react-client/mesh';
|
|
8
9
|
|
|
10
|
+
import { ClientCapabilities } from './capabilities';
|
|
9
11
|
import { CLIENT_PLUGIN } from '../meta';
|
|
10
|
-
import { ClientAction } from '../types';
|
|
12
|
+
import { Account, ClientAction } from '../types';
|
|
11
13
|
|
|
12
14
|
export default (context: PluginsContext) =>
|
|
13
15
|
contributes(
|
|
@@ -17,23 +19,77 @@ export default (context: PluginsContext) =>
|
|
|
17
19
|
filter: (node): node is Node<null> => node.id === 'root',
|
|
18
20
|
actions: () => [
|
|
19
21
|
{
|
|
20
|
-
id: `${CLIENT_PLUGIN}/open-
|
|
22
|
+
id: `${CLIENT_PLUGIN}/open-user-account`,
|
|
21
23
|
data: async () => {
|
|
22
24
|
const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
|
|
23
25
|
await dispatch(createIntent(ClientAction.ShareIdentity));
|
|
24
26
|
},
|
|
25
27
|
properties: {
|
|
26
|
-
label: ['open
|
|
27
|
-
icon: 'ph--
|
|
28
|
+
label: ['open user account label', { ns: CLIENT_PLUGIN }],
|
|
29
|
+
icon: 'ph--user--regular',
|
|
28
30
|
keyBinding: {
|
|
29
31
|
macos: 'meta+shift+.',
|
|
30
32
|
// TODO(wittjosiah): Test on windows to see if it behaves the same as linux.
|
|
31
33
|
windows: 'alt+shift+.',
|
|
32
34
|
linux: 'alt+shift+>',
|
|
33
35
|
},
|
|
34
|
-
testId: 'clientPlugin.openShell',
|
|
35
36
|
},
|
|
36
37
|
},
|
|
37
38
|
],
|
|
39
|
+
connector: () => {
|
|
40
|
+
const client = context.requestCapability(ClientCapabilities.Client);
|
|
41
|
+
const identity = client.halo.identity.get();
|
|
42
|
+
const status = toSignal(
|
|
43
|
+
(onChange) => client.mesh.networkStatus.subscribe(() => onChange()).unsubscribe,
|
|
44
|
+
() => client.mesh.networkStatus.get(),
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
return [
|
|
48
|
+
{
|
|
49
|
+
id: Account.id,
|
|
50
|
+
type: CLIENT_PLUGIN,
|
|
51
|
+
properties: {
|
|
52
|
+
label: ['account label', { ns: CLIENT_PLUGIN }],
|
|
53
|
+
icon: 'ph--user--regular',
|
|
54
|
+
disposition: 'user-account',
|
|
55
|
+
// NOTE: This currently needs to be the identity key because the fallback is generated from hex.
|
|
56
|
+
userId: identity?.identityKey.toHex(),
|
|
57
|
+
hue: identity?.profile?.data?.hue,
|
|
58
|
+
emoji: identity?.profile?.data?.emoji,
|
|
59
|
+
status: status?.swarm === ConnectionState.OFFLINE ? 'error' : 'active',
|
|
60
|
+
},
|
|
61
|
+
nodes: [
|
|
62
|
+
{
|
|
63
|
+
id: Account.Profile,
|
|
64
|
+
data: Account.Profile,
|
|
65
|
+
type: CLIENT_PLUGIN,
|
|
66
|
+
properties: {
|
|
67
|
+
label: ['profile label', { ns: CLIENT_PLUGIN }],
|
|
68
|
+
icon: 'ph--user--regular',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: Account.Devices,
|
|
73
|
+
data: Account.Devices,
|
|
74
|
+
type: CLIENT_PLUGIN,
|
|
75
|
+
properties: {
|
|
76
|
+
label: ['devices label', { ns: CLIENT_PLUGIN }],
|
|
77
|
+
icon: 'ph--devices--regular',
|
|
78
|
+
testId: 'clientPlugin.devices',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: Account.Security,
|
|
83
|
+
data: Account.Security,
|
|
84
|
+
type: CLIENT_PLUGIN,
|
|
85
|
+
properties: {
|
|
86
|
+
label: ['security label', { ns: CLIENT_PLUGIN }],
|
|
87
|
+
icon: 'ph--key--regular',
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
},
|
|
38
94
|
}),
|
|
39
95
|
);
|
|
@@ -12,5 +12,6 @@ import { CLIENT_PLUGIN } from '../meta';
|
|
|
12
12
|
export namespace ClientCapabilities {
|
|
13
13
|
export const Client = defineCapability<Client>(`${CLIENT_PLUGIN}/capability/client`);
|
|
14
14
|
export const Schema = defineCapability<TypedObject[]>(`${CLIENT_PLUGIN}/capability/schema`);
|
|
15
|
+
export const SchemaWhiteList = defineCapability<TypedObject[]>(`${CLIENT_PLUGIN}/capability/schema-whitelist`);
|
|
15
16
|
export const Migration = defineCapability<ObjectMigration[]>(`${CLIENT_PLUGIN}/capability/migration`);
|
|
16
17
|
}
|
|
@@ -29,7 +29,7 @@ export default async ({ context, onClientInitialized, ...options }: ClientCapabi
|
|
|
29
29
|
|
|
30
30
|
const subscription = client.spaces.isReady.subscribe(async (ready) => {
|
|
31
31
|
if (ready) {
|
|
32
|
-
await context.
|
|
32
|
+
await context.activatePromise(ClientEvents.SpacesReady);
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
|