@common-stack/client-react 0.6.1-alpha.3 → 0.6.1-alpha.4
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/lib/connector/react-client-feature.d.ts +1 -1
- package/lib/connector/react-client-feature.native.d.ts +1 -1
- package/lib/interfaces/react-client-feature.d.ts +1 -1
- package/lib/inversify/InversifyContext.d.ts +1 -1
- package/lib/plugin-area/base-plugin-area.d.ts +1 -1
- package/lib/plugin-area/index.d.ts +2 -2
- package/lib/plugin-area/index.native.d.ts +2 -2
- package/lib/route/old/render.d.ts +2 -2
- package/lib/route/react-navigation/get-navigation-utils.test.js +26 -7
- package/lib/route/react-navigation/get-navigation-utils.test.js.map +1 -1
- package/lib/route/react-navigation/react-navigation-render.d.ts +2 -2
- package/lib/route/react-navigation/react-navigation-render.js +3 -3
- package/lib/route/react-navigation/react-navigation-render.js.map +1 -1
- package/lib/route/react-navigation/types.d.ts +4 -4
- package/lib/route/render-routes.d.ts +2 -2
- package/lib/route/render-routes.native.d.ts +2 -2
- package/lib/route-based-plugin-area/route-based-plugin-area.d.ts +1 -1
- package/package.json +4 -4
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { BaseReactClientFeature } from './base-react-client-feature';
|
|
3
3
|
import { IReactClientFeature } from '../interfaces/react-client-feature';
|
|
4
4
|
export declare class ReactClientFeature extends BaseReactClientFeature implements IReactClientFeature {
|
|
5
|
-
protected renderRoutes: (args: any) => JSX.Element;
|
|
5
|
+
protected renderRoutes: (args: any) => import("react").JSX.Element;
|
|
6
6
|
protected getSortedRoutes: (path: string, routeData: import("..").IRouteData, authWrapper?: (ele: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, props: Record<string, any>) => void) => any;
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { BaseReactClientFeature } from './base-react-client-feature';
|
|
3
3
|
import { IReactClientFeature } from '../interfaces/react-client-feature';
|
|
4
4
|
export declare class ReactClientFeature extends BaseReactClientFeature implements IReactClientFeature {
|
|
5
|
-
protected renderRoutes: (arg1: any, arg2: any) => JSX.Element;
|
|
5
|
+
protected renderRoutes: (arg1: any, arg2: any) => import("react").JSX.Element;
|
|
6
6
|
protected getSortedRoutes: (path: string, routeData: import("..").IRouteData, authWrapper?: (component: import("react").FC<{}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => any;
|
|
7
7
|
}
|
|
@@ -5,7 +5,7 @@ import { IRouteData } from './router';
|
|
|
5
5
|
/**
|
|
6
6
|
* A function that creates React Element that wraps root element of a React tree
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type RootComponentFactory = (req: Request) => React.ReactElement<any>;
|
|
9
9
|
export interface IPlugin {
|
|
10
10
|
name: string;
|
|
11
11
|
icon?: string | React.ComponentElement<any, any> | Function;
|
|
@@ -5,7 +5,7 @@ export declare const InversifyContext: React.Context<{
|
|
|
5
5
|
container: interfaces.Container | null;
|
|
6
6
|
modules: IBaseClientFeature;
|
|
7
7
|
}>;
|
|
8
|
-
|
|
8
|
+
type Props = {
|
|
9
9
|
container: interfaces.Container;
|
|
10
10
|
modules: IBaseClientFeature;
|
|
11
11
|
children: React.ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export * from './plugin-api';
|
|
3
|
-
export declare const PluginArea: () => JSX.Element;
|
|
3
|
+
export declare const PluginArea: () => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export * from './plugin-api';
|
|
3
|
-
export declare const PluginArea: () => JSX.Element;
|
|
3
|
+
export declare const PluginArea: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const renderRoutes: (routes: any, solidRoutes: any, extraProps?: {}, switchProps?: {}) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const renderRoutes: (routes: any, solidRoutes: any, extraProps?: {}, switchProps?: {}) => React.JSX.Element;
|
|
@@ -91,15 +91,25 @@ describe('getRoutes utility with basic routes', () => {
|
|
|
91
91
|
exact: false,
|
|
92
92
|
container: (0, stack_1.createStackNavigator)(),
|
|
93
93
|
name: 'MainStack',
|
|
94
|
+
props: {
|
|
95
|
+
initialRouteName: 'Guest', screenOptions: {
|
|
96
|
+
headerShown: false,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
['/l']: {
|
|
101
|
+
container: (0, bottom_tabs_1.createBottomTabNavigator)(),
|
|
102
|
+
exact: false,
|
|
103
|
+
name: 'Layout',
|
|
94
104
|
props: {
|
|
95
105
|
initialRouteName: 'Guest',
|
|
96
106
|
screenOptions: {
|
|
97
107
|
headerShown: false,
|
|
108
|
+
// tabBarIcon: ({ color }) => <Ionicons name="person" size={24} color={color} />,
|
|
98
109
|
},
|
|
99
110
|
},
|
|
100
111
|
},
|
|
101
|
-
['
|
|
102
|
-
container: (0, bottom_tabs_1.createBottomTabNavigator)(),
|
|
112
|
+
['/l/:guest']: {
|
|
103
113
|
exact: false,
|
|
104
114
|
name: 'Guest',
|
|
105
115
|
props: {
|
|
@@ -111,10 +121,9 @@ describe('getRoutes utility with basic routes', () => {
|
|
|
111
121
|
},
|
|
112
122
|
},
|
|
113
123
|
},
|
|
114
|
-
['
|
|
124
|
+
['/l/:guest/home']: {
|
|
115
125
|
name: 'Home',
|
|
116
126
|
props: {
|
|
117
|
-
initialParams: {},
|
|
118
127
|
component: MyComponent,
|
|
119
128
|
options: {
|
|
120
129
|
headerShown: true,
|
|
@@ -124,7 +133,7 @@ describe('getRoutes utility with basic routes', () => {
|
|
|
124
133
|
},
|
|
125
134
|
},
|
|
126
135
|
},
|
|
127
|
-
['
|
|
136
|
+
['/l/:guest/home/:about']: {
|
|
128
137
|
exact: false,
|
|
129
138
|
container: (0, stack_1.createStackNavigator)(),
|
|
130
139
|
name: 'About',
|
|
@@ -132,7 +141,7 @@ describe('getRoutes utility with basic routes', () => {
|
|
|
132
141
|
initialRouteName: 'Hello',
|
|
133
142
|
},
|
|
134
143
|
},
|
|
135
|
-
['
|
|
144
|
+
['/l/:guest/home/:about/info']: {
|
|
136
145
|
name: 'Info',
|
|
137
146
|
props: {
|
|
138
147
|
initialParams: {},
|
|
@@ -143,10 +152,17 @@ describe('getRoutes utility with basic routes', () => {
|
|
|
143
152
|
},
|
|
144
153
|
},
|
|
145
154
|
};
|
|
146
|
-
|
|
155
|
+
const routerConfig3 = {};
|
|
156
|
+
xit('getNavigation ', () => {
|
|
147
157
|
const Navigation = (0, get_navigation_utils_1.getNavigation)('/', routerConfig1);
|
|
148
158
|
expect(Navigation).toMatchSnapshot();
|
|
149
159
|
});
|
|
160
|
+
it('get sorted navigation with add params', () => {
|
|
161
|
+
const navigation = (0, get_navigation_utils_1.getSortedNavigations)('/', routerConfig2);
|
|
162
|
+
expect(navigation).toMatchSnapshot();
|
|
163
|
+
});
|
|
164
|
+
it('get ', () => {
|
|
165
|
+
});
|
|
150
166
|
it('with feature', () => {
|
|
151
167
|
const feature = new react_client_feature_native_1.ReactClientFeature({ routeConfigIn: [routerConfig1] });
|
|
152
168
|
const Navigation = feature.getConfiguredRoutes('/');
|
|
@@ -160,4 +176,7 @@ describe('getRoutes utility with basic routes', () => {
|
|
|
160
176
|
expect(Nav).toMatchSnapshot();
|
|
161
177
|
});
|
|
162
178
|
});
|
|
179
|
+
describe('messnager routes', () => {
|
|
180
|
+
const routerConfig1 = {};
|
|
181
|
+
});
|
|
163
182
|
//# sourceMappingURL=get-navigation-utils.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-navigation-utils.test.js","sourceRoot":"","sources":["../../../src/route/react-navigation/get-navigation-utils.test.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"get-navigation-utils.test.js","sourceRoot":"","sources":["../../../src/route/react-navigation/get-navig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,aAAa,CAAC,EAAE,CAAC,CAAC;QAChE,MAAM,UAAU,GAAG,OAAO,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;QACpD,MAAM,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;QAErC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QACnD,MAAM,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,CAAC;IACrC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACjC,MAAM,OAAO,GAAG,IAAI,gDAAO,CAAC,EAAE,aAAa,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QAChE,MAAM,GAAG,GAAG,OAAO,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;QAC7C,MAAM,CAAC,GAAG,CAAC,CAAC,eAAe,EAAE,CAAC;IAClC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAC9B,MAAM,aAAa,GAAG,EAErB,CAAA;AACL,CAAC,CAAC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const resolveRootRoute: (rootRoute: any, rootRouteName: string) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const resolveRootRoute: (rootRoute: any, rootRouteName: string) => React.JSX.Element;
|
|
3
3
|
export default resolveRootRoute;
|
|
@@ -22,11 +22,11 @@ const childrenToRoutes = (children, parentNavigator, parentRouteName) => (childr
|
|
|
22
22
|
const withRouteParam = (Component, routeParams) => (args) => {
|
|
23
23
|
var _a, _b, _c;
|
|
24
24
|
// For nested routes we have params inside params along with screen
|
|
25
|
-
const params = ((_b = (_a = args === null || args === void 0 ? void 0 : args.route) === null || _a === void 0 ? void 0 : _a.params) === null || _b === void 0 ? void 0 : _b.params) || ((_c = args === null || args === void 0 ? void 0 : args.route) === null || _c === void 0 ? void 0 : _c.params);
|
|
26
|
-
const notDefinedKeys =
|
|
25
|
+
const params = ((_b = (_a = args === null || args === void 0 ? void 0 : args.route) === null || _a === void 0 ? void 0 : _a.params) === null || _b === void 0 ? void 0 : _b.params) || ((_c = args === null || args === void 0 ? void 0 : args.route) === null || _c === void 0 ? void 0 : _c.params) || args.initialParams || {};
|
|
26
|
+
const notDefinedKeys = routeParams === null || routeParams === void 0 ? void 0 : routeParams.filter((p) => {
|
|
27
27
|
const found = Object.keys(params).includes(p);
|
|
28
28
|
return !found;
|
|
29
|
-
})
|
|
29
|
+
});
|
|
30
30
|
if (notDefinedKeys === null || notDefinedKeys === void 0 ? void 0 : notDefinedKeys.length) {
|
|
31
31
|
throw new Error(`Route params ${notDefinedKeys} are not passed via props`);
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-navigation-render.js","sourceRoot":"","sources":["../../../src/route/react-navigation/react-navigation-render.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,mCAAsD;AAEtD,MAAM,gBAAgB,GAAG,CACrB,QAA8C,EAC9C,eAA8B,EAC9B,eAAuB,EACzB,EAAE,CAAC,CAAC,aAAa,EAAE,EAAE;IACnB,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC;AACrH,CAAC,CAAA;AAED,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE;;IACxD,mEAAmE;IACnE,MAAM,MAAM,GAAG,CAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,0CAAE,MAAM,0CAAE,MAAM,MAAI,MAAA,IAAI,aAAJ,IAAI,uBAAJ,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QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;gBACtG,OAAO,cAAc,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,+CAAM,IAAI,GAAK,KAAK,GAAK,aAAa,EAAG,CAAA;YACxF,CAAC,IAAI,CAAC;KACT;AACL,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,SAAc,EAAE,aAAqB,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;AAEvH,kBAAe,gBAAgB,CAAC"}
|
|
@@ -8,8 +8,8 @@ interface Navigator<T extends (...args: any) => any> {
|
|
|
8
8
|
name: string;
|
|
9
9
|
})[];
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type TabNavigator = Navigator<typeof createBottomTabNavigator>;
|
|
12
|
+
export type StackNavigationNavigator = Navigator<typeof createStackNavigator>;
|
|
13
13
|
interface StackNavigationScreen {
|
|
14
14
|
props: Omit<ComponentProps<ReturnType<typeof createStackNavigator>['Screen']>, 'name'> & {
|
|
15
15
|
component: any;
|
|
@@ -20,8 +20,8 @@ interface TabNavigationScreen {
|
|
|
20
20
|
component: any;
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
export
|
|
24
|
-
export
|
|
23
|
+
export type NavigatorItem = StackNavigationNavigator | StackNavigationScreen | TabNavigator | TabNavigationScreen;
|
|
24
|
+
export type RootAppNavigators = {
|
|
25
25
|
[routeName: string]: NavigatorItem;
|
|
26
26
|
};
|
|
27
27
|
export declare const isStackOrTab: (s: NavigatorItem) => s is Navigator<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { IRouterRederOptions } from '../interfaces/new-router';
|
|
3
|
-
declare function renderRoutes(opts: IRouterRederOptions): JSX.Element;
|
|
3
|
+
declare function renderRoutes(opts: IRouterRederOptions): React.JSX.Element;
|
|
4
4
|
export { renderRoutes as renderRoutes2 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { IRouterRederOptions } from '../interfaces/new-router';
|
|
3
|
-
declare function renderRoutes(opts: IRouterRederOptions): JSX.Element;
|
|
3
|
+
declare function renderRoutes(opts: IRouterRederOptions): React.JSX.Element;
|
|
4
4
|
export { renderRoutes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/client-react",
|
|
3
|
-
"version": "0.6.1-alpha.
|
|
3
|
+
"version": "0.6.1-alpha.4",
|
|
4
4
|
"description": "browser plugin for git",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"watch": "npm run build:lib:watch"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@common-stack/client-core": "0.6.1-alpha.
|
|
32
|
-
"@common-stack/core": "0.6.1-alpha.
|
|
31
|
+
"@common-stack/client-core": "0.6.1-alpha.4",
|
|
32
|
+
"@common-stack/core": "0.6.1-alpha.4",
|
|
33
33
|
"@wordpress/hooks": "^2.10.0",
|
|
34
34
|
"browser-bunyan": "^1.6.3",
|
|
35
35
|
"history-with-query": "^4.10.4",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "8f1002595ef0da183fc26d37a4a185b9c94cfc76",
|
|
52
52
|
"typescript": {
|
|
53
53
|
"definition": "lib/index.d.ts"
|
|
54
54
|
}
|