@whereby.com/core 1.3.0 → 1.4.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
@@ -1147,7 +1147,7 @@ const createReactor = (selectors, callback) => {
1147
1147
  });
1148
1148
  };
1149
1149
 
1150
- const coreVersion = "1.3.0";
1150
+ const coreVersion = "1.4.0";
1151
1151
 
1152
1152
  const initialState$1 = {
1153
1153
  isNodeSdk: false,
@@ -4154,12 +4154,13 @@ const cameraEffectsSlice = toolkit.createSlice({
4154
4154
  });
4155
4155
  const { cameraEffectsSwitching, cameraEffectsCleared, cameraEffectsUpdated, cameraEffectsError } = cameraEffectsSlice.actions;
4156
4156
  const selectCameraEffectsRaw = (state) => state.cameraEffects.raw;
4157
- const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, }, { getState, dispatch, rejectWithValue }) {
4157
+ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, backgroundUrl, }, { getState, dispatch, rejectWithValue }) {
4158
4158
  var _c, _d, _e;
4159
4159
  const state = getState();
4160
4160
  if (selectLocalMediaIsSwitchingStream(state)) {
4161
4161
  return;
4162
4162
  }
4163
+ const mergedParams = Object.assign(Object.assign({}, params), (backgroundUrl ? { backgroundUrl } : {}));
4163
4164
  dispatch(cameraEffectsSwitching({ isSwitching: true }));
4164
4165
  try {
4165
4166
  const raw = selectCameraEffectsRaw(state);
@@ -4177,7 +4178,7 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
4177
4178
  return;
4178
4179
  }
4179
4180
  if (raw.tryUpdate) {
4180
- const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), Object.assign({}, (params || {})));
4181
+ const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), mergedParams);
4181
4182
  if (ok) {
4182
4183
  dispatch(cameraEffectsUpdated({ effectId, setup, params }));
4183
4184
  return;
@@ -4196,10 +4197,10 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
4196
4197
  }
4197
4198
  const { createEffectStream, getUsablePresets } = mod;
4198
4199
  const usable = getUsablePresets({ filter: () => true, options: { allowSafari } });
4199
- if (!usable.includes(effectId)) {
4200
+ if (!usable.includes(effectId) && effectId !== "image-custom") {
4200
4201
  throw new Error(`Unknown or unsupported effect preset: ${effectId}`);
4201
4202
  }
4202
- const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, params);
4203
+ const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, mergedParams);
4203
4204
  yield dispatch(doLocalStreamEffect({ effectStream, only: "video" }));
4204
4205
  dispatch(cameraEffectsUpdated({ effectId, setup, params, raw: { stop, tryUpdate, effectStream } }));
4205
4206
  }
@@ -4898,6 +4899,20 @@ class RoomConnectionClient extends BaseClient {
4898
4899
  return Promise.resolve();
4899
4900
  });
4900
4901
  }
4902
+ switchCameraEffectCustom(imageUrl) {
4903
+ return __awaiter(this, void 0, void 0, function* () {
4904
+ try {
4905
+ yield this.store.dispatch(doCameraEffectsSwitchPreset({
4906
+ effectId: "image-custom",
4907
+ backgroundUrl: imageUrl,
4908
+ }));
4909
+ }
4910
+ catch (error) {
4911
+ return Promise.reject(error);
4912
+ }
4913
+ return Promise.resolve();
4914
+ });
4915
+ }
4901
4916
  clearCameraEffect() {
4902
4917
  return __awaiter(this, void 0, void 0, function* () {
4903
4918
  try {
package/dist/index.d.cts CHANGED
@@ -1185,6 +1185,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
1185
1185
  joinBreakoutMainRoom(): void;
1186
1186
  reportStreamResolution(streamId: string, width: number, height: number): void;
1187
1187
  switchCameraEffect(effectId: string): Promise<void>;
1188
+ switchCameraEffectCustom(imageUrl: string): Promise<void>;
1188
1189
  clearCameraEffect(): Promise<void>;
1189
1190
  destroy(): void;
1190
1191
  }
package/dist/index.d.mts CHANGED
@@ -1185,6 +1185,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
1185
1185
  joinBreakoutMainRoom(): void;
1186
1186
  reportStreamResolution(streamId: string, width: number, height: number): void;
1187
1187
  switchCameraEffect(effectId: string): Promise<void>;
1188
+ switchCameraEffectCustom(imageUrl: string): Promise<void>;
1188
1189
  clearCameraEffect(): Promise<void>;
1189
1190
  destroy(): void;
1190
1191
  }
package/dist/index.d.ts CHANGED
@@ -1185,6 +1185,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
1185
1185
  joinBreakoutMainRoom(): void;
1186
1186
  reportStreamResolution(streamId: string, width: number, height: number): void;
1187
1187
  switchCameraEffect(effectId: string): Promise<void>;
1188
+ switchCameraEffectCustom(imageUrl: string): Promise<void>;
1188
1189
  clearCameraEffect(): Promise<void>;
1189
1190
  destroy(): void;
1190
1191
  }
package/dist/index.mjs CHANGED
@@ -1145,7 +1145,7 @@ const createReactor = (selectors, callback) => {
1145
1145
  });
1146
1146
  };
1147
1147
 
1148
- const coreVersion = "1.3.0";
1148
+ const coreVersion = "1.4.0";
1149
1149
 
1150
1150
  const initialState$1 = {
1151
1151
  isNodeSdk: false,
@@ -4152,12 +4152,13 @@ const cameraEffectsSlice = createSlice({
4152
4152
  });
4153
4153
  const { cameraEffectsSwitching, cameraEffectsCleared, cameraEffectsUpdated, cameraEffectsError } = cameraEffectsSlice.actions;
4154
4154
  const selectCameraEffectsRaw = (state) => state.cameraEffects.raw;
4155
- const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, }, { getState, dispatch, rejectWithValue }) {
4155
+ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, backgroundUrl, }, { getState, dispatch, rejectWithValue }) {
4156
4156
  var _c, _d, _e;
4157
4157
  const state = getState();
4158
4158
  if (selectLocalMediaIsSwitchingStream(state)) {
4159
4159
  return;
4160
4160
  }
4161
+ const mergedParams = Object.assign(Object.assign({}, params), (backgroundUrl ? { backgroundUrl } : {}));
4161
4162
  dispatch(cameraEffectsSwitching({ isSwitching: true }));
4162
4163
  try {
4163
4164
  const raw = selectCameraEffectsRaw(state);
@@ -4175,7 +4176,7 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
4175
4176
  return;
4176
4177
  }
4177
4178
  if (raw.tryUpdate) {
4178
- const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), Object.assign({}, (params || {})));
4179
+ const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), mergedParams);
4179
4180
  if (ok) {
4180
4181
  dispatch(cameraEffectsUpdated({ effectId, setup, params }));
4181
4182
  return;
@@ -4194,10 +4195,10 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
4194
4195
  }
4195
4196
  const { createEffectStream, getUsablePresets } = mod;
4196
4197
  const usable = getUsablePresets({ filter: () => true, options: { allowSafari } });
4197
- if (!usable.includes(effectId)) {
4198
+ if (!usable.includes(effectId) && effectId !== "image-custom") {
4198
4199
  throw new Error(`Unknown or unsupported effect preset: ${effectId}`);
4199
4200
  }
4200
- const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, params);
4201
+ const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, mergedParams);
4201
4202
  yield dispatch(doLocalStreamEffect({ effectStream, only: "video" }));
4202
4203
  dispatch(cameraEffectsUpdated({ effectId, setup, params, raw: { stop, tryUpdate, effectStream } }));
4203
4204
  }
@@ -4896,6 +4897,20 @@ class RoomConnectionClient extends BaseClient {
4896
4897
  return Promise.resolve();
4897
4898
  });
4898
4899
  }
4900
+ switchCameraEffectCustom(imageUrl) {
4901
+ return __awaiter(this, void 0, void 0, function* () {
4902
+ try {
4903
+ yield this.store.dispatch(doCameraEffectsSwitchPreset({
4904
+ effectId: "image-custom",
4905
+ backgroundUrl: imageUrl,
4906
+ }));
4907
+ }
4908
+ catch (error) {
4909
+ return Promise.reject(error);
4910
+ }
4911
+ return Promise.resolve();
4912
+ });
4913
+ }
4899
4914
  clearCameraEffect() {
4900
4915
  return __awaiter(this, void 0, void 0, function* () {
4901
4916
  try {
@@ -1145,7 +1145,7 @@ const createReactor = (selectors, callback) => {
1145
1145
  });
1146
1146
  };
1147
1147
 
1148
- const coreVersion = "1.3.0";
1148
+ const coreVersion = "1.4.0";
1149
1149
 
1150
1150
  const initialState$1 = {
1151
1151
  isNodeSdk: false,
@@ -4152,12 +4152,13 @@ const cameraEffectsSlice = createSlice({
4152
4152
  });
4153
4153
  const { cameraEffectsSwitching, cameraEffectsCleared, cameraEffectsUpdated, cameraEffectsError } = cameraEffectsSlice.actions;
4154
4154
  const selectCameraEffectsRaw = (state) => state.cameraEffects.raw;
4155
- const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, }, { getState, dispatch, rejectWithValue }) {
4155
+ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, backgroundUrl, }, { getState, dispatch, rejectWithValue }) {
4156
4156
  var _c, _d, _e;
4157
4157
  const state = getState();
4158
4158
  if (selectLocalMediaIsSwitchingStream(state)) {
4159
4159
  return;
4160
4160
  }
4161
+ const mergedParams = Object.assign(Object.assign({}, params), (backgroundUrl ? { backgroundUrl } : {}));
4161
4162
  dispatch(cameraEffectsSwitching({ isSwitching: true }));
4162
4163
  try {
4163
4164
  const raw = selectCameraEffectsRaw(state);
@@ -4175,7 +4176,7 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
4175
4176
  return;
4176
4177
  }
4177
4178
  if (raw.tryUpdate) {
4178
- const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), Object.assign({}, (params || {})));
4179
+ const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), mergedParams);
4179
4180
  if (ok) {
4180
4181
  dispatch(cameraEffectsUpdated({ effectId, setup, params }));
4181
4182
  return;
@@ -4194,10 +4195,10 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
4194
4195
  }
4195
4196
  const { createEffectStream, getUsablePresets } = mod;
4196
4197
  const usable = getUsablePresets({ filter: () => true, options: { allowSafari } });
4197
- if (!usable.includes(effectId)) {
4198
+ if (!usable.includes(effectId) && effectId !== "image-custom") {
4198
4199
  throw new Error(`Unknown or unsupported effect preset: ${effectId}`);
4199
4200
  }
4200
- const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, params);
4201
+ const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, mergedParams);
4201
4202
  yield dispatch(doLocalStreamEffect({ effectStream, only: "video" }));
4202
4203
  dispatch(cameraEffectsUpdated({ effectId, setup, params, raw: { stop, tryUpdate, effectStream } }));
4203
4204
  }
@@ -4896,6 +4897,20 @@ class RoomConnectionClient extends BaseClient {
4896
4897
  return Promise.resolve();
4897
4898
  });
4898
4899
  }
4900
+ switchCameraEffectCustom(imageUrl) {
4901
+ return __awaiter(this, void 0, void 0, function* () {
4902
+ try {
4903
+ yield this.store.dispatch(doCameraEffectsSwitchPreset({
4904
+ effectId: "image-custom",
4905
+ backgroundUrl: imageUrl,
4906
+ }));
4907
+ }
4908
+ catch (error) {
4909
+ return Promise.reject(error);
4910
+ }
4911
+ return Promise.resolve();
4912
+ });
4913
+ }
4899
4914
  clearCameraEffect() {
4900
4915
  return __awaiter(this, void 0, void 0, function* () {
4901
4916
  try {
@@ -75,7 +75,7 @@ const createReactor = (selectors, callback) => {
75
75
  });
76
76
  };
77
77
 
78
- const coreVersion = "1.3.0";
78
+ const coreVersion = "1.4.0";
79
79
 
80
80
  const initialState$1 = {
81
81
  isNodeSdk: false,
@@ -3081,12 +3081,13 @@ const cameraEffectsSlice = toolkit.createSlice({
3081
3081
  });
3082
3082
  const { cameraEffectsSwitching, cameraEffectsCleared, cameraEffectsUpdated, cameraEffectsError } = cameraEffectsSlice.actions;
3083
3083
  const selectCameraEffectsRaw = (state) => state.cameraEffects.raw;
3084
- const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, }, { getState, dispatch, rejectWithValue }) {
3084
+ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, backgroundUrl, }, { getState, dispatch, rejectWithValue }) {
3085
3085
  var _c, _d, _e;
3086
3086
  const state = getState();
3087
3087
  if (selectLocalMediaIsSwitchingStream(state)) {
3088
3088
  return;
3089
3089
  }
3090
+ const mergedParams = Object.assign(Object.assign({}, params), (backgroundUrl ? { backgroundUrl } : {}));
3090
3091
  dispatch(cameraEffectsSwitching({ isSwitching: true }));
3091
3092
  try {
3092
3093
  const raw = selectCameraEffectsRaw(state);
@@ -3104,7 +3105,7 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
3104
3105
  return;
3105
3106
  }
3106
3107
  if (raw.tryUpdate) {
3107
- const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), Object.assign({}, (params || {})));
3108
+ const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), mergedParams);
3108
3109
  if (ok) {
3109
3110
  dispatch(cameraEffectsUpdated({ effectId, setup, params }));
3110
3111
  return;
@@ -3123,10 +3124,10 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
3123
3124
  }
3124
3125
  const { createEffectStream, getUsablePresets } = mod;
3125
3126
  const usable = getUsablePresets({ filter: () => true, options: { allowSafari } });
3126
- if (!usable.includes(effectId)) {
3127
+ if (!usable.includes(effectId) && effectId !== "image-custom") {
3127
3128
  throw new Error(`Unknown or unsupported effect preset: ${effectId}`);
3128
3129
  }
3129
- const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, params);
3130
+ const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, mergedParams);
3130
3131
  yield dispatch(doLocalStreamEffect({ effectStream, only: "video" }));
3131
3132
  dispatch(cameraEffectsUpdated({ effectId, setup, params, raw: { stop, tryUpdate, effectStream } }));
3132
3133
  }
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
73
73
  });
74
74
  };
75
75
 
76
- const coreVersion = "1.3.0";
76
+ const coreVersion = "1.4.0";
77
77
 
78
78
  const initialState$1 = {
79
79
  isNodeSdk: false,
@@ -3079,12 +3079,13 @@ const cameraEffectsSlice = createSlice({
3079
3079
  });
3080
3080
  const { cameraEffectsSwitching, cameraEffectsCleared, cameraEffectsUpdated, cameraEffectsError } = cameraEffectsSlice.actions;
3081
3081
  const selectCameraEffectsRaw = (state) => state.cameraEffects.raw;
3082
- const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, }, { getState, dispatch, rejectWithValue }) {
3082
+ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, backgroundUrl, }, { getState, dispatch, rejectWithValue }) {
3083
3083
  var _c, _d, _e;
3084
3084
  const state = getState();
3085
3085
  if (selectLocalMediaIsSwitchingStream(state)) {
3086
3086
  return;
3087
3087
  }
3088
+ const mergedParams = Object.assign(Object.assign({}, params), (backgroundUrl ? { backgroundUrl } : {}));
3088
3089
  dispatch(cameraEffectsSwitching({ isSwitching: true }));
3089
3090
  try {
3090
3091
  const raw = selectCameraEffectsRaw(state);
@@ -3102,7 +3103,7 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
3102
3103
  return;
3103
3104
  }
3104
3105
  if (raw.tryUpdate) {
3105
- const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), Object.assign({}, (params || {})));
3106
+ const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), mergedParams);
3106
3107
  if (ok) {
3107
3108
  dispatch(cameraEffectsUpdated({ effectId, setup, params }));
3108
3109
  return;
@@ -3121,10 +3122,10 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
3121
3122
  }
3122
3123
  const { createEffectStream, getUsablePresets } = mod;
3123
3124
  const usable = getUsablePresets({ filter: () => true, options: { allowSafari } });
3124
- if (!usable.includes(effectId)) {
3125
+ if (!usable.includes(effectId) && effectId !== "image-custom") {
3125
3126
  throw new Error(`Unknown or unsupported effect preset: ${effectId}`);
3126
3127
  }
3127
- const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, params);
3128
+ const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, mergedParams);
3128
3129
  yield dispatch(doLocalStreamEffect({ effectStream, only: "video" }));
3129
3130
  dispatch(cameraEffectsUpdated({ effectId, setup, params, raw: { stop, tryUpdate, effectStream } }));
3130
3131
  }
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
73
73
  });
74
74
  };
75
75
 
76
- const coreVersion = "1.3.0";
76
+ const coreVersion = "1.4.0";
77
77
 
78
78
  const initialState$1 = {
79
79
  isNodeSdk: false,
@@ -3079,12 +3079,13 @@ const cameraEffectsSlice = createSlice({
3079
3079
  });
3080
3080
  const { cameraEffectsSwitching, cameraEffectsCleared, cameraEffectsUpdated, cameraEffectsError } = cameraEffectsSlice.actions;
3081
3081
  const selectCameraEffectsRaw = (state) => state.cameraEffects.raw;
3082
- const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, }, { getState, dispatch, rejectWithValue }) {
3082
+ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPreset", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ effectId, setup, params, allowSafari, backgroundUrl, }, { getState, dispatch, rejectWithValue }) {
3083
3083
  var _c, _d, _e;
3084
3084
  const state = getState();
3085
3085
  if (selectLocalMediaIsSwitchingStream(state)) {
3086
3086
  return;
3087
3087
  }
3088
+ const mergedParams = Object.assign(Object.assign({}, params), (backgroundUrl ? { backgroundUrl } : {}));
3088
3089
  dispatch(cameraEffectsSwitching({ isSwitching: true }));
3089
3090
  try {
3090
3091
  const raw = selectCameraEffectsRaw(state);
@@ -3102,7 +3103,7 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
3102
3103
  return;
3103
3104
  }
3104
3105
  if (raw.tryUpdate) {
3105
- const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), Object.assign({}, (params || {})));
3106
+ const ok = yield raw.tryUpdate(effectId, Object.assign({}, (setup || {})), mergedParams);
3106
3107
  if (ok) {
3107
3108
  dispatch(cameraEffectsUpdated({ effectId, setup, params }));
3108
3109
  return;
@@ -3121,10 +3122,10 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
3121
3122
  }
3122
3123
  const { createEffectStream, getUsablePresets } = mod;
3123
3124
  const usable = getUsablePresets({ filter: () => true, options: { allowSafari } });
3124
- if (!usable.includes(effectId)) {
3125
+ if (!usable.includes(effectId) && effectId !== "image-custom") {
3125
3126
  throw new Error(`Unknown or unsupported effect preset: ${effectId}`);
3126
3127
  }
3127
- const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, params);
3128
+ const { stream: effectStream, stop, tryUpdate, } = yield createEffectStream(localStream, effectId, setup, mergedParams);
3128
3129
  yield dispatch(doLocalStreamEffect({ effectStream, only: "video" }));
3129
3130
  dispatch(cameraEffectsUpdated({ effectId, setup, params, raw: { stop, tryUpdate, effectStream } }));
3130
3131
  }
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": "1.3.0",
5
+ "version": "1.4.0",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -58,15 +58,15 @@
58
58
  "eslint": "^9.29.0",
59
59
  "prettier": "^3.5.3",
60
60
  "typescript": "^5.8.3",
61
- "@whereby.com/eslint-config": "0.1.0",
62
- "@whereby.com/jest-config": "0.1.0",
63
61
  "@whereby.com/prettier-config": "0.1.0",
62
+ "@whereby.com/jest-config": "0.1.0",
63
+ "@whereby.com/eslint-config": "0.1.0",
64
64
  "@whereby.com/rollup-config": "0.1.1",
65
65
  "@whereby.com/tsconfig": "0.1.0"
66
66
  },
67
67
  "dependencies": {
68
68
  "@reduxjs/toolkit": "^2.2.3",
69
- "@whereby.com/media": "2.5.4",
69
+ "@whereby.com/media": "2.5.5",
70
70
  "axios": "^1.11.0",
71
71
  "btoa": "^1.2.1",
72
72
  "events": "^3.3.0"