@plurid/plurid-ui-state-react 0.0.0-0 → 0.0.0-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.
@@ -1,499 +1,389 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
 
5
- var pluridThemes = require('@plurid/plurid-themes');
7
+ var pluridThemes = require("@plurid/plurid-themes");
6
8
 
7
- const SET_HEAD = 'SET_HEAD';
8
- // #endregion module
9
+ const SET_HEAD = "SET_HEAD";
9
10
 
10
- var index = /*#__PURE__*/Object.freeze({
11
+ var index$9 = Object.freeze({
11
12
  __proto__: null,
12
13
  SET_HEAD: SET_HEAD
13
14
  });
14
15
 
15
- // #region imports
16
- // #endregion external
17
- // #endregion imports
18
- // #region module
19
- /**
20
- * Overwrite any property currently set in the `head`,
21
- * including `styles` and `scripts`, if any.
22
- *
23
- * @param payload
24
- */
25
- const setHead = (payload) => {
26
- return {
27
- type: SET_HEAD,
28
- payload,
29
- };
30
- };
31
- const actions = {
32
- setHead,
33
- };
34
- // #endregion exports
35
-
36
- // #endregion external
37
- // #endregion imports
38
- // #region module
39
- const initialState = {
40
- title: '',
41
- description: '',
42
- ogTitle: '',
43
- ogImage: '',
44
- ogURL: '',
45
- ogDescription: '',
46
- canonicalURL: '',
47
- styles: [],
48
- scripts: [],
49
- };
50
- // #endregion exports
51
-
52
- // #endregion external
53
- // #endregion imports
54
- // #region module
55
- const setHead$1 = (state, action) => {
56
- return Object.assign(Object.assign({}, state), action.payload);
57
- };
58
- const resolvers = {
59
- setHead: setHead$1,
60
- };
61
- // #endregion exports
62
-
63
- // #region imports
64
- // #endregion external
65
- // #endregion imports
66
- // #region module
67
- const reducer = (state = initialState, action) => {
68
- switch (action.type) {
69
- case SET_HEAD:
70
- return resolvers.setHead(state, action);
71
- default:
72
- return Object.assign({}, state);
73
- }
74
- };
75
- const metareducer = (initialState) => (state = initialState, action) => reducer(state, action);
76
- // #endregion exports
77
-
78
- // #endregion external
79
- // #endregion imports
80
- // #region module
81
- const getHeadData = (state) => state.head;
82
- const selectors = {
83
- getHeadData,
84
- };
85
- // #endregion exports
86
-
87
- // #region imports
88
- // #endregion exports
89
-
90
- var index$1 = /*#__PURE__*/Object.freeze({
16
+ const setHead$1 = payload => ({
17
+ type: SET_HEAD,
18
+ payload: payload
19
+ });
20
+
21
+ const actions$4 = {
22
+ setHead: setHead$1
23
+ };
24
+
25
+ const initialState$4 = {
26
+ title: "",
27
+ description: "",
28
+ ogTitle: "",
29
+ ogImage: "",
30
+ ogURL: "",
31
+ ogDescription: "",
32
+ canonicalURL: "",
33
+ styles: [],
34
+ scripts: []
35
+ };
36
+
37
+ const setHead = (state, action) => Object.assign(Object.assign({}, state), action.payload);
38
+
39
+ const resolvers$4 = {
40
+ setHead: setHead
41
+ };
42
+
43
+ const reducer$4 = (state = initialState$4, action) => {
44
+ switch (action.type) {
45
+ case SET_HEAD:
46
+ return resolvers$4.setHead(state, action);
47
+
48
+ default:
49
+ return Object.assign({}, state);
50
+ }
51
+ };
52
+
53
+ const metareducer$2 = initialState => (state = initialState, action) => reducer$4(state, action);
54
+
55
+ const getHeadData = state => state.head;
56
+
57
+ const selectors$4 = {
58
+ getHeadData: getHeadData
59
+ };
60
+
61
+ var index$8 = Object.freeze({
91
62
  __proto__: null,
92
- actions: actions,
93
- initialState: initialState,
94
- reducer: reducer,
95
- metareducer: metareducer,
96
- selectors: selectors,
97
- Types: index
63
+ actions: actions$4,
64
+ initialState: initialState$4,
65
+ reducer: reducer$4,
66
+ metareducer: metareducer$2,
67
+ selectors: selectors$4,
68
+ Types: index$9
98
69
  });
99
70
 
100
- const ADD_NOTIFICATION = 'ADD_NOTIFICATION';
101
- const UPDATE_NOTIFICATION = 'UPDATE_NOTIFICATION';
102
- const REMOVE_NOTIFICATION = 'REMOVE_NOTIFICATION';
103
- // #endregion module
71
+ const ADD_NOTIFICATION = "ADD_NOTIFICATION";
104
72
 
105
- var index$2 = /*#__PURE__*/Object.freeze({
73
+ const UPDATE_NOTIFICATION = "UPDATE_NOTIFICATION";
74
+
75
+ const REMOVE_NOTIFICATION = "REMOVE_NOTIFICATION";
76
+
77
+ var index$7 = Object.freeze({
106
78
  __proto__: null,
107
79
  ADD_NOTIFICATION: ADD_NOTIFICATION,
108
80
  UPDATE_NOTIFICATION: UPDATE_NOTIFICATION,
109
81
  REMOVE_NOTIFICATION: REMOVE_NOTIFICATION
110
82
  });
111
83
 
112
- // #region imports
113
- // #endregion external
114
- // #endregion imports
115
- // #region module
116
- const addNotification = (payload) => {
117
- return {
118
- type: ADD_NOTIFICATION,
119
- payload,
120
- };
121
- };
122
- const updateNotification = (payload) => {
123
- return {
124
- type: UPDATE_NOTIFICATION,
125
- payload,
126
- };
127
- };
128
- const removeNotification = (payload) => {
129
- return {
130
- type: REMOVE_NOTIFICATION,
131
- payload,
132
- };
133
- };
134
- const actions$1 = {
135
- addNotification,
136
- updateNotification,
137
- removeNotification,
138
- };
139
- // #endregion exports
140
-
141
- // #endregion external
142
- // #endregion imports
143
- // #region module
144
- const initialState$1 = [];
145
- // #endregion exports
146
-
147
- // #endregion external
148
- // #endregion imports
149
- // #region module
150
- const addNotification$1 = (state, action) => {
151
- const newNotification = Object.assign({}, action.payload);
152
- return [
153
- ...state,
154
- newNotification,
155
- ];
156
- };
157
- const updateNotification$1 = (state, action) => {
158
- const updatedState = state.map(notification => {
159
- if (notification.id === action.payload.id) {
160
- const newNotification = Object.assign({}, action.payload);
161
- return newNotification;
162
- }
163
- return Object.assign({}, notification);
164
- });
165
- return [
166
- ...updatedState,
167
- ];
168
- };
169
- const removeNotification$1 = (state, action) => {
170
- const updatedState = state.filter(notification => notification.id !== action.payload.id);
171
- return [
172
- ...updatedState,
173
- ];
174
- };
175
- const resolvers$1 = {
176
- addNotification: addNotification$1,
177
- updateNotification: updateNotification$1,
178
- removeNotification: removeNotification$1,
179
- };
180
- // #endregion exports
181
-
182
- // #region imports
183
- // #endregion external
184
- // #endregion imports
185
- // #region module
186
- const reducer$1 = (state = initialState$1, action) => {
187
- switch (action.type) {
188
- case ADD_NOTIFICATION:
189
- return resolvers$1.addNotification(state, action);
190
- case UPDATE_NOTIFICATION:
191
- return resolvers$1.updateNotification(state, action);
192
- case REMOVE_NOTIFICATION:
193
- return resolvers$1.removeNotification(state, action);
194
- default:
195
- return [
196
- ...state,
197
- ];
198
- }
199
- };
200
- // #endregion exports
201
-
202
- // #endregion external
203
- // #endregion imports
204
- // #region module
205
- const getAll = (state) => state.notifications;
206
- const selectors$1 = {
207
- getAll,
208
- };
209
- // #endregion exports
210
-
211
- // #region imports
212
- // #endregion exports
213
-
214
- var index$3 = /*#__PURE__*/Object.freeze({
84
+ const addNotification$1 = payload => ({
85
+ type: ADD_NOTIFICATION,
86
+ payload: payload
87
+ });
88
+
89
+ const updateNotification$1 = payload => ({
90
+ type: UPDATE_NOTIFICATION,
91
+ payload: payload
92
+ });
93
+
94
+ const removeNotification$1 = payload => ({
95
+ type: REMOVE_NOTIFICATION,
96
+ payload: payload
97
+ });
98
+
99
+ const actions$3 = {
100
+ addNotification: addNotification$1,
101
+ updateNotification: updateNotification$1,
102
+ removeNotification: removeNotification$1
103
+ };
104
+
105
+ const initialState$3 = [];
106
+
107
+ const addNotification = (state, action) => {
108
+ const newNotification = Object.assign({}, action.payload);
109
+ const existingNotification = state.find((notification => notification.id === newNotification.id));
110
+ if (existingNotification) {
111
+ const newState = state.map((notification => {
112
+ if (notification.id === newNotification.id) {
113
+ return newNotification;
114
+ }
115
+ return notification;
116
+ }));
117
+ return newState;
118
+ }
119
+ return [ ...state, newNotification ];
120
+ };
121
+
122
+ const updateNotification = (state, action) => {
123
+ const updatedState = state.map((notification => {
124
+ if (notification.id === action.payload.id) {
125
+ const newNotification = Object.assign({}, action.payload);
126
+ return newNotification;
127
+ }
128
+ return Object.assign({}, notification);
129
+ }));
130
+ return [ ...updatedState ];
131
+ };
132
+
133
+ const removeNotification = (state, action) => {
134
+ const updatedState = state.filter((notification => notification.id !== action.payload.id));
135
+ return [ ...updatedState ];
136
+ };
137
+
138
+ const resolvers$3 = {
139
+ addNotification: addNotification,
140
+ updateNotification: updateNotification,
141
+ removeNotification: removeNotification
142
+ };
143
+
144
+ const reducer$3 = (state = initialState$3, action) => {
145
+ switch (action.type) {
146
+ case ADD_NOTIFICATION:
147
+ return resolvers$3.addNotification(state, action);
148
+
149
+ case UPDATE_NOTIFICATION:
150
+ return resolvers$3.updateNotification(state, action);
151
+
152
+ case REMOVE_NOTIFICATION:
153
+ return resolvers$3.removeNotification(state, action);
154
+
155
+ default:
156
+ return [ ...state ];
157
+ }
158
+ };
159
+
160
+ const getAll = state => state.notifications;
161
+
162
+ const selectors$3 = {
163
+ getAll: getAll
164
+ };
165
+
166
+ var index$6 = Object.freeze({
215
167
  __proto__: null,
216
- actions: actions$1,
217
- initialState: initialState$1,
218
- reducer: reducer$1,
219
- selectors: selectors$1,
220
- Types: index$2
168
+ actions: actions$3,
169
+ initialState: initialState$3,
170
+ reducer: reducer$3,
171
+ selectors: selectors$3,
172
+ Types: index$7
221
173
  });
222
174
 
223
- // #region module
224
- const TOGGLE_GLOBAL_SHORTCUTS = 'TOGGLE_GLOBAL_SHORTCUTS';
225
- // #endregion module
175
+ const TOGGLE_GLOBAL_SHORTCUTS = "TOGGLE_GLOBAL_SHORTCUTS";
226
176
 
227
- var index$4 = /*#__PURE__*/Object.freeze({
177
+ var index$5 = Object.freeze({
228
178
  __proto__: null,
229
179
  TOGGLE_GLOBAL_SHORTCUTS: TOGGLE_GLOBAL_SHORTCUTS
230
180
  });
231
181
 
232
- // #region imports
233
- // #endregion external
234
- // #endregion imports
235
- // #region module
236
- const toggleGlobalShortcuts = (payload) => {
237
- return {
238
- type: TOGGLE_GLOBAL_SHORTCUTS,
239
- payload,
240
- };
241
- };
242
- const actions$2 = {
243
- toggleGlobalShortcuts,
244
- };
245
- // #endregion exports
246
-
247
- // #endregion external
248
- // #endregion imports
249
- // #region module
250
- const initialState$2 = {
251
- global: true,
252
- };
253
- // #endregion exports
254
-
255
- // #endregion external
256
- // #endregion imports
257
- // #region module
258
- const toggleGlobalShortcuts$1 = (state, action) => {
259
- const global = action.payload
260
- ? action.payload
261
- : !state.global;
262
- return Object.assign(Object.assign({}, state), { global });
263
- };
264
- const resolvers$2 = {
265
- toggleGlobalShortcuts: toggleGlobalShortcuts$1,
266
- };
267
- // #endregion exports
268
-
269
- // #region imports
270
- // #endregion external
271
- // #endregion imports
272
- // #region module
273
- const reducer$2 = (state = initialState$2, action) => {
274
- switch (action.type) {
275
- case TOGGLE_GLOBAL_SHORTCUTS:
276
- return resolvers$2.toggleGlobalShortcuts(state, action);
277
- default:
278
- return Object.assign({}, state);
279
- }
280
- };
281
- // #endregion exports
282
-
283
- // #endregion external
284
- // #endregion imports
285
- // #region module
286
- const getGlobal = (state) => state.shortcuts.global;
287
- const selectors$2 = {
288
- getGlobal,
289
- };
290
- // #endregion exports
291
-
292
- // #region imports
293
- // #endregion exports
294
-
295
- var index$5 = /*#__PURE__*/Object.freeze({
182
+ const toggleGlobalShortcuts$1 = payload => ({
183
+ type: TOGGLE_GLOBAL_SHORTCUTS,
184
+ payload: payload
185
+ });
186
+
187
+ const actions$2 = {
188
+ toggleGlobalShortcuts: toggleGlobalShortcuts$1
189
+ };
190
+
191
+ const initialState$2 = {
192
+ global: true
193
+ };
194
+
195
+ const toggleGlobalShortcuts = (state, action) => {
196
+ const global = action.payload ? action.payload : !state.global;
197
+ return Object.assign(Object.assign({}, state), {
198
+ global: global
199
+ });
200
+ };
201
+
202
+ const resolvers$2 = {
203
+ toggleGlobalShortcuts: toggleGlobalShortcuts
204
+ };
205
+
206
+ const reducer$2 = (state = initialState$2, action) => {
207
+ switch (action.type) {
208
+ case TOGGLE_GLOBAL_SHORTCUTS:
209
+ return resolvers$2.toggleGlobalShortcuts(state, action);
210
+
211
+ default:
212
+ return Object.assign({}, state);
213
+ }
214
+ };
215
+
216
+ const getGlobal = state => state.shortcuts.global;
217
+
218
+ const selectors$2 = {
219
+ getGlobal: getGlobal
220
+ };
221
+
222
+ var index$4 = Object.freeze({
296
223
  __proto__: null,
297
224
  actions: actions$2,
298
225
  initialState: initialState$2,
299
226
  reducer: reducer$2,
300
227
  selectors: selectors$2,
301
- Types: index$4
228
+ Types: index$5
302
229
  });
303
230
 
304
- // #region module
305
- const SET_SITTING_CURRENT_LINK = 'SET_SITTING_CURRENT_LINK';
306
- const TOGGLE_SITTING_TRAY = 'TOGGLE_SITTING_TRAY';
307
- // #endregion module
231
+ const SET_SITTING_CURRENT_LINK = "SET_SITTING_CURRENT_LINK";
232
+
233
+ const TOGGLE_SITTING_TRAY = "TOGGLE_SITTING_TRAY";
308
234
 
309
- var index$6 = /*#__PURE__*/Object.freeze({
235
+ var index$3 = Object.freeze({
310
236
  __proto__: null,
311
237
  SET_SITTING_CURRENT_LINK: SET_SITTING_CURRENT_LINK,
312
238
  TOGGLE_SITTING_TRAY: TOGGLE_SITTING_TRAY
313
239
  });
314
240
 
315
- // #region imports
316
- // #endregion external
317
- // #endregion imports
318
- // #region module
319
- const setSittingCurrentLink = (link) => {
320
- return {
321
- type: SET_SITTING_CURRENT_LINK,
322
- payload: link,
323
- };
324
- };
325
- const toggleSittingTray = () => {
326
- return {
327
- type: TOGGLE_SITTING_TRAY,
328
- };
329
- };
330
- const actions$3 = {
331
- setSittingCurrentLink,
332
- toggleSittingTray,
333
- };
334
- // #endregion exports
335
-
336
- // #endregion external
337
- // #endregion imports
338
- // #region module
339
- const initialState$3 = {
340
- currentLink: '',
341
- tray: false,
342
- };
343
- // #endregion exports
344
-
345
- // #endregion external
346
- // #endregion imports
347
- // #region module
348
- const setSittingCurrentLink$1 = (state, action) => {
349
- const currentLink = action.payload;
350
- return Object.assign(Object.assign({}, state), { currentLink });
351
- };
352
- const toggleSittingTray$1 = (state, action) => {
353
- if (typeof action.payload === 'boolean') {
354
- return Object.assign(Object.assign({}, state), { tray: action.payload });
355
- }
356
- return Object.assign(Object.assign({}, state), { tray: !state.tray });
357
- };
358
- const resolvers$3 = {
359
- setSittingCurrentLink: setSittingCurrentLink$1,
360
- toggleSittingTray: toggleSittingTray$1,
361
- };
362
- // #endregion exports
363
-
364
- // #region imports
365
- // #endregion external
366
- // #endregion imports
367
- // #region module
368
- const reducer$3 = (state = initialState$3, action) => {
369
- switch (action.type) {
370
- case SET_SITTING_CURRENT_LINK:
371
- return resolvers$3.setSittingCurrentLink(state, action);
372
- case TOGGLE_SITTING_TRAY:
373
- return resolvers$3.toggleSittingTray(state, action);
374
- default:
375
- return Object.assign({}, state);
376
- }
377
- };
378
- const metareducer$1 = (initialState) => (state = initialState, action) => reducer$3(state, action);
379
- // #endregion exports
380
-
381
- // #endregion external
382
- // #endregion imports
383
- // #region module
384
- const getCurrentLink = (state) => state.sitting.currentLink;
385
- const getTray = (state) => state.sitting.tray;
386
- const selectors$3 = {
387
- getCurrentLink,
388
- getTray,
389
- };
390
- // #endregion exports
391
-
392
- // #region imports
393
- // #endregion exports
394
-
395
- var index$7 = /*#__PURE__*/Object.freeze({
241
+ const setSittingCurrentLink$1 = link => ({
242
+ type: SET_SITTING_CURRENT_LINK,
243
+ payload: link
244
+ });
245
+
246
+ const toggleSittingTray$1 = () => ({
247
+ type: TOGGLE_SITTING_TRAY
248
+ });
249
+
250
+ const actions$1 = {
251
+ setSittingCurrentLink: setSittingCurrentLink$1,
252
+ toggleSittingTray: toggleSittingTray$1
253
+ };
254
+
255
+ const initialState$1 = {
256
+ currentLink: "",
257
+ tray: false
258
+ };
259
+
260
+ const setSittingCurrentLink = (state, action) => {
261
+ const currentLink = action.payload;
262
+ return Object.assign(Object.assign({}, state), {
263
+ currentLink: currentLink
264
+ });
265
+ };
266
+
267
+ const toggleSittingTray = (state, action) => {
268
+ if (typeof action.payload === "boolean") {
269
+ return Object.assign(Object.assign({}, state), {
270
+ tray: action.payload
271
+ });
272
+ }
273
+ return Object.assign(Object.assign({}, state), {
274
+ tray: !state.tray
275
+ });
276
+ };
277
+
278
+ const resolvers$1 = {
279
+ setSittingCurrentLink: setSittingCurrentLink,
280
+ toggleSittingTray: toggleSittingTray
281
+ };
282
+
283
+ const reducer$1 = (state = initialState$1, action) => {
284
+ switch (action.type) {
285
+ case SET_SITTING_CURRENT_LINK:
286
+ return resolvers$1.setSittingCurrentLink(state, action);
287
+
288
+ case TOGGLE_SITTING_TRAY:
289
+ return resolvers$1.toggleSittingTray(state, action);
290
+
291
+ default:
292
+ return Object.assign({}, state);
293
+ }
294
+ };
295
+
296
+ const metareducer$1 = initialState => (state = initialState, action) => reducer$1(state, action);
297
+
298
+ const getCurrentLink = state => state.sitting.currentLink;
299
+
300
+ const getTray = state => state.sitting.tray;
301
+
302
+ const selectors$1 = {
303
+ getCurrentLink: getCurrentLink,
304
+ getTray: getTray
305
+ };
306
+
307
+ var index$2 = Object.freeze({
396
308
  __proto__: null,
397
- actions: actions$3,
398
- initialState: initialState$3,
399
- reducer: reducer$3,
309
+ actions: actions$1,
310
+ initialState: initialState$1,
311
+ reducer: reducer$1,
400
312
  metareducer: metareducer$1,
401
- selectors: selectors$3,
402
- Types: index$6
313
+ selectors: selectors$1,
314
+ Types: index$3
403
315
  });
404
316
 
405
- // #endregion libraries
406
- // #endregion imports
407
- // #region module
408
- const SET_THEME = 'SET_THEME';
409
- // #endregion module
317
+ const SET_THEME = "SET_THEME";
410
318
 
411
- var index$8 = /*#__PURE__*/Object.freeze({
319
+ var index$1 = Object.freeze({
412
320
  __proto__: null,
413
321
  SET_THEME: SET_THEME
414
322
  });
415
323
 
416
- // #region imports
417
- // #endregion external
418
- // #endregion imports
419
- // #region module
420
- const setTheme = (payload) => {
421
- return {
422
- type: SET_THEME,
423
- payload,
424
- };
425
- };
426
- const actions$4 = {
427
- setTheme,
428
- };
429
- // #endregion exports
430
-
431
- // #region imports
432
- // #endregion external
433
- // #endregion imports
434
- // #region module
435
- const initialState$4 = {
436
- general: Object.assign({}, pluridThemes.plurid),
437
- interaction: Object.assign({}, pluridThemes.plurid),
438
- };
439
- // #endregion exports
440
-
441
- // #endregion external
442
- // #endregion imports
443
- // #region module
444
- const setTheme$1 = (state, action) => {
445
- const { type, theme, } = action.payload;
446
- const newState = Object.assign({}, state);
447
- newState[type] = Object.assign({}, theme);
448
- return newState;
449
- };
450
- const resolvers$4 = {
451
- setTheme: setTheme$1,
452
- };
453
- // #endregion exports
454
-
455
- // #region imports
456
- // #endregion external
457
- // #endregion imports
458
- // #region module
459
- const reducer$4 = (state = initialState$4, action) => {
460
- switch (action.type) {
461
- case SET_THEME:
462
- return resolvers$4.setTheme(state, action);
463
- default:
464
- return Object.assign({}, state);
465
- }
466
- };
467
- const metareducer$2 = (initialState) => (state = initialState, action) => reducer$4(state, action);
468
- // #endregion exports
469
-
470
- // #endregion external
471
- // #endregion imports
472
- // #region module
473
- const getGeneralTheme = (state) => state.themes.general;
474
- const getInteractionTheme = (state) => state.themes.interaction;
475
- const selectors$4 = {
476
- getGeneralTheme,
477
- getInteractionTheme,
478
- };
479
- // #endregion exports
480
-
481
- // #region imports
482
- // #endregion exports
483
-
484
- var index$9 = /*#__PURE__*/Object.freeze({
324
+ const setTheme$1 = payload => ({
325
+ type: SET_THEME,
326
+ payload: payload
327
+ });
328
+
329
+ const actions = {
330
+ setTheme: setTheme$1
331
+ };
332
+
333
+ const initialState = {
334
+ general: Object.assign({}, pluridThemes.plurid),
335
+ interaction: Object.assign({}, pluridThemes.plurid)
336
+ };
337
+
338
+ const setTheme = (state, action) => {
339
+ const {type: type, theme: theme} = action.payload;
340
+ const newState = Object.assign({}, state);
341
+ newState[type] = Object.assign({}, theme);
342
+ return newState;
343
+ };
344
+
345
+ const resolvers = {
346
+ setTheme: setTheme
347
+ };
348
+
349
+ const reducer = (state = initialState, action) => {
350
+ switch (action.type) {
351
+ case SET_THEME:
352
+ return resolvers.setTheme(state, action);
353
+
354
+ default:
355
+ return Object.assign({}, state);
356
+ }
357
+ };
358
+
359
+ const metareducer = initialState => (state = initialState, action) => reducer(state, action);
360
+
361
+ const getGeneralTheme = state => state.themes.general;
362
+
363
+ const getInteractionTheme = state => state.themes.interaction;
364
+
365
+ const selectors = {
366
+ getGeneralTheme: getGeneralTheme,
367
+ getInteractionTheme: getInteractionTheme
368
+ };
369
+
370
+ var index = Object.freeze({
485
371
  __proto__: null,
486
- actions: actions$4,
487
- initialState: initialState$4,
488
- reducer: reducer$4,
489
- metareducer: metareducer$2,
490
- selectors: selectors$4,
491
- Types: index$8
372
+ actions: actions,
373
+ initialState: initialState,
374
+ reducer: reducer,
375
+ metareducer: metareducer,
376
+ selectors: selectors,
377
+ Types: index$1
492
378
  });
493
379
 
494
- exports.head = index$1;
495
- exports.notifications = index$3;
496
- exports.shortcuts = index$5;
497
- exports.sitting = index$7;
498
- exports.themes = index$9;
380
+ exports.head = index$8;
381
+
382
+ exports.notifications = index$6;
383
+
384
+ exports.shortcuts = index$4;
385
+
386
+ exports.sitting = index$2;
387
+
388
+ exports.themes = index;
499
389
  //# sourceMappingURL=index.js.map