@evlop/commons 1.0.236 → 1.0.238

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. package/dist/src/actions/restApi.js +8 -1
  2. package/dist/src/actions/restApi.js.map +1 -1
  3. package/dist/src/adapters/getUserToken/index.js +7 -18
  4. package/dist/src/adapters/getUserToken/index.js.map +1 -1
  5. package/dist/src/adapters/getUserToken/index.native.js +9 -20
  6. package/dist/src/adapters/getUserToken/index.native.js.map +1 -1
  7. package/dist/src/classes/Model.js +5 -14
  8. package/dist/src/classes/Model.js.map +1 -1
  9. package/dist/src/components/hoc/withSettings.js +1 -12
  10. package/dist/src/components/hoc/withSettings.js.map +1 -1
  11. package/dist/src/components/hoc/withSettings.native.js +2 -13
  12. package/dist/src/components/hoc/withSettings.native.js.map +1 -1
  13. package/dist/src/constants/iconInfo/index.js +4 -5
  14. package/dist/src/constants/iconInfo/index.js.map +1 -1
  15. package/dist/src/constants/iconInfo/reactNativeVectorIcons.js +1 -1
  16. package/dist/src/constants/iconInfo/reactNativeVectorIcons.js.map +1 -1
  17. package/dist/src/contexts/EDLContext.d.ts +7 -0
  18. package/dist/src/contexts/EDLContext.d.ts.map +1 -0
  19. package/dist/src/contexts/EDLContext.js +10 -0
  20. package/dist/src/contexts/EDLContext.js.map +1 -0
  21. package/dist/src/data-sources/collection.js +3 -12
  22. package/dist/src/data-sources/collection.js.map +1 -1
  23. package/dist/src/data-sources/collectionRecord.js +3 -12
  24. package/dist/src/data-sources/collectionRecord.js.map +1 -1
  25. package/dist/src/data-sources/listUrl.js +3 -12
  26. package/dist/src/data-sources/listUrl.js.map +1 -1
  27. package/dist/src/data-sources/url.js +3 -12
  28. package/dist/src/data-sources/url.js.map +1 -1
  29. package/dist/src/edl/BlockRenderer.d.ts +9 -0
  30. package/dist/src/edl/BlockRenderer.d.ts.map +1 -0
  31. package/dist/src/edl/BlockRenderer.js +102 -0
  32. package/dist/src/edl/BlockRenderer.js.map +1 -0
  33. package/dist/src/edl/DataSourceLoader.d.ts +7 -0
  34. package/dist/src/edl/DataSourceLoader.d.ts.map +1 -0
  35. package/dist/src/edl/DataSourceLoader.js +13 -0
  36. package/dist/src/edl/DataSourceLoader.js.map +1 -0
  37. package/dist/src/edl/elements/DataSource.d.ts +8 -0
  38. package/dist/src/edl/elements/DataSource.d.ts.map +1 -0
  39. package/dist/src/edl/elements/DataSource.js +19 -0
  40. package/dist/src/edl/elements/DataSource.js.map +1 -0
  41. package/dist/src/edl/elements/Fragment.d.ts +9 -0
  42. package/dist/src/edl/elements/Fragment.d.ts.map +1 -0
  43. package/dist/src/edl/elements/Fragment.js +14 -0
  44. package/dist/src/edl/elements/Fragment.js.map +1 -0
  45. package/dist/src/edl/elements/UseEffect.d.ts +10 -0
  46. package/dist/src/edl/elements/UseEffect.d.ts.map +1 -0
  47. package/dist/src/edl/elements/UseEffect.js +28 -0
  48. package/dist/src/edl/elements/UseEffect.js.map +1 -0
  49. package/dist/src/edl/elements/index.d.ts +17 -0
  50. package/dist/src/edl/elements/index.d.ts.map +1 -0
  51. package/dist/src/edl/elements/index.js +16 -0
  52. package/dist/src/edl/elements/index.js.map +1 -0
  53. package/dist/src/edl/index.d.ts +28 -0
  54. package/dist/src/edl/index.d.ts.map +1 -0
  55. package/dist/src/edl/index.js +107 -0
  56. package/dist/src/edl/index.js.map +1 -0
  57. package/dist/src/edl/localStorage.app.d.ts +6 -0
  58. package/dist/src/edl/localStorage.app.d.ts.map +1 -0
  59. package/dist/src/edl/localStorage.app.js +14 -0
  60. package/dist/src/edl/localStorage.app.js.map +1 -0
  61. package/dist/src/edl/localStorage.d.ts +6 -0
  62. package/dist/src/edl/localStorage.d.ts.map +1 -0
  63. package/dist/src/edl/localStorage.js +10 -0
  64. package/dist/src/edl/localStorage.js.map +1 -0
  65. package/dist/src/edl/parser.d.ts +3 -0
  66. package/dist/src/edl/parser.d.ts.map +1 -0
  67. package/dist/src/edl/parser.js +166 -0
  68. package/dist/src/edl/parser.js.map +1 -0
  69. package/dist/src/helpers/functions.js +1 -1
  70. package/dist/src/helpers/functions.js.map +1 -1
  71. package/dist/src/helpers/handlebarHelpers.js +1 -1
  72. package/dist/src/helpers/handlebarHelpers.js.map +1 -1
  73. package/dist/src/helpers/handlebarHelpers.test.d.ts.map +1 -1
  74. package/dist/src/helpers/handlebarHelpers.test.js +1 -1
  75. package/dist/src/helpers/handlebarHelpers.test.js.map +1 -1
  76. package/dist/src/helpers/iconHelper.js +7 -13
  77. package/dist/src/helpers/iconHelper.js.map +1 -1
  78. package/dist/src/helpers/pathHelper.js +1 -1
  79. package/dist/src/helpers/pathHelper.js.map +1 -1
  80. package/dist/src/helpers/themeHelpers.js +23 -3
  81. package/dist/src/helpers/themeHelpers.js.map +1 -1
  82. package/dist/src/hooks/useAction.js +3 -12
  83. package/dist/src/hooks/useAction.js.map +1 -1
  84. package/dist/src/hooks/useActionable.d.ts +1 -0
  85. package/dist/src/hooks/useActionable.d.ts.map +1 -1
  86. package/dist/src/hooks/useActionable.js +3 -1
  87. package/dist/src/hooks/useActionable.js.map +1 -1
  88. package/dist/src/hooks/useComponentConfigProps.js +1 -1
  89. package/dist/src/hooks/useComponentConfigProps.js.map +1 -1
  90. package/dist/src/hooks/useDataSource.js +1 -1
  91. package/dist/src/hooks/useDataSource.js.map +1 -1
  92. package/dist/src/hooks/useNavigator.js +1 -1
  93. package/dist/src/hooks/useNavigator.js.map +1 -1
  94. package/dist/src/hooks/useParams.js +1 -1
  95. package/dist/src/hooks/useParams.js.map +1 -1
  96. package/dist/src/hooks/useTranslation.js +2 -5
  97. package/dist/src/hooks/useTranslation.js.map +1 -1
  98. package/dist/src/middlewares/dataSourceMiddleware.js +11 -22
  99. package/dist/src/middlewares/dataSourceMiddleware.js.map +1 -1
  100. package/dist/src/middlewares/restApiMiddleware.js +5 -5
  101. package/dist/src/middlewares/restApiMiddleware.js.map +1 -1
  102. package/dist/src/providers/I18nProvider.js +11 -14
  103. package/dist/src/providers/I18nProvider.js.map +1 -1
  104. package/dist/src/providers/Scope.js +4 -1
  105. package/dist/src/providers/Scope.js.map +1 -1
  106. package/dist/src/reducers/adminMenus.js +1 -1
  107. package/dist/src/reducers/adminMenus.js.map +1 -1
  108. package/dist/src/reducers/collection.js +66 -15
  109. package/dist/src/reducers/collection.js.map +1 -1
  110. package/dist/src/reducers/components.js +28 -7
  111. package/dist/src/reducers/components.js.map +1 -1
  112. package/dist/src/reducers/config/index.js +16 -4
  113. package/dist/src/reducers/config/index.js.map +1 -1
  114. package/dist/src/reducers/context.js +5 -16
  115. package/dist/src/reducers/context.js.map +1 -1
  116. package/dist/src/reducers/dataSource.js +14 -2
  117. package/dist/src/reducers/dataSource.js.map +1 -1
  118. package/dist/src/reducers/files.js +18 -4
  119. package/dist/src/reducers/files.js.map +1 -1
  120. package/dist/src/reducers/fonts.js +15 -6
  121. package/dist/src/reducers/fonts.js.map +1 -1
  122. package/dist/src/reducers/icons.js +3 -12
  123. package/dist/src/reducers/icons.js.map +1 -1
  124. package/dist/src/reducers/modals.js +1 -1
  125. package/dist/src/reducers/modals.js.map +1 -1
  126. package/dist/src/reducers/pages/index.js +69 -27
  127. package/dist/src/reducers/pages/index.js.map +1 -1
  128. package/dist/src/reducers/routes.js +19 -21
  129. package/dist/src/reducers/routes.js.map +1 -1
  130. package/dist/src/reducers/search.js +4 -1
  131. package/dist/src/reducers/search.js.map +1 -1
  132. package/dist/src/reducers/session.js +21 -4
  133. package/dist/src/reducers/session.js.map +1 -1
  134. package/dist/src/reducers/user.js +12 -2
  135. package/dist/src/reducers/user.js.map +1 -1
  136. package/dist/src/services/SessionManager.js +4 -1
  137. package/dist/src/services/SessionManager.js.map +1 -1
  138. package/package.json +1 -1
@@ -1,16 +1,13 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.useTranslation = void 0;
7
4
  const react_1 = require("react");
8
- const i18ninstance_1 = __importDefault(require("../constants/i18ninstance"));
9
5
  const useScope_1 = require("./useScope");
6
+ const helpers_1 = require("../helpers");
10
7
  const useTranslation = () => {
11
8
  const i18n = useScope_1.useScope('i18n');
12
9
  const translate = react_1.useCallback((key, options) => {
13
- return i18ninstance_1.default.t(key, options);
10
+ return helpers_1.i18nInstance.t(key, options);
14
11
  }, [i18n]);
15
12
  return translate;
16
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useTranslation.js","sourceRoot":"","sources":["../../../src/hooks/useTranslation.tsx"],"names":[],"mappings":";;;;;;AACA,iCAAoC;AACpC,6EAAqD;AACrD,yCAAsC;AAE/B,MAAM,cAAc,GAAG,GAAE,EAAE;IAC9B,MAAM,IAAI,GAAG,mBAAQ,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,SAAS,GAAc,mBAAW,CAAC,CAAC,GAAQ,EAAE,OAAa,EAAC,EAAE;QAChE,OAAO,sBAAY,CAAC,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IACvC,CAAC,EAAG,CAAC,IAAI,CAAC,CAAC,CAAA;IAEX,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AAPW,QAAA,cAAc,kBAOzB;AAEF,kBAAe,sBAAc,CAAC"}
1
+ {"version":3,"file":"useTranslation.js","sourceRoot":"","sources":["../../../src/hooks/useTranslation.tsx"],"names":[],"mappings":";;;AACA,iCAAoC;AACpC,yCAAsC;AACtC,wCAA0C;AAEnC,MAAM,cAAc,GAAG,GAAE,EAAE;IAC9B,MAAM,IAAI,GAAG,mBAAQ,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,SAAS,GAAc,mBAAW,CAAC,CAAC,GAAQ,EAAE,OAAa,EAAC,EAAE;QAChE,OAAO,sBAAY,CAAC,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IACvC,CAAC,EAAG,CAAC,IAAI,CAAC,CAAC,CAAA;IAEX,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AAPW,QAAA,cAAc,kBAOzB;AAEF,kBAAe,sBAAc,CAAC"}
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.dataSourceMiddleware = void 0;
13
4
  const lodash_1 = require("lodash");
@@ -23,13 +14,11 @@ function getCurrentState(store, key) {
23
14
  return state.dataSource.data[key];
24
15
  }
25
16
  // load data using the data loader from data source
26
- function fetchData(dataSource, options, { scope, store, state }) {
27
- return __awaiter(this, void 0, void 0, function* () {
28
- if (!dataSource)
29
- return null;
30
- const data = yield dataSource(options, { scope, dispatch: store.dispatch, state });
31
- return data;
32
- });
17
+ async function fetchData(dataSource, options, { scope, store, state }) {
18
+ if (!dataSource)
19
+ return null;
20
+ const data = await dataSource(options, { scope, dispatch: store.dispatch, state });
21
+ return data;
33
22
  }
34
23
  ;
35
24
  // convert the raw response returned into the state
@@ -54,7 +43,7 @@ function arrayDataToState(options, fetchDataResponse) {
54
43
  meta: meta || {},
55
44
  };
56
45
  }
57
- const dataSourceMiddleware = store => next => (action) => __awaiter(void 0, void 0, void 0, function* () {
46
+ const dataSourceMiddleware = store => next => async (action) => {
58
47
  switch (action.type) {
59
48
  case reducers_1.DATA_SOURCE_LOAD_DATA: {
60
49
  const { datasourceName, options, scope, key } = action;
@@ -64,7 +53,7 @@ const dataSourceMiddleware = store => next => (action) => __awaiter(void 0, void
64
53
  return null;
65
54
  const requestOptions = lodash_1.defaults({}, options, { page: 1, pageSize: 20 });
66
55
  next({ type: reducers_1.DATA_SOURCE_UPDATE_DATA, key, data: lodash_1.assign({}, currentState, { isLoading: true, isRefreshing: true }) });
67
- const data = yield fetchData(dataSource, requestOptions, { scope, store, state: currentState });
56
+ const data = await fetchData(dataSource, requestOptions, { scope, store, state: currentState });
68
57
  let newState = data;
69
58
  if (lodash_1.get(dataSource, 'type') === 'Array') {
70
59
  newState = arrayDataToState(options, data);
@@ -83,7 +72,7 @@ const dataSourceMiddleware = store => next => (action) => __awaiter(void 0, void
83
72
  return null;
84
73
  const requestOptions = lodash_1.defaults({ page: lodash_1.get(currentState, 'page', 0) + 1 }, options, lodash_1.get(currentState, 'options'));
85
74
  next({ type: reducers_1.DATA_SOURCE_UPDATE_DATA, key, data: lodash_1.assign({}, currentState, { isLoading: true, isRefreshing: false }) });
86
- const data = yield fetchData(dataSource, requestOptions, { scope, store, state: currentState });
75
+ const data = await fetchData(dataSource, requestOptions, { scope, store, state: currentState });
87
76
  const newItems = lodash_1.union(lodash_1.get(currentState, 'items'), lodash_1.get(data, 'items'));
88
77
  const newState = arrayDataToState(requestOptions, lodash_1.assign({}, data, { items: newItems }));
89
78
  return next({
@@ -100,7 +89,7 @@ const dataSourceMiddleware = store => next => (action) => __awaiter(void 0, void
100
89
  return null;
101
90
  const requestOptions = lodash_1.defaults({ page: lodash_1.get(currentState, 'page', 0) + 1 }, options, { pageSize: 20 });
102
91
  next({ type: reducers_1.DATA_SOURCE_UPDATE_DATA, key, data: lodash_1.assign({}, currentState, { isLoading: true, isRefreshing: false }) });
103
- const data = yield fetchData(dataSource, requestOptions, { scope, store, state: currentState });
92
+ const data = await fetchData(dataSource, requestOptions, { scope, store, state: currentState });
104
93
  let newState = data;
105
94
  if (lodash_1.get(dataSource, 'type') === 'Array') {
106
95
  newState = arrayDataToState(options, data);
@@ -119,7 +108,7 @@ const dataSourceMiddleware = store => next => (action) => __awaiter(void 0, void
119
108
  return null;
120
109
  const requestOptions = lodash_1.defaults({ page: Math.max(1, lodash_1.get(currentState, 'page', 1) - 1) }, options, { pageSize: 20 });
121
110
  next({ type: reducers_1.DATA_SOURCE_UPDATE_DATA, key, data: lodash_1.assign({}, currentState, { isLoading: true, isRefreshing: false }) });
122
- const data = yield fetchData(dataSource, requestOptions, { scope, store, state: currentState });
111
+ const data = await fetchData(dataSource, requestOptions, { scope, store, state: currentState });
123
112
  let newState = data;
124
113
  if (lodash_1.get(dataSource, 'type') === 'Array') {
125
114
  newState = arrayDataToState(options, data);
@@ -132,7 +121,7 @@ const dataSourceMiddleware = store => next => (action) => __awaiter(void 0, void
132
121
  }
133
122
  }
134
123
  return next(action);
135
- });
124
+ };
136
125
  exports.dataSourceMiddleware = dataSourceMiddleware;
137
126
  exports.default = exports.dataSourceMiddleware;
138
127
  //# sourceMappingURL=dataSourceMiddleware.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataSourceMiddleware.js","sourceRoot":"","sources":["../../../src/middlewares/dataSourceMiddleware.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA+D;AAC/D,4CAA0C;AAC1C,0CAA4L;AAE5L,SAAS,aAAa,CAAC,KAAK,EAAE,cAAc;IACxC,MAAM,EAAC,UAAU,EAAE,EAAC,WAAW,EAAE,IAAI,EAAE,aAAa,EAAC,EAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC1E,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC;AACvC,CAAC;AAED,4DAA4D;AAC5D,SAAS,eAAe,CAAC,KAAK,EAAE,GAAG;IAC/B,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC/B,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtC,CAAC;AAED,mDAAmD;AACnD,SAAe,SAAS,CAAE,UAAU,EAAE,OAAO,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC;;QAChE,IAAG,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC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,EAAE,GAAG,CAAC,CAAC;YACjD,MAAM,UAAU,GAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;YACrE,IAAG,CAAC,sBAAU;gBAAE,OAAO,IAAI,CAAC;YAC5B,MAAM,cAAc,GAAG,iBAAQ,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAG,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAC,EAAE,OAAO,EAAE,EAAC,QAAQ,EAAE,EAAE,EAAC,CAAC,CAAC;YAEhH,IAAI,CAAC,EAAC,IAAI,EAAE,kCAAuB,EAAC,GAAG,EAAE,IAAI,EAAE,eAAM,CAAC,EAAE,EAAE,YAAY,EAAE,EAAC,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAC,CAAC,EAAC,CAAC,CAAC;YAElH,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,UAAU,EAAE,cAAc,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAC,CAAC,CAAC;YAC9F,IAAI,QAAQ,GAAG,IAAI,CAAC;YACpB,IAAG,YAAG,CAAC,UAAU,EAAE,MAAM,CAAC,KAAK,OAAO,EAAC;gBACnC,QAAQ,GAAG,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;aAC9C;YACD,OAAO,IAAI,CAAC;gBACR,IAAI,EAAE,kCAAuB;gBAC7B,GAAG;gBACH,IAAI,EAAE,QAAQ;aACjB,CAAC,CAAC;SACN;KACJ;IACD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC,CAAC;AAlFW,QAAA,oBAAoB,wBAkF/B;AAEF,kBAAe,4BAAoB,CAAC"}
@@ -35,33 +35,33 @@ const restApiMiddleware = (store) => {
35
35
  dispatch({ type: action.types[0] });
36
36
  return axiosClient_1.default.post(endpoint, action.data, lodash_1.defaultsDeep(requestOptions, { params: action.params, headers: action.headers }))
37
37
  .then(resp => (resp.data))
38
- .then(response => dispatch(Object.assign(Object.assign({}, action), { success: true, type: action.types[1], response })))
38
+ .then(response => dispatch({ ...action, success: true, type: action.types[1], response }))
39
39
  .catch(({ response }) => dispatch({ type: action.types[2], error: true, response }));
40
40
  }
41
41
  case actions_1.PUT:
42
42
  dispatch({ type: action.types[0] });
43
43
  return axiosClient_1.default.put(endpoint, action.data, lodash_1.defaultsDeep(requestOptions, { params: action.params, headers: action.headers }))
44
44
  .then(resp => (resp.data))
45
- .then(response => dispatch(Object.assign(Object.assign({}, action), { success: true, type: action.types[1], response })))
45
+ .then(response => dispatch({ ...action, success: true, type: action.types[1], response }))
46
46
  .catch(({ response }) => dispatch({ type: action.types[2], error: true, response }));
47
47
  case actions_1.PATCH:
48
48
  dispatch({ type: action.types[0] });
49
49
  return axiosClient_1.default.patch(endpoint, action.data, lodash_1.defaultsDeep(requestOptions, { params: action.params, headers: action.headers }))
50
50
  .then(resp => (resp.data))
51
- .then(response => dispatch(Object.assign(Object.assign({}, action), { success: true, type: action.types[1], response })))
51
+ .then(response => dispatch({ ...action, success: true, type: action.types[1], response }))
52
52
  .catch(({ response }) => dispatch({ type: action.types[2], error: true, response }));
53
53
  case actions_1.DELETE:
54
54
  dispatch({ type: action.types[0] });
55
55
  return axiosClient_1.default.delete(endpoint, lodash_1.defaultsDeep(requestOptions, { params: action.params, headers: action.headers }))
56
56
  .then(resp => (resp.data))
57
- .then(response => dispatch(Object.assign(Object.assign({}, action), { success: true, type: action.types[1], response })))
57
+ .then(response => dispatch({ ...action, success: true, type: action.types[1], response }))
58
58
  .catch(({ response }) => dispatch({ type: action.types[2], error: true, response }));
59
59
  default:
60
60
  case actions_1.GET:
61
61
  dispatch({ type: action.types[0] });
62
62
  return axiosClient_1.default.get(endpoint, lodash_1.defaultsDeep(requestOptions, { params: action.data }, { params: action.params, headers: action.headers }))
63
63
  .then(resp => resp.data)
64
- .then(response => dispatch(Object.assign(Object.assign({}, action), { success: true, type: action.types[1], response })))
64
+ .then(response => dispatch({ ...action, success: true, type: action.types[1], response }))
65
65
  .catch(({ response }) => dispatch({ type: action.types[2], error: true, response }));
66
66
  }
67
67
  });
@@ -1 +1 @@
1
- {"version":3,"file":"restApiMiddleware.js","sourceRoot":"","sources":["../../../src/middlewares/restApiMiddleware.tsx"],"names":[],"mappings":";;;;;;AAAA,mCAA2C;AAC3C,wCAA6E;AAC7E,4EAAoD;AACpD,wCAA2C;AAC3C,yEAAgD;AAEzC,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAC,EAAE;IACtC,OAAO,CAAC,QAAiB,EAAC,EAAE,CAAA,CAAC,MAAU,EAAC,EAAE;QAC1C,IAAG,MAAM,CAAC,aAAa,EAAC;YACpB,OAAO,sBAAY,EAAE,CAAC,IAAI,CAAC,CAAC,KAAa,EAAE,EAAE;gBACzC,MAAM,cAAc,GAAG,EAAE,CAAC;gBAC1B,IAAG,KAAK,EAAC;oBACL,YAAG,CAAC,cAAc,EAAE,CAAC,SAAS,EAAE,eAAe,CAAC,EAAE,UAAU,KAAK,EAAE,CAAC,CAAA;iBACvE;gBACD,IAAI,QAAQ,GAAU,MAAM,CAAC,QAAQ,CAAC;gBACtC,MAAM,UAAU,GAAG,uBAAa,CAAC,QAAQ,CAAC,CAAC;gBAC3C,IAAG,CAAC,UAAU,EAAC;oBACX,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,CAAA;iBAC/C;gBACD,IAAG,MAAM,CAAC,UAAU,EAAC;oBACjB,0BAA0B;oBAC1B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;oBAC9B,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,GAAW,EAAE,SAAS,EAAC,EAAE;wBAChE,MAAM,IAAI,GAAG,IAAI,MAAM,CAAC,IAAI,SAAS,EAAE,EAAE,GAAG,CAAC,CAAA;wBAC7C,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AG;wBACJ,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC;wBAClC,OAAO,qBAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,qBAAY,CAAC,cAAc,EAAE,EAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAC,EAAE,EAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAC,CAAC,CAAC;6BACjI,IAAI,CAAC,IAAI,CAAA,EAAE,CAAA,IAAI,CAAC,IAAI,CAAC;6BACrB,IAAI,CAAC,QAAQ,CAAA,EAAE,CAAC,QAAQ,CAAC,EAAC,GAAG,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAC,CAAC,CAAC;6BACtF,KAAK,CAAC,CAAC,EAAC,QAAQ,EAAC,EAAC,EAAE,CAAA,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC,CAAC,CAAC;iBACzF;YACL,CAAC,CAAC,CAAC;SACN;aACG;YACA,IAAG,MAAM,CAAC,IAAI,KAAK,0BAAgB,EAAC;gBAChC,qBAAU,CAAC,QAAQ,CAAC,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC;aAC5C;YACD,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC;SAC3B;IAEL,CAAC,CAAA;AAAA,CAAC,CAAC;AAjEU,QAAA,iBAAiB,qBAiE3B;AAEH,kBAAe,yBAAiB,CAAC"}
@@ -18,18 +18,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
18
18
  __setModuleDefault(result, mod);
19
19
  return result;
20
20
  };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
21
  Object.defineProperty(exports, "__esModule", { value: true });
25
22
  exports.I18nProvider = void 0;
26
23
  const lodash_1 = require("lodash");
27
24
  const react_1 = __importStar(require("react"));
28
25
  const react_redux_1 = require("react-redux");
29
- const i18ninstance_1 = __importDefault(require("../constants/i18ninstance"));
30
26
  const useConfig_1 = require("../hooks/useConfig");
31
27
  const reducers_1 = require("../reducers");
32
28
  const Scope_1 = require("./Scope");
29
+ const helpers_1 = require("../helpers");
33
30
  const I18nProvider = ({ children }) => {
34
31
  const dispatch = react_redux_1.useDispatch();
35
32
  const i18nResources = useConfig_1.useConfig('i18n');
@@ -37,32 +34,32 @@ const I18nProvider = ({ children }) => {
37
34
  const language = react_redux_1.useSelector(s => s.session.data.language);
38
35
  const setLanguage = react_1.useCallback((lng) => dispatch(reducers_1.setSessionValue('language', lng)), [dispatch]);
39
36
  react_1.useEffect(() => {
40
- if (language === i18ninstance_1.default.language)
37
+ if (language === helpers_1.i18nInstance.language)
41
38
  return;
42
39
  if (language) {
43
- i18ninstance_1.default.changeLanguage(language);
40
+ helpers_1.i18nInstance.changeLanguage(language);
44
41
  }
45
42
  else {
46
- setLanguage(i18ninstance_1.default.language);
43
+ setLanguage(helpers_1.i18nInstance.language);
47
44
  }
48
45
  }, [language]);
49
46
  react_1.useEffect(() => {
50
47
  const languageChangeHandeller = (lng) => setLanguage(lng);
51
- i18ninstance_1.default.on("languageChanged", languageChangeHandeller);
52
- return () => i18ninstance_1.default.off("languageChanged", languageChangeHandeller);
48
+ helpers_1.i18nInstance.on("languageChanged", languageChangeHandeller);
49
+ return () => helpers_1.i18nInstance.off("languageChanged", languageChangeHandeller);
53
50
  }, [setLanguage]);
54
51
  const updatei18nResourceVersion = react_1.useCallback(lodash_1.debounce(() => setVersion(Date.now()), 250), []);
55
52
  react_1.useEffect(() => {
56
53
  const resourceChangeHandeller = () => updatei18nResourceVersion();
57
- i18ninstance_1.default.on("added", resourceChangeHandeller);
58
- i18ninstance_1.default.on("removed", resourceChangeHandeller);
54
+ helpers_1.i18nInstance.on("added", resourceChangeHandeller);
55
+ helpers_1.i18nInstance.on("removed", resourceChangeHandeller);
59
56
  return () => {
60
- i18ninstance_1.default.off("added", resourceChangeHandeller);
61
- i18ninstance_1.default.off("removed", resourceChangeHandeller);
57
+ helpers_1.i18nInstance.off("added", resourceChangeHandeller);
58
+ helpers_1.i18nInstance.off("removed", resourceChangeHandeller);
62
59
  };
63
60
  }, [updatei18nResourceVersion]);
64
61
  react_1.useEffect(() => {
65
- lodash_1.forEach(i18nResources, (values, language) => i18ninstance_1.default.addResources(language, 'common', values));
62
+ lodash_1.forEach(i18nResources, (values, language) => helpers_1.i18nInstance.addResources(language, 'common', values));
66
63
  updatei18nResourceVersion();
67
64
  }, [i18nResources, updatei18nResourceVersion]);
68
65
  const i18nScope = react_1.useMemo(() => ({ v: version, language }), [version, language]);
@@ -1 +1 @@
1
- {"version":3,"file":"I18nProvider.js","sourceRoot":"","sources":["../../../src/providers/I18nProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAyC;AACzC,+CAAuE;AACvE,6CAAqD;AACrD,6EAAqD;AACrD,kDAA+C;AAC/C,0CAA8C;AAC9C,mCAAwC;AAMjC,MAAM,YAAY,GAAgC,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;IACtE,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAC/B,MAAM,aAAa,GAAG,qBAAS,CAAC,MAAM,CAAC,CAAC;IAExC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,gBAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAEnD,MAAM,QAAQ,GAAG,yBAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC1D,MAAM,WAAW,GAAG,mBAAW,CAAC,CAAC,GAAW,EAAC,EAAE,CAAA,QAAQ,CAAC,0BAAe,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O,EAAE,uBAAuB,CAAC,CAAA;YAClD,sBAAY,CAAC,GAAG,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAA;QACtD,CAAC,CAAC;IACR,CAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAEhC,iBAAS,CAAC,GAAG,EAAE;QACb,gBAAO,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,CAC1C,sBAAY,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CACtD,CAAC;QACF,yBAAyB,EAAE,CAAC;IAC9B,CAAC,EAAE,CAAC,aAAa,EAAE,yBAAyB,CAAC,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,eAAO,CAAC,GAAE,EAAE,CAAA,CAAC,EAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAC,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE7E,OAAO,CAAC,8BAAC,qBAAa,IAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,SAAS,IAC5C,QAAQ,CACG,CAAC,CAAC;AACtB,CAAC,CAAA;AAjDY,QAAA,YAAY,gBAiDxB;AAED,kBAAe,oBAAY,CAAC"}
@@ -28,7 +28,10 @@ const hooks_1 = require("../hooks");
28
28
  */
29
29
  const Scope = ({ name, value, children }) => {
30
30
  const scope = hooks_1.useScope();
31
- const newScope = react_1.useMemo(() => (Object.assign(Object.assign({}, scope), { [name]: value })), [scope, name, value]);
31
+ const newScope = react_1.useMemo(() => ({
32
+ ...scope,
33
+ [name]: value
34
+ }), [scope, name, value]);
32
35
  return (react_1.default.createElement(contexts_1.DataProvider, { value: newScope }, children));
33
36
  };
34
37
  exports.Scope = Scope;
@@ -1 +1 @@
1
- {"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../../src/providers/Scope.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqC;AACrC,0CAAyC;AACzC,oCAAkC;AAQlC;;GAEG;AACI,MAAM,KAAK,GAAwC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAG,QAAQ,EAAC,EAAE,EAAE;IACnF,MAAM,KAAK,GAAG,gBAAQ,EAAE,CAAC;IAEzB,MAAM,QAAQ,GAAG,eAAO,CAAC,GAAE,EAAE,CAAA,iCAElB,KAAK,KACR,CAAC,IAAI,CAAC,EAAE,KAAK,IAEpB,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAEzB,OAAO,CACH,8BAAC,uBAAY,IAAC,KAAK,EAAE,QAAQ,IACxB,QAAQ,CACE,CAClB,CAAC;AACN,CAAC,CAAC;AAfW,QAAA,KAAK,SAehB;AAEW,QAAA,aAAa,GAAG,aAAK,CAAC;AAEnC,kBAAe,aAAK,CAAC"}
1
+ {"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../../src/providers/Scope.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqC;AACrC,0CAAyC;AACzC,oCAAkC;AAQlC;;GAEG;AACI,MAAM,KAAK,GAAwC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAG,QAAQ,EAAC,EAAE,EAAE;IACnF,MAAM,KAAK,GAAG,gBAAQ,EAAE,CAAC;IAEzB,MAAM,QAAQ,GAAG,eAAO,CAAC,GAAE,EAAE,CAAA,CACzB;QACI,GAAG,KAAK;QACR,CAAC,IAAI,CAAC,EAAE,KAAK;KAChB,CACJ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAEzB,OAAO,CACH,8BAAC,uBAAY,IAAC,KAAK,EAAE,QAAQ,IACxB,QAAQ,CACE,CAClB,CAAC;AACN,CAAC,CAAC;AAfW,QAAA,KAAK,SAehB;AAEW,QAAA,aAAa,GAAG,aAAK,CAAC;AAEnC,kBAAe,aAAK,CAAC"}
@@ -22,7 +22,7 @@ let initialState = [];
22
22
  exports.default = (state = initialState, action) => {
23
23
  switch (action.type) {
24
24
  case exports.ADD_ADMIN_MENU_ITEM: {
25
- return [...state, Object.assign({ id: action.id }, action.data)];
25
+ return [...state, { id: action.id, ...action.data }];
26
26
  }
27
27
  case exports.REMOVE_ADMIN_MENU_ITEM: {
28
28
  return state.filter(item => item.id !== action.id);
@@ -1 +1 @@
1
- {"version":3,"file":"adminMenus.js","sourceRoot":"","sources":["../../../src/reducers/adminMenus.tsx"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,sBAAsB,GAAG,wBAAwB,CAAC;AAE/D,SAAgB,gBAAgB,CAAC,EAAE,EAAE,IAAI;IACrC,OAAO;QACH,IAAI,EAAE,2BAAmB;QACzB,EAAE;QACF,IAAI,EAAE,IAAI;KACb,CAAC;AACN,CAAC;AAND,4CAMC;AAED,SAAgB,mBAAmB,CAAC,EAAE;IAClC,OAAO;QACH,IAAI,EAAE,8BAAsB;QAC5B,EAAE;KACL,CAAC;AACN,CAAC;AALD,kDAKC;AAED,IAAI,YAAY,GAAO,EAAE,CAAC;AAG1B,kBAAe,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,EAAC,EAAE;IAC3C,QAAQ,MAAM,CAAC,IAAI,EAAE;QACjB,KAAK,2BAAmB,CAAC,CAAA;YACrB,OAAO,CAAC,GAAG,KAAK,kBAAG,EAAE,EAAE,MAAM,CAAC,EAAE,IAAK,MAAM,CAAC,IAAI,EAAE,CAAA;SACrD;QACD,KAAK,8BAAsB,CAAC,CAAA;YACxB,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC;SACtD;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
1
+ {"version":3,"file":"adminMenus.js","sourceRoot":"","sources":["../../../src/reducers/adminMenus.tsx"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,sBAAsB,GAAG,wBAAwB,CAAC;AAE/D,SAAgB,gBAAgB,CAAC,EAAE,EAAE,IAAI;IACrC,OAAO;QACH,IAAI,EAAE,2BAAmB;QACzB,EAAE;QACF,IAAI,EAAE,IAAI;KACb,CAAC;AACN,CAAC;AAND,4CAMC;AAED,SAAgB,mBAAmB,CAAC,EAAE;IAClC,OAAO;QACH,IAAI,EAAE,8BAAsB;QAC5B,EAAE;KACL,CAAC;AACN,CAAC;AALD,kDAKC;AAED,IAAI,YAAY,GAAO,EAAE,CAAC;AAG1B,kBAAe,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,EAAC,EAAE;IAC3C,QAAQ,MAAM,CAAC,IAAI,EAAE;QACjB,KAAK,2BAAmB,CAAC,CAAA;YACrB,OAAO,CAAC,GAAG,KAAK,EAAE,EAAC,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,GAAG,MAAM,CAAC,IAAI,EAAC,CAAC,CAAA;SACrD;QACD,KAAK,8BAAsB,CAAC,CAAA;YACxB,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC;SACtD;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
@@ -116,55 +116,106 @@ const initialState = {
116
116
  const collection = (state = initialState, action) => {
117
117
  switch (action.type) {
118
118
  case exports.REGISTER_MODEL:
119
- return Object.assign(Object.assign({}, state), { models: [
119
+ return {
120
+ ...state,
121
+ models: [
120
122
  ...state.models,
121
123
  action.model,
122
- ].filter(m => m) });
124
+ ].filter(m => m)
125
+ };
123
126
  case exports.UNREGISTER_MODEL:
124
- return Object.assign(Object.assign({}, state), { models: state.models.filter(model => model.collectionName !== action.model.collectionName) });
127
+ return {
128
+ ...state,
129
+ models: state.models.filter(model => model.collectionName !== action.model.collectionName)
130
+ };
125
131
  case exports.COLLECTION_LOAD_MORE_STARTED:
126
132
  case exports.COLLECTION_LOAD_PAGE_STARTED: {
127
133
  const { key } = action;
128
134
  const { [key]: previousState = collectionIntitialState } = state;
129
- return Object.assign(Object.assign({}, state), { [key]: Object.assign(Object.assign({}, previousState), { isLoading: true }) });
135
+ return {
136
+ ...state,
137
+ [key]: {
138
+ ...previousState,
139
+ isLoading: true,
140
+ }
141
+ };
130
142
  }
131
143
  case exports.COLLECTION_LOAD_MORE_FAILED:
132
144
  case exports.COLLECTION_LOAD_PAGE_FAILED: {
133
145
  const { key } = action;
134
146
  const { [key]: previousState = collectionIntitialState } = state;
135
- return Object.assign(Object.assign({}, state), { [key]: Object.assign(Object.assign({}, previousState), { isLoading: false }) });
147
+ return {
148
+ ...state,
149
+ [key]: {
150
+ ...previousState,
151
+ isLoading: false,
152
+ }
153
+ };
136
154
  }
137
155
  case exports.COLLECTION_LOAD_PAGE_SUCCESS: {
138
156
  const { key, response } = action;
139
157
  const { [key]: previousState = collectionIntitialState } = state;
140
158
  const { data: items, page, pageSize, totalPages, totalRecords } = response;
141
- const newState = Object.assign(Object.assign({}, previousState), { isLoading: false, items: items, cache: Object.assign(Object.assign(Object.assign(Object.assign({}, previousState.cache), lodash_1.keyBy(items, 'id')), lodash_1.keyBy(items, 'slug')), lodash_1.keyBy(items, '_id')), page: +page, pageSize,
159
+ const newState = {
160
+ ...previousState,
161
+ isLoading: false,
162
+ items: items,
163
+ cache: { ...previousState.cache, ...lodash_1.keyBy(items, 'id'), ...lodash_1.keyBy(items, 'slug'), ...lodash_1.keyBy(items, '_id') },
164
+ page: +page,
165
+ pageSize,
142
166
  totalPages,
143
- totalRecords });
144
- return Object.assign(Object.assign({}, state), { [key]: newState });
167
+ totalRecords,
168
+ };
169
+ return {
170
+ ...state,
171
+ [key]: newState,
172
+ };
145
173
  }
146
174
  case exports.COLLECTION_LOAD_MORE_SUCCESS: {
147
175
  const { key, response } = action;
148
176
  const { [key]: previousState = collectionIntitialState } = state;
149
177
  const { data: items, page, pageSize, totalPages, totalRecords } = response;
150
- const newState = Object.assign(Object.assign({}, previousState), { isLoading: false, items: lodash_1.unionBy(previousState.items, items, 'id'), cache: Object.assign(Object.assign(Object.assign(Object.assign({}, previousState.cache), lodash_1.keyBy(items, 'id')), lodash_1.keyBy(items, 'slug')), lodash_1.keyBy(items, '_id')), page: +page, pageSize,
178
+ const newState = {
179
+ ...previousState,
180
+ isLoading: false,
181
+ items: lodash_1.unionBy(previousState.items, items, 'id'),
182
+ cache: { ...previousState.cache, ...lodash_1.keyBy(items, 'id'), ...lodash_1.keyBy(items, 'slug'), ...lodash_1.keyBy(items, '_id') },
183
+ page: +page,
184
+ pageSize,
151
185
  totalPages,
152
- totalRecords });
153
- return Object.assign(Object.assign({}, state), { [key]: newState });
186
+ totalRecords,
187
+ };
188
+ return {
189
+ ...state,
190
+ [key]: newState,
191
+ };
154
192
  }
155
193
  case exports.COLLECTION_GET_RECORD_SUCCESS: {
156
194
  const { key, response } = action;
157
195
  const { [key]: previousState = collectionIntitialState } = state;
158
196
  const item = response;
159
197
  const items = [item];
160
- const newState = Object.assign(Object.assign({}, previousState), { cache: Object.assign(Object.assign(Object.assign(Object.assign({}, previousState.cache), lodash_1.keyBy(items, 'id')), lodash_1.keyBy(items, 'slug')), lodash_1.keyBy(items, '_id')) });
161
- return Object.assign(Object.assign({}, state), { [key]: newState });
198
+ const newState = {
199
+ ...previousState,
200
+ cache: { ...previousState.cache, ...lodash_1.keyBy(items, 'id'), ...lodash_1.keyBy(items, 'slug'), ...lodash_1.keyBy(items, '_id') },
201
+ };
202
+ return {
203
+ ...state,
204
+ [key]: newState,
205
+ };
162
206
  }
163
207
  case exports.COLLECTION_DELETE_RECORD_SUCCESS: {
164
208
  const { key, pathParams: { id = null } = {} } = action;
165
209
  const { [key]: previousState = collectionIntitialState } = state;
166
- const newState = Object.assign(Object.assign({}, previousState), { items: lodash_1.filter(previousState.items, (item) => item.id !== id), cache: lodash_1.omit(previousState.cache, [id]) });
167
- return Object.assign(Object.assign({}, state), { [key]: newState });
210
+ const newState = {
211
+ ...previousState,
212
+ items: lodash_1.filter(previousState.items, (item) => item.id !== id),
213
+ cache: lodash_1.omit(previousState.cache, [id]),
214
+ };
215
+ return {
216
+ ...state,
217
+ [key]: newState,
218
+ };
168
219
  }
169
220
  default:
170
221
  return state;
@@ -1 +1 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../src/reducers/collection.tsx"],"names":[],"mappings":";;;AAAA,6CAAsD;AACtD,mCAAsD;AACtD,gDAAgE;AAEnD,QAAA,gBAAgB,GAAG,6BAA6B,CAAC;AACjD,QAAA,cAAc,GAAG,2BAA2B,CAAC;AAE7C,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,2BAA2B,GAAG,6BAA6B,CAAC;AAE5D,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,2BAA2B,GAAG,6BAA6B,CAAC;AAE5D,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAE9D,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,+BAA+B,GAAG,iCAAiC,CAAC;AAEpE,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAE9D,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,+BAA+B,GAAG,iCAAiC,CAAC;AAEjF,SAAgB,aAAa,CAAC,KAAK;IAC/B,OAAO;QACH,IAAI,EAAE,sBAA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AC/D,KAAK,EAAE,aAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;aACzC,CAAC;YACF,OAAO;gBACH,GAAG,KAAK;gBACR,CAAC,GAAG,CAAC,EAAE,QAAQ;aAClB,CAAC;SACL;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -97,20 +97,41 @@ const components = (state = initialState, action) => {
97
97
  else {
98
98
  newComponents.push(action.component);
99
99
  }
100
- return Object.assign(Object.assign({}, state), { components: lodash_1.assign(newComponents, lodash_1.keyBy(newComponents, 'uuid')) });
100
+ return {
101
+ ...state,
102
+ components: lodash_1.assign(newComponents, lodash_1.keyBy(newComponents, 'uuid'))
103
+ };
101
104
  }
102
105
  case exports.REGISTER_PAGE_COMPONENT:
103
- return Object.assign(Object.assign({}, state), { pageComponents: [...state.pageComponents, action.component] });
106
+ return {
107
+ ...state,
108
+ pageComponents: [...state.pageComponents, action.component]
109
+ };
104
110
  case exports.REGISTER_FIELD_COMPONENT:
105
- return Object.assign(Object.assign({}, state), { fieldComponents: [...state.fieldComponents, Object.assign({}, action.component)] });
111
+ return {
112
+ ...state,
113
+ fieldComponents: [...state.fieldComponents, { ...action.component }]
114
+ };
106
115
  case exports.REGISTER_STYLE_COMPONENT:
107
- return Object.assign(Object.assign({}, state), { styleComponents: [...state.styleComponents, Object.assign({}, action.component)] });
116
+ return {
117
+ ...state,
118
+ styleComponents: [...state.styleComponents, { ...action.component }]
119
+ };
108
120
  case exports.REMOVE_PACKAGE:
109
- return Object.assign(Object.assign({}, state), { components: state.components.filter(component => component.packageName !== action.packageName) });
121
+ return {
122
+ ...state,
123
+ components: state.components.filter(component => component.packageName !== action.packageName)
124
+ };
110
125
  case exports.ADD_COMPONENT_TO_LIST:
111
- return Object.assign(Object.assign({}, state), { list: [...state.list, action.component] });
126
+ return {
127
+ ...state,
128
+ list: [...state.list, action.component]
129
+ };
112
130
  case exports.ADD_COMPONENT_PLUGIN:
113
- return Object.assign(Object.assign({}, state), { componentPlugins: [...state.componentPlugins, action.plugin] });
131
+ return {
132
+ ...state,
133
+ componentPlugins: [...state.componentPlugins, action.plugin]
134
+ };
114
135
  default:
115
136
  return state;
116
137
  }
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/reducers/components.tsx"],"names":[],"mappings":";;;AAAA,mCAAuC;AAE1B,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,0BAA0B,GAAG,4BAA4B,CAAC;AAC1D,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,uBAAuB,GAAG,yBAAyB,CAAC;AACpD,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAG/C,SAAgB,oBAAoB,CAAC,SAAS;IAC1C,OAAO;QACH,IAAI,EAAE,gCAAwB;QAC9B,SAAS;KACZ,CAAC;AACN,CAAC;AALD,oDAKC;AAED,SAAgB,uBAAuB,CAAC,SAAS;IAC7C,OAAO;QACH,IAAI,EAAE,kCAA0B;QAChC,SAAS;KACZ,CAAC;AACN,CAAC;AALD,0DAKC;AAED,SAAgB,kBAAkB,CAAC,SAAS;IACxC,OAAO;QACH,IAAI,EAAE,6BAAqB;QAC3B,SAAS;KACZ,CAAC;AACN,CAAC;AALD,gDAKC;AAED,SAAgB,kBAAkB,CAAC,MAAM;IACrC,OAAO;QACH,IAAI,EAAE,4BAAoB;QAC1B,MAAM;KACT,CAAC;AACN,CAAC;AALD,gDAKC;AAED,SAAgB,iBAAiB,CAAC,SAAS;IACvC,OAAO;QACH,IAAI,EAAE,0BAAkB;QACxB,SAAS;KACZ,CAAC;AACN,CAAC;AALD,8CAKC;AA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aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aACxC;YACD,uCACO,KAAK,KACR,UAAU,EAAE,eAAM,CAAC,aAAa,EAAE,cAAK,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,IACjE;SACL;QACD,KAAK,+BAAuB;YACxB,uCACO,KAAK,KACR,cAAc,EAAE,CAAC,GAAG,KAAK,CAAC,cAAc,EAAE,MAAM,CAAC,SAAS,CAAC,IAC7D;QAEN,KAAK,gCAAwB;YACzB,uCACO,KAAK,KACR,eAAe,EAAE,CAAC,GAAG,KAAK,CAAC,eAAe,oBAAM,MAAM,CAAC,SAAS,EAAE,IACpE;QACN,KAAK,gCAAwB;YACzB,uCACO,KAAK,KACR,eAAe,EAAE,CAAC,GAAG,KAAK,CAAC,eAAe,oBAAM,MAAM,CAAC,SAAS,EAAE,IACpE;QACN,KAAK,sBAAc;YACf,uCACO,KAAK,KACR,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAA,EAAE,CAAA,SAAS,CAAC,WAAW,KAAG,MAAM,CAAC,WAAW,CAAC,IAC5F;QACN,KAAK,6BAAqB;YACtB,uCACO,KAAK,KACR,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,IACzC;QACN,KAAK,4BAAoB;YACrB,uCACO,KAAK,KACR,gBAAgB,EAAE,CAAC,GAAG,KAAK,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAC9D;QACN;YACI,OAAO,KAAK,CAAC;KACpB;AAEL,CAAC,CAAC;AAtDW,QAAA,UAAU,cAsDrB;AAEF,kBAAe,kBAAU,CAAC"}
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/reducers/components.tsx"],"names":[],"mappings":";;;AAAA,mCAAuC;AAE1B,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,0BAA0B,GAAG,4BAA4B,CAAC;AAC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B,OAAO;gBACH,GAAG,KAAK;gBACR,eAAe,EAAE,CAAC,GAAG,KAAK,CAAC,eAAe,EAAE,EAAC,GAAG,MAAM,CAAC,SAAS,EAAC,CAAC;aACrE,CAAC;QACN,KAAK,gCAAwB;YACzB,OAAO;gBACH,GAAG,KAAK;gBACR,eAAe,EAAE,CAAC,GAAG,KAAK,CAAC,eAAe,EAAE,EAAC,GAAG,MAAM,CAAC,SAAS,EAAC,CAAC;aACrE,CAAC;QACN,KAAK,sBAAc;YACf,OAAM;gBACF,GAAG,KAAK;gBACR,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAA,EAAE,CAAA,SAAS,CAAC,WAAW,KAAG,MAAM,CAAC,WAAW,CAAC;aAC7F,CAAC;QACN,KAAK,6BAAqB;YACtB,OAAO;gBACH,GAAG,KAAK;gBACR,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC;aAC1C,CAAC;QACN,KAAK,4BAAoB;YACrB,OAAO;gBACH,GAAG,KAAK;gBACR,gBAAgB,EAAE,CAAC,GAAG,KAAK,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC;aAC/D,CAAC;QACN;YACI,OAAO,KAAK,CAAC;KACpB;AAEL,CAAC,CAAC;AAtDW,QAAA,UAAU,cAsDrB;AAEF,kBAAe,kBAAU,CAAC"}
@@ -56,20 +56,32 @@ const config = (state = initialState_1.default, action) => {
56
56
  case exports.SAVE_CONFIG_SUCCESS:
57
57
  case exports.GET_CONFIG_SUCCESS: {
58
58
  const { configName, response: configData } = action;
59
- const configDataNewState = Object.assign({}, state.data);
59
+ const configDataNewState = { ...state.data };
60
60
  if (configName) {
61
61
  lodash_1.set(configDataNewState, configName, configData);
62
62
  }
63
63
  else {
64
64
  lodash_1.assign(configDataNewState, configData);
65
65
  }
66
- return Object.assign(Object.assign({}, state), { data: configDataNewState });
66
+ return {
67
+ ...state,
68
+ data: configDataNewState,
69
+ };
67
70
  }
68
71
  case exports.SET_CONFIG:
69
- return Object.assign(Object.assign({}, state), { data: lodash_1.reduce(action.values, (oldState, value, path) => lodash_1.set(oldState, path, value), lodash_1.cloneDeep(state.data)) });
72
+ return {
73
+ ...state,
74
+ data: lodash_1.reduce(action.values, (oldState, value, path) => lodash_1.set(oldState, path, value), lodash_1.cloneDeep(state.data))
75
+ };
70
76
  case exports.ADD_SETTINGS_FIELD: {
71
77
  const { fields: { [action.configName]: fields = [] } } = state;
72
- return Object.assign(Object.assign({}, state), { fields: Object.assign(Object.assign({}, state.fields), { [action.configName]: [...fields, action.field] }) });
78
+ return {
79
+ ...state,
80
+ fields: {
81
+ ...state.fields,
82
+ [action.configName]: [...fields, action.field]
83
+ }
84
+ };
73
85
  }
74
86
  default:
75
87
  return state;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/reducers/config/index.tsx"],"names":[],"mappings":";;;;;;AAAA,qDAAgD;AAChD,mCAAwD;AACxD,kEAAgD;AAEnC,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,YAAY,GAAG,mBAAmB,CAAC;AACnC,QAAA,UAAU,GAAG,YAAY,CAAC;AAE1B,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAE1C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,SAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK;IACtD,OAAO;QACH,IAAI,EAAE,0BAAkB;QACxB,UAAU;QACV,KAAK;KACR,CAAA;AACL,CAAC;AAND,4CAMC;AAEM,MAAM,YAAY,GAAG,GAAE,EAAE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