@admin-layout/client 3.0.0-alpha.0 → 3.0.0-alpha.107
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/components/ApplicationErrorFillWrapper.d.ts +2 -2
- package/lib/components/ApplicationErrorHandlerCommon.d.ts +15 -2
- package/lib/components/ApplicationErrorHandlerCommon.js +6 -2
- package/lib/components/ApplicationErrorHandlerCommon.js.map +1 -1
- package/lib/components/ErrorBoundaryCommon.d.ts +1 -1
- package/lib/config/defaultSettings.js +6 -3
- package/lib/config/defaultSettings.js.map +1 -1
- package/lib/config/{config.d.ts → env-config.d.ts} +2 -1
- package/lib/config/env-config.js +19 -0
- package/lib/config/env-config.js.map +1 -0
- package/lib/config/index.d.ts +1 -1
- package/lib/config/index.js +1 -1
- package/lib/config/index.js.map +1 -1
- package/lib/graphql/link/error-link.js.map +1 -1
- package/lib/interfaces/generated/generated-models.d.ts +475 -413
- package/lib/interfaces/generated/generated-models.js +1 -0
- package/lib/interfaces/generated/generated-models.js.map +1 -1
- package/lib/interfaces/layout/basic-layout.d.ts +5 -1
- package/lib/interfaces/pure-settings.d.ts +4 -0
- package/lib/redux/selectors/index.d.ts +4 -2
- package/lib/redux/settings.d.ts +4 -0
- package/package.json +36 -36
- package/lib/config/config.js +0 -10
- package/lib/config/config.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-models.js","sourceRoot":"","sources":["../../../src/interfaces/generated/generated-models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAOzC,MAAM,cAAc,GAAI,EAAE,CAAA;AAsDzB,CAAC;AA4BD,CAAC;AAeD,CAAC;AAiED,CAAC;AAaD,CAAC;
|
|
1
|
+
{"version":3,"file":"generated-models.js","sourceRoot":"","sources":["../../../src/interfaces/generated/generated-models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAOzC,MAAM,cAAc,GAAI,EAAE,CAAA;AAsDzB,CAAC;AA4BD,CAAC;AAeD,CAAC;AAiED,CAAC;AAaD,CAAC;AA+JD,CAAC;AAkaD,CAAC;AAyGD,CAAC;AAMD,CAAC;AAgBD,CAAC;AA6BD,CAAC;AAwTD,CAAC;AA2DD,CAAC;AAqIF,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,CAAA;;;;KAIzC,CAAC;AACN,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAA;;;;;;MAM1C,2BAA2B,EAAE,CAAC;AAEpC;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,6BAA6B,CAAC,WAAwG;IAC9I,MAAM,OAAO,mCAAO,cAAc,GAAK,WAAW,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,QAAQ,CAAoE,6BAA6B,EAAE,OAAO,CAAC,CAAC;AACpI,CAAC;AACP,MAAM,UAAU,iCAAiC,CAAC,WAA4G;IACpJ,MAAM,OAAO,mCAAO,cAAc,GAAK,WAAW,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,YAAY,CAAoE,6BAA6B,EAAE,OAAO,CAAC,CAAC;AACxI,CAAC"}
|
|
@@ -25,12 +25,15 @@ declare type MergerSettingsType<T> = Partial<T> & {
|
|
|
25
25
|
primaryColor?: string;
|
|
26
26
|
colorWeak?: boolean;
|
|
27
27
|
};
|
|
28
|
+
interface MainHeaderPropsInterface {
|
|
29
|
+
picture: string;
|
|
30
|
+
}
|
|
28
31
|
export declare type BasicLayoutProps = Partial<RouterTypes<Route>> & SiderMenuProps & HeaderViewProps & {
|
|
29
32
|
pure?: boolean;
|
|
30
33
|
/**
|
|
31
34
|
*@name logo url
|
|
32
35
|
*/
|
|
33
|
-
logo?: React.ReactNode | WithFalse<() => React.ReactNode
|
|
36
|
+
logo?: React.ReactNode | WithFalse<() => React.ReactNode> | (() => React.ReactElement);
|
|
34
37
|
/**
|
|
35
38
|
*@name Triggered when the page is switched
|
|
36
39
|
*/
|
|
@@ -64,5 +67,6 @@ export declare type BasicLayoutProps = Partial<RouterTypes<Route>> & SiderMenuPr
|
|
|
64
67
|
* Use both content margin
|
|
65
68
|
*/
|
|
66
69
|
disableContentMargin?: boolean;
|
|
70
|
+
mainHeaderProps: MainHeaderPropsInterface;
|
|
67
71
|
};
|
|
68
72
|
export {};
|
|
@@ -2,7 +2,9 @@ export declare type ContentWidth = 'Fluid' | 'Fixed';
|
|
|
2
2
|
export declare type MenuTheme = 'light' | 'dark';
|
|
3
3
|
export interface RenderSetting {
|
|
4
4
|
showHeader?: boolean | any;
|
|
5
|
+
headerRender?: boolean | any;
|
|
5
6
|
showFooter?: boolean | any;
|
|
7
|
+
footerRender?: boolean | any;
|
|
6
8
|
searchBarRender?: boolean | any;
|
|
7
9
|
showMenu?: boolean | any;
|
|
8
10
|
menuRender?: false | any;
|
|
@@ -60,6 +62,7 @@ export interface PureSettings {
|
|
|
60
62
|
/**
|
|
61
63
|
* @name Main color, need to be used with umi
|
|
62
64
|
*/
|
|
65
|
+
colorPrimary?: string;
|
|
63
66
|
primaryColor?: string;
|
|
64
67
|
/**
|
|
65
68
|
* @name Global increase filter
|
|
@@ -70,5 +73,6 @@ export interface PureSettings {
|
|
|
70
73
|
* @description Only works in mix mode
|
|
71
74
|
*/
|
|
72
75
|
splitMenus?: boolean;
|
|
76
|
+
siderMenuType?: string;
|
|
73
77
|
}
|
|
74
78
|
export declare type ProSettings = PureSettings & RenderSetting;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ApplicationErrorState } from '../../interfaces';
|
|
2
|
-
|
|
2
|
+
interface Store {
|
|
3
3
|
applicationErrors: ApplicationErrorState[];
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
|
+
export declare const backendErrorSelector: ((state: Store) => ApplicationErrorState | undefined) & import("reselect").OutputSelectorFields<(args_0: ApplicationErrorState[]) => ApplicationErrorState | undefined, {
|
|
5
6
|
clearCache: () => void;
|
|
6
7
|
}> & {
|
|
7
8
|
clearCache: () => void;
|
|
8
9
|
};
|
|
10
|
+
export {};
|
package/lib/redux/settings.d.ts
CHANGED
|
@@ -18,11 +18,15 @@ declare const settingsReducer: (state: DefaultSettings | undefined, { type, payl
|
|
|
18
18
|
} | undefined;
|
|
19
19
|
title?: string | false | undefined;
|
|
20
20
|
iconfontUrl?: string | undefined;
|
|
21
|
+
colorPrimary?: string | undefined;
|
|
21
22
|
primaryColor?: string | undefined;
|
|
22
23
|
colorWeak?: boolean | undefined;
|
|
23
24
|
splitMenus?: boolean | undefined;
|
|
25
|
+
siderMenuType?: string | undefined;
|
|
24
26
|
showHeader?: any;
|
|
27
|
+
headerRender?: any;
|
|
25
28
|
showFooter?: any;
|
|
29
|
+
footerRender?: any;
|
|
26
30
|
searchBarRender?: any;
|
|
27
31
|
showMenu?: any;
|
|
28
32
|
menuRender?: any;
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
"name": "@admin-layout/client",
|
|
3
|
+
"version": "3.0.0-alpha.107",
|
|
4
|
+
"description": "Sample client for higher packages to depend on",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "CDMBase LLC",
|
|
7
|
+
"main": "lib/index.js",
|
|
8
|
+
"typings": "lib/index.d.ts",
|
|
9
|
+
"react-native": "lib/index.native.js",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "yarn build:clean && yarn build:lib",
|
|
12
|
+
"build:clean": "rimraf lib",
|
|
13
|
+
"build:lib": "tsc",
|
|
14
|
+
"build:lib:watch": "yarn build:lib -- --watch",
|
|
15
|
+
"jest": "./node_modules/.bin/jest",
|
|
16
|
+
"prepublish": "yarn build",
|
|
17
|
+
"test": "cross-env ENV_FILE=../../config/test/test.env jest",
|
|
18
|
+
"test:debug": "npm test -- --runInBand",
|
|
19
|
+
"test:watch": "npm test -- --watch",
|
|
20
|
+
"watch": "yarn build:lib:watch"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"serialize-error": "^8.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"envalid": "*",
|
|
27
|
+
"history": "*",
|
|
28
|
+
"react": "*",
|
|
29
|
+
"react-router": "*"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"typescript": {
|
|
35
|
+
"definition": "lib/index.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"gitHead": "95aef8fd33477c5c9b8df1792a706adadf101587"
|
|
38
38
|
}
|
package/lib/config/config.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as envalid from 'envalid';
|
|
2
|
-
import { defaultSettings } from './defaultSettings';
|
|
3
|
-
const { json } = envalid;
|
|
4
|
-
const env = process.APP_ENV || process.env;
|
|
5
|
-
export const config = envalid.cleanEnv(env, {
|
|
6
|
-
LAYOUT_SETTINGS: json({
|
|
7
|
-
default: JSON.stringify(defaultSettings),
|
|
8
|
-
}),
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=config.js.map
|
package/lib/config/config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;AACzB,MAAM,GAAG,GAAI,OAAe,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC;AAEpD,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE;IACxC,eAAe,EAAE,IAAI,CAAkB;QACnC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAQ;KAClD,CAAC;CACL,CAAC,CAAC"}
|