@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
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as Actions from './actions'
|
|
2
1
|
import { seamlyActions } from '../../ui/utils/seamly-utils'
|
|
3
2
|
import { Actions as I18nActions, Selectors as I18nSelectors } from '../i18n'
|
|
3
|
+
import * as Actions from './actions'
|
|
4
4
|
|
|
5
|
-
export default function createMiddleware() {
|
|
6
|
-
return (
|
|
7
|
-
(
|
|
8
|
-
(action) => {
|
|
5
|
+
export default function createMiddleware({ dispatch, getState }) {
|
|
6
|
+
return (next) => {
|
|
7
|
+
return (action) => {
|
|
9
8
|
const result = next(action)
|
|
10
9
|
|
|
11
10
|
switch (action.type) {
|
|
12
11
|
case String(seamlyActions.SET_HISTORY):
|
|
13
12
|
if (action.history?.translation?.enabled) {
|
|
14
13
|
dispatch(Actions.enable(action.history.translation.locale))
|
|
14
|
+
dispatch(I18nActions.setLocale(action.history.translation.locale))
|
|
15
15
|
}
|
|
16
16
|
break
|
|
17
17
|
case String(seamlyActions.SET_INITIAL_STATE):
|
|
@@ -40,4 +40,5 @@ export default function createMiddleware() {
|
|
|
40
40
|
}
|
|
41
41
|
return result
|
|
42
42
|
}
|
|
43
|
+
}
|
|
43
44
|
}
|
|
@@ -295,7 +295,8 @@ export const seamlyStateReducer = (state, action) => {
|
|
|
295
295
|
eventType === eventTypes.participant) &&
|
|
296
296
|
!payload.fromClient
|
|
297
297
|
) {
|
|
298
|
-
const
|
|
298
|
+
const entryType = payload?.entry?.type
|
|
299
|
+
|
|
299
300
|
newOptions = {
|
|
300
301
|
...newOptions,
|
|
301
302
|
features: {
|
|
@@ -463,8 +464,7 @@ export const seamlyStateReducer = (state, action) => {
|
|
|
463
464
|
|
|
464
465
|
// Only set uploads if it was initialised by the account config.
|
|
465
466
|
if (newFeaturesHasUpload) {
|
|
466
|
-
const
|
|
467
|
-
const { type: entryType } = lastParticipantEventPayload.entry || {}
|
|
467
|
+
const entryType = lastParticipantEvent?.payload?.entry?.type
|
|
468
468
|
newFeatures = {
|
|
469
469
|
...newFeatures,
|
|
470
470
|
uploads: {
|
package/src/.DS_Store
DELETED
|
Binary file
|