@semcore/errors 16.0.5 → 16.1.0-prerelease.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.
- package/CHANGELOG.md +9 -0
- package/lib/cjs/Error.js +9 -9
- package/lib/cjs/ProjectNotFound/index.js +1 -1
- package/lib/cjs/ProjectNotFound/index.js.map +1 -1
- package/lib/cjs/ProjectNotFound/translations/en.json +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/style/errors.shadow.css +9 -8
- package/lib/es6/Error.js +9 -9
- package/lib/es6/ProjectNotFound/index.js +1 -1
- package/lib/es6/ProjectNotFound/index.js.map +1 -1
- package/lib/es6/ProjectNotFound/translations/en.json +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/style/errors.shadow.css +9 -8
- package/lib/esm/Error.mjs +10 -10
- package/lib/esm/ProjectNotFound/index.mjs +1 -1
- package/lib/esm/ProjectNotFound/translations/en.json.mjs +1 -1
- package/lib/esm/style/errors.shadow.css +9 -8
- package/lib/types/index.d.ts +9 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [16.1.0] - 2025-07-14
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Mobile breakpoint from 320px to 648px and other minor CSS changes to eliminate any implicit intermediate states.
|
|
10
|
+
- Added `flex-wrap` to `Error.Controls` for better layout on small screens.
|
|
11
|
+
- Default URL for the "Support Team" link from an email to "/company/contacts" in `ProjectNotFound`.
|
|
12
|
+
- Slightly changed the grammar in the English text in `ProjectNotFound`.
|
|
13
|
+
|
|
5
14
|
## [16.0.5] - 2025-07-04
|
|
6
15
|
|
|
7
16
|
### Changed
|
package/lib/cjs/Error.js
CHANGED
|
@@ -19,17 +19,17 @@ var _illustration = require("@semcore/illustration");
|
|
|
19
19
|
var _react = _interopRequireDefault(require("react"));
|
|
20
20
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, (0, _isNativeReflectConstruct2["default"])() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
21
21
|
/*!__reshadow-styles__:"./style/errors.shadow.css"*/
|
|
22
|
-
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".
|
|
22
|
+
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SError_6jozp_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-6x, 24px);margin:0 auto;max-width:960px}@media (max-width:647px){.___SError_6jozp_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_6jozp_gg_ .___SControls_6jozp_gg_{display:flex;flex-wrap:wrap;gap:var(--intergalactic-spacing-3x, 12px);align-items:center}.___SError_6jozp_gg_ .___SInner_6jozp_gg_{width:100%;display:flex;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}@media (max-width:647px){.___SError_6jozp_gg_ .___SInner_6jozp_gg_{flex-direction:column}}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImageWrapper_6jozp_gg_,.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImage_6jozp_gg_{width:260px;height:260px}@media (max-width:647px){.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImageWrapper_6jozp_gg_,.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImage_6jozp_gg_{width:200px;height:200px}}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImageWrapper_6jozp_gg_{flex-shrink:0;margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SWrapper_6jozp_gg_{max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___STitle_6jozp_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SDescription_6jozp_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}", /*__inner_css_end__*/"6jozp_gg_"),
|
|
23
23
|
/*__reshadow_css_end__*/
|
|
24
24
|
{
|
|
25
|
-
"__SError": "
|
|
26
|
-
"__SControls": "
|
|
27
|
-
"__SInner": "
|
|
28
|
-
"__SImageWrapper": "
|
|
29
|
-
"__SImage": "
|
|
30
|
-
"__SWrapper": "
|
|
31
|
-
"__STitle": "
|
|
32
|
-
"__SDescription": "
|
|
25
|
+
"__SError": "___SError_6jozp_gg_",
|
|
26
|
+
"__SControls": "___SControls_6jozp_gg_",
|
|
27
|
+
"__SInner": "___SInner_6jozp_gg_",
|
|
28
|
+
"__SImageWrapper": "___SImageWrapper_6jozp_gg_",
|
|
29
|
+
"__SImage": "___SImage_6jozp_gg_",
|
|
30
|
+
"__SWrapper": "___SWrapper_6jozp_gg_",
|
|
31
|
+
"__STitle": "___STitle_6jozp_gg_",
|
|
32
|
+
"__SDescription": "___SDescription_6jozp_gg_"
|
|
33
33
|
});
|
|
34
34
|
var getIconPath = exports.getIconPath = function getIconPath(name) {
|
|
35
35
|
return (0, _illustration.getIllustrationPath)(name);
|
|
@@ -73,7 +73,7 @@ var RootProjectNotFound = /*#__PURE__*/function (_Component) {
|
|
|
73
73
|
icon: (0, _Error.getIconPath)('project_not_found'),
|
|
74
74
|
projectsLink: '/projects',
|
|
75
75
|
contactsLink: '/company/contacts',
|
|
76
|
-
supportTeamLink: '
|
|
76
|
+
supportTeamLink: '/company/contacts',
|
|
77
77
|
titleTag: 'h2'
|
|
78
78
|
});
|
|
79
79
|
var _default = exports["default"] = (0, _core.createComponent)(RootProjectNotFound);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_formatText","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct2","Reflect","construct","constructor","apply","RootProjectNotFound","_Component","_classCallCheck2","arguments","_inherits2","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","url","createElement","Error","assignProps","Title","tag","Description","FormatText","size","dangerouslySetInnerHTML","__html","Controls","type","use","theme","href","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: '
|
|
1
|
+
{"version":3,"file":"index.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_formatText","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct2","Reflect","construct","constructor","apply","RootProjectNotFound","_Component","_classCallCheck2","arguments","_inherits2","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","url","createElement","Error","assignProps","Title","tag","Description","FormatText","size","dangerouslySetInnerHTML","__html","Controls","type","use","theme","href","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 } =\n this.asProps;\n const text = getI18nText('text', { url: supportTeamLink });\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('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 {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,GA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B,YAAY,EAAE,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,mBAAmB;EACpCC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAA0B,QAAA,GAAAC,OAAA,cAwBY,IAAAC,qBAAe,EAAC7C,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Project not found",
|
|
3
|
-
"text": "<p>We cannot find the project you’re trying to access.</p><p>Check one of the following issues:</p><ul><li>The project may have been deleted or there is an error in the URL entered.</li><li>
|
|
3
|
+
"text": "<p>We cannot find the project you’re trying to access.</p><p>Check one of the following issues:</p><ul><li>The project may have been deleted or there is an error in the URL entered.</li><li>You may not have permission to view the project. Please request access from the project owner.</li></ul><p>You can find all your projects on the Projects page.</p><p>If you have any other problems with access to the project, please contact our <a href=\"{url}\">Support Team.</a></p>",
|
|
4
4
|
"btnProjects": "Go to Projects",
|
|
5
5
|
"btnContacts": "Contact us"
|
|
6
6
|
}
|
package/lib/cjs/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 *
|
|
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":[]}
|
|
@@ -3,44 +3,45 @@ SError {
|
|
|
3
3
|
margin: 0 auto;
|
|
4
4
|
max-width: 960px;
|
|
5
5
|
|
|
6
|
-
@media (max-width:
|
|
6
|
+
@media (max-width: 647px) {
|
|
7
7
|
padding: var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
SControls {
|
|
11
11
|
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
gap: var(--intergalactic-spacing-3x, 12px);
|
|
12
14
|
align-items: center;
|
|
13
|
-
|
|
14
|
-
&>*:not(:last-child) {
|
|
15
|
-
margin-right: var(--intergalactic-spacing-3x, 12px);
|
|
16
|
-
}
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
SInner {
|
|
20
18
|
width: 100%;
|
|
21
19
|
display: flex;
|
|
22
20
|
justify-content: flex-start;
|
|
23
|
-
flex-wrap: wrap;
|
|
24
21
|
align-items: flex-start;
|
|
25
22
|
box-sizing: border-box;
|
|
26
23
|
|
|
24
|
+
@media (max-width: 647px) {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
|
|
27
28
|
SImageWrapper,
|
|
28
29
|
SImage {
|
|
29
30
|
width: 260px;
|
|
30
31
|
height: 260px;
|
|
31
32
|
|
|
32
|
-
@media (max-width:
|
|
33
|
+
@media (max-width: 647px) {
|
|
33
34
|
width: 200px;
|
|
34
35
|
height: 200px;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
SImageWrapper {
|
|
40
|
+
flex-shrink: 0;
|
|
39
41
|
margin-right: var(--intergalactic-spacing-10x, 40px);
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
SWrapper {
|
|
43
|
-
flex: 1 0 300px;
|
|
44
45
|
max-width: 100%;
|
|
45
46
|
margin-top: var(--intergalactic-spacing-8x, 32px);
|
|
46
47
|
}
|
package/lib/es6/Error.js
CHANGED
|
@@ -17,17 +17,17 @@ import { Box, Flex } from '@semcore/flex-box';
|
|
|
17
17
|
import { getIllustrationPath } from '@semcore/illustration';
|
|
18
18
|
import React from 'react';
|
|
19
19
|
/*!__reshadow-styles__:"./style/errors.shadow.css"*/
|
|
20
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
20
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SError_6jozp_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-6x, 24px);margin:0 auto;max-width:960px}@media (max-width:647px){.___SError_6jozp_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_6jozp_gg_ .___SControls_6jozp_gg_{display:flex;flex-wrap:wrap;gap:var(--intergalactic-spacing-3x, 12px);align-items:center}.___SError_6jozp_gg_ .___SInner_6jozp_gg_{width:100%;display:flex;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}@media (max-width:647px){.___SError_6jozp_gg_ .___SInner_6jozp_gg_{flex-direction:column}}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImageWrapper_6jozp_gg_,.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImage_6jozp_gg_{width:260px;height:260px}@media (max-width:647px){.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImageWrapper_6jozp_gg_,.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImage_6jozp_gg_{width:200px;height:200px}}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImageWrapper_6jozp_gg_{flex-shrink:0;margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SWrapper_6jozp_gg_{max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___STitle_6jozp_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SDescription_6jozp_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}", /*__inner_css_end__*/"6jozp_gg_"),
|
|
21
21
|
/*__reshadow_css_end__*/
|
|
22
22
|
{
|
|
23
|
-
"__SError": "
|
|
24
|
-
"__SControls": "
|
|
25
|
-
"__SInner": "
|
|
26
|
-
"__SImageWrapper": "
|
|
27
|
-
"__SImage": "
|
|
28
|
-
"__SWrapper": "
|
|
29
|
-
"__STitle": "
|
|
30
|
-
"__SDescription": "
|
|
23
|
+
"__SError": "___SError_6jozp_gg_",
|
|
24
|
+
"__SControls": "___SControls_6jozp_gg_",
|
|
25
|
+
"__SInner": "___SInner_6jozp_gg_",
|
|
26
|
+
"__SImageWrapper": "___SImageWrapper_6jozp_gg_",
|
|
27
|
+
"__SImage": "___SImage_6jozp_gg_",
|
|
28
|
+
"__SWrapper": "___SWrapper_6jozp_gg_",
|
|
29
|
+
"__STitle": "___STitle_6jozp_gg_",
|
|
30
|
+
"__SDescription": "___SDescription_6jozp_gg_"
|
|
31
31
|
});
|
|
32
32
|
export var getIconPath = function getIconPath(name) {
|
|
33
33
|
return getIllustrationPath(name);
|
|
@@ -66,7 +66,7 @@ _defineProperty(RootProjectNotFound, "defaultProps", {
|
|
|
66
66
|
icon: getIconPath('project_not_found'),
|
|
67
67
|
projectsLink: '/projects',
|
|
68
68
|
contactsLink: '/company/contacts',
|
|
69
|
-
supportTeamLink: '
|
|
69
|
+
supportTeamLink: '/company/contacts',
|
|
70
70
|
titleTag: 'h2'
|
|
71
71
|
});
|
|
72
72
|
export default createComponent(RootProjectNotFound);
|
|
@@ -1 +1 @@
|
|
|
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","url","createElement","_assignProps","Title","tag","Description","size","dangerouslySetInnerHTML","__html","Controls","type","use","theme","href","_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: '
|
|
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","url","createElement","_assignProps","Title","tag","Description","size","dangerouslySetInnerHTML","__html","Controls","type","use","theme","href","_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 } =\n this.asProps;\n const text = getI18nText('text', { url: supportTeamLink });\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('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 {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,EA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AAG;QAACM,IAAI,EAAC,MAAM;QAACG,IAAI,EAAEjB;MAAa,GACrDF,WAAW,CAAC,aAAa,CACpB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EAhC+BtB,SAAS;AAAA0C,eAAA,CAArClC,mBAAmB,iBACF,aAAa;AAAAkC,eAAA,CAD9BlC,mBAAmB,aAEN,CAACN,WAAW,CAACK,iBAAiB,CAAC,CAAC;AAAAmC,eAAA,CAF7ClC,mBAAmB,kBAGD;EACpBmC,IAAI,EAAEpC,iBAAiB;EACvBqC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAEvC,WAAW,CAAC,mBAAmB,CAAC;EACtCiB,YAAY,EAAE,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,mBAAmB;EACpCC,QAAQ,EAAE;AACZ,CAAC;AAwBH,eAAe3B,eAAe,CAACS,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Project not found",
|
|
3
|
-
"text": "<p>We cannot find the project you’re trying to access.</p><p>Check one of the following issues:</p><ul><li>The project may have been deleted or there is an error in the URL entered.</li><li>
|
|
3
|
+
"text": "<p>We cannot find the project you’re trying to access.</p><p>Check one of the following issues:</p><ul><li>The project may have been deleted or there is an error in the URL entered.</li><li>You may not have permission to view the project. Please request access from the project owner.</li></ul><p>You can find all your projects on the Projects page.</p><p>If you have any other problems with access to the project, please contact our <a href=\"{url}\">Support Team.</a></p>",
|
|
4
4
|
"btnProjects": "Go to Projects",
|
|
5
5
|
"btnContacts": "Contact us"
|
|
6
6
|
}
|
package/lib/es6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 *
|
|
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":[]}
|
|
@@ -3,44 +3,45 @@ SError {
|
|
|
3
3
|
margin: 0 auto;
|
|
4
4
|
max-width: 960px;
|
|
5
5
|
|
|
6
|
-
@media (max-width:
|
|
6
|
+
@media (max-width: 647px) {
|
|
7
7
|
padding: var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
SControls {
|
|
11
11
|
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
gap: var(--intergalactic-spacing-3x, 12px);
|
|
12
14
|
align-items: center;
|
|
13
|
-
|
|
14
|
-
&>*:not(:last-child) {
|
|
15
|
-
margin-right: var(--intergalactic-spacing-3x, 12px);
|
|
16
|
-
}
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
SInner {
|
|
20
18
|
width: 100%;
|
|
21
19
|
display: flex;
|
|
22
20
|
justify-content: flex-start;
|
|
23
|
-
flex-wrap: wrap;
|
|
24
21
|
align-items: flex-start;
|
|
25
22
|
box-sizing: border-box;
|
|
26
23
|
|
|
24
|
+
@media (max-width: 647px) {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
|
|
27
28
|
SImageWrapper,
|
|
28
29
|
SImage {
|
|
29
30
|
width: 260px;
|
|
30
31
|
height: 260px;
|
|
31
32
|
|
|
32
|
-
@media (max-width:
|
|
33
|
+
@media (max-width: 647px) {
|
|
33
34
|
width: 200px;
|
|
34
35
|
height: 200px;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
SImageWrapper {
|
|
40
|
+
flex-shrink: 0;
|
|
39
41
|
margin-right: var(--intergalactic-spacing-10x, 40px);
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
SWrapper {
|
|
43
|
-
flex: 1 0 300px;
|
|
44
45
|
max-width: 100%;
|
|
45
46
|
margin-top: var(--intergalactic-spacing-8x, 32px);
|
|
46
47
|
}
|
package/lib/esm/Error.mjs
CHANGED
|
@@ -18,19 +18,19 @@ var style = (
|
|
|
18
18
|
/*__reshadow_css_start__*/
|
|
19
19
|
(sstyled.insert(
|
|
20
20
|
/*__inner_css_start__*/
|
|
21
|
-
".
|
|
21
|
+
".___SError_6jozp_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-6x, 24px);margin:0 auto;max-width:960px}@media (max-width:647px){.___SError_6jozp_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_6jozp_gg_ .___SControls_6jozp_gg_{display:flex;flex-wrap:wrap;gap:var(--intergalactic-spacing-3x, 12px);align-items:center}.___SError_6jozp_gg_ .___SInner_6jozp_gg_{width:100%;display:flex;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}@media (max-width:647px){.___SError_6jozp_gg_ .___SInner_6jozp_gg_{flex-direction:column}}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImageWrapper_6jozp_gg_,.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImage_6jozp_gg_{width:260px;height:260px}@media (max-width:647px){.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImageWrapper_6jozp_gg_,.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImage_6jozp_gg_{width:200px;height:200px}}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SImageWrapper_6jozp_gg_{flex-shrink:0;margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SWrapper_6jozp_gg_{max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___STitle_6jozp_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_6jozp_gg_ .___SInner_6jozp_gg_ .___SDescription_6jozp_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}",
|
|
22
22
|
/*__inner_css_end__*/
|
|
23
|
-
"
|
|
23
|
+
"6jozp_gg_"
|
|
24
24
|
), /*__reshadow_css_end__*/
|
|
25
25
|
{
|
|
26
|
-
"__SError": "
|
|
27
|
-
"__SControls": "
|
|
28
|
-
"__SInner": "
|
|
29
|
-
"__SImageWrapper": "
|
|
30
|
-
"__SImage": "
|
|
31
|
-
"__SWrapper": "
|
|
32
|
-
"__STitle": "
|
|
33
|
-
"__SDescription": "
|
|
26
|
+
"__SError": "___SError_6jozp_gg_",
|
|
27
|
+
"__SControls": "___SControls_6jozp_gg_",
|
|
28
|
+
"__SInner": "___SInner_6jozp_gg_",
|
|
29
|
+
"__SImageWrapper": "___SImageWrapper_6jozp_gg_",
|
|
30
|
+
"__SImage": "___SImage_6jozp_gg_",
|
|
31
|
+
"__SWrapper": "___SWrapper_6jozp_gg_",
|
|
32
|
+
"__STitle": "___STitle_6jozp_gg_",
|
|
33
|
+
"__SDescription": "___SDescription_6jozp_gg_"
|
|
34
34
|
})
|
|
35
35
|
);
|
|
36
36
|
var getIconPath = function getIconPath2(name) {
|
|
@@ -61,7 +61,7 @@ _defineProperty(RootProjectNotFound, "defaultProps", {
|
|
|
61
61
|
icon: getIconPath("project_not_found"),
|
|
62
62
|
projectsLink: "/projects",
|
|
63
63
|
contactsLink: "/company/contacts",
|
|
64
|
-
supportTeamLink: "
|
|
64
|
+
supportTeamLink: "/company/contacts",
|
|
65
65
|
titleTag: "h2"
|
|
66
66
|
});
|
|
67
67
|
const index = createComponent(RootProjectNotFound);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const title = "Project not found";
|
|
2
|
-
const text = '<p>We cannot find the project you’re trying to access.</p><p>Check one of the following issues:</p><ul><li>The project may have been deleted or there is an error in the URL entered.</li><li>
|
|
2
|
+
const text = '<p>We cannot find the project you’re trying to access.</p><p>Check one of the following issues:</p><ul><li>The project may have been deleted or there is an error in the URL entered.</li><li>You may not have permission to view the project. Please request access from the project owner.</li></ul><p>You can find all your projects on the Projects page.</p><p>If you have any other problems with access to the project, please contact our <a href="{url}">Support Team.</a></p>';
|
|
3
3
|
const btnProjects = "Go to Projects";
|
|
4
4
|
const btnContacts = "Contact us";
|
|
5
5
|
const en = {
|
|
@@ -3,44 +3,45 @@ SError {
|
|
|
3
3
|
margin: 0 auto;
|
|
4
4
|
max-width: 960px;
|
|
5
5
|
|
|
6
|
-
@media (max-width:
|
|
6
|
+
@media (max-width: 647px) {
|
|
7
7
|
padding: var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
SControls {
|
|
11
11
|
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
gap: var(--intergalactic-spacing-3x, 12px);
|
|
12
14
|
align-items: center;
|
|
13
|
-
|
|
14
|
-
&>*:not(:last-child) {
|
|
15
|
-
margin-right: var(--intergalactic-spacing-3x, 12px);
|
|
16
|
-
}
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
SInner {
|
|
20
18
|
width: 100%;
|
|
21
19
|
display: flex;
|
|
22
20
|
justify-content: flex-start;
|
|
23
|
-
flex-wrap: wrap;
|
|
24
21
|
align-items: flex-start;
|
|
25
22
|
box-sizing: border-box;
|
|
26
23
|
|
|
24
|
+
@media (max-width: 647px) {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
|
|
27
28
|
SImageWrapper,
|
|
28
29
|
SImage {
|
|
29
30
|
width: 260px;
|
|
30
31
|
height: 260px;
|
|
31
32
|
|
|
32
|
-
@media (max-width:
|
|
33
|
+
@media (max-width: 647px) {
|
|
33
34
|
width: 200px;
|
|
34
35
|
height: 200px;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
SImageWrapper {
|
|
40
|
+
flex-shrink: 0;
|
|
39
41
|
margin-right: var(--intergalactic-spacing-10x, 40px);
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
SWrapper {
|
|
43
|
-
flex: 1 0 300px;
|
|
44
45
|
max-width: 100%;
|
|
45
46
|
margin-top: var(--intergalactic-spacing-8x, 32px);
|
|
46
47
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -27,11 +27,19 @@ export type ErrorsContext = {
|
|
|
27
27
|
export interface IProjectNotFoundProps extends ProjectNotFoundProps, UnknownProperties {}
|
|
28
28
|
export type ProjectNotFoundProps = WithI18nEnhanceProps & {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* URL for the "Go to Projects" button
|
|
31
31
|
* @default /projects
|
|
32
32
|
*/
|
|
33
33
|
projectsLink?: string;
|
|
34
|
+
/**
|
|
35
|
+
* URL for the "Contact us" button
|
|
36
|
+
* @default /company/contacts
|
|
37
|
+
*/
|
|
34
38
|
contactsLink?: string;
|
|
39
|
+
/**
|
|
40
|
+
* URL for the "Support Team" link
|
|
41
|
+
* @default /company/contacts
|
|
42
|
+
*/
|
|
35
43
|
supportTeamLink?: string;
|
|
36
44
|
/**
|
|
37
45
|
* HTML tag of the error title
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/errors",
|
|
3
3
|
"description": "Semrush Errors Component",
|
|
4
|
-
"version": "16.0.
|
|
4
|
+
"version": "16.1.0-prerelease.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.0.
|
|
18
|
-
"@semcore/format-text": "16.0.
|
|
19
|
-
"@semcore/illustration": "16.0.
|
|
20
|
-
"@semcore/typography": "16.1.
|
|
21
|
-
"@semcore/flex-box": "16.0.
|
|
17
|
+
"@semcore/button": "16.0.5-prerelease.0",
|
|
18
|
+
"@semcore/format-text": "16.0.6-prerelease.0",
|
|
19
|
+
"@semcore/illustration": "16.0.6-prerelease.0",
|
|
20
|
+
"@semcore/typography": "16.1.5-prerelease.0",
|
|
21
|
+
"@semcore/flex-box": "16.0.5-prerelease.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@semcore/base-components": "^16.
|
|
24
|
+
"@semcore/base-components": "^16.1.2-prerelease.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/
|
|
33
|
-
"@semcore/
|
|
32
|
+
"@semcore/testing-utils": "1.0.0",
|
|
33
|
+
"@semcore/core": "16.0.4-prerelease.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "pnpm semcore-builder --source=js && pnpm vite build"
|