@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
|
@@ -22884,6 +22884,15 @@ class SeamlyBaseError extends Error {
|
|
|
22884
22884
|
}
|
|
22885
22885
|
|
|
22886
22886
|
this.originalError = originalError;
|
|
22887
|
+
|
|
22888
|
+
if (originalError !== null && originalError !== void 0 && originalError.payload) {
|
|
22889
|
+
this.originalEvent = originalError;
|
|
22890
|
+
this.originalError = originalError.payload.error;
|
|
22891
|
+
}
|
|
22892
|
+
|
|
22893
|
+
if (originalError !== null && originalError !== void 0 && originalError.error) {
|
|
22894
|
+
this.originalError = originalError.error;
|
|
22895
|
+
}
|
|
22887
22896
|
}
|
|
22888
22897
|
|
|
22889
22898
|
}
|
|
@@ -31981,30 +31990,33 @@ function errors_createMiddleware({
|
|
|
31981
31990
|
return ({
|
|
31982
31991
|
getState
|
|
31983
31992
|
}) => {
|
|
31984
|
-
const handleError =
|
|
31993
|
+
const handleError = action => {
|
|
31985
31994
|
const {
|
|
31986
31995
|
errorCallback,
|
|
31987
31996
|
namespace,
|
|
31988
31997
|
api,
|
|
31989
31998
|
layoutMode
|
|
31990
31999
|
} = selectConfig(getState());
|
|
31991
|
-
errorCallback === null || errorCallback === void 0 ? void 0 : errorCallback(error, {
|
|
32000
|
+
errorCallback === null || errorCallback === void 0 ? void 0 : errorCallback(action.error, {
|
|
31992
32001
|
namespace,
|
|
31993
32002
|
api,
|
|
31994
32003
|
layoutMode,
|
|
31995
|
-
conversationUrl: seamlyApi.getConversationUrl()
|
|
32004
|
+
conversationUrl: seamlyApi.getConversationUrl(),
|
|
32005
|
+
action: action.type ? action : undefined
|
|
31996
32006
|
});
|
|
31997
32007
|
};
|
|
31998
32008
|
|
|
31999
32009
|
return next => action => {
|
|
32000
32010
|
try {
|
|
32001
32011
|
if (action.error) {
|
|
32002
|
-
handleError(action
|
|
32012
|
+
handleError(action);
|
|
32003
32013
|
}
|
|
32004
32014
|
|
|
32005
32015
|
return next(action);
|
|
32006
32016
|
} catch (error) {
|
|
32007
|
-
handleError(
|
|
32017
|
+
handleError({
|
|
32018
|
+
error
|
|
32019
|
+
});
|
|
32008
32020
|
throw error;
|
|
32009
32021
|
}
|
|
32010
32022
|
};
|
|
@@ -33659,7 +33671,8 @@ class ConversationProducer {
|
|
|
33659
33671
|
this.emit({
|
|
33660
33672
|
type: 'error',
|
|
33661
33673
|
payload: {
|
|
33662
|
-
type: 'seamly_offline'
|
|
33674
|
+
type: 'seamly_offline',
|
|
33675
|
+
error: err
|
|
33663
33676
|
}
|
|
33664
33677
|
});
|
|
33665
33678
|
});
|
|
@@ -33731,7 +33744,8 @@ class ConversationProducer {
|
|
|
33731
33744
|
this.emit({
|
|
33732
33745
|
type: 'error',
|
|
33733
33746
|
payload: {
|
|
33734
|
-
type: 'join_channel_erred'
|
|
33747
|
+
type: 'join_channel_erred',
|
|
33748
|
+
error: err
|
|
33735
33749
|
}
|
|
33736
33750
|
});
|
|
33737
33751
|
this.emit({
|