@seamly/web-ui 19.1.4 → 19.1.6
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/CHANGELOG.md +634 -0
- package/build/dist/lib/index.debug.js +4 -4
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +41 -42
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +41 -42
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +39 -39
- package/build/dist/lib/style-guide.min.js +1 -1
- package/package.json +1 -1
- package/src/javascripts/domains/store/index.js +10 -9
- package/src/javascripts/domains/translations/middleware.js +6 -5
- package/src/javascripts/ui/utils/seamly-utils.js +3 -3
- package/src/.DS_Store +0 -0
package/build/dist/lib/index.js
CHANGED
|
@@ -12571,9 +12571,9 @@ const seamlyStateReducer = (state, action) => {
|
|
|
12571
12571
|
|
|
12572
12572
|
|
|
12573
12573
|
if (accountHasUploads && (eventType === eventTypes.message || eventType === eventTypes.participant) && !payload.fromClient) {
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12574
|
+
var _payload$entry;
|
|
12575
|
+
|
|
12576
|
+
const entryType = payload === null || payload === void 0 ? void 0 : (_payload$entry = payload.entry) === null || _payload$entry === void 0 ? void 0 : _payload$entry.type;
|
|
12577
12577
|
newOptions = seamly_utils_objectSpread(seamly_utils_objectSpread({}, newOptions), {}, {
|
|
12578
12578
|
features: seamly_utils_objectSpread(seamly_utils_objectSpread({}, newOptions.features), {}, {
|
|
12579
12579
|
uploads: seamly_utils_objectSpread(seamly_utils_objectSpread({}, newOptions.features.uploads), {}, {
|
|
@@ -12701,12 +12701,9 @@ const seamlyStateReducer = (state, action) => {
|
|
|
12701
12701
|
const newFeaturesHasUpload = newFeatures.hasOwnProperty(featureKeys.uploads); // Only set uploads if it was initialised by the account config.
|
|
12702
12702
|
|
|
12703
12703
|
if (newFeaturesHasUpload) {
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
const {
|
|
12708
|
-
type: entryType
|
|
12709
|
-
} = lastParticipantEventPayload.entry || {};
|
|
12704
|
+
var _lastParticipantEvent, _lastParticipantEvent2;
|
|
12705
|
+
|
|
12706
|
+
const entryType = lastParticipantEvent === null || lastParticipantEvent === void 0 ? void 0 : (_lastParticipantEvent = lastParticipantEvent.payload) === null || _lastParticipantEvent === void 0 ? void 0 : (_lastParticipantEvent2 = _lastParticipantEvent.entry) === null || _lastParticipantEvent2 === void 0 ? void 0 : _lastParticipantEvent2.type;
|
|
12710
12707
|
newFeatures = seamly_utils_objectSpread(seamly_utils_objectSpread({}, newFeatures), {}, {
|
|
12711
12708
|
uploads: {
|
|
12712
12709
|
enabled: !!(uploads && uploads.enabled),
|
|
@@ -16162,45 +16159,48 @@ function useTranslationsContainer() {
|
|
|
16162
16159
|
|
|
16163
16160
|
|
|
16164
16161
|
|
|
16165
|
-
function translations_middleware_createMiddleware(
|
|
16166
|
-
|
|
16167
|
-
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
-
|
|
16162
|
+
function translations_middleware_createMiddleware({
|
|
16163
|
+
dispatch,
|
|
16164
|
+
getState
|
|
16165
|
+
}) {
|
|
16166
|
+
return next => {
|
|
16167
|
+
return action => {
|
|
16168
|
+
var _action$history, _action$history$trans, _action$initialState, _action$initialState$, _action$event, _action$event$payload, _action$event$payload2;
|
|
16171
16169
|
|
|
16172
|
-
|
|
16170
|
+
const result = next(action);
|
|
16173
16171
|
|
|
16174
|
-
|
|
16175
|
-
|
|
16176
|
-
|
|
16177
|
-
|
|
16178
|
-
|
|
16172
|
+
switch (action.type) {
|
|
16173
|
+
case String(seamlyActions.SET_HISTORY):
|
|
16174
|
+
if ((_action$history = action.history) !== null && _action$history !== void 0 && (_action$history$trans = _action$history.translation) !== null && _action$history$trans !== void 0 && _action$history$trans.enabled) {
|
|
16175
|
+
dispatch(enable(action.history.translation.locale));
|
|
16176
|
+
dispatch(setLocale(action.history.translation.locale));
|
|
16177
|
+
}
|
|
16179
16178
|
|
|
16180
|
-
|
|
16179
|
+
break;
|
|
16181
16180
|
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
|
|
16185
|
-
|
|
16186
|
-
|
|
16181
|
+
case String(seamlyActions.SET_INITIAL_STATE):
|
|
16182
|
+
if ((_action$initialState = action.initialState) !== null && _action$initialState !== void 0 && (_action$initialState$ = _action$initialState.translation) !== null && _action$initialState$ !== void 0 && _action$initialState$.enabled) {
|
|
16183
|
+
dispatch(enable(action.initialState.translation.locale));
|
|
16184
|
+
dispatch(setLocale(action.locale));
|
|
16185
|
+
}
|
|
16187
16186
|
|
|
16188
|
-
|
|
16187
|
+
break;
|
|
16189
16188
|
|
|
16190
|
-
|
|
16191
|
-
|
|
16192
|
-
|
|
16193
|
-
|
|
16189
|
+
case String(seamlyActions.ADD_EVENT):
|
|
16190
|
+
if (action.event.type === 'info' && ((_action$event = action.event) === null || _action$event === void 0 ? void 0 : (_action$event$payload = _action$event.payload) === null || _action$event$payload === void 0 ? void 0 : (_action$event$payload2 = _action$event$payload.body) === null || _action$event$payload2 === void 0 ? void 0 : _action$event$payload2.subtype) === 'new_translation' && action.event.payload.body.translationEnabled) {
|
|
16191
|
+
dispatch(setLocale(action.event.payload.body.translationLocale));
|
|
16192
|
+
}
|
|
16194
16193
|
|
|
16195
|
-
|
|
16194
|
+
break;
|
|
16196
16195
|
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16196
|
+
case String(disable):
|
|
16197
|
+
const initialLocale = selectInitialLocale(getState());
|
|
16198
|
+
dispatch(setLocale(initialLocale));
|
|
16199
|
+
break;
|
|
16200
|
+
}
|
|
16202
16201
|
|
|
16203
|
-
|
|
16202
|
+
return result;
|
|
16203
|
+
};
|
|
16204
16204
|
};
|
|
16205
16205
|
}
|
|
16206
16206
|
;// CONCATENATED MODULE: ./src/javascripts/domains/translations/reducer.js
|
|
@@ -24554,12 +24554,11 @@ var Socket = class {
|
|
|
24554
24554
|
}
|
|
24555
24555
|
|
|
24556
24556
|
onConnClose(event) {
|
|
24557
|
-
let closeCode = event && event.code;
|
|
24558
24557
|
if (this.hasLogger()) this.log("transport", "close", event);
|
|
24559
24558
|
this.triggerChanError();
|
|
24560
24559
|
clearTimeout(this.heartbeatTimer);
|
|
24561
24560
|
|
|
24562
|
-
if (!this.closeWasClean
|
|
24561
|
+
if (!this.closeWasClean) {
|
|
24563
24562
|
this.reconnectTimer.scheduleTimeout();
|
|
24564
24563
|
}
|
|
24565
24564
|
|
|
@@ -25596,7 +25595,7 @@ function store_createStore({
|
|
|
25596
25595
|
api
|
|
25597
25596
|
}), options_middleware_createMiddleware({
|
|
25598
25597
|
api
|
|
25599
|
-
}), translations_middleware_createMiddleware
|
|
25598
|
+
}), translations_middleware_createMiddleware]
|
|
25600
25599
|
});
|
|
25601
25600
|
return store;
|
|
25602
25601
|
}
|