@seriousgaming/sdk-tools 1.2.0 → 1.3.0
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/cli.js +366 -296
- package/dist/client.js +458 -388
- package/dist/core/participant-registry.d.ts +6 -0
- package/dist/core/session-roster.d.ts +4 -1
- package/dist/dev/console/assets/{index-BNLEVOQA.js → index-DEV8N0na.js} +47 -47
- package/dist/dev/console/index.html +1 -1
- package/dist/dev/view/batch.d.ts +17 -9
- package/dist/dev/view/view.d.ts +2 -1
- package/dist/docs/api/index.md +1 -1
- package/dist/docs/api/sdk-commands.md +4 -0
- package/dist/docs/api/sdk-e2e.md +4 -0
- package/dist/docs/api/sdk-tools-client.md +4 -0
- package/dist/docs/api/sdk-ui-testing.md +1 -0
- package/dist/docs/api/sdk-ui.md +33 -1
- package/dist/docs/api/sdk.md +3 -1
- package/dist/docs/changelog.md +16 -0
- package/dist/docs/guides/presentation.md +23 -9
- package/dist/docs/guides/session.md +47 -8
- package/dist/docs/guides/testing.md +9 -0
- package/dist/docs/guides/ui.md +33 -0
- package/dist/docs/guides/upgrading.md +11 -0
- package/dist/docs/guides/waiting-room.md +2 -0
- package/dist/host/protocol.d.ts +27 -2
- package/dist/runtime/manifest-version.d.ts +1 -1
- package/dist/runtime.js +4 -2
- package/package.json +3 -3
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
* (§14).
|
|
27
27
|
*/
|
|
28
28
|
import { EventEmitter } from 'events';
|
|
29
|
+
/**
|
|
30
|
+
* Longest name a participant may give themselves (§12.5). Their name reaches
|
|
31
|
+
* the host's own chrome and every roster, as a team's does, so it takes the
|
|
32
|
+
* team name's ceiling.
|
|
33
|
+
*/
|
|
34
|
+
export declare const MAX_PARTICIPANT_NAME_LENGTH = 60;
|
|
29
35
|
export interface ParticipantRecord {
|
|
30
36
|
id: string;
|
|
31
37
|
teamId: string;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import type { Participant } from '@seriousgaming/sdk';
|
|
14
14
|
import type { ResolvedGameSettings } from './game-settings';
|
|
15
|
-
import type
|
|
15
|
+
import { type ParticipantRecord } from './participant-registry';
|
|
16
16
|
import type { MutationCommand } from './protocol';
|
|
17
17
|
import type { SessionHost, TeamBounds } from './session-host';
|
|
18
18
|
/**
|
|
@@ -105,6 +105,9 @@ export declare class SessionRoster {
|
|
|
105
105
|
renameOwnTeam(command: Extract<MutationCommand, {
|
|
106
106
|
type: 'renameOwnTeam';
|
|
107
107
|
}>): undefined;
|
|
108
|
+
renameSelf(command: Extract<MutationCommand, {
|
|
109
|
+
type: 'renameSelf';
|
|
110
|
+
}>): undefined;
|
|
108
111
|
addParticipant(teamId: string, name?: string): Promise<undefined>;
|
|
109
112
|
renameParticipant(participantId: string, name: string): undefined;
|
|
110
113
|
moveParticipant(participantId: string, toTeamId: string): Promise<undefined>;
|