@semcore/errors 4.48.0-prerelease.4 → 4.48.0-prerelease.5
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/cjs/AccessDenied/{index.js → AccessDenied.js} +11 -14
- package/lib/cjs/AccessDenied/AccessDenied.js.map +1 -0
- package/lib/cjs/AccessDenied/AccessDenied.type.js +2 -0
- package/lib/cjs/AccessDenied/AccessDenied.type.js.map +1 -0
- package/lib/cjs/AccessDenied/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/AccessDenied/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/Error.js +24 -29
- package/lib/cjs/Error.js.map +1 -1
- package/lib/cjs/Error.type.js +2 -0
- package/lib/cjs/Error.type.js.map +1 -0
- package/lib/cjs/Maintenance/{index.js → Maintenance.js} +11 -14
- package/lib/cjs/Maintenance/Maintenance.js.map +1 -0
- package/lib/cjs/Maintenance/Maintenance.type.js +2 -0
- package/lib/cjs/Maintenance/Maintenance.type.js.map +1 -0
- package/lib/cjs/Maintenance/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/Maintenance/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/PageError/{index.js → PageError.js} +20 -24
- package/lib/cjs/PageError/PageError.js.map +1 -0
- package/lib/cjs/PageError/PageError.type.js +2 -0
- package/lib/cjs/PageError/PageError.type.js.map +1 -0
- package/lib/cjs/PageError/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/PageError/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/PageNotFound/{index.js → PageNotFound.js} +12 -15
- package/lib/cjs/PageNotFound/PageNotFound.js.map +1 -0
- package/lib/cjs/PageNotFound/PageNotFound.type.js +2 -0
- package/lib/cjs/PageNotFound/PageNotFound.type.js.map +1 -0
- package/lib/cjs/PageNotFound/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/PageNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/ProjectNotFound/{index.js → ProjectNotFound.js} +32 -24
- package/lib/cjs/ProjectNotFound/ProjectNotFound.js.map +1 -0
- package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js +2 -0
- package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js.map +1 -0
- package/lib/cjs/ProjectNotFound/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/ProjectNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/ProjectNotFound/translations/de.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/en.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/es.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/fr.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/it.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/ja.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/ko.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/nl.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/pl.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/pt.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/ru.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/sv.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/tr.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/vi.json +1 -1
- package/lib/cjs/ProjectNotFound/translations/zh.json +1 -1
- package/lib/cjs/index.js +78 -10
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/errors.shadow.css +11 -13
- package/lib/es6/AccessDenied/{index.js → AccessDenied.js} +8 -10
- package/lib/es6/AccessDenied/AccessDenied.js.map +1 -0
- package/lib/es6/AccessDenied/AccessDenied.type.js +2 -0
- package/lib/es6/AccessDenied/AccessDenied.type.js.map +1 -0
- package/lib/es6/AccessDenied/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/AccessDenied/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/Error.js +19 -20
- package/lib/es6/Error.js.map +1 -1
- package/lib/es6/Error.type.js +2 -0
- package/lib/es6/Error.type.js.map +1 -0
- package/lib/es6/Maintenance/{index.js → Maintenance.js} +8 -10
- package/lib/es6/Maintenance/Maintenance.js.map +1 -0
- package/lib/es6/Maintenance/Maintenance.type.js +2 -0
- package/lib/es6/Maintenance/Maintenance.type.js.map +1 -0
- package/lib/es6/Maintenance/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/Maintenance/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/PageError/{index.js → PageError.js} +17 -19
- package/lib/es6/PageError/PageError.js.map +1 -0
- package/lib/es6/PageError/PageError.type.js +2 -0
- package/lib/es6/PageError/PageError.type.js.map +1 -0
- package/lib/es6/PageError/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/PageError/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/PageNotFound/{index.js → PageNotFound.js} +9 -11
- package/lib/es6/PageNotFound/PageNotFound.js.map +1 -0
- package/lib/es6/PageNotFound/PageNotFound.type.js +2 -0
- package/lib/es6/PageNotFound/PageNotFound.type.js.map +1 -0
- package/lib/es6/PageNotFound/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/PageNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/ProjectNotFound/{index.js → ProjectNotFound.js} +29 -20
- package/lib/es6/ProjectNotFound/ProjectNotFound.js.map +1 -0
- package/lib/es6/ProjectNotFound/ProjectNotFound.type.js +2 -0
- package/lib/es6/ProjectNotFound/ProjectNotFound.type.js.map +1 -0
- package/lib/es6/ProjectNotFound/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/ProjectNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/ProjectNotFound/translations/de.json +1 -1
- package/lib/es6/ProjectNotFound/translations/en.json +1 -1
- package/lib/es6/ProjectNotFound/translations/es.json +1 -1
- package/lib/es6/ProjectNotFound/translations/fr.json +1 -1
- package/lib/es6/ProjectNotFound/translations/it.json +1 -1
- package/lib/es6/ProjectNotFound/translations/ja.json +1 -1
- package/lib/es6/ProjectNotFound/translations/ko.json +1 -1
- package/lib/es6/ProjectNotFound/translations/nl.json +1 -1
- package/lib/es6/ProjectNotFound/translations/pl.json +1 -1
- package/lib/es6/ProjectNotFound/translations/pt.json +1 -1
- package/lib/es6/ProjectNotFound/translations/ru.json +1 -1
- package/lib/es6/ProjectNotFound/translations/sv.json +1 -1
- package/lib/es6/ProjectNotFound/translations/tr.json +1 -1
- package/lib/es6/ProjectNotFound/translations/vi.json +1 -1
- package/lib/es6/ProjectNotFound/translations/zh.json +1 -1
- package/lib/es6/index.js +12 -7
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/errors.shadow.css +11 -13
- package/lib/esm/AccessDenied/{index.mjs → AccessDenied.mjs} +11 -13
- package/lib/esm/AccessDenied/AccessDenied.type.mjs +1 -0
- package/lib/esm/AccessDenied/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/Error.mjs +24 -27
- package/lib/esm/Error.type.mjs +1 -0
- package/lib/esm/Maintenance/{index.mjs → Maintenance.mjs} +11 -13
- package/lib/esm/Maintenance/Maintenance.type.mjs +1 -0
- package/lib/esm/Maintenance/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/PageError/{index.mjs → PageError.mjs} +19 -21
- package/lib/esm/PageError/PageError.type.mjs +1 -0
- package/lib/esm/PageError/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/PageNotFound/{index.mjs → PageNotFound.mjs} +12 -14
- package/lib/esm/PageNotFound/PageNotFound.type.mjs +1 -0
- package/lib/esm/PageNotFound/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/ProjectNotFound/{index.mjs → ProjectNotFound.mjs} +32 -23
- package/lib/esm/ProjectNotFound/ProjectNotFound.type.mjs +1 -0
- package/lib/esm/ProjectNotFound/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/ProjectNotFound/translations/de.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/en.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/es.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/fr.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/it.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/ja.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/ko.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/nl.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/pl.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/pt.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/ru.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/sv.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/tr.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/vi.json.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/zh.json.mjs +1 -1
- package/lib/esm/index.mjs +11 -5
- package/lib/esm/style/errors.shadow.css +11 -13
- package/lib/types/AccessDenied/AccessDenied.d.ts +3 -0
- package/lib/types/AccessDenied/AccessDenied.type.d.ts +21 -0
- package/lib/types/AccessDenied/translations/__intergalactic-dynamic-locales.d.ts +77 -0
- package/lib/types/Error.d.ts +4 -0
- package/lib/types/Error.type.d.ts +40 -0
- package/lib/types/Maintenance/Maintenance.d.ts +3 -0
- package/lib/types/Maintenance/Maintenance.type.d.ts +25 -0
- package/lib/types/Maintenance/translations/__intergalactic-dynamic-locales.d.ts +77 -0
- package/lib/types/PageError/PageError.d.ts +3 -0
- package/lib/types/PageError/PageError.type.d.ts +21 -0
- package/lib/types/PageError/translations/__intergalactic-dynamic-locales.d.ts +77 -0
- package/lib/types/PageNotFound/PageNotFound.d.ts +3 -0
- package/lib/types/PageNotFound/PageNotFound.type.d.ts +21 -0
- package/lib/types/PageNotFound/translations/__intergalactic-dynamic-locales.d.ts +77 -0
- package/lib/types/ProjectNotFound/ProjectNotFound.d.ts +3 -0
- package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts +31 -0
- package/lib/types/ProjectNotFound/translations/__intergalactic-dynamic-locales.d.ts +92 -0
- package/lib/types/index.d.ts +12 -120
- package/package.json +8 -8
- package/lib/cjs/AccessDenied/index.js.map +0 -1
- package/lib/cjs/Maintenance/index.js.map +0 -1
- package/lib/cjs/PageError/index.js.map +0 -1
- package/lib/cjs/PageNotFound/index.js.map +0 -1
- package/lib/cjs/ProjectNotFound/index.js.map +0 -1
- package/lib/cjs/index.d.js +0 -16
- package/lib/cjs/index.d.js.map +0 -1
- package/lib/es6/AccessDenied/index.js.map +0 -1
- package/lib/es6/Maintenance/index.js.map +0 -1
- package/lib/es6/PageError/index.js.map +0 -1
- package/lib/es6/PageNotFound/index.js.map +0 -1
- package/lib/es6/ProjectNotFound/index.js.map +0 -1
- package/lib/es6/index.d.js +0 -16
- package/lib/es6/index.d.js.map +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const localizedMessages: {
|
|
2
|
+
de: {
|
|
3
|
+
title: string;
|
|
4
|
+
text: string;
|
|
5
|
+
btnProjects: string;
|
|
6
|
+
btnContacts: string;
|
|
7
|
+
};
|
|
8
|
+
en: {
|
|
9
|
+
title: string;
|
|
10
|
+
text: string;
|
|
11
|
+
btnProjects: string;
|
|
12
|
+
btnContacts: string;
|
|
13
|
+
};
|
|
14
|
+
es: {
|
|
15
|
+
title: string;
|
|
16
|
+
text: string;
|
|
17
|
+
btnProjects: string;
|
|
18
|
+
btnContacts: string;
|
|
19
|
+
};
|
|
20
|
+
fr: {
|
|
21
|
+
title: string;
|
|
22
|
+
text: string;
|
|
23
|
+
btnProjects: string;
|
|
24
|
+
btnContacts: string;
|
|
25
|
+
};
|
|
26
|
+
it: {
|
|
27
|
+
title: string;
|
|
28
|
+
text: string;
|
|
29
|
+
btnProjects: string;
|
|
30
|
+
btnContacts: string;
|
|
31
|
+
};
|
|
32
|
+
ja: {
|
|
33
|
+
title: string;
|
|
34
|
+
text: string;
|
|
35
|
+
btnProjects: string;
|
|
36
|
+
btnContacts: string;
|
|
37
|
+
};
|
|
38
|
+
ko: {
|
|
39
|
+
title: string;
|
|
40
|
+
text: string;
|
|
41
|
+
btnProjects: string;
|
|
42
|
+
btnContacts: string;
|
|
43
|
+
};
|
|
44
|
+
nl: {
|
|
45
|
+
title: string;
|
|
46
|
+
text: string;
|
|
47
|
+
btnProjects: string;
|
|
48
|
+
btnContacts: string;
|
|
49
|
+
};
|
|
50
|
+
pt: {
|
|
51
|
+
title: string;
|
|
52
|
+
text: string;
|
|
53
|
+
btnProjects: string;
|
|
54
|
+
btnContacts: string;
|
|
55
|
+
};
|
|
56
|
+
ru: {
|
|
57
|
+
title: string;
|
|
58
|
+
text: string;
|
|
59
|
+
btnProjects: string;
|
|
60
|
+
btnContacts: string;
|
|
61
|
+
};
|
|
62
|
+
tr: {
|
|
63
|
+
title: string;
|
|
64
|
+
text: string;
|
|
65
|
+
btnProjects: string;
|
|
66
|
+
btnContacts: string;
|
|
67
|
+
};
|
|
68
|
+
vi: {
|
|
69
|
+
title: string;
|
|
70
|
+
text: string;
|
|
71
|
+
btnProjects: string;
|
|
72
|
+
btnContacts: string;
|
|
73
|
+
};
|
|
74
|
+
zh: {
|
|
75
|
+
title: string;
|
|
76
|
+
text: string;
|
|
77
|
+
btnProjects: string;
|
|
78
|
+
btnContacts: string;
|
|
79
|
+
};
|
|
80
|
+
pl: {
|
|
81
|
+
title: string;
|
|
82
|
+
text: string;
|
|
83
|
+
btnProjects: string;
|
|
84
|
+
btnContacts: string;
|
|
85
|
+
};
|
|
86
|
+
sv: {
|
|
87
|
+
title: string;
|
|
88
|
+
text: string;
|
|
89
|
+
btnProjects: string;
|
|
90
|
+
btnContacts: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,120 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
* Error icon
|
|
14
|
-
*/
|
|
15
|
-
icon?: string | React.ReactNode;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/** @deprecated */
|
|
19
|
-
export interface IErrorsContext extends ErrorsContext, UnknownProperties {}
|
|
20
|
-
export type ErrorsContext = {
|
|
21
|
-
getTextProps: PropGetterFn;
|
|
22
|
-
getDescriptionProps: PropGetterFn;
|
|
23
|
-
getControlsProps: PropGetterFn;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/** @deprecated */
|
|
27
|
-
export interface IProjectNotFoundProps extends ProjectNotFoundProps, UnknownProperties {}
|
|
28
|
-
export type ProjectNotFoundProps = WithI18nEnhanceProps & {
|
|
29
|
-
/**
|
|
30
|
-
* Link to the projects
|
|
31
|
-
* @default /projects
|
|
32
|
-
*/
|
|
33
|
-
projectsLink?: string;
|
|
34
|
-
contactsLink?: string;
|
|
35
|
-
supportTeamLink?: string;
|
|
36
|
-
/**
|
|
37
|
-
* HTML tag of the error title
|
|
38
|
-
* @default h2
|
|
39
|
-
*/
|
|
40
|
-
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
/** @deprecated */
|
|
44
|
-
export interface IPageNotFoundProps extends PageNotFoundProps, UnknownProperties {}
|
|
45
|
-
export type PageNotFoundProps = WithI18nEnhanceProps & {
|
|
46
|
-
/**
|
|
47
|
-
* href of the home link
|
|
48
|
-
* @default /
|
|
49
|
-
*/
|
|
50
|
-
homeLink?: string;
|
|
51
|
-
/**
|
|
52
|
-
* HTML tag of the error title
|
|
53
|
-
* @default h2
|
|
54
|
-
*/
|
|
55
|
-
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/** @deprecated */
|
|
59
|
-
export interface IPageErrorProps extends PageErrorProps, UnknownProperties {}
|
|
60
|
-
export type PageErrorProps = WithI18nEnhanceProps & {
|
|
61
|
-
/**
|
|
62
|
-
* Page reloading button click handler
|
|
63
|
-
* @default () => { if (canUseDOM()) { location.reload(); } }
|
|
64
|
-
*/
|
|
65
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
66
|
-
/**
|
|
67
|
-
* HTML tag of the error title
|
|
68
|
-
* @default h2
|
|
69
|
-
*/
|
|
70
|
-
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
/** @deprecated */
|
|
74
|
-
export interface IMaintenanceProps extends MaintenanceProps, UnknownProperties {}
|
|
75
|
-
export type MaintenanceProps = WithI18nEnhanceProps & {
|
|
76
|
-
/**
|
|
77
|
-
* Tool name
|
|
78
|
-
*/
|
|
79
|
-
toolName: string;
|
|
80
|
-
/**
|
|
81
|
-
* href of the home link
|
|
82
|
-
* @default /
|
|
83
|
-
*/
|
|
84
|
-
homeLink?: string;
|
|
85
|
-
/**
|
|
86
|
-
* HTML tag of the error title
|
|
87
|
-
* @default h2
|
|
88
|
-
*/
|
|
89
|
-
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
/** @deprecated */
|
|
93
|
-
export interface IAccessDeniedProps extends AccessDeniedProps, UnknownProperties {}
|
|
94
|
-
export type AccessDeniedProps = WithI18nEnhanceProps & {
|
|
95
|
-
/**
|
|
96
|
-
* href of the home link
|
|
97
|
-
* @default /
|
|
98
|
-
*/
|
|
99
|
-
homeLink?: string;
|
|
100
|
-
/**
|
|
101
|
-
* HTML tag of the error title
|
|
102
|
-
* @default h2
|
|
103
|
-
*/
|
|
104
|
-
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
declare const Error: Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {
|
|
108
|
-
Title: typeof Box;
|
|
109
|
-
Description: typeof Box;
|
|
110
|
-
Controls: typeof Box;
|
|
111
|
-
};
|
|
112
|
-
declare const ProjectNotFound: Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;
|
|
113
|
-
declare const PageNotFound: Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;
|
|
114
|
-
declare const PageError: Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;
|
|
115
|
-
declare const Maintenance: Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;
|
|
116
|
-
declare const AccessDenied: Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;
|
|
117
|
-
declare const getIconPath: (name: iconNamesErrors) => string;
|
|
118
|
-
|
|
119
|
-
export default Error;
|
|
120
|
-
export { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };
|
|
1
|
+
export { default, getIconPath } from './Error';
|
|
2
|
+
export * from './Error.type';
|
|
3
|
+
export { default as AccessDenied } from './AccessDenied/AccessDenied';
|
|
4
|
+
export * from './AccessDenied/AccessDenied.type';
|
|
5
|
+
export { default as Maintenance } from './Maintenance/Maintenance';
|
|
6
|
+
export * from './Maintenance/Maintenance.type';
|
|
7
|
+
export { default as PageError } from './PageError/PageError';
|
|
8
|
+
export * from './PageError/PageError.type';
|
|
9
|
+
export { default as PageNotFound } from './PageNotFound/PageNotFound';
|
|
10
|
+
export * from './PageNotFound/PageNotFound.type';
|
|
11
|
+
export { default as ProjectNotFound } from './ProjectNotFound/ProjectNotFound';
|
|
12
|
+
export * from './ProjectNotFound/ProjectNotFound.type';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/errors",
|
|
3
3
|
"description": "Semrush Errors Component",
|
|
4
|
-
"version": "4.48.0-prerelease.
|
|
4
|
+
"version": "4.48.0-prerelease.5",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "5.44.0-prerelease.
|
|
18
|
-
"@semcore/flex-box": "5.42.0-prerelease.
|
|
19
|
-
"@semcore/format-text": "4.43.0-prerelease.
|
|
20
|
-
"@semcore/illustration": "2.45.0-prerelease.
|
|
21
|
-
"@semcore/typography": "5.54.0-prerelease.
|
|
22
|
-
"@semcore/utils": "4.49.0-prerelease.
|
|
17
|
+
"@semcore/button": "5.44.0-prerelease.5",
|
|
18
|
+
"@semcore/flex-box": "5.42.0-prerelease.5",
|
|
19
|
+
"@semcore/format-text": "4.43.0-prerelease.5",
|
|
20
|
+
"@semcore/illustration": "2.45.0-prerelease.5",
|
|
21
|
+
"@semcore/typography": "5.54.0-prerelease.5",
|
|
22
|
+
"@semcore/utils": "4.49.0-prerelease.5"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@semcore/core": "^2.40.0-prerelease.
|
|
25
|
+
"@semcore/core": "^2.40.0-prerelease.5",
|
|
26
26
|
"react": "16.8 - 18",
|
|
27
27
|
"react-dom": "16.8 - 18"
|
|
28
28
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_button","_i18nEnhance","_Error","_intergalacticDynamicLocales","RootAccessDenied","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","titleTag","createElement","Error","assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","Component","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","createComponent","exports"],"sources":["../../../src/AccessDenied/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('access_denied'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description wMax='640px'>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootAccessDenied);\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAFA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAN,uBAAA,CAAAC,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AAAmF,IAE7EO,gBAAgB,0BAAAC,UAAA;EAAA,IAAAC,UAAA,aAAAF,gBAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,OAAAC,aAAA,aAAAJ,gBAAA;EAAA,SAAAA,iBAAA;IAAA,IAAAK,gBAAA,mBAAAL,gBAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA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AAAA,IAAAF,gBAAA,aAF7CjC,gBAAgB,kBAGE;EACpBoC,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZpB,QAAQ,EAAE,GAAG;EACbqB,IAAI,EAAE,IAAAC,kBAAW,EAAC,eAAe,CAAC;EAClCrB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAsB,QAAA,GAmBY,IAAAC,gBAAe,EAACzC,gBAAgB,CAAC;AAAA0C,OAAA,cAAAF,QAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_button","_i18nEnhance","_Error","_intergalacticDynamicLocales","RootMaintenance","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","toolName","titleTag","createElement","Error","assignProps","Title","tag","concat","Description","Controls","type","size","use","theme","href","Component","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","createComponent","exports"],"sources":["../../../src/Maintenance/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('maintenance'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{`${toolName} ${getI18nText('title')}`}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}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,eACjFtB,MAAA,YAAA0B,aAAA,CAACtB,MAAA,WAAK,CAAC4B,WAAW,QAAEV,WAAW,CAAC,MAAM,CAAC,CAAqB,eAC5DtB,MAAA,YAAA0B,aAAA,CAACL,QAAQ,OAAG,eACZrB,MAAA,YAAA0B,aAAA,CAACtB,MAAA,WAAK,CAAC6B,QAAQ,qBACbjC,MAAA,YAAA0B,aAAA,CAACxB,OAAA,WAAM;QAAC4B,GAAG,EAAC,GAAG;QAACI,IAAI,EAAC,MAAM;QAACC,IAAI,EAAC,GAAG;QAACC,GAAG,EAAC,SAAS;QAACC,KAAK,EAAC,MAAM;QAACC,IAAI,EAAEf;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAAC,CAChB,CACM,CACZ;IAEX;EAAC;EAAA,OAAAhB,eAAA;AAAA,EA1B2BiC,eAAS;AAAA,IAAAC,gBAAA,aAAjClC,eAAe,iBACE,aAAa;AAAA,IAAAkC,gBAAA,aAD9BlC,eAAe,aAEF,CAAC,IAAAmC,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,aAF7ClC,eAAe,kBAGG;EACpBqC,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZrB,QAAQ,EAAE,GAAG;EACbsB,IAAI,EAAE,IAAAC,kBAAW,EAAC,aAAa,CAAC;EAChCrB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAsB,QAAA,GAoBY,IAAAC,gBAAe,EAAC1C,eAAe,CAAC;AAAA2C,OAAA,cAAAF,QAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_button","_core","_interopRequireWildcard","_i18nEnhance","_canUseDOM","_assignProps","_Error","_intergalacticDynamicLocales","_excluded","RootPageError","_Component","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","canUseDOM","location","reload","_createClass2","key","value","render","_this$asProps","asProps","Children","getI18nText","onClick","titleTag","other","_objectWithoutProperties2","createElement","Title","tag","Description","Controls","callAllEventHandlers","handleReload","size","use","theme","Component","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","createComponent","exports"],"sources":["../../../src/PageError/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageError extends Component {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_error'),\n titleTag: 'h2',\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, titleTag, ...other } = this.asProps;\n\n return (\n <Error {...other}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Error>\n );\n }\n}\n\nexport default createComponent(RootPageError);\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,KAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,UAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAJ,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EAAEL;MAAS,GAAEF,WAAW,CAAC,OAAO,CAAC,CAAe,eAChExC,MAAA,YAAA6C,aAAA,CAACpC,MAAA,WAAK,CAACuC,WAAW,QAAER,WAAW,CAAC,MAAM,CAAC,CAAqB,eAC5DxC,MAAA,YAAA6C,aAAA,CAACN,QAAQ,OAAG,eACZvC,MAAA,YAAA6C,aAAA,CAACpC,MAAA,WAAK,CAACwC,QAAQ,qBACbjD,MAAA,YAAA6C,aAAA,CAAC1C,OAAA,WAAM;QACLsC,OAAO,EAAE,IAAAS,iCAAoB,EAACT,OAAO,EAAE,IAAI,CAACU,YAAY,CAAE;QAC1DC,IAAI,EAAC,GAAG;QACRC,GAAG,EAAC,SAAS;QACbC,KAAK,EAAC;MAAM,GAEXd,WAAW,CAAC,UAAU,CAAC,CACjB,CACM,CACX;IAEZ;EAAC;EAAA,OAAA5B,aAAA;AAAA,EApCyB2C,eAAS;AAAA,IAAA3B,gBAAA,aAA/BhB,aAAa,iBACI,WAAW;AAAA,IAAAgB,gBAAA,aAD5BhB,aAAa,aAEA,CAAC,IAAA4C,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAA7B,gBAAA,aAF7ChB,aAAa,kBAGK;EACpB8C,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,YAAY,CAAC;EAC/BnB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAoB,QAAA,GA+BY,IAAAC,gBAAe,EAACnD,aAAa,CAAC;AAAAoD,OAAA,cAAAF,QAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_button","_i18nEnhance","_Error","_intergalacticDynamicLocales","RootPageNotFound","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","titleTag","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","Component","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","createComponent","exports"],"sources":["../../../src/PageNotFound/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageNotFound);\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAFA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAN,uBAAA,CAAAC,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AAAmF,IAE7EO,gBAAgB,0BAAAC,UAAA;EAAA,IAAAC,UAAA,aAAAF,gBAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,OAAAC,aAAA,aAAAJ,gBAAA;EAAA,SAAAA,iBAAA;IAAA,IAAAK,gBAAA,mBAAAL,gBAAA;IAAA,OAAAG,MAA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AAC;AAAA,IAAAF,gBAAA,aAF7ChC,gBAAgB,kBAGE;EACpBmC,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,gBAAgB,CAAC;EACnCrB,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqB,QAAA,GAoBY,IAAAC,gBAAe,EAACxC,gBAAgB,CAAC;AAAAyC,OAAA,cAAAF,QAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_button","_formatText","_i18nEnhance","_Error","_intergalacticDynamicLocales","RootProjectNotFound","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","url","createElement","Error","assignProps","Title","tag","Description","FormatText","size","dangerouslySetInnerHTML","__html","Controls","type","use","theme","href","Component","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","createComponent","exports"],"sources":["../../../src/ProjectNotFound/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport FormatText from '@semcore/format-text';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: 'mailto:mail@semrush.com',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink, titleTag } =\n this.asProps;\n const text = getI18nText('text', { url: supportTeamLink });\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description tag={FormatText} size='l' dangerouslySetInnerHTML={{ __html: text }} />\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={projectsLink}>\n {getI18nText('btnProjects')}\n </Button>\n <Button size='l' tag='a' type='none' href={contactsLink}>\n {getI18nText('btnContacts')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootProjectNotFound);\n"],"mappings":";;;;;;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAHA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,YAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,MAAA,GAAAP,uBAAA,CAAAC,OAAA;AACA,IAAAO,4BAAA,GAAAP,OAAA;AAAmF,IAE7EQ,mBAAmB,0BAAAC,UAAA;EAAA,IAAAC,UAAA,aAAAF,mBAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,OAAAC,aAAA,aAAAJ,mBAAA;EAAA,SAAAA,oBAAA;IAAA,IAAAK,gBAAA,mBAAAL,mBAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAA,IAAAC,aAAA,aAAAR,mBAAA;IAAAS,GAAA;IAAAC,KAAA,EAavB,SAAAC,OAAA,EAAS;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GACE,IAAI,CAACD,OAAO;QADNE,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,WAAW,GAAAF,aAAA,CAAXE,WAAW;QAAEC,YAAY,GAAAH,aAAA,CAAZG,YAAY;QAAEC,YAAY,GAAAJ,aAAA,CAAZI,YAAY;Q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,aAD9BvC,mBAAmB,aAEN,CAAC,IAAAwC,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,aAF7CvC,mBAAmB,kBAGD;EACpB0C,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,mBAAmB,CAAC;EACtC5B,YAAY,EAAE,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,yBAAyB;EAC1CC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAA0B,QAAA,GAwBY,IAAAC,gBAAe,EAAC/C,mBAAmB,CAAC;AAAAgD,OAAA,cAAAF,QAAA"}
|
package/lib/cjs/index.d.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
/** @deprecated */
|
|
8
|
-
/** @deprecated */
|
|
9
|
-
/** @deprecated */
|
|
10
|
-
/** @deprecated */
|
|
11
|
-
/** @deprecated */
|
|
12
|
-
/** @deprecated */
|
|
13
|
-
/** @deprecated */
|
|
14
|
-
var _default = Error;
|
|
15
|
-
exports["default"] = _default;
|
|
16
|
-
//# sourceMappingURL=index.d.js.map
|
package/lib/cjs/index.d.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":["_default","Error","exports"],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { Box, FlexProps } from '@semcore/flex-box';\nimport { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';\nimport { TIllustrationNamesErrors } from '@semcore/illustration';\nimport { WithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\n\nexport type iconNamesErrors = TIllustrationNamesErrors;\n\n/** @deprecated */\nexport interface IErrorsProps extends ErrorsProps, UnknownProperties {}\nexport type ErrorsProps = FlexProps & {\n /**\n * Error icon\n */\n icon?: string | React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IErrorsContext extends ErrorsContext, UnknownProperties {}\nexport type ErrorsContext = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IProjectNotFoundProps extends ProjectNotFoundProps, UnknownProperties {}\nexport type ProjectNotFoundProps = WithI18nEnhanceProps & {\n /**\n * Link to the projects\n * @default /projects\n */\n projectsLink?: string;\n contactsLink?: string;\n supportTeamLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IPageNotFoundProps extends PageNotFoundProps, UnknownProperties {}\nexport type PageNotFoundProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IPageErrorProps extends PageErrorProps, UnknownProperties {}\nexport type PageErrorProps = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IMaintenanceProps extends MaintenanceProps, UnknownProperties {}\nexport type MaintenanceProps = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IAccessDeniedProps extends AccessDeniedProps, UnknownProperties {}\nexport type AccessDeniedProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\ndeclare const Error: Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {\n Title: typeof Box;\n Description: typeof Box;\n Controls: typeof Box;\n};\ndeclare const ProjectNotFound: Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;\ndeclare const PageNotFound: Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;\ndeclare const PageError: Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;\ndeclare const Maintenance: Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;\ndeclare const AccessDenied: Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;\ndeclare const getIconPath: (name: iconNamesErrors) => string;\n\nexport default Error;\nexport { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };\n"],"mappings":";;;;;;AAQA;AASA;AAQA;AAiBA;AAeA;AAeA;AAmBA;AAAA,IAAAA,QAAA,GA2BeC,KAAK;AAAAC,OAAA,cAAAF,QAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","Button","createComponent","Component","Root","i18nEnhance","Error","getIconPath","localizedMessages","RootAccessDenied","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/AccessDenied/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('access_denied'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description wMax='640px'>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootAccessDenied);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,eAAe,IAAIC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,yCAAyC;AACjE,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,gBAAgB,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,gBAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,gBAAA;EAAA,SAAAA,iBAAA;IAAAK,eAAA,OAAAL,gBAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,gBAAA;IAAAS,GAAA;IAAAC,KAAA,EAWpB,SAAAC,OAAA,EAAS;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GAAsD,IAAI,CAACD,OAAO;QAA1DE,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,WAAW,GAAAF,aAAA,CAAXE,WAAW;QAAEC,QAAQ,GAAAH,aAAA,CAARG,QAAQ;QAAEC,QAAQ,GAAAJ,aAAA,CAARI,QAAQ;MACjD,oBACE3B,KAAA,CAAA4B,aAAA,CAActB,KAAK,EAAAuB,YAAA,KAAAR,IAAA,gBACjBrB,KAAA,CAAA4B,aAAA,CAACtB,KAAK,CAACwB,KAAK;QAACC,GAAG,EAAEJ;MAAS,GAAEF,WAAW,CAAC,OAAO,CAAC,CAAe,eAChEzB,KAAA,CAAA4B,aAAA,CAACtB,KAAK,CAAC0B,WAAW;QAACC,IAAI,EAAC;MAAO,GAAER,WAAW,CAAC,MAAM,CAAC,CAAqB,eACzEzB,KAAA,CAAA4B,aAAA,CAACJ,QAAQ,OAAG,eACZxB,KAAA,CAAA4B,aAAA,CAACtB,KAAK,CAAC4B,QAAQ,qBACblC,KAAA,CAAA4B,aAAA,CAAC3B,MAAM;QAAC8B,GAAG,EAAC,GAAG;QAACI,IAAI,EAAC,MAAM;QAACC,IAAI,EAAC,GAAG;QAACC,GAAG,EAAC,SAAS;QAACC,KAAK,EAAC,MAAM;QAACC,IAAI,EAAEb;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAAC,CAChB,CACM,CACZ;IAEX;EAAC;EAAA,OAAAhB,gBAAA;AAAA,EAzB4BN,SAAS;AAAAqC,eAAA,CAAlC/B,gBAAgB,iBACC,cAAc;AAAA+B,eAAA,CAD/B/B,gBAAgB,aAEH,CAACJ,WAAW,CAACG,iBAAiB,CAAC,CAAC;AAAAgC,eAAA,CAF7C/B,gBAAgB,kBAGE;EACpBgC,IAAI,EAAEjC,iBAAiB;EACvBkC,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAEpC,WAAW,CAAC,eAAe,CAAC;EAClCoB,QAAQ,EAAE;AACZ,CAAC;AAmBH,eAAezB,eAAe,CAACO,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","Button","createComponent","Component","Root","i18nEnhance","Error","getIconPath","localizedMessages","RootMaintenance","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","toolName","titleTag","createElement","_assignProps","Title","tag","concat","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/Maintenance/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('maintenance'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{`${toolName} ${getI18nText('title')}`}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootMaintenance);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,eAAe,IAAIC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,yCAAyC;AACjE,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,eAAe,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,eAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,eAAA;EAAA,SAAAA,gBAAA;IAAAK,eAAA,OAAAL,eAAA;I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AW,CAACG,iBAAiB,CAAC,CAAC;AAAAiC,eAAA,CAF7ChC,eAAe,kBAGG;EACpBiC,IAAI,EAAElC,iBAAiB;EACvBmC,MAAM,EAAE,IAAI;EACZjB,QAAQ,EAAE,GAAG;EACbkB,IAAI,EAAErC,WAAW,CAAC,aAAa,CAAC;EAChCqB,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAe1B,eAAe,CAACO,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","Button","createComponent","Component","i18nEnhance","canUseDOM","callAllEventHandlers","Error","getIconPath","localizedMessages","RootPageError","_Component","_inherits","_super","_createSuper","_this","_classCallCheck","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty","_assertThisInitialized","location","reload","_createClass","key","value","render","_this$asProps","asProps","Children","getI18nText","onClick","titleTag","other","_objectWithoutProperties","_excluded","createElement","Title","tag","Description","Controls","handleReload","size","use","theme","i18n","locale","icon"],"sources":["../../../src/PageError/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageError extends Component {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_error'),\n titleTag: 'h2',\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, titleTag, ...other } = this.asProps;\n\n return (\n <Error {...other}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Error>\n );\n }\n}\n\nexport default createComponent(RootPageError);\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,eAAe,IAAIC,SAAS,QAAQ,eAAe;AAC1D,OAAOC,WAAW,MAAM,yCAAyC;AACjE,OAAOC,SAAS,MAAM,8BAA8B;AACpD,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,aAAa,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,aAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,aAAA;EAAA,SAAAA,cAAA;IAAA,IAAAK,KAAA;IAAAC,eAAA,OAAAN,aAAA;IAAA,SAAAO,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;MAAAF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;IAAA;IAAAP,KAAA,GAAAF,MAAA,CAAAU,IAAA,CAAAC,KAAA,CAAAX,MAAA,SAAAY,MAAA,CAAAL,IAAA;IAAAM,eAAA,CAAAC,sBAAA,CAAAZ,KAAA,mBAUF,YAAM;MACnB,IAAIV,SAAS,EAAE,EAAE;QACfuB,QAAQ,CAACC,MAAM,EAAE;MACnB;IACF,CAAC;IAAA,OAAAd,KAAA;EAAA;EAAAe,YAAA,CAAApB,aAAA;IAAAqB,GAAA;IAAAC,KAAA,EAED,SAAAC,OAAA,EAAS;MACP,IAAAC,aAAA,GAA+D,IAAI,CAACC,OAAO;QAAnEC,QAAQ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
|
1
|
-
{"version":3,"file":"index.js","names":["React","Button","createComponent","Component","Root","i18nEnhance","Error","getIconPath","localizedMessages","RootPageNotFound","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/PageNotFound/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageNotFound);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,eAAe,IAAIC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,yCAAyC;AACjE,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,gBAAgB,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,gBAAA,EAAAC,UAAA;EAAA,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gB,aAEH,CAACJ,WAAW,CAACG,iBAAiB,CAAC,CAAC;AAAA+B,eAAA,CAF7C9B,gBAAgB,kBAGE;EACpB+B,IAAI,EAAEhC,iBAAiB;EACvBiC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAEnC,WAAW,CAAC,gBAAgB,CAAC;EACnCmB,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAezB,eAAe,CAACO,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","Button","FormatText","createComponent","Component","Root","i18nEnhance","Error","getIconPath","localizedMessages","RootProjectNotFound","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","url","createElement","_assignProps","Title","tag","Description","size","dangerouslySetInnerHTML","__html","Controls","type","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/ProjectNotFound/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport FormatText from '@semcore/format-text';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: 'mailto:mail@semrush.com',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink, titleTag } =\n this.asProps;\n const text = getI18nText('text', { url: supportTeamLink });\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description tag={FormatText} size='l' dangerouslySetInnerHTML={{ __html: text }} />\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={projectsLink}>\n {getI18nText('btnProjects')}\n </Button>\n <Button size='l' tag='a' type='none' href={contactsLink}>\n {getI18nText('btnContacts')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootProjectNotFound);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,UAAU,MAAM,sBAAsB;AAC7C,OAAOC,eAAe,IAAIC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,yCAAyC;AACjE,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,mBAAmB,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,mBAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,mBAAA;EAAA,SAAAA,oBAAA;IAAAK,eAAA,OAAAL,mBAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,mBAAA;IAAAS,GAAA;IAAAC,KAAA,EAavB,SAAAC,OAAA,EAAS;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GACE,IAAI,CAACD,OAAO;QADNE,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,WAAW,GAAAF,aAAA,CAAXE,WAAW;QAAEC,YAAY,GAAAH,aAAA,CAAZG,YAAY;QAAEC,YAAY,GAAAJ,aAAA,CAAZI,YAAY;QAAEC,eAAe,GAAAL,aAAA,CAAfK,eAAe;QAAEC,QAAQ,GAAAN,aAAA,CAARM,QAAQ;MAEpF,IAAMC,IAAI,GAAGL,WAAW,CAAC,MAAM,EAAE;QAAEM,GAAG,EAAEH;MAAgB,C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AAY,EAAE,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,yBAAyB;EAC1CC,QAAQ,EAAE;AACZ,CAAC;AAwBH,eAAe3B,eAAe,CAACO,mBAAmB,CAAC"}
|
package/lib/es6/index.d.js
DELETED
package/lib/es6/index.d.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":["Error"],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { Box, FlexProps } from '@semcore/flex-box';\nimport { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';\nimport { TIllustrationNamesErrors } from '@semcore/illustration';\nimport { WithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\n\nexport type iconNamesErrors = TIllustrationNamesErrors;\n\n/** @deprecated */\nexport interface IErrorsProps extends ErrorsProps, UnknownProperties {}\nexport type ErrorsProps = FlexProps & {\n /**\n * Error icon\n */\n icon?: string | React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IErrorsContext extends ErrorsContext, UnknownProperties {}\nexport type ErrorsContext = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IProjectNotFoundProps extends ProjectNotFoundProps, UnknownProperties {}\nexport type ProjectNotFoundProps = WithI18nEnhanceProps & {\n /**\n * Link to the projects\n * @default /projects\n */\n projectsLink?: string;\n contactsLink?: string;\n supportTeamLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IPageNotFoundProps extends PageNotFoundProps, UnknownProperties {}\nexport type PageNotFoundProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IPageErrorProps extends PageErrorProps, UnknownProperties {}\nexport type PageErrorProps = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IMaintenanceProps extends MaintenanceProps, UnknownProperties {}\nexport type MaintenanceProps = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IAccessDeniedProps extends AccessDeniedProps, UnknownProperties {}\nexport type AccessDeniedProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\ndeclare const Error: Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {\n Title: typeof Box;\n Description: typeof Box;\n Controls: typeof Box;\n};\ndeclare const ProjectNotFound: Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;\ndeclare const PageNotFound: Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;\ndeclare const PageError: Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;\ndeclare const Maintenance: Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;\ndeclare const AccessDenied: Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;\ndeclare const getIconPath: (name: iconNamesErrors) => string;\n\nexport default Error;\nexport { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };\n"],"mappings":"AAQA;;AASA;;AAQA;;AAiBA;;AAeA;;AAeA;;AAmBA;;AA2BA,eAAeA,KAAK"}
|