@seamly/web-ui 19.1.4 → 19.1.5
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 +627 -0
- 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 +35 -33
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +35 -33
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +33 -30
- 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/.DS_Store +0 -0
|
@@ -24649,45 +24649,48 @@ function useTranslationsContainer() {
|
|
|
24649
24649
|
|
|
24650
24650
|
|
|
24651
24651
|
|
|
24652
|
-
function translations_middleware_createMiddleware(
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24652
|
+
function translations_middleware_createMiddleware({
|
|
24653
|
+
dispatch,
|
|
24654
|
+
getState
|
|
24655
|
+
}) {
|
|
24656
|
+
return next => {
|
|
24657
|
+
return action => {
|
|
24658
|
+
var _action$history, _action$history$trans, _action$initialState, _action$initialState$, _action$event, _action$event$payload, _action$event$payload2;
|
|
24658
24659
|
|
|
24659
|
-
|
|
24660
|
+
const result = next(action);
|
|
24660
24661
|
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24662
|
+
switch (action.type) {
|
|
24663
|
+
case String(seamlyActions.SET_HISTORY):
|
|
24664
|
+
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) {
|
|
24665
|
+
dispatch(enable(action.history.translation.locale));
|
|
24666
|
+
dispatch(setLocale(action.history.translation.locale));
|
|
24667
|
+
}
|
|
24666
24668
|
|
|
24667
|
-
|
|
24669
|
+
break;
|
|
24668
24670
|
|
|
24669
|
-
|
|
24670
|
-
|
|
24671
|
-
|
|
24672
|
-
|
|
24673
|
-
|
|
24671
|
+
case String(seamlyActions.SET_INITIAL_STATE):
|
|
24672
|
+
if ((_action$initialState = action.initialState) !== null && _action$initialState !== void 0 && (_action$initialState$ = _action$initialState.translation) !== null && _action$initialState$ !== void 0 && _action$initialState$.enabled) {
|
|
24673
|
+
dispatch(enable(action.initialState.translation.locale));
|
|
24674
|
+
dispatch(setLocale(action.locale));
|
|
24675
|
+
}
|
|
24674
24676
|
|
|
24675
|
-
|
|
24677
|
+
break;
|
|
24676
24678
|
|
|
24677
|
-
|
|
24678
|
-
|
|
24679
|
-
|
|
24680
|
-
|
|
24679
|
+
case String(seamlyActions.ADD_EVENT):
|
|
24680
|
+
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) {
|
|
24681
|
+
dispatch(setLocale(action.event.payload.body.translationLocale));
|
|
24682
|
+
}
|
|
24681
24683
|
|
|
24682
|
-
|
|
24684
|
+
break;
|
|
24683
24685
|
|
|
24684
|
-
|
|
24685
|
-
|
|
24686
|
-
|
|
24687
|
-
|
|
24688
|
-
|
|
24686
|
+
case String(disable):
|
|
24687
|
+
const initialLocale = selectInitialLocale(getState());
|
|
24688
|
+
dispatch(setLocale(initialLocale));
|
|
24689
|
+
break;
|
|
24690
|
+
}
|
|
24689
24691
|
|
|
24690
|
-
|
|
24692
|
+
return result;
|
|
24693
|
+
};
|
|
24691
24694
|
};
|
|
24692
24695
|
}
|
|
24693
24696
|
;// CONCATENATED MODULE: ./src/javascripts/domains/translations/reducer.js
|
|
@@ -33406,12 +33409,11 @@ var Socket = class {
|
|
|
33406
33409
|
onConnClose(event) {
|
|
33407
33410
|
var _context26;
|
|
33408
33411
|
|
|
33409
|
-
let closeCode = event && event.code;
|
|
33410
33412
|
if (this.hasLogger()) this.log("transport", "close", event);
|
|
33411
33413
|
this.triggerChanError();
|
|
33412
33414
|
clearTimeout(this.heartbeatTimer);
|
|
33413
33415
|
|
|
33414
|
-
if (!this.closeWasClean
|
|
33416
|
+
if (!this.closeWasClean) {
|
|
33415
33417
|
this.reconnectTimer.scheduleTimeout();
|
|
33416
33418
|
}
|
|
33417
33419
|
|
|
@@ -34529,7 +34531,7 @@ function store_createStore({
|
|
|
34529
34531
|
api
|
|
34530
34532
|
}), options_middleware_createMiddleware({
|
|
34531
34533
|
api
|
|
34532
|
-
}), translations_middleware_createMiddleware
|
|
34534
|
+
}), translations_middleware_createMiddleware]
|
|
34533
34535
|
});
|
|
34534
34536
|
return store;
|
|
34535
34537
|
}
|