@common-stack/client-react 7.0.4-alpha.15 → 7.0.4-alpha.17
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.
|
@@ -3,9 +3,14 @@ import type { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
|
|
|
3
3
|
import type { createDrawerNavigator } from '@react-navigation/drawer';
|
|
4
4
|
import type { IRouteMobileAdditions, IReactNavigationProps } from '@common-stack/core/lib/component/interfaces/routeMobileAdditions.js';
|
|
5
5
|
import type { IRollupBuildGenerated } from '@common-stack/core/lib/component/interfaces/rollupRouteGenerated.js';
|
|
6
|
-
import type { IRouteMap } from '../../../interfaces';
|
|
6
|
+
import type { IRouteMap, IRouteModule } from '../../../interfaces';
|
|
7
7
|
export { IReactNavigationProps };
|
|
8
|
+
type OptionalPath<T extends {
|
|
9
|
+
path: string;
|
|
10
|
+
}> = Omit<T, 'path'> & Partial<Pick<T, 'path'>>;
|
|
8
11
|
export interface IReactNavigationRoute extends IRouteMobileAdditions {
|
|
9
12
|
container?: ReturnType<typeof createStackNavigator> | ReturnType<typeof createBottomTabNavigator> | ReturnType<typeof createDrawerNavigator>;
|
|
10
13
|
}
|
|
11
|
-
export type
|
|
14
|
+
export type IRouteMobileModule = IRouteModule & IReactNavigationRoute;
|
|
15
|
+
export type IRouteMapWithMobile = IRouteMap<IRollupBuildGenerated & OptionalPath<IReactNavigationRoute>>;
|
|
16
|
+
export type IComputedMobileRoutesArray = Array<IRouteMapWithMobile>;
|
|
@@ -2,5 +2,5 @@ import { IRouteMap, IRouteModule } from '../interfaces';
|
|
|
2
2
|
type SelectedType = '*' | string[];
|
|
3
3
|
export declare const getFilteredMenus: (accountPageStore: IRouteModule[], selectedMenu?: SelectedType) => IRouteMap[];
|
|
4
4
|
export declare const getFilteredRoutes: (accountPageStore: IRouteModule[], selectedRoutes?: SelectedType) => IRouteMap[];
|
|
5
|
-
export declare const getFilteredTabs: (accountPageStore: IRouteModule[], selectedTabs?: SelectedType) =>
|
|
5
|
+
export declare const getFilteredTabs: (accountPageStore: IRouteModule[], selectedTabs?: SelectedType) => Omit<IRouteModule, "component">[];
|
|
6
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filteredRoutes.js","sources":["../../src/utils/filteredRoutes.ts"],"sourcesContent":[null],"names":[],"mappings":"AAKO,MAAM,gBAAgB,GAAG,CAAC,gBAAgC,EAAE,YAAA,GAAe,GAAmB,KACjG,gBAAgB;AACX,KAAA,GAAG,CAAC,CAAC,IAAI,KAAI;AACV,IAAA,IAAI,YAAY,KAAK,GAAG,IAAI,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACzD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;QAC1C,OAAO;AACH,YAAA,CAAC,IAAI,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE;SACtC,CAAC;KACL;AACD,IAAA,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;KACD,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,EAAE;AAE3B,MAAM,iBAAiB,GAAG,CAC7B,gBAAgC,EAChC,cAAA,GAAiB,GAAmB,KAEpC,gBAAgB;AACX,KAAA,GAAG,CAAC,CAAC,IAAI,KAAI;AACV,IAAA,IAAI,cAAc,KAAK,GAAG,IAAI,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;AAC7D,QAAA,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,OAAO;YACH,CAAC,IAAI,GAAG,IAAI;SACf,CAAC;KACL;AACD,IAAA,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;KACD,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,EAAE;AAE3B,MAAM,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"filteredRoutes.js","sources":["../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,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;AACpC,QAAA,OAAO,IAAI,CAAC;KACf;AACD,IAAA,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;KACD,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK"}
|
package/lib/utils/sort-keys.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IRouteModule, IComputedRoutesArray } from '../interfaces';
|
|
2
2
|
export declare function sortKeys(routeData: IComputedRoutesArray): IComputedRoutesArray;
|
|
3
|
-
export declare function sortByPaths(routes: IRouteModule[]): IRouteModule[];
|
|
3
|
+
export declare function sortByPaths(routes: IRouteModule[]): (Omit<IRouteModule, "path"> & Partial<Pick<IRouteModule, "path">>)[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/client-react",
|
|
3
|
-
"version": "7.0.4-alpha.
|
|
3
|
+
"version": "7.0.4-alpha.17",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"watch": "npm run build:lib:watch"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@common-stack/client-core": "7.0.4-alpha.
|
|
35
|
-
"@common-stack/core": "7.0.4-alpha.
|
|
34
|
+
"@common-stack/client-core": "7.0.4-alpha.17",
|
|
35
|
+
"@common-stack/core": "7.0.4-alpha.17",
|
|
36
36
|
"@wordpress/hooks": "^3.53.0",
|
|
37
37
|
"browser-bunyan": "^1.6.3",
|
|
38
38
|
"history-with-query": "^4.10.4",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "b498816c8b6a0b9ac4e213b87254b7326240255f",
|
|
61
61
|
"typescript": {
|
|
62
62
|
"definition": "lib/index.d.ts"
|
|
63
63
|
}
|