@zengenti/contensis-react-base 3.0.2-beta.9 → 4.0.0-beta.1

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 (146) hide show
  1. package/README.md +38 -2
  2. package/cjs/{App-81a45001.js → App-cf7e3103.js} +69 -34
  3. package/cjs/App-cf7e3103.js.map +1 -0
  4. package/cjs/{login-51b66359.js → ChangePassword.container-a617190b.js} +246 -84
  5. package/cjs/ChangePassword.container-a617190b.js.map +1 -0
  6. package/cjs/{ContensisDeliveryApi-de88df2a.js → ContensisDeliveryApi-9e32960d.js} +156 -122
  7. package/cjs/ContensisDeliveryApi-9e32960d.js.map +1 -0
  8. package/cjs/CookieConstants-000427db.js +10 -0
  9. package/cjs/CookieConstants-000427db.js.map +1 -0
  10. package/cjs/{RouteLoader-47d70a26.js → RouteLoader-3e284fd6.js} +9 -7
  11. package/cjs/RouteLoader-3e284fd6.js.map +1 -0
  12. package/cjs/{ToJs-61c03582.js → ToJs-149fc5e1.js} +49 -2
  13. package/cjs/ToJs-149fc5e1.js.map +1 -0
  14. package/cjs/_commonjsHelpers-b3309d7b.js +11 -0
  15. package/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
  16. package/cjs/client.js +43 -17
  17. package/cjs/client.js.map +1 -1
  18. package/cjs/contensis-react-base.js +49 -362
  19. package/cjs/contensis-react-base.js.map +1 -1
  20. package/cjs/forms.js +3495 -127
  21. package/cjs/forms.js.map +1 -1
  22. package/cjs/redux.js +3 -4
  23. package/cjs/redux.js.map +1 -1
  24. package/cjs/routing.js +4 -4
  25. package/cjs/{sagas-6d12e7ca.js → sagas-e04b94c1.js} +44 -20
  26. package/cjs/sagas-e04b94c1.js.map +1 -0
  27. package/cjs/search.js +13 -13
  28. package/cjs/search.js.map +1 -1
  29. package/cjs/{selectors-c76c2676.js → selectors-46b689d0.js} +11 -11
  30. package/cjs/selectors-46b689d0.js.map +1 -0
  31. package/cjs/user.js +33 -159
  32. package/cjs/user.js.map +1 -1
  33. package/cjs/util.js +6 -4
  34. package/cjs/util.js.map +1 -1
  35. package/cjs/{version-38afaf2a.js → version-79a027cb.js} +12 -23
  36. package/cjs/version-79a027cb.js.map +1 -0
  37. package/cjs/{version-886f49d8.js → version-afd4f77e.js} +3 -3
  38. package/cjs/{version-886f49d8.js.map → version-afd4f77e.js.map} +1 -1
  39. package/esm/{App-5f914483.js → App-6e8e803b.js} +63 -29
  40. package/esm/App-6e8e803b.js.map +1 -0
  41. package/esm/{login-4d07c2de.js → ChangePassword.container-ae0f9ce4.js} +229 -78
  42. package/esm/ChangePassword.container-ae0f9ce4.js.map +1 -0
  43. package/esm/{ContensisDeliveryApi-ad06857d.js → ContensisDeliveryApi-c66b0cc3.js} +155 -123
  44. package/esm/ContensisDeliveryApi-c66b0cc3.js.map +1 -0
  45. package/esm/CookieConstants-3d3b6531.js +6 -0
  46. package/esm/CookieConstants-3d3b6531.js.map +1 -0
  47. package/esm/{RouteLoader-f5d5f733.js → RouteLoader-e3c5505f.js} +9 -7
  48. package/esm/RouteLoader-e3c5505f.js.map +1 -0
  49. package/esm/{ToJs-0066e629.js → ToJs-ae860aad.js} +49 -3
  50. package/esm/ToJs-ae860aad.js.map +1 -0
  51. package/esm/_commonjsHelpers-1789f0cf.js +8 -0
  52. package/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
  53. package/esm/client.js +43 -18
  54. package/esm/client.js.map +1 -1
  55. package/esm/contensis-react-base.js +48 -362
  56. package/esm/contensis-react-base.js.map +1 -1
  57. package/esm/forms.js +3497 -129
  58. package/esm/forms.js.map +1 -1
  59. package/esm/redux.js +6 -7
  60. package/esm/redux.js.map +1 -1
  61. package/esm/routing.js +4 -4
  62. package/esm/{sagas-53d2aefb.js → sagas-933a8fc8.js} +44 -20
  63. package/esm/sagas-933a8fc8.js.map +1 -0
  64. package/esm/search.js +14 -14
  65. package/esm/search.js.map +1 -1
  66. package/esm/{selectors-3f0d804d.js → selectors-01074974.js} +11 -12
  67. package/esm/selectors-01074974.js.map +1 -0
  68. package/esm/user.js +21 -151
  69. package/esm/user.js.map +1 -1
  70. package/esm/util.js +4 -4
  71. package/esm/util.js.map +1 -1
  72. package/esm/{version-f4629693.js → version-0fbd1b82.js} +3 -3
  73. package/esm/{version-f4629693.js.map → version-0fbd1b82.js.map} +1 -1
  74. package/esm/{version-dd31c7f0.js → version-346a9787.js} +13 -23
  75. package/esm/version-346a9787.js.map +1 -0
  76. package/models/app/App.d.ts +3 -3
  77. package/models/app/pages/VersionInfo/components/VersionInfo.d.ts +5 -3
  78. package/models/client/client.d.ts +1 -1
  79. package/models/config.d.ts +4 -4
  80. package/models/redux/appstate.d.ts +2 -1
  81. package/models/routing/components/Loading.d.ts +2 -2
  82. package/models/routing/components/NotFound.d.ts +2 -2
  83. package/models/routing/components/Status.d.ts +1 -1
  84. package/models/routing/redux/actions.d.ts +10 -6
  85. package/models/routing/redux/selectors.d.ts +5 -4
  86. package/models/routing/redux/types.d.ts +0 -1
  87. package/models/routing/routes.d.ts +20 -17
  88. package/models/routing/util/queries.d.ts +3 -2
  89. package/models/search/models/Queries.d.ts +9 -10
  90. package/models/search/models/Search.d.ts +26 -24
  91. package/models/search/models/SearchActions.d.ts +36 -36
  92. package/models/search/models/SearchState.d.ts +11 -11
  93. package/models/search/models/SearchUtil.d.ts +1 -1
  94. package/models/search/models/WithSearch.d.ts +1 -1
  95. package/models/search/redux/actions.d.ts +7 -7
  96. package/models/search/redux/selectors.d.ts +27 -27
  97. package/models/search/redux/types.d.ts +21 -21
  98. package/models/search/redux/util.d.ts +2 -2
  99. package/models/search/search/ContensisDeliveryApi.d.ts +1 -1
  100. package/models/search/search/expressions.d.ts +4 -4
  101. package/models/search/search/util.d.ts +2 -2
  102. package/models/search/transformations/state-to-queryparams.mapper.d.ts +1 -1
  103. package/models/server/features/linkdepth-api/LinkDepthSearchService.d.ts +1 -1
  104. package/models/server/features/linkdepth-api/search.d.ts +3 -3
  105. package/models/server/internalServer.d.ts +7 -5
  106. package/models/server/util/bundles.d.ts +2 -2
  107. package/models/server/util/handleExceptions.d.ts +1 -1
  108. package/models/testImmer/redux/reducer.d.ts +1 -1
  109. package/models/user/components/Login.d.ts +2 -2
  110. package/models/user/components/LoginForm.d.ts +2 -1
  111. package/models/user/components/LogoutForm.d.ts +2 -1
  112. package/models/user/containers/ChangePassword.container.d.ts +2 -2
  113. package/models/user/containers/ForgotPassword.container.d.ts +2 -2
  114. package/models/user/containers/Login.container.d.ts +2 -2
  115. package/models/user/containers/Registration.container.d.ts +2 -2
  116. package/models/user/hocs/withLogin.d.ts +6 -11
  117. package/models/user/hocs/withRegistration.d.ts +2 -8
  118. package/models/user/redux/actions.d.ts +2 -2
  119. package/models/user/redux/sagas/login.d.ts +9 -8
  120. package/models/user/redux/selectors.d.ts +4 -4
  121. package/models/user/util/CookieConstants.d.ts +8 -0
  122. package/models/user/util/CookieHelper.class.d.ts +15 -3
  123. package/models/user/util/LoginHelper.class.d.ts +27 -23
  124. package/models/util/CachedDeliveryApi.d.ts +25 -0
  125. package/models/util/ContensisDeliveryApi.d.ts +20 -44
  126. package/models/util/LruCache.d.ts +12 -0
  127. package/models/util/ToJs.d.ts +1 -1
  128. package/models/util/index.d.ts +1 -1
  129. package/models/util/json-mapper.d.ts +1 -1
  130. package/package.json +14 -16
  131. package/cjs/App-81a45001.js.map +0 -1
  132. package/cjs/ContensisDeliveryApi-de88df2a.js.map +0 -1
  133. package/cjs/RouteLoader-47d70a26.js.map +0 -1
  134. package/cjs/ToJs-61c03582.js.map +0 -1
  135. package/cjs/login-51b66359.js.map +0 -1
  136. package/cjs/sagas-6d12e7ca.js.map +0 -1
  137. package/cjs/selectors-c76c2676.js.map +0 -1
  138. package/cjs/version-38afaf2a.js.map +0 -1
  139. package/esm/App-5f914483.js.map +0 -1
  140. package/esm/ContensisDeliveryApi-ad06857d.js.map +0 -1
  141. package/esm/RouteLoader-f5d5f733.js.map +0 -1
  142. package/esm/ToJs-0066e629.js.map +0 -1
  143. package/esm/login-4d07c2de.js.map +0 -1
  144. package/esm/sagas-53d2aefb.js.map +0 -1
  145. package/esm/selectors-3f0d804d.js.map +0 -1
  146. package/esm/version-dd31c7f0.js.map +0 -1
@@ -5,17 +5,17 @@ import { SearchFacet, Listing, Mappers } from '../models/Search';
5
5
  import { AppState } from './SearchState';
6
6
  import { QueryParams } from './Queries';
7
7
  import { TimedSearchResponse } from './SearchUtil';
8
- declare type Action = {
8
+ type Action = {
9
9
  type: string;
10
10
  };
11
- export declare type WithMappers<T> = T & {
11
+ export type WithMappers<T> = T & {
12
12
  mappers: Mappers;
13
13
  };
14
- export declare type DebugFlags = boolean | {
14
+ export type DebugFlags = boolean | {
15
15
  executeSearch?: boolean;
16
16
  preloadOtherFacets?: boolean;
17
17
  };
18
- export declare type TriggerSearchParams = {
18
+ export type TriggerSearchParams = {
19
19
  config?: SearchFacet | Listing;
20
20
  context: Context | string;
21
21
  debug?: DebugFlags;
@@ -28,9 +28,9 @@ export declare type TriggerSearchParams = {
28
28
  [key: string]: string;
29
29
  };
30
30
  };
31
- export declare type TriggerSearchAction = Action & TriggerSearchParams;
32
- export declare type TriggerSearchActionCreator = (p: TriggerSearchParams) => TriggerSearchAction;
33
- declare type InitListingParams = {
31
+ export type TriggerSearchAction = Action & TriggerSearchParams;
32
+ export type TriggerSearchActionCreator = (p: TriggerSearchParams) => TriggerSearchAction;
33
+ type InitListingParams = {
34
34
  context: Context;
35
35
  debug?: DebugFlags;
36
36
  defaultLang?: string;
@@ -43,12 +43,12 @@ declare type InitListingParams = {
43
43
  };
44
44
  preload?: boolean;
45
45
  };
46
- export declare type InitListingAction = Action & InitListingParams & {
46
+ export type InitListingAction = Action & InitListingParams & {
47
47
  ssr?: boolean;
48
48
  };
49
- export declare type SetRouteFiltersOptions = Partial<InitListingAction>;
50
- export declare type InitListingActionCreator = (p: InitListingParams) => InitListingAction;
51
- export declare type LoadFiltersSearchResults = Action & {
49
+ export type SetRouteFiltersOptions = Partial<InitListingAction>;
50
+ export type InitListingActionCreator = (p: InitListingParams) => InitListingAction;
51
+ export type LoadFiltersSearchResults = Action & {
52
52
  error: any;
53
53
  facetKey: string;
54
54
  filterKey: string;
@@ -57,7 +57,7 @@ export declare type LoadFiltersSearchResults = Action & {
57
57
  context: Context;
58
58
  mapper: Mappers['filterItems'];
59
59
  };
60
- export declare type SearchResults = {
60
+ export type SearchResults = {
61
61
  action: ExecuteSearchAction;
62
62
  featuredResult?: TimedSearchResponse;
63
63
  pageIndex: number;
@@ -65,7 +65,7 @@ export declare type SearchResults = {
65
65
  result: TimedSearchResponse;
66
66
  state: AppState;
67
67
  };
68
- export declare type LoadFiltersCompleteAction = Action & {
68
+ export type LoadFiltersCompleteAction = Action & {
69
69
  error: any;
70
70
  facetKey: string;
71
71
  filterKey: string;
@@ -74,14 +74,14 @@ export declare type LoadFiltersCompleteAction = Action & {
74
74
  context: Context;
75
75
  mapper: Mappers['filterItems'];
76
76
  };
77
- export declare type EnsureSearchAction = InitListingAction & {
77
+ export type EnsureSearchAction = InitListingAction & {
78
78
  ogState: AppState;
79
79
  };
80
- export declare type ExecuteSearchAction = EnsureSearchAction & {
80
+ export type ExecuteSearchAction = EnsureSearchAction & {
81
81
  preload: boolean;
82
82
  queryParams: QueryParams;
83
83
  };
84
- export declare type SetSearchEntriesParams = {
84
+ export type SetSearchEntriesParams = {
85
85
  type: string;
86
86
  context: Context;
87
87
  defaultLang: string;
@@ -95,41 +95,41 @@ export declare type SetSearchEntriesParams = {
95
95
  [key: string]: string;
96
96
  };
97
97
  };
98
- export declare type SetSearchEntriesAction = Action & SetSearchEntriesParams;
99
- export declare type ApplySearchFilterAction = Action & {
98
+ export type SetSearchEntriesAction = Action & SetSearchEntriesParams;
99
+ export type ApplySearchFilterAction = Action & {
100
100
  filter: string;
101
101
  key: string;
102
102
  isUnknownItem: boolean;
103
- scrollYPos?: number;
103
+ scrollToElement?: string;
104
104
  };
105
- export declare type ApplySearchFilterActionCreator = (filter: string, key: string) => ApplySearchFilterAction;
106
- export declare type ClearFiltersAction = Action;
107
- export declare type ClearFiltersActionCreator = (filterKey?: string) => ClearFiltersAction;
108
- export declare type UpdateCurrentFacetAction = Action & {
105
+ export type ApplySearchFilterActionCreator = (filter: string, key: string) => ApplySearchFilterAction;
106
+ export type ClearFiltersAction = Action;
107
+ export type ClearFiltersActionCreator = (filterKey?: string) => ClearFiltersAction;
108
+ export type UpdateCurrentFacetAction = Action & {
109
109
  facet: string;
110
110
  };
111
- export declare type UpdateCurrentFacetActionCreator = (facet: string) => UpdateCurrentFacetAction;
112
- export declare type UpdateCurrentTabAction = Action & {
111
+ export type UpdateCurrentFacetActionCreator = (facet: string) => UpdateCurrentFacetAction;
112
+ export type UpdateCurrentTabAction = Action & {
113
113
  id: number;
114
114
  };
115
- export declare type UpdateCurrentTabActionCreator = (id: number) => UpdateCurrentFacetAction;
116
- export declare type UpdateSearchTermAction = Action & {
115
+ export type UpdateCurrentTabActionCreator = (id: number) => UpdateCurrentFacetAction;
116
+ export type UpdateSearchTermAction = Action & {
117
117
  term: string;
118
118
  };
119
- export declare type UpdateSearchTermActionCreator = (term: string) => UpdateSearchTermAction;
120
- export declare type UpdateSortOrderAction = Action & {
119
+ export type UpdateSearchTermActionCreator = (term: string) => UpdateSearchTermAction;
120
+ export type UpdateSortOrderAction = Action & {
121
121
  orderBy: string;
122
122
  facet: string;
123
123
  };
124
- export declare type UpdateSortOrderActionCreator = (orderBy: string, facet: string) => UpdateSortOrderAction;
125
- export declare type UpdatePageIndexAction = Action & {
124
+ export type UpdateSortOrderActionCreator = (orderBy: string, facet: string) => UpdateSortOrderAction;
125
+ export type UpdatePageIndexAction = Action & {
126
126
  pageIndex: number;
127
- scrollYPos?: number;
127
+ scrollToElement?: string;
128
128
  };
129
- export declare type UpdatePageIndexActionCreator = (pageIndex: number) => UpdatePageIndexAction;
130
- export declare type UpdatePageSizeAction = Action & {
129
+ export type UpdatePageIndexActionCreator = (pageIndex: number) => UpdatePageIndexAction;
130
+ export type UpdatePageSizeAction = Action & {
131
131
  pageSize: number;
132
- scrollYPos?: number;
132
+ scrollToElement?: string;
133
133
  };
134
- export declare type UpdatePageSizeActionCreator = (pageSize: number) => UpdatePageSizeAction;
134
+ export type UpdatePageSizeActionCreator = (pageSize: number) => UpdatePageSizeAction;
135
135
  export {};
@@ -1,7 +1,7 @@
1
1
  import { Context } from './Enums';
2
2
  import { CustomWhereClause } from './Search';
3
- export declare type AppState = Record<'search', SearchState> & Record<string, any>;
4
- export declare type SearchState = {
3
+ export type AppState = Record<'search', SearchState> & Record<string, any>;
4
+ export type SearchState = {
5
5
  context: keyof typeof Context;
6
6
  currentFacet: string;
7
7
  currentListing: string;
@@ -12,10 +12,10 @@ export declare type SearchState = {
12
12
  tabs: Tab[];
13
13
  config: Record<string, boolean>;
14
14
  };
15
- export declare type Facets = {
15
+ export type Facets = {
16
16
  [key: string]: Facet;
17
17
  };
18
- export declare type Facet = {
18
+ export type Facet = {
19
19
  entries: {
20
20
  isLoading: boolean;
21
21
  isError: boolean;
@@ -53,10 +53,10 @@ export declare type Facet = {
53
53
  tabId: number;
54
54
  title: string;
55
55
  };
56
- export declare type Filters = {
56
+ export type Filters = {
57
57
  [key: string]: Filter;
58
58
  };
59
- export declare type Filter = {
59
+ export type Filter = {
60
60
  contentTypeId?: string;
61
61
  customWhere?: CustomWhereClause;
62
62
  defaultValue?: string;
@@ -70,7 +70,7 @@ export declare type Filter = {
70
70
  renderable?: boolean;
71
71
  title?: string;
72
72
  };
73
- export declare type FilterItem = {
73
+ export type FilterItem = {
74
74
  contentTypeId?: string;
75
75
  title?: string;
76
76
  type?: string;
@@ -78,10 +78,10 @@ export declare type FilterItem = {
78
78
  path?: string;
79
79
  isSelected: boolean;
80
80
  };
81
- export declare type SelectedFilters = {
81
+ export type SelectedFilters = {
82
82
  [k: string]: string[];
83
83
  };
84
- export declare type Paging = {
84
+ export type Paging = {
85
85
  isLoading: boolean;
86
86
  pageCount: number;
87
87
  pageIndex: number;
@@ -90,14 +90,14 @@ export declare type Paging = {
90
90
  prevPageIndex: number;
91
91
  totalCount: number;
92
92
  };
93
- export declare type Tab = {
93
+ export type Tab = {
94
94
  currentFacet: string;
95
95
  defaultFacet: string;
96
96
  id: number;
97
97
  label: string;
98
98
  totalCount: number;
99
99
  };
100
- export declare type TabAndFacets = Tab & {
100
+ export type TabAndFacets = Tab & {
101
101
  facets: {
102
102
  [key: string]: Facet;
103
103
  };
@@ -1,6 +1,6 @@
1
1
  import { Entry } from 'contensis-delivery-api/lib/models';
2
2
  import { PagedList } from 'contensis-core-api';
3
- export declare type TimedSearchResponse = {
3
+ export type TimedSearchResponse = {
4
4
  duration: number;
5
5
  payload: PagedList<Entry> | any[];
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { Facet, Filter, Paging, Tab } from './SearchState';
2
- export declare type WithSearch<T> = {
2
+ export type WithSearch<T> = {
3
3
  className: string;
4
4
  /** Dispatch action to clear all selected filters */
5
5
  clearFilters: Function;
@@ -11,15 +11,15 @@ export declare const navigate: (path: string, state?: any) => {
11
11
  state: any;
12
12
  };
13
13
  export declare const clearFilters: ClearFiltersActionCreator;
14
- export declare const updatePageIndex: (pageIndex: number, scrollYPos?: number | undefined) => {
14
+ export declare const updatePageIndex: (pageIndex: number, scrollToElement?: string) => {
15
15
  type: string;
16
16
  pageIndex: number;
17
- scrollYPos: number | undefined;
17
+ scrollToElement: string | undefined;
18
18
  };
19
- export declare const updatePageSize: (pageSize: number, scrollYPos?: number | undefined) => {
19
+ export declare const updatePageSize: (pageSize: number, scrollToElement?: string) => {
20
20
  type: string;
21
21
  pageSize: number;
22
- scrollYPos: number | undefined;
22
+ scrollToElement: string | undefined;
23
23
  };
24
24
  export declare const updateCurrentFacet: (facet: string) => {
25
25
  type: string;
@@ -33,14 +33,14 @@ export declare const updateSearchTerm: (term: string) => {
33
33
  type: string;
34
34
  term: string;
35
35
  };
36
- export declare const updateSelectedFilters: (filter: string, key: string, isUnknownItem?: boolean, scrollYPos?: number | undefined) => {
36
+ export declare const updateSelectedFilters: (filter: string, key: string, isUnknownItem?: boolean, scrollToElement?: string) => {
37
37
  type: string;
38
38
  filter: string;
39
39
  key: string;
40
40
  isUnknownItem: boolean;
41
- scrollYPos: number | undefined;
41
+ scrollToElement: string | undefined;
42
42
  };
43
- export declare const updateSortOrder: (orderBy: string, facet?: string | undefined) => {
43
+ export declare const updateSortOrder: (orderBy: string, facet?: string) => {
44
44
  type: string;
45
45
  orderBy: string;
46
46
  facet: string | undefined;
@@ -2,13 +2,13 @@ import { Context } from '../models/Enums';
2
2
  import { QueryParams as QueryParams2 } from '../models/Queries';
3
3
  import { CustomApi, SearchQueryParams } from '../models/Search';
4
4
  import { AppState, Facet, Facets, Filters, Paging, SelectedFilters, Tab } from '../models/SearchState';
5
- declare type StateType = 'immutable' | 'js';
5
+ type StateType = 'immutable' | 'js';
6
6
  export declare const getSearchContext: (state: AppState) => Context;
7
7
  export declare const getCurrent: (state: AppState, context?: Context) => string;
8
8
  export declare const getCurrentFacet: (state: AppState) => string;
9
9
  export declare const getCurrentListing: (state: AppState) => string;
10
10
  export declare const getCurrentTab: (state: AppState) => number;
11
- export declare const getFacets: (state: AppState, returnType?: StateType | undefined) => Facets;
11
+ export declare const getFacets: (state: AppState, returnType?: StateType) => Facets;
12
12
  export declare const getTabFacets: (state: AppState) => {
13
13
  [k: string]: Facet;
14
14
  };
@@ -18,19 +18,19 @@ export declare const getFacetTitles: (state: AppState) => {
18
18
  title: string | undefined;
19
19
  totalCount: number;
20
20
  }[];
21
- export declare const getFacet: (state: AppState, facetName?: string, context?: Context | string, returnType?: StateType | undefined) => Facet;
21
+ export declare const getFacet: (state: AppState, facetName?: string, context?: Context | string, returnType?: StateType) => Facet;
22
22
  export declare const getListing: (state: AppState, listing?: string) => Facet;
23
- export declare const getFilters: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => Filters;
23
+ export declare const getFilters: (state: AppState, facet: string, context?: Context, returnType?: StateType) => Filters;
24
24
  export declare const getRenderableFilters: (state: AppState, facet?: string, context?: Context) => Filters;
25
- export declare const getFiltersToLoad: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => string[];
26
- export declare const getSelectedFilters: (state: AppState, facet?: string, context?: Context, returnType?: StateType | undefined) => SelectedFilters;
27
- export declare const getResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
25
+ export declare const getFiltersToLoad: (state: AppState, facet: string, context?: Context, returnType?: StateType) => string[];
26
+ export declare const getSelectedFilters: (state: AppState, facet?: string, context?: Context, returnType?: StateType) => SelectedFilters;
27
+ export declare const getResults: (state: AppState, current?: string, context?: Context, returnType?: StateType) => any[];
28
28
  export declare const getIsInternalPaging: (state: AppState, current: string, context?: Context) => boolean;
29
- export declare const getIsLoaded: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
30
- export declare const getIsLoading: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
29
+ export declare const getIsLoaded: (state: AppState, context?: Context, facet?: string) => boolean;
30
+ export declare const getIsLoading: (state: AppState, context?: Context, facet?: string) => boolean;
31
31
  export declare const getIsSsr: (state: AppState) => boolean;
32
- export declare const getFeaturedResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
33
- export declare const getPaging: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => Paging;
32
+ export declare const getFeaturedResults: (state: AppState, current?: string, context?: Context, returnType?: StateType) => any[];
33
+ export declare const getPaging: (state: AppState, current?: string, context?: Context, returnType?: StateType) => Paging;
34
34
  export declare const getPageIndex: (state: AppState, current?: string, context?: Context) => number;
35
35
  export declare const getPageSize: (state: AppState, current?: string, context?: Context) => number;
36
36
  export declare const getPrevPageIndex: (state: AppState, current?: string, context?: Context) => number;
@@ -38,57 +38,57 @@ export declare const getPageIsLoading: (state: AppState, current?: string, conte
38
38
  export declare const getPagesLoaded: (state: AppState, current?: string, context?: Context) => number[];
39
39
  export declare const getTotalCount: (state: AppState, current?: string, context?: Context) => number;
40
40
  export declare const getSearchTerm: (state: AppState) => string;
41
- export declare const getSearchTabs: (state: AppState, returnType?: StateType | undefined) => Tab[];
41
+ export declare const getSearchTabs: (state: AppState, returnType?: StateType) => Tab[];
42
42
  export declare const getQueryParams: (state: AppState, current?: string, context?: Context) => Record<string, any>;
43
43
  export declare const getQueryParameter: <K extends keyof SearchQueryParams, K2 extends "internalPaging" | "linkDepth" | "loadMorePaging" | keyof import("../models/Queries").SearchQueryOptions | "env" | "internalPageIndex" | "pagesLoaded" | "prevPageIndex" | "projectId" | "selectedFilters">({ state, facet, context, }: {
44
44
  state: AppState;
45
45
  facet?: string | undefined;
46
46
  context?: Context | undefined;
47
47
  }, key: K | K2, ifnull?: any) => SearchQueryParams[K] | QueryParams2[K2];
48
- export declare const getCustomApi: (state: AppState, current: string, context?: Context, returnType?: StateType | undefined) => CustomApi;
48
+ export declare const getCustomApi: (state: AppState, current: string, context?: Context, returnType?: StateType) => CustomApi;
49
49
  export declare const getCustomEnv: (state: AppState, current: string, context?: Context) => any;
50
- export declare const getTabsAndFacets: (state: AppState, returnType?: StateType | undefined) => any;
50
+ export declare const getTabsAndFacets: (state: AppState, returnType?: StateType) => any;
51
51
  export declare const getSearchTotalCount: (state: AppState) => number;
52
52
  export declare const getFacetsTotalCount: (state: AppState) => number;
53
53
  export declare const selectFacets: {
54
54
  getCurrent: (state: AppState) => string;
55
55
  getCurrentTab: (state: AppState) => number;
56
- getCustomApi: (state: AppState, current: string, context?: Context, returnType?: StateType | undefined) => CustomApi;
56
+ getCustomApi: (state: AppState, current: string, context?: Context, returnType?: StateType) => CustomApi;
57
57
  getCustomEnv: (state: AppState, current: string, context?: Context) => any;
58
- getFacet: (state: AppState, facetName?: string, context?: Context | string, returnType?: StateType | undefined) => Facet;
58
+ getFacet: (state: AppState, facetName?: string, context?: Context | string, returnType?: StateType) => Facet;
59
59
  getFacetTitles: (state: AppState) => {
60
60
  isSelected: boolean;
61
61
  key: string;
62
62
  title: string | undefined;
63
63
  totalCount: number;
64
64
  }[];
65
- getFacets: (state: AppState, returnType?: StateType | undefined) => Facets;
65
+ getFacets: (state: AppState, returnType?: StateType) => Facets;
66
66
  getFacetsTotalCount: (state: AppState) => number;
67
- getFeaturedResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
68
- getFilters: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => Filters;
69
- getFiltersToLoad: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => string[];
70
- getIsLoaded: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
71
- getIsLoading: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
67
+ getFeaturedResults: (state: AppState, current?: string, context?: Context, returnType?: StateType) => any[];
68
+ getFilters: (state: AppState, facet: string, context?: Context, returnType?: StateType) => Filters;
69
+ getFiltersToLoad: (state: AppState, facet: string, context?: Context, returnType?: StateType) => string[];
70
+ getIsLoaded: (state: AppState, context?: Context, facet?: string) => boolean;
71
+ getIsLoading: (state: AppState, context?: Context, facet?: string) => boolean;
72
72
  getPageIndex: (state: AppState, current?: string, context?: Context) => number;
73
73
  getPageIsLoading: (state: AppState, current?: string, context?: Context) => boolean;
74
74
  getPagesLoaded: (state: AppState, current?: string, context?: Context) => number[];
75
- getPaging: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => Paging;
75
+ getPaging: (state: AppState, current?: string, context?: Context, returnType?: StateType) => Paging;
76
76
  getQueryParams: (state: AppState, facet: string) => Record<string, any>;
77
77
  getQueryParameter: ({ state, facet }: {
78
78
  state: AppState;
79
79
  facet?: string | undefined;
80
80
  }, key: keyof SearchQueryParams | keyof QueryParams2, ifnull: any) => any;
81
81
  getRenderableFilters: (state: AppState, facet?: string, context?: Context) => Filters;
82
- getResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
82
+ getResults: (state: AppState, current?: string, context?: Context, returnType?: StateType) => any[];
83
83
  getTabFacets: (state: AppState) => {
84
84
  [k: string]: Facet;
85
85
  };
86
- getTabsAndFacets: (state: AppState, returnType?: StateType | undefined) => any;
86
+ getTabsAndFacets: (state: AppState, returnType?: StateType) => any;
87
87
  getTotalCount: (state: AppState, current?: string, context?: Context) => number;
88
- getSearchTabs: (state: AppState, returnType?: StateType | undefined) => Tab[];
88
+ getSearchTabs: (state: AppState, returnType?: StateType) => Tab[];
89
89
  getSearchTerm: (state: AppState) => string;
90
90
  getSearchTotalCount: (state: AppState) => number;
91
- getSelectedFilters: (state: AppState, facet?: string, context?: Context, returnType?: StateType | undefined) => SelectedFilters;
91
+ getSelectedFilters: (state: AppState, facet?: string, context?: Context, returnType?: StateType) => SelectedFilters;
92
92
  };
93
93
  export declare const selectListing: {
94
94
  getCurrent: (state: AppState) => string;
@@ -1,21 +1,21 @@
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_PAGE_SIZE: string;
20
- export declare const UPDATE_SEARCH_TERM: string;
21
- export declare const UPDATE_SELECTED_FILTERS: string;
1
+ export declare const APPLY_CONFIG = "@SEARCH/APPLY_CONFIG";
2
+ export declare const CLEAR_FILTERS = "@SEARCH/CLEAR_FILTERS";
3
+ export declare const DO_SEARCH = "@SEARCH/DO_SEARCH";
4
+ export declare const EXECUTE_SEARCH = "@SEARCH/EXECUTE_SEARCH";
5
+ export declare const EXECUTE_SEARCH_ERROR = "@SEARCH/EXECUTE_SEARCH_ERROR";
6
+ export declare const EXECUTE_SEARCH_PRELOAD = "@SEARCH/EXECUTE_SEARCH_PRELOAD";
7
+ export declare const LOAD_FILTERS = "@SEARCH/LOAD_FILTERS";
8
+ export declare const LOAD_FILTERS_COMPLETE = "@SEARCH/LOAD_FILTERS_COMPLETE";
9
+ export declare const LOAD_FILTERS_ERROR = "@SEARCH/LOAD_FILTERS_ERROR";
10
+ export declare const SET_FEATURED_ENTRIES = "@SEARCH/SET_FEATURED_ENTRIES";
11
+ export declare const SET_ROUTE_FILTERS = "@SEARCH/SET_ROUTE_FILTERS";
12
+ export declare const SET_SEARCH_FILTERS = "@SEARCH/SET_SEARCH_FILTERS";
13
+ export declare const SET_SEARCH_ENTRIES = "@SEARCH/SET_SEARCH_ENTRIES";
14
+ export declare const SET_SELECTED_FILTER = "@SEARCH/SET_SELECTED_FILTER";
15
+ export declare const UPDATE_CURRENT_FACET = "@SEARCH/UPDATE_CURRENT_FACET";
16
+ export declare const UPDATE_CURRENT_TAB = "@SEARCH/UPDATE_CURRENT_TAB";
17
+ export declare const UPDATE_SORT_ORDER = "@SEARCH/UPDATE_SORT_ORDER";
18
+ export declare const UPDATE_PAGE_INDEX = "@SEARCH/UPDATE_PAGE_INDEX";
19
+ export declare const UPDATE_PAGE_SIZE = "@SEARCH/UPDATE_PAGE_SIZE";
20
+ export declare const UPDATE_SEARCH_TERM = "@SEARCH/UPDATE_SEARCH_TERM";
21
+ export declare const UPDATE_SELECTED_FILTERS = "@SEARCH/UPDATE_SELECTED_FILTERS";
@@ -21,6 +21,6 @@ export declare const runSearch: (action: EnsureSearchAction | SetSearchEntriesAc
21
21
  * @param action
22
22
  * @returns true or false
23
23
  */
24
- export declare const filterParamsChanged: (action: EnsureSearchAction | SetSearchEntriesAction, state?: AppState | undefined) => boolean;
24
+ export declare const filterParamsChanged: (action: EnsureSearchAction | SetSearchEntriesAction, state?: AppState) => boolean;
25
25
  export declare const debugExecuteSearch: (action: EnsureSearchAction | SetSearchEntriesAction, state: AppState) => void;
26
- export declare const scrollTop: (scrollYPos: number) => void;
26
+ export declare const scrollTo: (scrollToElement: string) => void;
@@ -18,7 +18,7 @@ declare class CachedSearch {
18
18
  getTaxonomyId(node: any): any;
19
19
  fetch(uri: any, opts?: {}): any;
20
20
  }
21
- import { Client } from "contensis-delivery-api";
21
+ import { Client } from 'contensis-delivery-api';
22
22
  declare class LruCache {
23
23
  constructor(limit?: number);
24
24
  map: {};
@@ -1,8 +1,8 @@
1
1
  import { ContensisQueryOrderBy, IExpression, ILogicalExpression, VersionStatus } from 'contensis-core-api';
2
2
  import { CustomWhereClause, WeightedSearchField } from '../models/Search';
3
3
  import { FieldOperators, FilterExpression } from '../models/Queries';
4
- export declare const fieldExpression: (field: string | string[], value: any, operator?: FieldOperators, weight?: number | undefined, fuzzySearch?: boolean) => IExpression[];
5
- export declare const contentTypeIdExpression: (contentTypeIds: string[], webpageTemplates?: string[] | undefined, assetTypes?: string[] | undefined) => ILogicalExpression[];
4
+ export declare const fieldExpression: (field: string | string[], value: any, operator?: FieldOperators, weight?: number, fuzzySearch?: boolean) => IExpression[];
5
+ export declare const contentTypeIdExpression: (contentTypeIds: string[], webpageTemplates?: string[], assetTypes?: string[]) => ILogicalExpression[];
6
6
  export declare const filterExpressions: (filters: FilterExpression[], isOptional?: boolean) => IExpression[];
7
7
  export declare const dataFormatExpression: (contentTypeIds: string[], dataFormat?: string) => ILogicalExpression[];
8
8
  export declare const featuredResultsExpression: ({ contentTypeId, fieldId, fieldValue, }?: {
@@ -22,5 +22,5 @@ export declare const orderByExpression: (orderBy: string[]) => ContensisQueryOrd
22
22
  * @param {array} where the where array as you'd provide it to the HTTP API
23
23
  * @returns {array} array of constructed Delivery API Operators
24
24
  */
25
- export declare const customWhereExpressions: (where?: CustomWhereClause | undefined) => IExpression[];
26
- export declare const termExpressions: (searchTerm: string, weightedSearchFields: WeightedSearchField[], fuzzySearch?: boolean | undefined) => any[];
25
+ export declare const customWhereExpressions: (where?: CustomWhereClause) => IExpression[];
26
+ export declare const termExpressions: (searchTerm: string, weightedSearchFields: WeightedSearchField[], fuzzySearch?: boolean, omitSearchFields?: string[]) => any[];
@@ -3,11 +3,11 @@ import { PagedList, Query } from 'contensis-core-api';
3
3
  import { CustomApi } from '../models/Search';
4
4
  import { TimedSearchResponse } from '../models/SearchUtil';
5
5
  export declare function fixFreeTextForElastic(s: string): string;
6
- export declare const timedSearch: (query: Query, linkDepth?: number, projectId?: string | undefined, env?: string | undefined) => Promise<null | TimedSearchResponse>;
6
+ export declare const timedSearch: (query: Query, linkDepth?: number, projectId?: string, env?: string) => Promise<null | TimedSearchResponse>;
7
7
  export declare const getItemsFromResult: (result?: {
8
8
  duration: number;
9
9
  payload: PagedList<Entry> | any[];
10
- } | undefined) => Entry[];
10
+ }) => Entry[];
11
11
  export declare const extractQuotedPhrases: (searchTerm: string) => string[];
12
12
  export declare const buildUrl: (route: string, params: {
13
13
  [key: string]: string;
@@ -2,7 +2,7 @@ import { QueryParams } from '../models/Queries';
2
2
  import { AppState } from '../models/SearchState';
3
3
  import { Context } from '../models/Enums';
4
4
  import { EnsureSearchAction, SetSearchEntriesAction } from '../models/SearchActions';
5
- declare type QueryParamsMapperParams = {
5
+ type QueryParamsMapperParams = {
6
6
  context: Context;
7
7
  facet: string;
8
8
  action: EnsureSearchAction | SetSearchEntriesAction;
@@ -1,6 +1,6 @@
1
1
  import { LinkDepthApiConfig, LinkDepthApiFilters, LinkFields } from './api.d';
2
2
  import QueryLevelResults from './QueryLevelResults';
3
- export declare type LinkDepthSearchServiceConstuctorArgs = Partial<LinkDepthApiConfig> & {
3
+ export type LinkDepthSearchServiceConstuctorArgs = Partial<LinkDepthApiConfig> & {
4
4
  params: {
5
5
  [key: string]: string | undefined;
6
6
  };
@@ -2,11 +2,11 @@ import { FilterExpression, SearchQueryOptions } from "../../../search";
2
2
  import { Query } from 'contensis-core-api';
3
3
  import { Entry } from 'contensis-delivery-api/lib/models';
4
4
  import { LinkDepthApiFilters } from './api.d';
5
- declare type WithOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
6
- declare type SearchQueryArgs = WithOptional<SearchQueryOptions & {
5
+ type WithOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
6
+ type SearchQueryArgs = WithOptional<SearchQueryOptions & {
7
7
  idFilters?: SearchQueryOptions['filters'];
8
8
  sharedFilters?: SearchQueryOptions['filters'];
9
- }, 'assetTypes' | 'customWhere' | 'dynamicOrderBy' | 'excludeIds' | 'featuredResults' | 'fields' | 'includeInSearchFields' | 'languages' | 'orderBy' | 'pageIndex' | 'searchTerm' | 'webpageTemplates' | 'weightedSearchFields'>;
9
+ }, 'assetTypes' | 'customWhere' | 'dynamicOrderBy' | 'excludeIds' | 'featuredResults' | 'fields' | 'includeInSearchFields' | 'languages' | 'omitDefaultSearchFields' | 'orderBy' | 'pageIndex' | 'searchTerm' | 'webpageTemplates' | 'weightedSearchFields'>;
10
10
  /**
11
11
  * Builds our complete Delivery API Query object from a set of provided arguments
12
12
  * @param queryParams
@@ -1,13 +1,15 @@
1
1
  /// <reference types="node" />
2
2
  import 'isomorphic-fetch';
3
- import express from 'express';
3
+ import { Express } from 'express';
4
4
  import http from 'http';
5
5
  import React from 'react';
6
+ import { deliveryProxy } from './features/reverse-proxy';
6
7
  import { ServerConfig } from "../config";
7
- declare const _default: {
8
- app: import("express-serve-static-core").Express;
9
- apiProxy: any;
8
+ type Exporting = {
9
+ app: Express;
10
+ apiProxy: typeof deliveryProxy;
10
11
  server: http.Server;
11
- start: (ReactApp: React.ComponentType<any>, config: ServerConfig, ServerFeatures: (app: express.Express) => void) => void;
12
+ start: (ReactApp: React.ComponentType<any>, config: ServerConfig, ServerFeatures: (app: Express) => void) => void;
12
13
  };
14
+ declare const _default: Exporting;
13
15
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { ChunkExtractor } from '@loadable/server';
2
2
  import { ServerConfig } from "../../config";
3
- export declare const loadableBundleData: ({ stats, templates }: ServerConfig, staticRoutePath: string, build?: string | undefined) => {
3
+ export declare const loadableBundleData: ({ stats, templates }: ServerConfig, staticRoutePath: string, build?: string) => {
4
4
  stats?: string | null | undefined;
5
5
  templates?: {
6
6
  templateHTML: string;
@@ -8,7 +8,7 @@ export declare const loadableBundleData: ({ stats, templates }: ServerConfig, st
8
8
  templateHTMLFragment: string;
9
9
  } | null | undefined;
10
10
  };
11
- declare type LoadableChunkExtractors = {
11
+ type LoadableChunkExtractors = {
12
12
  legacy?: ChunkExtractor;
13
13
  modern?: ChunkExtractor;
14
14
  commonLoadableExtractor: ChunkExtractor;
@@ -1 +1 @@
1
- export declare const unhandledExceptionHandler: (handleExceptions?: boolean) => void;
1
+ export declare const unhandledExceptionHandler: (handleExceptions?: boolean | string[]) => void;
@@ -1,2 +1,2 @@
1
- declare var _default: any;
1
+ declare const _default: any;
2
2
  export default _default;
@@ -1,10 +1,10 @@
1
- declare var _default: React.ComponentType<{
1
+ declare const _default: (wrappedComponentProps: {
2
2
  errorMessage: any;
3
3
  isAuthenticated: any;
4
4
  isLoading: any;
5
5
  user: any;
6
6
  loginUser: any;
7
7
  logoutUser: any;
8
- }>;
8
+ }) => React.JSX.Element;
9
9
  export default _default;
10
10
  import React from "react";
@@ -3,7 +3,7 @@ declare function LoginForm({ authenticationError, loading, loginUser }: {
3
3
  authenticationError: any;
4
4
  loading: any;
5
5
  loginUser: any;
6
- }): JSX.Element;
6
+ }): React.JSX.Element;
7
7
  declare namespace LoginForm {
8
8
  namespace propTypes {
9
9
  const loginException: PropTypes.Requireable<boolean>;
@@ -12,4 +12,5 @@ declare namespace LoginForm {
12
12
  const loginUser: PropTypes.Requireable<(...args: any[]) => any>;
13
13
  }
14
14
  }
15
+ import React from "react";
15
16
  import PropTypes from "prop-types";
@@ -2,11 +2,12 @@ export default LogoutForm;
2
2
  declare function LogoutForm({ logoutUser, user }: {
3
3
  logoutUser: any;
4
4
  user: any;
5
- }): JSX.Element;
5
+ }): React.JSX.Element;
6
6
  declare namespace LogoutForm {
7
7
  namespace propTypes {
8
8
  const logoutUser: PropTypes.Requireable<(...args: any[]) => any>;
9
9
  const user: PropTypes.Requireable<object>;
10
10
  }
11
11
  }
12
+ import React from "react";
12
13
  import PropTypes from "prop-types";
@@ -1,5 +1,5 @@
1
- declare var _default: import("react").ComponentType<{
1
+ declare const _default: (wrappedComponentProps: {
2
2
  [x: string]: any;
3
3
  children: any;
4
- }>;
4
+ }) => import("react").JSX.Element;
5
5
  export default _default;