@mochabug/adapt-web 1.0.0-rc54 → 1.0.0-rc55

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/esm/index.js CHANGED
@@ -1371,6 +1371,9 @@ export class AdaptWebClient {
1371
1371
  // Now reconnect the stream — if it fails, reset everything and fall through
1372
1372
  try {
1373
1373
  await this.client.subscribe(state.token, handlers);
1374
+ // Fire synthetic STATUS_RUNNING so consumers don't need to distinguish
1375
+ // hydration from a fresh start
1376
+ handlers.onSession?.({ status: "STATUS_RUNNING" });
1374
1377
  }
1375
1378
  catch {
1376
1379
  this.clearState();
@@ -7547,7 +7547,7 @@ var MbAdapt = (() => {
7547
7547
  // src/index.ts
7548
7548
  if (typeof window !== "undefined" && true && !window.CAP_CUSTOM_WASM_URL) {
7549
7549
  window.CAP_CUSTOM_WASM_URL = new URL(
7550
- "https://cdn.mochabug.com/adapt/web/1.0.0-rc54/cap_wasm.js",
7550
+ "https://cdn.mochabug.com/adapt/web/1.0.0-rc55/cap_wasm.js",
7551
7551
  window.location.href
7552
7552
  ).href;
7553
7553
  }
@@ -8740,6 +8740,7 @@ cap-widget::part(attribution) {
8740
8740
  }
8741
8741
  try {
8742
8742
  await this.client.subscribe(state.token, handlers);
8743
+ handlers.onSession?.({ status: "STATUS_RUNNING" });
8743
8744
  } catch {
8744
8745
  this.clearState();
8745
8746
  this.sessionToken = null;