@admin-layout/client 3.0.0-alpha.98 → 3.1.1-alpha.0
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 +2 -2
- package/lib/components/ErrorBoundaryCommon.d.ts +3 -3
- package/lib/constants/error.d.ts +5 -5
- package/lib/graphql/link/error-link.d.ts +1 -1
- package/lib/graphql/link/error-link.js.map +1 -1
- package/lib/interfaces/default-settings.d.ts +1 -1
- package/lib/interfaces/generated/generated-models.d.ts +311 -377
- package/lib/interfaces/generated/generated-models.js +2 -1
- package/lib/interfaces/generated/generated-models.js.map +1 -1
- package/lib/interfaces/layout/base-menu.d.ts +1 -1
- package/lib/interfaces/layout/basic-layout.d.ts +7 -3
- package/lib/interfaces/layout/global-header.d.ts +1 -1
- package/lib/interfaces/layout/sider-menu.d.ts +3 -3
- package/lib/interfaces/pure-settings.d.ts +3 -3
- package/lib/interfaces/typings.d.ts +1 -1
- package/lib/redux/actions/error-actions.d.ts +1 -1
- package/lib/redux/selectors/index.d.ts +1 -1
- package/lib/utils/componentSize.d.ts +7 -0
- package/lib/utils/componentSize.js +48 -0
- package/lib/utils/componentSize.js.map +1 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/seperatedMenus.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -9,11 +9,11 @@ interface ApplicationErrorHandlerCommonProps {
|
|
|
9
9
|
plugins: Record<string, any>;
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
type IRendererComponentType = (props: {
|
|
13
13
|
applicationErrors: ApplicationErrorState[];
|
|
14
14
|
backendError: ApplicationErrorState;
|
|
15
15
|
}) => ReactElement;
|
|
16
|
-
|
|
16
|
+
type IApplicationErrorSlotType = (props: {
|
|
17
17
|
name: string;
|
|
18
18
|
fillProps: {
|
|
19
19
|
active: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
|
|
2
|
+
type IErrorBoundryState = {
|
|
3
3
|
hasError: boolean;
|
|
4
4
|
error: Error | null;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type IErrorBoundryProps = {
|
|
7
7
|
children: ReactElement;
|
|
8
8
|
fallbackComponent: (props: {
|
|
9
9
|
error: Error;
|
|
@@ -16,6 +16,6 @@ export declare class ErrorBoundaryCommon extends React.Component<IErrorBoundryPr
|
|
|
16
16
|
error: Error;
|
|
17
17
|
};
|
|
18
18
|
componentDidCatch(error: Error): void;
|
|
19
|
-
render(): JSX.Element;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export {};
|
package/lib/constants/error.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type BACKEND_ERROR = '@platform/BACKEND_ERROR';
|
|
2
2
|
export declare const BACKEND_ERROR: BACKEND_ERROR;
|
|
3
|
-
export
|
|
3
|
+
export type DISMISS_APPLICATION_ERROR = '@platform/DISMISS_APPLICATION_ERROR';
|
|
4
4
|
export declare const DISMISS_APPLICATION_ERROR: DISMISS_APPLICATION_ERROR;
|
|
5
|
-
export
|
|
5
|
+
export type CLEAR_APPLICATION_ERRORS = '@platform/CLEAR_APPLICATION_ERRORS';
|
|
6
6
|
export declare const CLEAR_APPLICATION_ERRORS: CLEAR_APPLICATION_ERRORS;
|
|
7
|
-
export
|
|
7
|
+
export type RESTORE_APPLICATION_ERRORS = '@platform/RESTORE_APPLICATION_ERRORS';
|
|
8
8
|
export declare const RESTORE_APPLICATION_ERRORS: RESTORE_APPLICATION_ERRORS;
|
|
9
|
-
export
|
|
9
|
+
export type LOG_APPLICATION_ERROR = '@platform/LOG_APPLICATION_ERROR';
|
|
10
10
|
export declare const LOG_APPLICATION_ERROR: LOG_APPLICATION_ERROR;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApolloLink } from '@apollo/client';
|
|
2
2
|
import { interfaces } from 'inversify';
|
|
3
|
-
|
|
3
|
+
type IGetErrorLink = (container: interfaces.Container) => ApolloLink;
|
|
4
4
|
interface IErrorLink {
|
|
5
5
|
getErrorLink: IGetErrorLink;
|
|
6
6
|
}
|
|
@@ -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;a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