@dxos/client-services 0.1.25-next.3c6b542 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{chunk-WF53R6F7.mjs → chunk-R2FEBB66.mjs} +95 -325
- package/dist/lib/browser/chunk-R2FEBB66.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -11
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +3 -3
- package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
- package/dist/lib/node/index.cjs +111 -350
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +110 -228
- package/dist/lib/node/packlets/testing/index.cjs.map +4 -4
- package/dist/types/src/packlets/identity/authenticator.d.ts +1 -1
- package/dist/types/src/packlets/identity/authenticator.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-manager.d.ts +1 -1
- package/dist/types/src/packlets/identity/identity-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity.d.ts +2 -2
- package/dist/types/src/packlets/identity/identity.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/space-invitations-handler.d.ts +1 -1
- package/dist/types/src/packlets/invitations/space-invitations-handler.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-context.d.ts +1 -1
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts +1 -1
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts +4 -11
- package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/iframe-proxy-runtime.d.ts +1 -6
- package/dist/types/src/packlets/vault/iframe-proxy-runtime.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/index.d.ts +0 -2
- package/dist/types/src/packlets/vault/index.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/services.d.ts +1 -9
- package/dist/types/src/packlets/vault/services.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/worker-runtime.d.ts +1 -2
- package/dist/types/src/packlets/vault/worker-runtime.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/worker-session.d.ts +1 -4
- package/dist/types/src/packlets/vault/worker-session.d.ts.map +1 -1
- package/package.json +28 -29
- package/src/packlets/devtools/spaces.ts +1 -1
- package/src/packlets/identity/authenticator.ts +1 -1
- package/src/packlets/identity/identity-manager.test.ts +1 -1
- package/src/packlets/identity/identity-manager.ts +1 -1
- package/src/packlets/identity/identity.test.ts +1 -1
- package/src/packlets/identity/identity.ts +1 -1
- package/src/packlets/invitations/space-invitations-handler.test.ts +1 -1
- package/src/packlets/invitations/space-invitations-handler.ts +1 -1
- package/src/packlets/services/service-context.ts +2 -2
- package/src/packlets/services/service-host.ts +1 -1
- package/src/packlets/spaces/data-space-manager.test.ts +1 -1
- package/src/packlets/spaces/data-space-manager.ts +4 -4
- package/src/packlets/spaces/data-space.ts +3 -3
- package/src/packlets/spaces/spaces-service.ts +1 -1
- package/src/packlets/testing/test-builder.ts +3 -3
- package/src/packlets/vault/iframe-host-runtime.ts +7 -26
- package/src/packlets/vault/iframe-proxy-runtime.ts +1 -16
- package/src/packlets/vault/index.ts +0 -2
- package/src/packlets/vault/services.ts +1 -17
- package/src/packlets/vault/worker-runtime.ts +1 -3
- package/src/packlets/vault/worker-session.ts +19 -29
- package/dist/lib/browser/chunk-WF53R6F7.mjs.map +0 -7
- package/dist/types/src/packlets/vault/shell-controller.d.ts +0 -24
- package/dist/types/src/packlets/vault/shell-controller.d.ts.map +0 -1
- package/dist/types/src/packlets/vault/shell-runtime.d.ts +0 -45
- package/dist/types/src/packlets/vault/shell-runtime.d.ts.map +0 -1
- package/src/packlets/vault/shell-controller.ts +0 -78
- package/src/packlets/vault/shell-runtime.ts +0 -133
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Event } from '@dxos/async';
|
|
2
|
-
import { PublicKey } from '@dxos/keys';
|
|
3
|
-
import { AppContextRequest, LayoutRequest, ShellDisplay, ShellLayout } from '@dxos/protocols/proto/dxos/iframe';
|
|
4
|
-
import { RpcPort } from '@dxos/rpc';
|
|
5
|
-
/**
|
|
6
|
-
* Provide access to the shell via RPC connection.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ShellController {
|
|
9
|
-
private readonly _port;
|
|
10
|
-
readonly contextUpdate: Event<AppContextRequest>;
|
|
11
|
-
private _shellRpc?;
|
|
12
|
-
private _display;
|
|
13
|
-
private _spaceKey?;
|
|
14
|
-
private _invitationCode?;
|
|
15
|
-
constructor(_port: RpcPort);
|
|
16
|
-
get display(): ShellDisplay;
|
|
17
|
-
get spaceKey(): PublicKey | undefined;
|
|
18
|
-
setSpace(key?: PublicKey): void;
|
|
19
|
-
setLayout(layout: ShellLayout, options?: Omit<LayoutRequest, 'layout'>): Promise<void>;
|
|
20
|
-
open(): Promise<void>;
|
|
21
|
-
close(): Promise<void>;
|
|
22
|
-
private _emitUpdate;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=shell-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shell-controller.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/vault/shell-controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChH,OAAO,EAAoC,OAAO,EAAE,MAAM,WAAW,CAAC;AAItE;;GAEG;AACH,qBAAa,eAAe;IAOd,OAAO,CAAC,QAAQ,CAAC,KAAK;IANlC,QAAQ,CAAC,aAAa,2BAAkC;IACxD,OAAO,CAAC,SAAS,CAAC,CAAmC;IACrD,OAAO,CAAC,QAAQ,CAAqB;IACrC,OAAO,CAAC,SAAS,CAAC,CAAY;IAC9B,OAAO,CAAC,eAAe,CAAC,CAAS;gBAEJ,KAAK,EAAE,OAAO;IAE3C,IAAI,OAAO,iBAEV;IAED,IAAI,QAAQ,0BAEX;IAED,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS;IAKlB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,GAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAM;IAO1E,IAAI;IAqBJ,KAAK;IAKX,OAAO,CAAC,WAAW;CAOpB"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Event } from '@dxos/async';
|
|
2
|
-
import { PublicKey } from '@dxos/keys';
|
|
3
|
-
import { AppContextRequest, LayoutRequest, ShellLayout } from '@dxos/protocols/proto/dxos/iframe';
|
|
4
|
-
import { RpcPort } from '@dxos/rpc';
|
|
5
|
-
export interface ShellRuntime {
|
|
6
|
-
layoutUpdate: Event<LayoutRequest>;
|
|
7
|
-
layout: ShellLayout;
|
|
8
|
-
invitationCode?: string;
|
|
9
|
-
spaceKey?: PublicKey;
|
|
10
|
-
setLayout: (layout: ShellLayout, options?: Omit<LayoutRequest, 'layout'>) => void;
|
|
11
|
-
setAppContext: (context: AppContextRequest) => Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Endpoint that handles shell services.
|
|
15
|
-
*/
|
|
16
|
-
export declare class ShellRuntimeImpl implements ShellRuntime {
|
|
17
|
-
private readonly _port;
|
|
18
|
-
readonly layoutUpdate: Event<LayoutRequest>;
|
|
19
|
-
private _appRpc?;
|
|
20
|
-
private _layout;
|
|
21
|
-
private _invitationCode?;
|
|
22
|
-
private _spaceKey?;
|
|
23
|
-
constructor(_port: RpcPort);
|
|
24
|
-
get layout(): ShellLayout;
|
|
25
|
-
get invitationCode(): string | undefined;
|
|
26
|
-
get spaceKey(): PublicKey | undefined;
|
|
27
|
-
setLayout(layout: ShellLayout, options?: Omit<LayoutRequest, 'layout'>): void;
|
|
28
|
-
setAppContext(context: AppContextRequest): Promise<void>;
|
|
29
|
-
open(): Promise<void>;
|
|
30
|
-
close(): Promise<void>;
|
|
31
|
-
}
|
|
32
|
-
export declare class MemoryShellRuntime implements ShellRuntime {
|
|
33
|
-
readonly layoutUpdate: Event<LayoutRequest>;
|
|
34
|
-
readonly contextUpdate: Event<AppContextRequest>;
|
|
35
|
-
private _layout;
|
|
36
|
-
private _invitationCode?;
|
|
37
|
-
private _spaceKey?;
|
|
38
|
-
constructor({ layout, invitationCode, spaceKey }?: Partial<LayoutRequest> & Partial<AppContextRequest>);
|
|
39
|
-
get layout(): ShellLayout;
|
|
40
|
-
get invitationCode(): string | undefined;
|
|
41
|
-
get spaceKey(): PublicKey | undefined;
|
|
42
|
-
setLayout(layout: ShellLayout, options?: Omit<LayoutRequest, 'layout'>): void;
|
|
43
|
-
setAppContext(context: AppContextRequest): Promise<void>;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=shell-runtime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shell-runtime.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/vault/shell-runtime.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAClG,OAAO,EAAoC,OAAO,EAAE,MAAM,WAAW,CAAC;AAItE,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACnC,MAAM,EAAE,WAAW,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,KAAK,IAAI,CAAC;IAClF,aAAa,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9D;AAED;;GAEG;AACH,qBAAa,gBAAiB,YAAW,YAAY;IAOvC,OAAO,CAAC,QAAQ,CAAC,KAAK;IANlC,QAAQ,CAAC,YAAY,uBAA8B;IACnD,OAAO,CAAC,OAAO,CAAC,CAAiC;IACjD,OAAO,CAAC,OAAO,CAAuB;IACtC,OAAO,CAAC,eAAe,CAAC,CAAS;IACjC,OAAO,CAAC,SAAS,CAAC,CAAY;gBAED,KAAK,EAAE,OAAO;IAE3C,IAAI,MAAM,gBAET;IAED,IAAI,cAAc,uBAEjB;IAED,IAAI,QAAQ,0BAEX;IAED,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,GAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAM;IAOpE,aAAa,CAAC,OAAO,EAAE,iBAAiB;IAkBxC,IAAI;IAoBJ,KAAK;CAIZ;AAED,qBAAa,kBAAmB,YAAW,YAAY;IACrD,QAAQ,CAAC,YAAY,uBAA8B;IACnD,QAAQ,CAAC,aAAa,2BAAkC;IACxD,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,eAAe,CAAC,CAAS;IACjC,OAAO,CAAC,SAAS,CAAC,CAAY;gBAElB,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAM;IAM1G,IAAI,MAAM,gBAET;IAED,IAAI,cAAc,uBAEjB;IAED,IAAI,QAAQ,0BAEX;IAED,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,GAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAM;IAOpE,aAAa,CAAC,OAAO,EAAE,iBAAiB;CAG/C"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Event } from '@dxos/async';
|
|
6
|
-
import { PublicKey } from '@dxos/keys';
|
|
7
|
-
import { log } from '@dxos/log';
|
|
8
|
-
import { AppContextRequest, LayoutRequest, ShellDisplay, ShellLayout } from '@dxos/protocols/proto/dxos/iframe';
|
|
9
|
-
import { createProtoRpcPeer, ProtoRpcPeer, RpcPort } from '@dxos/rpc';
|
|
10
|
-
|
|
11
|
-
import { appServiceBundle, shellServiceBundle, ShellServiceBundle } from './services';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Provide access to the shell via RPC connection.
|
|
15
|
-
*/
|
|
16
|
-
export class ShellController {
|
|
17
|
-
readonly contextUpdate = new Event<AppContextRequest>();
|
|
18
|
-
private _shellRpc?: ProtoRpcPeer<ShellServiceBundle>;
|
|
19
|
-
private _display = ShellDisplay.NONE;
|
|
20
|
-
private _spaceKey?: PublicKey;
|
|
21
|
-
private _invitationCode?: string;
|
|
22
|
-
|
|
23
|
-
constructor(private readonly _port: RpcPort) {}
|
|
24
|
-
|
|
25
|
-
get display() {
|
|
26
|
-
return this._display;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
get spaceKey() {
|
|
30
|
-
return this._spaceKey;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
setSpace(key?: PublicKey) {
|
|
34
|
-
this._spaceKey = key;
|
|
35
|
-
this._emitUpdate();
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
async setLayout(layout: ShellLayout, options: Omit<LayoutRequest, 'layout'> = {}) {
|
|
39
|
-
log('set layout', { layout, ...options });
|
|
40
|
-
this._display = ShellDisplay.FULLSCREEN;
|
|
41
|
-
this._emitUpdate();
|
|
42
|
-
await this._shellRpc?.rpc.ShellService.setLayout({ layout, ...options });
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
async open() {
|
|
46
|
-
this._shellRpc = createProtoRpcPeer({
|
|
47
|
-
requested: shellServiceBundle,
|
|
48
|
-
exposed: appServiceBundle,
|
|
49
|
-
handlers: {
|
|
50
|
-
AppService: {
|
|
51
|
-
setContext: async (request) => {
|
|
52
|
-
log('set context', request);
|
|
53
|
-
this._display = request.display;
|
|
54
|
-
this._spaceKey = request.spaceKey;
|
|
55
|
-
this._invitationCode = request.invitationCode;
|
|
56
|
-
this.contextUpdate.emit(request);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
port: this._port
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
await this._shellRpc.open();
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
async close() {
|
|
67
|
-
await this._shellRpc?.close();
|
|
68
|
-
this._shellRpc = undefined;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
private _emitUpdate() {
|
|
72
|
-
this.contextUpdate.emit({
|
|
73
|
-
display: this._display,
|
|
74
|
-
spaceKey: this._spaceKey,
|
|
75
|
-
invitationCode: this._invitationCode
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import assert from 'node:assert';
|
|
6
|
-
|
|
7
|
-
import { Event } from '@dxos/async';
|
|
8
|
-
import { PublicKey } from '@dxos/keys';
|
|
9
|
-
import { AppContextRequest, LayoutRequest, ShellLayout } from '@dxos/protocols/proto/dxos/iframe';
|
|
10
|
-
import { createProtoRpcPeer, ProtoRpcPeer, RpcPort } from '@dxos/rpc';
|
|
11
|
-
|
|
12
|
-
import { AppServiceBundle, appServiceBundle, shellServiceBundle } from './services';
|
|
13
|
-
|
|
14
|
-
export interface ShellRuntime {
|
|
15
|
-
layoutUpdate: Event<LayoutRequest>;
|
|
16
|
-
layout: ShellLayout;
|
|
17
|
-
invitationCode?: string;
|
|
18
|
-
spaceKey?: PublicKey;
|
|
19
|
-
setLayout: (layout: ShellLayout, options?: Omit<LayoutRequest, 'layout'>) => void;
|
|
20
|
-
setAppContext: (context: AppContextRequest) => Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Endpoint that handles shell services.
|
|
25
|
-
*/
|
|
26
|
-
export class ShellRuntimeImpl implements ShellRuntime {
|
|
27
|
-
readonly layoutUpdate = new Event<LayoutRequest>();
|
|
28
|
-
private _appRpc?: ProtoRpcPeer<AppServiceBundle>;
|
|
29
|
-
private _layout = ShellLayout.DEFAULT;
|
|
30
|
-
private _invitationCode?: string;
|
|
31
|
-
private _spaceKey?: PublicKey;
|
|
32
|
-
|
|
33
|
-
constructor(private readonly _port: RpcPort) {}
|
|
34
|
-
|
|
35
|
-
get layout() {
|
|
36
|
-
return this._layout;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
get invitationCode() {
|
|
40
|
-
return this._invitationCode;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
get spaceKey() {
|
|
44
|
-
return this._spaceKey;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
setLayout(layout: ShellLayout, options: Omit<LayoutRequest, 'layout'> = {}) {
|
|
48
|
-
this._layout = layout;
|
|
49
|
-
this._invitationCode = options.invitationCode;
|
|
50
|
-
this._spaceKey = options.spaceKey;
|
|
51
|
-
this.layoutUpdate.emit({ layout, ...options });
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
async setAppContext(context: AppContextRequest) {
|
|
55
|
-
assert(this._appRpc, 'runtime not open');
|
|
56
|
-
|
|
57
|
-
if (context.spaceKey) {
|
|
58
|
-
this._spaceKey = context.spaceKey;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (context.invitationCode) {
|
|
62
|
-
this._invitationCode = context.invitationCode;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
await this._appRpc.rpc.AppService.setContext({
|
|
66
|
-
...context,
|
|
67
|
-
spaceKey: this._spaceKey,
|
|
68
|
-
invitationCode: this._invitationCode
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
async open() {
|
|
73
|
-
this._appRpc = createProtoRpcPeer({
|
|
74
|
-
requested: appServiceBundle,
|
|
75
|
-
exposed: shellServiceBundle,
|
|
76
|
-
handlers: {
|
|
77
|
-
ShellService: {
|
|
78
|
-
setLayout: async (request) => {
|
|
79
|
-
this._layout = request.layout;
|
|
80
|
-
this._invitationCode = request.invitationCode;
|
|
81
|
-
this._spaceKey = request.spaceKey;
|
|
82
|
-
this.layoutUpdate.emit(request);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
port: this._port
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
await this._appRpc.open();
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
async close() {
|
|
93
|
-
await this._appRpc?.close();
|
|
94
|
-
this._appRpc = undefined;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export class MemoryShellRuntime implements ShellRuntime {
|
|
99
|
-
readonly layoutUpdate = new Event<LayoutRequest>();
|
|
100
|
-
readonly contextUpdate = new Event<AppContextRequest>();
|
|
101
|
-
private _layout: ShellLayout;
|
|
102
|
-
private _invitationCode?: string;
|
|
103
|
-
private _spaceKey?: PublicKey;
|
|
104
|
-
|
|
105
|
-
constructor({ layout, invitationCode, spaceKey }: Partial<LayoutRequest> & Partial<AppContextRequest> = {}) {
|
|
106
|
-
this._layout = layout ?? ShellLayout.DEFAULT;
|
|
107
|
-
this._invitationCode = invitationCode;
|
|
108
|
-
this._spaceKey = spaceKey;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
get layout() {
|
|
112
|
-
return this._layout;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
get invitationCode() {
|
|
116
|
-
return this._invitationCode;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
get spaceKey() {
|
|
120
|
-
return this._spaceKey;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
setLayout(layout: ShellLayout, options: Omit<LayoutRequest, 'layout'> = {}) {
|
|
124
|
-
this._layout = layout;
|
|
125
|
-
this._invitationCode = options.invitationCode;
|
|
126
|
-
this._spaceKey = options.spaceKey;
|
|
127
|
-
this.layoutUpdate.emit({ layout, ...options });
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
async setAppContext(context: AppContextRequest) {
|
|
131
|
-
this.contextUpdate.emit(context);
|
|
132
|
-
}
|
|
133
|
-
}
|