@semcore/errors 16.2.0-prerelease.3 → 16.2.0

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 (101) hide show
  1. package/lib/cjs/AccessDenied/{index.js → AccessDenied.js} +1 -1
  2. package/lib/cjs/AccessDenied/AccessDenied.js.map +1 -0
  3. package/lib/cjs/AccessDenied/AccessDenied.type.js +2 -0
  4. package/lib/cjs/AccessDenied/AccessDenied.type.js.map +1 -0
  5. package/lib/cjs/Error.js +16 -15
  6. package/lib/cjs/Error.js.map +1 -1
  7. package/lib/cjs/Error.type.js +2 -0
  8. package/lib/cjs/Error.type.js.map +1 -0
  9. package/lib/cjs/Maintenance/{index.js → Maintenance.js} +1 -1
  10. package/lib/cjs/Maintenance/Maintenance.js.map +1 -0
  11. package/lib/cjs/Maintenance/Maintenance.type.js +2 -0
  12. package/lib/cjs/Maintenance/Maintenance.type.js.map +1 -0
  13. package/lib/cjs/PageError/{index.js → PageError.js} +10 -10
  14. package/lib/cjs/PageError/PageError.js.map +1 -0
  15. package/lib/cjs/PageError/PageError.type.js +2 -0
  16. package/lib/cjs/PageError/PageError.type.js.map +1 -0
  17. package/lib/cjs/PageNotFound/{index.js → PageNotFound.js} +2 -2
  18. package/lib/cjs/PageNotFound/PageNotFound.js.map +1 -0
  19. package/lib/cjs/PageNotFound/PageNotFound.type.js +2 -0
  20. package/lib/cjs/PageNotFound/PageNotFound.type.js.map +1 -0
  21. package/lib/cjs/ProjectNotFound/{index.js → ProjectNotFound.js} +6 -5
  22. package/lib/cjs/ProjectNotFound/ProjectNotFound.js.map +1 -0
  23. package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js +2 -0
  24. package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js.map +1 -0
  25. package/lib/cjs/index.js +76 -8
  26. package/lib/cjs/index.js.map +1 -1
  27. package/lib/cjs/style/errors.shadow.css +1 -0
  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 +12 -11
  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} +8 -7
  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} +2 -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} +6 -5
  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/es6/style/errors.shadow.css +1 -0
  55. package/lib/esm/AccessDenied/{index.mjs → AccessDenied.mjs} +3 -3
  56. package/lib/esm/AccessDenied/AccessDenied.type.mjs +1 -0
  57. package/lib/esm/Error.mjs +13 -13
  58. package/lib/esm/Error.type.mjs +1 -0
  59. package/lib/esm/Maintenance/{index.mjs → Maintenance.mjs} +3 -3
  60. package/lib/esm/Maintenance/Maintenance.type.mjs +1 -0
  61. package/lib/esm/PageError/{index.mjs → PageError.mjs} +8 -7
  62. package/lib/esm/PageError/PageError.type.mjs +1 -0
  63. package/lib/esm/PageNotFound/{index.mjs → PageNotFound.mjs} +4 -4
  64. package/lib/esm/PageNotFound/PageNotFound.type.mjs +1 -0
  65. package/lib/esm/ProjectNotFound/{index.mjs → ProjectNotFound.mjs} +8 -7
  66. package/lib/esm/ProjectNotFound/ProjectNotFound.type.mjs +1 -0
  67. package/lib/esm/index.mjs +11 -5
  68. package/lib/esm/style/errors.shadow.css +1 -0
  69. package/lib/types/AccessDenied/AccessDenied.d.ts +3 -0
  70. package/lib/types/AccessDenied/AccessDenied.type.d.ts +21 -0
  71. package/lib/types/AccessDenied/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  72. package/lib/types/Error.d.ts +4 -0
  73. package/lib/types/Error.type.d.ts +40 -0
  74. package/lib/types/Maintenance/Maintenance.d.ts +3 -0
  75. package/lib/types/Maintenance/Maintenance.type.d.ts +25 -0
  76. package/lib/types/Maintenance/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  77. package/lib/types/PageError/PageError.d.ts +3 -0
  78. package/lib/types/PageError/PageError.type.d.ts +21 -0
  79. package/lib/types/PageError/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  80. package/lib/types/PageNotFound/PageNotFound.d.ts +3 -0
  81. package/lib/types/PageNotFound/PageNotFound.type.d.ts +21 -0
  82. package/lib/types/PageNotFound/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  83. package/lib/types/ProjectNotFound/ProjectNotFound.d.ts +3 -0
  84. package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts +31 -0
  85. package/lib/types/ProjectNotFound/translations/__intergalactic-dynamic-locales.d.ts +92 -0
  86. package/lib/types/index.d.ts +12 -128
  87. package/package.json +9 -9
  88. package/lib/cjs/AccessDenied/index.js.map +0 -1
  89. package/lib/cjs/Maintenance/index.js.map +0 -1
  90. package/lib/cjs/PageError/index.js.map +0 -1
  91. package/lib/cjs/PageNotFound/index.js.map +0 -1
  92. package/lib/cjs/ProjectNotFound/index.js.map +0 -1
  93. package/lib/cjs/index.d.js +0 -15
  94. package/lib/cjs/index.d.js.map +0 -1
  95. package/lib/es6/AccessDenied/index.js.map +0 -1
  96. package/lib/es6/Maintenance/index.js.map +0 -1
  97. package/lib/es6/PageError/index.js.map +0 -1
  98. package/lib/es6/PageNotFound/index.js.map +0 -1
  99. package/lib/es6/ProjectNotFound/index.js.map +0 -1
  100. package/lib/es6/index.d.js +0 -16
  101. package/lib/es6/index.d.js.map +0 -1
@@ -1,128 +1,12 @@
1
- import type { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';
2
- import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
3
- import type { Box, FlexProps } from '@semcore/flex-box';
4
- import type { TIllustrationNamesErrors } from '@semcore/illustration';
5
- import type React from 'react';
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
- * URL for the "Go to Projects" button
31
- * @default /projects
32
- */
33
- projectsLink?: string;
34
- /**
35
- * URL for the "Contact us" button
36
- * @default /company/contacts
37
- */
38
- contactsLink?: string;
39
- /**
40
- * URL for the "Support Team" link
41
- * @default /company/contacts
42
- */
43
- supportTeamLink?: string;
44
- /**
45
- * HTML tag of the error title
46
- * @default h2
47
- */
48
- titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
49
- };
50
-
51
- /** @deprecated */
52
- export interface IPageNotFoundProps extends PageNotFoundProps, UnknownProperties {}
53
- export type PageNotFoundProps = WithI18nEnhanceProps & {
54
- /**
55
- * href of the home link
56
- * @default /
57
- */
58
- homeLink?: string;
59
- /**
60
- * HTML tag of the error title
61
- * @default h2
62
- */
63
- titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
64
- };
65
-
66
- /** @deprecated */
67
- export interface IPageErrorProps extends PageErrorProps, UnknownProperties {}
68
- export type PageErrorProps = WithI18nEnhanceProps & {
69
- /**
70
- * Page reloading button click handler
71
- * @default () => { if (canUseDOM()) { location.reload(); } }
72
- */
73
- onClick?: (e: React.MouseEvent) => void;
74
- /**
75
- * HTML tag of the error title
76
- * @default h2
77
- */
78
- titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
79
- };
80
-
81
- /** @deprecated */
82
- export interface IMaintenanceProps extends MaintenanceProps, UnknownProperties {}
83
- export type MaintenanceProps = WithI18nEnhanceProps & {
84
- /**
85
- * Tool name
86
- */
87
- toolName: string;
88
- /**
89
- * href of the home link
90
- * @default /
91
- */
92
- homeLink?: string;
93
- /**
94
- * HTML tag of the error title
95
- * @default h2
96
- */
97
- titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
98
- };
99
-
100
- /** @deprecated */
101
- export interface IAccessDeniedProps extends AccessDeniedProps, UnknownProperties {}
102
- export type AccessDeniedProps = WithI18nEnhanceProps & {
103
- /**
104
- * href of the home link
105
- * @default /
106
- */
107
- homeLink?: string;
108
- /**
109
- * HTML tag of the error title
110
- * @default h2
111
- */
112
- titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
113
- };
114
-
115
- declare const Error: Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {
116
- Title: typeof Box;
117
- Description: typeof Box;
118
- Controls: typeof Box;
119
- };
120
- declare const ProjectNotFound: Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;
121
- declare const PageNotFound: Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;
122
- declare const PageError: Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;
123
- declare const Maintenance: Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;
124
- declare const AccessDenied: Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;
125
- declare const getIconPath: (name: iconNamesErrors) => string;
126
-
127
- export default Error;
128
- 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": "16.2.0-prerelease.3",
4
+ "version": "16.2.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,14 +14,14 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/button": "16.1.0-prerelease.3",
18
- "@semcore/format-text": "16.2.0-prerelease.3",
19
- "@semcore/illustration": "16.1.0-prerelease.3",
20
- "@semcore/typography": "16.4.0-prerelease.3",
21
- "@semcore/flex-box": "16.1.0-prerelease.3"
17
+ "@semcore/button": "16.1.0",
18
+ "@semcore/format-text": "16.2.0",
19
+ "@semcore/illustration": "16.1.0",
20
+ "@semcore/typography": "16.4.0",
21
+ "@semcore/flex-box": "16.1.0"
22
22
  },
23
23
  "peerDependencies": {
24
- "@semcore/base-components": "^16.6.0-prerelease.3"
24
+ "@semcore/base-components": "^16.6.0"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
@@ -29,8 +29,8 @@
29
29
  "directory": "semcore/errors"
30
30
  },
31
31
  "devDependencies": {
32
- "@semcore/testing-utils": "1.0.0",
33
- "@semcore/core": "16.6.0-prerelease.3"
32
+ "@semcore/core": "16.6.0",
33
+ "@semcore/testing-utils": "1.0.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "pnpm semcore-builder --source=js && pnpm vite build"
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.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/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;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,EAWpB,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,EAzB4BgB,eAAS;AAAA,IAAAC,gBAAA,aAAlC/B,gBAAgB,iBACC,cAAc;AAAA,IAAA+B,gBAAA,aAD/B/B,gBAAgB,aAEH,CAAC,IAAAgC,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,aAF7C/B,gBAAgB,kBAGE;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":"index.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/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;AAAmF,IAE7EQ,eAAe,0BAAAC,UAAA;EAAA,SAAAD,gBAAA;IAAA,IAAAE,gBAAA,mBAAAF,eAAA;IAAA,WAAAG,WAAA,mBAAAH,eAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,eAAA,EAAAC,UAAA;EAAA,WAAAK,aAAA,aAAAN,eAAA;IAAAO,GAAA;IAAAC,K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,gBAAA,aAF7ChC,eAAe,kBAGG;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":"index.js","names":["_button","_interopRequireDefault","require","_core","_assignProps","_canUseDOM","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","_excluded","RootPageError","_Component","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","_callSuper2","concat","_defineProperty2","canUseDOM","location","reload","_inherits2","_createClass2","key","value","render","_this$asProps","asProps","Children","getI18nText","onClick","titleTag","other","_objectWithoutProperties2","createElement","Title","tag","Description","Controls","callAllEventHandlers","handleReload","size","use","theme","Component","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","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;AAAmF,IAAAS,SAAA;AAAA,IAE7EC,aAAa,0BAAAC,UAAA;EAAA,SAAAD,cAAA;IAAA,IAAAE,KAAA;IAAA,IAAAC,gBAAA,mBAAAH,aAAA;IAAA,SAAAI,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;MAAAF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;IAAA;IAAAP,KAAA,OAAAQ,WAAA,mBAAAV,aAAA,KAAAW,MAAA,CAAAJ,IAAA;IAAA,IAAAK,gBAAA,aAAAV,KAAA,kBAUF,YAAM;MACnB,IAAI,IAAAW,qBAAS,EAAC,CAAC,EAAE;QACfC,QAAQ,CAACC,MAAM,CAAC,CAAC;MACnB;IACF,CAAC;IAAA,OAAAb,KAAA;EAAA;EAAA,IAAAc,UAAA,aAAAhB,aAAA,EAAAC,UAAA;EAAA,WAAAgB,aAAA,aAAAjB,aAAA;IAAAkB,G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,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,YAAY,CAAC;EAC/BnB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAoB,QAAA,GAAAC,OAAA,cA+BY,IAAAC,qBAAe,EAAChD,aAAa,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.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/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,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QAACG,IAAI,EAAC,MAAM;QAACC,IAAI,EAAC,GAAG;QAACC,GAAG,EAAC,SAAS;QAACC,KAAK,EAAC,MAAM;QAACC,IAAI,EAAEb;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EA1B4Be,eAAS;AAAA,IAAAC,gBAAA,aAAlC9B,gBAAgB,iBACC,aAAa;AAAA,IAAA8B,gBAAA,aAD9B9B,gBAAgB,aAEH,CAAC,IAAA+B,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,aAF7C9B,gBAAgB,kBAGE;EACpBiC,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,cAoBY,IAAAC,qBAAe,EAACvC,gBAAgB,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_formatText","_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","FormatText","size","Controls","type","use","theme","Component","_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 FormatText from '@semcore/format-text';\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={FormatText} size='l'>\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,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AAEA,IAAAM,MAAA,GAAAC,uBAAA,CAAAP,OAAA;AACA,IAAAQ,4BAAA,GAAAR,OAAA;AAAmF,IAE7ES,mBAAmB,0BAAAC,UAAA;EAAA,SAAAD,oBAAA;IAAA,IAAAE,gBAAA,mBAAAF,mBAAA;IAAA,WAAAG,WAAA,mBAAAH,mBAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,U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4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- /** @deprecated */
8
- /** @deprecated */
9
- /** @deprecated */
10
- /** @deprecated */
11
- /** @deprecated */
12
- /** @deprecated */
13
- /** @deprecated */
14
- var _default = exports["default"] = Error;
15
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.js","names":["_default","exports","Error"],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { Box, FlexProps } from '@semcore/flex-box';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\nexport type iconNamesErrors = TIllustrationNamesErrors;\n\n/** @deprecated */\nexport interface IErrorsProps extends ErrorsProps, UnknownProperties {}\nexport type ErrorsProps = FlexProps & {\n /**\n * Error icon\n */\n icon?: string | React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IErrorsContext extends ErrorsContext, UnknownProperties {}\nexport type ErrorsContext = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IProjectNotFoundProps extends ProjectNotFoundProps, UnknownProperties {}\nexport type ProjectNotFoundProps = WithI18nEnhanceProps & {\n /**\n * 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/** @deprecated */\nexport interface IPageNotFoundProps extends PageNotFoundProps, UnknownProperties {}\nexport type PageNotFoundProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IPageErrorProps extends PageErrorProps, UnknownProperties {}\nexport type PageErrorProps = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IMaintenanceProps extends MaintenanceProps, UnknownProperties {}\nexport type MaintenanceProps = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IAccessDeniedProps extends AccessDeniedProps, UnknownProperties {}\nexport type AccessDeniedProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\ndeclare const Error: Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {\n Title: typeof Box;\n Description: typeof Box;\n Controls: typeof Box;\n};\ndeclare const ProjectNotFound: Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;\ndeclare const PageNotFound: Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;\ndeclare const PageError: Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;\ndeclare const Maintenance: Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;\ndeclare const AccessDenied: Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;\ndeclare const getIconPath: (name: iconNamesErrors) => string;\n\nexport default Error;\nexport { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };\n"],"mappings":";;;;;;AAQA;AASA;AAQA;AAyBA;AAeA;AAeA;AAmBA;AAAA,IAAAA,QAAA,GAAAC,OAAA,cA2BeC,KAAK","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.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/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,K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,CACZ,CAAC;IAEX;EAAC;AAAA,EAzB4BrB,SAAS;AAAAoC,eAAA,CAAlC7B,gBAAgB,iBACC,cAAc;AAAA6B,eAAA,CAD/B7B,gBAAgB,aAEH,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAA8B,eAAA,CAF7C7B,gBAAgB,kBAGE;EACpB8B,IAAI,EAAE/B,iBAAiB;EACvBgC,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAElC,WAAW,CAAC,eAAe,CAAC;EAClCkB,QAAQ,EAAE;AACZ,CAAC;AAmBH,eAAexB,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","_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/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;AAAC,IAE7EC,eAAe,0BAAAC,UAAA;EAAA,SAAAD,gBAAA;IAAAE,eAAA,OAAAF,eAAA;IAAA,OAAAG,UAAA,OAAAH,eAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,eAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,eAAA;IAAAO,GAAA;IAAAC,KAAA,EAWnB,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GAAgE,IAAI,CAACD,OAAO;QAApEE,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,WAAW,GAAAF,aAAA,CAAXE,WAAW;QAAEC,QAAQ,GAAAH,aAAA,CAARG,QAAQ;QAAEC,QAAQ,GAAAJ,aAAA,CAARI,QAAQ;QAAEC,QAAQ,GAAAL,aAAA,CAARK,QAAQ;MAE3D,oBACErB,KAAA,CAAAsB,aAAA,CAAcrB,KAAK,EAAAsB,YAAA,KAAAT,IAAA,gBACjBd,KAAA,CAAAsB,aAAA,CAACrB,KAAK,CAACuB,KAAK;QAACC,GAAG,EAAEJ;MAAS,MAAAK,MAAA,CAAKN,QAAQ,OAAAM,MAAA,CAAIR,WAAW,CAAC,OAAO,CAAC,CAAgB,CAAC,eACjFlB,KAAA,CAAAsB,aAAA,CAACrB,KAAK,CAAC0B,WAAW,QAAET,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DlB,KAAA,CAAAsB,aAAA,CAACL,QAAQ,MAAE,CAAC,eACZjB,KAAA,CAAAsB,aAAA,CAACrB,KAAK,CAAC2B,QAAQ,qBACb5B,KAAA,CAAAsB,aAAA,CAAC3B,MAAM;QAAC8B,GAAG,EAAC,GAAG;QAACI,IAAI,EAAC,MAAM;QAACC,IAAI,EAAC,GAAG;QAACC,GAAG,EAAC,SAAS;QAACC,KAAK,EAAC,MAAM;QAACC,IAAI,EAAEd;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EA1B2BrB,SAAS;AAAAqC,eAAA,CAAjC9B,eAAe,iBACE,aAAa;AAAA8B,eAAA,CAD9B9B,eAAe,aAEF,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAA+B,eAAA,CAF7C9B,eAAe,kBAGG;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":"index.js","names":["Button","createComponent","Component","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","_this$asProps","asProps","Children","getI18nText","onClick","titleTag","other","_objectWithoutProperties","_excluded","createElement","Title","tag","Description","Controls","handleReload","size","use","theme","i18n","locale","icon"],"sources":["../../../src/PageError/index.jsx"],"sourcesContent":["import 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;AAAC,IAE7EC,aAAa,0BAAAC,UAAA;EAAA,SAAAD,cAAA;IAAA,IAAAE,KAAA;IAAAC,eAAA,OAAAH,aAAA;IAAA,SAAAI,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;MAAAF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;IAA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CACM,CACX,CAAC;IAEZ;EAAC;AAAA,EApCyB/B,SAAS;AAAAoB,eAAA,CAA/BZ,aAAa,iBACI,WAAW;AAAAY,eAAA,CAD5BZ,aAAa,aAEA,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAa,eAAA,CAF7CZ,aAAa,kBAGK;EACpBsC,IAAI,EAAEvC,iBAAiB;EACvBwC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE1C,WAAW,CAAC,YAAY,CAAC;EAC/B2B,QAAQ,EAAE;AACZ,CAAC;AA+BH,eAAelC,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","_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/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>\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b1B,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,EA1B4BrB,SAAS;AAAAmC,eAAA,CAAlC5B,gBAAgB,iBACC,aAAa;AAAA4B,eAAA,CAD9B5B,gBAAgB,aAEH,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAA6B,eAAA,CAF7C5B,gBAAgB,kBAGE;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":"index.js","names":["Button","createComponent","Component","Root","i18nEnhance","FormatText","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","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 FormatText from '@semcore/format-text';\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={FormatText} size='l'>\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,OAAOC,UAAU,MAAM,sBAAsB;AAC7C,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,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,EAavB,SAAAC,MAAMA,CAAA,EAA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ZjB,KAAA,CAAA0B,aAAA,CAACzB,KAAK,CAACmC,QAAQ,qBACbpC,KAAA,CAAA0B,aAAA,CAAChC,MAAM;QAACuC,GAAG,EAAC,GAAG;QAACI,IAAI,EAAC,MAAM;QAACF,IAAI,EAAC,GAAG;QAACG,GAAG,EAAC,SAAS;QAACC,KAAK,EAAC,MAAM;QAACT,IAAI,EAAEX;MAAa,GAChFD,WAAW,CAAC,aAAa,CACpB,CAAC,eACTlB,KAAA,CAAA0B,aAAA,CAAChC,MAAM;QAACyC,IAAI,EAAC,GAAG;QAACF,GAAG,EAAC,GAAG;QAACI,IAAI,EAAC,MAAM;QAACP,IAAI,EAAEV;MAAa,GACrDF,WAAW,CAAC,aAAa,CACpB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EAtC+BtB,SAAS;AAAA4C,eAAA,CAArCpC,mBAAmB,iBACF,aAAa;AAAAoC,eAAA,CAD9BpC,mBAAmB,aAEN,CAACN,WAAW,CAACK,iBAAiB,CAAC,CAAC;AAAAqC,eAAA,CAF7CpC,mBAAmB,kBAGD;EACpBqC,IAAI,EAAEtC,iBAAiB;EACvBuC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAEzC,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,16 +0,0 @@
1
- /** @deprecated */
2
-
3
- /** @deprecated */
4
-
5
- /** @deprecated */
6
-
7
- /** @deprecated */
8
-
9
- /** @deprecated */
10
-
11
- /** @deprecated */
12
-
13
- /** @deprecated */
14
-
15
- export default Error;
16
- //# 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 { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { Box, FlexProps } from '@semcore/flex-box';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\nexport type iconNamesErrors = TIllustrationNamesErrors;\n\n/** @deprecated */\nexport interface IErrorsProps extends ErrorsProps, UnknownProperties {}\nexport type ErrorsProps = FlexProps & {\n /**\n * Error icon\n */\n icon?: string | React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IErrorsContext extends ErrorsContext, UnknownProperties {}\nexport type ErrorsContext = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IProjectNotFoundProps extends ProjectNotFoundProps, UnknownProperties {}\nexport type ProjectNotFoundProps = WithI18nEnhanceProps & {\n /**\n * 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/** @deprecated */\nexport interface IPageNotFoundProps extends PageNotFoundProps, UnknownProperties {}\nexport type PageNotFoundProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IPageErrorProps extends PageErrorProps, UnknownProperties {}\nexport type PageErrorProps = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IMaintenanceProps extends MaintenanceProps, UnknownProperties {}\nexport type MaintenanceProps = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\n/** @deprecated */\nexport interface IAccessDeniedProps extends AccessDeniedProps, UnknownProperties {}\nexport type AccessDeniedProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\ndeclare const Error: Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {\n Title: typeof Box;\n Description: typeof Box;\n Controls: typeof Box;\n};\ndeclare const ProjectNotFound: Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;\ndeclare const PageNotFound: Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;\ndeclare const PageError: Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;\ndeclare const Maintenance: Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;\ndeclare const AccessDenied: Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;\ndeclare const getIconPath: (name: iconNamesErrors) => string;\n\nexport default Error;\nexport { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };\n"],"mappings":"AAQA;;AASA;;AAQA;;AAyBA;;AAeA;;AAeA;;AAmBA;;AA2BA,eAAeA,KAAK","ignoreList":[]}