@semcore/errors 17.0.0-prerelease.29 → 17.0.0-prerelease.31

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.
Files changed (94) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/lib/cjs/AccessDenied/{index.js → AccessDenied.js} +1 -1
  3. package/lib/cjs/AccessDenied/AccessDenied.js.map +1 -0
  4. package/lib/cjs/AccessDenied/AccessDenied.type.js +2 -0
  5. package/lib/cjs/AccessDenied/AccessDenied.type.js.map +1 -0
  6. package/lib/cjs/Error.js +2 -1
  7. package/lib/cjs/Error.js.map +1 -1
  8. package/lib/cjs/Error.type.js +2 -0
  9. package/lib/cjs/Error.type.js.map +1 -0
  10. package/lib/cjs/Maintenance/{index.js → Maintenance.js} +1 -1
  11. package/lib/cjs/Maintenance/Maintenance.js.map +1 -0
  12. package/lib/cjs/Maintenance/Maintenance.type.js +2 -0
  13. package/lib/cjs/Maintenance/Maintenance.type.js.map +1 -0
  14. package/lib/cjs/PageError/{index.js → PageError.js} +1 -1
  15. package/lib/cjs/PageError/PageError.js.map +1 -0
  16. package/lib/cjs/PageError/PageError.type.js +2 -0
  17. package/lib/cjs/PageError/PageError.type.js.map +1 -0
  18. package/lib/cjs/PageNotFound/{index.js → PageNotFound.js} +3 -2
  19. package/lib/cjs/PageNotFound/PageNotFound.js.map +1 -0
  20. package/lib/cjs/PageNotFound/PageNotFound.type.js +2 -0
  21. package/lib/cjs/PageNotFound/PageNotFound.type.js.map +1 -0
  22. package/lib/cjs/ProjectNotFound/{index.js → ProjectNotFound.js} +3 -3
  23. package/lib/cjs/ProjectNotFound/ProjectNotFound.js.map +1 -0
  24. package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js +2 -0
  25. package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js.map +1 -0
  26. package/lib/cjs/index.js +76 -8
  27. package/lib/cjs/index.js.map +1 -1
  28. package/lib/es6/AccessDenied/{index.js → AccessDenied.js} +1 -1
  29. package/lib/es6/AccessDenied/AccessDenied.js.map +1 -0
  30. package/lib/es6/AccessDenied/AccessDenied.type.js +2 -0
  31. package/lib/es6/AccessDenied/AccessDenied.type.js.map +1 -0
  32. package/lib/es6/Error.js +2 -1
  33. package/lib/es6/Error.js.map +1 -1
  34. package/lib/es6/Error.type.js +2 -0
  35. package/lib/es6/Error.type.js.map +1 -0
  36. package/lib/es6/Maintenance/{index.js → Maintenance.js} +1 -1
  37. package/lib/es6/Maintenance/Maintenance.js.map +1 -0
  38. package/lib/es6/Maintenance/Maintenance.type.js +2 -0
  39. package/lib/es6/Maintenance/Maintenance.type.js.map +1 -0
  40. package/lib/es6/PageError/{index.js → PageError.js} +1 -1
  41. package/lib/es6/PageError/PageError.js.map +1 -0
  42. package/lib/es6/PageError/PageError.type.js +2 -0
  43. package/lib/es6/PageError/PageError.type.js.map +1 -0
  44. package/lib/es6/PageNotFound/{index.js → PageNotFound.js} +3 -2
  45. package/lib/es6/PageNotFound/PageNotFound.js.map +1 -0
  46. package/lib/es6/PageNotFound/PageNotFound.type.js +2 -0
  47. package/lib/es6/PageNotFound/PageNotFound.type.js.map +1 -0
  48. package/lib/es6/ProjectNotFound/{index.js → ProjectNotFound.js} +3 -3
  49. package/lib/es6/ProjectNotFound/ProjectNotFound.js.map +1 -0
  50. package/lib/es6/ProjectNotFound/ProjectNotFound.type.js +2 -0
  51. package/lib/es6/ProjectNotFound/ProjectNotFound.type.js.map +1 -0
  52. package/lib/es6/index.js +12 -7
  53. package/lib/es6/index.js.map +1 -1
  54. package/lib/esm/AccessDenied/{index.mjs → AccessDenied.mjs} +2 -2
  55. package/lib/esm/Error.mjs +1 -1
  56. package/lib/esm/Maintenance/{index.mjs → Maintenance.mjs} +2 -2
  57. package/lib/esm/PageError/{index.mjs → PageError.mjs} +2 -2
  58. package/lib/esm/PageNotFound/{index.mjs → PageNotFound.mjs} +3 -3
  59. package/lib/esm/ProjectNotFound/{index.mjs → ProjectNotFound.mjs} +4 -4
  60. package/lib/esm/index.mjs +5 -5
  61. package/lib/types/AccessDenied/AccessDenied.d.ts +3 -0
  62. package/lib/types/AccessDenied/AccessDenied.type.d.ts +16 -0
  63. package/lib/types/AccessDenied/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  64. package/lib/types/Error.d.ts +4 -0
  65. package/lib/types/Error.type.d.ts +22 -0
  66. package/lib/types/Maintenance/Maintenance.d.ts +3 -0
  67. package/lib/types/Maintenance/Maintenance.type.d.ts +20 -0
  68. package/lib/types/Maintenance/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  69. package/lib/types/PageError/PageError.d.ts +3 -0
  70. package/lib/types/PageError/PageError.type.d.ts +16 -0
  71. package/lib/types/PageError/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  72. package/lib/types/PageNotFound/PageNotFound.d.ts +3 -0
  73. package/lib/types/PageNotFound/PageNotFound.type.d.ts +16 -0
  74. package/lib/types/PageNotFound/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  75. package/lib/types/ProjectNotFound/ProjectNotFound.d.ts +3 -0
  76. package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts +26 -0
  77. package/lib/types/ProjectNotFound/translations/__intergalactic-dynamic-locales.d.ts +92 -0
  78. package/lib/types/index.d.ts +12 -114
  79. package/package.json +6 -6
  80. package/vite.config.ts +1 -1
  81. package/lib/cjs/AccessDenied/index.js.map +0 -1
  82. package/lib/cjs/Maintenance/index.js.map +0 -1
  83. package/lib/cjs/PageError/index.js.map +0 -1
  84. package/lib/cjs/PageNotFound/index.js.map +0 -1
  85. package/lib/cjs/ProjectNotFound/index.js.map +0 -1
  86. package/lib/cjs/index.d.js +0 -8
  87. package/lib/cjs/index.d.js.map +0 -1
  88. package/lib/es6/AccessDenied/index.js.map +0 -1
  89. package/lib/es6/Maintenance/index.js.map +0 -1
  90. package/lib/es6/PageError/index.js.map +0 -1
  91. package/lib/es6/PageNotFound/index.js.map +0 -1
  92. package/lib/es6/ProjectNotFound/index.js.map +0 -1
  93. package/lib/es6/index.d.js +0 -2
  94. package/lib/es6/index.d.js.map +0 -1
package/lib/es6/index.js CHANGED
@@ -1,8 +1,13 @@
1
- export { default } from './Error';
2
- export * from './Error';
3
- export { default as AccessDenied } from './AccessDenied';
4
- export { default as Maintenance } from './Maintenance';
5
- export { default as PageError } from './PageError';
6
- export { default as PageNotFound } from './PageNotFound';
7
- export { default as ProjectNotFound } from './ProjectNotFound';
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';
8
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","AccessDenied","Maintenance","PageError","PageNotFound","ProjectNotFound"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './Error';\nexport * from './Error';\nexport { default as AccessDenied } from './AccessDenied';\nexport { default as Maintenance } from './Maintenance';\nexport { default as PageError } from './PageError';\nexport { default as PageNotFound } from './PageNotFound';\nexport { default as ProjectNotFound } from './ProjectNotFound';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,SAAS;AACjC,cAAc,SAAS;AACvB,SAASA,OAAO,IAAIC,YAAY,QAAQ,gBAAgB;AACxD,SAASD,OAAO,IAAIE,WAAW,QAAQ,eAAe;AACtD,SAASF,OAAO,IAAIG,SAAS,QAAQ,aAAa;AAClD,SAASH,OAAO,IAAII,YAAY,QAAQ,gBAAgB;AACxD,SAASJ,OAAO,IAAIK,eAAe,QAAQ,mBAAmB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["default","getIconPath","AccessDenied","Maintenance","PageError","PageNotFound","ProjectNotFound"],"sources":["../../src/index.ts"],"sourcesContent":["export { default, getIconPath } from './Error';\nexport * from './Error.type';\n\nexport { default as AccessDenied } from './AccessDenied/AccessDenied';\nexport * from './AccessDenied/AccessDenied.type';\nexport { default as Maintenance } from './Maintenance/Maintenance';\nexport * from './Maintenance/Maintenance.type';\nexport { default as PageError } from './PageError/PageError';\nexport * from './PageError/PageError.type';\nexport { default as PageNotFound } from './PageNotFound/PageNotFound';\nexport * from './PageNotFound/PageNotFound.type';\nexport { default as ProjectNotFound } from './ProjectNotFound/ProjectNotFound';\nexport * from './ProjectNotFound/ProjectNotFound.type';\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,WAAW,QAAQ,SAAS;AAC9C,cAAc,cAAc;AAE5B,SAASD,OAAO,IAAIE,YAAY,QAAQ,6BAA6B;AACrE,cAAc,kCAAkC;AAChD,SAASF,OAAO,IAAIG,WAAW,QAAQ,2BAA2B;AAClE,cAAc,gCAAgC;AAC9C,SAASH,OAAO,IAAII,SAAS,QAAQ,uBAAuB;AAC5D,cAAc,4BAA4B;AAC1C,SAASJ,OAAO,IAAIK,YAAY,QAAQ,6BAA6B;AACrE,cAAc,kCAAkC;AAChD,SAASL,OAAO,IAAIM,eAAe,QAAQ,mCAAmC;AAC9E,cAAc,wCAAwC","ignoreList":[]}
@@ -37,7 +37,7 @@ _defineProperty(RootAccessDenied, "defaultProps", {
37
37
  icon: getIconPath("access_denied"),
38
38
  titleTag: "h2"
39
39
  });
40
- const index = createComponent(RootAccessDenied);
40
+ const AccessDenied = createComponent(RootAccessDenied);
41
41
  export {
42
- index as default
42
+ AccessDenied as default
43
43
  };
package/lib/esm/Error.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
- import { createComponent, sstyled, Component, assignProps } from "@semcore/core";
2
+ import { sstyled, createComponent, Component, assignProps } from "@semcore/core";
3
3
  import { Flex, Box } from "@semcore/base-components";
4
4
  import { getIllustrationPath } from "@semcore/illustration";
5
5
  import React from "react";
@@ -36,7 +36,7 @@ _defineProperty(RootMaintenance, "defaultProps", {
36
36
  icon: getIconPath("maintenance"),
37
37
  titleTag: "h2"
38
38
  });
39
- const index = createComponent(RootMaintenance);
39
+ const Maintenance = createComponent(RootMaintenance);
40
40
  export {
41
- index as default
41
+ Maintenance as default
42
42
  };
@@ -42,7 +42,7 @@ _defineProperty(RootPageError, "defaultProps", {
42
42
  icon: getIconPath("page_error"),
43
43
  titleTag: "h2"
44
44
  });
45
- const index = createComponent(RootPageError);
45
+ const PageError = createComponent(RootPageError);
46
46
  export {
47
- index as default
47
+ PageError as default
48
48
  };
@@ -26,7 +26,7 @@ class RootPageNotFound extends Component {
26
26
  }, getI18nText("btnHome"))));
27
27
  }
28
28
  }
29
- _defineProperty(RootPageNotFound, "displayName", "Maintenance");
29
+ _defineProperty(RootPageNotFound, "displayName", "PageNotFound");
30
30
  _defineProperty(RootPageNotFound, "enhance", [i18nEnhance(localizedMessages)]);
31
31
  _defineProperty(RootPageNotFound, "defaultProps", {
32
32
  i18n: localizedMessages,
@@ -35,7 +35,7 @@ _defineProperty(RootPageNotFound, "defaultProps", {
35
35
  homeLink: "/",
36
36
  titleTag: "h2"
37
37
  });
38
- const index = createComponent(RootPageNotFound);
38
+ const PageNotFound = createComponent(RootPageNotFound);
39
39
  export {
40
- index as default
40
+ PageNotFound as default
41
41
  };
@@ -30,7 +30,7 @@ class RootProjectNotFound extends Component {
30
30
  }, getI18nText("title")), /* @__PURE__ */ React.createElement(Error.Description, {
31
31
  tag: Text,
32
32
  formatTags: true,
33
- size: "300"
33
+ size: 300
34
34
  }, text), /* @__PURE__ */ React.createElement(Children, null), /* @__PURE__ */ React.createElement(Error.Controls, null, /* @__PURE__ */ React.createElement(Button, {
35
35
  tag: "a",
36
36
  type: "none",
@@ -46,7 +46,7 @@ class RootProjectNotFound extends Component {
46
46
  }, getI18nText("btnContacts"))));
47
47
  }
48
48
  }
49
- _defineProperty(RootProjectNotFound, "displayName", "Maintenance");
49
+ _defineProperty(RootProjectNotFound, "displayName", "ProjectNotFound");
50
50
  _defineProperty(RootProjectNotFound, "enhance", [i18nEnhance(localizedMessages)]);
51
51
  _defineProperty(RootProjectNotFound, "defaultProps", {
52
52
  i18n: localizedMessages,
@@ -57,7 +57,7 @@ _defineProperty(RootProjectNotFound, "defaultProps", {
57
57
  supportTeamLink: "/company/contacts",
58
58
  titleTag: "h2"
59
59
  });
60
- const index = createComponent(RootProjectNotFound);
60
+ const ProjectNotFound = createComponent(RootProjectNotFound);
61
61
  export {
62
- index as default
62
+ ProjectNotFound as default
63
63
  };
package/lib/esm/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { default as default2, getIconPath } from "./Error.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";
2
+ import { default as default3 } from "./AccessDenied/AccessDenied.mjs";
3
+ import { default as default4 } from "./Maintenance/Maintenance.mjs";
4
+ import { default as default5 } from "./PageError/PageError.mjs";
5
+ import { default as default6 } from "./PageNotFound/PageNotFound.mjs";
6
+ import { default as default7 } from "./ProjectNotFound/ProjectNotFound.mjs";
7
7
  export {
8
8
  default3 as AccessDenied,
9
9
  default4 as Maintenance,
@@ -0,0 +1,3 @@
1
+ import type { AccessDeniedComponent } from './AccessDenied.type';
2
+ declare const _default: AccessDeniedComponent;
3
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { Intergalactic } from '@semcore/core';
2
+ import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
3
+ import type { ErrorsProps } from '../Error.type';
4
+ export type AccessDeniedProps = WithI18nEnhanceProps & {
5
+ /**
6
+ * href of the home link
7
+ * @default /
8
+ */
9
+ homeLink?: string;
10
+ /**
11
+ * HTML tag of the error title
12
+ * @default h2
13
+ */
14
+ titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
15
+ };
16
+ export type AccessDeniedComponent = Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;
@@ -0,0 +1,77 @@
1
+ export declare const localizedMessages: {
2
+ de: {
3
+ title: string;
4
+ text: string;
5
+ btnHome: string;
6
+ };
7
+ en: {
8
+ title: string;
9
+ text: string;
10
+ btnHome: string;
11
+ };
12
+ es: {
13
+ title: string;
14
+ text: string;
15
+ btnHome: string;
16
+ };
17
+ fr: {
18
+ title: string;
19
+ text: string;
20
+ btnHome: string;
21
+ };
22
+ it: {
23
+ title: string;
24
+ text: string;
25
+ btnHome: string;
26
+ };
27
+ ja: {
28
+ title: string;
29
+ text: string;
30
+ btnHome: string;
31
+ };
32
+ ko: {
33
+ title: string;
34
+ text: string;
35
+ btnHome: string;
36
+ };
37
+ nl: {
38
+ title: string;
39
+ text: string;
40
+ btnHome: string;
41
+ };
42
+ pt: {
43
+ title: string;
44
+ text: string;
45
+ btnHome: string;
46
+ };
47
+ ru: {
48
+ title: string;
49
+ text: string;
50
+ btnHome: string;
51
+ };
52
+ tr: {
53
+ title: string;
54
+ text: string;
55
+ btnHome: string;
56
+ };
57
+ vi: {
58
+ title: string;
59
+ text: string;
60
+ btnHome: string;
61
+ };
62
+ zh: {
63
+ title: string;
64
+ text: string;
65
+ btnHome: string;
66
+ };
67
+ pl: {
68
+ title: string;
69
+ text: string;
70
+ btnHome: string;
71
+ };
72
+ sv: {
73
+ title: string;
74
+ text: string;
75
+ btnHome: string;
76
+ };
77
+ };
@@ -0,0 +1,4 @@
1
+ import type { ErrorComponent, IconNamesErrors } from './Error.type';
2
+ export declare const getIconPath: (name: IconNamesErrors) => string;
3
+ declare const Error: ErrorComponent;
4
+ export default Error;
@@ -0,0 +1,22 @@
1
+ import type { Box, FlexProps } from '@semcore/base-components';
2
+ import type { Intergalactic, PropGetterFn } from '@semcore/core';
3
+ import type { TIllustrationNamesErrors } from '@semcore/illustration';
4
+ import type React from 'react';
5
+ export type IconNamesErrors = TIllustrationNamesErrors;
6
+ export type ErrorsProps = FlexProps & {
7
+ /**
8
+ * Error icon
9
+ * Icon as a string is a URL to an image.
10
+ */
11
+ icon?: string | React.ReactNode;
12
+ };
13
+ export type ErrorsContext = {
14
+ getTextProps: PropGetterFn;
15
+ getDescriptionProps: PropGetterFn;
16
+ getControlsProps: PropGetterFn;
17
+ };
18
+ export type ErrorComponent = Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {
19
+ Title: typeof Box;
20
+ Description: typeof Box;
21
+ Controls: typeof Box;
22
+ };
@@ -0,0 +1,3 @@
1
+ import type { MaintenanceComponent } from './Maintenance.type';
2
+ declare const _default: MaintenanceComponent;
3
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import type { Intergalactic } from '@semcore/core';
2
+ import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
3
+ import type { ErrorsProps } from '../Error.type';
4
+ export type MaintenanceProps = WithI18nEnhanceProps & {
5
+ /**
6
+ * Tool name
7
+ */
8
+ toolName: string;
9
+ /**
10
+ * href of the home link
11
+ * @default /
12
+ */
13
+ homeLink?: string;
14
+ /**
15
+ * HTML tag of the error title
16
+ * @default h2
17
+ */
18
+ titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
19
+ };
20
+ export type MaintenanceComponent = Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;
@@ -0,0 +1,77 @@
1
+ export declare const localizedMessages: {
2
+ de: {
3
+ title: string;
4
+ text: string;
5
+ btnHome: string;
6
+ };
7
+ en: {
8
+ title: string;
9
+ text: string;
10
+ btnHome: string;
11
+ };
12
+ es: {
13
+ title: string;
14
+ text: string;
15
+ btnHome: string;
16
+ };
17
+ fr: {
18
+ title: string;
19
+ text: string;
20
+ btnHome: string;
21
+ };
22
+ it: {
23
+ title: string;
24
+ text: string;
25
+ btnHome: string;
26
+ };
27
+ ja: {
28
+ title: string;
29
+ text: string;
30
+ btnHome: string;
31
+ };
32
+ ko: {
33
+ title: string;
34
+ text: string;
35
+ btnHome: string;
36
+ };
37
+ nl: {
38
+ title: string;
39
+ text: string;
40
+ btnHome: string;
41
+ };
42
+ pt: {
43
+ title: string;
44
+ text: string;
45
+ btnHome: string;
46
+ };
47
+ ru: {
48
+ title: string;
49
+ text: string;
50
+ btnHome: string;
51
+ };
52
+ tr: {
53
+ title: string;
54
+ text: string;
55
+ btnHome: string;
56
+ };
57
+ vi: {
58
+ title: string;
59
+ text: string;
60
+ btnHome: string;
61
+ };
62
+ zh: {
63
+ title: string;
64
+ text: string;
65
+ btnHome: string;
66
+ };
67
+ pl: {
68
+ title: string;
69
+ text: string;
70
+ btnHome: string;
71
+ };
72
+ sv: {
73
+ title: string;
74
+ text: string;
75
+ btnHome: string;
76
+ };
77
+ };
@@ -0,0 +1,3 @@
1
+ import type { PageErrorComponent } from './PageError.type';
2
+ declare const _default: PageErrorComponent;
3
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { Intergalactic } from '@semcore/core';
2
+ import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
3
+ import type { ErrorsProps } from '../Error.type';
4
+ export type PageErrorProps = WithI18nEnhanceProps & {
5
+ /**
6
+ * Page reloading button click handler
7
+ * @default () => { if (canUseDOM()) { location.reload(); } }
8
+ */
9
+ onClick?: (e: React.MouseEvent) => void;
10
+ /**
11
+ * HTML tag of the error title
12
+ * @default h2
13
+ */
14
+ titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
15
+ };
16
+ export type PageErrorComponent = Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;
@@ -0,0 +1,77 @@
1
+ export declare const localizedMessages: {
2
+ de: {
3
+ title: string;
4
+ text: string;
5
+ btnRetry: string;
6
+ };
7
+ en: {
8
+ title: string;
9
+ text: string;
10
+ btnRetry: string;
11
+ };
12
+ es: {
13
+ title: string;
14
+ text: string;
15
+ btnRetry: string;
16
+ };
17
+ fr: {
18
+ title: string;
19
+ text: string;
20
+ btnRetry: string;
21
+ };
22
+ it: {
23
+ title: string;
24
+ text: string;
25
+ btnRetry: string;
26
+ };
27
+ ja: {
28
+ title: string;
29
+ text: string;
30
+ btnRetry: string;
31
+ };
32
+ ko: {
33
+ title: string;
34
+ text: string;
35
+ btnRetry: string;
36
+ };
37
+ nl: {
38
+ title: string;
39
+ text: string;
40
+ btnRetry: string;
41
+ };
42
+ pt: {
43
+ title: string;
44
+ text: string;
45
+ btnRetry: string;
46
+ };
47
+ ru: {
48
+ title: string;
49
+ text: string;
50
+ btnRetry: string;
51
+ };
52
+ tr: {
53
+ title: string;
54
+ text: string;
55
+ btnRetry: string;
56
+ };
57
+ vi: {
58
+ title: string;
59
+ text: string;
60
+ btnRetry: string;
61
+ };
62
+ zh: {
63
+ title: string;
64
+ text: string;
65
+ btnRetry: string;
66
+ };
67
+ pl: {
68
+ title: string;
69
+ text: string;
70
+ btnRetry: string;
71
+ };
72
+ sv: {
73
+ title: string;
74
+ text: string;
75
+ btnRetry: string;
76
+ };
77
+ };
@@ -0,0 +1,3 @@
1
+ import type { PageNotFoundComponent } from './PageNotFound.type';
2
+ declare const _default: PageNotFoundComponent;
3
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { Intergalactic } from '@semcore/core';
2
+ import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
3
+ import type { ErrorsProps } from '../Error.type';
4
+ export type PageNotFoundProps = WithI18nEnhanceProps & {
5
+ /**
6
+ * href of the home link
7
+ * @default /
8
+ */
9
+ homeLink?: string;
10
+ /**
11
+ * HTML tag of the error title
12
+ * @default h2
13
+ */
14
+ titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
15
+ };
16
+ export type PageNotFoundComponent = Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;
@@ -0,0 +1,77 @@
1
+ export declare const localizedMessages: {
2
+ de: {
3
+ title: string;
4
+ text: string;
5
+ btnHome: string;
6
+ };
7
+ en: {
8
+ title: string;
9
+ text: string;
10
+ btnHome: string;
11
+ };
12
+ es: {
13
+ title: string;
14
+ text: string;
15
+ btnHome: string;
16
+ };
17
+ fr: {
18
+ title: string;
19
+ text: string;
20
+ btnHome: string;
21
+ };
22
+ it: {
23
+ title: string;
24
+ text: string;
25
+ btnHome: string;
26
+ };
27
+ ja: {
28
+ title: string;
29
+ text: string;
30
+ btnHome: string;
31
+ };
32
+ ko: {
33
+ title: string;
34
+ text: string;
35
+ btnHome: string;
36
+ };
37
+ nl: {
38
+ title: string;
39
+ text: string;
40
+ btnHome: string;
41
+ };
42
+ pt: {
43
+ title: string;
44
+ text: string;
45
+ btnHome: string;
46
+ };
47
+ ru: {
48
+ title: string;
49
+ text: string;
50
+ btnHome: string;
51
+ };
52
+ tr: {
53
+ title: string;
54
+ text: string;
55
+ btnHome: string;
56
+ };
57
+ vi: {
58
+ title: string;
59
+ text: string;
60
+ btnHome: string;
61
+ };
62
+ zh: {
63
+ title: string;
64
+ text: string;
65
+ btnHome: string;
66
+ };
67
+ pl: {
68
+ title: string;
69
+ text: string;
70
+ btnHome: string;
71
+ };
72
+ sv: {
73
+ title: string;
74
+ text: string;
75
+ btnHome: string;
76
+ };
77
+ };
@@ -0,0 +1,3 @@
1
+ import type { ProjectNotFoundComponent } from './ProjectNotFound.type';
2
+ declare const _default: ProjectNotFoundComponent;
3
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import type { Intergalactic } from '@semcore/core';
2
+ import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
3
+ import type { ErrorsProps } from '../Error.type';
4
+ export type ProjectNotFoundProps = WithI18nEnhanceProps & {
5
+ /**
6
+ * URL for the "Go to Projects" button
7
+ * @default /projects
8
+ */
9
+ projectsLink?: string;
10
+ /**
11
+ * URL for the "Contact us" button
12
+ * @default /company/contacts
13
+ */
14
+ contactsLink?: string;
15
+ /**
16
+ * URL for the "Support Team" link
17
+ * @default /company/contacts
18
+ */
19
+ supportTeamLink?: string;
20
+ /**
21
+ * HTML tag of the error title
22
+ * @default h2
23
+ */
24
+ titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
25
+ };
26
+ export type ProjectNotFoundComponent = Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;