@semcore/errors 3.1.1 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +2 -2
- package/lib/cjs/AccessDenied/index.js.map +1 -1
- package/lib/cjs/Error.js +11 -11
- package/lib/cjs/Error.js.map +1 -1
- package/lib/cjs/Maintenance/index.js.map +1 -1
- package/lib/cjs/PageError/index.js.map +1 -1
- package/lib/cjs/PageNotFound/index.js.map +1 -1
- package/lib/cjs/ProjectNotFound/index.js.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/AccessDenied/index.js.map +1 -1
- package/lib/es6/Error.js +11 -11
- package/lib/es6/Error.js.map +1 -1
- package/lib/es6/Maintenance/index.js.map +1 -1
- package/lib/es6/PageError/index.js.map +1 -1
- package/lib/es6/PageNotFound/index.js.map +1 -1
- package/lib/es6/ProjectNotFound/index.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/package.json +2 -2
- package/src/AccessDenied/index.jsx +0 -48
- package/src/AccessDenied/translations/de.json +0 -5
- package/src/AccessDenied/translations/en.json +0 -5
- package/src/AccessDenied/translations/es.json +0 -5
- package/src/AccessDenied/translations/fr.json +0 -5
- package/src/AccessDenied/translations/it.json +0 -5
- package/src/AccessDenied/translations/ja.json +0 -5
- package/src/AccessDenied/translations/ko.json +0 -5
- package/src/AccessDenied/translations/pt.json +0 -5
- package/src/AccessDenied/translations/ru.json +0 -5
- package/src/AccessDenied/translations/vi.json +0 -5
- package/src/AccessDenied/translations/zh.json +0 -5
- package/src/Error.jsx +0 -59
- package/src/Maintenance/index.jsx +0 -48
- package/src/Maintenance/translations/de.json +0 -5
- package/src/Maintenance/translations/en.json +0 -5
- package/src/Maintenance/translations/es.json +0 -5
- package/src/Maintenance/translations/fr.json +0 -5
- package/src/Maintenance/translations/it.json +0 -5
- package/src/Maintenance/translations/ja.json +0 -5
- package/src/Maintenance/translations/ko.json +0 -5
- package/src/Maintenance/translations/pt.json +0 -5
- package/src/Maintenance/translations/ru.json +0 -5
- package/src/Maintenance/translations/vi.json +0 -5
- package/src/Maintenance/translations/zh.json +0 -5
- package/src/PageError/index.jsx +0 -60
- package/src/PageError/translations/de.json +0 -5
- package/src/PageError/translations/en.json +0 -5
- package/src/PageError/translations/es.json +0 -5
- package/src/PageError/translations/fr.json +0 -5
- package/src/PageError/translations/it.json +0 -5
- package/src/PageError/translations/ja.json +0 -5
- package/src/PageError/translations/ko.json +0 -5
- package/src/PageError/translations/pt.json +0 -5
- package/src/PageError/translations/ru.json +0 -5
- package/src/PageError/translations/vi.json +0 -5
- package/src/PageError/translations/zh.json +0 -5
- package/src/PageNotFound/index.jsx +0 -48
- package/src/PageNotFound/translations/de.json +0 -5
- package/src/PageNotFound/translations/en.json +0 -5
- package/src/PageNotFound/translations/es.json +0 -5
- package/src/PageNotFound/translations/fr.json +0 -5
- package/src/PageNotFound/translations/it.json +0 -5
- package/src/PageNotFound/translations/ja.json +0 -5
- package/src/PageNotFound/translations/ko.json +0 -5
- package/src/PageNotFound/translations/pt.json +0 -5
- package/src/PageNotFound/translations/ru.json +0 -5
- package/src/PageNotFound/translations/vi.json +0 -5
- package/src/PageNotFound/translations/zh.json +0 -5
- package/src/ProjectNotFound/index.jsx +0 -54
- package/src/ProjectNotFound/translations/de.json +0 -6
- package/src/ProjectNotFound/translations/en.json +0 -6
- package/src/ProjectNotFound/translations/es.json +0 -6
- package/src/ProjectNotFound/translations/fr.json +0 -6
- package/src/ProjectNotFound/translations/it.json +0 -6
- package/src/ProjectNotFound/translations/ja.json +0 -6
- package/src/ProjectNotFound/translations/ko.json +0 -6
- package/src/ProjectNotFound/translations/pt.json +0 -6
- package/src/ProjectNotFound/translations/ru.json +0 -6
- package/src/ProjectNotFound/translations/vi.json +0 -6
- package/src/ProjectNotFound/translations/zh.json +0 -6
- package/src/index.d.ts +0 -92
- package/src/index.js +0 -7
- package/src/style/errors.shadow.css +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [3.1.4] - 2022-08-11
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/utils` [3.35.1 ~> 3.36.0], `@semcore/button` [4.0.10 ~> 4.0.11], `@semcore/typography` [4.0.11 ~> 4.1.0]).
|
|
10
|
+
|
|
11
|
+
## [3.1.3] - 2022-07-22
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0], `@semcore/button` [4.0.8 ~> 4.0.9]).
|
|
16
|
+
|
|
17
|
+
## [3.1.2] - 2022-07-14
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Version patch update due to children dependencies update (`@semcore/button` [4.0.7 ~> 4.0.8]).
|
|
22
|
+
|
|
5
23
|
## [3.1.1] - 2022-07-07
|
|
6
24
|
|
|
7
25
|
### Changed
|
package/README.md
CHANGED
|
@@ -48,8 +48,6 @@ of the components that is discussed below. There should only be one version of t
|
|
|
48
48
|
|
|
49
49
|
You can use the package the same way but without `/ui/` in the import path.
|
|
50
50
|
|
|
51
|
-
</details>
|
|
52
|
-
|
|
53
51
|
```jsx
|
|
54
52
|
import Error, {
|
|
55
53
|
AccessDenied,
|
|
@@ -60,6 +58,8 @@ import Error, {
|
|
|
60
58
|
} from '@semcore/errors';
|
|
61
59
|
```
|
|
62
60
|
|
|
61
|
+
</details>
|
|
62
|
+
|
|
63
63
|
## 👤 Author
|
|
64
64
|
|
|
65
65
|
[UI-kit team](https://github.com/semrush/intergalactic/blob/master/MAINTAINERS) and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["i18n","de","en","es","fr","it","ja","ru","zh","pt","ko","vi","RootAccessDenied","asProps","Children","getI18nText","homeLink","title","text","btnHome","Error","Component","i18nEnhance","icon","getIconPath","createComponent"],"sources":["../../../src/AccessDenied/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\n\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootAccessDenied extends Component {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n homeLink: '/',\n icon: getIconPath('access_denied'),\n };\n\n render() {\n const { Children, getI18nText, homeLink } = this.asProps;\n const { title, text, btnHome } = getI18nText();\n return (\n <Root render={Error}>\n <Error.Title>{title}</Error.Title>\n <Error.Description wMax=\"640px\">{text}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag=\"a\" type=\"none\" size=\"l\" use=\"primary\" theme=\"info\" href={homeLink}>\n {btnHome}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootAccessDenied);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,IAAI,GAAG;EAAEC,EAAE,EAAFA,cAAF;EAAMC,EAAE,EAAFA,cAAN;EAAUC,EAAE,EAAFA,cA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gBAAhB,C"}
|
package/lib/cjs/Error.js
CHANGED
|
@@ -44,21 +44,21 @@ var style = (
|
|
|
44
44
|
/*__reshadow_css_start__*/
|
|
45
45
|
_core.sstyled.insert(
|
|
46
46
|
/*__inner_css_start__*/
|
|
47
|
-
".
|
|
47
|
+
".___SError_2kzd4_gg_{padding:96px 0;margin:0 auto;max-width:960px}.___SInner_2kzd4_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImage_2kzd4_gg_,.___SImageWrapper_2kzd4_gg_{width:260px;height:260px}@media (max-width:320px){.___SImage_2kzd4_gg_,.___SImageWrapper_2kzd4_gg_{width:200px;height:200px}}.___SImageWrapper_2kzd4_gg_{margin-right:40px}.___SWrapper_2kzd4_gg_{flex:1 0 300px;max-width:100%;margin-top:32px}.___STitle_2kzd4_gg_{font-size:36px;line-height:1.1;color:#191b23;font-weight:700;margin:0 0 16px 0}.___SDescription_2kzd4_gg_{font-size:16px;line-height:1.5;color:#191b23;margin:0 0 24px 0}.___SControls_2kzd4_gg_{display:flex;align-items:center}.___SControls_2kzd4_gg_>:not(:last-child){margin-right:12px}"
|
|
48
48
|
/*__inner_css_end__*/
|
|
49
|
-
, "
|
|
49
|
+
, "2kzd4_gg_")
|
|
50
50
|
/*__reshadow_css_end__*/
|
|
51
51
|
, {
|
|
52
|
-
"__SError": "
|
|
53
|
-
"__SInner": "
|
|
54
|
-
"__SImage": "
|
|
55
|
-
"__SImageWrapper": "
|
|
56
|
-
"__SWrapper": "
|
|
57
|
-
"__STitle": "
|
|
58
|
-
"__SDescription": "
|
|
59
|
-
"__SControls": "
|
|
52
|
+
"__SError": "___SError_2kzd4_gg_",
|
|
53
|
+
"__SInner": "___SInner_2kzd4_gg_",
|
|
54
|
+
"__SImage": "___SImage_2kzd4_gg_",
|
|
55
|
+
"__SImageWrapper": "___SImageWrapper_2kzd4_gg_",
|
|
56
|
+
"__SWrapper": "___SWrapper_2kzd4_gg_",
|
|
57
|
+
"__STitle": "___STitle_2kzd4_gg_",
|
|
58
|
+
"__SDescription": "___SDescription_2kzd4_gg_",
|
|
59
|
+
"__SControls": "___SControls_2kzd4_gg_"
|
|
60
60
|
});
|
|
61
|
-
var version = "3.1.
|
|
61
|
+
var version = "3.1.4";
|
|
62
62
|
|
|
63
63
|
var getIconPath = function getIconPath(name) {
|
|
64
64
|
return "//static.semrush.com/ui-kit/errors/".concat(version, "/").concat(name, ".svg");
|
package/lib/cjs/Error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Error.js","names":["version","getIconPath","name","RootError","SError","Flex","asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","sstyled","Component","style","Title","props","STitle","Box","Description","SDescription","Controls","SControls","createComponent"],"sources":["../../src/Error.jsx"],"sourcesContent":["import React from 'react';\nimport { Box, Flex } from '@semcore/flex-box';\nimport createComponent, { Root, Component, sstyled } from '@semcore/core';\nimport style from './style/errors.shadow.css';\n\nconst version = preval`\n module.exports = require('../package.json').version\n`;\n\nexport const getIconPath = (name) => `//static.semrush.com/ui-kit/errors/${version}/${name}.svg`;\n\nclass RootError extends Component {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n const SImage = 'img';\n return sstyled(styles)(\n <SError render={Flex}>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? <SImage src={icon} alt=\"error icon\" /> : icon}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} tag=\"h2\" />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag=\"p\" />);\n}\n\nfunction Controls(props) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nexport default createComponent(RootError, {\n Title,\n Description,\n Controls,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,OAAO,UAAb;;AAIO,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;EAAA,oDAAgDF,OAAhD,cAA2DE,IAA3D;AAAA,CAApB;;;;IAEDC,S;;;;;;;;;;;;WAIJ,kBAAS;MAAA;MAAA;;MACP,IAAMC,MAAM,GAOMC,aAPlB;MACA,oBAAmC,KAAKC,OAAxC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,MAAlB,iBAAkBA,MAAlB;MAAA,IAA0BC,IAA1B,iBAA0BA,IAA1B;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,IAAMC,aAAa,GAAG,KAAtB;MACA,IAAMC,QAAQ,GAAG,KAAjB;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,eAAO,IAAAC,aAAA,EAAQN,MAAR,CAAP,eACE,gCAAC,MAAD,wFACE,gCAAC,MAAD,0BACGC,IAAI,iBACH,gCAAC,aAAD,iCACG,OAAOA,IAAP,KAAgB,QAAhB,gBAA2B,gCAAC,MAAD;QAAA,OAAaA,IAAb;QAAA,OAAuB;MAAvB,GAA3B,GAAoEA,IADvE,CAFJ,eAME,gCAAC,QAAD,yCACE,gCAAC,QAAD,2BADF,CANF,CADF,CADF;IAcD;;;EAzBqBM,e;;iCAAlBZ,S,iBACiB,O;iCADjBA,S,WAEWa,K;;AA0BjB,SAASC,KAAT,CAAeC,KAAf,EAAsB;EAAA;EAAA;;EACpB,IAAMC,MAAM,GACiCC,YAD7C;EACA,eAAO,IAAAN,aAAA,EAAQI,KAAK,CAACV,MAAd,CAAP,eAA6B,gCAAC,MAAD;IAAA,OAAyB;EAAzB,YAA7B;AACD;;AAED,SAASa,WAAT,CAAqBH,KAArB,EAA4B;EAAA;EAAA;;EAC1B,IAAMI,YAAY,GACiCF,YADnD;EACA,eAAO,IAAAN,aAAA,EAAQI,KAAK,CAACV,MAAd,CAAP,eAA6B,gCAAC,YAAD;IAAA,OAA+B;EAA/B,YAA7B;AACD;;AAED,SAASe,QAAT,CAAkBL,KAAlB,EAAyB;EAAA;EAAA;;EACvB,IAAMM,SAAS,GACiCJ,YADhD;EACA,eAAO,IAAAN,aAAA,EAAQI,KAAK,CAACV,MAAd,CAAP,eAA6B,gCAAC,SAAD,8EAA7B;AACD;;eAEc,IAAAiB,gBAAA,EAAgBtB,SAAhB,EAA2B;EACxCc,KAAK,EAALA,KADwC;EAExCI,WAAW,EAAXA,WAFwC;EAGxCE,QAAQ,EAARA;AAHwC,CAA3B,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["i18n","de","en","es","fr","it","ja","ru","zh","pt","ko","vi","RootMaintenance","asProps","Children","getI18nText","homeLink","toolName","title","text","btnHome","Error","Component","i18nEnhance","icon","getIconPath","createComponent"],"sources":["../../../src/Maintenance/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\n\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootMaintenance extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n homeLink: '/',\n icon: getIconPath('maintenance'),\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName } = this.asProps;\n const { title, text, btnHome } = getI18nText();\n return (\n <Root render={Error}>\n <Error.Title>{`${toolName} ${title}`}</Error.Title>\n <Error.Description>{text}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag=\"a\" type=\"none\" size=\"l\" use=\"primary\" theme=\"info\" href={homeLink}>\n {btnHome}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootMaintenance);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,IAAI,GAAG;EAAEC,EAAE,EAAFA,cAAF;EAAMC,EAAE,EAAFA,cAAN;EAAUC,EAAE,EAAFA,cAAV;EAAcC,EAAE,EAAFA,cAAd;EAAkBC,EAAE,EAAFA,cAAlB;EAAsBC,EAAE,EAAFA,cAAtB;EAA0BC,EAAE,EAAFA,cAA1B;EAA8BC,EAAE,EAAFA,cAA9B;EAAkCC,EAAE,EAAFA,cAAlC;EAAsCC,EAAE,EAAFA,cAAtC;EAA0CC,EAAE,EAAFA;AAA1C,CAAb;;IAEMC,e;;;;;;;;;;;;WASJ,kBAAS;MAAA;MACP,oBAAsD,KAAKC,OAA3D;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,WAAlB,iBAAkBA,WAAlB;MAAA,IAA+BC,QAA/B,iBAA+BA,QAA/B;MAAA,IAAyCC,QAAzC,iBAAyCA,QAAzC;;MACA,mBAAiCF,WAAW,EAA5C;MAAA,IAAQG,KAAR,gBAAQA,KAAR;MAAA,IAAeC,IAAf,gBAAeA,IAAf;MAAA,IAAqBC,OAArB,gBAAqBA,OAArB;;MACA,oBACE,gCAAcC,iBAAd,iDACE,gCAAC,iBAAD,CAAO,KAAP,kBAAiBJ,QAAjB,cAA6BC,KAA7B,EADF,eAEE,gCAAC,iBAAD,CAAO,WAAP,QAAoBC,IAApB,CAFF,eAGE,gCAAC,QAAD,OAHF,eAIE,gCAAC,iBAAD,CAAO,QAAP,qBACE,gCAAC,kBAAD;QAAQ,GAAG,EAAC,GAAZ;QAAgB,IAAI,EAAC,MAArB;QAA4B,IAAI,EAAC,GAAjC;QAAqC,GAAG,EAAC,SAAzC;QAAmD,KAAK,EAAC,MAAzD;QAAgE,IAAI,EAAEH;MAAtE,GACGI,OADH,CADF,CAJF,CADF;IAYD;;;EAxB2BE,e;;iCAAxBV,e,iBACiB,a;iCADjBA,e,aAEa,CAAC,IAAAW,uBAAA,GAAD,C;iCAFbX,e,kBAGkB;EACpBZ,IAAI,EAAJA,IADoB;EAEpBgB,QAAQ,EAAE,GAFU;EAGpBQ,IAAI,EAAE,IAAAC,kBAAA,EAAY,aAAZ;AAHc,C;;eAwBT,IAAAC,gBAAA,EAAgBd,eAAhB,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["i18n","de","en","es","fr","it","ja","ru","zh","pt","ko","vi","RootPageError","canUseDOM","location","reload","asProps","Children","getI18nText","onClick","other","title","text","btnRetry","callAllEventHandlers","handleReload","Component","i18nEnhance","icon","getIconPath","createComponent"],"sources":["../../../src/PageError/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport Error, { getIconPath } from '../Error';\n\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootPageError extends Component {\n static displayName = 'PageError';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n icon: getIconPath('page_error'),\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, ...other } = this.asProps;\n const { title, text, btnRetry } = getI18nText();\n return (\n <Error {...other}>\n <Error.Title>{title}</Error.Title>\n <Error.Description>{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 {btnRetry}\n </Button>\n </Error.Controls>\n </Error>\n );\n }\n}\n\nexport default createComponent(RootPageError);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,IAAI,GAAG;EAAEC,EAAE,EAAFA,cAAF;EAAMC,EAAE,EAAFA,cAAN;EAAUC,EAAE,EAAFA,cAAV;EAAcC,EAAE,EAAFA,cAAd;EAAkBC,EAAE,EAAFA,cAAlB;EAAsBC,EAAE,EAAFA,cAAtB;EAA0BC,EAAE,EAAFA,cAA1B;EAA8BC,EAAE,EAAFA,cAA9B;EAAkCC,EAAE,EAAFA,cAAlC;EAAsCC,EAAE,EAAFA,cAAtC;EAA0CC,EAAE,EAAFA;AAA1C,CAAb;;IAEMC,a;;;;;;;;;;;;;;;qGAQW,YAAM;MACnB,IAAI,IAAAC,qBAAA,GAAJ,EAAiB;QACfC,QAAQ,CAACC,MAAT;MACD;IACF,C;;;;;;WAED,kBAAS;MACP,oBAAqD,KAAKC,OAA1D;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,WAAlB,iBAAkBA,WAAlB;MAAA,IAA+BC,OAA/B,iBAA+BA,OAA/B;MAAA,IAA2CC,KAA3C;;MACA,mBAAkCF,WAAW,EAA7C;MAAA,IAAQG,KAAR,gBAAQA,KAAR;MAAA,IAAeC,IAAf,gBAAeA,IAAf;MAAA,IAAqBC,QAArB,gBAAqBA,QAArB;;MACA,oBACE,gCAAC,iBAAD,EAAWH,KAAX,eACE,gCAAC,iBAAD,CAAO,KAAP,QAAcC,KAAd,CADF,eAEE,gCAAC,iBAAD,CAAO,WAAP,QAAoBC,IAApB,CAFF,eAGE,gCAAC,QAAD,OAHF,eAIE,gCAAC,iBAAD,CAAO,QAAP,qBACE,gCAAC,kBAAD;QACE,OAAO,EAAE,IAAAE,iCAAA,EAAqBL,OAArB,EAA8B,KAAKM,YAAnC,CADX;QAEE,IAAI,EAAC,GAFP;QAGE,GAAG,EAAC,SAHN;QAIE,KAAK,EAAC;MAJR,GAMGF,QANH,CADF,CAJF,CADF;IAiBD;;;EAlCyBG,e;;iCAAtBd,a,iBACiB,W;iCADjBA,a,aAEa,CAAC,IAAAe,uBAAA,GAAD,C;iCAFbf,a,kBAGkB;EACpBZ,IAAI,EAAJA,IADoB;EAEpB4B,IAAI,EAAE,IAAAC,kBAAA,EAAY,YAAZ;AAFc,C;;eAkCT,IAAAC,gBAAA,EAAgBlB,aAAhB,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["i18n","de","en","es","fr","it","ja","ru","zh","pt","ko","vi","RootPageNotFound","asProps","Children","getI18nText","homeLink","title","text","btnHome","Error","Component","i18nEnhance","icon","getIconPath","createComponent"],"sources":["../../../src/PageNotFound/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\n\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootPageNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n };\n\n render() {\n const { Children, getI18nText, homeLink } = this.asProps;\n const { title, text, btnHome } = getI18nText();\n return (\n <Root render={Error}>\n <Error.Title>{title}</Error.Title>\n <Error.Description>{text}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag=\"a\" type=\"none\" size=\"l\" use=\"primary\" theme=\"info\" href={homeLink}>\n {btnHome}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageNotFound);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,IAAI,GAAG;EAAEC,EAAE,EAAFA,cAAF;EAAMC,EAAE,EAAFA,cAAN;EAAUC,EAAE,EAAFA,cAAV;EAAcC,EAAE,EAAFA,cAAd;EAAkBC,EAAE,EAAFA,cAAlB;EAAsBC,EAAE,EAAFA,cAAtB;EAA0BC,EAAE,EAAFA,cAA1B;EAA8BC,EAAE,EAAFA,cAA9B;EAAkCC,EAAE,EAAFA,cAAlC;EAAsCC,EAAE,EAAFA,cAAtC;EAA0CC,EAAE,EAAFA;AAA1C,CAAb;;IAEMC,gB;;;;;;;;;;;;WASJ,kBAAS;MAAA;MACP,oBAA4C,KAAKC,OAAjD;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,WAAlB,iBAAkBA,WAAlB;MAAA,IAA+BC,QAA/B,iBAA+BA,QAA/B;;MACA,mBAAiCD,WAAW,EAA5C;MAAA,IAAQE,KAAR,gBAAQA,KAAR;MAAA,IAAeC,IAAf,gBAAeA,IAAf;MAAA,IAAqBC,OAArB,gBAAqBA,OAArB;;MACA,oBACE,gCAAcC,iBAAd,iDACE,gCAAC,iBAAD,CAAO,KAAP,QAAcH,KAAd,CADF,eAEE,gCAAC,iBAAD,CAAO,WAAP,QAAoBC,IAApB,CAFF,eAGE,gCAAC,QAAD,OAHF,eAIE,gCAAC,iBAAD,CAAO,QAAP,qBACE,gCAAC,kBAAD;QAAQ,GAAG,EAAC,GAAZ;QAAgB,IAAI,EAAC,MAArB;QAA4B,IAAI,EAAC,GAAjC;QAAqC,GAAG,EAAC,SAAzC;QAAmD,KAAK,EAAC,MAAzD;QAAgE,IAAI,EAAEF;MAAtE,GACGG,OADH,CADF,CAJF,CADF;IAYD;;;EAxB4BE,e;;iCAAzBT,gB,iBACiB,a;iCADjBA,gB,aAEa,CAAC,IAAAU,uBAAA,GAAD,C;iCAFbV,gB,kBAGkB;EACpBZ,IAAI,EAAJA,IADoB;EAEpBuB,IAAI,EAAE,IAAAC,kBAAA,EAAY,gBAAZ,CAFc;EAGpBR,QAAQ,EAAE;AAHU,C;;eAwBT,IAAAS,gBAAA,EAAgBb,gBAAhB,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["i18n","de","en","es","fr","it","ja","ru","zh","pt","ko","vi","RootProjectNotFound","asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","title","btnProjects","btnContacts","text","url","Error","FormatText","__html","Component","i18nEnhance","icon","getIconPath","createComponent"],"sources":["../../../src/ProjectNotFound/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport FormatText from '@semcore/format-text';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootProjectNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: 'mailto:mail@semrush.com',\n };\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink } = this.asProps;\n const { title, btnProjects, btnContacts } = getI18nText();\n const text = getI18nText('text', { url: supportTeamLink });\n return (\n <Root render={Error}>\n <Error.Title>{title}</Error.Title>\n <Error.Description tag={FormatText} size=\"l\" dangerouslySetInnerHTML={{ __html: text }} />\n <Children />\n <Error.Controls>\n <Button tag=\"a\" type=\"none\" size=\"l\" use=\"primary\" theme=\"info\" href={projectsLink}>\n {btnProjects}\n </Button>\n <Button size=\"l\" tag=\"a\" type=\"none\" href={contactsLink}>\n {btnContacts}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootProjectNotFound);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGA;;AAHA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,IAAI,GAAG;EAAEC,EAAE,EAAFA,cAAF;EAAMC,EAAE,EAAFA,cAAN;EAAUC,EAAE,EAAFA,cAAV;EAAcC,EAAE,EAAFA,cAAd;EAAkBC,EAAE,EAAFA,cAAlB;EAAsBC,EAAE,EAAFA,cAAtB;EAA0BC,EAAE,EAAFA,c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JF,CAJF,CADF;IAeD;;;EA9B+BM,e;;iCAA5Bf,mB,iBACiB,a;iCADjBA,mB,aAEa,CAAC,IAAAgB,uBAAA,GAAD,C;iCAFbhB,mB,kBAGkB;EACpBZ,IAAI,EAAJA,IADoB;EAEpB6B,IAAI,EAAE,IAAAC,kBAAA,EAAY,mBAAZ,CAFc;EAGpBd,YAAY,EAAE,WAHM;EAIpBC,YAAY,EAAE,mBAJM;EAKpBC,eAAe,EAAE;AALG,C;;eA8BT,IAAAa,gBAAA,EAAgBnB,mBAAhB,C"}
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './Error';\nexport * from './Error';\nexport { default as AccessDenied } from './AccessDenied';\nexport { default as Maintenance } from './Maintenance';\nexport { default as PageError } from './PageError';\nexport { default as PageNotFound } from './PageNotFound';\nexport { default as ProjectNotFound } from './ProjectNotFound';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","Button","createComponent","Component","Root","i18nEnhance","Error","getIconPath","de","en","es","fr","it","ja","pt","ru","zh","ko","vi","i18n","RootAccessDenied","asProps","Children","getI18nText","homeLink","title","text","btnHome","icon"],"sources":["../../../src/AccessDenied/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\n\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootAccessDenied extends Component {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n homeLink: '/',\n icon: getIconPath('access_denied'),\n };\n\n render() {\n const { Children, getI18nText, homeLink } = this.asProps;\n const { title, text, btnHome } = getI18nText();\n return (\n <Root render={Error}>\n <Error.Title>{title}</Error.Title>\n <Error.Description wMax=\"640px\">{text}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag=\"a\" type=\"none\" size=\"l\" use=\"primary\" theme=\"info\" href={homeLink}>\n {btnHome}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootAccessDenied);\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,IAArC,QAAiD,eAAjD;AACA,OAAOC,WAAP,MAAwB,yCAAxB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,UAAnC;AAEA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AAEA,IAAMC,IAAI,GAAG;EAAEX,EAAE,EAAFA,E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AHG,C;;AAwBxB,eAAeL,eAAe,CAACkB,gBAAD,CAA9B"}
|
package/lib/es6/Error.js
CHANGED
|
@@ -27,21 +27,21 @@ var style = (
|
|
|
27
27
|
/*__reshadow_css_start__*/
|
|
28
28
|
_sstyled.insert(
|
|
29
29
|
/*__inner_css_start__*/
|
|
30
|
-
".
|
|
30
|
+
".___SError_2kzd4_gg_{padding:96px 0;margin:0 auto;max-width:960px}.___SInner_2kzd4_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SImage_2kzd4_gg_,.___SImageWrapper_2kzd4_gg_{width:260px;height:260px}@media (max-width:320px){.___SImage_2kzd4_gg_,.___SImageWrapper_2kzd4_gg_{width:200px;height:200px}}.___SImageWrapper_2kzd4_gg_{margin-right:40px}.___SWrapper_2kzd4_gg_{flex:1 0 300px;max-width:100%;margin-top:32px}.___STitle_2kzd4_gg_{font-size:36px;line-height:1.1;color:#191b23;font-weight:700;margin:0 0 16px 0}.___SDescription_2kzd4_gg_{font-size:16px;line-height:1.5;color:#191b23;margin:0 0 24px 0}.___SControls_2kzd4_gg_{display:flex;align-items:center}.___SControls_2kzd4_gg_>:not(:last-child){margin-right:12px}"
|
|
31
31
|
/*__inner_css_end__*/
|
|
32
|
-
, "
|
|
32
|
+
, "2kzd4_gg_")
|
|
33
33
|
/*__reshadow_css_end__*/
|
|
34
34
|
, {
|
|
35
|
-
"__SError": "
|
|
36
|
-
"__SInner": "
|
|
37
|
-
"__SImage": "
|
|
38
|
-
"__SImageWrapper": "
|
|
39
|
-
"__SWrapper": "
|
|
40
|
-
"__STitle": "
|
|
41
|
-
"__SDescription": "
|
|
42
|
-
"__SControls": "
|
|
35
|
+
"__SError": "___SError_2kzd4_gg_",
|
|
36
|
+
"__SInner": "___SInner_2kzd4_gg_",
|
|
37
|
+
"__SImage": "___SImage_2kzd4_gg_",
|
|
38
|
+
"__SImageWrapper": "___SImageWrapper_2kzd4_gg_",
|
|
39
|
+
"__SWrapper": "___SWrapper_2kzd4_gg_",
|
|
40
|
+
"__STitle": "___STitle_2kzd4_gg_",
|
|
41
|
+
"__SDescription": "___SDescription_2kzd4_gg_",
|
|
42
|
+
"__SControls": "___SControls_2kzd4_gg_"
|
|
43
43
|
});
|
|
44
|
-
var version = "3.1.
|
|
44
|
+
var version = "3.1.4";
|
|
45
45
|
export var getIconPath = function getIconPath(name) {
|
|
46
46
|
return "//static.semrush.com/ui-kit/errors/".concat(version, "/").concat(name, ".svg");
|
|
47
47
|
};
|
package/lib/es6/Error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Error.js","names":["React","Box","Flex","createComponent","Root","Component","sstyled","version","getIconPath","name","RootError","SError","asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","style","Title","props","STitle","Description","SDescription","Controls","SControls"],"sources":["../../src/Error.jsx"],"sourcesContent":["import React from 'react';\nimport { Box, Flex } from '@semcore/flex-box';\nimport createComponent, { Root, Component, sstyled } from '@semcore/core';\nimport style from './style/errors.shadow.css';\n\nconst version = preval`\n module.exports = require('../package.json').version\n`;\n\nexport const getIconPath = (name) => `//static.semrush.com/ui-kit/errors/${version}/${name}.svg`;\n\nclass RootError extends Component {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n const SImage = 'img';\n return sstyled(styles)(\n <SError render={Flex}>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? <SImage src={icon} alt=\"error icon\" /> : icon}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} tag=\"h2\" />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag=\"p\" />);\n}\n\nfunction Controls(props) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nexport default createComponent(RootError, {\n Title,\n Description,\n Controls,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,IAAd,QAA0B,mBAA1B;AACA,OAAOC,eAAP,IAA0BC,IAA1B,EAAgCC,SAAhC,EAA2CC,OAA3C,QAA0D,eAA1D;;;;;;;;;;;;;;;;;;;;;AAGA,IAAMC,OAAO,UAAb;AAIA,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;EAAA,oDAAgDF,OAAhD,cAA2DE,IAA3D;AAAA,CAApB;;IAEDC,S;;;;;;;;;;;;;WAIJ,kBAAS;MAAA;MAAA;;MACP,IAAMC,MAAM,GAOMT,IAPlB;MACA,oBAAmC,KAAKU,OAAxC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,MAAlB,iBAAkBA,MAAlB;MAAA,IAA0BC,IAA1B,iBAA0BA,IAA1B;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,IAAMC,aAAa,GAAG,KAAtB;MACA,IAAMC,QAAQ,GAAG,KAAjB;MACA,IAAMC,MAAM,GAAG,KAAf;MACA,eAAOb,OAAO,CAACQ,MAAD,CAAd,eACE,oBAAC,MAAD,8EACE,oBAAC,MAAD,0BACGC,IAAI,iBACH,oBAAC,aAAD,iCACG,OAAOA,IAAP,KAAgB,QAAhB,gBAA2B,oBAAC,MAAD;QAAA,OAAaA,IAAb;QAAA,OAAuB;MAAvB,GAA3B,GAAoEA,IADvE,CAFJ,eAME,oBAAC,QAAD,yCACE,oBAAC,QAAD,2BADF,CANF,CADF,CADF;IAcD;;;;EAzBqBV,S;;gBAAlBK,S,iBACiB,O;;gBADjBA,S,WAEWU,K;;AA0BjB,SAASC,KAAT,CAAeC,KAAf,EAAsB;EAAA;EAAA;;EACpB,IAAMC,MAAM,GACiCtB,GAD7C;EACA,eAAOK,OAAO,CAACgB,KAAK,CAACR,MAAP,CAAd,eAA6B,oBAAC,MAAD;IAAA,OAAyB;EAAzB,YAA7B;AACD;;AAED,SAASU,WAAT,CAAqBF,KAArB,EAA4B;EAAA;EAAA;;EAC1B,IAAMG,YAAY,GACiCxB,GADnD;EACA,eAAOK,OAAO,CAACgB,KAAK,CAACR,MAAP,CAAd,eAA6B,oBAAC,YAAD;IAAA,OAA+B;EAA/B,YAA7B;AACD;;AAED,SAASY,QAAT,CAAkBJ,KAAlB,EAAyB;EAAA;EAAA;;EACvB,IAAMK,SAAS,GACiC1B,GADhD;EACA,eAAOK,OAAO,CAACgB,KAAK,CAACR,MAAP,CAAd,eAA6B,oBAAC,SAAD,qEAA7B;AACD;;AAED,eAAeX,eAAe,CAACO,SAAD,EAAY;EACxCW,KAAK,EAALA,KADwC;EAExCG,WAAW,EAAXA,WAFwC;EAGxCE,QAAQ,EAARA;AAHwC,CAAZ,CAA9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","Button","createComponent","Component","Root","i18nEnhance","Error","getIconPath","de","en","es","fr","it","ja","pt","ru","zh","ko","vi","i18n","RootMaintenance","asProps","Children","getI18nText","homeLink","toolName","title","text","btnHome","icon"],"sources":["../../../src/Maintenance/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\n\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootMaintenance extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n homeLink: '/',\n icon: getIconPath('maintenance'),\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName } = this.asProps;\n const { title, text, btnHome } = getI18nText();\n return (\n <Root render={Error}>\n <Error.Title>{`${toolName} ${title}`}</Error.Title>\n <Error.Description>{text}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag=\"a\" type=\"none\" size=\"l\" use=\"primary\" theme=\"info\" href={homeLink}>\n {btnHome}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootMaintenance);\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,IAArC,QAAiD,eAAjD;AACA,OAAOC,WAAP,MAAwB,yCAAxB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,UAAnC;AAEA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AAEA,IAAMC,IAAI,GAAG;EAAEX,EAAE,EAAFA,EAAF;EAAMC,EAAE,EAAFA,EAAN;EAAUC,EAAE,EAAFA,EAAV;EAAcC,EAAE,EAAFA,EAAd;EAAkBC,EAAE,EAAFA,EAAlB;EAAsBC,EAAE,EAAFA,EAAtB;EAA0BE,EAAE,EAAFA,EAA1B;EA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nhance","canUseDOM","callAllEventHandlers","Error","getIconPath","de","en","es","fr","it","ja","pt","ru","zh","ko","vi","i18n","RootPageError","location","reload","asProps","Children","getI18nText","onClick","other","title","text","btnRetry","handleReload","icon"],"sources":["../../../src/PageError/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport Error, { getIconPath } from '../Error';\n\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootPageError extends Component {\n static displayName = 'PageError';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n icon: getIconPath('page_error'),\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, ...other } = this.asProps;\n const { title, text, btnRetry } = getI18nText();\n return (\n <Error {...other}>\n <Error.Title>{title}</Error.Title>\n <Error.Description>{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 {btnRetry}\n </Button>\n </Error.Controls>\n </Error>\n );\n }\n}\n\nexport default createComponent(RootPageError);\n"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,QAA2C,eAA3C;AACA,OAAOC,WAAP,MAAwB,yCA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A,oBACE,oBAAC,KAAD,EAAWH,KAAX,eACE,oBAAC,KAAD,CAAO,KAAP,QAAcC,KAAd,CADF,eAEE,oBAAC,KAAD,CAAO,WAAP,QAAoBC,IAApB,CAFF,eAGE,oBAAC,QAAD,OAHF,eAIE,oBAAC,KAAD,CAAO,QAAP,qBACE,oBAAC,MAAD;QACE,OAAO,EAAExB,oBAAoB,CAACqB,OAAD,EAAU,KAAKK,YAAf,CAD/B;QAEE,IAAI,EAAC,GAFP;QAGE,GAAG,EAAC,SAHN;QAIE,KAAK,EAAC;MAJR,GAMGD,QANH,CADF,CAJF,CADF;IAiBD;;;;EAlCyB5B,S;;gBAAtBkB,a,iBACiB,W;;gBADjBA,a,aAEa,CAACjB,WAAW,EAAZ,C;;gBAFbiB,a,kBAGkB;EACpBD,IAAI,EAAJA,IADoB;EAEpBa,IAAI,EAAEzB,WAAW,CAAC,YAAD;AAFG,C;;AAkCxB,eAAeN,eAAe,CAACmB,aAAD,CAA9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","Button","createComponent","Component","Root","i18nEnhance","Error","getIconPath","de","en","es","fr","it","ja","pt","ru","zh","ko","vi","i18n","RootPageNotFound","asProps","Children","getI18nText","homeLink","title","text","btnHome","icon"],"sources":["../../../src/PageNotFound/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\n\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootPageNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n };\n\n render() {\n const { Children, getI18nText, homeLink } = this.asProps;\n const { title, text, btnHome } = getI18nText();\n return (\n <Root render={Error}>\n <Error.Title>{title}</Error.Title>\n <Error.Description>{text}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag=\"a\" type=\"none\" size=\"l\" use=\"primary\" theme=\"info\" href={homeLink}>\n {btnHome}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageNotFound);\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,IAArC,QAAiD,eAAjD;AACA,OAAOC,WAAP,MAAwB,yCAAxB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,UAAnC;AAEA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AAEA,IAAMC,IAAI,GAAG;EAAEX,EAAE,EAAFA,EAAF;EAAMC,EAAE,EAAFA,EAAN;EAAUC,EAAE,EAAFA,EAAV;EAAcC,EAAE,EAAFA,EAAd;EAAkBC,EAAE,EAAFA,EAAlB;EAAsBC,EAAE,EAAFA,EAAtB;EAA0BE,EAAE,EAAFA,EAA1B;EAA8BC,EAAE,EAAFA,EAA9B;EAAkCF,EAAE,EAAFA,EAAlC;EAAsCG,EAAE,EAAFA,EAAtC;EAA0CC,EAAE,EAAFA;AAA1C,CAAb;;IAEME,gB;;;;;;;;;;;;;WASJ,kBAAS;MAAA;MACP,oBAA4C,KAAKC,OAAjD;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,WAAlB,iBAAkBA,WAAlB;MAAA,IAA+BC,QAA/B,iBAA+BA,QAA/B;;MACA,mBAAiCD,WAAW,EAA5C;MAAA,IAAQE,KAAR,gBAAQA,KAAR;MAAA,IAAeC,IAAf,gBAAeA,IAAf;MAAA,IAAqBC,OAArB,gBAAqBA,OAArB;;MACA,oBACE,oBAAcrB,KAAd,uCACE,oBAAC,KAAD,CAAO,KAAP,QAAcmB,KAAd,CADF,eAEE,oBAAC,KAAD,CAAO,WAAP,QAAoBC,IAApB,CAFF,eAGE,oBAAC,QAAD,OAHF,eAIE,oBAAC,KAAD,CAAO,QAAP,qBACE,oBAAC,MAAD;QAAQ,GAAG,EAAC,GAAZ;QAAgB,IAAI,EAAC,MAArB;QAA4B,IAAI,EAAC,GAAjC;QAAqC,GAAG,EAAC,SAAzC;QAAmD,KAAK,EAAC,MAAzD;QAAgE,IAAI,EAAEF;MAAtE,GACGG,OADH,CADF,CAJF,CADF;IAYD;;;;EAxB4BxB,S;;gBAAzBiB,gB,iBACiB,a;;gBADjBA,gB,aAEa,CAACf,WAAW,EAAZ,C;;gBAFbe,gB,kBAGkB;EACpBD,IAAI,EAAJA,IADoB;EAEpBS,IAAI,EAAErB,WAAW,CAAC,gBAAD,CAFG;EAGpBiB,QAAQ,EAAE;AAHU,C;;AAwBxB,eAAetB,eAAe,CAACkB,gBAAD,CAA9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","Button","FormatText","createComponent","Component","Root","i18nEnhance","Error","getIconPath","de","en","es","fr","it","ja","pt","ru","zh","ko","vi","i18n","RootProjectNotFound","asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","title","btnProjects","btnContacts","text","url","__html","icon"],"sources":["../../../src/ProjectNotFound/index.jsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport FormatText from '@semcore/format-text';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootProjectNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: 'mailto:mail@semrush.com',\n };\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink } = this.asProps;\n const { title, btnProjects, btnContacts } = getI18nText();\n const text = getI18nText('text', { url: supportTeamLink });\n return (\n <Root render={Error}>\n <Error.Title>{title}</Error.Title>\n <Error.Description tag={FormatText} size=\"l\" dangerouslySetInnerHTML={{ __html: text }} />\n <Children />\n <Error.Controls>\n <Button tag=\"a\" type=\"none\" size=\"l\" use=\"primary\" theme=\"info\" href={projectsLink}>\n {btnProjects}\n </Button>\n <Button size=\"l\" tag=\"a\" type=\"none\" href={contactsLink}>\n {btnContacts}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootProjectNotFound);\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,OAAOC,UAAP,MAAuB,sBAAvB;AAC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,IAAI,GAAGP,WAAW,CAAC,MAAD,EAAS;QAAEQ,GAAG,EAAEL;MAAP,CAAT,CAAxB;MACA,oBACE,oBAAcpB,KAAd,uCACE,oBAAC,KAAD,CAAO,KAAP,QAAcqB,KAAd,CADF,eAEE,oBAAC,KAAD,CAAO,WAAP;QAAmB,GAAG,EAAE1B,UAAxB;QAAoC,IAAI,EAAC,GAAzC;QAA6C,uBAAuB,EAAE;UAAE+B,MAAM,EAAEF;QAAV;MAAtE,EAFF,eAGE,oBAAC,QAAD,OAHF,eAIE,oBAAC,KAAD,CAAO,QAAP,qBACE,oBAAC,MAAD;QAAQ,GAAG,EAAC,GAAZ;QAAgB,IAAI,EAAC,MAArB;QAA4B,IAAI,EAAC,GAAjC;QAAqC,GAAG,EAAC,SAAzC;QAAmD,KAAK,EAAC,MAAzD;QAAgE,IAAI,EAAEN;MAAtE,GACGI,WADH,CADF,eAIE,oBAAC,MAAD;QAAQ,IAAI,EAAC,GAAb;QAAiB,GAAG,EAAC,GAArB;QAAyB,IAAI,EAAC,MAA9B;QAAqC,IAAI,EAAEH;MAA3C,GACGI,WADH,CAJF,CAJF,CADF;IAeD;;;;EA9B+B1B,S;;gBAA5BiB,mB,iBACiB,a;;gBADjBA,mB,aAEa,CAACf,WAAW,EAAZ,C;;gBAFbe,mB,kBAGkB;EACpBD,IAAI,EAAJA,IADoB;EAEpBc,IAAI,EAAE1B,WAAW,CAAC,mBAAD,CAFG;EAGpBiB,YAAY,EAAE,WAHM;EAIpBC,YAAY,EAAE,mBAJM;EAKpBC,eAAe,EAAE;AALG,C;;AA8BxB,eAAexB,eAAe,CAACkB,mBAAD,CAA9B"}
|
package/lib/es6/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","AccessDenied","Maintenance","PageError","PageNotFound","ProjectNotFound"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './Error';\nexport * from './Error';\nexport { default as AccessDenied } from './AccessDenied';\nexport { default as Maintenance } from './Maintenance';\nexport { default as PageError } from './PageError';\nexport { default as PageNotFound } from './PageNotFound';\nexport { default as ProjectNotFound } from './ProjectNotFound';\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,SAAxB;AACA,cAAc,SAAd;AACA,SAASA,OAAO,IAAIC,YAApB,QAAwC,gBAAxC;AACA,SAASD,OAAO,IAAIE,WAApB,QAAuC,eAAvC;AACA,SAASF,OAAO,IAAIG,SAApB,QAAqC,aAArC;AACA,SAASH,OAAO,IAAII,YAApB,QAAwC,gBAAxC;AACA,SAASJ,OAAO,IAAIK,eAApB,QAA2C,mBAA3C"}
|
package/package.json
CHANGED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Button from '@semcore/button';
|
|
3
|
-
import createComponent, { Component, Root } from '@semcore/core';
|
|
4
|
-
import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
5
|
-
import Error, { getIconPath } from '../Error';
|
|
6
|
-
|
|
7
|
-
import de from './translations/de.json';
|
|
8
|
-
import en from './translations/en.json';
|
|
9
|
-
import es from './translations/es.json';
|
|
10
|
-
import fr from './translations/fr.json';
|
|
11
|
-
import it from './translations/it.json';
|
|
12
|
-
import ja from './translations/ja.json';
|
|
13
|
-
import pt from './translations/pt.json';
|
|
14
|
-
import ru from './translations/ru.json';
|
|
15
|
-
import zh from './translations/zh.json';
|
|
16
|
-
import ko from './translations/ko.json';
|
|
17
|
-
import vi from './translations/vi.json';
|
|
18
|
-
|
|
19
|
-
const i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };
|
|
20
|
-
|
|
21
|
-
class RootAccessDenied extends Component {
|
|
22
|
-
static displayName = 'AccessDenied';
|
|
23
|
-
static enhance = [i18nEnhance()];
|
|
24
|
-
static defaultProps = {
|
|
25
|
-
i18n,
|
|
26
|
-
homeLink: '/',
|
|
27
|
-
icon: getIconPath('access_denied'),
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
render() {
|
|
31
|
-
const { Children, getI18nText, homeLink } = this.asProps;
|
|
32
|
-
const { title, text, btnHome } = getI18nText();
|
|
33
|
-
return (
|
|
34
|
-
<Root render={Error}>
|
|
35
|
-
<Error.Title>{title}</Error.Title>
|
|
36
|
-
<Error.Description wMax="640px">{text}</Error.Description>
|
|
37
|
-
<Children />
|
|
38
|
-
<Error.Controls>
|
|
39
|
-
<Button tag="a" type="none" size="l" use="primary" theme="info" href={homeLink}>
|
|
40
|
-
{btnHome}
|
|
41
|
-
</Button>
|
|
42
|
-
</Error.Controls>
|
|
43
|
-
</Root>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export default createComponent(RootAccessDenied);
|