@zengenti/contensis-react-base 3.0.2-beta.22 → 3.0.2-beta.24

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 (126) hide show
  1. package/cjs/{App-21a7d836.js → App-a9f4effe.js} +48 -21
  2. package/cjs/App-a9f4effe.js.map +1 -0
  3. package/cjs/{ContensisDeliveryApi-c079b03a.js → ContensisDeliveryApi-76de5ca9.js} +55 -34
  4. package/cjs/ContensisDeliveryApi-76de5ca9.js.map +1 -0
  5. package/cjs/CookieConstants-000427db.js +10 -0
  6. package/cjs/CookieConstants-000427db.js.map +1 -0
  7. package/cjs/CookieHelper.class-daeb09dd.js +52 -0
  8. package/cjs/CookieHelper.class-daeb09dd.js.map +1 -0
  9. package/cjs/{RouteLoader-7f0d107a.js → RouteLoader-005d7f4e.js} +9 -5
  10. package/cjs/RouteLoader-005d7f4e.js.map +1 -0
  11. package/cjs/{ToJs-6e9cfa69.js → ToJs-5169fe56.js} +2 -2
  12. package/cjs/ToJs-5169fe56.js.map +1 -0
  13. package/cjs/client.js +15 -11
  14. package/cjs/client.js.map +1 -1
  15. package/cjs/contensis-react-base.js +18 -343
  16. package/cjs/contensis-react-base.js.map +1 -1
  17. package/cjs/{login-2a6b5be0.js → login-c94a3369.js} +86 -80
  18. package/cjs/login-c94a3369.js.map +1 -0
  19. package/cjs/redux.js +3 -3
  20. package/cjs/routing.js +5 -3
  21. package/cjs/routing.js.map +1 -1
  22. package/cjs/{selectors-bcca60f4.js → selectors-bb991331.js} +4 -9
  23. package/cjs/selectors-bb991331.js.map +1 -0
  24. package/cjs/user.js +30 -15
  25. package/cjs/user.js.map +1 -1
  26. package/cjs/util.js +5 -3
  27. package/cjs/util.js.map +1 -1
  28. package/cjs/{version-4077e706.js → version-153ec9ef.js} +2 -2
  29. package/cjs/{version-4077e706.js.map → version-153ec9ef.js.map} +1 -1
  30. package/cjs/{version-fe28099e.js → version-963a7634.js} +3 -3
  31. package/cjs/{version-fe28099e.js.map → version-963a7634.js.map} +1 -1
  32. package/esm/{App-2af18a99.js → App-cdcedf62.js} +47 -21
  33. package/esm/App-cdcedf62.js.map +1 -0
  34. package/esm/{ContensisDeliveryApi-5660ee0e.js → ContensisDeliveryApi-91398551.js} +55 -35
  35. package/esm/ContensisDeliveryApi-91398551.js.map +1 -0
  36. package/esm/CookieConstants-3d3b6531.js +6 -0
  37. package/esm/CookieConstants-3d3b6531.js.map +1 -0
  38. package/esm/CookieHelper.class-4d6ee27b.js +49 -0
  39. package/esm/CookieHelper.class-4d6ee27b.js.map +1 -0
  40. package/esm/{RouteLoader-6eac364e.js → RouteLoader-d36840dd.js} +9 -5
  41. package/esm/RouteLoader-d36840dd.js.map +1 -0
  42. package/esm/{ToJs-9b30636a.js → ToJs-e1af7030.js} +2 -2
  43. package/esm/ToJs-e1af7030.js.map +1 -0
  44. package/esm/client.js +16 -12
  45. package/esm/client.js.map +1 -1
  46. package/esm/contensis-react-base.js +18 -344
  47. package/esm/contensis-react-base.js.map +1 -1
  48. package/esm/{login-71ff3fcb.js → login-950e0b92.js} +79 -72
  49. package/esm/login-950e0b92.js.map +1 -0
  50. package/esm/redux.js +6 -6
  51. package/esm/routing.js +5 -3
  52. package/esm/routing.js.map +1 -1
  53. package/esm/{selectors-74de49a3.js → selectors-1a3c1725.js} +4 -9
  54. package/esm/selectors-1a3c1725.js.map +1 -0
  55. package/esm/user.js +27 -16
  56. package/esm/user.js.map +1 -1
  57. package/esm/util.js +5 -3
  58. package/esm/util.js.map +1 -1
  59. package/esm/{version-ef107106.js → version-6cc0418c.js} +2 -2
  60. package/esm/{version-ef107106.js.map → version-6cc0418c.js.map} +1 -1
  61. package/esm/{version-b15807c5.js → version-ec722079.js} +3 -3
  62. package/esm/{version-b15807c5.js.map → version-ec722079.js.map} +1 -1
  63. package/models/client/client.d.ts +2 -2
  64. package/models/client/index.d.ts +1 -1
  65. package/models/config.d.ts +3 -3
  66. package/models/index.d.ts +5 -5
  67. package/models/redux/actions/index.d.ts +1 -1
  68. package/models/redux/appstate.d.ts +2 -2
  69. package/models/redux/selectors/index.d.ts +1 -1
  70. package/models/redux/store/store.d.ts +1 -1
  71. package/models/redux/types/index.d.ts +1 -1
  72. package/models/routing/redux/actions.d.ts +10 -6
  73. package/models/routing/redux/selectors.d.ts +5 -5
  74. package/models/routing/redux/types.d.ts +0 -1
  75. package/models/routing/routes.d.ts +21 -18
  76. package/models/routing/util/queries.d.ts +1 -1
  77. package/models/search/models/Queries.d.ts +8 -10
  78. package/models/search/models/Search.d.ts +24 -24
  79. package/models/search/models/SearchActions.d.ts +33 -33
  80. package/models/search/models/SearchState.d.ts +11 -11
  81. package/models/search/models/SearchUtil.d.ts +1 -1
  82. package/models/search/models/WithSearch.d.ts +1 -1
  83. package/models/search/redux/actions.d.ts +4 -4
  84. package/models/search/redux/selectors.d.ts +27 -27
  85. package/models/search/redux/util.d.ts +1 -1
  86. package/models/search/search/expressions.d.ts +4 -4
  87. package/models/search/search/util.d.ts +2 -2
  88. package/models/search/transformations/state-to-queryparams.mapper.d.ts +1 -1
  89. package/models/server/features/linkdepth-api/LinkDepthSearchService.d.ts +1 -1
  90. package/models/server/features/linkdepth-api/search.d.ts +3 -3
  91. package/models/server/internalServer.d.ts +8 -6
  92. package/models/server/util/bundles.d.ts +3 -3
  93. package/models/server/util/headers.d.ts +1 -1
  94. package/models/server/webApp.d.ts +1 -1
  95. package/models/testImmer/redux/reducer.d.ts +1 -1
  96. package/models/user/components/Login.d.ts +2 -3
  97. package/models/user/containers/ChangePassword.container.d.ts +2 -2
  98. package/models/user/containers/ForgotPassword.container.d.ts +2 -2
  99. package/models/user/containers/Login.container.d.ts +2 -2
  100. package/models/user/containers/Registration.container.d.ts +2 -2
  101. package/models/user/hocs/withLogin.d.ts +5 -11
  102. package/models/user/hocs/withRegistration.d.ts +2 -8
  103. package/models/user/redux/actions.d.ts +2 -2
  104. package/models/user/redux/sagas/login.d.ts +9 -8
  105. package/models/user/redux/selectors.d.ts +6 -6
  106. package/models/user/util/CookieConstants.d.ts +7 -0
  107. package/models/user/util/CookieHelper.class.d.ts +15 -3
  108. package/models/user/util/LoginHelper.class.d.ts +26 -23
  109. package/models/user/util/matchGroups.d.ts +1 -1
  110. package/models/util/ContensisDeliveryApi.d.ts +21 -14
  111. package/models/util/ToJs.d.ts +1 -1
  112. package/models/util/index.d.ts +2 -2
  113. package/models/util/json-mapper.d.ts +3 -3
  114. package/package.json +8 -8
  115. package/cjs/App-21a7d836.js.map +0 -1
  116. package/cjs/ContensisDeliveryApi-c079b03a.js.map +0 -1
  117. package/cjs/RouteLoader-7f0d107a.js.map +0 -1
  118. package/cjs/ToJs-6e9cfa69.js.map +0 -1
  119. package/cjs/login-2a6b5be0.js.map +0 -1
  120. package/cjs/selectors-bcca60f4.js.map +0 -1
  121. package/esm/App-2af18a99.js.map +0 -1
  122. package/esm/ContensisDeliveryApi-5660ee0e.js.map +0 -1
  123. package/esm/RouteLoader-6eac364e.js.map +0 -1
  124. package/esm/ToJs-9b30636a.js.map +0 -1
  125. package/esm/login-71ff3fcb.js.map +0 -1
  126. package/esm/selectors-74de49a3.js.map +0 -1
@@ -11,12 +11,12 @@ 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, scrollToElement?: string | undefined) => {
14
+ export declare const updatePageIndex: (pageIndex: number, scrollToElement?: string) => {
15
15
  type: string;
16
16
  pageIndex: number;
17
17
  scrollToElement: string | undefined;
18
18
  };
19
- export declare const updatePageSize: (pageSize: number, scrollToElement?: string | undefined) => {
19
+ export declare const updatePageSize: (pageSize: number, scrollToElement?: string) => {
20
20
  type: string;
21
21
  pageSize: number;
22
22
  scrollToElement: string | undefined;
@@ -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, scrollToElement?: string | 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
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;
@@ -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
26
  export declare const scrollTo: (scrollToElement: string) => void;
@@ -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, omitSearchFields?: string[]) => 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
  };
@@ -1,9 +1,9 @@
1
- import { FilterExpression, SearchQueryOptions } from "../../../search";
1
+ 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
9
  }, 'assetTypes' | 'customWhere' | 'dynamicOrderBy' | 'excludeIds' | 'featuredResults' | 'fields' | 'includeInSearchFields' | 'languages' | 'omitDefaultSearchFields' | 'orderBy' | 'pageIndex' | 'searchTerm' | 'webpageTemplates' | 'weightedSearchFields'>;
@@ -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 { ServerConfig } from "../config";
7
- declare const _default: {
8
- app: import("express-serve-static-core").Express;
9
- apiProxy: any;
6
+ import { deliveryProxy } from './features/reverse-proxy';
7
+ import { ServerConfig } from '~/config';
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
- import { ServerConfig } from "../../config";
3
- export declare const loadableBundleData: ({ stats, templates }: ServerConfig, staticRoutePath: string, build?: string | undefined) => {
2
+ import { ServerConfig } from '~/config';
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,5 +1,5 @@
1
1
  import { Response } from 'express';
2
- import { AppState } from "../../redux/appstate";
2
+ import { AppState } from '~/redux/appstate';
3
3
  export declare const addStandardHeaders: (state: AppState, response: Response, packagejson: any, groups: {
4
4
  globalGroups?: any[];
5
5
  allowedGroups?: any[];
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Express } from 'express';
3
- import { ServerConfig } from "../config";
3
+ import { ServerConfig } from '~/config';
4
4
  declare const webApp: (app: Express, ReactApp: React.ComponentType<any>, config: ServerConfig & {
5
5
  allowedGroups?: string[];
6
6
  globalGroups?: string[];
@@ -1,2 +1,2 @@
1
- declare var _default: any;
1
+ declare const _default: any;
2
2
  export default _default;
@@ -1,10 +1,9 @@
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
+ }) => JSX.Element;
9
9
  export default _default;
10
- import React from "react";
@@ -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
+ }) => JSX.Element;
5
5
  export default _default;
@@ -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
+ }) => JSX.Element;
5
5
  export default _default;
@@ -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
+ }) => JSX.Element;
5
5
  export default _default;
@@ -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
+ }) => JSX.Element;
5
5
  export default _default;
@@ -1,12 +1,6 @@
1
1
  export default withLogin;
2
- declare function withLogin(WrappedComponent: any): import("react-redux").ConnectedComponent<import("react").ComponentType<{
3
- [key: string]: any;
4
- }>, import("react-redux").Omit<{
5
- [key: string]: any;
6
- } & {
7
- children?: import("react").ReactNode;
8
- }, "error" | "isError" | "isLoading" | "user" | "isAuthenticated" | "isAuthenticationError" | "loginUser" | "logoutUser" | "authenticationError"> | import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<{
9
- [key: string]: any;
10
- }, any, any>> & {
11
- [key: string]: any;
12
- }, "error" | "isError" | "isLoading" | "user" | "isAuthenticated" | "isAuthenticationError" | "loginUser" | "logoutUser" | "authenticationError">>;
2
+ declare function withLogin(WrappedComponent: any): {
3
+ (): JSX.Element;
4
+ displayName: string;
5
+ WrappedComponent: any;
6
+ };
@@ -1,12 +1,6 @@
1
1
  export default withRegistration;
2
- declare function withRegistration(WrappedComponent: any): import("react-redux").ConnectedComponent<import("react").ComponentType<{
2
+ declare function withRegistration(WrappedComponent: any): import("react-redux").ConnectedComponent<(wrappedComponentProps: {
3
3
  [key: string]: any;
4
- }>, import("react-redux").Omit<{
5
- [key: string]: any;
6
- } & {
7
- children?: import("react").ReactNode;
8
- }, "error" | "isLoading" | "user" | "registerUser" | "isSuccess"> | import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<{
9
- [key: string]: any;
10
- }, any, any>> & {
4
+ }) => JSX.Element, import("react-redux").Omit<{
11
5
  [key: string]: any;
12
6
  }, "error" | "isLoading" | "user" | "registerUser" | "isSuccess">>;
@@ -1,5 +1,5 @@
1
- export function loginUser(username: any, password: any): any;
2
- export function logoutUser(redirectPath: any): any;
1
+ export function loginUser(username: any, password: any, cookies: any): any;
2
+ export function logoutUser(redirectPath: any, cookies: any): any;
3
3
  export function registerUser(user: any, mappers: any): any;
4
4
  export function requestPasswordReset(userEmailObject: any): any;
5
5
  export function resetPassword(resetPasswordObject: any): any;
@@ -8,6 +8,12 @@ export function handleRequiresLoginSaga(action: any): Generator<import("redux-sa
8
8
  authenticationState: {
9
9
  isLoading: boolean;
10
10
  };
11
+ }> | import("redux-saga/effects").PutEffect<{
12
+ type: string;
13
+ authenticationState: {
14
+ isError: boolean;
15
+ errorMessage: any;
16
+ };
11
17
  }> | import("redux-saga/effects").CallEffect<Generator<Promise<{
12
18
  authenticationState: {
13
19
  clientCredentials: null;
@@ -25,15 +31,10 @@ export function handleRequiresLoginSaga(action: any): Generator<import("redux-sa
25
31
  }>, void, {
26
32
  authenticationState: any;
27
33
  user: any;
28
- }>> | import("redux-saga/effects").PutEffect<{
29
- type: string;
30
- authenticationState: {
31
- isError: boolean;
32
- errorMessage: any;
33
- };
34
- }>, any, [any, any]>> | import("redux-saga/effects").PutEffect<{
34
+ }>>, any, [any, any]>> | import("redux-saga/effects").PutEffect<{
35
35
  type: string;
36
+ cookies: any;
36
37
  securityToken: any;
37
- }>, void, any>;
38
+ }>, any, any>;
38
39
  export function refreshSecurityToken(): Generator<any, void, unknown>;
39
40
  export const loginSagas: import("redux-saga/effects").ForkEffect<never>[];
@@ -1,5 +1,5 @@
1
- import { StateType } from "../../config";
2
- import { AppState } from "../../redux/appstate";
1
+ import { StateType } from '~/config';
2
+ import { AppState } from '~/redux/appstate';
3
3
  export declare const selectUserIsLoading: (state: AppState) => any;
4
4
  export declare const selectUserIsAuthenticated: (state: AppState) => any;
5
5
  export declare const selectUserIsAuthenticationError: (state: AppState) => any;
@@ -11,15 +11,15 @@ export declare const selectUserIsError: (state: AppState) => any;
11
11
  */
12
12
  export declare const selectUserAuthenticationErrorMessage: (state: AppState) => any;
13
13
  export declare const selectUserErrorMessage: (state: AppState) => any;
14
- export declare const selectClientCredentials: (state: AppState, returnType?: StateType | undefined) => any;
15
- export declare const selectUser: (state: AppState, returnType?: StateType | undefined) => any;
14
+ export declare const selectClientCredentials: (state: AppState, returnType?: StateType) => any;
15
+ export declare const selectUser: (state: AppState, returnType?: StateType) => any;
16
16
  export declare const selectUserIsZengentiStaff: (state: AppState) => any;
17
17
  export declare const selectUserGuid: (state: AppState) => any;
18
18
  export declare const selectUsername: (state: AppState) => any;
19
19
  export declare const selectUserEmail: (state: AppState) => any;
20
- export declare const selectUserGroups: (state: AppState, returnType?: StateType | undefined) => any;
20
+ export declare const selectUserGroups: (state: AppState, returnType?: StateType) => any;
21
21
  export declare const selectUserSecurityToken: (state: AppState) => any;
22
- export declare const selectUserRegistration: (state: AppState, returnType?: StateType | undefined) => any;
22
+ export declare const selectUserRegistration: (state: AppState, returnType?: StateType) => any;
23
23
  export declare const selectUserRegistrationError: (state: AppState) => any;
24
24
  export declare const selectUserRegistrationIsLoading: (state: AppState) => any;
25
25
  export declare const selectUserRegistrationIsSuccess: (state: AppState) => any;
@@ -0,0 +1,7 @@
1
+ export declare const LOGIN_COOKIE = "ContensisCMSUserName";
2
+ export declare const REFRESH_TOKEN_COOKIE = "RefreshToken";
3
+ export declare const findLoginCookies: (cookies: string | {
4
+ [name: string]: any;
5
+ }) => string | {
6
+ [k: string]: any;
7
+ };
@@ -1,5 +1,17 @@
1
+ type Cookies = {
2
+ [k: string]: string;
3
+ };
1
4
  export declare class CookieHelper {
2
- static GetCookie(name: any): string | null;
3
- static SetCookie(name: any, value: any, maxAgeDays?: number): void;
4
- static DeleteCookie(name: any): void;
5
+ private cookies;
6
+ private setCookie;
7
+ private removeCookie;
8
+ get raw(): Cookies;
9
+ constructor(cookies: {
10
+ [k: string]: string;
11
+ }, setCookie: CookieHelper['setCookie'], removeCookie: CookieHelper['removeCookie']);
12
+ GetCookie(name: string): string | null;
13
+ SetCookie(name: string, value: string, maxAgeDays?: number): void;
14
+ DeleteCookie(name: string): void;
5
15
  }
16
+ export declare const mapCookieHeader: (cookies: any) => any;
17
+ export {};
@@ -3,19 +3,38 @@ export class LoginHelper {
3
3
  static WSFED_LOGIN: boolean;
4
4
  static LOGIN_ROUTE: string;
5
5
  static ACCESS_DENIED_ROUTE: string;
6
- static SetLoginCookies({ contensisClassicToken, refreshToken }: {
6
+ static withCookies: (cookieHelper: any) => LoginHelper;
7
+ static GetUserDetails: (client: any) => Promise<(Error | {
8
+ groups: any;
9
+ } | null)[]>;
10
+ static ClientRedirectToHome(location: any): void;
11
+ static ClientRedirectToSignInPage(redirectPath: any): Promise<void>;
12
+ static ClientRedirectToAccessDeniedPage(originalPath: any): void;
13
+ static ClientRedirectToPath(redirectPath: any): void;
14
+ static WsFedLogin(redirectUri: any): Promise<void>;
15
+ static RemoveSecurityTokenQuery(): void;
16
+ static WsFedLogout(redirectPath: any): Promise<void>;
17
+ static GetCredentialsForSecurityToken(securityToken: any): Promise<undefined[] | Error[] | {
18
+ message: string;
19
+ }[] | {
20
+ message: string;
21
+ data: any;
22
+ }[]>;
23
+ constructor(cookies: any);
24
+ cookies: any;
25
+ SetLoginCookies({ contensisClassicToken, refreshToken }: {
7
26
  contensisClassicToken: any;
8
27
  refreshToken: any;
9
28
  }): void;
10
- static GetCachedCredentials(): {
29
+ GetCachedCredentials(): {
11
30
  bearerToken: null;
12
31
  bearerTokenExpiryDate: null;
13
- refreshToken: string | null;
32
+ refreshToken: any;
14
33
  refreshTokenExpiryDate: null;
15
- contensisClassicToken: string | null;
34
+ contensisClassicToken: any;
16
35
  };
17
- static ClearCachedCredentials(): void;
18
- static LoginUser({ username, password, clientCredentials }: {
36
+ ClearCachedCredentials(): void;
37
+ LoginUser({ username, password, clientCredentials }: {
19
38
  username: any;
20
39
  password: any;
21
40
  clientCredentials: any;
@@ -30,21 +49,5 @@ export class LoginHelper {
30
49
  groups: any;
31
50
  } | null | undefined;
32
51
  }>;
33
- static GetUserDetails: (client: any) => Promise<(Error | {
34
- groups: any;
35
- } | null)[]>;
36
- static LogoutUser(redirectPath: any): void;
37
- static ClientRedirectToHome(location: any): void;
38
- static ClientRedirectToSignInPage(redirectPath: any): Promise<void>;
39
- static ClientRedirectToAccessDeniedPage(originalPath: any): void;
40
- static ClientRedirectToPath(redirectPath: any): void;
41
- static WsFedLogin(redirectUri: any): Promise<void>;
42
- static RemoveSecurityTokenQuery(): void;
43
- static WsFedLogout(redirectPath: any): Promise<void>;
44
- static GetCredentialsForSecurityToken(securityToken: any): Promise<undefined[] | Error[] | {
45
- message: string;
46
- }[] | {
47
- message: string;
48
- data: any;
49
- }[]>;
52
+ LogoutUser(redirectPath: any): void;
50
53
  }
@@ -1,3 +1,3 @@
1
1
  import { Group } from 'contensis-management-api/lib/models';
2
- import { RequireLogin } from "../../routing/routes";
2
+ import { RequireLogin } from '~/routing/routes';
3
3
  export declare const matchUserGroup: (userGroups?: Group[], requiredGroups?: RequireLogin) => boolean;
@@ -1,4 +1,4 @@
1
- export function getClientConfig(project: any): {
1
+ export function getClientConfig(project: any, cookies: any): {
2
2
  rootUrl: string;
3
3
  accessToken: string;
4
4
  projectId: string;
@@ -6,29 +6,36 @@ export function getClientConfig(project: any): {
6
6
  };
7
7
  export * from "contensis-delivery-api";
8
8
  export const deliveryApi: DeliveryApi;
9
+ export function deliveryApiWithCookies(cookies: any): DeliveryApi;
9
10
  export const cachedSearch: CachedSearch;
11
+ export function cachedSearchWithCookies(cookies: any): CachedSearch;
10
12
  declare class DeliveryApi {
13
+ constructor(cookies: any);
14
+ cookies: any;
11
15
  getClientSideVersionStatus: () => any;
12
16
  getServerSideVersionStatus: (request: any) => any;
13
17
  getVersionStatusFromHeaders: (headers: any) => any;
14
18
  getVersionStatusFromHostname: (currentHostname: any) => "published" | "latest";
15
- search: (query: any, linkDepth: any, project: any, env: any) => Promise<import("contensis-core-api").PagedList<import("contensis-delivery-api/lib/models").Entry>>;
16
- getClient: (deliveryApiStatus: string | undefined, project: any, env: any) => Client;
17
- getEntry: (id: any, linkDepth: number | undefined, deliveryApiStatus: string | undefined, project: any, env: any) => Promise<import("contensis-delivery-api/lib/models").Entry>;
19
+ search: (query: any, linkDepth: any, project: any) => Promise<import("contensis-core-api").PagedList<import("contensis-delivery-api/lib/models").Entry>>;
20
+ getClient: (deliveryApiStatus: string | undefined, project: any) => Client;
21
+ getEntry: (id: any, linkDepth: number | undefined, deliveryApiStatus: string | undefined, project: any) => Promise<import("contensis-delivery-api/lib/models").Entry>;
18
22
  }
19
23
  declare class CachedSearch {
24
+ constructor(cookies: any);
20
25
  cache: LruCache;
26
+ cookies: any;
21
27
  taxonomyLookup: {};
22
- search(query: any, linkDepth: any, project: any, env: any): any;
23
- searchUsingPost(query: any, linkDepth: number | undefined, project: string | undefined, env: any): any;
24
- get(id: any, linkDepth: any, versionStatus: any, project: any, env: any): any;
25
- getContentType(id: any, project: any, env: any): any;
26
- getTaxonomyNode(key: any, project: any, env: any): any;
27
- getRootNode(options: any, project: any, env: any): any;
28
- getNode(options: any, project: any, env: any): any;
29
- getAncestors(options: any, project: any, env: any): any;
30
- getChildren(options: any, project: any, env: any): any;
31
- getSiblings(options: any, project: any, env: any): any;
28
+ getClient: (deliveryApiStatus: string | undefined, project: any) => Client;
29
+ search(query: any, linkDepth: any, project: any): any;
30
+ searchUsingPost(query: any, linkDepth?: number, project?: string): any;
31
+ get(id: any, linkDepth: any, versionStatus: any, project: any): any;
32
+ getContentType(id: any, project: any): any;
33
+ getTaxonomyNode(key: any, project: any): any;
34
+ getRootNode(options: any, project: any): any;
35
+ getNode(options: any, project: any): any;
36
+ getAncestors(options: any, project: any): any;
37
+ getChildren(options: any, project: any): any;
38
+ getSiblings(options: any, project: any): any;
32
39
  request(key: any, execute: any): any;
33
40
  }
34
41
  import { Client } from "contensis-delivery-api";
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const toJS: <Props extends {
3
3
  [key: string]: any;
4
- }>(WrappedComponent: React.ComponentType<Props>) => React.ComponentType<Props>;
4
+ }>(WrappedComponent: React.ComponentType<Props>) => (wrappedComponentProps: Props) => JSX.Element;