@semcore/errors 17.0.0-prerelease.30 → 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 +7 -7
  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
@@ -0,0 +1,92 @@
1
+ export declare const localizedMessages: {
2
+ de: {
3
+ title: string;
4
+ text: string;
5
+ btnProjects: string;
6
+ btnContacts: string;
7
+ };
8
+ en: {
9
+ title: string;
10
+ text: string;
11
+ btnProjects: string;
12
+ btnContacts: string;
13
+ };
14
+ es: {
15
+ title: string;
16
+ text: string;
17
+ btnProjects: string;
18
+ btnContacts: string;
19
+ };
20
+ fr: {
21
+ title: string;
22
+ text: string;
23
+ btnProjects: string;
24
+ btnContacts: string;
25
+ };
26
+ it: {
27
+ title: string;
28
+ text: string;
29
+ btnProjects: string;
30
+ btnContacts: string;
31
+ };
32
+ ja: {
33
+ title: string;
34
+ text: string;
35
+ btnProjects: string;
36
+ btnContacts: string;
37
+ };
38
+ ko: {
39
+ title: string;
40
+ text: string;
41
+ btnProjects: string;
42
+ btnContacts: string;
43
+ };
44
+ nl: {
45
+ title: string;
46
+ text: string;
47
+ btnProjects: string;
48
+ btnContacts: string;
49
+ };
50
+ pt: {
51
+ title: string;
52
+ text: string;
53
+ btnProjects: string;
54
+ btnContacts: string;
55
+ };
56
+ ru: {
57
+ title: string;
58
+ text: string;
59
+ btnProjects: string;
60
+ btnContacts: string;
61
+ };
62
+ tr: {
63
+ title: string;
64
+ text: string;
65
+ btnProjects: string;
66
+ btnContacts: string;
67
+ };
68
+ vi: {
69
+ title: string;
70
+ text: string;
71
+ btnProjects: string;
72
+ btnContacts: string;
73
+ };
74
+ zh: {
75
+ title: string;
76
+ text: string;
77
+ btnProjects: string;
78
+ btnContacts: string;
79
+ };
80
+ pl: {
81
+ title: string;
82
+ text: string;
83
+ btnProjects: string;
84
+ btnContacts: string;
85
+ };
86
+ sv: {
87
+ title: string;
88
+ text: string;
89
+ btnProjects: string;
90
+ btnContacts: string;
91
+ };
92
+ };
@@ -1,114 +1,12 @@
1
- import type { Box, FlexProps } from '@semcore/base-components';
2
- import type { Intergalactic, PropGetterFn } from '@semcore/core';
3
- import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
4
- import type { TIllustrationNamesErrors } from '@semcore/illustration';
5
- import type React from 'react';
6
-
7
- export type iconNamesErrors = TIllustrationNamesErrors;
8
-
9
- export type ErrorsProps = FlexProps & {
10
- /**
11
- * Error icon
12
- */
13
- icon?: string | React.ReactNode;
14
- };
15
-
16
- export type ErrorsContext = {
17
- getTextProps: PropGetterFn;
18
- getDescriptionProps: PropGetterFn;
19
- getControlsProps: PropGetterFn;
20
- };
21
-
22
- export type ProjectNotFoundProps = WithI18nEnhanceProps & {
23
- /**
24
- * URL for the "Go to Projects" button
25
- * @default /projects
26
- */
27
- projectsLink?: string;
28
- /**
29
- * URL for the "Contact us" button
30
- * @default /company/contacts
31
- */
32
- contactsLink?: string;
33
- /**
34
- * URL for the "Support Team" link
35
- * @default /company/contacts
36
- */
37
- supportTeamLink?: string;
38
- /**
39
- * HTML tag of the error title
40
- * @default h2
41
- */
42
- titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
43
- };
44
-
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
- export type PageErrorProps = WithI18nEnhanceProps & {
59
- /**
60
- * Page reloading button click handler
61
- * @default () => { if (canUseDOM()) { location.reload(); } }
62
- */
63
- onClick?: (e: React.MouseEvent) => void;
64
- /**
65
- * HTML tag of the error title
66
- * @default h2
67
- */
68
- titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
69
- };
70
-
71
- export type MaintenanceProps = WithI18nEnhanceProps & {
72
- /**
73
- * Tool name
74
- */
75
- toolName: string;
76
- /**
77
- * href of the home link
78
- * @default /
79
- */
80
- homeLink?: string;
81
- /**
82
- * HTML tag of the error title
83
- * @default h2
84
- */
85
- titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
86
- };
87
-
88
- export type AccessDeniedProps = WithI18nEnhanceProps & {
89
- /**
90
- * href of the home link
91
- * @default /
92
- */
93
- homeLink?: string;
94
- /**
95
- * HTML tag of the error title
96
- * @default h2
97
- */
98
- titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
99
- };
100
-
101
- declare const Error: Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {
102
- Title: typeof Box;
103
- Description: typeof Box;
104
- Controls: typeof Box;
105
- };
106
- declare const ProjectNotFound: Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;
107
- declare const PageNotFound: Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;
108
- declare const PageError: Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;
109
- declare const Maintenance: Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;
110
- declare const AccessDenied: Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;
111
- declare const getIconPath: (name: iconNamesErrors) => string;
112
-
113
- export default Error;
114
- export { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };
1
+ export { default, getIconPath } from './Error';
2
+ export * from './Error.type';
3
+ export { default as AccessDenied } from './AccessDenied/AccessDenied';
4
+ export * from './AccessDenied/AccessDenied.type';
5
+ export { default as Maintenance } from './Maintenance/Maintenance';
6
+ export * from './Maintenance/Maintenance.type';
7
+ export { default as PageError } from './PageError/PageError';
8
+ export * from './PageError/PageError.type';
9
+ export { default as PageNotFound } from './PageNotFound/PageNotFound';
10
+ export * from './PageNotFound/PageNotFound.type';
11
+ export { default as ProjectNotFound } from './ProjectNotFound/ProjectNotFound';
12
+ export * from './ProjectNotFound/ProjectNotFound.type';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/errors",
3
3
  "description": "Semrush Errors Component",
4
- "version": "17.0.0-prerelease.30",
4
+ "version": "17.0.0-prerelease.31",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,9 +14,9 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/button": "^17.0.0-prerelease.30",
17
+ "@semcore/button": "^17.0.0-prerelease.31",
18
18
  "@semcore/illustration": "17.0.0-prerelease.4",
19
- "@semcore/typography": "^17.0.0-prerelease.30"
19
+ "@semcore/typography": "^17.0.0-prerelease.31"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@semcore/base-components": "^17.0.0 || ^17.0.0-0"
@@ -27,11 +27,11 @@
27
27
  "directory": "semcore/errors"
28
28
  },
29
29
  "devDependencies": {
30
- "@semcore/core": "17.0.0-prerelease.30",
31
- "@semcore/base-components": "17.0.0-prerelease.30",
32
- "@semcore/testing-utils": "1.0.0"
30
+ "@semcore/base-components": "17.0.0-prerelease.31",
31
+ "@semcore/testing-utils": "1.0.0",
32
+ "@semcore/core": "17.0.0-prerelease.31"
33
33
  },
34
34
  "scripts": {
35
- "build": "pnpm semcore-builder --source=js && pnpm vite build"
35
+ "build": "pnpm semcore-builder && pnpm vite build"
36
36
  }
37
37
  }
package/vite.config.ts CHANGED
@@ -7,7 +7,7 @@ export default mergeConfig(
7
7
  defineConfig({
8
8
  build: {
9
9
  lib: {
10
- entry: './src/index.js',
10
+ entry: './src/index.ts',
11
11
  },
12
12
  rollupOptions: {
13
13
  external: ['react', 'react-dom', 'react/jsx-runtime', /@babel\/runtime\/*/, /@semcore\/*/],
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootAccessDenied","Component","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","default","createElement","Error","assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/AccessDenied/index.jsx"],"sourcesContent":["import Button from '@semcore/button';\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 { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('access_denied'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description wMax='640px'>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootAccessDenied);\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,gBAAgB,SAASC,eAAS,CAAC;EAWvCC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAClE,oBACER,MAAA,CAAAa,OAAA,CAAAC,aAAA,CA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AC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootMaintenance","Component","render","_ref","asProps","Children","getI18nText","homeLink","toolName","titleTag","default","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/Maintenance/index.jsx"],"sourcesContent":["import Button from '@semcore/button';\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 { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('maintenance'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{`${toolName} ${getI18nText('title')}`}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootMaintenance);\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,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AAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZpB,QAAQ,EAAE,GAAG;EACbqB,IAAI,EAAE,IAAAC,kBAAW,EAAC,aAAa,CAAC;EAChCpB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAoBY,IAAAsB,qBAAe,EAAChC,eAAe,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_button","_interopRequireDefault","require","_core","_assignProps","_canUseDOM","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageError","Component","constructor","args","_defineProperty2","default","canUseDOM","location","reload","render","Children","getI18nText","onClick","titleTag","other","asProps","createElement","Title","tag","Description","Controls","callAllEventHandlers","handleReload","size","use","theme","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageError/index.jsx"],"sourcesContent":["import Button from '@semcore/button';\nimport { createComponent, Component } 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 { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageError extends Component {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_error'),\n titleTag: 'h2',\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, titleTag, ...other } = this.asProps;\n\n return (\n <Error {...other}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Error>\n );\n }\n}\n\nexport default createComponent(RootPageError);\n"],"mappings":";;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAAM,MAAA,GAAAC,uBAAA,CAAAP,OAAA;AACA,IAAAQ,4BAAA,GAAAR,OAAA;AAEA,MAAMS,aAAa,SAASC,eAAS,CAAC;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,wBAUrB,MAAM;MACnB,IAAI,IAAAC,kBAAS,EAAC,CAAC,EAAE;QACfC,QAAQ,CAACC,MAAM,CAAC,CAAC;MACnB;IACF,CAAC;EAAA;EAEDC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,OAAO;MAAEC,QAAQ;MAAE,GAAGC;IAAM,CAAC,GAAG,IAAI,CAACC,OAAO;IAE3E,oBACEnB,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACnB,MAAA,CAAAQ,OAAK,EAAKS,KAAK,eACdlB,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACnB,MAAA,CAAAQ,OAAK,CAACY,KAAK;MAACC,GAAG,EAAEL;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChEf,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACnB,MAAA,CAAAQ,OAAK,CAACc,WAAW,QAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5Df,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACN,QAAQ,MAAE,CAAC,eACZd,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACnB,MAAA,CAAAQ,OAAK,CAACe,QAAQ,qBACbxB,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAAC3B,OAAA,CAAAgB,OAAM;MACLO,OAAO,EAAE,IAAAS,iCAAoB,EAACT,OAAO,EAAE,IAAI,CAACU,YAAY,CAAE;MAC1DC,IAAI,EAAC,GAAG;MACRC,GAAG,EAAC,SAAS;MACbC,KAAK,EAAC;IAAM,GAEXd,WAAW,CAAC,UAAU,CACjB,CACM,CACX,CAAC;EAEZ;AACF;AAAC,IAAAP,gBAAA,CAAAC,OAAA,EArCKL,aAAa,iBACI,WAAW;AAAA,IAAAI,gBAAA,CAAAC,OAAA,EAD5BL,aAAa,aAEA,CAAC,IAAA0B,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAvB,gBAAA,CAAAC,OAAA,EAF7CL,aAAa,kBAGK;EACpB4B,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,YAAY,CAAC;EAC/BlB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAmB,QAAA,GAAAC,OAAA,CAAA5B,OAAA,GA+BY,IAAA6B,qBAAe,EAAClC,aAAa,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageNotFound","Component","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","default","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageNotFound/index.jsx"],"sourcesContent":["import Button from '@semcore/button';\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 { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageNotFound);\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,gBAAgB,SAASC,eAAS,CAAC;EAWvCC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAElE,oBACER,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAAcC,cAAK,MAAApB,KAAA,CAAAqB,WAAA,MAAAT,IAAA,gBACjBP,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACI,KAAK;MAACC,GAAG,EAAEN;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChEV,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACM,WAAW,QAAET,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DV,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACL,QAAQ,MAAE,CAAC,eACZT,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACO,QAAQ,qBACbpB,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACjB,OAAA,CAAAgB,OAAM;MAACK,GAAG,EAAC,GAAG;MAACG,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEd;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAAC,IAAAgB,gBAAA,CAAAb,OAAA,EA3BKT,gBAAgB,iBACC,aAAa;AAAA,IAAAsB,gBAAA,CAAAb,OAAA,EAD9BT,gBAAgB,aAEH,CAAC,IAAAuB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAb,OAAA,EAF7CT,gBAAgB,kBAGE;EACpByB,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,gBAAgB,CAAC;EACnCrB,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAoBY,IAAAsB,qBAAe,EAAC/B,gBAAgB,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_typography","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootProjectNotFound","Component","render","_ref","asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","default","createElement","ul","li","supportLink","href","Error","assignProps","Title","tag","Description","Text","formatTags","size","Controls","type","use","theme","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/ProjectNotFound/index.jsx"],"sourcesContent":["import Button from '@semcore/button';\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 { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: '/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) => <p>{chunk}</p>,\n ul: (chunk) => <ul>{chunk}</ul>,\n li: (chunk) => <li>{chunk}</li>,\n supportLink: (chunk) => <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);\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAJ,O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perty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = exports.default = Error;
8
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.js","names":["Error"],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\nexport type iconNamesErrors = TIllustrationNamesErrors;\n\nexport type ErrorsProps = FlexProps & {\n /**\n * Error icon\n */\n icon?: string | React.ReactNode;\n};\n\nexport type ErrorsContext = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n};\n\nexport type ProjectNotFoundProps = 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\nexport type PageNotFoundProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type PageErrorProps = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type MaintenanceProps = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type AccessDeniedProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\ndeclare const Error: Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {\n Title: typeof Box;\n Description: typeof Box;\n Controls: typeof Box;\n};\ndeclare const ProjectNotFound: Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;\ndeclare const PageNotFound: Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;\ndeclare const PageError: Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;\ndeclare const Maintenance: Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;\ndeclare const AccessDenied: Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;\ndeclare const getIconPath: (name: iconNamesErrors) => string;\n\nexport default Error;\nexport { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };\n"],"mappings":";;;;;;iCAgHeA,KAAK","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootAccessDenied","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/AccessDenied/index.jsx"],"sourcesContent":["import Button from '@semcore/button';\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 { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('access_denied'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description wMax='640px'>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootAccessDenied);\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,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;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,gBAAgB,SAASP,SAAS,CAAC;EAWvCQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAClE,oBACEP,KAAA,CAAAY,aAAA,CAAcX,KAAK,EAAAY,YAAA,KAAAP,IAAA,gBACjBN,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACa,KAAK;MAACC,GAAG,EAAEJ;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChET,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACe,WAAW;MAACC,IAAI,EAAC;IAAO,GAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eACzET,KAAA,CAAAY,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZR,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACiB,QAAQ,qBACblB,KAAA,CAAAY,aAAA,CAACjB,MAAM;MAACoB,GAAG,EAAC,GAAG;MAACI,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEb;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAACe,eAAA,CA1BKpB,gBAAgB,iBACC,cAAc;AAAAoB,eAAA,CAD/BpB,gBAAgB,aAEH,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAqB,eAAA,CAF7CpB,gBAAgB,kBAGE;EACpBqB,IAAI,EAAEtB,iBAAiB;EACvBuB,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAEzB,WAAW,CAAC,eAAe,CAAC;EAClCS,QAAQ,EAAE;AACZ,CAAC;AAmBH,eAAef,eAAe,CAACQ,gBAAgB,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootMaintenance","render","_ref","asProps","Children","getI18nText","homeLink","toolName","titleTag","createElement","_assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/Maintenance/index.jsx"],"sourcesContent":["import Button from '@semcore/button';\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 { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('maintenance'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{`${toolName} ${getI18nText('title')}`}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootMaintenance);\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,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;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,eAAe,SAASP,SAAS,CAAC;EAWtCQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACL,OAAO;IAE5E,oBACEP,KAAA,CAAAa,aAAA,CAAcZ,KAAK,EAAAa,YAAA,KAAAR,IAAA,gBACjBN,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACc,KAAK;MAACC,GAAG,EAAEJ;IAAS,GAAE,GAAGD,QAAQ,IAAIF,WAAW,CAAC,OAAO,CAAC,EAAgB,CAAC,eACjFT,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACgB,WAAW,QAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DT,KAAA,CAAAa,aAAA,CAACL,QAAQ,MAAE,CAAC,eACZR,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACiB,QAAQ,qBACblB,KAAA,CAAAa,aAAA,CAAClB,MAAM;MAACqB,GAAG,EAAC,GAAG;MAACG,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEb;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAACe,eAAA,CA3BKpB,eAAe,iBACE,aAAa;AAAAoB,eAAA,CAD9BpB,eAAe,aAEF,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAqB,eAAA,CAF7CpB,eAAe,kBAGG;EACpBqB,IAAI,EAAEtB,iBAAiB;EACvBuB,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAEzB,WAAW,CAAC,aAAa,CAAC;EAChCU,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAehB,eAAe,CAACQ,eAAe,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["Button","createComponent","Component","callAllEventHandlers","canUseDOM","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageError","constructor","args","_defineProperty","location","reload","render","Children","getI18nText","onClick","titleTag","other","asProps","createElement","Title","tag","Description","Controls","handleReload","size","use","theme","i18n","locale","icon"],"sources":["../../../src/PageError/index.jsx"],"sourcesContent":["import Button from '@semcore/button';\nimport { createComponent, Component } 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 { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageError extends Component {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_error'),\n titleTag: 'h2',\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, titleTag, ...other } = this.asProps;\n\n return (\n <Error {...other}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Error>\n );\n }\n}\n\nexport default createComponent(RootPageError);\n"],"mappings":";AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAASC,eAAe,EAAEC,SAAS,QAAQ,eAAe;AAC1D,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,OAAOC,SAAS,MAAM,mCAAmC;AACzD,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,aAAa,SAASR,SAAS,CAAC;EAAAS,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,uBAUrB,MAAM;MACnB,IAAIT,SAAS,CAAC,CAAC,EAAE;QACfU,QAAQ,CAACC,MAAM,CAAC,CAAC;MACnB;IACF,CAAC;EAAA;EAEDC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,OAAO;MAAEC,QAAQ;MAAE,GAAGC;IAAM,CAAC,GAAG,IAAI,CAACC,OAAO;IAE3E,oBACEhB,KAAA,CAAAiB,aAAA,CAAChB,KAAK,EAAKc,KAAK,eACdf,KAAA,CAAAiB,aAAA,CAAChB,KAAK,CAACiB,KAAK;MAACC,GAAG,EAAEL;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChEZ,KAAA,CAAAiB,aAAA,CAAChB,KAAK,CAACmB,WAAW,QAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DZ,KAAA,CAAAiB,aAAA,CAACN,QAAQ,MAAE,CAAC,eACZX,KAAA,CAAAiB,aAAA,CAAChB,KAAK,CAACoB,QAAQ,qBACbrB,KAAA,CAAAiB,aAAA,CAACvB,MAAM;MACLmB,OAAO,EAAEhB,oBAAoB,CAACgB,OAAO,EAAE,IAAI,CAACS,YAAY,CAAE;MAC1DC,IAAI,EAAC,GAAG;MACRC,GAAG,EAAC,SAAS;MACbC,KAAK,EAAC;IAAM,GAEXb,WAAW,CAAC,UAAU,CACjB,CACM,CACX,CAAC;EAEZ;AACF;AAACL,eAAA,CArCKH,aAAa,iBACI,WAAW;AAAAG,eAAA,CAD5BH,aAAa,aAEA,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAI,eAAA,CAF7CH,aAAa,kBAGK;EACpBsB,IAAI,EAAEvB,iBAAiB;EACvBwB,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE1B,WAAW,CAAC,YAAY,CAAC;EAC/BY,QAAQ,EAAE;AACZ,CAAC;AA+BH,eAAenB,eAAe,CAACS,aAAa,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageNotFound","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/PageNotFound/index.jsx"],"sourcesContent":["import Button from '@semcore/button';\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 { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageNotFound);\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,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;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,gBAAgB,SAASP,SAAS,CAAC;EAWvCQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAElE,oBACEP,KAAA,CAAAY,aAAA,CAAcX,KAAK,EAAAY,YAAA,KAAAP,IAAA,gBACjBN,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACa,KAAK;MAACC,GAAG,EAAEJ;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChET,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACe,WAAW,QAAEP,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DT,KAAA,CAAAY,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZR,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACgB,QAAQ,qBACbjB,KAAA,CAAAY,aAAA,CAACjB,MAAM;MAACoB,GAAG,EAAC,GAAG;MAACG,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEZ;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAACc,eAAA,CA3BKnB,gBAAgB,iBACC,aAAa;AAAAmB,eAAA,CAD9BnB,gBAAgB,aAEH,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAoB,eAAA,CAF7CnB,gBAAgB,kBAGE;EACpBoB,IAAI,EAAErB,iBAAiB;EACvBsB,MAAM,EAAE,IAAI;EACZC,IAAI,EAAExB,WAAW,CAAC,gBAAgB,CAAC;EACnCQ,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAef,eAAe,CAACQ,gBAAgB,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["Button","createComponent","Component","Root","i18nEnhance","Text","React","Error","getIconPath","localizedMessages","RootProjectNotFound","render","_ref","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/index.jsx"],"sourcesContent":["import Button from '@semcore/button';\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 { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: '/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) => <p>{chunk}</p>,\n ul: (chunk) => <ul>{chunk}</ul>,\n li: (chunk) => <li>{chunk}</li>,\n supportLink: (chunk) => <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);\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,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;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,mBAAmB,SAASR,SAAS,CAAC;EAa1CS,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,YAAY;MAAEC,YAAY;MAAEC,eAAe;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACN,OAAO;IACrG,MAAMO,IAAI,GAAGL,WAAW,CAAC,MAAM,EAAE;MAC/BM,CAAC,EAAGC,KAAK,iBAAKhB,KAAA,CAAAiB,aAAA,YAAID,KAAS,CAAC;MAC5BE,EAAE,EAAGF,KAAK,iBAAKhB,KAAA,CAAAiB,aAAA,aAAKD,KAAU,CAAC;MAC/BG,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IAAI,EAAE9B,iBAAiB;EACvB+B,MAAM,EAAE,IAAI;EACZC,IAAI,EAAEjC,WAAW,CAAC,mBAAmB,CAAC;EACtCQ,YAAY,EAAE,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,mBAAmB;EACpCC,QAAQ,EAAE;AACZ,CAAC;AA8BH,eAAelB,eAAe,CAACS,mBAAmB,CAAC","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export default Error;
2
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.js","names":["Error"],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\nexport type iconNamesErrors = TIllustrationNamesErrors;\n\nexport type ErrorsProps = FlexProps & {\n /**\n * Error icon\n */\n icon?: string | React.ReactNode;\n};\n\nexport type ErrorsContext = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n};\n\nexport type ProjectNotFoundProps = 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\nexport type PageNotFoundProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type PageErrorProps = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type MaintenanceProps = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type AccessDeniedProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\ndeclare const Error: Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {\n Title: typeof Box;\n Description: typeof Box;\n Controls: typeof Box;\n};\ndeclare const ProjectNotFound: Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;\ndeclare const PageNotFound: Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;\ndeclare const PageError: Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;\ndeclare const Maintenance: Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;\ndeclare const AccessDenied: Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;\ndeclare const getIconPath: (name: iconNamesErrors) => string;\n\nexport default Error;\nexport { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };\n"],"mappings":"AAgHA,eAAeA,KAAK","ignoreList":[]}