@wvdsh/api 0.1.34 → 0.1.36

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.
@@ -105,6 +105,7 @@ export declare const IFRAME_MESSAGE_TYPE: {
105
105
  readonly SET_MUTE: "SetMute";
106
106
  readonly TOGGLE_MUTE: "ToggleMute";
107
107
  readonly MUTE_CHANGED: "MuteChanged";
108
+ readonly OVERLAY_CHANGED: "OverlayChanged";
108
109
  readonly GAMEPLAY_JWT_READY: "GameplayJwtReady";
109
110
  readonly END_SESSION: "EndSession";
110
111
  readonly TRIGGER_PAYWALL: "TriggerPaywall";
@@ -112,7 +113,6 @@ export declare const IFRAME_MESSAGE_TYPE: {
112
113
  export declare const SERVICE_WORKER_MESSAGE_TYPE: {
113
114
  readonly EMBED_CONFIGURE: "embed.configure";
114
115
  readonly EMBED_CONFIGURE_ACK: "embed.configure:ack";
115
- readonly EMBED_JWT_UPDATE: "embed.jwt-update";
116
116
  readonly EMBED_CREDS_REQUEST: "embed.creds-request";
117
117
  readonly EMBED_CREDS_RESPONSE: "embed.creds-response";
118
118
  };
@@ -148,6 +148,9 @@ export type IFrameEventPayloadMap = {
148
148
  [IFRAME_MESSAGE_TYPE.MUTE_CHANGED]: {
149
149
  isMuted: boolean;
150
150
  };
151
+ [IFRAME_MESSAGE_TYPE.OVERLAY_CHANGED]: {
152
+ isOpen: boolean;
153
+ };
151
154
  [IFRAME_MESSAGE_TYPE.TAKE_FOCUS]: void;
152
155
  [IFRAME_MESSAGE_TYPE.GET_LOBBY_INVITE_LINK]: string;
153
156
  [IFRAME_MESSAGE_TYPE.GET_DEVICE_FINGERPRINT]: DeviceFingerprint;
@@ -82,17 +82,14 @@ export const IFRAME_MESSAGE_TYPE = {
82
82
  SET_MUTE: 'SetMute',
83
83
  TOGGLE_MUTE: 'ToggleMute',
84
84
  MUTE_CHANGED: 'MuteChanged',
85
+ OVERLAY_CHANGED: 'OverlayChanged',
85
86
  GAMEPLAY_JWT_READY: 'GameplayJwtReady',
86
87
  END_SESSION: 'EndSession',
87
88
  TRIGGER_PAYWALL: 'TriggerPaywall'
88
89
  };
89
- // Wire types for messages on the page ↔ service-worker MessageChannel.
90
- // Mirror of play's ServiceWorkerMessageType enum — kept here so the SDK and
91
- // mainsite can replace inline string literals once @wvdsh/api is republished.
92
90
  export const SERVICE_WORKER_MESSAGE_TYPE = {
93
91
  EMBED_CONFIGURE: 'embed.configure',
94
92
  EMBED_CONFIGURE_ACK: 'embed.configure:ack',
95
- EMBED_JWT_UPDATE: 'embed.jwt-update',
96
93
  EMBED_CREDS_REQUEST: 'embed.creds-request',
97
94
  EMBED_CREDS_RESPONSE: 'embed.creds-response'
98
95
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wvdsh/api",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "description": "Public API types and shared constants for the Wavedash platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",