@semcore/errors 16.2.0 → 16.2.1

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 (102) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/lib/cjs/AccessDenied/{AccessDenied.js → index.js} +1 -1
  3. package/lib/cjs/AccessDenied/index.js.map +1 -0
  4. package/lib/cjs/Error.js +15 -16
  5. package/lib/cjs/Error.js.map +1 -1
  6. package/lib/cjs/Maintenance/{Maintenance.js → index.js} +1 -1
  7. package/lib/cjs/Maintenance/index.js.map +1 -0
  8. package/lib/cjs/PageError/{PageError.js → index.js} +10 -10
  9. package/lib/cjs/PageError/index.js.map +1 -0
  10. package/lib/cjs/PageNotFound/{PageNotFound.js → index.js} +2 -2
  11. package/lib/cjs/PageNotFound/index.js.map +1 -0
  12. package/lib/cjs/ProjectNotFound/{ProjectNotFound.js → index.js} +5 -6
  13. package/lib/cjs/ProjectNotFound/index.js.map +1 -0
  14. package/lib/cjs/index.d.js +15 -0
  15. package/lib/cjs/index.d.js.map +1 -0
  16. package/lib/cjs/index.js +8 -76
  17. package/lib/cjs/index.js.map +1 -1
  18. package/lib/cjs/style/errors.shadow.css +0 -1
  19. package/lib/es6/AccessDenied/{AccessDenied.js → index.js} +1 -1
  20. package/lib/es6/AccessDenied/index.js.map +1 -0
  21. package/lib/es6/Error.js +11 -12
  22. package/lib/es6/Error.js.map +1 -1
  23. package/lib/es6/Maintenance/{Maintenance.js → index.js} +1 -1
  24. package/lib/es6/Maintenance/index.js.map +1 -0
  25. package/lib/es6/PageError/{PageError.js → index.js} +7 -8
  26. package/lib/es6/PageError/index.js.map +1 -0
  27. package/lib/es6/PageNotFound/{PageNotFound.js → index.js} +2 -2
  28. package/lib/es6/PageNotFound/index.js.map +1 -0
  29. package/lib/es6/ProjectNotFound/{ProjectNotFound.js → index.js} +5 -6
  30. package/lib/es6/ProjectNotFound/index.js.map +1 -0
  31. package/lib/es6/index.d.js +16 -0
  32. package/lib/es6/index.d.js.map +1 -0
  33. package/lib/es6/index.js +7 -12
  34. package/lib/es6/index.js.map +1 -1
  35. package/lib/es6/style/errors.shadow.css +0 -1
  36. package/lib/esm/AccessDenied/{AccessDenied.mjs → index.mjs} +3 -3
  37. package/lib/esm/Error.mjs +13 -13
  38. package/lib/esm/Maintenance/{Maintenance.mjs → index.mjs} +3 -3
  39. package/lib/esm/PageError/{PageError.mjs → index.mjs} +7 -8
  40. package/lib/esm/PageNotFound/{PageNotFound.mjs → index.mjs} +4 -4
  41. package/lib/esm/ProjectNotFound/{ProjectNotFound.mjs → index.mjs} +7 -8
  42. package/lib/esm/index.mjs +5 -11
  43. package/lib/esm/style/errors.shadow.css +0 -1
  44. package/lib/types/index.d.ts +128 -12
  45. package/package.json +8 -8
  46. package/lib/cjs/AccessDenied/AccessDenied.js.map +0 -1
  47. package/lib/cjs/AccessDenied/AccessDenied.type.js +0 -2
  48. package/lib/cjs/AccessDenied/AccessDenied.type.js.map +0 -1
  49. package/lib/cjs/Error.type.js +0 -2
  50. package/lib/cjs/Error.type.js.map +0 -1
  51. package/lib/cjs/Maintenance/Maintenance.js.map +0 -1
  52. package/lib/cjs/Maintenance/Maintenance.type.js +0 -2
  53. package/lib/cjs/Maintenance/Maintenance.type.js.map +0 -1
  54. package/lib/cjs/PageError/PageError.js.map +0 -1
  55. package/lib/cjs/PageError/PageError.type.js +0 -2
  56. package/lib/cjs/PageError/PageError.type.js.map +0 -1
  57. package/lib/cjs/PageNotFound/PageNotFound.js.map +0 -1
  58. package/lib/cjs/PageNotFound/PageNotFound.type.js +0 -2
  59. package/lib/cjs/PageNotFound/PageNotFound.type.js.map +0 -1
  60. package/lib/cjs/ProjectNotFound/ProjectNotFound.js.map +0 -1
  61. package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js +0 -2
  62. package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js.map +0 -1
  63. package/lib/es6/AccessDenied/AccessDenied.js.map +0 -1
  64. package/lib/es6/AccessDenied/AccessDenied.type.js +0 -2
  65. package/lib/es6/AccessDenied/AccessDenied.type.js.map +0 -1
  66. package/lib/es6/Error.type.js +0 -2
  67. package/lib/es6/Error.type.js.map +0 -1
  68. package/lib/es6/Maintenance/Maintenance.js.map +0 -1
  69. package/lib/es6/Maintenance/Maintenance.type.js +0 -2
  70. package/lib/es6/Maintenance/Maintenance.type.js.map +0 -1
  71. package/lib/es6/PageError/PageError.js.map +0 -1
  72. package/lib/es6/PageError/PageError.type.js +0 -2
  73. package/lib/es6/PageError/PageError.type.js.map +0 -1
  74. package/lib/es6/PageNotFound/PageNotFound.js.map +0 -1
  75. package/lib/es6/PageNotFound/PageNotFound.type.js +0 -2
  76. package/lib/es6/PageNotFound/PageNotFound.type.js.map +0 -1
  77. package/lib/es6/ProjectNotFound/ProjectNotFound.js.map +0 -1
  78. package/lib/es6/ProjectNotFound/ProjectNotFound.type.js +0 -2
  79. package/lib/es6/ProjectNotFound/ProjectNotFound.type.js.map +0 -1
  80. package/lib/esm/AccessDenied/AccessDenied.type.mjs +0 -1
  81. package/lib/esm/Error.type.mjs +0 -1
  82. package/lib/esm/Maintenance/Maintenance.type.mjs +0 -1
  83. package/lib/esm/PageError/PageError.type.mjs +0 -1
  84. package/lib/esm/PageNotFound/PageNotFound.type.mjs +0 -1
  85. package/lib/esm/ProjectNotFound/ProjectNotFound.type.mjs +0 -1
  86. package/lib/types/AccessDenied/AccessDenied.d.ts +0 -3
  87. package/lib/types/AccessDenied/AccessDenied.type.d.ts +0 -21
  88. package/lib/types/AccessDenied/translations/__intergalactic-dynamic-locales.d.ts +0 -77
  89. package/lib/types/Error.d.ts +0 -4
  90. package/lib/types/Error.type.d.ts +0 -40
  91. package/lib/types/Maintenance/Maintenance.d.ts +0 -3
  92. package/lib/types/Maintenance/Maintenance.type.d.ts +0 -25
  93. package/lib/types/Maintenance/translations/__intergalactic-dynamic-locales.d.ts +0 -77
  94. package/lib/types/PageError/PageError.d.ts +0 -3
  95. package/lib/types/PageError/PageError.type.d.ts +0 -21
  96. package/lib/types/PageError/translations/__intergalactic-dynamic-locales.d.ts +0 -77
  97. package/lib/types/PageNotFound/PageNotFound.d.ts +0 -3
  98. package/lib/types/PageNotFound/PageNotFound.type.d.ts +0 -21
  99. package/lib/types/PageNotFound/translations/__intergalactic-dynamic-locales.d.ts +0 -77
  100. package/lib/types/ProjectNotFound/ProjectNotFound.d.ts +0 -3
  101. package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts +0 -31
  102. package/lib/types/ProjectNotFound/translations/__intergalactic-dynamic-locales.d.ts +0 -92
@@ -1,77 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- import type { NSPageNotFound } from './PageNotFound.type';
2
- declare const _default: NSPageNotFound.Component;
3
- export default _default;
@@ -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 NSPageNotFound {
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 PageNotFoundProps = NSPageNotFound.Props;
21
- export type { NSPageNotFound };
@@ -1,77 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- import type { NSProjectNotFound } from './ProjectNotFound.type';
2
- declare const _default: NSProjectNotFound.Component;
3
- export default _default;
@@ -1,31 +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 NSProjectNotFound {
5
- type Props = WithI18nEnhanceProps & {
6
- /**
7
- * URL for the "Go to Projects" button
8
- * @default /projects
9
- */
10
- projectsLink?: string;
11
- /**
12
- * URL for the "Contact us" button
13
- * @default /company/contacts
14
- */
15
- contactsLink?: string;
16
- /**
17
- * URL for the "Support Team" link
18
- * @default /company/contacts
19
- */
20
- supportTeamLink?: string;
21
- /**
22
- * HTML tag of the error title
23
- * @default h2
24
- */
25
- titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
26
- };
27
- type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
28
- }
29
- /** @deprecated It will be removed in v18. */
30
- export type ProjectNotFoundProps = NSProjectNotFound.Props;
31
- export type { NSProjectNotFound };
@@ -1,92 +0,0 @@
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
- };