@admin-layout/client 3.0.0-alpha.11 → 3.0.0-alpha.111
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 +5 -5
- 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/layout/basic-layout.d.ts +5 -1
- package/lib/redux/selectors/index.d.ts +1 -1
- package/package.json +2 -2
- package/lib/config/config.js +0 -10
- package/lib/config/config.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ApplicationErrorFillWrapper: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const ApplicationErrorFillWrapper: (props: any) => React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import "reflect-metadata";
|
|
3
|
+
import { ApplicationErrorState } from '../interfaces';
|
|
3
4
|
/**
|
|
4
5
|
* An HOC that will render components using SLOT-FILL in case of
|
|
5
6
|
* backendError else it will render the Component Passed
|
|
@@ -8,6 +9,17 @@ interface ApplicationErrorHandlerCommonProps {
|
|
|
8
9
|
plugins: Record<string, any>;
|
|
9
10
|
children: ReactNode;
|
|
10
11
|
}
|
|
12
|
+
declare type IRendererComponentType = (props: {
|
|
13
|
+
applicationErrors: ApplicationErrorState[];
|
|
14
|
+
backendError: ApplicationErrorState;
|
|
15
|
+
}) => ReactElement;
|
|
16
|
+
declare type IApplicationErrorSlotType = (props: {
|
|
17
|
+
name: string;
|
|
18
|
+
fillProps: {
|
|
19
|
+
active: boolean;
|
|
20
|
+
applicationErrors: ApplicationErrorState[];
|
|
21
|
+
};
|
|
22
|
+
}) => ReactElement;
|
|
11
23
|
/**
|
|
12
24
|
* ApplicationErrorSlot is needed for mobile. Since for mobile
|
|
13
25
|
* we import Slot from @common-stack/react-mobile. The default
|
|
@@ -15,8 +27,9 @@ interface ApplicationErrorHandlerCommonProps {
|
|
|
15
27
|
* both ant and chakra
|
|
16
28
|
*
|
|
17
29
|
* @param FallbackComponent ReactNode
|
|
18
|
-
* @param [ApplicationErrorSlot]
|
|
30
|
+
* @param [ApplicationErrorSlot] IApplicationErrorSlotType
|
|
31
|
+
* @param [RendererComponent] IRendererComponentType
|
|
19
32
|
* @returns ReactNode
|
|
20
33
|
*/
|
|
21
|
-
export declare const ApplicationErrorHandlerCommon: (FallbackComponent: any, ApplicationErrorSlot?:
|
|
34
|
+
export declare const ApplicationErrorHandlerCommon: (FallbackComponent: any, ApplicationErrorSlot?: IApplicationErrorSlotType, RendererComponent?: IRendererComponentType) => ({ plugins, children }: ApplicationErrorHandlerCommonProps) => ReactElement;
|
|
22
35
|
export {};
|
|
@@ -11,16 +11,20 @@ import { backendErrorSelector } from '../redux/selectors';
|
|
|
11
11
|
* both ant and chakra
|
|
12
12
|
*
|
|
13
13
|
* @param FallbackComponent ReactNode
|
|
14
|
-
* @param [ApplicationErrorSlot]
|
|
14
|
+
* @param [ApplicationErrorSlot] IApplicationErrorSlotType
|
|
15
|
+
* @param [RendererComponent] IRendererComponentType
|
|
15
16
|
* @returns ReactNode
|
|
16
17
|
*/
|
|
17
|
-
export const ApplicationErrorHandlerCommon = (FallbackComponent, ApplicationErrorSlot
|
|
18
|
+
export const ApplicationErrorHandlerCommon = (FallbackComponent, ApplicationErrorSlot, RendererComponent) => ({ plugins, children }) => {
|
|
18
19
|
const applicationErrors = useSelector((state) => state === null || state === void 0 ? void 0 : state.applicationErrors);
|
|
19
20
|
const errors = applicationErrors === null || applicationErrors === void 0 ? void 0 : applicationErrors.filter((error) => !!plugins.find((plugin) => plugin.name === (error === null || error === void 0 ? void 0 : error.pluginName)));
|
|
20
21
|
const backendError = useSelector(backendErrorSelector);
|
|
21
22
|
const RenderApplicationErrorSlot = (props) => {
|
|
22
23
|
return !!ApplicationErrorSlot ? React.createElement(ApplicationErrorSlot, Object.assign({}, props)) : React.createElement(Slot, Object.assign({}, props));
|
|
23
24
|
};
|
|
25
|
+
if (!!RendererComponent) {
|
|
26
|
+
return React.createElement(RendererComponent, { applicationErrors: errors, backendError: backendError });
|
|
27
|
+
}
|
|
24
28
|
return (React.createElement(React.Fragment, null,
|
|
25
29
|
!!backendError ? React.createElement(FallbackComponent, { error: backendError }) : null,
|
|
26
30
|
!!(errors === null || errors === void 0 ? void 0 : errors.length)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationErrorHandlerCommon.js","sourceRoot":"","sources":["../../src/components/ApplicationErrorHandlerCommon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationErrorHandlerCommon.js","sourceRoot":"","sources":["../../src/components/ApplicationErrorHandlerCommon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,kBAAkB,CAA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AAY,GAAI,CAAC,CAAC,CAAC,IAAI;QAClE,CAAC,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAA;YACf,CAAC,CAAC,oBAAC,0BAA0B,IAAC,IAAI,EAAE,2BAA2B,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAI;YAC3H,CAAC,CAAC,QAAQ,CAEX,CACJ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export const defaultSettings = {
|
|
2
2
|
logo: 'https://cdmbase.s3.ca-central-1.amazonaws.com/favicon-new-128.svg',
|
|
3
3
|
navTheme: 'light',
|
|
4
|
-
primaryColor: '#
|
|
5
|
-
colorPrimary: '#
|
|
6
|
-
layout: '
|
|
4
|
+
primaryColor: '#1890ff',
|
|
5
|
+
colorPrimary: '#1677FF',
|
|
6
|
+
layout: 'mix',
|
|
7
7
|
contentWidth: 'Fluid',
|
|
8
|
-
fixedHeader:
|
|
8
|
+
fixedHeader: true,
|
|
9
9
|
fixSiderbar: true,
|
|
10
10
|
searchBarRender: true,
|
|
11
11
|
colorWeak: false,
|
|
@@ -27,6 +27,6 @@ export const defaultSettings = {
|
|
|
27
27
|
headerHeight: undefined,
|
|
28
28
|
menu: undefined,
|
|
29
29
|
splitMenus: false,
|
|
30
|
-
siderMenuType: '
|
|
30
|
+
siderMenuType: 'sub'
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=defaultSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultSettings.js","sourceRoot":"","sources":["../../src/config/defaultSettings.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAUxB;IACA,IAAI,EAAE,mEAAmE;IACzE,QAAQ,EAAE,OAAO;IACjB,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"defaultSettings.js","sourceRoot":"","sources":["../../src/config/defaultSettings.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAUxB;IACA,IAAI,EAAE,mEAAmE;IACzE,QAAQ,EAAE,OAAO;IACjB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,OAAO;IACrB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,IAAI;IACjB,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,EAAE;IACf,gBAAgB,EAAE,IAAI;IACtB,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,qBAAqB;IACjC,eAAe,EAAE,KAAK;IACtB,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,QAAQ;IACvB,cAAc,EAAE,KAAK;IACrB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,KAAK;IACf,oBAAoB;IACpB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,IAAI,EAAE,SAAS;IACf,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,KAAK;CACvB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as envalid from 'envalid';
|
|
2
|
+
import { defaultSettings } from './defaultSettings';
|
|
3
|
+
const { json } = envalid;
|
|
4
|
+
const env = process.APP_ENV || process.env;
|
|
5
|
+
const preConfig = envalid.cleanEnv(env, {
|
|
6
|
+
LAYOUT_SETTINGS: json({
|
|
7
|
+
default: JSON.stringify(defaultSettings),
|
|
8
|
+
}),
|
|
9
|
+
});
|
|
10
|
+
let config = {};
|
|
11
|
+
// overwrite the layout settings with environment
|
|
12
|
+
if (env.LAYOUT_SETTINGS) {
|
|
13
|
+
config = Object.assign(Object.assign({}, preConfig), { LAYOUT_SETTINGS: Object.assign(Object.assign({}, defaultSettings), preConfig.LAYOUT_SETTINGS) });
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
config = preConfig;
|
|
17
|
+
}
|
|
18
|
+
export { config };
|
|
19
|
+
//# sourceMappingURL=env-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-config.js","sourceRoot":"","sources":["../../src/config/env-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,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,EAClC;IACI,eAAe,EAAE,IAAI,CAAkB;QACnC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAQ;KAClD,CAAC;CACL,CACJ,CAAC;AACF,IAAI,MAAM,GAAG,EAAsB,CAAC;AACpC,kDAAkD;AAClD,IAAI,GAAG,CAAC,eAAe,EAAE;IACrB,MAAM,mCAAQ,SAAS,KAAE,eAAe,kCAAO,eAAe,GAAK,SAAS,CAAC,eAAe,IAAI,CAAC;CACpG;KAAM;IACH,MAAM,GAAG,SAAS,CAAC;CACtB;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/lib/config/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './config';
|
|
1
|
+
export * from './env-config';
|
package/lib/config/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './config';
|
|
1
|
+
export * from './env-config';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/lib/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-link.js","sourceRoot":"","sources":["../../../src/graphql/link/error-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAIpD,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAOjD,MAAM,OAAO,SAAS;IAGpB,mBAAmB,CAAC,SAA+B,EAAE,KAAK;;QACxD,MAAM,UAAU,GAAG,SAAS,CAAC,GAAG,CAAe,YAAY,CAAC,CAAC;QAC7D,IAAI,MAAM,GAAG;YACX,IAAI,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,UAAU;YACnC,OAAO,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,OAAO;SACpC,CAAA;QACD,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA,EAAE;YACjB,MAAM,GAAG;gBACP,IAAI,EAAE,qBAAqB;gBAC3B,OAAO,EAAE;oBACP,IAAI,EAAE,aAAa;oBACnB,OAAO,EAAE,cAAc,CAAC,KAAK,CAAC;iBAC/B;aACF,CAAA;SACF;QACD,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC;IAED,YAAY,CAAC,SAA+B;QAC1C,OAAO,OAAO,CAAC,GAAG,CAAC,EAAE;;YACnB,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,GAAG,CAAC;YAC5C,IAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,EAAE;gBACzB,aAAa,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;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,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;oBAC9B,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;gBAC7C,CAAC,CAAC,CAAA;aACH;YACD,IAAI,YAAY,EAAE;gBAChB,MAAM,YAAY,GAAG,MAAC,YAA6D,aAA7D,YAAY,uBAAZ,YAAY,CAAmD,MAAM,0CAAE,MAAM,CAAA;gBACnG,IAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,EAAE;oBACxB,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;wBACzB,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;oBAC5C,CAAC,CAAC,CAAA;iBACH;qBAAM;oBACL,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;iBAClD;aACF;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AAGD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAA+B,EAAE,EAAE;IAChE,OAAO,IAAI,SAAS,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAA;AAChD,CAAC,CAAA"}
|
|
@@ -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,7 @@ 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
|
|
5
|
+
export declare const backendErrorSelector: ((state: Store) => ApplicationErrorState | undefined) & import("reselect").OutputSelectorFields<(args_0: ApplicationErrorState[]) => ApplicationErrorState | undefined, {
|
|
6
6
|
clearCache: () => void;
|
|
7
7
|
}> & {
|
|
8
8
|
clearCache: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/client",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.111",
|
|
4
4
|
"description": "Sample client for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"typescript": {
|
|
35
35
|
"definition": "lib/index.d.ts"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "72f38df16acb54acc52695cb34ea5fe23fe33199"
|
|
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"}
|