@whereby.com/core 0.22.2 → 0.23.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/index.cjs CHANGED
@@ -45,7 +45,7 @@ const createReactor = (selectors, callback) => {
45
45
  });
46
46
  };
47
47
 
48
- const coreVersion = "0.22.2";
48
+ const coreVersion = "0.23.0";
49
49
 
50
50
  const initialState$f = {
51
51
  isNodeSdk: false,
@@ -1635,12 +1635,14 @@ const selectShouldConnectRoom = toolkit.createSelector([
1635
1635
  selectRoomConnectionStatus,
1636
1636
  selectSignalConnectionDeviceIdentified,
1637
1637
  selectLocalMediaStatus,
1638
- ], (appIsActive, hasOrganizationIdFetched, roomConnectionStatus, signalConnectionDeviceIdentified, localMediaStatus) => {
1638
+ selectRoomConnectionError,
1639
+ ], (appIsActive, hasOrganizationIdFetched, roomConnectionStatus, signalConnectionDeviceIdentified, localMediaStatus, roomConnectionError) => {
1639
1640
  if (appIsActive &&
1640
1641
  localMediaStatus === "started" &&
1641
1642
  signalConnectionDeviceIdentified &&
1642
1643
  !!hasOrganizationIdFetched &&
1643
- ["ready", "reconnecting", "disconnected"].includes(roomConnectionStatus)) {
1644
+ ["ready", "reconnecting", "disconnected"].includes(roomConnectionStatus) &&
1645
+ !roomConnectionError) {
1644
1646
  return true;
1645
1647
  }
1646
1648
  return false;
package/dist/index.d.cts CHANGED
@@ -5111,8 +5111,8 @@ declare const selectShouldConnectRoom: ((state: {
5111
5111
  resultsCount: () => number;
5112
5112
  resetResultsCount: () => void;
5113
5113
  } & {
5114
- resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started") => boolean;
5115
- memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started") => boolean) & {
5114
+ resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started", resultFuncArgs_5: string | null) => boolean;
5115
+ memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started", resultFuncArgs_5: string | null) => boolean) & {
5116
5116
  clearCache: () => void;
5117
5117
  resultsCount: () => number;
5118
5118
  resetResultsCount: () => void;
@@ -5198,7 +5198,7 @@ declare const selectShouldConnectRoom: ((state: {
5198
5198
  spotlights: SpotlightsState;
5199
5199
  streaming: StreamingState;
5200
5200
  waitingParticipants: WaitingParticipantsState;
5201
- }) => "error" | "inactive" | "stopped" | "starting" | "started"];
5201
+ }) => "error" | "inactive" | "stopped" | "starting" | "started", (state: RootState) => string | null];
5202
5202
  recomputations: () => number;
5203
5203
  resetRecomputations: () => void;
5204
5204
  dependencyRecomputations: () => number;
package/dist/index.d.mts CHANGED
@@ -5111,8 +5111,8 @@ declare const selectShouldConnectRoom: ((state: {
5111
5111
  resultsCount: () => number;
5112
5112
  resetResultsCount: () => void;
5113
5113
  } & {
5114
- resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started") => boolean;
5115
- memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started") => boolean) & {
5114
+ resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started", resultFuncArgs_5: string | null) => boolean;
5115
+ memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started", resultFuncArgs_5: string | null) => boolean) & {
5116
5116
  clearCache: () => void;
5117
5117
  resultsCount: () => number;
5118
5118
  resetResultsCount: () => void;
@@ -5198,7 +5198,7 @@ declare const selectShouldConnectRoom: ((state: {
5198
5198
  spotlights: SpotlightsState;
5199
5199
  streaming: StreamingState;
5200
5200
  waitingParticipants: WaitingParticipantsState;
5201
- }) => "error" | "inactive" | "stopped" | "starting" | "started"];
5201
+ }) => "error" | "inactive" | "stopped" | "starting" | "started", (state: RootState) => string | null];
5202
5202
  recomputations: () => number;
5203
5203
  resetRecomputations: () => void;
5204
5204
  dependencyRecomputations: () => number;
package/dist/index.d.ts CHANGED
@@ -5111,8 +5111,8 @@ declare const selectShouldConnectRoom: ((state: {
5111
5111
  resultsCount: () => number;
5112
5112
  resetResultsCount: () => void;
5113
5113
  } & {
5114
- resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started") => boolean;
5115
- memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started") => boolean) & {
5114
+ resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started", resultFuncArgs_5: string | null) => boolean;
5115
+ memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: string | undefined, resultFuncArgs_2: ConnectionStatus, resultFuncArgs_3: boolean, resultFuncArgs_4: "error" | "inactive" | "stopped" | "starting" | "started", resultFuncArgs_5: string | null) => boolean) & {
5116
5116
  clearCache: () => void;
5117
5117
  resultsCount: () => number;
5118
5118
  resetResultsCount: () => void;
@@ -5198,7 +5198,7 @@ declare const selectShouldConnectRoom: ((state: {
5198
5198
  spotlights: SpotlightsState;
5199
5199
  streaming: StreamingState;
5200
5200
  waitingParticipants: WaitingParticipantsState;
5201
- }) => "error" | "inactive" | "stopped" | "starting" | "started"];
5201
+ }) => "error" | "inactive" | "stopped" | "starting" | "started", (state: RootState) => string | null];
5202
5202
  recomputations: () => number;
5203
5203
  resetRecomputations: () => void;
5204
5204
  dependencyRecomputations: () => number;
package/dist/index.mjs CHANGED
@@ -43,7 +43,7 @@ const createReactor = (selectors, callback) => {
43
43
  });
44
44
  };
45
45
 
46
- const coreVersion = "0.22.2";
46
+ const coreVersion = "0.23.0";
47
47
 
48
48
  const initialState$f = {
49
49
  isNodeSdk: false,
@@ -1633,12 +1633,14 @@ const selectShouldConnectRoom = createSelector([
1633
1633
  selectRoomConnectionStatus,
1634
1634
  selectSignalConnectionDeviceIdentified,
1635
1635
  selectLocalMediaStatus,
1636
- ], (appIsActive, hasOrganizationIdFetched, roomConnectionStatus, signalConnectionDeviceIdentified, localMediaStatus) => {
1636
+ selectRoomConnectionError,
1637
+ ], (appIsActive, hasOrganizationIdFetched, roomConnectionStatus, signalConnectionDeviceIdentified, localMediaStatus, roomConnectionError) => {
1637
1638
  if (appIsActive &&
1638
1639
  localMediaStatus === "started" &&
1639
1640
  signalConnectionDeviceIdentified &&
1640
1641
  !!hasOrganizationIdFetched &&
1641
- ["ready", "reconnecting", "disconnected"].includes(roomConnectionStatus)) {
1642
+ ["ready", "reconnecting", "disconnected"].includes(roomConnectionStatus) &&
1643
+ !roomConnectionError) {
1642
1644
  return true;
1643
1645
  }
1644
1646
  return false;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@whereby.com/core",
3
3
  "description": "Core library for whereby.com sdk",
4
4
  "author": "Whereby AS",
5
- "version": "0.22.2",
5
+ "version": "0.23.0",
6
6
  "license": "MIT",
7
7
  "scripts": {
8
8
  "build": "rimraf dist && rollup -c rollup.config.js",