@seamly/web-ui 20.8.0-beta.1 → 20.8.0-beta.4
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 +5 -5
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +25 -24
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +27 -28
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +11 -17
- package/build/dist/lib/style-guide.min.js +1 -1
- package/package.json +1 -1
- package/src/javascripts/domains/app/actions.ts +45 -41
- package/src/javascripts/domains/store/slice.ts +7 -2
- package/src/javascripts/domains/translations/slice.ts +0 -6
- package/src/javascripts/ui/hooks/use-seamly-chat.js +13 -6
|
@@ -2684,7 +2684,9 @@ const seamly_unavailable_error_1 = __importDefault(__webpack_require__(60));
|
|
|
2684
2684
|
|
|
2685
2685
|
const actions_1 = __webpack_require__(915);
|
|
2686
2686
|
|
|
2687
|
-
const actions_2 = __webpack_require__(
|
|
2687
|
+
const actions_2 = __webpack_require__(59);
|
|
2688
|
+
|
|
2689
|
+
const actions_3 = __webpack_require__(234);
|
|
2688
2690
|
|
|
2689
2691
|
const seamly_utils_1 = __webpack_require__(740);
|
|
2690
2692
|
|
|
@@ -2693,7 +2695,8 @@ exports.initializeApp = (0, toolkit_1.createAsyncThunk)('initializeApp', (_, {
|
|
|
2693
2695
|
api,
|
|
2694
2696
|
config
|
|
2695
2697
|
},
|
|
2696
|
-
rejectWithValue
|
|
2698
|
+
rejectWithValue,
|
|
2699
|
+
dispatch
|
|
2697
2700
|
}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2698
2701
|
var _a, _b, _c, _d;
|
|
2699
2702
|
|
|
@@ -2732,6 +2735,7 @@ exports.initializeApp = (0, toolkit_1.createAsyncThunk)('initializeApp', (_, {
|
|
|
2732
2735
|
});
|
|
2733
2736
|
}
|
|
2734
2737
|
|
|
2738
|
+
dispatch((0, actions_2.setLocale)(locale));
|
|
2735
2739
|
return {
|
|
2736
2740
|
initialState: undefined,
|
|
2737
2741
|
locale,
|
|
@@ -2769,7 +2773,7 @@ exports.resetApp = (0, toolkit_1.createAsyncThunk)('resetApp', (_, {
|
|
|
2769
2773
|
dispatch((0, actions_1.resetConfig)());
|
|
2770
2774
|
yield dispatch((0, actions_1.initializeConfig)());
|
|
2771
2775
|
yield dispatch((0, exports.initializeApp)());
|
|
2772
|
-
dispatch((0,
|
|
2776
|
+
dispatch((0, actions_3.initializeVisibility)());
|
|
2773
2777
|
}));
|
|
2774
2778
|
|
|
2775
2779
|
/***/ }),
|
|
@@ -3798,7 +3802,7 @@ exports.storeSlice = (0, toolkit_1.createSlice)({
|
|
|
3798
3802
|
let newFeatures = Object.assign({}, state.options.features);
|
|
3799
3803
|
const newFeaturesHasUpload = newFeatures.hasOwnProperty(seamly_utils_1.featureKeys.uploads); // Only set uploads if it was initialised by the account config.
|
|
3800
3804
|
|
|
3801
|
-
if (newFeaturesHasUpload && lastParticipantEvent.type === 'message') {
|
|
3805
|
+
if (newFeaturesHasUpload && (lastParticipantEvent === null || lastParticipantEvent === void 0 ? void 0 : lastParticipantEvent.type) === 'message') {
|
|
3802
3806
|
const {
|
|
3803
3807
|
payload: lastParticipantEventPayload
|
|
3804
3808
|
} = lastParticipantEvent;
|
|
@@ -3822,7 +3826,7 @@ exports.storeSlice = (0, toolkit_1.createSlice)({
|
|
|
3822
3826
|
state.serviceInfo = Object.assign(Object.assign({}, state.serviceInfo), {
|
|
3823
3827
|
activeServiceSessionId
|
|
3824
3828
|
});
|
|
3825
|
-
state.serviceData = serviceData
|
|
3829
|
+
state.serviceData = Object.assign(Object.assign({}, state.serviceData), serviceData);
|
|
3826
3830
|
state.options = Object.assign(Object.assign({}, state.options), {
|
|
3827
3831
|
features: newFeatures || {}
|
|
3828
3832
|
});
|
|
@@ -4090,9 +4094,7 @@ __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export_
|
|
|
4090
4094
|
|
|
4091
4095
|
const toolkit_1 = __webpack_require__(427);
|
|
4092
4096
|
|
|
4093
|
-
const actions_1 = __webpack_require__(
|
|
4094
|
-
|
|
4095
|
-
const actions_2 = __webpack_require__(915);
|
|
4097
|
+
const actions_1 = __webpack_require__(915);
|
|
4096
4098
|
|
|
4097
4099
|
const slice_1 = __webpack_require__(153);
|
|
4098
4100
|
|
|
@@ -4182,15 +4184,7 @@ exports.i$ = (0, toolkit_1.createSlice)({
|
|
|
4182
4184
|
}
|
|
4183
4185
|
},
|
|
4184
4186
|
extraReducers: builder => {
|
|
4185
|
-
builder.addCase(actions_1.
|
|
4186
|
-
payload
|
|
4187
|
-
}) => {
|
|
4188
|
-
var _a, _b;
|
|
4189
|
-
|
|
4190
|
-
if (!((_b = (_a = payload.config) === null || _a === void 0 ? void 0 : _a.context) === null || _b === void 0 ? void 0 : _b.translationLocale)) return;
|
|
4191
|
-
state.isActive = true;
|
|
4192
|
-
state.currentLocale = payload.locale;
|
|
4193
|
-
}).addCase(actions_2.initializeConfig.fulfilled, (state, {
|
|
4187
|
+
builder.addCase(actions_1.initializeConfig.fulfilled, (state, {
|
|
4194
4188
|
payload
|
|
4195
4189
|
}) => {
|
|
4196
4190
|
var _a;
|