@zengenti/contensis-react-base 3.0.2-beta.22 → 3.0.2-beta.23
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/cjs/ToJs-6e9cfa69.js.map +1 -1
- package/cjs/client.js +4 -1
- package/cjs/client.js.map +1 -1
- package/cjs/contensis-react-base.js +1 -2
- package/cjs/contensis-react-base.js.map +1 -1
- package/esm/ToJs-9b30636a.js.map +1 -1
- package/esm/client.js +4 -1
- package/esm/client.js.map +1 -1
- package/esm/contensis-react-base.js +1 -2
- package/esm/contensis-react-base.js.map +1 -1
- package/models/client/client.d.ts +2 -2
- package/models/client/index.d.ts +1 -1
- package/models/config.d.ts +3 -3
- package/models/index.d.ts +5 -5
- package/models/redux/actions/index.d.ts +1 -1
- package/models/redux/appstate.d.ts +2 -2
- package/models/redux/selectors/index.d.ts +1 -1
- package/models/redux/store/store.d.ts +1 -1
- package/models/redux/types/index.d.ts +1 -1
- package/models/routing/redux/selectors.d.ts +5 -5
- package/models/routing/routes.d.ts +18 -18
- package/models/routing/util/queries.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 +8 -6
- package/models/server/util/bundles.d.ts +3 -3
- package/models/server/util/headers.d.ts +1 -1
- package/models/server/webApp.d.ts +1 -1
- package/models/testImmer/redux/reducer.d.ts +1 -1
- package/models/user/components/Login.d.ts +2 -3
- 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 +2 -8
- package/models/user/hocs/withRegistration.d.ts +2 -8
- package/models/user/redux/selectors.d.ts +6 -6
- package/models/user/util/matchGroups.d.ts +1 -1
- package/models/util/ToJs.d.ts +1 -1
- package/models/util/index.d.ts +2 -2
- package/models/util/json-mapper.d.ts +3 -3
- package/package.json +5 -4
package/models/client/index.d.ts
CHANGED
package/models/config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppRoutes, WithEvents } from './routing/routes';
|
|
2
2
|
import handleResponse from './server/features/response-handler';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type StateType = 'immutable' | 'js';
|
|
4
|
+
export type AppConfig = {
|
|
5
5
|
stateType?: StateType;
|
|
6
6
|
routes: AppRoutes;
|
|
7
7
|
withReducers: {
|
|
@@ -10,7 +10,7 @@ export declare type AppConfig = {
|
|
|
10
10
|
withSagas: any[];
|
|
11
11
|
withEvents: WithEvents;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type ServerConfig = AppConfig & {
|
|
14
14
|
appRootPath?: string;
|
|
15
15
|
disableSsrRedux?: boolean;
|
|
16
16
|
handleResponses?: typeof handleResponse;
|
package/models/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export { default as linkDepthApi } from
|
|
4
|
-
import internalServer from
|
|
5
|
-
export { default as ReactApp } from
|
|
1
|
+
export * from '~/config';
|
|
2
|
+
export * from '~/routing/routes';
|
|
3
|
+
export { default as linkDepthApi } from '~/server/features/linkdepth-api/api';
|
|
4
|
+
import internalServer from '~/server/internalServer';
|
|
5
|
+
export { default as ReactApp } from '~/app/App';
|
|
6
6
|
export default internalServer;
|
|
@@ -2,8 +2,8 @@ import { VersionStatus } from 'contensis-core-api';
|
|
|
2
2
|
import { Entry, Node } from 'contensis-delivery-api/lib/models';
|
|
3
3
|
import { Group, User } from 'contensis-management-api/lib/models';
|
|
4
4
|
import { MatchedRoute } from 'react-router-config';
|
|
5
|
-
import { StaticRoute } from
|
|
6
|
-
export
|
|
5
|
+
import { StaticRoute } from '~/routing/routes';
|
|
6
|
+
export type AppState = {
|
|
7
7
|
navigation: {
|
|
8
8
|
root: Node | null;
|
|
9
9
|
isError: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppState } from '../appstate';
|
|
2
2
|
import { History, MemoryHistory } from 'history';
|
|
3
|
-
import { StateType } from
|
|
3
|
+
import { StateType } from '~/config';
|
|
4
4
|
export declare let reduxStore: any;
|
|
5
5
|
declare const _default: (featureReducers: any, initialState: AppState, history: History | MemoryHistory, stateType: StateType) => Promise<any>;
|
|
6
6
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StateType } from
|
|
2
|
-
import { AppState } from
|
|
3
|
-
export declare const selectRouteEntry: (state: AppState, returnType?: StateType
|
|
4
|
-
export declare const selectMappedEntry: (state: AppState, returnType?: StateType
|
|
1
|
+
import { StateType } from '~/config';
|
|
2
|
+
import { AppState } from '~/redux/appstate';
|
|
3
|
+
export declare const selectRouteEntry: (state: AppState, returnType?: StateType) => any;
|
|
4
|
+
export declare const selectMappedEntry: (state: AppState, returnType?: StateType) => any;
|
|
5
5
|
export declare const selectSurrogateKeys: (state: AppState) => any;
|
|
6
6
|
export declare const selectCurrentHostname: (state: AppState) => any;
|
|
7
7
|
export declare const selectCurrentTreeID: (state: AppState) => any;
|
|
@@ -20,7 +20,7 @@ export declare const selectCurrentProject: (state: AppState) => any;
|
|
|
20
20
|
export declare const selectIsNotFound: (state: AppState) => any;
|
|
21
21
|
export declare const selectCurrentAncestors: (state: AppState) => any;
|
|
22
22
|
export declare const selectCurrentSiblings: (state: AppState) => any;
|
|
23
|
-
export declare const selectCurrentNode: (state: AppState, returnType?: StateType
|
|
23
|
+
export declare const selectCurrentNode: (state: AppState, returnType?: StateType) => any;
|
|
24
24
|
export declare const selectCurrentChildren: (state: any) => any;
|
|
25
25
|
export declare const selectBreadcrumb: (state: AppState) => any[];
|
|
26
26
|
export declare const selectRouteErrorMessage: (state: AppState) => any;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { MatchedRoute, RouteConfig } from 'react-router-config';
|
|
2
2
|
import { Entry, Node } from 'contensis-delivery-api/lib/models';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { AppState } from
|
|
5
|
-
|
|
6
|
-
export
|
|
4
|
+
import { AppState } from '~/redux/appstate';
|
|
5
|
+
type RouteComponent<Props> = React.ComponentType<Props>;
|
|
6
|
+
export type RouteNode = Node & {
|
|
7
7
|
ancestors: Node[];
|
|
8
8
|
children: Node[];
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type AppRoutes = {
|
|
11
11
|
ContentTypeMappings: ContentTypeMapping[];
|
|
12
12
|
StaticRoutes: StaticRoute[];
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type AppRootProps = {
|
|
15
15
|
routes: AppRoutes;
|
|
16
16
|
withEvents: WithEvents;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type RouteComponentProps<P = any> = {
|
|
19
19
|
[key: string]: any;
|
|
20
20
|
projectId?: string;
|
|
21
21
|
contentTypeId?: string;
|
|
@@ -23,23 +23,23 @@ export declare type RouteComponentProps<P = any> = {
|
|
|
23
23
|
mappedEntry?: P;
|
|
24
24
|
isLoggedIn?: boolean;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type RouteLoaderProps = {
|
|
27
27
|
loadingComponent?: React.ComponentType;
|
|
28
28
|
notFoundComponent?: React.ComponentType;
|
|
29
29
|
trailingSlashRedirectCode?: 301 | 302;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
32
|
-
export
|
|
31
|
+
export type EntryMapper = (<MappedProps>(node: RouteNode, state?: AppState) => MappedProps | unknown) | (<MappedProps>(node: RouteNode, state?: AppState) => Promise<MappedProps | unknown>);
|
|
32
|
+
export type ReduxInjector = () => Promise<{
|
|
33
33
|
key: string;
|
|
34
34
|
reducer: any;
|
|
35
35
|
saga: any;
|
|
36
36
|
}>;
|
|
37
|
-
|
|
37
|
+
type UserGroupRequisite = {
|
|
38
38
|
id?: string;
|
|
39
39
|
name?: string;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
42
|
-
export
|
|
41
|
+
export type RequireLogin = boolean | UserGroupRequisite[];
|
|
42
|
+
export type ContentTypeMapping = {
|
|
43
43
|
contentTypeID: string;
|
|
44
44
|
component: RouteComponent<RouteComponentProps>;
|
|
45
45
|
entryMapper?: EntryMapper;
|
|
@@ -59,7 +59,7 @@ export declare type ContentTypeMapping = {
|
|
|
59
59
|
};
|
|
60
60
|
requireLogin?: RequireLogin;
|
|
61
61
|
};
|
|
62
|
-
export
|
|
62
|
+
export type StaticRoute = Omit<RouteConfig, 'component'> & {
|
|
63
63
|
component: RouteComponent<RouteComponentProps>;
|
|
64
64
|
fetchNode?: boolean | {
|
|
65
65
|
/**
|
|
@@ -79,7 +79,7 @@ export declare type StaticRoute = Omit<RouteConfig, 'component'> & {
|
|
|
79
79
|
ssr?: boolean;
|
|
80
80
|
ssrOnly?: boolean;
|
|
81
81
|
};
|
|
82
|
-
export
|
|
82
|
+
export type OnRouteLoadArgs = {
|
|
83
83
|
location: {
|
|
84
84
|
pathname: string;
|
|
85
85
|
search: string;
|
|
@@ -90,7 +90,7 @@ export declare type OnRouteLoadArgs = {
|
|
|
90
90
|
staticRoute: MatchedRoute<any, StaticRoute>;
|
|
91
91
|
statePath: string;
|
|
92
92
|
};
|
|
93
|
-
export
|
|
93
|
+
export type OnRouteLoadedArgs = {
|
|
94
94
|
entry: Entry | any;
|
|
95
95
|
location: {
|
|
96
96
|
pathname: string;
|
|
@@ -101,7 +101,7 @@ export declare type OnRouteLoadedArgs = {
|
|
|
101
101
|
path: string;
|
|
102
102
|
staticRoute: MatchedRoute<any, StaticRoute>;
|
|
103
103
|
};
|
|
104
|
-
export
|
|
104
|
+
export type RouteLoadOptions = {
|
|
105
105
|
customNavigation?: boolean | {
|
|
106
106
|
ancestors: boolean | number;
|
|
107
107
|
children: boolean | number;
|
|
@@ -114,10 +114,10 @@ export declare type RouteLoadOptions = {
|
|
|
114
114
|
preventScrollTop?: boolean;
|
|
115
115
|
refetchNode?: true;
|
|
116
116
|
};
|
|
117
|
-
export
|
|
117
|
+
export type RouteLoadedOptions = {
|
|
118
118
|
requireLogin?: RequireLogin;
|
|
119
119
|
};
|
|
120
|
-
export
|
|
120
|
+
export type WithEvents = {
|
|
121
121
|
onRouteLoad: (args: OnRouteLoadArgs) => Generator<void | RouteLoadOptions>;
|
|
122
122
|
onRouteLoaded: (args: OnRouteLoadedArgs) => Generator<void | RouteLoadedOptions>;
|
|
123
123
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Query } from
|
|
1
|
+
import { Query } from '~/util/ContensisDeliveryApi';
|
|
2
2
|
export declare const routeEntryByFieldsQuery: (id: string, language?: string, fields?: string[], versionStatus?: 'published' | 'latest') => Query;
|
|
@@ -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
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FilterExpression, SearchQueryOptions } from
|
|
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
|
-
|
|
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
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
|
|
3
|
+
import { Express } from 'express';
|
|
4
4
|
import http from 'http';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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:
|
|
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
|
|
3
|
-
export declare const loadableBundleData: ({ stats, templates }: ServerConfig, staticRoutePath: string, build?: string
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|
|
@@ -1,10 +1,9 @@
|
|
|
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
|
+
}) => JSX.Element;
|
|
9
9
|
export default _default;
|
|
10
|
-
import React from "react";
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export default withLogin;
|
|
2
|
-
declare function withLogin(WrappedComponent: any): import("react-redux").ConnectedComponent<
|
|
2
|
+
declare function withLogin(WrappedComponent: any): import("react-redux").ConnectedComponent<(wrappedComponentProps: {
|
|
3
3
|
[key: string]: any;
|
|
4
|
-
}
|
|
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>> & {
|
|
4
|
+
}) => JSX.Element, import("react-redux").Omit<{
|
|
11
5
|
[key: string]: any;
|
|
12
6
|
}, "error" | "isError" | "isLoading" | "user" | "isAuthenticated" | "isAuthenticationError" | "loginUser" | "logoutUser" | "authenticationError">>;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export default withRegistration;
|
|
2
|
-
declare function withRegistration(WrappedComponent: any): import("react-redux").ConnectedComponent<
|
|
2
|
+
declare function withRegistration(WrappedComponent: any): import("react-redux").ConnectedComponent<(wrappedComponentProps: {
|
|
3
3
|
[key: string]: any;
|
|
4
|
-
}
|
|
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
|
-
import { StateType } from
|
|
2
|
-
import { AppState } from
|
|
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
|
|
15
|
-
export declare const selectUser: (state: AppState, returnType?: StateType
|
|
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
|
|
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
|
|
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;
|
package/models/util/ToJs.d.ts
CHANGED
|
@@ -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>) =>
|
|
4
|
+
}>(WrappedComponent: React.ComponentType<Props>) => (wrappedComponentProps: Props) => JSX.Element;
|
package/models/util/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as setCachingHeaders } from
|
|
1
|
+
export { default as setCachingHeaders } from '~/server/features/caching/setCachingHeaders';
|
|
2
2
|
export { cachedSearch, deliveryApi, getClientConfig, } from './ContensisDeliveryApi';
|
|
3
3
|
export { default as stringifyStrings } from './stringifyStrings';
|
|
4
4
|
export { default as urls } from './urls';
|
|
5
5
|
export * from './json-mapper';
|
|
6
|
-
export { default as VersionInfo } from
|
|
6
|
+
export { default as VersionInfo } from '~/app/pages/VersionInfo';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Entry } from 'contensis-delivery-api/lib/models';
|
|
2
2
|
import mapJson from 'jsonpath-mapper';
|
|
3
3
|
import MappingTemplate, { PureJsFunction } from 'jsonpath-mapper/dist/models/Template';
|
|
4
|
-
import { AppState } from
|
|
5
|
-
import { EntryMapper, RouteNode } from
|
|
4
|
+
import { AppState } from '~/redux/appstate';
|
|
5
|
+
import { EntryMapper, RouteNode } from '~/routing/routes';
|
|
6
6
|
export { default as mapJson, jpath } from 'jsonpath-mapper';
|
|
7
|
-
|
|
7
|
+
type Mappers<S> = {
|
|
8
8
|
[contentTypeId: string]: MappingTemplate<S>;
|
|
9
9
|
};
|
|
10
10
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zengenti/contensis-react-base",
|
|
3
|
-
"version": "3.0.2-beta.
|
|
3
|
+
"version": "3.0.2-beta.23",
|
|
4
4
|
"repository": "https://github.com/zengenti/contensis-react-base",
|
|
5
5
|
"license": "None",
|
|
6
6
|
"description": "Turbocharge your React web apps with Contensis. This package handles all dependencies for creating full featured web apps in React with Contensis and Site View. Routing is driven by Site View, Redux is used for global state management and server-side rendering (SSR) is handled for you. Also taking care of intricate hosting issues such as cache invalidation and supporting authenticated content where required.",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@rollup/plugin-alias": "^3.1.9",
|
|
47
47
|
"@rollup/plugin-babel": "^5.3.1",
|
|
48
48
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
49
|
+
"@rollup/plugin-json": "^6.0.1",
|
|
49
50
|
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
50
51
|
"@types/babel__core": "^7.1.19",
|
|
51
52
|
"@types/babel__template": "^7.4.1",
|
|
@@ -87,9 +88,9 @@
|
|
|
87
88
|
"rimraf": "^3.0.2",
|
|
88
89
|
"rollup": "^2.70.2",
|
|
89
90
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
90
|
-
"ts-patch": "^
|
|
91
|
-
"typescript": "^4.
|
|
92
|
-
"typescript-transform-paths": "^3.
|
|
91
|
+
"ts-patch": "^3.0.2",
|
|
92
|
+
"typescript": "^4.9.5",
|
|
93
|
+
"typescript-transform-paths": "^3.4.6",
|
|
93
94
|
"zengenti-forms-package": "git+https://gitlab+deploy-token-11:DRbTWzdaRzkjDWc_VixQ@gitlab.zengenti.com/zengenti-packages/forms.git#next",
|
|
94
95
|
"zengenti-search-package": "git+https://gitlab+deploy-token-5:XKRGRE1p2PrFAxnWwLNz@gitlab.zengenti.com/zengenti-packages/search.git#immer"
|
|
95
96
|
},
|