@whereby.com/core 0.21.0 → 0.22.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 +6 -4
- package/dist/index.d.cts +11 -2
- package/dist/index.d.mts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.mjs +6 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ const createReactor = (selectors, callback) => {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
const coreVersion = "0.
|
|
48
|
+
const coreVersion = "0.22.0";
|
|
49
49
|
|
|
50
50
|
const initialState$f = {
|
|
51
51
|
isNodeSdk: false,
|
|
@@ -1069,6 +1069,7 @@ const initialState$a = {
|
|
|
1069
1069
|
roleName: "none",
|
|
1070
1070
|
clientClaim: undefined,
|
|
1071
1071
|
stickyReaction: undefined,
|
|
1072
|
+
isDialIn: false,
|
|
1072
1073
|
};
|
|
1073
1074
|
const localParticipantSlice = toolkit.createSlice({
|
|
1074
1075
|
name: "localParticipant",
|
|
@@ -3614,7 +3615,7 @@ class RoomService {
|
|
|
3614
3615
|
}
|
|
3615
3616
|
|
|
3616
3617
|
class RoomParticipant {
|
|
3617
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }) {
|
|
3618
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }) {
|
|
3618
3619
|
this.isLocalParticipant = false;
|
|
3619
3620
|
this.displayName = displayName;
|
|
3620
3621
|
this.id = id;
|
|
@@ -3622,11 +3623,12 @@ class RoomParticipant {
|
|
|
3622
3623
|
this.isAudioEnabled = isAudioEnabled;
|
|
3623
3624
|
this.isVideoEnabled = isVideoEnabled;
|
|
3624
3625
|
this.stickyReaction = stickyReaction;
|
|
3626
|
+
this.isDialIn = isDialIn;
|
|
3625
3627
|
}
|
|
3626
3628
|
}
|
|
3627
3629
|
class LocalParticipant extends RoomParticipant {
|
|
3628
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }) {
|
|
3629
|
-
super({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction });
|
|
3630
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }) {
|
|
3631
|
+
super({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn });
|
|
3630
3632
|
this.isLocalParticipant = true;
|
|
3631
3633
|
}
|
|
3632
3634
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -172,6 +172,7 @@ interface RoomParticipantData {
|
|
|
172
172
|
isAudioEnabled: boolean;
|
|
173
173
|
isVideoEnabled: boolean;
|
|
174
174
|
stickyReaction?: StickyReaction | null;
|
|
175
|
+
isDialIn: boolean;
|
|
175
176
|
}
|
|
176
177
|
declare class RoomParticipant {
|
|
177
178
|
readonly displayName: string;
|
|
@@ -181,7 +182,8 @@ declare class RoomParticipant {
|
|
|
181
182
|
readonly isLocalParticipant: boolean;
|
|
182
183
|
readonly isVideoEnabled: boolean;
|
|
183
184
|
readonly stickyReaction?: StickyReaction | null;
|
|
184
|
-
|
|
185
|
+
readonly isDialIn: boolean;
|
|
186
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
185
187
|
}
|
|
186
188
|
interface RemoteParticipantData {
|
|
187
189
|
newJoiner: boolean;
|
|
@@ -209,10 +211,11 @@ interface RemoteParticipant {
|
|
|
209
211
|
}) | null;
|
|
210
212
|
externalId: string | null;
|
|
211
213
|
stickyReaction?: StickyReaction | null;
|
|
214
|
+
isDialIn: boolean;
|
|
212
215
|
}
|
|
213
216
|
declare class LocalParticipant extends RoomParticipant {
|
|
214
217
|
readonly isLocalParticipant = true;
|
|
215
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }: RoomParticipantData);
|
|
218
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
216
219
|
}
|
|
217
220
|
interface WaitingParticipant {
|
|
218
221
|
id: string;
|
|
@@ -3819,6 +3822,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3819
3822
|
reaction: string;
|
|
3820
3823
|
timestamp: string;
|
|
3821
3824
|
} | null | undefined;
|
|
3825
|
+
isDialIn: boolean;
|
|
3822
3826
|
}, action: PayloadAction<{
|
|
3823
3827
|
displayName: string;
|
|
3824
3828
|
}>) => {
|
|
@@ -3856,6 +3860,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3856
3860
|
reaction: string;
|
|
3857
3861
|
timestamp: string;
|
|
3858
3862
|
} | null | undefined;
|
|
3863
|
+
isDialIn: boolean;
|
|
3859
3864
|
};
|
|
3860
3865
|
}, "localParticipant", "localParticipant", _reduxjs_toolkit.SliceSelectors<LocalParticipantState>>;
|
|
3861
3866
|
declare const doSetDisplayName: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
@@ -4107,6 +4112,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4107
4112
|
reaction: string;
|
|
4108
4113
|
timestamp: string;
|
|
4109
4114
|
} | null | undefined;
|
|
4115
|
+
isDialIn: boolean;
|
|
4110
4116
|
}[];
|
|
4111
4117
|
}, action: PayloadAction<StreamStatusUpdate[]>) => {
|
|
4112
4118
|
remoteParticipants: {
|
|
@@ -4172,6 +4178,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4172
4178
|
reaction: string;
|
|
4173
4179
|
timestamp: string;
|
|
4174
4180
|
} | null | undefined;
|
|
4181
|
+
isDialIn: boolean;
|
|
4175
4182
|
}[];
|
|
4176
4183
|
};
|
|
4177
4184
|
participantStreamAdded: (state: {
|
|
@@ -4238,6 +4245,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4238
4245
|
reaction: string;
|
|
4239
4246
|
timestamp: string;
|
|
4240
4247
|
} | null | undefined;
|
|
4248
|
+
isDialIn: boolean;
|
|
4241
4249
|
}[];
|
|
4242
4250
|
}, action: PayloadAction<RtcStreamAddedPayload>) => RemoteParticipantState;
|
|
4243
4251
|
participantStreamIdAdded: (state: {
|
|
@@ -4304,6 +4312,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4304
4312
|
reaction: string;
|
|
4305
4313
|
timestamp: string;
|
|
4306
4314
|
} | null | undefined;
|
|
4315
|
+
isDialIn: boolean;
|
|
4307
4316
|
}[];
|
|
4308
4317
|
}, action: PayloadAction<{
|
|
4309
4318
|
clientId: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -172,6 +172,7 @@ interface RoomParticipantData {
|
|
|
172
172
|
isAudioEnabled: boolean;
|
|
173
173
|
isVideoEnabled: boolean;
|
|
174
174
|
stickyReaction?: StickyReaction | null;
|
|
175
|
+
isDialIn: boolean;
|
|
175
176
|
}
|
|
176
177
|
declare class RoomParticipant {
|
|
177
178
|
readonly displayName: string;
|
|
@@ -181,7 +182,8 @@ declare class RoomParticipant {
|
|
|
181
182
|
readonly isLocalParticipant: boolean;
|
|
182
183
|
readonly isVideoEnabled: boolean;
|
|
183
184
|
readonly stickyReaction?: StickyReaction | null;
|
|
184
|
-
|
|
185
|
+
readonly isDialIn: boolean;
|
|
186
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
185
187
|
}
|
|
186
188
|
interface RemoteParticipantData {
|
|
187
189
|
newJoiner: boolean;
|
|
@@ -209,10 +211,11 @@ interface RemoteParticipant {
|
|
|
209
211
|
}) | null;
|
|
210
212
|
externalId: string | null;
|
|
211
213
|
stickyReaction?: StickyReaction | null;
|
|
214
|
+
isDialIn: boolean;
|
|
212
215
|
}
|
|
213
216
|
declare class LocalParticipant extends RoomParticipant {
|
|
214
217
|
readonly isLocalParticipant = true;
|
|
215
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }: RoomParticipantData);
|
|
218
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
216
219
|
}
|
|
217
220
|
interface WaitingParticipant {
|
|
218
221
|
id: string;
|
|
@@ -3819,6 +3822,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3819
3822
|
reaction: string;
|
|
3820
3823
|
timestamp: string;
|
|
3821
3824
|
} | null | undefined;
|
|
3825
|
+
isDialIn: boolean;
|
|
3822
3826
|
}, action: PayloadAction<{
|
|
3823
3827
|
displayName: string;
|
|
3824
3828
|
}>) => {
|
|
@@ -3856,6 +3860,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3856
3860
|
reaction: string;
|
|
3857
3861
|
timestamp: string;
|
|
3858
3862
|
} | null | undefined;
|
|
3863
|
+
isDialIn: boolean;
|
|
3859
3864
|
};
|
|
3860
3865
|
}, "localParticipant", "localParticipant", _reduxjs_toolkit.SliceSelectors<LocalParticipantState>>;
|
|
3861
3866
|
declare const doSetDisplayName: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
@@ -4107,6 +4112,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4107
4112
|
reaction: string;
|
|
4108
4113
|
timestamp: string;
|
|
4109
4114
|
} | null | undefined;
|
|
4115
|
+
isDialIn: boolean;
|
|
4110
4116
|
}[];
|
|
4111
4117
|
}, action: PayloadAction<StreamStatusUpdate[]>) => {
|
|
4112
4118
|
remoteParticipants: {
|
|
@@ -4172,6 +4178,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4172
4178
|
reaction: string;
|
|
4173
4179
|
timestamp: string;
|
|
4174
4180
|
} | null | undefined;
|
|
4181
|
+
isDialIn: boolean;
|
|
4175
4182
|
}[];
|
|
4176
4183
|
};
|
|
4177
4184
|
participantStreamAdded: (state: {
|
|
@@ -4238,6 +4245,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4238
4245
|
reaction: string;
|
|
4239
4246
|
timestamp: string;
|
|
4240
4247
|
} | null | undefined;
|
|
4248
|
+
isDialIn: boolean;
|
|
4241
4249
|
}[];
|
|
4242
4250
|
}, action: PayloadAction<RtcStreamAddedPayload>) => RemoteParticipantState;
|
|
4243
4251
|
participantStreamIdAdded: (state: {
|
|
@@ -4304,6 +4312,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4304
4312
|
reaction: string;
|
|
4305
4313
|
timestamp: string;
|
|
4306
4314
|
} | null | undefined;
|
|
4315
|
+
isDialIn: boolean;
|
|
4307
4316
|
}[];
|
|
4308
4317
|
}, action: PayloadAction<{
|
|
4309
4318
|
clientId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -172,6 +172,7 @@ interface RoomParticipantData {
|
|
|
172
172
|
isAudioEnabled: boolean;
|
|
173
173
|
isVideoEnabled: boolean;
|
|
174
174
|
stickyReaction?: StickyReaction | null;
|
|
175
|
+
isDialIn: boolean;
|
|
175
176
|
}
|
|
176
177
|
declare class RoomParticipant {
|
|
177
178
|
readonly displayName: string;
|
|
@@ -181,7 +182,8 @@ declare class RoomParticipant {
|
|
|
181
182
|
readonly isLocalParticipant: boolean;
|
|
182
183
|
readonly isVideoEnabled: boolean;
|
|
183
184
|
readonly stickyReaction?: StickyReaction | null;
|
|
184
|
-
|
|
185
|
+
readonly isDialIn: boolean;
|
|
186
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
185
187
|
}
|
|
186
188
|
interface RemoteParticipantData {
|
|
187
189
|
newJoiner: boolean;
|
|
@@ -209,10 +211,11 @@ interface RemoteParticipant {
|
|
|
209
211
|
}) | null;
|
|
210
212
|
externalId: string | null;
|
|
211
213
|
stickyReaction?: StickyReaction | null;
|
|
214
|
+
isDialIn: boolean;
|
|
212
215
|
}
|
|
213
216
|
declare class LocalParticipant extends RoomParticipant {
|
|
214
217
|
readonly isLocalParticipant = true;
|
|
215
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }: RoomParticipantData);
|
|
218
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
216
219
|
}
|
|
217
220
|
interface WaitingParticipant {
|
|
218
221
|
id: string;
|
|
@@ -3819,6 +3822,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3819
3822
|
reaction: string;
|
|
3820
3823
|
timestamp: string;
|
|
3821
3824
|
} | null | undefined;
|
|
3825
|
+
isDialIn: boolean;
|
|
3822
3826
|
}, action: PayloadAction<{
|
|
3823
3827
|
displayName: string;
|
|
3824
3828
|
}>) => {
|
|
@@ -3856,6 +3860,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3856
3860
|
reaction: string;
|
|
3857
3861
|
timestamp: string;
|
|
3858
3862
|
} | null | undefined;
|
|
3863
|
+
isDialIn: boolean;
|
|
3859
3864
|
};
|
|
3860
3865
|
}, "localParticipant", "localParticipant", _reduxjs_toolkit.SliceSelectors<LocalParticipantState>>;
|
|
3861
3866
|
declare const doSetDisplayName: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
@@ -4107,6 +4112,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4107
4112
|
reaction: string;
|
|
4108
4113
|
timestamp: string;
|
|
4109
4114
|
} | null | undefined;
|
|
4115
|
+
isDialIn: boolean;
|
|
4110
4116
|
}[];
|
|
4111
4117
|
}, action: PayloadAction<StreamStatusUpdate[]>) => {
|
|
4112
4118
|
remoteParticipants: {
|
|
@@ -4172,6 +4178,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4172
4178
|
reaction: string;
|
|
4173
4179
|
timestamp: string;
|
|
4174
4180
|
} | null | undefined;
|
|
4181
|
+
isDialIn: boolean;
|
|
4175
4182
|
}[];
|
|
4176
4183
|
};
|
|
4177
4184
|
participantStreamAdded: (state: {
|
|
@@ -4238,6 +4245,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4238
4245
|
reaction: string;
|
|
4239
4246
|
timestamp: string;
|
|
4240
4247
|
} | null | undefined;
|
|
4248
|
+
isDialIn: boolean;
|
|
4241
4249
|
}[];
|
|
4242
4250
|
}, action: PayloadAction<RtcStreamAddedPayload>) => RemoteParticipantState;
|
|
4243
4251
|
participantStreamIdAdded: (state: {
|
|
@@ -4304,6 +4312,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4304
4312
|
reaction: string;
|
|
4305
4313
|
timestamp: string;
|
|
4306
4314
|
} | null | undefined;
|
|
4315
|
+
isDialIn: boolean;
|
|
4307
4316
|
}[];
|
|
4308
4317
|
}, action: PayloadAction<{
|
|
4309
4318
|
clientId: string;
|
package/dist/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ const createReactor = (selectors, callback) => {
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
const coreVersion = "0.
|
|
46
|
+
const coreVersion = "0.22.0";
|
|
47
47
|
|
|
48
48
|
const initialState$f = {
|
|
49
49
|
isNodeSdk: false,
|
|
@@ -1067,6 +1067,7 @@ const initialState$a = {
|
|
|
1067
1067
|
roleName: "none",
|
|
1068
1068
|
clientClaim: undefined,
|
|
1069
1069
|
stickyReaction: undefined,
|
|
1070
|
+
isDialIn: false,
|
|
1070
1071
|
};
|
|
1071
1072
|
const localParticipantSlice = createSlice({
|
|
1072
1073
|
name: "localParticipant",
|
|
@@ -3612,7 +3613,7 @@ class RoomService {
|
|
|
3612
3613
|
}
|
|
3613
3614
|
|
|
3614
3615
|
class RoomParticipant {
|
|
3615
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }) {
|
|
3616
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }) {
|
|
3616
3617
|
this.isLocalParticipant = false;
|
|
3617
3618
|
this.displayName = displayName;
|
|
3618
3619
|
this.id = id;
|
|
@@ -3620,11 +3621,12 @@ class RoomParticipant {
|
|
|
3620
3621
|
this.isAudioEnabled = isAudioEnabled;
|
|
3621
3622
|
this.isVideoEnabled = isVideoEnabled;
|
|
3622
3623
|
this.stickyReaction = stickyReaction;
|
|
3624
|
+
this.isDialIn = isDialIn;
|
|
3623
3625
|
}
|
|
3624
3626
|
}
|
|
3625
3627
|
class LocalParticipant extends RoomParticipant {
|
|
3626
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }) {
|
|
3627
|
-
super({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction });
|
|
3628
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }) {
|
|
3629
|
+
super({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn });
|
|
3628
3630
|
this.isLocalParticipant = true;
|
|
3629
3631
|
}
|
|
3630
3632
|
}
|
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.
|
|
5
|
+
"version": "0.22.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "rimraf dist && rollup -c rollup.config.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@reduxjs/toolkit": "^2.2.3",
|
|
50
|
-
"@whereby.com/media": "1.
|
|
50
|
+
"@whereby.com/media": "1.8.0",
|
|
51
51
|
"axios": "^1.2.3",
|
|
52
52
|
"btoa": "^1.2.1",
|
|
53
53
|
"events": "^3.3.0"
|