@evlop/commons 1.0.237 → 1.0.238

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) 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/iconHelper.js +7 -13
  72. package/dist/src/helpers/iconHelper.js.map +1 -1
  73. package/dist/src/helpers/pathHelper.js +1 -1
  74. package/dist/src/helpers/pathHelper.js.map +1 -1
  75. package/dist/src/helpers/themeHelpers.js +23 -3
  76. package/dist/src/helpers/themeHelpers.js.map +1 -1
  77. package/dist/src/hooks/useAction.js +3 -12
  78. package/dist/src/hooks/useAction.js.map +1 -1
  79. package/dist/src/hooks/useActionable.d.ts +1 -0
  80. package/dist/src/hooks/useActionable.d.ts.map +1 -1
  81. package/dist/src/hooks/useActionable.js +3 -1
  82. package/dist/src/hooks/useActionable.js.map +1 -1
  83. package/dist/src/hooks/useComponentConfigProps.js +1 -1
  84. package/dist/src/hooks/useComponentConfigProps.js.map +1 -1
  85. package/dist/src/hooks/useDataSource.js +1 -1
  86. package/dist/src/hooks/useDataSource.js.map +1 -1
  87. package/dist/src/hooks/useNavigator.js +1 -1
  88. package/dist/src/hooks/useNavigator.js.map +1 -1
  89. package/dist/src/hooks/useParams.js +1 -1
  90. package/dist/src/hooks/useParams.js.map +1 -1
  91. package/dist/src/middlewares/dataSourceMiddleware.js +11 -22
  92. package/dist/src/middlewares/dataSourceMiddleware.js.map +1 -1
  93. package/dist/src/middlewares/restApiMiddleware.js +5 -5
  94. package/dist/src/middlewares/restApiMiddleware.js.map +1 -1
  95. package/dist/src/providers/Scope.js +4 -1
  96. package/dist/src/providers/Scope.js.map +1 -1
  97. package/dist/src/reducers/adminMenus.js +1 -1
  98. package/dist/src/reducers/adminMenus.js.map +1 -1
  99. package/dist/src/reducers/collection.js +66 -15
  100. package/dist/src/reducers/collection.js.map +1 -1
  101. package/dist/src/reducers/components.js +28 -7
  102. package/dist/src/reducers/components.js.map +1 -1
  103. package/dist/src/reducers/config/index.js +16 -4
  104. package/dist/src/reducers/config/index.js.map +1 -1
  105. package/dist/src/reducers/context.js +5 -16
  106. package/dist/src/reducers/context.js.map +1 -1
  107. package/dist/src/reducers/dataSource.js +14 -2
  108. package/dist/src/reducers/dataSource.js.map +1 -1
  109. package/dist/src/reducers/files.js +18 -4
  110. package/dist/src/reducers/files.js.map +1 -1
  111. package/dist/src/reducers/fonts.js +15 -6
  112. package/dist/src/reducers/fonts.js.map +1 -1
  113. package/dist/src/reducers/icons.js +3 -12
  114. package/dist/src/reducers/icons.js.map +1 -1
  115. package/dist/src/reducers/modals.js +1 -1
  116. package/dist/src/reducers/modals.js.map +1 -1
  117. package/dist/src/reducers/pages/index.js +69 -27
  118. package/dist/src/reducers/pages/index.js.map +1 -1
  119. package/dist/src/reducers/routes.js +19 -21
  120. package/dist/src/reducers/routes.js.map +1 -1
  121. package/dist/src/reducers/search.js +4 -1
  122. package/dist/src/reducers/search.js.map +1 -1
  123. package/dist/src/reducers/session.js +21 -4
  124. package/dist/src/reducers/session.js.map +1 -1
  125. package/dist/src/reducers/user.js +12 -2
  126. package/dist/src/reducers/user.js.map +1 -1
  127. package/dist/src/services/SessionManager.js +4 -1
  128. package/dist/src/services/SessionManager.js.map +1 -1
  129. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/reducers/files.tsx"],"names":[],"mappings":";;;;;;AAAA,qDAAyC;AACzC,kDAA0B;AAEb,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AACxC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AACxC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AAEtD,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAElD,MAAM,YAAY,GAAG,CAAC,IAAI,GAAG,EAAE,EAAE,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AAG,KAAK;gBACR,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,IAAI;gBACZ,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC;aAC9B,CAAC;QACN,KAAK,2BAAmB;YACpB,OAAO;gBACH,GAAG,KAAK;gBACR,KAAK,EAAE,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAC,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC;aAChE,CAAC;QACN,KAAK,2BAAmB;YACpB,OAAO;gBACH,GAAG,KAAK;aACX,CAAC;QACN;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -46,16 +46,22 @@ let initialState = {
46
46
  exports.default = (state = initialState, action) => {
47
47
  switch (action.type) {
48
48
  case exports.REGISTER_WEB_FONTS: {
49
- return Object.assign(Object.assign({}, state), { webFonts: [
49
+ return {
50
+ ...state,
51
+ webFonts: [
50
52
  ...state.webFonts,
51
53
  ...action.fonts
52
- ] });
54
+ ],
55
+ };
53
56
  }
54
57
  case exports.REGISTER_APP_FONTS: {
55
- return Object.assign(Object.assign({}, state), { appFonts: [
58
+ return {
59
+ ...state,
60
+ appFonts: [
56
61
  ...state.appFonts,
57
62
  ...action.fonts
58
- ] });
63
+ ],
64
+ };
59
65
  }
60
66
  case exports.ACTIVATE_FONT: {
61
67
  let fontToActivate = action.font;
@@ -65,10 +71,13 @@ exports.default = (state = initialState, action) => {
65
71
  if (!fontToActivate) {
66
72
  return state;
67
73
  }
68
- return Object.assign(Object.assign({}, state), { activeFonts: [
74
+ return {
75
+ ...state,
76
+ activeFonts: [
69
77
  ...state.activeFonts,
70
78
  fontToActivate
71
- ] });
79
+ ]
80
+ };
72
81
  }
73
82
  default:
74
83
  return state;
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":";;;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3B,mBAAmB,EAAE,KAAK;IAC1B,WAAW,EAAX,qBAAW;IACX,QAAQ,EAAC,EAAE;IACX,QAAQ,EAAC;QACL,GAAG,qBAAW;KACjB;IACD,WAAW,EAAC,EAAE;CACjB,CAAC;AAGF,kBAAe,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,EAAC,EAAE;IAC3C,QAAQ,MAAM,CAAC,IAAI,EAAE;QACjB,KAAK,0BAAkB,CAAC,CAAA;YACpB,OAAO;gBACH,GAAG,KAAK;gBACR,QAAQ,EAAE;oBACN,GAAG,KAAK,CAAC,QAAQ;oBACjB,GAAG,MAAM,CAAC,KAAK;iBAClB;aACJ,CAAA;SACJ;QAED,KAAK,0BAAkB,CAAC,CAAA;YACpB,OAAO;gBACH,GAAG,KAAK;gBACR,QAAQ,EAAE;oBACN,GAAG,KAAK,CAAC,QAAQ;oBACjB,GAAG,MAAM,CAAC,KAAK;iBAClB;aACJ,CAAA;SACJ;QACD,KAAK,qBAAa,CAAC,CAAA;YACf,IAAI,cAAc,GAAiB,MAAM,CAAC,IAAI,CAAC;YAE/C,IAAG,OAAO,cAAc,KAAK,QAAQ,EAAC;gBAClC,cAAc,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,MAAM,KAAK,cAAc,CAAC,CAAA;aACvE;YAED,IAAG,CAAC,cAAc,EAAC;gBACf,OAAO,KAAK,CAAC;aAChB;YAED,OAAM;gBACF,GAAG,KAAK;gBACR,WAAW,EAAC;oBACR,GAAG,KAAK,CAAC,WAAW;oBACpB,cAAc;iBACjB;aACJ,CAAC;SACL;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
@@ -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.fetchIcons = exports.registerIcons = exports.registerIcon = exports.REGISTER_ICONS = exports.REGISTER_ICON = void 0;
13
4
  const lodash_1 = require("lodash");
@@ -29,10 +20,10 @@ function registerIcons(icons) {
29
20
  }
30
21
  exports.registerIcons = registerIcons;
31
22
  function fetchIcons() {
32
- return (dispatch) => __awaiter(this, void 0, void 0, function* () {
33
- const icons = yield helpers_1.getIcons();
23
+ return async (dispatch) => {
24
+ const icons = await helpers_1.getIcons();
34
25
  dispatch(registerIcons(icons));
35
- });
26
+ };
36
27
  }
37
28
  exports.fetchIcons = fetchIcons;
38
29
  let initialState = [];
@@ -1 +1 @@
1
- {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/reducers/icons.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA+C;AAC/C,wCAAsC;AAEzB,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAE/C,SAAgB,YAAY,CAAC,IAAS;IAClC,OAAO;QACH,IAAI,EAAE,qBAAa;QACnB,IAAI;KACP,CAAC;AACN,CAAC;AALD,oCAKC;AAED,SAAgB,aAAa,CAAC,KAAY;IACtC,OAAO;QACH,IAAI,EAAE,sBAAc;QACpB,KAAK;KACR,CAAC;AACN,CAAC;AALD,sCAKC;AAED,SAAgB,UAAU;IACtB,OAAO,CAAO,QAAkB,EAAC,EAAE;QAC/B,MAAM,KAAK,GAAG,MAAM,kBAAQ,EAAE,CAAC;QAC/B,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACnC,CAAC,CAAA,CA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EAAE,CAAC;QAC/B,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACnC,CAAC,CAAA;AACL,CAAC;AALD,gCAKC;AAED,IAAI,YAAY,GAAO,EACtB,CAAC;AAEF,kBAAe,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,EAAC,EAAE;IAC3C,QAAQ,MAAM,CAAC,IAAI,EAAE;QACjB,KAAK,qBAAa,CAAC,CAAA;YACf,MAAM,QAAQ,GAAG,eAAM,CAAC,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;YACtD,eAAM,CAAC,QAAQ,EAAE,cAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;YACxC,OAAO,QAAQ,CAAC;SACnB;QACD,KAAK,sBAAc,CAAC,CAAA;YAChB,MAAM,QAAQ,GAAG,eAAM,CAAC,CAAC,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAA;YAC1D,eAAM,CAAC,QAAQ,EAAE,cAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;YACxC,OAAO,QAAQ,CAAC;SACnB;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
@@ -49,7 +49,7 @@ exports.default = (state = initialState, action) => {
49
49
  return lodash_1.sortBy(newState, 'zIndex');
50
50
  }
51
51
  case exports.UPDATE_MODAL: {
52
- const newState = state.map(m => m.id === action.id ? Object.assign(Object.assign({}, m), action.modalUpdates) : m);
52
+ const newState = state.map(m => m.id === action.id ? { ...m, ...action.modalUpdates } : m);
53
53
  // sort modals by zIndex
54
54
  return lodash_1.sortBy(newState, 'zIndex');
55
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"modals.js","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":";;;AAAA,mCAAgD;AAEnC,QAAA,UAAU,GAAG,YAAY,CAAC;AA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CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,EAAE,KAAG,MAAM,CAAC,EAAE,CAAC,CAAC;QAC7C;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
4
  };
@@ -31,14 +20,23 @@ const pages = function (state = initialState, action) {
31
20
  switch (action.type) {
32
21
  case REST_FIND_PAGE_SUCCESS:
33
22
  case REST_LIST_PAGES_SUCCESS: {
34
- const _a = action.response, { data } = _a, metaData = __rest(_a, ["data"]);
35
- const records = data.map(item => (Object.assign({ id: item._id }, item)));
23
+ const { data, ...metaData } = action.response;
24
+ const records = data.map(item => ({ id: item._id, ...item }));
36
25
  const { [action.identifier]: oldRecordState = {}, collection = {} } = state;
37
- const newCollection = Object.assign({}, collection);
26
+ const newCollection = { ...collection };
38
27
  records.forEach(item => {
39
28
  newCollection[item.id] = item;
40
29
  });
41
- return Object.assign(Object.assign({}, state), { collection: newCollection, [action.identifier]: Object.assign({ isLoading: false, data: records }, metaData), isLoading: state.isLoading - 1 });
30
+ return {
31
+ ...state,
32
+ collection: newCollection,
33
+ [action.identifier]: {
34
+ isLoading: false,
35
+ data: records,
36
+ ...metaData
37
+ },
38
+ isLoading: state.isLoading - 1,
39
+ };
42
40
  }
43
41
  case REST_FIND_ID_PAGE_SUCCESS:
44
42
  case REST_UPDATE_PAGE_SUCCESS:
@@ -46,9 +44,9 @@ const pages = function (state = initialState, action) {
46
44
  const { [action.identifier]: oldRecordState = {}, collection = {} } = state;
47
45
  const { data: oldData = [] } = oldRecordState;
48
46
  const newData = [...oldData];
49
- const newCollection = Object.assign({}, collection);
47
+ const newCollection = { ...collection };
50
48
  const record = action.response;
51
- const item = Object.assign({ id: record._id }, record);
49
+ const item = { id: record._id, ...record };
52
50
  const itemIndex = newData.findIndex(_item => _item.id === item.id);
53
51
  if (itemIndex > -1) {
54
52
  newData.splice(itemIndex, 1, item);
@@ -57,7 +55,15 @@ const pages = function (state = initialState, action) {
57
55
  newData.splice(0, 0, item);
58
56
  }
59
57
  newCollection[item.id] = item;
60
- return Object.assign(Object.assign({}, state), { collection: newCollection, [action.identifier]: Object.assign(Object.assign({}, oldRecordState), { data: newData }), isLoading: state.isLoading - 1 });
58
+ return {
59
+ ...state,
60
+ collection: newCollection,
61
+ [action.identifier]: {
62
+ ...oldRecordState,
63
+ data: newData,
64
+ },
65
+ isLoading: state.isLoading - 1,
66
+ };
61
67
  }
62
68
  case REST_DELETE_PAGE_SUCCESS: {
63
69
  const { [action.identifier]: oldRecordState = {}, collection = {} } = state;
@@ -67,38 +73,67 @@ const pages = function (state = initialState, action) {
67
73
  if (itemIndex > -1) {
68
74
  newData.splice(itemIndex, 1);
69
75
  }
70
- const newCollection = Object.assign({}, collection);
76
+ const newCollection = { ...collection };
71
77
  delete newCollection[action.pathParams.id];
72
- return Object.assign(Object.assign({}, state), { collection: newCollection, [action.identifier]: Object.assign(Object.assign({}, oldRecordState), { data: newData }), isLoading: state.isLoading - 1 });
78
+ return {
79
+ ...state,
80
+ collection: newCollection,
81
+ [action.identifier]: {
82
+ ...oldRecordState,
83
+ data: newData,
84
+ },
85
+ isLoading: state.isLoading - 1,
86
+ };
73
87
  }
74
88
  case REST_QUERY_PAGE_RUNNING: {
75
89
  const { [action.identifier]: oldRecordState = {} } = state;
76
- return Object.assign(Object.assign({}, state), { [action.identifier]: Object.assign(Object.assign({}, oldRecordState), { isLoading: true }), isLoading: state.isLoading + 1 });
90
+ return {
91
+ ...state,
92
+ [action.identifier]: {
93
+ ...oldRecordState,
94
+ isLoading: true,
95
+ },
96
+ isLoading: state.isLoading + 1,
97
+ };
77
98
  }
78
99
  case REST_QUERY_PAGE_FAILED: {
79
100
  const { [action.identifier]: oldRecordState = {} } = state;
80
- return Object.assign(Object.assign({}, state), { [action.identifier]: Object.assign(Object.assign({}, oldRecordState), { isLoading: false }), isLoading: state.isLoading - 1 });
101
+ return {
102
+ ...state,
103
+ [action.identifier]: {
104
+ ...oldRecordState,
105
+ isLoading: false,
106
+ },
107
+ isLoading: state.isLoading - 1,
108
+ };
81
109
  }
82
110
  case PAGE_BLOCKS_UPDATED: {
83
111
  const { records: oldRecordState = {}, collection = {} } = state;
84
112
  const { data: oldData = [] } = oldRecordState;
85
113
  const newData = [...oldData];
86
- const newCollection = Object.assign({}, collection);
114
+ const newCollection = { ...collection };
87
115
  const newBlocks = action.blocks;
88
116
  const pageId = action.pageId;
89
117
  const itemIndex = newData.findIndex(_item => _item.id === pageId);
90
118
  if (itemIndex > -1) {
91
- const newItem = Object.assign(Object.assign({}, newData[itemIndex]), { blocks: newBlocks });
119
+ const newItem = { ...newData[itemIndex], blocks: newBlocks };
92
120
  newData.splice(itemIndex, 1, newItem);
93
121
  newCollection[pageId] = newItem;
94
122
  }
95
- return Object.assign(Object.assign({}, state), { collection: newCollection, records: Object.assign(Object.assign({}, oldRecordState), { data: newData }) });
123
+ return {
124
+ ...state,
125
+ collection: newCollection,
126
+ records: {
127
+ ...oldRecordState,
128
+ data: newData,
129
+ },
130
+ };
96
131
  }
97
132
  case PAGE_DATA_UPDATED: {
98
133
  const { records: oldRecordState = {}, collection = {} } = state;
99
134
  const { data: oldData = [] } = oldRecordState;
100
135
  const newData = [...oldData];
101
- const newCollection = Object.assign({}, collection);
136
+ const newCollection = { ...collection };
102
137
  const updates = action.updates;
103
138
  const pageId = action.pageId;
104
139
  const itemIndex = newData.findIndex(_item => _item.id === pageId);
@@ -107,7 +142,14 @@ const pages = function (state = initialState, action) {
107
142
  newData.splice(itemIndex, 1, newItem);
108
143
  newCollection[pageId] = newItem;
109
144
  }
110
- return Object.assign(Object.assign({}, state), { collection: newCollection, records: Object.assign(Object.assign({}, oldRecordState), { data: newData }) });
145
+ return {
146
+ ...state,
147
+ collection: newCollection,
148
+ records: {
149
+ ...oldRecordState,
150
+ data: newData,
151
+ },
152
+ };
111
153
  }
112
154
  default:
113
155
  return state;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/reducers/pages/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mCAAgC;AAChC,kEAA+C;AAE/C,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AACxD,MAAM,yBAAyB,GAAG,2BAA2B,CAAC;AAC9D,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAC5D,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAC5D,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AACxD,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAClD,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAE9C,MAAM,YAAY,GAAO,sBAAiB,CAAA;AAC1C,MAAM,KAAK,GAAG,UAAU,KAAK,GAAG,YAAY,EAAE,MAAW;IACjD,QAAQ,MAAM,CAAC,IAAI,EAAE;QACjB,KAAK,sBAAsB,CAAC;QAC5B,KAAK,uBAAuB,CAAC,CAAC;YAC1B,MAAM,KAAsB,MAAM,CAAC,QAAQ,EAArC,EAAC,IAAI,OAAgC,EAA3B,QAAQ,cAAlB,QAAmB,CAAkB,CAAC;YAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,GAA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strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.getPath = exports.getPageRouteName = exports.getPagePath = exports.unregisterAdminPage = exports.registerAdminPage = exports.unregisterSitePage = exports.registerSitePage = exports.unregisterPageType = exports.registerPageType = exports.ROUTE_404 = exports.PAGE_EDITOR = exports.VIEW_PAGE = exports.SITE_PAGE = exports.ROUTE_TYPE_PATH = exports.UNREGISTER_PAGE_TYPE = exports.UNREGISTER_PAGE_ROUTE = exports.REGISTER_PAGE_TYPE = exports.REGISTER_PAGE_ROUTE = void 0;
15
4
  const lodash_1 = require("lodash");
@@ -102,10 +91,7 @@ function getPath(type, options) {
102
91
  if (type === exports.VIEW_PAGE)
103
92
  return options.slug || options.id;
104
93
  const { routes: { site, admin } } = getState();
105
- const adminRoutesMapped = admin.map((_a) => {
106
- var { path } = _a, routeProps = __rest(_a, ["path"]);
107
- return (Object.assign(Object.assign({}, routeProps), { path: `/admin${path}` }));
108
- });
94
+ const adminRoutesMapped = admin.map(({ path, ...routeProps }) => ({ ...routeProps, path: `/admin${path}` }));
109
95
  const routes = [...site, ...adminRoutesMapped];
110
96
  const route = routes.find(({ id }) => id === routeId);
111
97
  if (route) {
@@ -134,7 +120,7 @@ exports.default = (state = initialState, action) => {
134
120
  const { id, key, data } = action;
135
121
  const { [key]: oldRoutes } = state;
136
122
  const newRoutes = [...oldRoutes];
137
- const routeData = Object.assign({ id, exact: true }, data);
123
+ const routeData = { id, exact: true, ...data };
138
124
  const existingIndex = newRoutes.findIndex(r => r.id === id);
139
125
  if (existingIndex > -1) {
140
126
  newRoutes.splice(existingIndex, 1, routeData);
@@ -142,21 +128,33 @@ exports.default = (state = initialState, action) => {
142
128
  else {
143
129
  newRoutes.push(routeData);
144
130
  }
145
- return Object.assign(Object.assign({}, state), { [key]: newRoutes });
131
+ return {
132
+ ...state,
133
+ [key]: newRoutes
134
+ };
146
135
  }
147
136
  case exports.UNREGISTER_PAGE_ROUTE: {
148
137
  const { id, key } = action;
149
138
  const { [key]: oldRoutes } = state;
150
139
  const newRoutes = oldRoutes.filter(route => route.id !== id);
151
- return Object.assign(Object.assign({}, state), { [key]: newRoutes });
140
+ return {
141
+ ...state,
142
+ [key]: newRoutes
143
+ };
152
144
  }
153
145
  case exports.REGISTER_PAGE_TYPE:
154
- return Object.assign(Object.assign({}, state), { pageTypes: [
146
+ return {
147
+ ...state,
148
+ pageTypes: [
155
149
  ...state.pageTypes,
156
150
  action.pageType,
157
- ] });
151
+ ]
152
+ };
158
153
  case exports.UNREGISTER_PAGE_TYPE:
159
- return Object.assign(Object.assign({}, state), { pageTypes: state.pageTypes.filter(pageType => pageType !== action.pageType) });
154
+ return {
155
+ ...state,
156
+ pageTypes: state.pageTypes.filter(pageType => pageType !== action.pageType)
157
+ };
160
158
  default:
161
159
  return state;
162
160
  }
@@ -1 +1 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/reducers/routes.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mCAAiC;AACjC,sDAAqD;AAExC,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAE9C,QAAA,eAAe,GAAG,MAAM,CAAC;AACzB,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,SAAS,GAAG,aAAa,CAAC;AAC1B,QAAA,W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GAAG,KAAK;gBACR,CAAC,GAAG,CAAC,EAAE,SAAS;aACnB,CAAC;SACL;QACD,KAAK,0BAAkB;YACnB,OAAM;gBACF,GAAG,KAAK;gBACR,SAAS,EAAC;oBACN,GAAG,KAAK,CAAC,SAAS;oBAClB,MAAM,CAAC,QAAQ;iBAClB;aACJ,CAAC;QACN,KAAK,4BAAoB;YACrB,OAAO;gBACH,GAAG,KAAK;gBACR,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC;aAC9E,CAAC;QACN;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
@@ -17,7 +17,10 @@ exports.getSuggestions = getSuggestions;
17
17
  exports.default = (state = initialState, action) => {
18
18
  switch (action.type) {
19
19
  case exports.GET_SUGGESTION_SUCCESS:
20
- return Object.assign(Object.assign({}, state), { suggestions: action.response.hits.hits.map(hit => (Object.assign({ id: hit._id, _type: hit._type }, hit._source))) });
20
+ return {
21
+ ...state,
22
+ suggestions: action.response.hits.hits.map(hit => ({ id: hit._id, _type: hit._type, ...hit._source })),
23
+ };
21
24
  default:
22
25
  return state;
23
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/reducers/search.tsx"],"names":[],"mappings":";;;AAAA,qDAAyC;AAG5B,QAAA,sBAAsB,GAAG,wBAAwB,CAAC;AAClD,QAAA,sBAAsB,GAAG,wBAAwB,CAAC;AAClD,QAAA,sBAAsB,GAAG,wBAAwB,CAAC;AAE/D,IAAI,YAAY,GAAO,EAAE,CAAC;AAEnB,MAAM,cAAc,GAAG,CAAC,IAAI,EAAC,EAAE,CAAA,CAAC;IACnC,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAC,CAAC,8BAAsB,EAAC,8BAAsB,EAAE,8BAAsB,CAAC;IAC7E,MAAM,EAAE,gBAAG;IACX,IAAI;IACJ,aAAa,EAA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,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,GAAG,CAAC,OAAO,EAAC,CAAC,CAAC;aACrG,CAAC;QACN;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
@@ -49,7 +49,14 @@ const session = (state = initialState, action) => {
49
49
  // if values has not changed return current state, no update required
50
50
  if (state.data[key] === value)
51
51
  return state;
52
- return Object.assign(Object.assign({}, state), { data: Object.assign(Object.assign({}, state.data), { [key]: value }), pendingUpdates: [...state.pendingUpdates, key] });
52
+ return {
53
+ ...state,
54
+ data: {
55
+ ...state.data,
56
+ [key]: value
57
+ },
58
+ pendingUpdates: [...state.pendingUpdates, key],
59
+ };
53
60
  }
54
61
  case exports.SET_SESSION_VALUE: {
55
62
  const { values } = action;
@@ -57,12 +64,19 @@ const session = (state = initialState, action) => {
57
64
  const updates = lodash_1.reduce(values, (previous, value, key) => {
58
65
  if (state.data[key] === value)
59
66
  return previous;
60
- return Object.assign(Object.assign({}, previous), { [key]: value });
67
+ return { ...previous, [key]: value };
61
68
  }, {});
62
69
  // if the updates is empty, return current state, no update required
63
70
  if (lodash_1.isEmpty(updates))
64
71
  return state;
65
- return Object.assign(Object.assign({}, state), { data: Object.assign(Object.assign({}, state.data), updates), pendingUpdates: [...state.pendingUpdates, lodash_1.keys(updates)] });
72
+ return {
73
+ ...state,
74
+ data: {
75
+ ...state.data,
76
+ ...updates,
77
+ },
78
+ pendingUpdates: [...state.pendingUpdates, lodash_1.keys(updates)],
79
+ };
66
80
  }
67
81
  case exports.SESSION_UPDATE_REMOTE_SUCCESS: {
68
82
  const { data: values } = action;
@@ -76,7 +90,10 @@ const session = (state = initialState, action) => {
76
90
  // if the updates is empty, return current state, no update required
77
91
  if (lodash_1.isEmpty(updatedKeys))
78
92
  return state;
79
- return Object.assign(Object.assign({}, state), { pendingUpdates: lodash_1.difference(state.pendingUpdates, updatedKeys) });
93
+ return {
94
+ ...state,
95
+ pendingUpdates: lodash_1.difference(state.pendingUpdates, updatedKeys),
96
+ };
80
97
  }
81
98
  case exports.RESET_SESSION:
82
99
  return generateEmptyState();
@@ -1 +1 @@
1
- {"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/reducers/session.tsx"],"names":[],"mappings":";;;AAAA,mCAAwE;AACxE,+BAAoC;AACpC,wCAAqC;AAErC,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,SAAM,CAAC,GAAG,eAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,EAAE,sCAAsC,CAAE,CAAC;AAE3G,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AACxC,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,aAAa,GAAG,eAAe,CAAC;AAEhC,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAEpE,MAAM,eAAe,GAAG,CAAC,GAAU,EAAE,KAAU,EAAC,EAAE,CAAA,CAAC;IACtD,IAAI,EAAE,yBAAiB;IACvB,GAAG;IACH,KAAK;CACR,CAAC,CAAC;AAJU,QAAA,eAAe,mBAIzB;AAEI,MAAM,gBAAgB,GAAG,CAAC,MAAc,EAAC,EAAE,CAAA,CAAC;IAC/C,IAAI,EAAE,0BAAkB;IACxB,MAAM;CACT,CAAC,CAAC;AAHU,QAAA,gBAAgB,oBAG1B;AAEI,MAAM,uBAAuB,GAAG,CAAC,SAAgB,EAAE,MAAc,EAAE,EAAE;IACxE,OAAO,iBAAO,CAAC,0BAA0B,EAAE,MAAM,EAAE;QAC/C,MAAM,EAAE,KAAK;QACb,UAAU,EAAC;YACP,SAAS;SACZ;QACD,KAAK,EAAE,CAAC,qCAA6B,EAAE,qCAA6B,EAAE,oCAA4B,CAAC;KACtG,CAAC,CAAA;AACN,CAAC,CAAA;AARY,QA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B;YAC3B,MAAM,WAAW,GAAG,eAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAC,EAAE;gBACvD,IAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAI,KAAK;oBAAE,OAAO,CAAC,GAAG,QAAQ,EAAE,GAAG,CAAC,CAAC;gBACvD,OAAO,QAAQ,CAAA;YACnB,CAAC,EAAE,EAAE,CAAC,CAAA;YAEN,oEAAoE;YACpE,IAAG,gBAAO,CAAC,WAAW,CAAC;gBAAE,OAAO,KAAK,CAAC;YAEtC,OAAO;gBACH,GAAG,KAAK;gBACR,cAAc,EAAE,mBAAU,CAAC,KAAK,CAAC,cAAc,EAAE,WAAW,CAAC;aAChE,CAAC;SACL;QACD,KAAK,qBAAa;YACd,OAAO,kBAAkB,EAAE,CAAC;QAChC;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAC;AAEF,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;AACvB,kBAAe,OAAO,CAAC"}
@@ -66,7 +66,13 @@ function register(data) {
66
66
  };
67
67
  }
68
68
  exports.register = register;
69
- const fetch = (endpoint, options) => (Object.assign({ endpoint, types: ["REQUEST", "SUCCESS", "FAILURE"], method: redux_rest_1.GET, isRestRequest: true }, options));
69
+ const fetch = (endpoint, options) => ({
70
+ endpoint,
71
+ types: ["REQUEST", "SUCCESS", "FAILURE"],
72
+ method: redux_rest_1.GET,
73
+ isRestRequest: true,
74
+ ...options
75
+ });
70
76
  exports.fetch = fetch;
71
77
  function logout() {
72
78
  return {
@@ -78,7 +84,11 @@ const initialState = { isLoggedIn: null };
78
84
  const user = (state = initialState, action) => {
79
85
  switch (action.type) {
80
86
  case exports.GET_ME_SUCCESS:
81
- return Object.assign(Object.assign(Object.assign({}, state), action.response), { isLoggedIn: true });
87
+ return {
88
+ ...state,
89
+ ...action.response,
90
+ isLoggedIn: true,
91
+ };
82
92
  case exports.LOGOUT:
83
93
  return { isLoggedIn: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AAM,CAAC,IAAI,EAAE;QACjB,KAAK,sBAAc;YACf,OAAO;gBACH,GAAG,KAAK;gBACR,GAAG,MAAM,CAAC,QAAQ;gBAClB,UAAU,EAAE,IAAI;aACnB,CAAC;QACN,KAAK,cAAM;YACP,OAAO,EAAC,UAAU,EAAE,KAAK,EAAC,CAAC;QAC/B;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA;AAED,kBAAe,IAAI,CAAC"}
@@ -13,7 +13,10 @@ function SessionManager() {
13
13
  console.log(id, data, pendingUpdates);
14
14
  if (lodash_1.isEmpty(pendingUpdates) || !id)
15
15
  return;
16
- const updates = lodash_1.reduce(pendingUpdates, (values, key) => (Object.assign(Object.assign({}, values), { [key]: lodash_1.isUndefined(data[key]) ? null : data[key] })), {});
16
+ const updates = lodash_1.reduce(pendingUpdates, (values, key) => ({
17
+ ...values,
18
+ [key]: lodash_1.isUndefined(data[key]) ? null : data[key]
19
+ }), {});
17
20
  console.log('updating values', updates);
18
21
  dispatch(session_1.updateRemoteSessionData(id, updates));
19
22
  }, [id, pendingUpdates, data, dispatch]);
@@ -1 +1 @@
1
- {"version":3,"file":"SessionManager.js","sourceRoot":"","sources":["../../../src/services/SessionManager.tsx"],"names":[],"mappings":";;;AAAA,mCAA0D;AAC1D,iCAAkC;AAClC,6CAAuD;AACvD,iDAA8D;AAE9D,SAAgB,cAAc;IAE1B,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,yBAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAE5C,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,GAAG,WAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAA;IAEhF,iBAAS,CAAC,GAAE,EAAE;QACV,OAAO,CAAC,GAAG,CAAE,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,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AC,EAAE;YAAE,OAAO;QAC1C,MAAM,OAAO,GAAG,eAAM,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,EAAC,EAAE,CAAA,CAAC;YACnD,GAAG,MAAM;YACT,CAAC,GAAG,CAAC,EAAE,oBAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SAClD,CAAC,EAAE,EAAE,CAAC,CAAA;QACP,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA;QACvC,QAAQ,CAAC,iCAAuB,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAA;IAClD,CAAC,EAAE,CAAC,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEzC,OAAO,IAAI,CAAC;AAChB,CAAC;AAnBD,wCAmBC;AAED,kBAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.237",
3
+ "version": "1.0.238",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {