@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.
- package/dist/src/actions/restApi.js +8 -1
- package/dist/src/actions/restApi.js.map +1 -1
- package/dist/src/adapters/getUserToken/index.js +7 -18
- package/dist/src/adapters/getUserToken/index.js.map +1 -1
- package/dist/src/adapters/getUserToken/index.native.js +9 -20
- package/dist/src/adapters/getUserToken/index.native.js.map +1 -1
- package/dist/src/classes/Model.js +5 -14
- package/dist/src/classes/Model.js.map +1 -1
- package/dist/src/components/hoc/withSettings.js +1 -12
- package/dist/src/components/hoc/withSettings.js.map +1 -1
- package/dist/src/components/hoc/withSettings.native.js +2 -13
- package/dist/src/components/hoc/withSettings.native.js.map +1 -1
- package/dist/src/constants/iconInfo/index.js +4 -5
- package/dist/src/constants/iconInfo/index.js.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js.map +1 -1
- package/dist/src/contexts/EDLContext.d.ts +7 -0
- package/dist/src/contexts/EDLContext.d.ts.map +1 -0
- package/dist/src/contexts/EDLContext.js +10 -0
- package/dist/src/contexts/EDLContext.js.map +1 -0
- package/dist/src/data-sources/collection.js +3 -12
- package/dist/src/data-sources/collection.js.map +1 -1
- package/dist/src/data-sources/collectionRecord.js +3 -12
- package/dist/src/data-sources/collectionRecord.js.map +1 -1
- package/dist/src/data-sources/listUrl.js +3 -12
- package/dist/src/data-sources/listUrl.js.map +1 -1
- package/dist/src/data-sources/url.js +3 -12
- package/dist/src/data-sources/url.js.map +1 -1
- package/dist/src/edl/BlockRenderer.d.ts +9 -0
- package/dist/src/edl/BlockRenderer.d.ts.map +1 -0
- package/dist/src/edl/BlockRenderer.js +102 -0
- package/dist/src/edl/BlockRenderer.js.map +1 -0
- package/dist/src/edl/DataSourceLoader.d.ts +7 -0
- package/dist/src/edl/DataSourceLoader.d.ts.map +1 -0
- package/dist/src/edl/DataSourceLoader.js +13 -0
- package/dist/src/edl/DataSourceLoader.js.map +1 -0
- package/dist/src/edl/elements/DataSource.d.ts +8 -0
- package/dist/src/edl/elements/DataSource.d.ts.map +1 -0
- package/dist/src/edl/elements/DataSource.js +19 -0
- package/dist/src/edl/elements/DataSource.js.map +1 -0
- package/dist/src/edl/elements/Fragment.d.ts +9 -0
- package/dist/src/edl/elements/Fragment.d.ts.map +1 -0
- package/dist/src/edl/elements/Fragment.js +14 -0
- package/dist/src/edl/elements/Fragment.js.map +1 -0
- package/dist/src/edl/elements/UseEffect.d.ts +10 -0
- package/dist/src/edl/elements/UseEffect.d.ts.map +1 -0
- package/dist/src/edl/elements/UseEffect.js +28 -0
- package/dist/src/edl/elements/UseEffect.js.map +1 -0
- package/dist/src/edl/elements/index.d.ts +17 -0
- package/dist/src/edl/elements/index.d.ts.map +1 -0
- package/dist/src/edl/elements/index.js +16 -0
- package/dist/src/edl/elements/index.js.map +1 -0
- package/dist/src/edl/index.d.ts +28 -0
- package/dist/src/edl/index.d.ts.map +1 -0
- package/dist/src/edl/index.js +107 -0
- package/dist/src/edl/index.js.map +1 -0
- package/dist/src/edl/localStorage.app.d.ts +6 -0
- package/dist/src/edl/localStorage.app.d.ts.map +1 -0
- package/dist/src/edl/localStorage.app.js +14 -0
- package/dist/src/edl/localStorage.app.js.map +1 -0
- package/dist/src/edl/localStorage.d.ts +6 -0
- package/dist/src/edl/localStorage.d.ts.map +1 -0
- package/dist/src/edl/localStorage.js +10 -0
- package/dist/src/edl/localStorage.js.map +1 -0
- package/dist/src/edl/parser.d.ts +3 -0
- package/dist/src/edl/parser.d.ts.map +1 -0
- package/dist/src/edl/parser.js +166 -0
- package/dist/src/edl/parser.js.map +1 -0
- package/dist/src/helpers/functions.js +1 -1
- package/dist/src/helpers/functions.js.map +1 -1
- package/dist/src/helpers/handlebarHelpers.js +1 -1
- package/dist/src/helpers/handlebarHelpers.js.map +1 -1
- package/dist/src/helpers/handlebarHelpers.test.d.ts.map +1 -1
- package/dist/src/helpers/handlebarHelpers.test.js +1 -1
- package/dist/src/helpers/handlebarHelpers.test.js.map +1 -1
- package/dist/src/helpers/iconHelper.js +7 -13
- package/dist/src/helpers/iconHelper.js.map +1 -1
- package/dist/src/helpers/pathHelper.js +1 -1
- package/dist/src/helpers/pathHelper.js.map +1 -1
- package/dist/src/helpers/themeHelpers.js +23 -3
- package/dist/src/helpers/themeHelpers.js.map +1 -1
- package/dist/src/hooks/useAction.js +3 -12
- package/dist/src/hooks/useAction.js.map +1 -1
- package/dist/src/hooks/useActionable.d.ts +1 -0
- package/dist/src/hooks/useActionable.d.ts.map +1 -1
- package/dist/src/hooks/useActionable.js +3 -1
- package/dist/src/hooks/useActionable.js.map +1 -1
- package/dist/src/hooks/useComponentConfigProps.js +1 -1
- package/dist/src/hooks/useComponentConfigProps.js.map +1 -1
- package/dist/src/hooks/useDataSource.js +1 -1
- package/dist/src/hooks/useDataSource.js.map +1 -1
- package/dist/src/hooks/useNavigator.js +1 -1
- package/dist/src/hooks/useNavigator.js.map +1 -1
- package/dist/src/hooks/useParams.js +1 -1
- package/dist/src/hooks/useParams.js.map +1 -1
- package/dist/src/hooks/useTranslation.js +2 -5
- package/dist/src/hooks/useTranslation.js.map +1 -1
- package/dist/src/middlewares/dataSourceMiddleware.js +11 -22
- package/dist/src/middlewares/dataSourceMiddleware.js.map +1 -1
- package/dist/src/middlewares/restApiMiddleware.js +5 -5
- package/dist/src/middlewares/restApiMiddleware.js.map +1 -1
- package/dist/src/providers/I18nProvider.js +11 -14
- package/dist/src/providers/I18nProvider.js.map +1 -1
- package/dist/src/providers/Scope.js +4 -1
- package/dist/src/providers/Scope.js.map +1 -1
- package/dist/src/reducers/adminMenus.js +1 -1
- package/dist/src/reducers/adminMenus.js.map +1 -1
- package/dist/src/reducers/collection.js +66 -15
- package/dist/src/reducers/collection.js.map +1 -1
- package/dist/src/reducers/components.js +28 -7
- package/dist/src/reducers/components.js.map +1 -1
- package/dist/src/reducers/config/index.js +16 -4
- package/dist/src/reducers/config/index.js.map +1 -1
- package/dist/src/reducers/context.js +5 -16
- package/dist/src/reducers/context.js.map +1 -1
- package/dist/src/reducers/dataSource.js +14 -2
- package/dist/src/reducers/dataSource.js.map +1 -1
- package/dist/src/reducers/files.js +18 -4
- package/dist/src/reducers/files.js.map +1 -1
- package/dist/src/reducers/fonts.js +15 -6
- package/dist/src/reducers/fonts.js.map +1 -1
- package/dist/src/reducers/icons.js +3 -12
- package/dist/src/reducers/icons.js.map +1 -1
- package/dist/src/reducers/modals.js +1 -1
- package/dist/src/reducers/modals.js.map +1 -1
- package/dist/src/reducers/pages/index.js +69 -27
- package/dist/src/reducers/pages/index.js.map +1 -1
- package/dist/src/reducers/routes.js +19 -21
- package/dist/src/reducers/routes.js.map +1 -1
- package/dist/src/reducers/search.js +4 -1
- package/dist/src/reducers/search.js.map +1 -1
- package/dist/src/reducers/session.js +21 -4
- package/dist/src/reducers/session.js.map +1 -1
- package/dist/src/reducers/user.js +12 -2
- package/dist/src/reducers/user.js.map +1 -1
- package/dist/src/services/SessionManager.js +4 -1
- package/dist/src/services/SessionManager.js.map +1 -1
- package/package.json +1 -1
@@ -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,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;gBACR,IAAI,EAAE;oBACF,GAAG,KAAK,CAAC,IAAI;oBACb,GAAG,OAAO;iBACb;gBACD,cAAc,EAAE,CAAC,GAAG,KAAK,CAAC,cAAc,EAAE,aAAI,CAAC,OAAO,CAAC,CAAC;aAC3D,CAAC;SACL;QACD,KAAK,qCAA6B,CAAC,CAAA;YAC/B,MAAM,EAAC,IAAI,EAAE,MAAM,EAAC,GAAG,MAAM,CAAC;YAE9B,yEAAyE;YACzE,2BAA2B;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) => (
|
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
|
87
|
+
return {
|
88
|
+
...state,
|
89
|
+
...action.response,
|
90
|
+
isLoggedIn: true,
|
91
|
+
};
|
82
92
|
case exports.LOGOUT:
|
83
93
|
return { isLoggedIn: false };
|
84
94
|
default:
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/reducers/user.tsx"],"names":[],"mappings":";;;AAAA,qDAA+C;AAElC,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,aAAa,GAAG,eAAe,CAAC;AAEhC,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAEhD,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,MAAM,GAAG,QAAQ,CAAC;AAElB,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAClC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAClC,QAAA,aAAa,GAAG,eAAe,CAAC;AAEhC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AACxC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AACxC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AAEtC,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAE3D,SAAgB,KAAK;IACjB,OAAO;QACH,KAAK,EAAC,CAAC,sBAAc,EAAE,sBAAc,EAAE,qBAAa,CAAC;QACrD,QA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
14
14
|
if (lodash_1.isEmpty(pendingUpdates) || !id)
|
15
15
|
return;
|
16
|
-
const updates = lodash_1.reduce(pendingUpdates, (values, 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,CAAA;QACtC,IAAG,gBAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;YAAE,OAAO;QAC1C,MAAM,OAAO,GAAG,eAAM,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,EAAC,EAAE,CAAA,
|
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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