@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.
- package/README.md +38 -2
- package/cjs/{App-81a45001.js → App-cf7e3103.js} +69 -34
- package/cjs/App-cf7e3103.js.map +1 -0
- package/cjs/{login-51b66359.js → ChangePassword.container-a617190b.js} +246 -84
- package/cjs/ChangePassword.container-a617190b.js.map +1 -0
- package/cjs/{ContensisDeliveryApi-de88df2a.js → ContensisDeliveryApi-9e32960d.js} +156 -122
- package/cjs/ContensisDeliveryApi-9e32960d.js.map +1 -0
- package/cjs/CookieConstants-000427db.js +10 -0
- package/cjs/CookieConstants-000427db.js.map +1 -0
- package/cjs/{RouteLoader-47d70a26.js → RouteLoader-3e284fd6.js} +9 -7
- package/cjs/RouteLoader-3e284fd6.js.map +1 -0
- package/cjs/{ToJs-61c03582.js → ToJs-149fc5e1.js} +49 -2
- package/cjs/ToJs-149fc5e1.js.map +1 -0
- package/cjs/_commonjsHelpers-b3309d7b.js +11 -0
- package/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
- package/cjs/client.js +43 -17
- package/cjs/client.js.map +1 -1
- package/cjs/contensis-react-base.js +49 -362
- package/cjs/contensis-react-base.js.map +1 -1
- package/cjs/forms.js +3495 -127
- package/cjs/forms.js.map +1 -1
- package/cjs/redux.js +3 -4
- package/cjs/redux.js.map +1 -1
- package/cjs/routing.js +4 -4
- package/cjs/{sagas-6d12e7ca.js → sagas-e04b94c1.js} +44 -20
- package/cjs/sagas-e04b94c1.js.map +1 -0
- package/cjs/search.js +13 -13
- package/cjs/search.js.map +1 -1
- package/cjs/{selectors-c76c2676.js → selectors-46b689d0.js} +11 -11
- package/cjs/selectors-46b689d0.js.map +1 -0
- package/cjs/user.js +33 -159
- package/cjs/user.js.map +1 -1
- package/cjs/util.js +6 -4
- package/cjs/util.js.map +1 -1
- package/cjs/{version-38afaf2a.js → version-79a027cb.js} +12 -23
- package/cjs/version-79a027cb.js.map +1 -0
- package/cjs/{version-886f49d8.js → version-afd4f77e.js} +3 -3
- package/cjs/{version-886f49d8.js.map → version-afd4f77e.js.map} +1 -1
- package/esm/{App-5f914483.js → App-6e8e803b.js} +63 -29
- package/esm/App-6e8e803b.js.map +1 -0
- package/esm/{login-4d07c2de.js → ChangePassword.container-ae0f9ce4.js} +229 -78
- package/esm/ChangePassword.container-ae0f9ce4.js.map +1 -0
- package/esm/{ContensisDeliveryApi-ad06857d.js → ContensisDeliveryApi-c66b0cc3.js} +155 -123
- package/esm/ContensisDeliveryApi-c66b0cc3.js.map +1 -0
- package/esm/CookieConstants-3d3b6531.js +6 -0
- package/esm/CookieConstants-3d3b6531.js.map +1 -0
- package/esm/{RouteLoader-f5d5f733.js → RouteLoader-e3c5505f.js} +9 -7
- package/esm/RouteLoader-e3c5505f.js.map +1 -0
- package/esm/{ToJs-0066e629.js → ToJs-ae860aad.js} +49 -3
- package/esm/ToJs-ae860aad.js.map +1 -0
- package/esm/_commonjsHelpers-1789f0cf.js +8 -0
- package/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
- package/esm/client.js +43 -18
- package/esm/client.js.map +1 -1
- package/esm/contensis-react-base.js +48 -362
- package/esm/contensis-react-base.js.map +1 -1
- package/esm/forms.js +3497 -129
- package/esm/forms.js.map +1 -1
- package/esm/redux.js +6 -7
- package/esm/redux.js.map +1 -1
- package/esm/routing.js +4 -4
- package/esm/{sagas-53d2aefb.js → sagas-933a8fc8.js} +44 -20
- package/esm/sagas-933a8fc8.js.map +1 -0
- package/esm/search.js +14 -14
- package/esm/search.js.map +1 -1
- package/esm/{selectors-3f0d804d.js → selectors-01074974.js} +11 -12
- package/esm/selectors-01074974.js.map +1 -0
- package/esm/user.js +21 -151
- package/esm/user.js.map +1 -1
- package/esm/util.js +4 -4
- package/esm/util.js.map +1 -1
- package/esm/{version-f4629693.js → version-0fbd1b82.js} +3 -3
- package/esm/{version-f4629693.js.map → version-0fbd1b82.js.map} +1 -1
- package/esm/{version-dd31c7f0.js → version-346a9787.js} +13 -23
- package/esm/version-346a9787.js.map +1 -0
- package/models/app/App.d.ts +3 -3
- package/models/app/pages/VersionInfo/components/VersionInfo.d.ts +5 -3
- package/models/client/client.d.ts +1 -1
- package/models/config.d.ts +4 -4
- package/models/redux/appstate.d.ts +2 -1
- package/models/routing/components/Loading.d.ts +2 -2
- package/models/routing/components/NotFound.d.ts +2 -2
- package/models/routing/components/Status.d.ts +1 -1
- package/models/routing/redux/actions.d.ts +10 -6
- package/models/routing/redux/selectors.d.ts +5 -4
- package/models/routing/redux/types.d.ts +0 -1
- package/models/routing/routes.d.ts +20 -17
- package/models/routing/util/queries.d.ts +3 -2
- package/models/search/models/Queries.d.ts +9 -10
- package/models/search/models/Search.d.ts +26 -24
- package/models/search/models/SearchActions.d.ts +36 -36
- package/models/search/models/SearchState.d.ts +11 -11
- package/models/search/models/SearchUtil.d.ts +1 -1
- package/models/search/models/WithSearch.d.ts +1 -1
- package/models/search/redux/actions.d.ts +7 -7
- package/models/search/redux/selectors.d.ts +27 -27
- package/models/search/redux/types.d.ts +21 -21
- package/models/search/redux/util.d.ts +2 -2
- package/models/search/search/ContensisDeliveryApi.d.ts +1 -1
- package/models/search/search/expressions.d.ts +4 -4
- package/models/search/search/util.d.ts +2 -2
- package/models/search/transformations/state-to-queryparams.mapper.d.ts +1 -1
- package/models/server/features/linkdepth-api/LinkDepthSearchService.d.ts +1 -1
- package/models/server/features/linkdepth-api/search.d.ts +3 -3
- package/models/server/internalServer.d.ts +7 -5
- package/models/server/util/bundles.d.ts +2 -2
- package/models/server/util/handleExceptions.d.ts +1 -1
- package/models/testImmer/redux/reducer.d.ts +1 -1
- package/models/user/components/Login.d.ts +2 -2
- package/models/user/components/LoginForm.d.ts +2 -1
- package/models/user/components/LogoutForm.d.ts +2 -1
- package/models/user/containers/ChangePassword.container.d.ts +2 -2
- package/models/user/containers/ForgotPassword.container.d.ts +2 -2
- package/models/user/containers/Login.container.d.ts +2 -2
- package/models/user/containers/Registration.container.d.ts +2 -2
- package/models/user/hocs/withLogin.d.ts +6 -11
- package/models/user/hocs/withRegistration.d.ts +2 -8
- package/models/user/redux/actions.d.ts +2 -2
- package/models/user/redux/sagas/login.d.ts +9 -8
- package/models/user/redux/selectors.d.ts +4 -4
- package/models/user/util/CookieConstants.d.ts +8 -0
- package/models/user/util/CookieHelper.class.d.ts +15 -3
- package/models/user/util/LoginHelper.class.d.ts +27 -23
- package/models/util/CachedDeliveryApi.d.ts +25 -0
- package/models/util/ContensisDeliveryApi.d.ts +20 -44
- package/models/util/LruCache.d.ts +12 -0
- package/models/util/ToJs.d.ts +1 -1
- package/models/util/index.d.ts +1 -1
- package/models/util/json-mapper.d.ts +1 -1
- package/package.json +14 -16
- package/cjs/App-81a45001.js.map +0 -1
- package/cjs/ContensisDeliveryApi-de88df2a.js.map +0 -1
- package/cjs/RouteLoader-47d70a26.js.map +0 -1
- package/cjs/ToJs-61c03582.js.map +0 -1
- package/cjs/login-51b66359.js.map +0 -1
- package/cjs/sagas-6d12e7ca.js.map +0 -1
- package/cjs/selectors-c76c2676.js.map +0 -1
- package/cjs/version-38afaf2a.js.map +0 -1
- package/esm/App-5f914483.js.map +0 -1
- package/esm/ContensisDeliveryApi-ad06857d.js.map +0 -1
- package/esm/RouteLoader-f5d5f733.js.map +0 -1
- package/esm/ToJs-0066e629.js.map +0 -1
- package/esm/login-4d07c2de.js.map +0 -1
- package/esm/sagas-53d2aefb.js.map +0 -1
- package/esm/selectors-3f0d804d.js.map +0 -1
- 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
|
-
|
|
8
|
+
type Action = {
|
|
9
9
|
type: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type WithMappers<T> = T & {
|
|
12
12
|
mappers: Mappers;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type DebugFlags = boolean | {
|
|
15
15
|
executeSearch?: boolean;
|
|
16
16
|
preloadOtherFacets?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
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
|
|
32
|
-
export
|
|
33
|
-
|
|
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
|
|
46
|
+
export type InitListingAction = Action & InitListingParams & {
|
|
47
47
|
ssr?: boolean;
|
|
48
48
|
};
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
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
|
|
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
|
|
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
|
|
77
|
+
export type EnsureSearchAction = InitListingAction & {
|
|
78
78
|
ogState: AppState;
|
|
79
79
|
};
|
|
80
|
-
export
|
|
80
|
+
export type ExecuteSearchAction = EnsureSearchAction & {
|
|
81
81
|
preload: boolean;
|
|
82
82
|
queryParams: QueryParams;
|
|
83
83
|
};
|
|
84
|
-
export
|
|
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
|
|
99
|
-
export
|
|
98
|
+
export type SetSearchEntriesAction = Action & SetSearchEntriesParams;
|
|
99
|
+
export type ApplySearchFilterAction = Action & {
|
|
100
100
|
filter: string;
|
|
101
101
|
key: string;
|
|
102
102
|
isUnknownItem: boolean;
|
|
103
|
-
|
|
103
|
+
scrollToElement?: string;
|
|
104
104
|
};
|
|
105
|
-
export
|
|
106
|
-
export
|
|
107
|
-
export
|
|
108
|
-
export
|
|
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
|
|
112
|
-
export
|
|
111
|
+
export type UpdateCurrentFacetActionCreator = (facet: string) => UpdateCurrentFacetAction;
|
|
112
|
+
export type UpdateCurrentTabAction = Action & {
|
|
113
113
|
id: number;
|
|
114
114
|
};
|
|
115
|
-
export
|
|
116
|
-
export
|
|
115
|
+
export type UpdateCurrentTabActionCreator = (id: number) => UpdateCurrentFacetAction;
|
|
116
|
+
export type UpdateSearchTermAction = Action & {
|
|
117
117
|
term: string;
|
|
118
118
|
};
|
|
119
|
-
export
|
|
120
|
-
export
|
|
119
|
+
export type UpdateSearchTermActionCreator = (term: string) => UpdateSearchTermAction;
|
|
120
|
+
export type UpdateSortOrderAction = Action & {
|
|
121
121
|
orderBy: string;
|
|
122
122
|
facet: string;
|
|
123
123
|
};
|
|
124
|
-
export
|
|
125
|
-
export
|
|
124
|
+
export type UpdateSortOrderActionCreator = (orderBy: string, facet: string) => UpdateSortOrderAction;
|
|
125
|
+
export type UpdatePageIndexAction = Action & {
|
|
126
126
|
pageIndex: number;
|
|
127
|
-
|
|
127
|
+
scrollToElement?: string;
|
|
128
128
|
};
|
|
129
|
-
export
|
|
130
|
-
export
|
|
129
|
+
export type UpdatePageIndexActionCreator = (pageIndex: number) => UpdatePageIndexAction;
|
|
130
|
+
export type UpdatePageSizeAction = Action & {
|
|
131
131
|
pageSize: number;
|
|
132
|
-
|
|
132
|
+
scrollToElement?: string;
|
|
133
133
|
};
|
|
134
|
-
export
|
|
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
|
|
4
|
-
export
|
|
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
|
|
15
|
+
export type Facets = {
|
|
16
16
|
[key: string]: Facet;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
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
|
|
56
|
+
export type Filters = {
|
|
57
57
|
[key: string]: Filter;
|
|
58
58
|
};
|
|
59
|
-
export
|
|
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
|
|
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
|
|
81
|
+
export type SelectedFilters = {
|
|
82
82
|
[k: string]: string[];
|
|
83
83
|
};
|
|
84
|
-
export
|
|
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
|
|
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
|
|
100
|
+
export type TabAndFacets = Tab & {
|
|
101
101
|
facets: {
|
|
102
102
|
[key: string]: Facet;
|
|
103
103
|
};
|
|
@@ -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,
|
|
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,
|
|
19
|
+
export declare const updatePageSize: (pageSize: number, scrollToElement?: string) => {
|
|
20
20
|
type: string;
|
|
21
21
|
pageSize: number;
|
|
22
|
-
|
|
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,
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
26
|
-
export declare const getSelectedFilters: (state: AppState, facet?: string, context?: Context, returnType?: StateType
|
|
27
|
-
export declare const getResults: (state: AppState, current?: string, context?: Context, returnType?: StateType
|
|
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
|
|
30
|
-
export declare const getIsLoading: (state: AppState, context?: Context, facet?: string
|
|
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
|
|
33
|
-
export declare const getPaging: (state: AppState, current?: string, context?: Context, returnType?: StateType
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
65
|
+
getFacets: (state: AppState, returnType?: StateType) => Facets;
|
|
66
66
|
getFacetsTotalCount: (state: AppState) => number;
|
|
67
|
-
getFeaturedResults: (state: AppState, current?: string, context?: Context, returnType?: StateType
|
|
68
|
-
getFilters: (state: AppState, facet: string, context?: Context, returnType?: StateType
|
|
69
|
-
getFiltersToLoad: (state: AppState, facet: string, context?: Context, returnType?: StateType
|
|
70
|
-
getIsLoaded: (state: AppState, context?: Context, facet?: string
|
|
71
|
-
getIsLoading: (state: AppState, context?: Context, facet?: string
|
|
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
|
|
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
|
|
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
|
|
86
|
+
getTabsAndFacets: (state: AppState, returnType?: StateType) => any;
|
|
87
87
|
getTotalCount: (state: AppState, current?: string, context?: Context) => number;
|
|
88
|
-
getSearchTabs: (state: AppState, returnType?: StateType
|
|
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
|
|
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
|
|
2
|
-
export declare const CLEAR_FILTERS
|
|
3
|
-
export declare const DO_SEARCH
|
|
4
|
-
export declare const EXECUTE_SEARCH
|
|
5
|
-
export declare const EXECUTE_SEARCH_ERROR
|
|
6
|
-
export declare const EXECUTE_SEARCH_PRELOAD
|
|
7
|
-
export declare const LOAD_FILTERS
|
|
8
|
-
export declare const LOAD_FILTERS_COMPLETE
|
|
9
|
-
export declare const LOAD_FILTERS_ERROR
|
|
10
|
-
export declare const SET_FEATURED_ENTRIES
|
|
11
|
-
export declare const SET_ROUTE_FILTERS
|
|
12
|
-
export declare const SET_SEARCH_FILTERS
|
|
13
|
-
export declare const SET_SEARCH_ENTRIES
|
|
14
|
-
export declare const SET_SELECTED_FILTER
|
|
15
|
-
export declare const UPDATE_CURRENT_FACET
|
|
16
|
-
export declare const UPDATE_CURRENT_TAB
|
|
17
|
-
export declare const UPDATE_SORT_ORDER
|
|
18
|
-
export declare const UPDATE_PAGE_INDEX
|
|
19
|
-
export declare const UPDATE_PAGE_SIZE
|
|
20
|
-
export declare const UPDATE_SEARCH_TERM
|
|
21
|
-
export declare const UPDATE_SELECTED_FILTERS
|
|
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
|
|
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
|
|
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
|
|
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
|
|
5
|
-
export declare const contentTypeIdExpression: (contentTypeIds: string[], webpageTemplates?: string[]
|
|
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
|
|
26
|
-
export declare const termExpressions: (searchTerm: string, weightedSearchFields: WeightedSearchField[], fuzzySearch?: boolean
|
|
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
|
|
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
|
-
}
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
6
|
-
|
|
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
|
|
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
|
-
|
|
8
|
-
app:
|
|
9
|
-
apiProxy:
|
|
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:
|
|
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
|
|
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
|
-
|
|
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
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare
|
|
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";
|