@semcore/errors 4.48.0-prerelease.5 → 4.48.0-prerelease.7
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/{AccessDenied.js → index.js} +14 -11
- package/lib/cjs/AccessDenied/index.js.map +1 -0
- package/lib/cjs/AccessDenied/translations/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/AccessDenied/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/Error.js +29 -24
- package/lib/cjs/Error.js.map +1 -1
- package/lib/cjs/Maintenance/{Maintenance.js → index.js} +14 -11
- package/lib/cjs/Maintenance/index.js.map +1 -0
- package/lib/cjs/Maintenance/translations/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/Maintenance/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/PageError/{PageError.js → index.js} +24 -20
- package/lib/cjs/PageError/index.js.map +1 -0
- package/lib/cjs/PageError/translations/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/PageError/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/PageNotFound/{PageNotFound.js → index.js} +15 -12
- package/lib/cjs/PageNotFound/index.js.map +1 -0
- package/lib/cjs/PageNotFound/translations/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/PageNotFound/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/ProjectNotFound/{ProjectNotFound.js → index.js} +24 -32
- package/lib/cjs/ProjectNotFound/index.js.map +1 -0
- package/lib/cjs/ProjectNotFound/translations/__intergalactic-dynamic-locales.js +5 -4
- 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.d.js +16 -0
- package/lib/cjs/index.d.js.map +1 -0
- package/lib/cjs/index.js +10 -78
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/errors.shadow.css +13 -11
- package/lib/es6/AccessDenied/{AccessDenied.js → index.js} +10 -8
- package/lib/es6/AccessDenied/index.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 +20 -19
- package/lib/es6/Error.js.map +1 -1
- package/lib/es6/Maintenance/{Maintenance.js → index.js} +10 -8
- package/lib/es6/Maintenance/index.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/{PageError.js → index.js} +19 -17
- package/lib/es6/PageError/index.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/{PageNotFound.js → index.js} +11 -9
- package/lib/es6/PageNotFound/index.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/{ProjectNotFound.js → index.js} +20 -29
- package/lib/es6/ProjectNotFound/index.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.d.js +16 -0
- package/lib/es6/index.d.js.map +1 -0
- package/lib/es6/index.js +7 -12
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/errors.shadow.css +13 -11
- package/lib/esm/AccessDenied/{AccessDenied.mjs → index.mjs} +13 -11
- package/lib/esm/AccessDenied/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/Error.mjs +27 -24
- package/lib/esm/Maintenance/{Maintenance.mjs → index.mjs} +13 -11
- package/lib/esm/Maintenance/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/PageError/{PageError.mjs → index.mjs} +21 -19
- package/lib/esm/PageError/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/PageNotFound/{PageNotFound.mjs → index.mjs} +14 -12
- package/lib/esm/PageNotFound/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/ProjectNotFound/{ProjectNotFound.mjs → index.mjs} +23 -32
- 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 +5 -11
- package/lib/esm/style/errors.shadow.css +13 -11
- package/lib/types/index.d.ts +120 -12
- package/package.json +8 -8
- package/lib/cjs/AccessDenied/AccessDenied.js.map +0 -1
- package/lib/cjs/AccessDenied/AccessDenied.type.js +0 -2
- package/lib/cjs/AccessDenied/AccessDenied.type.js.map +0 -1
- package/lib/cjs/Error.type.js +0 -2
- package/lib/cjs/Error.type.js.map +0 -1
- package/lib/cjs/Maintenance/Maintenance.js.map +0 -1
- package/lib/cjs/Maintenance/Maintenance.type.js +0 -2
- package/lib/cjs/Maintenance/Maintenance.type.js.map +0 -1
- package/lib/cjs/PageError/PageError.js.map +0 -1
- package/lib/cjs/PageError/PageError.type.js +0 -2
- package/lib/cjs/PageError/PageError.type.js.map +0 -1
- package/lib/cjs/PageNotFound/PageNotFound.js.map +0 -1
- package/lib/cjs/PageNotFound/PageNotFound.type.js +0 -2
- package/lib/cjs/PageNotFound/PageNotFound.type.js.map +0 -1
- package/lib/cjs/ProjectNotFound/ProjectNotFound.js.map +0 -1
- package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js +0 -2
- package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js.map +0 -1
- package/lib/es6/AccessDenied/AccessDenied.js.map +0 -1
- package/lib/es6/AccessDenied/AccessDenied.type.js +0 -2
- package/lib/es6/AccessDenied/AccessDenied.type.js.map +0 -1
- package/lib/es6/Error.type.js +0 -2
- package/lib/es6/Error.type.js.map +0 -1
- package/lib/es6/Maintenance/Maintenance.js.map +0 -1
- package/lib/es6/Maintenance/Maintenance.type.js +0 -2
- package/lib/es6/Maintenance/Maintenance.type.js.map +0 -1
- package/lib/es6/PageError/PageError.js.map +0 -1
- package/lib/es6/PageError/PageError.type.js +0 -2
- package/lib/es6/PageError/PageError.type.js.map +0 -1
- package/lib/es6/PageNotFound/PageNotFound.js.map +0 -1
- package/lib/es6/PageNotFound/PageNotFound.type.js +0 -2
- package/lib/es6/PageNotFound/PageNotFound.type.js.map +0 -1
- package/lib/es6/ProjectNotFound/ProjectNotFound.js.map +0 -1
- package/lib/es6/ProjectNotFound/ProjectNotFound.type.js +0 -2
- package/lib/es6/ProjectNotFound/ProjectNotFound.type.js.map +0 -1
- package/lib/esm/AccessDenied/AccessDenied.type.mjs +0 -1
- package/lib/esm/Error.type.mjs +0 -1
- package/lib/esm/Maintenance/Maintenance.type.mjs +0 -1
- package/lib/esm/PageError/PageError.type.mjs +0 -1
- package/lib/esm/PageNotFound/PageNotFound.type.mjs +0 -1
- package/lib/esm/ProjectNotFound/ProjectNotFound.type.mjs +0 -1
- package/lib/types/AccessDenied/AccessDenied.d.ts +0 -3
- package/lib/types/AccessDenied/AccessDenied.type.d.ts +0 -21
- package/lib/types/AccessDenied/translations/__intergalactic-dynamic-locales.d.ts +0 -77
- package/lib/types/Error.d.ts +0 -4
- package/lib/types/Error.type.d.ts +0 -40
- package/lib/types/Maintenance/Maintenance.d.ts +0 -3
- package/lib/types/Maintenance/Maintenance.type.d.ts +0 -25
- package/lib/types/Maintenance/translations/__intergalactic-dynamic-locales.d.ts +0 -77
- package/lib/types/PageError/PageError.d.ts +0 -3
- package/lib/types/PageError/PageError.type.d.ts +0 -21
- package/lib/types/PageError/translations/__intergalactic-dynamic-locales.d.ts +0 -77
- package/lib/types/PageNotFound/PageNotFound.d.ts +0 -3
- package/lib/types/PageNotFound/PageNotFound.type.d.ts +0 -21
- package/lib/types/PageNotFound/translations/__intergalactic-dynamic-locales.d.ts +0 -77
- package/lib/types/ProjectNotFound/ProjectNotFound.d.ts +0 -3
- package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts +0 -31
- package/lib/types/ProjectNotFound/translations/__intergalactic-dynamic-locales.d.ts +0 -92
package/lib/esm/index.mjs
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { default as default2, getIconPath } from "./Error.mjs";
|
|
2
|
-
import "./
|
|
3
|
-
import { default as
|
|
4
|
-
import "./
|
|
5
|
-
import { default as
|
|
6
|
-
import "./
|
|
7
|
-
import { default as default5 } from "./PageError/PageError.mjs";
|
|
8
|
-
import "./PageError/PageError.type.mjs";
|
|
9
|
-
import { default as default6 } from "./PageNotFound/PageNotFound.mjs";
|
|
10
|
-
import "./PageNotFound/PageNotFound.type.mjs";
|
|
11
|
-
import { default as default7 } from "./ProjectNotFound/ProjectNotFound.mjs";
|
|
12
|
-
import "./ProjectNotFound/ProjectNotFound.type.mjs";
|
|
2
|
+
import { default as default3 } from "./AccessDenied/index.mjs";
|
|
3
|
+
import { default as default4 } from "./Maintenance/index.mjs";
|
|
4
|
+
import { default as default5 } from "./PageError/index.mjs";
|
|
5
|
+
import { default as default6 } from "./PageNotFound/index.mjs";
|
|
6
|
+
import { default as default7 } from "./ProjectNotFound/index.mjs";
|
|
13
7
|
export {
|
|
14
8
|
default3 as AccessDenied,
|
|
15
9
|
default4 as Maintenance,
|
|
@@ -1,47 +1,50 @@
|
|
|
1
1
|
SError {
|
|
2
|
-
padding: var(--intergalactic-spacing-20x, 80px)
|
|
2
|
+
padding: var(--intergalactic-spacing-20x, 80px) 0;
|
|
3
3
|
margin: 0 auto;
|
|
4
4
|
max-width: 960px;
|
|
5
5
|
|
|
6
|
-
@media (max-width:
|
|
6
|
+
@media (max-width: 768px) {
|
|
7
|
+
padding: var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (max-width: 320px) {
|
|
7
11
|
padding: var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px);
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
SControls {
|
|
11
15
|
display: flex;
|
|
12
|
-
flex-wrap: wrap;
|
|
13
|
-
gap: var(--intergalactic-spacing-3x, 12px);
|
|
14
16
|
align-items: center;
|
|
17
|
+
|
|
18
|
+
&>*:not(:last-child) {
|
|
19
|
+
margin-right: var(--intergalactic-spacing-3x, 12px);
|
|
20
|
+
}
|
|
15
21
|
}
|
|
16
22
|
|
|
17
23
|
SInner {
|
|
18
24
|
width: 100%;
|
|
19
25
|
display: flex;
|
|
20
26
|
justify-content: flex-start;
|
|
27
|
+
flex-wrap: wrap;
|
|
21
28
|
align-items: flex-start;
|
|
22
29
|
box-sizing: border-box;
|
|
23
30
|
|
|
24
|
-
@media (max-width: 647px) {
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
31
|
SImageWrapper,
|
|
29
32
|
SImage {
|
|
30
33
|
width: 260px;
|
|
31
34
|
height: 260px;
|
|
32
35
|
|
|
33
|
-
@media (max-width:
|
|
36
|
+
@media (max-width: 320px) {
|
|
34
37
|
width: 200px;
|
|
35
38
|
height: 200px;
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
SImageWrapper {
|
|
40
|
-
flex-shrink: 0;
|
|
41
43
|
margin-right: var(--intergalactic-spacing-10x, 40px);
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
SWrapper {
|
|
47
|
+
flex: 1 0 300px;
|
|
45
48
|
max-width: 100%;
|
|
46
49
|
margin-top: var(--intergalactic-spacing-8x, 32px);
|
|
47
50
|
}
|
|
@@ -55,7 +58,6 @@ SError {
|
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
SDescription {
|
|
58
|
-
display: block;
|
|
59
61
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
60
62
|
line-height: var(--intergalactic-lh-300, 150%);
|
|
61
63
|
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,12 +1,120 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, FlexProps } from '@semcore/flex-box';
|
|
3
|
+
import { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';
|
|
4
|
+
import { TIllustrationNamesErrors } from '@semcore/illustration';
|
|
5
|
+
import { WithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
6
|
+
|
|
7
|
+
export type iconNamesErrors = TIllustrationNamesErrors;
|
|
8
|
+
|
|
9
|
+
/** @deprecated */
|
|
10
|
+
export interface IErrorsProps extends ErrorsProps, UnknownProperties {}
|
|
11
|
+
export type ErrorsProps = FlexProps & {
|
|
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 };
|
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.7",
|
|
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.7",
|
|
18
|
+
"@semcore/flex-box": "5.42.0-prerelease.7",
|
|
19
|
+
"@semcore/format-text": "4.43.0-prerelease.7",
|
|
20
|
+
"@semcore/illustration": "2.45.0-prerelease.7",
|
|
21
|
+
"@semcore/typography": "5.54.0-prerelease.7",
|
|
22
|
+
"@semcore/utils": "4.49.0-prerelease.7"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@semcore/core": "^2.40.0-prerelease.
|
|
25
|
+
"@semcore/core": "^2.40.0-prerelease.7",
|
|
26
26
|
"react": "16.8 - 18",
|
|
27
27
|
"react-dom": "16.8 - 18"
|
|
28
28
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccessDenied.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootAccessDenied","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_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","exports","createComponent"],"sources":["../../../src/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type { NSAccessDenied } from './AccessDenied.type';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSAccessDenied.Component>,\n typeof RootAccessDenied.enhance\n> {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)] as const;\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) as NSAccessDenied.Component;\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAGA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,4BAAA,GAAAP,OAAA;AAAmF,IAE7EQ,gBAAgB,0BAAAC,UAAA;EAAA,SAAAD,iBAAA;IAAA,IAAAE,gBAAA,mBAAAF,gBAAA;IAAA,WAAAG,WAAA,mBAAAH,gBAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,gBAAA,EAAAC,UAAA;EAAA,WAAAK,aAAA,aAAAN,gBAAA;IAAAO,GAAA;IAAAC,KAAA,EAcpB,SAAAC,MAAMA,CAAA,EAAG;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,oBACEpB,MAAA,YAAAqB,aAAA,CAAcC,iBAAK,MAAA3B,KAAA,CAAA4B,WAAA,MAAAT,IAAA,gBACjBd,MAAA,YAAAqB,aAAA,CAACpB,MAAA,WAAK,CAACuB,KAAK;QAACC,GAAG,EAAEL;MAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChElB,MAAA,YAAAqB,aAAA,CAACpB,MAAA,WAAK,CAACyB,WAAW;QAACC,IAAI,EAAC;MAAO,GAAET,WAAW,CAAC,MAAM,CAAqB,CAAC,eACzElB,MAAA,YAAAqB,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZjB,MAAA,YAAAqB,aAAA,CAACpB,MAAA,WAAK,CAAC2B,QAAQ,qBACb5B,MAAA,YAAAqB,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,EAAEd;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EA5B4BgB,eAAS;AAAA,IAAAC,gBAAA,aAAlC/B,gBAAgB,iBAIC,cAAc;AAAA,IAAA+B,gBAAA,aAJ/B/B,gBAAgB,aAKH,CAAC,IAAAgC,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,aAL7C/B,gBAAgB,kBAME;EACpBkC,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,GAAAC,OAAA,cAmBY,IAAAC,qBAAe,EAACxC,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccessDenied.type.js","names":[],"sources":["../../../src/AccessDenied/AccessDenied.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSAccessDenied {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type AccessDeniedProps = NSAccessDenied.Props;\n\nexport type { NSAccessDenied };\n"],"mappings":"","ignoreList":[]}
|
package/lib/cjs/Error.type.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Error.type.js","names":[],"sources":["../../src/Error.type.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\ndeclare namespace NSErrors {\n type Props = FlexProps & {\n /**\n * Error icon\n * Icon as a string is a URL to an image.\n */\n icon?: string | React.ReactNode;\n };\n type Ctx = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n };\n type IconName = TIllustrationNamesErrors;\n\n namespace Title {\n type Component = typeof Box;\n }\n\n namespace Description {\n type Component = typeof Box;\n }\n\n namespace Controls {\n type Component = typeof Box;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Title: Title.Component;\n Description: Description.Component;\n Controls: Controls.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ErrorsProps = NSErrors.Props;\n/** @deprecated It will be removed in v18. */\nexport type ErrorsContext = NSErrors.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type IconNamesErrors = NSErrors.IconName;\n\nexport type { NSErrors };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Maintenance.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootMaintenance","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_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","exports","createComponent"],"sources":["../../../src/Maintenance/Maintenance.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSMaintenance } from './Maintenance.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSMaintenance.Component>,\n typeof RootMaintenance.enhance\n> {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)] as const;\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) as NSMaintenance.Component;\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,I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EAAC,MAAM;QAACC,IAAI,EAAEf;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EA7B2BiB,eAAS;AAAA,IAAAC,gBAAA,aAAjChC,eAAe,iBAIE,aAAa;AAAA,IAAAgC,gBAAA,aAJ9BhC,eAAe,aAKF,CAAC,IAAAiC,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,aAL7ChC,eAAe,kBAMG;EACpBmC,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,GAAAC,OAAA,cAoBY,IAAAC,qBAAe,EAACzC,eAAe,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Maintenance.type.js","names":[],"sources":["../../../src/Maintenance/Maintenance.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSMaintenance {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type MaintenanceProps = NSMaintenance.Props;\n\nexport type { NSMaintenance };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageError.js","names":["_core","require","_button","_interopRequireDefault","_assignProps2","_canUseDOM","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageError","_Component","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","_callSuper2","concat","_defineProperty2","canUseDOM","location","reload","_inherits2","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","onClick","titleTag","createElement","Error","assignProps","Title","tag","Description","Controls","callAllEventHandlers","handleReload","size","use","theme","Component","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageError } from './PageError.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nclass RootPageError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageError.Component>,\n typeof RootPageError.enhance\n> {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)] as const;\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 } = this.asProps;\n\n return (\n <Root render={Error} __excludeProps={['Children', 'getI18nText', 'onClick', 'titleTag']}>\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 </Root>\n );\n }\n}\n\nexport default createComponent(RootPageError) as NSPageError.Component;\n"],"mapp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AC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageError.type.js","names":[],"sources":["../../../src/PageError/PageError.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageError {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageErrorProps = NSPageError.Props;\n\nexport type { NSPageError };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageNotFound","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_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","exports","createComponent"],"sources":["../../../src/PageNotFound/PageNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageNotFound } from './PageNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageNotFound.Component>,\n typeof RootPageNotFound.enhance\n> {\n static displayName = 'PageNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\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) as NSPageNotFound.Component;\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,4BAAA,GAAAP,OAAA;AAAmF,IAE7EQ,gBAAgB,0BAAAC,UAAA;EAAA,SAAAD,iBAAA;IAAA,IAAAE,gBAAA,mBAAAF,gBAAA;IAAA,WAAAG,WAAA,mBAAAH,gBAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,gBAAA,EAAAC,UAAA;EAAA,WAAAK,aAAA,aAAAN,gBAAA;IAAAO,GAAA;IAAAC,KAAA,EAcpB,SAAAC,MAAMA,CAAA,EAAG;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,GAA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-1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound.type.js","names":[],"sources":["../../../src/PageNotFound/PageNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageNotFound {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageNotFoundProps = NSPageNotFound.Props;\n\nexport type { NSPageNotFound };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_typography","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootProjectNotFound","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","createElement","ul","li","supportLink","href","Error","assignProps","Title","tag","Description","Text","formatTags","size","Controls","type","use","theme","Component","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/ProjectNotFound/ProjectNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSProjectNotFound } from './ProjectNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSProjectNotFound.Component>,\n typeof RootProjectNotFound.enhance\n> {\n static displayName = 'ProjectNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: '/company/contacts',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink, titleTag } = this.asProps;\n const text = getI18nText('text', {\n p: (chunk: string) => <p>{chunk}</p>,\n ul: (chunk: string) => <ul>{chunk}</ul>,\n li: (chunk: string) => <li>{chunk}</li>,\n supportLink: (chunk: string) => <a href={supportTeamLink}>{chunk}</a>,\n });\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description tag={Text} formatTags={true} size={300}>\n {text}\n </Error.Description>\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) as NSProjectNotFound.Component;\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AAEA,IAAAM,MAAA,GAAAC,uBAAA,CAAAP,OAAA;AAEA,IAAAQ,4BAAA,GAAAR,OAAA;AAAmF,IAE7ES,mBAAmB,0BAAAC,UAAA;EAAA,SAAAD,oBAAA;IAAA,IAAAE,gBAAA,mBAAAF,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,qBAAe,EAACjD,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectNotFound.type.js","names":[],"sources":["../../../src/ProjectNotFound/ProjectNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSProjectNotFound {\n type Props = WithI18nEnhanceProps & {\n /**\n * URL for the \"Go to Projects\" button\n * @default /projects\n */\n projectsLink?: string;\n /**\n * URL for the \"Contact us\" button\n * @default /company/contacts\n */\n contactsLink?: string;\n /**\n * URL for the \"Support Team\" link\n * @default /company/contacts\n */\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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ProjectNotFoundProps = NSProjectNotFound.Props;\n\nexport type { NSProjectNotFound };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccessDenied.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootAccessDenied","_Component","_classCallCheck","_callSuper","arguments","_inherits","_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/AccessDenied.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type { NSAccessDenied } from './AccessDenied.type';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSAccessDenied.Component>,\n typeof RootAccessDenied.enhance\n> {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)] as const;\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) as NSAccessDenied.Component;\n"],"mappings":";;;;;;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAGzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,gBAAgB,0BAAAC,UAAA;EAAA,SAAAD,iBAAA;IAAAE,eAAA,OAAAF,gBAAA;IAAA,OAAAG,UAAA,OAAAH,gBAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,gBAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,gBAAA;IAAAO,GAAA;IAAAC,KAAA,EAcpB,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GAAsD,IAAI,CAACD,OAAO;QAA1DE,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,WAAW,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":"AccessDenied.type.js","names":[],"sources":["../../../src/AccessDenied/AccessDenied.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSAccessDenied {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type AccessDeniedProps = NSAccessDenied.Props;\n\nexport type { NSAccessDenied };\n"],"mappings":"","ignoreList":[]}
|
package/lib/es6/Error.type.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Error.type.js","names":[],"sources":["../../src/Error.type.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\ndeclare namespace NSErrors {\n type Props = FlexProps & {\n /**\n * Error icon\n * Icon as a string is a URL to an image.\n */\n icon?: string | React.ReactNode;\n };\n type Ctx = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n };\n type IconName = TIllustrationNamesErrors;\n\n namespace Title {\n type Component = typeof Box;\n }\n\n namespace Description {\n type Component = typeof Box;\n }\n\n namespace Controls {\n type Component = typeof Box;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Title: Title.Component;\n Description: Description.Component;\n Controls: Controls.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ErrorsProps = NSErrors.Props;\n/** @deprecated It will be removed in v18. */\nexport type ErrorsContext = NSErrors.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type IconNamesErrors = NSErrors.IconName;\n\nexport type { NSErrors };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Maintenance.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootMaintenance","_Component","_classCallCheck","_callSuper","arguments","_inherits","_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/Maintenance.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSMaintenance } from './Maintenance.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSMaintenance.Component>,\n typeof RootMaintenance.enhance\n> {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)] as const;\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) as NSMaintenance.Component;\n"],"mappings":";;;;;;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAA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GAAG;QAACI,IAAI,EAAC,MAAM;QAACC,IAAI,EAAC,GAAG;QAACC,GAAG,EAAC,SAAS;QAACC,KAAK,EAAC,MAAM;QAACC,IAAI,EAAEd;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EA7B2BrB,SAAS;AAAAqC,eAAA,CAAjC9B,eAAe,iBAIE,aAAa;AAAA8B,eAAA,CAJ9B9B,eAAe,aAKF,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAA+B,eAAA,CAL7C9B,eAAe,kBAMG;EACpB+B,IAAI,EAAEhC,iBAAiB;EACvBiC,MAAM,EAAE,IAAI;EACZjB,QAAQ,EAAE,GAAG;EACbkB,IAAI,EAAEnC,WAAW,CAAC,aAAa,CAAC;EAChCmB,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAezB,eAAe,CAACQ,eAAe,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Maintenance.type.js","names":[],"sources":["../../../src/Maintenance/Maintenance.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSMaintenance {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type MaintenanceProps = NSMaintenance.Props;\n\nexport type { NSMaintenance };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageError.js","names":["Button","createComponent","Component","Root","callAllEventHandlers","canUseDOM","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageError","_Component","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","location","reload","_inherits","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","onClick","titleTag","createElement","_assignProps","Title","tag","Description","Controls","handleReload","size","use","theme","i18n","locale","icon"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageError } from './PageError.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nclass RootPageError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageError.Component>,\n typeof RootPageError.enhance\n> {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)] as const;\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 } = this.asProps;\n\n return (\n <Root render={Error} __excludeProps={['Children', 'getI18nText', 'onClick', 'titleTag']}>\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 </Root>\n );\n }\n}\n\nexport default createComponent(RootPageError) as NSPageError.Component;\n"],"mappings":";;;;;;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAA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B,CAAC,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU;MAAC,GAAAR,IAAA,gBACrFxB,KAAA,CAAA+B,aAAA,CAAC9B,KAAK,CAACgC,KAAK;QAACC,GAAG,EAAEJ;MAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChE5B,KAAA,CAAA+B,aAAA,CAAC9B,KAAK,CAACkC,WAAW,QAAEP,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5D5B,KAAA,CAAA+B,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZ3B,KAAA,CAAA+B,aAAA,CAAC9B,KAAK,CAACmC,QAAQ,qBACbpC,KAAA,CAAA+B,aAAA,CAACtC,MAAM;QACLoC,OAAO,EAAEhC,oBAAoB,CAACgC,OAAO,EAAE,IAAI,CAACQ,YAAY,CAAE;QAC1DC,IAAI,EAAC,GAAG;QACRC,GAAG,EAAC,SAAS;QACbC,KAAK,EAAC;MAAM,GAEXZ,WAAW,CAAC,UAAU,CACjB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EAvCyBjC,SAAS;AAAAqB,eAAA,CAA/BZ,aAAa,iBAII,WAAW;AAAAY,eAAA,CAJ5BZ,aAAa,aAKA,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAa,eAAA,CAL7CZ,aAAa,kBAMK;EACpBqC,IAAI,EAAEtC,iBAAiB;EACvBuC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAEzC,WAAW,CAAC,YAAY,CAAC;EAC/B4B,QAAQ,EAAE;AACZ,CAAC;AA+BH,eAAepC,eAAe,CAACU,aAAa,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageError.type.js","names":[],"sources":["../../../src/PageError/PageError.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageError {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageErrorProps = NSPageError.Props;\n\nexport type { NSPageError };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageNotFound","_Component","_classCallCheck","_callSuper","arguments","_inherits","_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/PageNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageNotFound } from './PageNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageNotFound.Component>,\n typeof RootPageNotFound.enhance\n> {\n static displayName = 'PageNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\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) as NSPageNotFound.Component;\n"],"mappings":";;;;;;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAE7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,gBAAgB,0BAAAC,UAAA;EAAA,SAAAD,iBAAA;IAAAE,eAAA,OAAAF,gBAAA;IAAA,OAAAG,UAAA,OAAAH,gBAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,gBAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,gBAAA;IAAAO,GAAA;IAAAC,KAAA,EAcpB,SAAAC,MAAMA,CAAA,EAAG;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;MAEjD,oBACEpB,KAAA,CAAAqB,aAAA,CAAcpB,KAAK,EAAAqB,YAAA,KAAAR,IAAA,gBACjBd,KAAA,CAAAqB,aAAA,CAACpB,KAAK,CAACsB,KAAK;QAACC,GAAG,EAAEJ;MAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChElB,KAAA,CAAAqB,aAAA,CAACpB,KAAK,CAACwB,WAAW,QAAEP,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DlB,KAAA,CAAAqB,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZjB,KAAA,CAAAqB,aAAA,CAACpB,KAAK,CAACyB,QAAQ,qBACb1B,KAAA,CAAAqB,aAAA,CAAC1B,MAAM;QAAC6B,GAAG,EAAC,GAAG;QAACG,IAAI,EAAC,MAAM;QAACC,IAAI,EAAC,GAAG;QAACC,GAAG,EAAC,SAAS;QAACC,KAAK,EAAC,MAAM;QAACC,IAAI,EAAEZ;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EA7B4BrB,SAAS;AAAAmC,eAAA,CAAlC5B,gBAAgB,iBAIC,cAAc;AAAA4B,eAAA,CAJ/B5B,gBAAgB,aAKH,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAA6B,eAAA,CAL7C5B,gBAAgB,kBAME;EACpB6B,IAAI,EAAE9B,iBAAiB;EACvB+B,MAAM,EAAE,IAAI;EACZC,IAAI,EAAEjC,WAAW,CAAC,gBAAgB,CAAC;EACnCiB,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAexB,eAAe,CAACQ,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound.type.js","names":[],"sources":["../../../src/PageNotFound/PageNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageNotFound {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageNotFoundProps = NSPageNotFound.Props;\n\nexport type { NSPageNotFound };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectNotFound.js","names":["Button","createComponent","Component","Root","i18nEnhance","Text","React","Error","getIconPath","localizedMessages","RootProjectNotFound","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","createElement","ul","li","supportLink","href","_assignProps","Title","tag","Description","formatTags","size","Controls","type","use","theme","_defineProperty","i18n","locale","icon"],"sources":["../../../src/ProjectNotFound/ProjectNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSProjectNotFound } from './ProjectNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSProjectNotFound.Component>,\n typeof RootProjectNotFound.enhance\n> {\n static displayName = 'ProjectNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: '/company/contacts',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink, titleTag } = this.asProps;\n const text = getI18nText('text', {\n p: (chunk: string) => <p>{chunk}</p>,\n ul: (chunk: string) => <ul>{chunk}</ul>,\n li: (chunk: string) => <li>{chunk}</li>,\n supportLink: (chunk: string) => <a href={supportTeamLink}>{chunk}</a>,\n });\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description tag={Text} formatTags={true} size={300}>\n {text}\n </Error.Description>\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) as NSProjectNotFound.Component;\n"],"mappings":";;;;;;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,SAASC,IAAI,QAAQ,qBAAqB;AAC1C,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAE7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,mBAAmB,0BAAAC,UAAA;EAAA,SAAAD,oBAAA;IAAAE,eAAA,OAAAF,mBAAA;IAAA,OAAAG,UAAA,OAAAH,mBAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,mBAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,mBAAA;IAAAO,GAAA;IAAAC,KAAA,EAgBvB,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GAAyF,IAAI,CAACD,OAAO;QAA7FE,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;MACpF,IAAMC,IAAI,GAAGL,WAAW,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AAC,GAAG;QAACH,GAAG,EAAC,GAAG;QAACK,IAAI,EAAC,MAAM;QAACR,IAAI,EAAEV;MAAa,GACrDF,WAAW,CAAC,aAAa,CACpB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EAzC+BtB,SAAS;AAAA6C,eAAA,CAArCrC,mBAAmB,iBAIF,iBAAiB;AAAAqC,eAAA,CAJlCrC,mBAAmB,aAKN,CAACN,WAAW,CAACK,iBAAiB,CAAC,CAAC;AAAAsC,eAAA,CAL7CrC,mBAAmB,kBAMD;EACpBsC,IAAI,EAAEvC,iBAAiB;EACvBwC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE1C,WAAW,CAAC,mBAAmB,CAAC;EACtCiB,YAAY,EAAE,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,mBAAmB;EACpCC,QAAQ,EAAE;AACZ,CAAC;AA8BH,eAAe3B,eAAe,CAACS,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectNotFound.type.js","names":[],"sources":["../../../src/ProjectNotFound/ProjectNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSProjectNotFound {\n type Props = WithI18nEnhanceProps & {\n /**\n * URL for the \"Go to Projects\" button\n * @default /projects\n */\n projectsLink?: string;\n /**\n * URL for the \"Contact us\" button\n * @default /company/contacts\n */\n contactsLink?: string;\n /**\n * URL for the \"Support Team\" link\n * @default /company/contacts\n */\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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ProjectNotFoundProps = NSProjectNotFound.Props;\n\nexport type { NSProjectNotFound };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/lib/esm/Error.type.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Intergalactic } from '@semcore/core';
|
|
2
|
-
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
-
import type { NSErrors } from '../Error.type';
|
|
4
|
-
declare namespace NSAccessDenied {
|
|
5
|
-
type Props = WithI18nEnhanceProps & {
|
|
6
|
-
/**
|
|
7
|
-
* href of the home link
|
|
8
|
-
* @default /
|
|
9
|
-
*/
|
|
10
|
-
homeLink?: string;
|
|
11
|
-
/**
|
|
12
|
-
* HTML tag of the error title
|
|
13
|
-
* @default h2
|
|
14
|
-
*/
|
|
15
|
-
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
16
|
-
};
|
|
17
|
-
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
18
|
-
}
|
|
19
|
-
/** @deprecated It will be removed in v18. */
|
|
20
|
-
export type AccessDeniedProps = NSAccessDenied.Props;
|
|
21
|
-
export type { NSAccessDenied };
|