@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
@@ -0,0 +1,112 @@
1
+ import { List, Map, OrderedMap } from 'immutable';
2
+ import { Context } from '../models/Enums';
3
+ import { Listing } from '../models/Search';
4
+ import { AppState, Tab } from '../models/SearchState';
5
+ import { filtering, initialState, searchFacet, searchTab } from './schema';
6
+ export declare const getSearchContext: (state: AppState) => Context;
7
+ export declare const getCurrent: (state: Map<'search', typeof initialState>, context?: Context) => string;
8
+ export declare const getCurrentFacet: (state: AppState) => string;
9
+ export declare const getCurrentListing: (state: AppState) => string;
10
+ export declare const getCurrentTab: (state: AppState) => Map<string, Tab[keyof Tab]>;
11
+ export declare const getFacets: (state: AppState) => OrderedMap<string, typeof searchFacet>;
12
+ export declare const getTabFacets: (state: AppState) => OrderedMap<string, OrderedMap<string, string | number | List<any> | Map<string, boolean | List<any>> | Map<string, number | boolean | List<any>> | Map<unknown, unknown> | null>>;
13
+ export declare const getFacetTitles: (state: AppState) => {
14
+ key: string;
15
+ title: string | undefined;
16
+ totalCount: number;
17
+ }[];
18
+ export declare const getFacet: (state: AppState, facetName?: string, context?: Context) => any;
19
+ export declare const getListing: (state: AppState, listing?: string) => Map<string, Listing[keyof Listing]>;
20
+ export declare const getFilters: (state: AppState, facet: string, context?: Context) => Map<string, typeof filtering>;
21
+ export declare const getRenderableFilters: (state: AppState, facet?: string, context?: Context) => Map<string, Map<string, string | boolean | List<import("../models/Search").CustomWhereClause> | List<Map<string, string | boolean>>>>;
22
+ export declare const getFiltersToLoad: (state: AppState, facet: string, context?: Context) => List<string | null>;
23
+ export declare const getSelectedFilters: (state: AppState, facet?: string, context?: Context) => Map<string, List<string>>;
24
+ export declare const getResults: (state: AppState, current?: string, context?: Context) => List<any>;
25
+ export declare const getIsInternalPaging: (state: AppState, current: string, context?: Context) => any;
26
+ export declare const getIsLoaded: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
27
+ export declare const getIsLoading: (state: AppState, context?: Context, facet?: string | undefined) => any;
28
+ export declare const getIsSsr: (state: AppState) => boolean;
29
+ export declare const getFeaturedResults: (state: AppState, current?: string, context?: Context) => any;
30
+ export declare const getPaging: (state: AppState, current?: string, context?: Context) => any;
31
+ export declare const getPageIndex: (state: AppState, current?: string, context?: Context) => number;
32
+ export declare const getPrevPageIndex: (state: AppState, current?: string, context?: Context) => any;
33
+ export declare const getPageIsLoading: (state: AppState, current?: string, context?: Context) => any;
34
+ export declare const getPagesLoaded: (state: AppState, current?: string, context?: Context) => any;
35
+ export declare const getTotalCount: (state: AppState, current?: string, context?: Context) => any;
36
+ export declare const getFacetAuthentication: (state: AppState, facet: string) => any;
37
+ export declare const getFeaturedEntryIds: (state: AppState) => Map<string, string>;
38
+ export declare const getSearchTerm: (state: AppState) => any;
39
+ export declare const getSearchTabs: (state: AppState) => List<typeof searchTab>;
40
+ export declare const getQueryParams: (state: AppState, current?: string, context?: Context) => Map<string, any>;
41
+ export declare const getQueryParameter: ({ state, facet, context, }: {
42
+ state: AppState;
43
+ facet?: string | undefined;
44
+ context?: Context | undefined;
45
+ }, key: string, ifnull?: any) => any;
46
+ export declare const getCustomApi: (state: AppState, current: string, context?: Context) => any;
47
+ export declare const getCustomEnv: (state: AppState, current: string, context?: Context) => any;
48
+ export declare const getTabsAndFacets: (state: AppState) => List<Map<string, string | number | OrderedMap<unknown, unknown> | undefined>>;
49
+ export declare const getSearchTotalCount: (state: AppState) => any;
50
+ export declare const getFacetsTotalCount: (state: AppState) => number;
51
+ export declare const selectFacets: {
52
+ getCurrent: (state: AppState) => string;
53
+ getCurrentTab: (state: AppState) => Map<string, Tab[keyof Tab]>;
54
+ getCustomApi: (state: AppState, current: string, context?: Context) => any;
55
+ getCustomEnv: (state: AppState, current: string, context?: Context) => any;
56
+ getFacet: (state: AppState, facetName?: string, context?: Context) => any;
57
+ getFacetTitles: (state: AppState) => {
58
+ key: string;
59
+ title: string | undefined;
60
+ totalCount: number;
61
+ }[];
62
+ getFacets: (state: AppState) => OrderedMap<string, typeof searchFacet>;
63
+ getFacetsTotalCount: (state: AppState) => number;
64
+ getFeaturedResults: (state: AppState, current?: string, context?: Context) => any;
65
+ getFilters: (state: AppState, facet: string, context?: Context) => Map<string, typeof filtering>;
66
+ getFiltersToLoad: (state: AppState, facet: string, context?: Context) => List<string | null>;
67
+ getIsLoaded: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
68
+ getIsLoading: (state: AppState, context?: Context, facet?: string | undefined) => any;
69
+ getPageIndex: (state: AppState, current?: string, context?: Context) => number;
70
+ getPageIsLoading: (state: AppState, current?: string, context?: Context) => any;
71
+ getPagesLoaded: (state: AppState, current?: string, context?: Context) => any;
72
+ getPaging: (state: AppState, current?: string, context?: Context) => any;
73
+ getQueryParams: (state: AppState, facet: string) => Map<string, any>;
74
+ getQueryParameter: ({ state, facet }: {
75
+ state: AppState;
76
+ facet: string;
77
+ }, key: string, ifnull: any) => any;
78
+ getRenderableFilters: (state: AppState, facet?: string, context?: Context) => Map<string, Map<string, string | boolean | List<import("../models/Search").CustomWhereClause> | List<Map<string, string | boolean>>>>;
79
+ getResults: (state: AppState, current?: string, context?: Context) => List<any>;
80
+ getTabFacets: (state: AppState) => OrderedMap<string, OrderedMap<string, string | number | List<any> | Map<string, boolean | List<any>> | Map<string, number | boolean | List<any>> | Map<unknown, unknown> | null>>;
81
+ getTabsAndFacets: (state: AppState) => List<Map<string, string | number | OrderedMap<unknown, unknown> | undefined>>;
82
+ getTotalCount: (state: AppState, current?: string, context?: Context) => any;
83
+ getSearchTabs: (state: AppState) => List<typeof searchTab>;
84
+ getSearchTerm: (state: AppState) => any;
85
+ getSearchTotalCount: (state: AppState) => any;
86
+ getSelectedFilters: (state: AppState, facet?: string, context?: Context) => Map<string, List<string>>;
87
+ };
88
+ export declare const selectListing: {
89
+ getCurrent: (state: AppState) => string;
90
+ getFeaturedResults: (state: AppState, listing?: string) => any;
91
+ getFilters: (state: AppState, listing?: string) => Map<string, Map<string, string | boolean | List<import("../models/Search").CustomWhereClause> | List<Map<string, string | boolean>>>>;
92
+ getFiltersToLoad: (state: AppState, listing?: string) => List<string | null>;
93
+ getListing: (state: AppState, listing?: string) => Map<string, Listing[keyof Listing]>;
94
+ getIsLoaded: (state: AppState) => boolean;
95
+ getIsLoading: (state: AppState) => any;
96
+ getPageIndex: (state: AppState, listing?: string) => number;
97
+ getPaging: (state: AppState, listing?: string) => any;
98
+ getPageIsLoading: (state: AppState, listing?: string) => any;
99
+ getPagesLoaded: (state: AppState, listing?: string) => any;
100
+ getQueryParams: (state: AppState, listing?: string) => Map<string, any>;
101
+ getQueryParameter: ({ state, facet }: {
102
+ state: AppState;
103
+ facet?: string | undefined;
104
+ }, key: string, ifnull: any) => any;
105
+ getRenderableFilters: (state: AppState, listing?: string) => Map<string, Map<string, string | boolean | List<import("../models/Search").CustomWhereClause> | List<Map<string, string | boolean>>>>;
106
+ getResults: (state: AppState, listing?: string) => List<any>;
107
+ getSearchTerm: (state: AppState) => any;
108
+ getTotalCount: (state: AppState, listing?: string) => any;
109
+ getSelectedFilters: (state: AppState, listing?: string) => Map<string, List<string>>;
110
+ };
111
+ export declare const selectCurrentPath: (state: AppState) => any;
112
+ export declare const selectVersionStatus: (state: AppState) => any;
@@ -0,0 +1,20 @@
1
+ export declare const APPLY_CONFIG: string;
2
+ export declare const CLEAR_FILTERS: string;
3
+ export declare const DO_SEARCH: string;
4
+ export declare const EXECUTE_SEARCH: string;
5
+ export declare const EXECUTE_SEARCH_ERROR: string;
6
+ export declare const EXECUTE_SEARCH_PRELOAD: string;
7
+ export declare const LOAD_FILTERS: string;
8
+ export declare const LOAD_FILTERS_COMPLETE: string;
9
+ export declare const LOAD_FILTERS_ERROR: string;
10
+ export declare const SET_FEATURED_ENTRIES: string;
11
+ export declare const SET_ROUTE_FILTERS: string;
12
+ export declare const SET_SEARCH_FILTERS: string;
13
+ export declare const SET_SEARCH_ENTRIES: string;
14
+ export declare const SET_SELECTED_FILTER: string;
15
+ export declare const UPDATE_CURRENT_FACET: string;
16
+ export declare const UPDATE_CURRENT_TAB: string;
17
+ export declare const UPDATE_SORT_ORDER: string;
18
+ export declare const UPDATE_PAGE_INDEX: string;
19
+ export declare const UPDATE_SEARCH_TERM: string;
20
+ export declare const UPDATE_SELECTED_FILTERS: string;
@@ -0,0 +1,25 @@
1
+ import { SearchQueryOptions } from '../models/Queries';
2
+ import { AppState } from '../models/SearchState';
3
+ import { EnsureSearchAction, SetSearchEntriesAction } from '../models/SearchActions';
4
+ /**
5
+ * 1, Generates all the parameters required to run the search query.
6
+ * 2, Tells us if we should run the search.
7
+ * @param {object} action
8
+ * @param {ImmutableMap} state
9
+ * @returns [queryParams, runSearch]
10
+ */
11
+ export declare const generateQueryParams: (action: EnsureSearchAction | SetSearchEntriesAction, state: AppState) => [SearchQueryOptions, boolean];
12
+ /**
13
+ * Checks if we have already loaded everything we're asking for and tells us to run the search or not
14
+ * @param action
15
+ * @param state
16
+ */
17
+ export declare const runSearch: (action: EnsureSearchAction | SetSearchEntriesAction, state: AppState, queryParams: SearchQueryOptions) => boolean;
18
+ /**
19
+ * This will tell us if filter parameters have been
20
+ * changed by some external event such as a route change
21
+ * @param action
22
+ * @returns true or false
23
+ */
24
+ export declare const filterParamsChanged: (action: EnsureSearchAction | SetSearchEntriesAction, state?: AppState | undefined) => boolean;
25
+ export declare const debugExecuteSearch: (action: EnsureSearchAction | SetSearchEntriesAction, state: AppState) => void;
@@ -0,0 +1,32 @@
1
+ export * from "contensis-delivery-api";
2
+ export function GetClientSideDeliveryApiStatus(): "published" | "latest" | null;
3
+ export function GetDeliveryApiStatusFromHostname(currentHostname: any): "published" | "latest";
4
+ export const deliveryApi: DeliveryApi;
5
+ export const cachedSearch: CachedSearch;
6
+ declare class DeliveryApi {
7
+ search(query: any, linkDepth: any, project: any, env: any): Promise<import("contensis-core-api").PagedList<import("contensis-delivery-api/lib/models").Entry>>;
8
+ getClient(deliveryApiStatus: string | undefined, project: any, env: any): Client;
9
+ getEntry(id: any, linkDepth: number | undefined, deliveryApiStatus: string | undefined, project: any, env: any): Promise<import("contensis-delivery-api/lib/models").Entry>;
10
+ }
11
+ declare class CachedSearch {
12
+ cache: LruCache;
13
+ taxonomyLookup: {};
14
+ search(query: any, linkDepth: any, project: any, env: any): any;
15
+ getTaxonomyNodeByPath(path: any, project: any, env: any): any;
16
+ request(key: any, execute: any): any;
17
+ extendTaxonomyNode(node: any): any;
18
+ getTaxonomyId(node: any): any;
19
+ }
20
+ import { Client } from "contensis-delivery-api";
21
+ declare class LruCache {
22
+ constructor(limit?: number);
23
+ map: {};
24
+ head: any;
25
+ tail: any;
26
+ limit: number;
27
+ size: number;
28
+ get(key: any): any;
29
+ set(key: any, value: any): void;
30
+ setHead(node: any): void;
31
+ remove(key: any): void;
32
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const toJS: <Props extends {
3
+ [key: string]: any;
4
+ }>(WrappedComponent: React.ComponentType<Props>) => React.ComponentType<Props>;
@@ -0,0 +1,29 @@
1
+ import { IExpression, ILogicalExpression, VersionStatus } from 'contensis-core-api';
2
+ import { CustomWhereClause, WeightedSearchField } from '../models/Search';
3
+ import { FieldOperators } from '../models/Queries';
4
+ export declare const fieldExpression: (field: string | string[], value: any, operator?: FieldOperators, weight?: number | undefined) => IExpression[];
5
+ export declare const contentTypeIdExpression: (contentTypeIds: string[], webpageTemplates?: string[] | undefined, assetTypes?: string[] | undefined) => ILogicalExpression[];
6
+ export declare const filterExpressions: (filters: {
7
+ key: string;
8
+ value: string;
9
+ operator: FieldOperators;
10
+ }[]) => IExpression[];
11
+ export declare const dataFormatExpression: (contentTypeIds: string[], dataFormat?: string) => ILogicalExpression[];
12
+ export declare const featuredResultsExpression: ({ contentTypeId, fieldId, fieldValue, }?: {
13
+ contentTypeId?: string | string[] | undefined;
14
+ fieldId?: string | string[] | undefined;
15
+ fieldValue?: boolean | undefined;
16
+ }) => IExpression[];
17
+ export declare const languagesExpression: (languages: string[]) => IExpression[];
18
+ export declare const includeInSearchExpressions: (webpageTemplates: string[], includeInSearchFields: string[]) => IExpression[];
19
+ export declare const defaultExpressions: (versionStatus: VersionStatus) => IExpression[];
20
+ export declare const excludeIdsExpression: (excludeIds: string[]) => ILogicalExpression[];
21
+ export declare const orderByExpression: (orderBy: string[]) => import("contensis-core-api").ContensisQueryOrderBy;
22
+ /**
23
+ * Accept HTTP style objects and map them to
24
+ * their equivalent JS client "Op" expressions
25
+ * @param {array} where the where array as you'd provide it to the HTTP API
26
+ * @returns {array} array of constructed Delivery API Operators
27
+ */
28
+ export declare const customWhereExpressions: (where?: CustomWhereClause | undefined) => IExpression[];
29
+ export declare const termExpressions: (searchTerm: string, weightedSearchFields: WeightedSearchField[]) => any[];
@@ -0,0 +1 @@
1
+ export declare const now: () => number;
@@ -0,0 +1,28 @@
1
+ export declare const DataFormats: {
2
+ asset: string;
3
+ entry: string;
4
+ webpage: string;
5
+ };
6
+ export declare const FilterExpressionTypes: {
7
+ contentType: string;
8
+ field: string;
9
+ };
10
+ export declare const Fields: {
11
+ entryDescription: string;
12
+ entryTitle: string;
13
+ keywords: string;
14
+ searchContent: string;
15
+ sys: {
16
+ allUris: string;
17
+ contentTypeId: string;
18
+ dataFormat: string;
19
+ filename: string;
20
+ id: string;
21
+ includeInSearch: string;
22
+ language: string;
23
+ uri: string;
24
+ versionStatus: string;
25
+ };
26
+ contentTypeId: string;
27
+ wildcard: string;
28
+ };
@@ -0,0 +1,21 @@
1
+ import { Map } from 'immutable';
2
+ import { Entry } from 'contensis-delivery-api/lib/models';
3
+ import { PagedList, Query } from 'contensis-core-api';
4
+ import { CustomApi } from '../models/Search';
5
+ import { TimedSearchResponse } from '../models/SearchUtil';
6
+ export declare function fixFreeTextForElastic(s: string): string;
7
+ export declare const timedSearch: (query: Query, linkDepth?: number, projectId?: string | undefined, env?: string | undefined) => Promise<null | TimedSearchResponse>;
8
+ export declare const getItemsFromResult: (result?: {
9
+ duration: number;
10
+ payload: PagedList<Entry> | any[];
11
+ } | undefined) => Entry[];
12
+ export declare const extractQuotedPhrases: (searchTerm: string) => string[];
13
+ export declare const buildUrl: (route: string, params: {
14
+ [key: string]: string;
15
+ }) => string;
16
+ export declare const callCustomApi: <T>(customApi: Map<string, CustomApi[keyof CustomApi]>, filters: {
17
+ [key: string]: string;
18
+ }) => Promise<T>;
19
+ export declare const removeEmptyAttributes: (obj: any) => any;
20
+ export declare const toArray: (obj: string, seperator?: string) => string[] | (string & any[]);
21
+ export declare const areArraysEqualSets: (a1: any[], a2: any[]) => boolean;
@@ -0,0 +1,2 @@
1
+ export default mapEntriesToFilterItems;
2
+ declare function mapEntriesToFilterItems(entries: any): any;
@@ -0,0 +1 @@
1
+ export function mapFiltersToFilterExpression(filters: any, selectedFilters: any): any[];
@@ -0,0 +1,2 @@
1
+ export default mapFilterToFilterExpression;
2
+ declare function mapFilterToFilterExpression(filter: any): any;
@@ -0,0 +1,6 @@
1
+ import { default as mapSearchResultToState } from 'jsonpath-mapper';
2
+ import MappingTemplate from 'jsonpath-mapper/dist/models/Template';
3
+ import { LoadFiltersSearchResults } from '../models/SearchActions';
4
+ export declare const facetTemplate: any;
5
+ export declare const filterTemplate: MappingTemplate<LoadFiltersSearchResults>;
6
+ export default mapSearchResultToState;
@@ -0,0 +1,12 @@
1
+ import { QueryParams } from '../models/Queries';
2
+ import { AppState } from '../models/SearchState';
3
+ import { Context } from '../models/Enums';
4
+ import { EnsureSearchAction, SetSearchEntriesAction } from '../models/SearchActions';
5
+ declare type QueryParamsMapperParams = {
6
+ context: Context;
7
+ facet: string;
8
+ action: EnsureSearchAction | SetSearchEntriesAction;
9
+ state: AppState;
10
+ };
11
+ declare const mapStateToQueryParams: (sourceJson: QueryParamsMapperParams) => QueryParams;
12
+ export default mapStateToQueryParams;
@@ -0,0 +1,14 @@
1
+ import { AppState } from '../models/SearchState';
2
+ declare type SearchStateParams = {
3
+ state: AppState;
4
+ facet?: string;
5
+ orderBy?: string;
6
+ pageIndex: number;
7
+ term?: string;
8
+ };
9
+ declare const mapStateToSearchUri: (params: SearchStateParams) => {
10
+ path: Location['pathname'];
11
+ search: Location['search'];
12
+ hash: Location['hash'];
13
+ };
14
+ export default mapStateToSearchUri;
@@ -0,0 +1,7 @@
1
+ export declare const CacheDuration: {
2
+ 200: string;
3
+ 404: string;
4
+ static: string;
5
+ expressStatic: string;
6
+ };
7
+ export declare const getCacheDuration: (status?: number) => string;
@@ -0,0 +1 @@
1
+ export declare const hashKeys: (keys: any) => string[];
@@ -0,0 +1,6 @@
1
+ import { Response } from 'express';
2
+ declare const setCachingHeaders: (response: Response, { cacheControl, surrogateControl }: {
3
+ cacheControl?: string | undefined;
4
+ surrogateControl?: string | undefined;
5
+ }, method?: string) => void;
6
+ export default setCachingHeaders;
@@ -0,0 +1,12 @@
1
+ import { Request, Response } from 'express';
2
+ import { ResponseMethod } from './types';
3
+ /**
4
+ * Web Application Response handler, sends a prepared express js response
5
+ * with the supplied content sending in the specified manner
6
+ * @param {response} request express js request object
7
+ * @param {response} response express js response object
8
+ * @param {string | object} content the content to send in the response body
9
+ * @param {"send" | "json" | "end"} send the response function to call e.g res.send() res.json() res.end()
10
+ */
11
+ declare const handleResponse: (request: Request, response: Response, content: any, send?: keyof typeof ResponseMethod) => void;
12
+ export default handleResponse;
@@ -0,0 +1,5 @@
1
+ export declare const ResponseMethod: {
2
+ send: string;
3
+ json: string;
4
+ end: string;
5
+ };
@@ -0,0 +1,4 @@
1
+ import { Express } from 'express';
2
+ export declare const apiProxy: any;
3
+ declare const reverseProxies: (app: Express, reverseProxyPaths?: string[]) => void;
4
+ export default reverseProxies;
@@ -0,0 +1,14 @@
1
+ declare const staticAssets: (app: any, { appRootPath, scripts, startupScriptFilename, staticFolderPath, staticRoutePath, staticRoutePaths, }: {
2
+ appRootPath?: any;
3
+ scripts?: {
4
+ attributes?: {
5
+ [key: string]: string;
6
+ } | undefined;
7
+ startup?: string | undefined;
8
+ } | undefined;
9
+ startupScriptFilename?: string | undefined;
10
+ staticFolderPath?: string | undefined;
11
+ staticRoutePath?: string | undefined;
12
+ staticRoutePaths?: string[] | undefined;
13
+ }) => void;
14
+ export default staticAssets;
@@ -0,0 +1,10 @@
1
+ import 'isomorphic-fetch';
2
+ import express from 'express';
3
+ import React from 'react';
4
+ import { ServerConfig } from "../config";
5
+ declare const _default: {
6
+ app: express.Express;
7
+ apiProxy: any;
8
+ start: (ReactApp: React.ComponentType<any>, config: ServerConfig, ServerFeatures: (app: express.Express) => void) => void;
9
+ };
10
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { RequestHandler } from 'express';
2
+ export declare const bundleManipulationMiddleware: ({ appRootPath, maxage, staticRoutePath, }: {
3
+ appRootPath: string;
4
+ maxage: string;
5
+ staticRoutePath: string;
6
+ }) => RequestHandler;
@@ -0,0 +1,13 @@
1
+ import { RequestHandler } from 'express';
2
+ /**
3
+ *
4
+ * @param { appRootPath: string; maxage: number; staticFolderPath: string, startupScriptFilename: string } args
5
+ * @returns Response | next()
6
+ * A middleware function to resolve /dist/static/startup.js under a supplied startupScriptFilename variable
7
+ */
8
+ export declare const resolveStartupMiddleware: ({ appRootPath, maxage, staticFolderPath, startupScriptFilename, }: {
9
+ appRootPath: string;
10
+ maxage: string;
11
+ staticFolderPath: string;
12
+ startupScriptFilename: string;
13
+ }) => RequestHandler;
@@ -0,0 +1,46 @@
1
+ export declare const loadableBundleData: ({ stats, templates }: {
2
+ stats: any;
3
+ templates: any;
4
+ }, staticRoutePath: string, build?: string | undefined) => {
5
+ stats?: string | null | undefined;
6
+ templates?: {
7
+ templateHTML: any;
8
+ templateHTMLStatic: any;
9
+ templateHTMLFragment: any;
10
+ } | null | undefined;
11
+ };
12
+ export declare const loadableChunkExtractors: () => {
13
+ commonLoadableExtractor: {
14
+ addChunk(chunk: any): void;
15
+ };
16
+ modern: any;
17
+ legacy: any;
18
+ } | undefined;
19
+ export declare const getBundleData: (config: any, staticRoutePath: any) => {
20
+ default: {
21
+ stats?: string | null | undefined;
22
+ templates?: {
23
+ templateHTML: any;
24
+ templateHTMLStatic: any;
25
+ templateHTMLFragment: any;
26
+ } | null | undefined;
27
+ };
28
+ legacy: {
29
+ stats?: string | null | undefined;
30
+ templates?: {
31
+ templateHTML: any;
32
+ templateHTMLStatic: any;
33
+ templateHTMLFragment: any;
34
+ } | null | undefined;
35
+ };
36
+ modern: {
37
+ stats?: string | null | undefined;
38
+ templates?: {
39
+ templateHTML: any;
40
+ templateHTMLStatic: any;
41
+ templateHTMLFragment: any;
42
+ } | null | undefined;
43
+ };
44
+ };
45
+ export declare const buildBundleTags: (bundles: any, differentialBundles?: boolean, staticRoutePath?: string, attributes?: string) => any;
46
+ export declare const getBundleTags: (loadableExtractor: any) => any;
@@ -0,0 +1,2 @@
1
+ declare const DisplayStartupConfiguration: (config: any) => void;
2
+ export default DisplayStartupConfiguration;
@@ -0,0 +1,9 @@
1
+ import { Response } from 'express';
2
+ export declare const addStandardHeaders: (state: any, response: Response, packagejson: any, groups: {
3
+ globalGroups?: any[];
4
+ allowedGroups?: any[];
5
+ }) => void;
6
+ export declare const addVarnishAuthenticationHeaders: (state: any, response: Response, groups?: {
7
+ globalGroups?: any[];
8
+ allowedGroups?: any[];
9
+ }) => void;
@@ -0,0 +1 @@
1
+ export declare const replaceStaticPath: (str: string, staticFolderPath?: string) => string;
@@ -0,0 +1,2 @@
1
+ declare const _default: (attributes?: {}) => string;
2
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Express } from 'express';
3
+ import { ServerConfig } from "../config";
4
+ declare const webApp: (app: Express, ReactApp: React.ComponentType<any>, config: ServerConfig & {
5
+ allowedGroups?: string[];
6
+ globalGroups?: string[];
7
+ startupScriptFilename?: string;
8
+ }) => void;
9
+ export default webApp;
@@ -0,0 +1,8 @@
1
+ declare var _default: <Base extends {
2
+ readonly myTestProp: string;
3
+ readonly myTestObject: {
4
+ readonly a: string;
5
+ readonly b: string;
6
+ };
7
+ }>(base?: Base | undefined, action?: any) => Base;
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export function selectTestFeature(state: any): any;
2
+ export function selectGreeting(state: any): any;
3
+ export function selectTestObject(state: any): any;
@@ -0,0 +1,2 @@
1
+ declare var _default: (wrappedComponentProps: any) => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export default LoginForm;
2
+ declare function LoginForm({ loginException, authenticationError, loading, loginUser, }: {
3
+ loginException: any;
4
+ authenticationError: any;
5
+ loading: any;
6
+ loginUser: any;
7
+ }): JSX.Element;
8
+ declare namespace LoginForm {
9
+ namespace propTypes {
10
+ const loginException: PropTypes.Requireable<boolean>;
11
+ const authenticationError: PropTypes.Requireable<boolean>;
12
+ const loading: PropTypes.Requireable<boolean>;
13
+ const loginUser: PropTypes.Requireable<(...args: any[]) => any>;
14
+ }
15
+ }
16
+ import PropTypes from "prop-types";
@@ -0,0 +1,12 @@
1
+ export default LogoutForm;
2
+ declare function LogoutForm({ logoutUser, user }: {
3
+ logoutUser: any;
4
+ user: any;
5
+ }): JSX.Element;
6
+ declare namespace LogoutForm {
7
+ namespace propTypes {
8
+ const logoutUser: PropTypes.Requireable<(...args: any[]) => any>;
9
+ const user: PropTypes.Requireable<object>;
10
+ }
11
+ }
12
+ import PropTypes from "prop-types";
@@ -0,0 +1,2 @@
1
+ export default LoginStyled;
2
+ declare const LoginStyled: any;
@@ -0,0 +1,2 @@
1
+ export default LoginFormStyled;
2
+ declare const LoginFormStyled: any;
@@ -0,0 +1,2 @@
1
+ declare var _default: (wrappedComponentProps: any) => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare var _default: (wrappedComponentProps: any) => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare var _default: (wrappedComponentProps: any) => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare var _default: (wrappedComponentProps: any) => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export default withLogin;
2
+ declare function withLogin(WrappedComponent: any): import("react-redux").ConnectedComponent<(wrappedComponentProps: any) => JSX.Element, import("react-redux").Omit<any, "error" | "isLoading" | "authenticationError" | "user" | "loginUser" | "logoutUser" | "isAuthenticated">>;
@@ -0,0 +1,2 @@
1
+ export default withRegistration;
2
+ declare function withRegistration(WrappedComponent: any): import("react-redux").ConnectedComponent<(wrappedComponentProps: any) => JSX.Element, import("react-redux").Omit<any, "error" | "isLoading" | "user" | "registerUser" | "isSuccess">>;
@@ -0,0 +1,9 @@
1
+ export default useChangePassword;
2
+ declare function useChangePassword(): {
3
+ isLoading: any;
4
+ isSuccess: any;
5
+ userId: any;
6
+ isLoggedIn: any;
7
+ error: any;
8
+ changePassword: (userId: any, currentPassword: any, newPassword: any) => any;
9
+ };
@@ -0,0 +1,14 @@
1
+ export default useForgotPassword;
2
+ declare function useForgotPassword(): {
3
+ isLoading: any;
4
+ isSuccess: any;
5
+ error: any;
6
+ requestPasswordReset: (userEmailObject: any) => any;
7
+ setNewPassword: {
8
+ queryString: any;
9
+ isLoading: any;
10
+ isSuccess: any;
11
+ error: any;
12
+ submit: (resetPasswordObject: any) => any;
13
+ };
14
+ };