@seriousgaming/sdk-tools 1.1.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.
Files changed (40) hide show
  1. package/dist/cli.js +565 -309
  2. package/dist/client.js +608 -352
  3. package/dist/core/participant-registry.d.ts +6 -0
  4. package/dist/core/session-roster.d.ts +4 -1
  5. package/dist/dev/brands.d.ts +20 -3
  6. package/dist/dev/console/assets/{index-qxHcu9fJ.js → index-DEV8N0na.js} +47 -47
  7. package/dist/dev/console/index.html +1 -1
  8. package/dist/dev/view/batch.d.ts +17 -9
  9. package/dist/dev/view/view.d.ts +2 -1
  10. package/dist/docs/api/index.md +1 -1
  11. package/dist/docs/api/sdk-commands.md +4 -0
  12. package/dist/docs/api/sdk-e2e.md +4 -0
  13. package/dist/docs/api/sdk-tools-client.md +4 -0
  14. package/dist/docs/api/sdk-ui-testing.md +2 -1
  15. package/dist/docs/api/sdk-ui.md +54 -3
  16. package/dist/docs/api/sdk.md +3 -1
  17. package/dist/docs/changelog.md +41 -0
  18. package/dist/docs/guides/guide.md +35 -4
  19. package/dist/docs/guides/presentation.md +23 -9
  20. package/dist/docs/guides/production-constraints.md +1 -1
  21. package/dist/docs/guides/session.md +50 -9
  22. package/dist/docs/guides/testing.md +9 -0
  23. package/dist/docs/guides/theming-and-branding.md +18 -4
  24. package/dist/docs/guides/ui.md +33 -0
  25. package/dist/docs/guides/upgrading.md +19 -0
  26. package/dist/docs/guides/waiting-room.md +2 -0
  27. package/dist/docs/recipes/create-guide.md +2 -2
  28. package/dist/docs/recipes/make-a-guide-follow-the-scenario.md +9 -9
  29. package/dist/guide/settings.d.ts +7 -0
  30. package/dist/guide/video-registry.d.ts +33 -1
  31. package/dist/host/index.d.ts +4 -2
  32. package/dist/host/protocol.d.ts +27 -2
  33. package/dist/host.js +131 -0
  34. package/dist/runtime/manifest-version.d.ts +1 -1
  35. package/dist/runtime.js +4 -2
  36. package/dist/templates/package/CLAUDE.md.template +1 -1
  37. package/dist/templates/package/claude/rules/workflow-create-guide.md +8 -2
  38. package/dist/validation/facilitator-guide-validator.d.ts +5 -1
  39. package/dist/validation/schema-validation.d.ts +12 -4
  40. 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 { ParticipantRecord } from './participant-registry';
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>;
@@ -73,8 +73,21 @@ export declare const BRAND_FILE_SCHEMA: {
73
73
  readonly additionalProperties: false;
74
74
  };
75
75
  readonly icon: {
76
- readonly type: "string";
77
- readonly minLength: 1;
76
+ readonly oneOf: readonly [{
77
+ readonly type: "string";
78
+ readonly minLength: 1;
79
+ }, {
80
+ readonly type: "object";
81
+ readonly properties: {
82
+ readonly onLight: {
83
+ readonly type: "string";
84
+ };
85
+ readonly onDark: {
86
+ readonly type: "string";
87
+ };
88
+ };
89
+ readonly additionalProperties: false;
90
+ }];
78
91
  };
79
92
  readonly fonts: {
80
93
  readonly type: "object";
@@ -171,7 +184,11 @@ export interface BrandFile {
171
184
  onLight?: string;
172
185
  onDark?: string;
173
186
  };
174
- icon?: string;
187
+ /** One file for both backgrounds, or one for each. */
188
+ icon?: string | {
189
+ onLight?: string;
190
+ onDark?: string;
191
+ };
175
192
  fonts?: {
176
193
  heading?: BrandFont;
177
194
  body?: BrandFont;