@hadoku/rooms-protocol 0.45.9 → 0.45.11

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.
@@ -10,8 +10,6 @@
10
10
  * relays who is looking, what theme they are in, and whether they lead.
11
11
  *
12
12
  * Adding a game is therefore a data edit on the host, never host code.
13
- * `iframe` is the one built-in kind: the host's own cross-origin iframe game
14
- * (Bomberman), kept as it was.
15
13
  */
16
14
  /** Who is viewing. The same values the embeddable room chrome receives. */
17
15
  export interface GameBundleIdentity {
@@ -59,22 +57,15 @@ export interface MountedGameBundle {
59
57
  export interface GameBundleModule {
60
58
  mount(el: HTMLElement, ctx: GameBundleContext): MountedGameBundle | Promise<MountedGameBundle>;
61
59
  }
62
- export type GameEntry =
63
- /** The host's built-in iframe game. */
64
- {
65
- id: string;
66
- name: string;
67
- cover?: string;
68
- kind: 'iframe';
69
- }
70
- /** An ES module exporting `GameBundleModule`, at a same-origin path. */
71
- | {
60
+ /** An ES module exporting `GameBundleModule`, at a same-origin path. `kind`
61
+ * is kept on the wire so a later kind can be added without a schema break. */
62
+ export interface GameEntry {
72
63
  id: string;
73
64
  name: string;
74
65
  cover?: string;
75
66
  kind: 'module';
76
67
  url: string;
77
- };
68
+ }
78
69
  /**
79
70
  * Whether `value` is a module that satisfies `GameBundleModule`. A bundle is
80
71
  * loaded from a URL at runtime, so its shape is a claim the host checks rather
@@ -1 +1 @@
1
- {"version":3,"file":"game-bundle.d.ts","sourceRoot":"","sources":["../src/game-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IACjC;0EACsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;uCAGmC;IACnC,OAAO,EAAE,MA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relays who is looking, what theme they are in, and whether they lead.
11
11
  *
12
12
  * Adding a game is therefore a data edit on the host, never host code.
13
- * `iframe` is the one built-in kind: the host's own cross-origin iframe game
14
- * (Bomberman), kept as it was.
15
13
  */
16
14
  /**
17
15
  * Whether `value` is a module that satisfies `GameBundleModule`. A bundle is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hadoku/rooms-protocol",
3
- "version": "0.45.9",
3
+ "version": "0.45.11",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Room, identity and seating protocol — the wire contract shared by rooms-server and rooms-client.",