@zengenti/contensis-react-base 2.4.1-beta.7 → 2.5.1-beta.0

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.
Files changed (225) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +89 -0
  3. package/cjs/{App-f3164dab.js → App-8f560cc5.js} +236 -22
  4. package/cjs/App-8f560cc5.js.map +1 -0
  5. package/cjs/{RouteLoader-5c44f039.js → RouteLoader-f99cd734.js} +14 -41
  6. package/cjs/RouteLoader-f99cd734.js.map +1 -0
  7. package/cjs/{ToJs-ca9bea03.js → ToJs-d72e5b10.js} +58 -2
  8. package/cjs/ToJs-d72e5b10.js.map +1 -0
  9. package/cjs/{actions-e22726ed.js → actions-e9f69947.js} +1 -1
  10. package/cjs/actions-e9f69947.js.map +1 -0
  11. package/cjs/client.js +121 -16
  12. package/cjs/client.js.map +1 -1
  13. package/cjs/contensis-react-base.js +128 -118
  14. package/cjs/contensis-react-base.js.map +1 -1
  15. package/cjs/forms.js +1 -1
  16. package/cjs/{login-6c0ef139.js → login-4f274c6a.js} +8 -5
  17. package/cjs/login-4f274c6a.js.map +1 -0
  18. package/cjs/reducers-cb531715.js +207 -0
  19. package/cjs/reducers-cb531715.js.map +1 -0
  20. package/cjs/redux.js +15 -16
  21. package/cjs/redux.js.map +1 -1
  22. package/cjs/routing.js +4 -5
  23. package/cjs/routing.js.map +1 -1
  24. package/cjs/search.js +6 -4
  25. package/cjs/search.js.map +1 -1
  26. package/cjs/{selectors-69c3d37c.js → selectors-1295124a.js} +9 -1
  27. package/cjs/selectors-1295124a.js.map +1 -0
  28. package/cjs/user.js +82 -27
  29. package/cjs/user.js.map +1 -1
  30. package/cjs/util.js +21 -91
  31. package/cjs/util.js.map +1 -1
  32. package/cjs/{injectors-72d5b989.js → version-3a808c12.js} +21 -6
  33. package/cjs/version-3a808c12.js.map +1 -0
  34. package/esm/{App-08311b77.js → App-d468b2a6.js} +223 -8
  35. package/esm/App-d468b2a6.js.map +1 -0
  36. package/esm/{RouteLoader-2cfdfc5c.js → RouteLoader-281d47e1.js} +14 -40
  37. package/esm/RouteLoader-281d47e1.js.map +1 -0
  38. package/esm/{ToJs-19a3244a.js → ToJs-6e7b247c.js} +47 -3
  39. package/esm/ToJs-6e7b247c.js.map +1 -0
  40. package/esm/{actions-fda5e103.js → actions-ddd9c623.js} +1 -1
  41. package/esm/actions-ddd9c623.js.map +1 -0
  42. package/esm/client.js +121 -16
  43. package/esm/client.js.map +1 -1
  44. package/esm/contensis-react-base.js +122 -112
  45. package/esm/contensis-react-base.js.map +1 -1
  46. package/esm/forms.js +1 -1
  47. package/esm/{login-c05fee0e.js → login-1f9ad133.js} +8 -6
  48. package/esm/login-1f9ad133.js.map +1 -0
  49. package/esm/reducers-feab84fc.js +183 -0
  50. package/esm/reducers-feab84fc.js.map +1 -0
  51. package/esm/redux.js +5 -6
  52. package/esm/redux.js.map +1 -1
  53. package/esm/routing.js +4 -5
  54. package/esm/routing.js.map +1 -1
  55. package/esm/search.js +6 -4
  56. package/esm/search.js.map +1 -1
  57. package/esm/{selectors-170581d2.js → selectors-68799788.js} +9 -1
  58. package/esm/selectors-68799788.js.map +1 -0
  59. package/esm/user.js +80 -29
  60. package/esm/user.js.map +1 -1
  61. package/esm/util.js +20 -90
  62. package/esm/util.js.map +1 -1
  63. package/esm/{injectors-3cbe3981.js → version-64906b26.js} +20 -5
  64. package/esm/version-64906b26.js.map +1 -0
  65. package/models/app/App.d.ts +4 -0
  66. package/models/app/pages/VersionInfo/components/VersionInfo.d.ts +40 -0
  67. package/models/app/pages/VersionInfo/components/VersionInfo.styled.d.ts +1 -0
  68. package/models/app/pages/VersionInfo/index.d.ts +2 -0
  69. package/models/app/pages/VersionInfo/transformations/state-to-versioninfoprops.mapper.d.ts +3 -0
  70. package/models/client/client.d.ts +11 -0
  71. package/models/client/index.d.ts +3 -0
  72. package/models/config.d.ts +33 -0
  73. package/models/forms/index.d.ts +1 -0
  74. package/models/index.d.ts +5 -0
  75. package/models/redux/actions/index.d.ts +9 -0
  76. package/models/redux/actions/navigation.d.ts +1 -0
  77. package/models/redux/actions/version.d.ts +2 -0
  78. package/models/redux/index.d.ts +17 -0
  79. package/models/redux/reducers/navigation.d.ts +3 -0
  80. package/models/redux/reducers/version.d.ts +3 -0
  81. package/models/redux/sagas/index.d.ts +1 -0
  82. package/models/redux/sagas/navigation.d.ts +4 -0
  83. package/models/redux/selectors/index.d.ts +9 -0
  84. package/models/redux/selectors/navigation.d.ts +3 -0
  85. package/models/redux/selectors/version.d.ts +3 -0
  86. package/models/redux/store/history.d.ts +2 -0
  87. package/models/redux/store/injectors.d.ts +19 -0
  88. package/models/redux/store/routerMiddleware.d.ts +7 -0
  89. package/models/redux/store/store.d.ts +3 -0
  90. package/models/redux/types/index.d.ts +9 -0
  91. package/models/redux/types/navigation.d.ts +3 -0
  92. package/models/redux/types/version.d.ts +2 -0
  93. package/models/redux/util.d.ts +1 -0
  94. package/models/routing/components/Loading.d.ts +5 -0
  95. package/models/routing/components/NotFound.d.ts +6 -0
  96. package/models/routing/components/RouteLoader.d.ts +3 -0
  97. package/models/routing/components/Status.d.ts +4 -0
  98. package/models/routing/index.d.ts +4 -0
  99. package/models/routing/redux/actions.d.ts +6 -0
  100. package/models/routing/redux/reducers.d.ts +4 -0
  101. package/models/routing/redux/sagas.d.ts +1 -0
  102. package/models/routing/redux/selectors.d.ts +25 -0
  103. package/models/routing/redux/types.d.ts +12 -0
  104. package/models/routing/routes.d.ts +98 -0
  105. package/models/routing/util/expressions.d.ts +2 -0
  106. package/models/routing/util/find-contenttype-mapping.d.ts +2 -0
  107. package/models/routing/util/queries.d.ts +2 -0
  108. package/models/search/containers/withListing.d.ts +4 -0
  109. package/models/search/containers/withSearch.d.ts +4 -0
  110. package/models/search/hooks/useMinilist.hook.d.ts +23 -0
  111. package/models/search/index.d.ts +16 -0
  112. package/models/search/models/Enums.d.ts +5 -0
  113. package/models/search/models/Queries.d.ts +43 -0
  114. package/models/search/models/Search.d.ts +180 -0
  115. package/models/search/models/SearchActions.d.ts +127 -0
  116. package/models/search/models/SearchProps.d.ts +45 -0
  117. package/models/search/models/SearchState.d.ts +83 -0
  118. package/models/search/models/SearchUtil.d.ts +6 -0
  119. package/models/search/models/index.d.ts +3 -0
  120. package/models/search/redux/actions.d.ts +39 -0
  121. package/models/search/redux/queries.d.ts +3 -0
  122. package/models/search/redux/reducers.d.ts +4 -0
  123. package/models/search/redux/sagas.d.ts +20 -0
  124. package/models/search/redux/schema.d.ts +9 -0
  125. package/models/search/redux/selectors.d.ts +112 -0
  126. package/models/search/redux/types.d.ts +20 -0
  127. package/models/search/redux/util.d.ts +25 -0
  128. package/models/search/search/ContensisDeliveryApi.d.ts +32 -0
  129. package/models/search/search/ToJs.d.ts +4 -0
  130. package/models/search/search/expressions.d.ts +29 -0
  131. package/models/search/search/performance.d.ts +1 -0
  132. package/models/search/search/schema.d.ts +28 -0
  133. package/models/search/search/util.d.ts +21 -0
  134. package/models/search/transformations/entry-to-filteritem.mapper.d.ts +2 -0
  135. package/models/search/transformations/filters-to-filterexpression.d.ts +1 -0
  136. package/models/search/transformations/filters-to-filterexpression.mapper.d.ts +2 -0
  137. package/models/search/transformations/searchresult-to-state.mapper.d.ts +6 -0
  138. package/models/search/transformations/state-to-queryparams.mapper.d.ts +12 -0
  139. package/models/search/transformations/state-to-searchuri.d.ts +14 -0
  140. package/models/server/features/caching/cacheDuration.schema.d.ts +7 -0
  141. package/models/server/features/caching/cacheHashing.d.ts +1 -0
  142. package/models/server/features/caching/setCachingHeaders.d.ts +6 -0
  143. package/models/server/features/response-handler/index.d.ts +12 -0
  144. package/models/server/features/response-handler/types.d.ts +5 -0
  145. package/models/server/features/reverse-proxy/index.d.ts +4 -0
  146. package/models/server/features/static-assets/index.d.ts +14 -0
  147. package/models/server/internalServer.d.ts +10 -0
  148. package/models/server/middleware/bundleManipulation.d.ts +6 -0
  149. package/models/server/middleware/resolveStartup.d.ts +13 -0
  150. package/models/server/util/bundles.d.ts +46 -0
  151. package/models/server/util/displayStartupConfiguration.d.ts +2 -0
  152. package/models/server/util/headers.d.ts +9 -0
  153. package/models/server/util/staticPaths.d.ts +1 -0
  154. package/models/server/util/stringifyAttributes.d.ts +2 -0
  155. package/models/server/webApp.d.ts +9 -0
  156. package/models/testImmer/redux/reducer.d.ts +8 -0
  157. package/models/testImmer/redux/selectors.d.ts +3 -0
  158. package/models/user/components/Login.d.ts +2 -0
  159. package/models/user/components/LoginForm.d.ts +16 -0
  160. package/models/user/components/LogoutForm.d.ts +12 -0
  161. package/models/user/components.styled/Login.styled.d.ts +2 -0
  162. package/models/user/components.styled/LoginForm.styled.d.ts +2 -0
  163. package/models/user/containers/ChangePassword.container.d.ts +2 -0
  164. package/models/user/containers/ForgotPassword.container.d.ts +2 -0
  165. package/models/user/containers/Login.container.d.ts +2 -0
  166. package/models/user/containers/Registration.container.d.ts +2 -0
  167. package/models/user/hocs/withLogin.d.ts +2 -0
  168. package/models/user/hocs/withRegistration.d.ts +2 -0
  169. package/models/user/hooks/useChangePassword.d.ts +9 -0
  170. package/models/user/hooks/useForgotPassword.d.ts +14 -0
  171. package/models/user/hooks/useLogin.d.ts +12 -0
  172. package/models/user/hooks/useRegistration.d.ts +8 -0
  173. package/models/user/index.d.ts +16 -0
  174. package/models/user/redux/actions.d.ts +6 -0
  175. package/models/user/redux/reducers.d.ts +4 -0
  176. package/models/user/redux/sagas/index.d.ts +1 -0
  177. package/models/user/redux/sagas/login.d.ts +36 -0
  178. package/models/user/redux/sagas/register.d.ts +1 -0
  179. package/models/user/redux/sagas/resetPassword.d.ts +1 -0
  180. package/models/user/redux/selectors.d.ts +27 -0
  181. package/models/user/redux/types.d.ts +21 -0
  182. package/models/user/transformations/mapClientCredentials.d.ts +2 -0
  183. package/models/user/util/ContensisManagementApi.d.ts +9 -0
  184. package/models/user/util/CookieHelper.class.d.ts +5 -0
  185. package/models/user/util/LoginHelper.class.d.ts +52 -0
  186. package/models/user/util/OidcUserManager.d.ts +18 -0
  187. package/models/user/util/matchGroups.d.ts +3 -0
  188. package/models/user/util/userHelper.d.ts +12 -0
  189. package/models/util/ContensisDeliveryApi.d.ts +40 -0
  190. package/models/util/ToJs.d.ts +1 -0
  191. package/models/util/fromJSLeaveImmer.d.ts +2 -0
  192. package/models/util/fromJSOrdered.d.ts +2 -0
  193. package/models/util/index.d.ts +5 -0
  194. package/models/util/json-mapper.d.ts +81 -0
  195. package/models/util/navHelper.d.ts +7 -0
  196. package/models/util/navigation.d.ts +4 -0
  197. package/models/util/performance.d.ts +1 -0
  198. package/models/util/pickProject.d.ts +2 -0
  199. package/models/{schema.d.ts → util/schema.d.ts} +0 -0
  200. package/models/util/stringifyStrings.d.ts +2 -0
  201. package/models/util/urls.d.ts +9 -0
  202. package/package-lock.json +7831 -7713
  203. package/package.json +24 -14
  204. package/cjs/App-f3164dab.js.map +0 -1
  205. package/cjs/RouteLoader-5c44f039.js.map +0 -1
  206. package/cjs/ToJs-ca9bea03.js.map +0 -1
  207. package/cjs/actions-e22726ed.js.map +0 -1
  208. package/cjs/injectors-72d5b989.js.map +0 -1
  209. package/cjs/login-6c0ef139.js.map +0 -1
  210. package/cjs/reducers-91e3e239.js +0 -119
  211. package/cjs/reducers-91e3e239.js.map +0 -1
  212. package/cjs/selectors-69c3d37c.js.map +0 -1
  213. package/cjs/version-7d8852f6.js +0 -23
  214. package/cjs/version-7d8852f6.js.map +0 -1
  215. package/esm/App-08311b77.js.map +0 -1
  216. package/esm/RouteLoader-2cfdfc5c.js.map +0 -1
  217. package/esm/ToJs-19a3244a.js.map +0 -1
  218. package/esm/actions-fda5e103.js.map +0 -1
  219. package/esm/injectors-3cbe3981.js.map +0 -1
  220. package/esm/login-c05fee0e.js.map +0 -1
  221. package/esm/reducers-f855681f.js +0 -108
  222. package/esm/reducers-f855681f.js.map +0 -1
  223. package/esm/selectors-170581d2.js.map +0 -1
  224. package/esm/version-937d57fb.js +0 -19
  225. package/esm/version-937d57fb.js.map +0 -1
@@ -4,8 +4,8 @@ import { combineReducers } from 'redux-immutable';
4
4
  import thunkMiddleware from 'redux-thunk';
5
5
  import createSagaMiddleware, { END } from 'redux-saga';
6
6
  import { createInjectorsEnhancer } from 'redux-injectors';
7
- import { h as SET_TARGET_PROJECT, i as SET_SURROGATE_KEYS, e as SET_SIBLINGS, b as SET_ROUTE, S as SET_NAVIGATION_PATH, U as UPDATE_LOADING_STATE, c as SET_ENTRY, d as SET_ANCESTORS } from './actions-fda5e103.js';
8
- import { U as UserReducer } from './reducers-f855681f.js';
7
+ import { h as SET_TARGET_PROJECT, i as SET_SURROGATE_KEYS, e as SET_SIBLINGS, b as SET_ROUTE, S as SET_NAVIGATION_PATH, U as UPDATE_LOADING_STATE, c as SET_ENTRY, d as SET_ANCESTORS, j as action } from './actions-ddd9c623.js';
8
+ import { U as UserReducer } from './reducers-feab84fc.js';
9
9
  import { all } from '@redux-saga/core/effects';
10
10
 
11
11
  const ACTION_PREFIX = '@NAVIGATION/';
@@ -236,7 +236,8 @@ const routerMiddleware = history => store => next => action => {
236
236
  history[method](...args);
237
237
  };
238
238
 
239
- let reduxStore = null;
239
+ /* eslint-disable no-underscore-dangle */
240
+ let reduxStore;
240
241
  var createStore = ((featureReducers, initialState, history) => {
241
242
  let reduxDevToolsMiddleware = f => f;
242
243
 
@@ -353,5 +354,19 @@ const injectRedux = ({
353
354
  };
354
355
  const useInjectRedux = injectRedux;
355
356
 
356
- export { GET_NODE_TREE as G, SET_NODE_TREE as S, GET_NODE_TREE_ERROR as a, SET_VERSION as b, createStore as c, SET_VERSION_STATUS as d, navigation$1 as e, convertSagaArray as f, injectReducer as g, hasNavigationTree as h, injectRedux as i, injectSaga as j, navigation as n, reduxStore as r, useInjectRedux as u, version as v };
357
- //# sourceMappingURL=injectors-3cbe3981.js.map
357
+ const setVersion = (commitRef, buildNo) => action(SET_VERSION, {
358
+ commitRef,
359
+ buildNo
360
+ });
361
+ const setVersionStatus = status => action(SET_VERSION_STATUS, {
362
+ status
363
+ });
364
+
365
+ var version$1 = /*#__PURE__*/Object.freeze({
366
+ __proto__: null,
367
+ setVersion: setVersion,
368
+ setVersionStatus: setVersionStatus
369
+ });
370
+
371
+ export { GET_NODE_TREE as G, SET_NODE_TREE as S, setVersion as a, GET_NODE_TREE_ERROR as b, createStore as c, version$1 as d, navigation$1 as e, convertSagaArray as f, injectReducer as g, hasNavigationTree as h, injectRedux as i, injectSaga as j, navigation as n, reduxStore as r, setVersionStatus as s, useInjectRedux as u, version as v };
372
+ //# sourceMappingURL=version-64906b26.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-64906b26.js","sources":["../src/redux/types/navigation.js","../src/redux/reducers/navigation.js","../src/routing/redux/reducers.js","../src/redux/types/version.js","../src/redux/reducers/version.js","../src/redux/store/routerMiddleware.js","../src/redux/store/store.ts","../src/redux/selectors/navigation.js","../src/redux/store/injectors.js","../src/redux/actions/version.js"],"sourcesContent":["const ACTION_PREFIX = '@NAVIGATION/';\nexport const GET_NODE_TREE = `${ACTION_PREFIX}_GET_NODE_TREE`;\nexport const SET_NODE_TREE = `${ACTION_PREFIX}_SET_NODE_TREE`;\nexport const GET_NODE_TREE_ERROR = `${ACTION_PREFIX}_GET_NODE_TREE_ERROR`;\n","import { Map, fromJS, List } from 'immutable';\n\nimport { SET_NODE_TREE, GET_NODE_TREE_ERROR } from '~/redux/types/navigation';\n\nconst initialState = Map({\n root: null,\n treeDepends: new List([]),\n isError: false,\n isReady: false,\n});\n\nexport default (state = initialState, action) => {\n switch (action.type) {\n case SET_NODE_TREE: {\n return state.set('root', fromJS(action.nodes)).set('isReady', true);\n }\n case GET_NODE_TREE_ERROR: {\n return state.set('isError', true);\n }\n default:\n return state;\n }\n};\n","import { OrderedMap, fromJS, List, Set } from 'immutable';\nimport {\n SET_ENTRY,\n SET_NAVIGATION_PATH,\n SET_ANCESTORS,\n SET_TARGET_PROJECT,\n SET_ROUTE,\n SET_SIBLINGS,\n SET_SURROGATE_KEYS,\n UPDATE_LOADING_STATE,\n} from './types';\n\nlet initialState = OrderedMap({\n currentHostname: null,\n contentTypeId: null,\n currentPath: '/',\n currentNode: OrderedMap(),\n currentNodeAncestors: List(),\n currentProject: 'unknown',\n entryID: null,\n entry: null,\n currentTreeId: null,\n entryDepends: List(),\n error: undefined,\n isError: false,\n isLoading: false,\n location: OrderedMap(),\n mappedEntry: null,\n nodeDepends: List(),\n notFound: false,\n staticRoute: null,\n statusCode: 200,\n});\n\nexport default (state = initialState, action) => {\n switch (action.type) {\n case SET_ANCESTORS: {\n if (action.ancestors) {\n return state.set('currentNodeAncestors', fromJS(action.ancestors));\n }\n return state.set('currentNodeAncestors', fromJS(action.ancestors));\n }\n case SET_ENTRY: {\n const {\n entry,\n error,\n mappedEntry,\n node = {},\n isError = false,\n isLoading = false,\n notFound = false,\n statusCode,\n } = action;\n\n let defaultStatus = 200;\n if (notFound === true && isError === false) defaultStatus = 404;\n else if (isError === true) defaultStatus = statusCode || 500;\n\n let nextState;\n\n if (!entry) {\n nextState = state\n .set('entryID', null)\n .set('entry', null)\n .set('error', fromJS(error))\n .set('mappedEntry', null)\n .set('isError', isError)\n .set('isLoading', isLoading)\n .set('notFound', notFound)\n .set('statusCode', statusCode || defaultStatus);\n } else {\n nextState = state\n .set('entryID', action.id)\n .set('entry', fromJS(entry))\n .set('error', fromJS(error))\n .set('isError', isError)\n .set('isLoading', isLoading)\n .set('notFound', notFound)\n .set('statusCode', statusCode || defaultStatus);\n\n if (mappedEntry && Object.keys(mappedEntry).length > 0)\n nextState = nextState\n .set('mappedEntry', fromJS(mappedEntry))\n .set('entry', fromJS({ sys: entry.sys }));\n }\n\n if (!node) {\n return nextState.set('nodeDepends', null).set('currentNode', null);\n } else {\n // On Set Node, we reset all dependants.\n return nextState\n .set('currentNode', fromJS(node))\n .removeIn(['currentNode', 'entry']); // We have the entry stored elsewhere, so lets not keep it twice.\n }\n }\n case UPDATE_LOADING_STATE: {\n return state.set('isLoading', action.isLoading);\n }\n case SET_NAVIGATION_PATH: {\n let staticRoute = false;\n if (action.staticRoute) {\n staticRoute = { ...action.staticRoute };\n }\n if (action.path) {\n // Don't run a path update on initial load as we allready should have it in redux\n const entryUri = state.getIn(['entry', 'sys', 'uri']);\n if (entryUri != action.path) {\n return state\n .set('currentPath', fromJS(action.path))\n .set('location', fromJS(action.location))\n .set(\n 'staticRoute',\n fromJS({\n ...staticRoute,\n route: { ...staticRoute.route, component: null },\n })\n )\n .set('isLoading', typeof window !== 'undefined');\n } else {\n return state.set('location', fromJS(action.location)).set(\n 'staticRoute',\n fromJS({\n ...staticRoute,\n route: { ...staticRoute.route, component: null },\n })\n );\n }\n }\n return state;\n }\n case SET_ROUTE: {\n return state.set('nextPath', action.path);\n }\n case SET_SIBLINGS: {\n // Can be null in some cases like the homepage.\n let currentNodeSiblingParent = null;\n let siblingIDs = [];\n if (action.siblings && action.siblings.length > 0) {\n currentNodeSiblingParent = action.siblings[0].parentId;\n siblingIDs = action.siblings.map(node => {\n return node.id;\n });\n }\n let currentNodeDepends = state.get('nodeDepends');\n const allNodeDepends = Set.union([Set(siblingIDs), currentNodeDepends]);\n return state\n .set('nodeDepends', allNodeDepends)\n .set('currentNodeSiblings', fromJS(action.siblings))\n .set('currentNodeSiblingsParent', currentNodeSiblingParent);\n }\n case SET_SURROGATE_KEYS: {\n return state.set('surrogateKeys', action.keys);\n }\n case SET_TARGET_PROJECT: {\n return state\n .set('currentProject', action.project)\n .set('currentTreeId', '') //getTreeID(action.project))\n .set('allowedGroups', fromJS(action.allowedGroups))\n .set('currentHostname', action.hostname);\n }\n default:\n return state;\n }\n};\n","const VERSION_PREFIX = '@VERSION/';\nexport const SET_VERSION = `${VERSION_PREFIX}SET_VERSION`;\nexport const SET_VERSION_STATUS = `${VERSION_PREFIX}SET_VERSION_STATUS`;\n","import { Map } from 'immutable';\nimport { SET_VERSION, SET_VERSION_STATUS } from '~/redux/types/version';\n\nlet initialState = Map({\n commitRef: null,\n buildNo: null,\n contensisVersionStatus: 'published',\n});\n\nexport default (state = initialState, action) => {\n switch (action.type) {\n case SET_VERSION_STATUS: {\n return state.set('contensisVersionStatus', action.status);\n }\n case SET_VERSION: {\n return state\n .set('commitRef', action.commitRef)\n .set('buildNo', action.buildNo);\n }\n default:\n return state;\n }\n};\n","/**\n * This middleware captures 'CALL_HISTORY_METHOD' actions to redirect to the\n * provided history object. This will prevent these actions from reaching your\n * reducer or any middleware that comes after this one.\n */\n/* eslint-disable no-unused-vars */\nconst routerMiddleware = history => store => next => action => {\n if (action.type !== 'CALL_HISTORY_METHOD') {\n return next(action);\n }\n\n const {\n payload: { method, args },\n } = action;\n history[method](...args);\n};\n\nexport default routerMiddleware;\n","/* eslint-disable no-underscore-dangle */\nimport {\n Action,\n applyMiddleware,\n compose,\n createStore,\n Store,\n StoreEnhancer,\n} from 'redux';\nimport { combineReducers } from 'redux-immutable';\nimport thunkMiddleware from 'redux-thunk';\nimport createSagaMiddleware, { END } from 'redux-saga';\nimport { createInjectorsEnhancer } from 'redux-injectors';\n\n// Core reducers\nimport NavigationReducer from '../reducers/navigation';\nimport RoutingReducer from '~/routing/redux/reducers';\nimport UserReducer from '~/user/redux/reducers';\nimport VersionReducer from '../reducers/version';\nimport routerMiddleware from './routerMiddleware';\n\nexport let reduxStore;\n\ndeclare let window: Window &\n typeof globalThis & {\n __REDUX_DEVTOOLS_EXTENSION__: any;\n };\n\nexport default (featureReducers, initialState, history) => {\n let reduxDevToolsMiddleware = f => f;\n\n if (typeof window != 'undefined') {\n reduxDevToolsMiddleware = window.__REDUX_DEVTOOLS_EXTENSION__\n ? window.__REDUX_DEVTOOLS_EXTENSION__()\n : f => f;\n }\n\n const sagaMiddleware = createSagaMiddleware();\n\n const reducers = {\n navigation: NavigationReducer,\n routing: RoutingReducer,\n user: UserReducer,\n version: VersionReducer,\n ...featureReducers,\n };\n\n const createReducer = (injectedReducers = {}) => {\n const rootReducer = combineReducers({\n ...injectedReducers,\n // other non-injected reducers go here\n ...reducers,\n });\n\n return rootReducer;\n };\n\n const store = initialState => {\n const runSaga = sagaMiddleware.run;\n\n const middleware: StoreEnhancer<\n {\n dispatch: unknown;\n },\n unknown\n > = compose(\n applyMiddleware(\n thunkMiddleware,\n sagaMiddleware,\n routerMiddleware(history)\n ),\n createInjectorsEnhancer({\n createReducer,\n runSaga,\n }),\n reduxDevToolsMiddleware\n );\n\n const store: Store<any, Action<any>> & {\n runSaga?: typeof runSaga;\n close?: () => void;\n } = createStore(createReducer(), initialState, middleware);\n\n store.runSaga = runSaga;\n store.close = () => store.dispatch(END);\n\n return store;\n };\n\n reduxStore = store(initialState);\n return reduxStore;\n};\n","export const hasNavigationTree = state => {\n return state.getIn(['navigation', 'isReady']);\n};\n\nexport const selectNavigationRoot = state => {\n return state.getIn(['navigation', 'root']);\n};\n\nexport const selectNavigationDepends = state => {\n return state.getIn(['navigation', 'treeDepends']);\n};\n","import { all } from 'redux-saga/effects';\nimport { reduxStore as DefaultStore } from './store';\n\nexport const convertSagaArray = sagas => {\n if (Array.isArray(sagas))\n return function* rootSaga() {\n yield all(sagas);\n };\n return sagas;\n};\n\nexport const injectReducer = ({ key, reducer }, store = DefaultStore) => {\n if (\n Reflect.has(store.injectedReducers, key) &&\n store.injectedReducers[key] === reducer\n )\n return;\n store.injectedReducers[key] = reducer;\n\n store.replaceReducer(store.createReducer(store.injectedReducers));\n};\n\nexport const injectSaga = ({ key, saga }, store = DefaultStore) => {\n const rootSaga = convertSagaArray(saga);\n let hasSaga = Reflect.has(store.injectedSagas, key);\n\n if (process.env.NODE_ENV !== 'production') {\n const oldDescriptor = store.injectedSagas[key]; // enable hot reloading of daemon and once-till-unmount sagas\n\n if (hasSaga && oldDescriptor.saga !== rootSaga) {\n oldDescriptor.task.cancel();\n hasSaga = false;\n }\n }\n console.info('injectSaga, key: ', key, 'hasSaga: ', hasSaga);\n\n if (!hasSaga) {\n store.injectedSagas[key] = {\n key,\n saga: rootSaga,\n task: store.runSaga(rootSaga),\n };\n }\n};\n\nexport const injectRedux = ({ key, reducer, saga }, store = DefaultStore) => {\n console.info('injectRedux, key: ', key);\n if (reducer) injectReducer({ key, reducer }, store);\n if (saga) injectSaga({ key, saga }, store);\n};\n\nexport const useInjectRedux = injectRedux;\n","import { action } from '../util';\nimport { SET_VERSION, SET_VERSION_STATUS } from '../types/version';\n\nexport const setVersion = (commitRef, buildNo) =>\n action(SET_VERSION, { commitRef, buildNo });\n\nexport const setVersionStatus = status =>\n action(SET_VERSION_STATUS, { status });\n"],"names":["ACTION_PREFIX","GET_NODE_TREE","SET_NODE_TREE","GET_NODE_TREE_ERROR","initialState","Map","root","treeDepends","List","isError","isReady","state","action","type","set","fromJS","nodes","OrderedMap","currentHostname","contentTypeId","currentPath","currentNode","currentNodeAncestors","currentProject","entryID","entry","currentTreeId","entryDepends","error","undefined","isLoading","location","mappedEntry","nodeDepends","notFound","staticRoute","statusCode","SET_ANCESTORS","ancestors","SET_ENTRY","node","defaultStatus","nextState","id","Object","keys","length","sys","removeIn","UPDATE_LOADING_STATE","SET_NAVIGATION_PATH","path","entryUri","getIn","route","component","window","SET_ROUTE","SET_SIBLINGS","currentNodeSiblingParent","siblingIDs","siblings","parentId","map","currentNodeDepends","get","allNodeDepends","Set","union","SET_SURROGATE_KEYS","SET_TARGET_PROJECT","project","allowedGroups","hostname","VERSION_PREFIX","SET_VERSION","SET_VERSION_STATUS","commitRef","buildNo","contensisVersionStatus","status","routerMiddleware","history","store","next","payload","method","args","reduxStore","featureReducers","reduxDevToolsMiddleware","f","__REDUX_DEVTOOLS_EXTENSION__","sagaMiddleware","createSagaMiddleware","reducers","navigation","NavigationReducer","routing","RoutingReducer","user","UserReducer","version","VersionReducer","createReducer","injectedReducers","rootReducer","combineReducers","runSaga","run","middleware","compose","applyMiddleware","thunkMiddleware","createInjectorsEnhancer","createStore","close","dispatch","END","hasNavigationTree","selectNavigationRoot","selectNavigationDepends","convertSagaArray","sagas","Array","isArray","rootSaga","all","injectReducer","key","reducer","DefaultStore","Reflect","has","replaceReducer","injectSaga","saga","hasSaga","injectedSagas","process","env","NODE_ENV","oldDescriptor","task","cancel","console","info","injectRedux","useInjectRedux","setVersion","setVersionStatus"],"mappings":";;;;;;;;;;AAAA,MAAMA,aAAa,GAAG,cAAtB;MACaC,aAAa,GAAI,GAAED,aAAc;MACjCE,aAAa,GAAI,GAAEF,aAAc;MACjCG,mBAAmB,GAAI,GAAEH,aAAc;;;;;;;;;ACCpD,MAAMI,YAAY,GAAGC,GAAG,CAAC;AACvBC,EAAAA,IAAI,EAAE,IADiB;AAEvBC,EAAAA,WAAW,EAAE,IAAIC,IAAJ,CAAS,EAAT,CAFU;AAGvBC,EAAAA,OAAO,EAAE,KAHc;AAIvBC,EAAAA,OAAO,EAAE;AAJc,CAAD,CAAxB;AAOA,yBAAe,CAACC,KAAK,GAAGP,YAAT,EAAuBQ,MAAvB,KAAkC;AAC/C,UAAQA,MAAM,CAACC,IAAf;AACE,SAAKX,aAAL;AAAoB;AAClB,eAAOS,KAAK,CAACG,GAAN,CAAU,MAAV,EAAkBC,MAAM,CAACH,MAAM,CAACI,KAAR,CAAxB,EAAwCF,GAAxC,CAA4C,SAA5C,EAAuD,IAAvD,CAAP;AACD;;AACD,SAAKX,mBAAL;AAA0B;AACxB,eAAOQ,KAAK,CAACG,GAAN,CAAU,SAAV,EAAqB,IAArB,CAAP;AACD;;AACD;AACE,aAAOH,KAAP;AARJ;AAUD,CAXD;;ACCA,IAAIP,cAAY,GAAGa,UAAU,CAAC;AAC5BC,EAAAA,eAAe,EAAE,IADW;AAE5BC,EAAAA,aAAa,EAAE,IAFa;AAG5BC,EAAAA,WAAW,EAAE,GAHe;AAI5BC,EAAAA,WAAW,EAAEJ,UAAU,EAJK;AAK5BK,EAAAA,oBAAoB,EAAEd,IAAI,EALE;AAM5Be,EAAAA,cAAc,EAAE,SANY;AAO5BC,EAAAA,OAAO,EAAE,IAPmB;AAQ5BC,EAAAA,KAAK,EAAE,IARqB;AAS5BC,EAAAA,aAAa,EAAE,IATa;A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B/C,KAAnB,CAAb;AACb,MAAIqD,IAAJ,EAAUD,UAAU,CAAC;AAAEN,IAAAA,GAAF;AAAOO,IAAAA;AAAP,GAAD,EAAgBrD,KAAhB,CAAV;AACX;MAEYiE,cAAc,GAAGD;;MChDjBE,UAAU,GAAG,CAACxE,SAAD,EAAYC,OAAZ,KACxBlE,MAAM,CAAC+D,WAAD,EAAc;AAAEE,EAAAA,SAAF;AAAaC,EAAAA;AAAb,CAAd;MAEKwE,gBAAgB,GAAGtE,MAAM,IACpCpE,MAAM,CAACgE,kBAAD,EAAqB;AAAEI,EAAAA;AAAF,CAArB;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AppRootProps } from '../routing/routes';
3
+ declare const _default: (props: AppRootProps) => JSX.Element;
4
+ export default _default;
@@ -0,0 +1,40 @@
1
+ /// <reference types="react" />
2
+ export interface IVersionInfoProps {
3
+ deliveryApi: {
4
+ rootUrl: string;
5
+ accessToken: string;
6
+ projectId: string;
7
+ livePublishingRootUrl: string;
8
+ };
9
+ devEnv: any;
10
+ disableSsrRedux: boolean;
11
+ nodeEnv: string;
12
+ packageDetail: any;
13
+ project: string;
14
+ projects: any;
15
+ proxyDeliveryApi: any;
16
+ publicUri: string;
17
+ reverseProxyPaths: string[];
18
+ servers: {
19
+ alias: string;
20
+ api: string;
21
+ cms: string;
22
+ web: string;
23
+ iis: string;
24
+ previewIis: string;
25
+ previewWeb: string;
26
+ };
27
+ uris: {
28
+ gitRepo: string;
29
+ commit: string;
30
+ pipeline: string;
31
+ };
32
+ version: {
33
+ buildNumber: string;
34
+ commitRef: string;
35
+ contensisVersionStatus: string;
36
+ };
37
+ zenPackageVersions: string[];
38
+ }
39
+ declare const _default: import("react-redux").ConnectedComponent<({ deliveryApi, devEnv, disableSsrRedux, nodeEnv, packageDetail, project, projects, proxyDeliveryApi, publicUri, reverseProxyPaths, servers, uris, version, zenPackageVersions, }: IVersionInfoProps) => JSX.Element, import("react-redux").Omit<IVersionInfoProps, "disableSsrRedux" | "reverseProxyPaths" | "proxyDeliveryApi" | "version" | "packageDetail" | "uris" | "zenPackageVersions" | "deliveryApi" | "devEnv" | "nodeEnv" | "projects" | "publicUri" | "project" | "servers">>;
40
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const VersionInfoStyledTable: any;
@@ -0,0 +1,2 @@
1
+ import VersionInfo from './components/VersionInfo';
2
+ export default VersionInfo;
@@ -0,0 +1,3 @@
1
+ import { IVersionInfoProps } from '../components/VersionInfo';
2
+ declare const mapStateToVersionInfo: (state: any) => IVersionInfoProps;
3
+ export default mapStateToVersionInfo;
@@ -0,0 +1,11 @@
1
+ import 'isomorphic-fetch';
2
+ import React from 'react';
3
+ import { AppConfig } from "../config";
4
+ declare type ReactAppProps = {
5
+ routes: any;
6
+ withEvents: any;
7
+ };
8
+ declare class ClientApp {
9
+ constructor(ReactApp: React.ComponentType<ReactAppProps>, config: AppConfig);
10
+ }
11
+ export default ClientApp;
@@ -0,0 +1,3 @@
1
+ import ClientApp from './client';
2
+ export { default as ReactApp } from "../app/App";
3
+ export default ClientApp;
@@ -0,0 +1,33 @@
1
+ import { AppRoutes, WithEvents } from './routing/routes';
2
+ import handleResponse from './server/features/response-handler';
3
+ export declare type AppConfig = {
4
+ routes: AppRoutes;
5
+ withReducers: {
6
+ [key: string]: any;
7
+ };
8
+ withSagas: any[];
9
+ withEvents: WithEvents;
10
+ };
11
+ export declare type ServerConfig = AppConfig & {
12
+ appRootPath?: string;
13
+ differentialBundles?: boolean;
14
+ disableSsrRedux?: boolean;
15
+ handleResponses?: typeof handleResponse;
16
+ reverseProxyPaths?: string[];
17
+ packagejson: any;
18
+ proxyDeliveryApi?: boolean;
19
+ scripts?: {
20
+ attributes?: {
21
+ [key: string]: string;
22
+ };
23
+ startup?: string;
24
+ };
25
+ staticFolderPath?: string;
26
+ staticRoutePath?: string;
27
+ stats: string;
28
+ templates: {
29
+ html: string;
30
+ static: string;
31
+ fragment: string;
32
+ };
33
+ };
@@ -0,0 +1 @@
1
+ export * from 'zengenti-forms-package';
@@ -0,0 +1,5 @@
1
+ export * from "./config";
2
+ export * from "./routing/routes";
3
+ import internalServer from "./server/internalServer";
4
+ export { default as ReactApp } from "./app/App";
5
+ export default internalServer;
@@ -0,0 +1,9 @@
1
+ declare namespace _default {
2
+ export { navigation };
3
+ export { routing };
4
+ export { version };
5
+ }
6
+ export default _default;
7
+ import * as navigation from "./navigation";
8
+ import * as routing from "../../routing/redux/actions";
9
+ import * as version from "./version";
@@ -0,0 +1 @@
1
+ export function loadNavigationTree(): any;
@@ -0,0 +1,2 @@
1
+ export function setVersion(commitRef: any, buildNo: any): any;
2
+ export function setVersionStatus(status: any): any;
@@ -0,0 +1,17 @@
1
+ export { reduxStore as store } from './store/store';
2
+ export { convertSagaArray, injectRedux, injectReducer, injectSaga, useInjectRedux, } from './store/injectors';
3
+ export declare const navigation: {
4
+ types: typeof import("./types/navigation");
5
+ actions: typeof import("./actions/navigation");
6
+ selectors: typeof import("./selectors/navigation");
7
+ };
8
+ export declare const routing: {
9
+ types: typeof import("../routing/redux/types");
10
+ actions: typeof import("../routing/redux/actions");
11
+ selectors: typeof import("../routing/redux/selectors");
12
+ };
13
+ export declare const version: {
14
+ types: typeof import("./types/version");
15
+ actions: typeof import("./actions/version");
16
+ selectors: typeof import("./selectors/version");
17
+ };
@@ -0,0 +1,3 @@
1
+ declare function _default(state: Map<string, any> | undefined, action: any): Map<string, any>;
2
+ export default _default;
3
+ import { Map } from "immutable";
@@ -0,0 +1,3 @@
1
+ declare function _default(state: Map<string, string | null> | undefined, action: any): Map<string, string | null>;
2
+ export default _default;
3
+ import { Map } from "immutable";
@@ -0,0 +1 @@
1
+ export default function _default(featureSagas?: any[]): () => Generator<import("redux-saga/effects").AllEffect<any>, void, unknown>;
@@ -0,0 +1,4 @@
1
+ export function ensureNodeTreeSaga(action: any): Generator<import("redux-saga/effects").SelectEffect | Promise<import("contensis-delivery-api/lib/models").Node> | import("redux-saga/effects").PutEffect<{
2
+ type: string;
3
+ }>, void, unknown>;
4
+ export const navigationSagas: import("redux-saga/effects").ForkEffect<never>[];
@@ -0,0 +1,9 @@
1
+ declare namespace _default {
2
+ export { navigation };
3
+ export { routing };
4
+ export { version };
5
+ }
6
+ export default _default;
7
+ import * as navigation from "./navigation";
8
+ import * as routing from "../../routing/redux/selectors";
9
+ import * as version from "./version";
@@ -0,0 +1,3 @@
1
+ export function hasNavigationTree(state: any): any;
2
+ export function selectNavigationRoot(state: any): any;
3
+ export function selectNavigationDepends(state: any): any;
@@ -0,0 +1,3 @@
1
+ export function selectCommitRef(state: any): any;
2
+ export function selectBuildNumber(state: any): any;
3
+ export function selectVersionStatus(state: any): any;
@@ -0,0 +1,2 @@
1
+ export function history(options?: {}): import("history").History<unknown> | import("history").MemoryHistory<unknown>;
2
+ export const browserHistory: import("history").History<unknown> | import("history").MemoryHistory<unknown>;
@@ -0,0 +1,19 @@
1
+ export function convertSagaArray(sagas: any): any;
2
+ export function injectReducer({ key, reducer }: {
3
+ key: any;
4
+ reducer: any;
5
+ }, store?: any): void;
6
+ export function injectSaga({ key, saga }: {
7
+ key: any;
8
+ saga: any;
9
+ }, store?: any): void;
10
+ export function injectRedux({ key, reducer, saga }: {
11
+ key: any;
12
+ reducer: any;
13
+ saga: any;
14
+ }, store?: any): void;
15
+ export function useInjectRedux({ key, reducer, saga }: {
16
+ key: any;
17
+ reducer: any;
18
+ saga: any;
19
+ }, store?: any): void;
@@ -0,0 +1,7 @@
1
+ export default routerMiddleware;
2
+ /**
3
+ * This middleware captures 'CALL_HISTORY_METHOD' actions to redirect to the
4
+ * provided history object. This will prevent these actions from reaching your
5
+ * reducer or any middleware that comes after this one.
6
+ */
7
+ declare function routerMiddleware(history: any): (store: any) => (next: any) => (action: any) => any;
@@ -0,0 +1,3 @@
1
+ export declare let reduxStore: any;
2
+ declare const _default: (featureReducers: any, initialState: any, history: any) => any;
3
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare namespace _default {
2
+ export { navigation };
3
+ export { routing };
4
+ export { version };
5
+ }
6
+ export default _default;
7
+ import * as navigation from "./navigation";
8
+ import * as routing from "../../routing/redux/types";
9
+ import * as version from "./version";
@@ -0,0 +1,3 @@
1
+ export const GET_NODE_TREE: string;
2
+ export const SET_NODE_TREE: string;
3
+ export const GET_NODE_TREE_ERROR: string;
@@ -0,0 +1,2 @@
1
+ export const SET_VERSION: string;
2
+ export const SET_VERSION_STATUS: string;
@@ -0,0 +1 @@
1
+ export declare const action: (type: string, payload?: any) => any;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const Loading: {
3
+ (): JSX.Element;
4
+ propTypes: {};
5
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const NotFound: ({ statusCode, statusText, }: {
3
+ statusCode: number;
4
+ statusText: string;
5
+ }) => JSX.Element;
6
+ export default NotFound;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: import("react-redux").ConnectedComponent<(wrappedComponentProps: any) => JSX.Element, import("react-redux").Omit<any, "isError" | "contentTypeId" | "entry" | "isLoading" | "mappedEntry" | "statusCode" | "statusText" | "isLoggedIn" | "isNotFound" | "projectId" | "setNavigationPath" | "statePath" | "userGroups">>;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ export declare const Status: ({ code, children, }: React.PropsWithChildren<{
3
+ code: number;
4
+ }>) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * as types from './redux/types';
2
+ export * as actions from './redux/actions';
3
+ export * as selectors from './redux/selectors';
4
+ export { default as RouteLoader } from './components/RouteLoader';
@@ -0,0 +1,6 @@
1
+ export declare const setNotFound: (notFound: any) => any;
2
+ export declare const setNavigationPath: (path: any, location: any, staticRoute: any, withEvents: any, statePath: any, routes: any) => any;
3
+ export declare const setCurrentProject: (project: any, allowedGroups: any, hostname: any) => any;
4
+ export declare const setRoute: (path: any, state: any) => any;
5
+ export declare const setRouteEntry: (entry: any) => any;
6
+ export declare const setSurrogateKeys: (keys: any) => any;
@@ -0,0 +1,4 @@
1
+ declare function _default(state: OrderedMap<string, string | number | boolean | OrderedMap<any, any> | List<any> | null | undefined> | undefined, action: any): OrderedMap<string, string | number | boolean | OrderedMap<any, any> | List<any> | null | undefined>;
2
+ export default _default;
3
+ import { OrderedMap } from "immutable";
4
+ import { List } from "immutable";
@@ -0,0 +1 @@
1
+ export const routingSagas: import("redux-saga/effects").ForkEffect<never>[];
@@ -0,0 +1,25 @@
1
+ export function selectRouteEntry(state: any): any;
2
+ export function selectMappedEntry(state: any): any;
3
+ export function selectNodeDepends(state: any): any;
4
+ export function selectCurrentHostname(state: any): any;
5
+ export function selectCurrentTreeID(state: any): any;
6
+ export function selectRouteEntryEntryId(state: any): any;
7
+ export function selectRouteEntryContentTypeId(state: any): any;
8
+ export function selectRouteEntryLanguage(state: any): any;
9
+ export function selectRouteEntrySlug(state: any): any;
10
+ export function selectRouteEntryID(state: any): any;
11
+ export function selectCurrentPath(state: any): any;
12
+ export function selectCurrentSearch(state: any): any;
13
+ export function selectCurrentHash(state: any): any;
14
+ export function selectQueryStringAsObject(state: any): any;
15
+ export function selectCurrentProject(state: any): any;
16
+ export function selectIsNotFound(state: any): any;
17
+ export function selectCurrentAncestors(state: any): any;
18
+ export function selectCurrentSiblings(state: any): any;
19
+ export function selectCurrentNode(state: any): any;
20
+ export function selectCurrentChildren(state: any): any;
21
+ export function selectBreadcrumb(state: any): any;
22
+ export function selectRouteErrorMessage(state: any): any;
23
+ export function selectRouteIsError(state: any): any;
24
+ export function selectRouteLoading(state: any): any;
25
+ export function selectRouteStatusCode(state: any): any;
@@ -0,0 +1,12 @@
1
+ export declare const GET_ENTRY: string;
2
+ export declare const SET_ENTRY: string;
3
+ export declare const SET_NODE: string;
4
+ export declare const SET_ANCESTORS: string;
5
+ export declare const SET_SIBLINGS: string;
6
+ export declare const SET_ENTRY_ID: string;
7
+ export declare const SET_SURROGATE_KEYS: string;
8
+ export declare const SET_NAVIGATION_NOT_FOUND: string;
9
+ export declare const SET_NAVIGATION_PATH: string;
10
+ export declare const SET_TARGET_PROJECT: string;
11
+ export declare const SET_ROUTE: string;
12
+ export declare const UPDATE_LOADING_STATE: string;
@@ -0,0 +1,98 @@
1
+ import { MatchedRoute, RouteConfig } from 'react-router-config';
2
+ import { Entry, Node } from 'contensis-delivery-api/lib/models';
3
+ import React from 'react';
4
+ declare type RouteComponent<Props> = React.ComponentType<Props>;
5
+ declare type RouteNode = Node & {
6
+ ancestors: Node[];
7
+ children: Node[];
8
+ };
9
+ export declare type AppRoutes = {
10
+ ContentTypeMappings: ContentTypeMapping[];
11
+ StaticRoutes: StaticRoute[];
12
+ };
13
+ export declare type AppRootProps = {
14
+ routes: AppRoutes;
15
+ withEvents: WithEvents;
16
+ };
17
+ export declare type RouteLoaderProps = {
18
+ loadingComponent?: React.ComponentType;
19
+ notFoundComponent?: React.ComponentType;
20
+ };
21
+ export declare type EntryMapper = (<MappedProps>(node: RouteNode, state?: any) => MappedProps | unknown) | (<MappedProps>(node: RouteNode, state?: any) => Promise<MappedProps | unknown>);
22
+ export declare type ReduxInjector = () => Promise<{
23
+ key: string;
24
+ reducer: any;
25
+ saga: any;
26
+ }>;
27
+ declare type UserGroupRequisite = {
28
+ id?: string;
29
+ name?: string;
30
+ };
31
+ export declare type RequireLogin = boolean | UserGroupRequisite[];
32
+ export declare type ContentTypeMapping = {
33
+ contentTypeID: string;
34
+ component: RouteComponent<any>;
35
+ entryMapper?: EntryMapper;
36
+ fields?: string[];
37
+ injectRedux?: ReduxInjector;
38
+ linkDepth?: number;
39
+ nodeOptions?: {
40
+ children?: {
41
+ fields?: string[];
42
+ linkDepth?: number;
43
+ };
44
+ };
45
+ requireLogin?: RequireLogin;
46
+ };
47
+ export declare type StaticRoute = Omit<RouteConfig, 'component'> & {
48
+ component: RouteComponent<any>;
49
+ fetchNode?: boolean;
50
+ fetchNodeLevel?: number;
51
+ injectRedux?: ReduxInjector;
52
+ requireLogin?: RequireLogin;
53
+ ssr?: boolean;
54
+ ssrOnly?: boolean;
55
+ };
56
+ export declare type OnRouteLoadArgs = {
57
+ location: {
58
+ pathname: string;
59
+ search: string;
60
+ hash: string;
61
+ key?: string;
62
+ };
63
+ path: string;
64
+ staticRoute: MatchedRoute<any, StaticRoute>;
65
+ statePath: string;
66
+ };
67
+ export declare type OnRouteLoadedArgs = {
68
+ entry: Entry | any;
69
+ location: {
70
+ pathname: string;
71
+ search: string;
72
+ hash: string;
73
+ key?: string;
74
+ };
75
+ path: string;
76
+ staticRoute: MatchedRoute<any, StaticRoute>;
77
+ };
78
+ export declare type RouteLoadOptions = {
79
+ customNavigation?: boolean | {
80
+ ancestors: boolean | number;
81
+ children: boolean | number;
82
+ siblings: boolean | number;
83
+ tree: boolean | number;
84
+ };
85
+ customRouting?: boolean;
86
+ defaultLang?: string;
87
+ entryLinkDepth?: number;
88
+ preventScrollTop?: boolean;
89
+ refetchNode?: true;
90
+ };
91
+ export declare type RouteLoadedOptions = {
92
+ requireLogin?: RequireLogin;
93
+ };
94
+ export declare type WithEvents = {
95
+ onRouteLoad: (args: OnRouteLoadArgs) => Generator<void | RouteLoadOptions>;
96
+ onRouteLoaded: (args: OnRouteLoadedArgs) => Generator<void | RouteLoadedOptions>;
97
+ };
98
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const fieldExpression: (field: any, value: any, operator?: string, weight?: null) => any[];
2
+ export declare const defaultExpressions: (versionStatus: any) => import("contensis-core-api").IExpression[];
@@ -0,0 +1,2 @@
1
+ import { ContentTypeMapping } from '../routes';
2
+ export declare const findContentTypeMapping: (ContentTypeMappings: ContentTypeMapping[], contentTypeId: string) => ContentTypeMapping | undefined;
@@ -0,0 +1,2 @@
1
+ import { Query } from "../../util/ContensisDeliveryApi";
2
+ export declare const routeEntryByFieldsQuery: (id: string, language?: string, fields?: string[], versionStatus?: string) => Query;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { Mappers } from '../models/Search';
3
+ declare const withListing: (mappers: Mappers) => <Props extends Record<keyof Props, any>>(ListingComponent: React.FC<Props>) => import("react-redux").ConnectedComponent<any, import("react-redux").Omit<unknown, never>>;
4
+ export default withListing;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { Mappers } from '../models/Search';
3
+ declare const withSearch: (mappers: Mappers) => <Props extends Record<keyof Props, any>>(SearchComponent: React.ComponentType<Props>) => import("react-redux").ConnectedComponent<any, import("react-redux").Omit<unknown, never>>;
4
+ export default withSearch;
@@ -0,0 +1,23 @@
1
+ import { Facet, Mappers } from '../models/Search';
2
+ import { DebugFlags } from '../models/SearchActions';
3
+ declare type UseMiniListProps = {
4
+ id: string;
5
+ config?: Facet;
6
+ debug?: DebugFlags;
7
+ defaultLang?: string;
8
+ excludeIds?: string[];
9
+ mapper?: Mappers['results'];
10
+ mappers?: Mappers;
11
+ params?: {
12
+ [key: string]: string;
13
+ };
14
+ };
15
+ declare const useMinilist: ({ id, config, excludeIds, mapper, mappers, params, defaultLang, debug, }?: UseMiniListProps) => {
16
+ filters: Object;
17
+ isLoading: any;
18
+ pagingInfo: any;
19
+ results: any[];
20
+ searchTerm: any;
21
+ title: any;
22
+ };
23
+ export default useMinilist;
@@ -0,0 +1,16 @@
1
+ export declare const Context: {
2
+ facets: string;
3
+ listings: string;
4
+ minilist: string;
5
+ };
6
+ export * from './models';
7
+ export { default as withSearch } from './containers/withSearch';
8
+ export { default as withListing } from './containers/withListing';
9
+ export { doSearch, setRouteFilters, searchSagas as sagas } from './redux/sagas';
10
+ export { default as useMinilist } from './hooks/useMinilist.hook';
11
+ export * as actions from './redux/actions';
12
+ export * as queries from './redux/queries';
13
+ export { default as reducer } from './redux/reducers';
14
+ export * as schema from './redux/schema';
15
+ export * as selectors from './redux/selectors';
16
+ export * as types from './redux/types';
@@ -0,0 +1,5 @@
1
+ export declare enum Context {
2
+ facets = "facets",
3
+ listings = "listings",
4
+ minilist = "minilist"
5
+ }