@signalwire/js 3.7.1-dev.202201131750.6d234cc.0 → 3.8.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/core/src/BaseComponent.d.ts +29 -31
- package/dist/core/src/BaseComponent.d.ts.map +1 -1
- package/dist/core/src/BaseJWTSession.d.ts +1 -0
- package/dist/core/src/BaseJWTSession.d.ts.map +1 -1
- package/dist/core/src/BaseSession.d.ts +1 -1
- package/dist/core/src/BaseSession.d.ts.map +1 -1
- package/dist/core/src/chat/BaseChat.d.ts +4 -3
- package/dist/core/src/chat/BaseChat.d.ts.map +1 -1
- package/dist/core/src/chat/ChatMember.d.ts +6 -0
- package/dist/core/src/chat/ChatMember.d.ts.map +1 -1
- package/dist/core/src/chat/ChatMessage.d.ts +9 -0
- package/dist/core/src/chat/ChatMessage.d.ts.map +1 -1
- package/dist/core/src/chat/index.d.ts +1 -0
- package/dist/core/src/chat/index.d.ts.map +1 -1
- package/dist/core/src/chat/methods.d.ts +18 -15
- package/dist/core/src/chat/methods.d.ts.map +1 -1
- package/dist/core/src/chat/workers.d.ts +2 -1
- package/dist/core/src/chat/workers.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +3 -3
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/internal/BaseBackendSession.d.ts.map +1 -1
- package/dist/core/src/redux/actions.d.ts +17 -14
- package/dist/core/src/redux/actions.d.ts.map +1 -1
- package/dist/core/src/redux/features/component/componentSlice.d.ts +3952 -10
- package/dist/core/src/redux/features/component/componentSlice.d.ts.map +1 -1
- package/dist/core/src/redux/features/executeQueue/executeQueueSlice.d.ts +44 -7
- package/dist/core/src/redux/features/executeQueue/executeQueueSlice.d.ts.map +1 -1
- package/dist/core/src/redux/features/pubSub/pubSubSaga.d.ts.map +1 -1
- package/dist/core/src/redux/features/session/sessionSlice.d.ts +74 -8
- package/dist/core/src/redux/features/session/sessionSlice.d.ts.map +1 -1
- package/dist/core/src/redux/index.d.ts +9 -25
- package/dist/core/src/redux/index.d.ts.map +1 -1
- package/dist/core/src/redux/interfaces.d.ts +5 -4
- package/dist/core/src/redux/interfaces.d.ts.map +1 -1
- package/dist/core/src/redux/rootReducer.d.ts +417 -3
- package/dist/core/src/redux/rootReducer.d.ts.map +1 -1
- package/dist/core/src/redux/rootSaga.d.ts +23 -5
- package/dist/core/src/redux/rootSaga.d.ts.map +1 -1
- package/dist/core/src/redux/toolkit/configureStore.d.ts +77 -0
- package/dist/core/src/redux/toolkit/configureStore.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/createAction.d.ts +180 -0
- package/dist/core/src/redux/toolkit/createAction.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/createReducer.d.ts +42 -0
- package/dist/core/src/redux/toolkit/createReducer.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/createSlice.d.ts +142 -0
- package/dist/core/src/redux/toolkit/createSlice.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/devtoolsExtension.d.ts +185 -0
- package/dist/core/src/redux/toolkit/devtoolsExtension.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/getDefaultMiddleware.d.ts +12 -0
- package/dist/core/src/redux/toolkit/getDefaultMiddleware.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/index.d.ts +13 -0
- package/dist/core/src/redux/toolkit/index.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/isPlainObject.d.ts +12 -0
- package/dist/core/src/redux/toolkit/isPlainObject.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/mapBuilders.d.ts +38 -0
- package/dist/core/src/redux/toolkit/mapBuilders.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/tsHelpers.d.ts +51 -0
- package/dist/core/src/redux/toolkit/tsHelpers.d.ts.map +1 -0
- package/dist/core/src/redux/toolkit/utils.d.ts +11 -0
- package/dist/core/src/redux/toolkit/utils.d.ts.map +1 -0
- package/dist/core/src/redux/utils/createDestroyableSlice.d.ts +3 -2
- package/dist/core/src/redux/utils/createDestroyableSlice.d.ts.map +1 -1
- package/dist/core/src/rooms/methods.d.ts +31 -21
- package/dist/core/src/rooms/methods.d.ts.map +1 -1
- package/dist/core/src/testUtils.d.ts +8 -25
- package/dist/core/src/testUtils.d.ts.map +1 -1
- package/dist/core/src/types/chat.d.ts +12 -12
- package/dist/core/src/types/chat.d.ts.map +1 -1
- package/dist/core/src/types/utils.d.ts +7 -0
- package/dist/core/src/types/utils.d.ts.map +1 -1
- package/dist/core/src/types/videoMember.d.ts +10 -1
- package/dist/core/src/types/videoMember.d.ts.map +1 -1
- package/dist/core/src/utils/constants.d.ts +1 -0
- package/dist/core/src/utils/constants.d.ts.map +1 -1
- package/dist/core/src/utils/index.d.ts +4 -1
- package/dist/core/src/utils/index.d.ts.map +1 -1
- package/dist/core/src/utils/interfaces.d.ts +19 -6
- package/dist/core/src/utils/interfaces.d.ts.map +1 -1
- package/dist/index.esm.js +179 -49
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +223 -100
- package/dist/index.js.map +3 -3
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/js/src/BaseRoomSession.d.ts +7 -0
- package/dist/js/src/BaseRoomSession.d.ts.map +1 -1
- package/dist/js/src/JWTSession.d.ts.map +1 -1
- package/dist/js/src/RoomSession.d.ts.map +1 -1
- package/dist/js/src/RoomSession.docs.d.ts +9 -1
- package/dist/js/src/RoomSession.docs.d.ts.map +1 -1
- package/dist/js/src/chat/Client.d.ts +37 -3
- package/dist/js/src/chat/Client.d.ts.map +1 -1
- package/dist/js/src/chat/Client.docs.d.ts +238 -0
- package/dist/js/src/chat/Client.docs.d.ts.map +1 -0
- package/dist/js/src/chat/index.d.ts +5 -0
- package/dist/js/src/chat/index.d.ts.map +1 -1
- package/dist/js/src/features/actions.d.ts +1 -1
- package/dist/js/src/features/actions.d.ts.map +1 -1
- package/dist/js/src/index.d.ts +5 -2
- package/dist/js/src/index.d.ts.map +1 -1
- package/dist/js/src/testUtils.d.ts +16 -50
- package/dist/js/src/testUtils.d.ts.map +1 -1
- package/dist/js/src/utils/interfaces.d.ts +16 -2
- package/dist/js/src/utils/interfaces.d.ts.map +1 -1
- package/dist/js/src/video/memberListUpdatedWorker.d.ts +14 -0
- package/dist/js/src/video/memberListUpdatedWorker.d.ts.map +1 -0
- package/dist/js/src/video/workers.d.ts +2 -0
- package/dist/js/src/video/workers.d.ts.map +1 -0
- package/dist/js/tsconfig.build.tsbuildinfo +1 -1
- package/dist/webrtc/src/BaseConnection.d.ts +7 -0
- package/dist/webrtc/src/BaseConnection.d.ts.map +1 -1
- package/dist/webrtc/src/RTCPeer.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/BaseRoomSession.test.ts +2 -2
- package/src/BaseRoomSession.ts +15 -0
- package/src/RoomSession.docs.ts +10 -1
- package/src/RoomSession.ts +16 -4
- package/src/chat/Client.docs.ts +259 -0
- package/src/chat/Client.test.ts +4 -4
- package/src/chat/Client.ts +39 -3
- package/src/chat/index.ts +10 -0
- package/src/index.ts +6 -3
- package/src/utils/interfaces.ts +22 -2
- package/src/video/memberListUpdatedWorker.ts +217 -0
- package/src/video/workers.ts +1 -0
|
@@ -1,6 +1,420 @@
|
|
|
1
1
|
export declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{
|
|
2
|
-
components:
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
components: {
|
|
3
|
+
readonly byId: {
|
|
4
|
+
readonly [x: string]: {
|
|
5
|
+
readonly state?: import("@signalwire/js").BaseConnectionState | undefined;
|
|
6
|
+
readonly remoteSDP?: string | undefined;
|
|
7
|
+
readonly nodeId?: string | undefined;
|
|
8
|
+
readonly roomId?: string | undefined;
|
|
9
|
+
readonly roomSessionId?: string | undefined;
|
|
10
|
+
readonly memberId?: string | undefined;
|
|
11
|
+
readonly previewUrl?: string | undefined;
|
|
12
|
+
readonly byeCause?: string | undefined;
|
|
13
|
+
readonly byeCauseCode?: number | undefined;
|
|
14
|
+
readonly redirectDestination?: string | undefined;
|
|
15
|
+
readonly audioConstraints?: {
|
|
16
|
+
readonly advanced?: readonly {
|
|
17
|
+
readonly aspectRatio?: number | {
|
|
18
|
+
readonly exact?: number | undefined;
|
|
19
|
+
readonly ideal?: number | undefined;
|
|
20
|
+
readonly max?: number | undefined;
|
|
21
|
+
readonly min?: number | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
readonly autoGainControl?: boolean | {
|
|
24
|
+
readonly exact?: boolean | undefined;
|
|
25
|
+
readonly ideal?: boolean | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
readonly channelCount?: number | {
|
|
28
|
+
readonly exact?: number | undefined;
|
|
29
|
+
readonly ideal?: number | undefined;
|
|
30
|
+
readonly max?: number | undefined;
|
|
31
|
+
readonly min?: number | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly deviceId?: string | readonly string[] | {
|
|
34
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
35
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
readonly echoCancellation?: boolean | {
|
|
38
|
+
readonly exact?: boolean | undefined;
|
|
39
|
+
readonly ideal?: boolean | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
readonly facingMode?: string | readonly string[] | {
|
|
42
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
43
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
readonly frameRate?: number | {
|
|
46
|
+
readonly exact?: number | undefined;
|
|
47
|
+
readonly ideal?: number | undefined;
|
|
48
|
+
readonly max?: number | undefined;
|
|
49
|
+
readonly min?: number | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
readonly groupId?: string | readonly string[] | {
|
|
52
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
53
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
readonly height?: number | {
|
|
56
|
+
readonly exact?: number | undefined;
|
|
57
|
+
readonly ideal?: number | undefined;
|
|
58
|
+
readonly max?: number | undefined;
|
|
59
|
+
readonly min?: number | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
readonly latency?: number | {
|
|
62
|
+
readonly exact?: number | undefined;
|
|
63
|
+
readonly ideal?: number | undefined;
|
|
64
|
+
readonly max?: number | undefined;
|
|
65
|
+
readonly min?: number | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
readonly noiseSuppression?: boolean | {
|
|
68
|
+
readonly exact?: boolean | undefined;
|
|
69
|
+
readonly ideal?: boolean | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
readonly sampleRate?: number | {
|
|
72
|
+
readonly exact?: number | undefined;
|
|
73
|
+
readonly ideal?: number | undefined;
|
|
74
|
+
readonly max?: number | undefined;
|
|
75
|
+
readonly min?: number | undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
readonly sampleSize?: number | {
|
|
78
|
+
readonly exact?: number | undefined;
|
|
79
|
+
readonly ideal?: number | undefined;
|
|
80
|
+
readonly max?: number | undefined;
|
|
81
|
+
readonly min?: number | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
readonly suppressLocalAudioPlayback?: boolean | {
|
|
84
|
+
readonly exact?: boolean | undefined;
|
|
85
|
+
readonly ideal?: boolean | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
readonly width?: number | {
|
|
88
|
+
readonly exact?: number | undefined;
|
|
89
|
+
readonly ideal?: number | undefined;
|
|
90
|
+
readonly max?: number | undefined;
|
|
91
|
+
readonly min?: number | undefined;
|
|
92
|
+
} | undefined;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
readonly aspectRatio?: number | {
|
|
95
|
+
readonly exact?: number | undefined;
|
|
96
|
+
readonly ideal?: number | undefined;
|
|
97
|
+
readonly max?: number | undefined;
|
|
98
|
+
readonly min?: number | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
readonly autoGainControl?: boolean | {
|
|
101
|
+
readonly exact?: boolean | undefined;
|
|
102
|
+
readonly ideal?: boolean | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
readonly channelCount?: number | {
|
|
105
|
+
readonly exact?: number | undefined;
|
|
106
|
+
readonly ideal?: number | undefined;
|
|
107
|
+
readonly max?: number | undefined;
|
|
108
|
+
readonly min?: number | undefined;
|
|
109
|
+
} | undefined;
|
|
110
|
+
readonly deviceId?: string | readonly string[] | {
|
|
111
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
112
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
readonly echoCancellation?: boolean | {
|
|
115
|
+
readonly exact?: boolean | undefined;
|
|
116
|
+
readonly ideal?: boolean | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
readonly facingMode?: string | readonly string[] | {
|
|
119
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
120
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
readonly frameRate?: number | {
|
|
123
|
+
readonly exact?: number | undefined;
|
|
124
|
+
readonly ideal?: number | undefined;
|
|
125
|
+
readonly max?: number | undefined;
|
|
126
|
+
readonly min?: number | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
readonly groupId?: string | readonly string[] | {
|
|
129
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
130
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
readonly height?: number | {
|
|
133
|
+
readonly exact?: number | undefined;
|
|
134
|
+
readonly ideal?: number | undefined;
|
|
135
|
+
readonly max?: number | undefined;
|
|
136
|
+
readonly min?: number | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
readonly latency?: number | {
|
|
139
|
+
readonly exact?: number | undefined;
|
|
140
|
+
readonly ideal?: number | undefined;
|
|
141
|
+
readonly max?: number | undefined;
|
|
142
|
+
readonly min?: number | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
readonly noiseSuppression?: boolean | {
|
|
145
|
+
readonly exact?: boolean | undefined;
|
|
146
|
+
readonly ideal?: boolean | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
readonly sampleRate?: number | {
|
|
149
|
+
readonly exact?: number | undefined;
|
|
150
|
+
readonly ideal?: number | undefined;
|
|
151
|
+
readonly max?: number | undefined;
|
|
152
|
+
readonly min?: number | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
readonly sampleSize?: number | {
|
|
155
|
+
readonly exact?: number | undefined;
|
|
156
|
+
readonly ideal?: number | undefined;
|
|
157
|
+
readonly max?: number | undefined;
|
|
158
|
+
readonly min?: number | undefined;
|
|
159
|
+
} | undefined;
|
|
160
|
+
readonly suppressLocalAudioPlayback?: boolean | {
|
|
161
|
+
readonly exact?: boolean | undefined;
|
|
162
|
+
readonly ideal?: boolean | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
readonly width?: number | {
|
|
165
|
+
readonly exact?: number | undefined;
|
|
166
|
+
readonly ideal?: number | undefined;
|
|
167
|
+
readonly max?: number | undefined;
|
|
168
|
+
readonly min?: number | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
readonly videoConstraints?: {
|
|
172
|
+
readonly advanced?: readonly {
|
|
173
|
+
readonly aspectRatio?: number | {
|
|
174
|
+
readonly exact?: number | undefined;
|
|
175
|
+
readonly ideal?: number | undefined;
|
|
176
|
+
readonly max?: number | undefined;
|
|
177
|
+
readonly min?: number | undefined;
|
|
178
|
+
} | undefined;
|
|
179
|
+
readonly autoGainControl?: boolean | {
|
|
180
|
+
readonly exact?: boolean | undefined;
|
|
181
|
+
readonly ideal?: boolean | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
readonly channelCount?: number | {
|
|
184
|
+
readonly exact?: number | undefined;
|
|
185
|
+
readonly ideal?: number | undefined;
|
|
186
|
+
readonly max?: number | undefined;
|
|
187
|
+
readonly min?: number | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
readonly deviceId?: string | readonly string[] | {
|
|
190
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
191
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
readonly echoCancellation?: boolean | {
|
|
194
|
+
readonly exact?: boolean | undefined;
|
|
195
|
+
readonly ideal?: boolean | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
readonly facingMode?: string | readonly string[] | {
|
|
198
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
199
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
readonly frameRate?: number | {
|
|
202
|
+
readonly exact?: number | undefined;
|
|
203
|
+
readonly ideal?: number | undefined;
|
|
204
|
+
readonly max?: number | undefined;
|
|
205
|
+
readonly min?: number | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
readonly groupId?: string | readonly string[] | {
|
|
208
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
209
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
210
|
+
} | undefined;
|
|
211
|
+
readonly height?: number | {
|
|
212
|
+
readonly exact?: number | undefined;
|
|
213
|
+
readonly ideal?: number | undefined;
|
|
214
|
+
readonly max?: number | undefined;
|
|
215
|
+
readonly min?: number | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
readonly latency?: number | {
|
|
218
|
+
readonly exact?: number | undefined;
|
|
219
|
+
readonly ideal?: number | undefined;
|
|
220
|
+
readonly max?: number | undefined;
|
|
221
|
+
readonly min?: number | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
readonly noiseSuppression?: boolean | {
|
|
224
|
+
readonly exact?: boolean | undefined;
|
|
225
|
+
readonly ideal?: boolean | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
readonly sampleRate?: number | {
|
|
228
|
+
readonly exact?: number | undefined;
|
|
229
|
+
readonly ideal?: number | undefined;
|
|
230
|
+
readonly max?: number | undefined;
|
|
231
|
+
readonly min?: number | undefined;
|
|
232
|
+
} | undefined;
|
|
233
|
+
readonly sampleSize?: number | {
|
|
234
|
+
readonly exact?: number | undefined;
|
|
235
|
+
readonly ideal?: number | undefined;
|
|
236
|
+
readonly max?: number | undefined;
|
|
237
|
+
readonly min?: number | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
readonly suppressLocalAudioPlayback?: boolean | {
|
|
240
|
+
readonly exact?: boolean | undefined;
|
|
241
|
+
readonly ideal?: boolean | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
readonly width?: number | {
|
|
244
|
+
readonly exact?: number | undefined;
|
|
245
|
+
readonly ideal?: number | undefined;
|
|
246
|
+
readonly max?: number | undefined;
|
|
247
|
+
readonly min?: number | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
}[] | undefined;
|
|
250
|
+
readonly aspectRatio?: number | {
|
|
251
|
+
readonly exact?: number | undefined;
|
|
252
|
+
readonly ideal?: number | undefined;
|
|
253
|
+
readonly max?: number | undefined;
|
|
254
|
+
readonly min?: number | undefined;
|
|
255
|
+
} | undefined;
|
|
256
|
+
readonly autoGainControl?: boolean | {
|
|
257
|
+
readonly exact?: boolean | undefined;
|
|
258
|
+
readonly ideal?: boolean | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
readonly channelCount?: number | {
|
|
261
|
+
readonly exact?: number | undefined;
|
|
262
|
+
readonly ideal?: number | undefined;
|
|
263
|
+
readonly max?: number | undefined;
|
|
264
|
+
readonly min?: number | undefined;
|
|
265
|
+
} | undefined;
|
|
266
|
+
readonly deviceId?: string | readonly string[] | {
|
|
267
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
268
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
readonly echoCancellation?: boolean | {
|
|
271
|
+
readonly exact?: boolean | undefined;
|
|
272
|
+
readonly ideal?: boolean | undefined;
|
|
273
|
+
} | undefined;
|
|
274
|
+
readonly facingMode?: string | readonly string[] | {
|
|
275
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
276
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
277
|
+
} | undefined;
|
|
278
|
+
readonly frameRate?: number | {
|
|
279
|
+
readonly exact?: number | undefined;
|
|
280
|
+
readonly ideal?: number | undefined;
|
|
281
|
+
readonly max?: number | undefined;
|
|
282
|
+
readonly min?: number | undefined;
|
|
283
|
+
} | undefined;
|
|
284
|
+
readonly groupId?: string | readonly string[] | {
|
|
285
|
+
readonly exact?: string | readonly string[] | undefined;
|
|
286
|
+
readonly ideal?: string | readonly string[] | undefined;
|
|
287
|
+
} | undefined;
|
|
288
|
+
readonly height?: number | {
|
|
289
|
+
readonly exact?: number | undefined;
|
|
290
|
+
readonly ideal?: number | undefined;
|
|
291
|
+
readonly max?: number | undefined;
|
|
292
|
+
readonly min?: number | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
readonly latency?: number | {
|
|
295
|
+
readonly exact?: number | undefined;
|
|
296
|
+
readonly ideal?: number | undefined;
|
|
297
|
+
readonly max?: number | undefined;
|
|
298
|
+
readonly min?: number | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
readonly noiseSuppression?: boolean | {
|
|
301
|
+
readonly exact?: boolean | undefined;
|
|
302
|
+
readonly ideal?: boolean | undefined;
|
|
303
|
+
} | undefined;
|
|
304
|
+
readonly sampleRate?: number | {
|
|
305
|
+
readonly exact?: number | undefined;
|
|
306
|
+
readonly ideal?: number | undefined;
|
|
307
|
+
readonly max?: number | undefined;
|
|
308
|
+
readonly min?: number | undefined;
|
|
309
|
+
} | undefined;
|
|
310
|
+
readonly sampleSize?: number | {
|
|
311
|
+
readonly exact?: number | undefined;
|
|
312
|
+
readonly ideal?: number | undefined;
|
|
313
|
+
readonly max?: number | undefined;
|
|
314
|
+
readonly min?: number | undefined;
|
|
315
|
+
} | undefined;
|
|
316
|
+
readonly suppressLocalAudioPlayback?: boolean | {
|
|
317
|
+
readonly exact?: boolean | undefined;
|
|
318
|
+
readonly ideal?: boolean | undefined;
|
|
319
|
+
} | undefined;
|
|
320
|
+
readonly width?: number | {
|
|
321
|
+
readonly exact?: number | undefined;
|
|
322
|
+
readonly ideal?: number | undefined;
|
|
323
|
+
readonly max?: number | undefined;
|
|
324
|
+
readonly min?: number | undefined;
|
|
325
|
+
} | undefined;
|
|
326
|
+
} | undefined;
|
|
327
|
+
readonly id: string;
|
|
328
|
+
readonly responses?: {
|
|
329
|
+
readonly [x: string]: {
|
|
330
|
+
readonly jsonrpc: "2.0";
|
|
331
|
+
readonly id: string;
|
|
332
|
+
readonly result?: {
|
|
333
|
+
readonly [x: string]: any;
|
|
334
|
+
} | undefined;
|
|
335
|
+
readonly error?: {
|
|
336
|
+
readonly [x: string]: any;
|
|
337
|
+
} | undefined;
|
|
338
|
+
};
|
|
339
|
+
} | undefined;
|
|
340
|
+
readonly errors?: {
|
|
341
|
+
readonly [x: string]: {
|
|
342
|
+
readonly action: {
|
|
343
|
+
readonly payload: any;
|
|
344
|
+
readonly type: string;
|
|
345
|
+
};
|
|
346
|
+
readonly jsonrpc: {
|
|
347
|
+
readonly jsonrpc: "2.0";
|
|
348
|
+
readonly id: string;
|
|
349
|
+
readonly result?: {
|
|
350
|
+
readonly [x: string]: any;
|
|
351
|
+
} | undefined;
|
|
352
|
+
readonly error?: {
|
|
353
|
+
readonly [x: string]: any;
|
|
354
|
+
} | undefined;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
} | undefined;
|
|
358
|
+
} | {
|
|
359
|
+
readonly state?: string | undefined;
|
|
360
|
+
readonly id: string;
|
|
361
|
+
readonly responses?: {
|
|
362
|
+
readonly [x: string]: {
|
|
363
|
+
readonly jsonrpc: "2.0";
|
|
364
|
+
readonly id: string;
|
|
365
|
+
readonly result?: {
|
|
366
|
+
readonly [x: string]: any;
|
|
367
|
+
} | undefined;
|
|
368
|
+
readonly error?: {
|
|
369
|
+
readonly [x: string]: any;
|
|
370
|
+
} | undefined;
|
|
371
|
+
};
|
|
372
|
+
} | undefined;
|
|
373
|
+
readonly errors?: {
|
|
374
|
+
readonly [x: string]: {
|
|
375
|
+
readonly action: {
|
|
376
|
+
readonly payload: any;
|
|
377
|
+
readonly type: string;
|
|
378
|
+
};
|
|
379
|
+
readonly jsonrpc: {
|
|
380
|
+
readonly jsonrpc: "2.0";
|
|
381
|
+
readonly id: string;
|
|
382
|
+
readonly result?: {
|
|
383
|
+
readonly [x: string]: any;
|
|
384
|
+
} | undefined;
|
|
385
|
+
readonly error?: {
|
|
386
|
+
readonly [x: string]: any;
|
|
387
|
+
} | undefined;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
} | undefined;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
session: {
|
|
395
|
+
readonly protocol: string;
|
|
396
|
+
readonly iceServers?: readonly {
|
|
397
|
+
readonly credential?: string | undefined;
|
|
398
|
+
readonly credentialType?: "password" | undefined;
|
|
399
|
+
readonly urls: string | readonly string[];
|
|
400
|
+
readonly username?: string | undefined;
|
|
401
|
+
}[] | undefined;
|
|
402
|
+
readonly authStatus: import("..").SessionAuthStatus;
|
|
403
|
+
readonly authError?: {
|
|
404
|
+
readonly code: number;
|
|
405
|
+
readonly message: string;
|
|
406
|
+
} | undefined;
|
|
407
|
+
readonly authCount: number;
|
|
408
|
+
};
|
|
409
|
+
executeQueue: {
|
|
410
|
+
readonly queue: readonly {
|
|
411
|
+
readonly requestId?: string | undefined;
|
|
412
|
+
readonly componentId?: string | undefined;
|
|
413
|
+
readonly method: import("..").JSONRPCMethod;
|
|
414
|
+
readonly params: {
|
|
415
|
+
readonly [x: string]: any;
|
|
416
|
+
};
|
|
417
|
+
}[];
|
|
418
|
+
};
|
|
5
419
|
}>, import("redux").AnyAction>;
|
|
6
420
|
//# sourceMappingURL=rootReducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootReducer.d.ts","sourceRoot":"","sources":["../../../../../core/src/redux/rootReducer.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"rootReducer.d.ts","sourceRoot":"","sources":["../../../../../core/src/redux/rootReducer.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAItB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SagaIterator } from '@redux-saga/types';
|
|
1
|
+
import type { Task, SagaIterator } from '@redux-saga/types';
|
|
2
2
|
import { EventChannel } from '@redux-saga/core';
|
|
3
3
|
import { SessionConstructor, InternalUserOptions, InternalChannels } from '../utils/interfaces';
|
|
4
4
|
import { BaseSession } from '../BaseSession';
|
|
@@ -19,15 +19,33 @@ export declare function socketClosedWorker({ session, sessionChannel, pubSubChan
|
|
|
19
19
|
sessionChannel: EventChannel<unknown>;
|
|
20
20
|
pubSubChannel: PubSubChannel;
|
|
21
21
|
}): Generator<import("@redux-saga/core/effects").ChannelPutEffect<import("./interfaces").MapToPubSubShape<import("..").VideoRoomStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberTalkingEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoLayoutChangedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoRoomJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberTalkingEvent> | {
|
|
22
|
-
type: "session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected";
|
|
23
|
-
payload: undefined;
|
|
22
|
+
type: "session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring";
|
|
23
|
+
payload: Error | undefined;
|
|
24
24
|
} | import("./interfaces").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberLeftEvent>> | import("@redux-saga/core/effects").CallEffect<true> | import("@redux-saga/core/effects").CallEffect<void>, void, unknown>;
|
|
25
|
-
export declare function reauthenticateWorker({ session, token, }: {
|
|
25
|
+
export declare function reauthenticateWorker({ session, token, pubSubChannel, }: {
|
|
26
26
|
session: BaseSession;
|
|
27
27
|
token: string;
|
|
28
|
-
|
|
28
|
+
pubSubChannel: PubSubChannel;
|
|
29
|
+
}): Generator<import("@redux-saga/core/effects").ChannelPutEffect<import("./interfaces").MapToPubSubShape<import("..").VideoRoomStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberTalkingEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoLayoutChangedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoRoomJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberTalkingEvent> | {
|
|
30
|
+
type: "session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring";
|
|
31
|
+
payload: Error | undefined;
|
|
32
|
+
} | import("./interfaces").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberLeftEvent>> | import("@redux-saga/core/effects").CallEffect<void> | import("@redux-saga/core/effects").PutEffect<{
|
|
33
|
+
payload: {
|
|
34
|
+
error: import("../utils/interfaces").SessionAuthError;
|
|
35
|
+
};
|
|
36
|
+
type: string;
|
|
37
|
+
}>, void, unknown>;
|
|
29
38
|
export declare function sessionStatusWatcher(options: StartSagaOptions): SagaIterator;
|
|
30
39
|
export declare function startSaga(options: StartSagaOptions): SagaIterator;
|
|
40
|
+
interface SessionAuthErrorOptions {
|
|
41
|
+
pubSubChannel: PubSubChannel;
|
|
42
|
+
userOptions: InternalUserOptions;
|
|
43
|
+
action: any;
|
|
44
|
+
}
|
|
45
|
+
export declare function sessionAuthErrorSaga(options: SessionAuthErrorOptions): Generator<import("@redux-saga/core/effects").TakeEffect | import("@redux-saga/core/effects").ChannelPutEffect<import("./interfaces").MapToPubSubShape<import("..").VideoRoomStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRoomEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoMemberTalkingEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoLayoutChangedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoRoomJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").InternalVideoMemberTalkingEvent> | {
|
|
46
|
+
type: "session.unknown" | "session.idle" | "session.reconnecting" | "session.connected" | "session.disconnected" | "session.auth_error" | "session.expiring";
|
|
47
|
+
payload: Error | undefined;
|
|
48
|
+
} | import("./interfaces").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberLeftEvent>> | import("@redux-saga/core/effects").ForkEffect<any>, void, Task>;
|
|
31
49
|
interface RootSagaOptions {
|
|
32
50
|
SessionConstructor: SessionConstructor;
|
|
33
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootSaga.d.ts","sourceRoot":"","sources":["../../../../../core/src/redux/rootSaga.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"rootSaga.d.ts","sourceRoot":"","sources":["../../../../../core/src/redux/rootSaga.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AA+B5C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAI5C,UAAU,gBAAgB;IACxB,OAAO,EAAE,WAAW,CAAA;IACpB,cAAc,EAAE,YAAY,CAAC,OAAO,CAAC,CAAA;IACrC,aAAa,EAAE,aAAa,CAAA;IAC5B,WAAW,EAAE,mBAAmB,CAAA;CACjC;AAED,wBAAiB,eAAe,CAAC,EAC/B,kBAAkB,EAClB,WAAW,EACX,QAAQ,GACT,EAAE;IACD,kBAAkB,EAAE,kBAAkB,CAAA;IACtC,WAAW,EAAE,mBAAmB,CAAA;IAChC,QAAQ,EAAE,gBAAgB,CAAA;CAC3B,GAAG,YAAY,CA2Df;AAED,wBAAiB,kBAAkB,CAAC,EAClC,OAAO,EACP,cAAc,EACd,aAAa,GACd,EAAE;IACD,OAAO,EAAE,WAAW,CAAA;IACpB,cAAc,EAAE,YAAY,CAAC,OAAO,CAAC,CAAA;IACrC,aAAa,EAAE,aAAa,CAAA;CAC7B;;;wbASA;AAED,wBAAiB,oBAAoB,CAAC,EACpC,OAAO,EACP,KAAK,EACL,aAAa,GACd,EAAE;IACD,OAAO,EAAE,WAAW,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,aAAa,CAAA;CAC7B;;;;;;;;mBAWA;AAED,wBAAiB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,YAAY,CA+C7E;AAED,wBAAiB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,YAAY,CA+BlE;AAED,UAAU,uBAAuB;IAC/B,aAAa,EAAE,aAAa,CAAA;IAC5B,WAAW,EAAE,mBAAmB,CAAA;IAChC,MAAM,EAAE,GAAG,CAAA;CACZ;AACD,wBAAiB,oBAAoB,CAAC,OAAO,EAAE,uBAAuB;;;8XAoBrE;AAED,UAAU,eAAe;IACvB,kBAAkB,EAAE,kBAAkB,CAAA;CACvC;kCAEwB,eAAe;iBAKvB,mBAAmB;cACtB,gBAAgB;;AAN9B,wBAqCC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { Reducer, ReducersMapObject, Middleware, Action, AnyAction, StoreEnhancer, Store, Dispatch, PreloadedState, CombinedState } from 'redux';
|
|
2
|
+
import type { EnhancerOptions as DevToolsOptions } from './devtoolsExtension';
|
|
3
|
+
import { CurriedGetDefaultMiddleware } from './getDefaultMiddleware';
|
|
4
|
+
import type { DispatchForMiddlewares, NoInfer } from './tsHelpers';
|
|
5
|
+
/**
|
|
6
|
+
* Callback function type, to be used in `ConfigureStoreOptions.enhancers`
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare type ConfigureEnhancersCallback = (defaultEnhancers: readonly StoreEnhancer[]) => StoreEnhancer[];
|
|
11
|
+
/**
|
|
12
|
+
* Options for `configureStore()`.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface ConfigureStoreOptions<S = any, A extends Action = AnyAction, M extends Middlewares<S> = Middlewares<S>> {
|
|
17
|
+
/**
|
|
18
|
+
* A single reducer function that will be used as the root reducer, or an
|
|
19
|
+
* object of slice reducers that will be passed to `combineReducers()`.
|
|
20
|
+
*/
|
|
21
|
+
reducer: Reducer<S, A> | ReducersMapObject<S, A>;
|
|
22
|
+
/**
|
|
23
|
+
* An array of Redux middleware to install. If not supplied, defaults to
|
|
24
|
+
* the set of middleware returned by `getDefaultMiddleware()`.
|
|
25
|
+
*/
|
|
26
|
+
middleware?: ((getDefaultMiddleware: CurriedGetDefaultMiddleware<S>) => M) | M;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to enable Redux DevTools integration. Defaults to `true`.
|
|
29
|
+
*
|
|
30
|
+
* Additional configuration can be done by passing Redux DevTools options
|
|
31
|
+
*/
|
|
32
|
+
devTools?: boolean | DevToolsOptions;
|
|
33
|
+
/**
|
|
34
|
+
* The initial state, same as Redux's createStore.
|
|
35
|
+
* You may optionally specify it to hydrate the state
|
|
36
|
+
* from the server in universal apps, or to restore a previously serialized
|
|
37
|
+
* user session. If you use `combineReducers()` to produce the root reducer
|
|
38
|
+
* function (either directly or indirectly by passing an object as `reducer`),
|
|
39
|
+
* this must be an object with the same shape as the reducer map keys.
|
|
40
|
+
*/
|
|
41
|
+
preloadedState?: PreloadedState<CombinedState<NoInfer<S>>>;
|
|
42
|
+
/**
|
|
43
|
+
* The store enhancers to apply. See Redux's `createStore()`.
|
|
44
|
+
* All enhancers will be included before the DevTools Extension enhancer.
|
|
45
|
+
* If you need to customize the order of enhancers, supply a callback
|
|
46
|
+
* function that will receive the original array (ie, `[applyMiddleware]`),
|
|
47
|
+
* and should return a new array (such as `[applyMiddleware, offline]`).
|
|
48
|
+
* If you only need to add middleware, you can use the `middleware` parameter instead.
|
|
49
|
+
*/
|
|
50
|
+
enhancers?: StoreEnhancer[] | ConfigureEnhancersCallback;
|
|
51
|
+
}
|
|
52
|
+
declare type Middlewares<S> = ReadonlyArray<Middleware<{}, S>>;
|
|
53
|
+
/**
|
|
54
|
+
* A Redux store returned by `configureStore()`. Supports dispatching
|
|
55
|
+
* side-effectful _thunks_ in addition to plain actions.
|
|
56
|
+
*
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export interface EnhancedStore<S = any, A extends Action = AnyAction, M extends Middlewares<S> = Middlewares<S>> extends Store<S, A> {
|
|
60
|
+
/**
|
|
61
|
+
* The `dispatch` method of your store, enhanced by all its middlewares.
|
|
62
|
+
*
|
|
63
|
+
* @inheritdoc
|
|
64
|
+
*/
|
|
65
|
+
dispatch: Dispatch<A> & DispatchForMiddlewares<M>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A friendly abstraction over the standard Redux `createStore()` function.
|
|
69
|
+
*
|
|
70
|
+
* @param config The store configuration.
|
|
71
|
+
* @returns A configured Redux store.
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare function configureStore<S = any, A extends Action = AnyAction, M extends Middlewares<S> = []>(options: ConfigureStoreOptions<S, A, M>): EnhancedStore<S, A, M>;
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=configureStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configureStore.d.ts","sourceRoot":"","sources":["../../../../../../core/src/redux/toolkit/configureStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,iBAAiB,EACjB,UAAU,EACV,MAAM,EACN,SAAS,EACT,aAAa,EACb,KAAK,EACL,QAAQ,EACR,cAAc,EACd,aAAa,EACd,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,eAAe,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAI7E,OAAO,EACL,2BAA2B,EAE5B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAIlE;;;;GAIG;AACH,oBAAY,0BAA0B,GAAG,CACvC,gBAAgB,EAAE,SAAS,aAAa,EAAE,KACvC,aAAa,EAAE,CAAA;AAEpB;;;;GAIG;AACH,MAAM,WAAW,qBAAqB,CACpC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC;IAEzC;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAEhD;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,CAAC,oBAAoB,EAAE,2BAA2B,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAA;IAE9E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,eAAe,CAAA;IAEpC;;;;;;;OAOG;IAUH,cAAc,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAE1D;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,aAAa,EAAE,GAAG,0BAA0B,CAAA;CACzD;AAED,aAAK,WAAW,CAAC,CAAC,IAAI,aAAa,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,aAAa,CAC5B,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CACzC,SAAQ,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAA;CAClD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,GAAG,EAAE,EAC7B,OAAO,EAAE,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAiEjE"}
|