@seamly/web-ui 19.1.2 → 19.1.3
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/build/dist/lib/index.debug.js +3 -3
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +21 -7
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +21 -7
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +9 -0
- package/build/dist/lib/style-guide.min.js +1 -1
- package/package.json +1 -1
- package/src/javascripts/api/errors/seamly-base-error.js +7 -0
- package/src/javascripts/api/producer.js +5 -1
- package/src/javascripts/domains/errors/index.js +5 -4
- package/src/.DS_Store +0 -0
package/build/dist/lib/index.js
CHANGED
|
@@ -14497,6 +14497,15 @@ class SeamlyBaseError extends Error {
|
|
|
14497
14497
|
}
|
|
14498
14498
|
|
|
14499
14499
|
this.originalError = originalError;
|
|
14500
|
+
|
|
14501
|
+
if (originalError !== null && originalError !== void 0 && originalError.payload) {
|
|
14502
|
+
this.originalEvent = originalError;
|
|
14503
|
+
this.originalError = originalError.payload.error;
|
|
14504
|
+
}
|
|
14505
|
+
|
|
14506
|
+
if (originalError !== null && originalError !== void 0 && originalError.error) {
|
|
14507
|
+
this.originalError = originalError.error;
|
|
14508
|
+
}
|
|
14500
14509
|
}
|
|
14501
14510
|
|
|
14502
14511
|
}
|
|
@@ -23218,30 +23227,33 @@ function errors_createMiddleware({
|
|
|
23218
23227
|
return ({
|
|
23219
23228
|
getState
|
|
23220
23229
|
}) => {
|
|
23221
|
-
const handleError =
|
|
23230
|
+
const handleError = action => {
|
|
23222
23231
|
const {
|
|
23223
23232
|
errorCallback,
|
|
23224
23233
|
namespace,
|
|
23225
23234
|
api,
|
|
23226
23235
|
layoutMode
|
|
23227
23236
|
} = selectConfig(getState());
|
|
23228
|
-
errorCallback === null || errorCallback === void 0 ? void 0 : errorCallback(error, {
|
|
23237
|
+
errorCallback === null || errorCallback === void 0 ? void 0 : errorCallback(action.error, {
|
|
23229
23238
|
namespace,
|
|
23230
23239
|
api,
|
|
23231
23240
|
layoutMode,
|
|
23232
|
-
conversationUrl: seamlyApi.getConversationUrl()
|
|
23241
|
+
conversationUrl: seamlyApi.getConversationUrl(),
|
|
23242
|
+
action: action.type ? action : undefined
|
|
23233
23243
|
});
|
|
23234
23244
|
};
|
|
23235
23245
|
|
|
23236
23246
|
return next => action => {
|
|
23237
23247
|
try {
|
|
23238
23248
|
if (action.error) {
|
|
23239
|
-
handleError(action
|
|
23249
|
+
handleError(action);
|
|
23240
23250
|
}
|
|
23241
23251
|
|
|
23242
23252
|
return next(action);
|
|
23243
23253
|
} catch (error) {
|
|
23244
|
-
handleError(
|
|
23254
|
+
handleError({
|
|
23255
|
+
error
|
|
23256
|
+
});
|
|
23245
23257
|
throw error;
|
|
23246
23258
|
}
|
|
23247
23259
|
};
|
|
@@ -24767,7 +24779,8 @@ class ConversationProducer {
|
|
|
24767
24779
|
this.emit({
|
|
24768
24780
|
type: 'error',
|
|
24769
24781
|
payload: {
|
|
24770
|
-
type: 'seamly_offline'
|
|
24782
|
+
type: 'seamly_offline',
|
|
24783
|
+
error: err
|
|
24771
24784
|
}
|
|
24772
24785
|
});
|
|
24773
24786
|
});
|
|
@@ -24839,7 +24852,8 @@ class ConversationProducer {
|
|
|
24839
24852
|
this.emit({
|
|
24840
24853
|
type: 'error',
|
|
24841
24854
|
payload: {
|
|
24842
|
-
type: 'join_channel_erred'
|
|
24855
|
+
type: 'join_channel_erred',
|
|
24856
|
+
error: err
|
|
24843
24857
|
}
|
|
24844
24858
|
});
|
|
24845
24859
|
this.emit({
|