@semcore/errors 17.0.1 → 17.0.2-prerelease.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/cjs/AccessDenied/AccessDenied.js.map +1 -1
- package/lib/cjs/AccessDenied/AccessDenied.type.js.map +1 -1
- package/lib/cjs/Error.js +9 -9
- package/lib/cjs/Error.js.map +1 -1
- package/lib/cjs/Error.type.js.map +1 -1
- package/lib/cjs/Maintenance/Maintenance.js.map +1 -1
- package/lib/cjs/Maintenance/Maintenance.type.js.map +1 -1
- package/lib/cjs/PageError/PageError.js.map +1 -1
- package/lib/cjs/PageError/PageError.type.js.map +1 -1
- package/lib/cjs/PageNotFound/PageNotFound.js +0 -1
- package/lib/cjs/PageNotFound/PageNotFound.js.map +1 -1
- package/lib/cjs/PageNotFound/PageNotFound.type.js.map +1 -1
- package/lib/cjs/ProjectNotFound/ProjectNotFound.js.map +1 -1
- package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js.map +1 -1
- package/lib/es6/AccessDenied/AccessDenied.js.map +1 -1
- package/lib/es6/AccessDenied/AccessDenied.type.js.map +1 -1
- package/lib/es6/Error.js +9 -9
- package/lib/es6/Error.js.map +1 -1
- package/lib/es6/Error.type.js.map +1 -1
- package/lib/es6/Maintenance/Maintenance.js.map +1 -1
- package/lib/es6/Maintenance/Maintenance.type.js.map +1 -1
- package/lib/es6/PageError/PageError.js.map +1 -1
- package/lib/es6/PageError/PageError.type.js.map +1 -1
- package/lib/es6/PageNotFound/PageNotFound.js +0 -1
- package/lib/es6/PageNotFound/PageNotFound.js.map +1 -1
- package/lib/es6/PageNotFound/PageNotFound.type.js.map +1 -1
- package/lib/es6/ProjectNotFound/ProjectNotFound.js.map +1 -1
- package/lib/es6/ProjectNotFound/ProjectNotFound.type.js.map +1 -1
- package/lib/esm/Error.mjs +10 -10
- package/lib/esm/PageNotFound/PageNotFound.mjs +0 -1
- package/lib/types/AccessDenied/AccessDenied.d.ts +2 -2
- package/lib/types/AccessDenied/AccessDenied.type.d.ts +19 -14
- package/lib/types/Error.d.ts +3 -3
- package/lib/types/Error.type.d.ts +36 -22
- package/lib/types/Maintenance/Maintenance.d.ts +2 -2
- package/lib/types/Maintenance/Maintenance.type.d.ts +23 -18
- package/lib/types/PageError/PageError.d.ts +2 -2
- package/lib/types/PageError/PageError.type.d.ts +19 -14
- package/lib/types/PageNotFound/PageNotFound.d.ts +2 -2
- package/lib/types/PageNotFound/PageNotFound.type.d.ts +19 -14
- package/lib/types/ProjectNotFound/ProjectNotFound.d.ts +2 -2
- package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts +29 -24
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [17.0.2] - 2026-04-30
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Deprecated atomic types. Atomic parts are part of
|
|
10
|
+
`NSErrors/NSAccessDenied/NSMaintenance/NSPageError/NSPageNotFound/NSProjectNotFound`
|
|
11
|
+
namespaces.
|
|
12
|
+
|
|
5
13
|
## [17.0.1] - 2026-04-16
|
|
6
14
|
|
|
7
15
|
### Fixed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessDenied.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootAccessDenied","Component","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","default","createElement","Error","assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"AccessDenied.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootAccessDenied","Component","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","default","createElement","Error","assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type { NSAccessDenied } from './AccessDenied.type';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSAccessDenied.Component>,\n typeof RootAccessDenied.enhance\n> {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('access_denied'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description wMax='640px'>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootAccessDenied) as NSAccessDenied.Component;\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,O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,gBAAA,CAAAd,OAAA,EA7BKT,gBAAgB,iBAIC,cAAc;AAAA,IAAAuB,gBAAA,CAAAd,OAAA,EAJ/BT,gBAAgB,aAKH,CAAC,IAAAwB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAd,OAAA,EAL7CT,gBAAgB,kBAME;EACpB0B,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZpB,QAAQ,EAAE,GAAG;EACbqB,IAAI,EAAE,IAAAC,kBAAW,EAAC,eAAe,CAAC;EAClCrB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAsB,QAAA,GAAAC,OAAA,CAAAtB,OAAA,GAmBY,IAAAuB,qBAAe,EAAChC,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessDenied.type.js","names":[],"sources":["../../../src/AccessDenied/AccessDenied.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"AccessDenied.type.js","names":[],"sources":["../../../src/AccessDenied/AccessDenied.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSAccessDenied {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type AccessDeniedProps = NSAccessDenied.Props;\n\nexport type { NSAccessDenied };\n"],"mappings":"","ignoreList":[]}
|
package/lib/cjs/Error.js
CHANGED
|
@@ -11,17 +11,17 @@ var _baseComponents = require("@semcore/base-components");
|
|
|
11
11
|
var _illustration = require("@semcore/illustration");
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
/*!__reshadow-styles__:"./style/errors.shadow.css"*/
|
|
14
|
-
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".
|
|
14
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SError_1wnzv_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-6x, 24px);margin:0 auto;max-width:960px}@media (max-width:647px){.___SError_1wnzv_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1wnzv_gg_ .___SControls_1wnzv_gg_{display:flex;flex-wrap:wrap;gap:var(--intergalactic-spacing-3x, 12px);align-items:center}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_{width:100%;display:flex;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}@media (max-width:647px){.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_{flex-direction:column}}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImageWrapper_1wnzv_gg_,.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImage_1wnzv_gg_{width:260px;height:260px}@media (max-width:647px){.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImageWrapper_1wnzv_gg_,.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImage_1wnzv_gg_{width:200px;height:200px}}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImageWrapper_1wnzv_gg_{flex-shrink:0;margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SWrapper_1wnzv_gg_{max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___STitle_1wnzv_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_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SDescription_1wnzv_gg_{display:block;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__*/"1wnzv_gg_"),
|
|
15
15
|
/*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SError": "
|
|
18
|
-
"__SControls": "
|
|
19
|
-
"__SInner": "
|
|
20
|
-
"__SImageWrapper": "
|
|
21
|
-
"__SImage": "
|
|
22
|
-
"__SWrapper": "
|
|
23
|
-
"__STitle": "
|
|
24
|
-
"__SDescription": "
|
|
17
|
+
"__SError": "___SError_1wnzv_gg_",
|
|
18
|
+
"__SControls": "___SControls_1wnzv_gg_",
|
|
19
|
+
"__SInner": "___SInner_1wnzv_gg_",
|
|
20
|
+
"__SImageWrapper": "___SImageWrapper_1wnzv_gg_",
|
|
21
|
+
"__SImage": "___SImage_1wnzv_gg_",
|
|
22
|
+
"__SWrapper": "___SWrapper_1wnzv_gg_",
|
|
23
|
+
"__STitle": "___STitle_1wnzv_gg_",
|
|
24
|
+
"__SDescription": "___SDescription_1wnzv_gg_"
|
|
25
25
|
});
|
|
26
26
|
const getIconPath = name => (0, _illustration.getIllustrationPath)(name);
|
|
27
27
|
exports.getIconPath = getIconPath;
|
package/lib/cjs/Error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","names":["_core","require","_baseComponents","_illustration","_react","_interopRequireDefault","style","sstyled","insert","getIconPath","name","getIllustrationPath","exports","RootError","Component","render","_ref","asProps","_ref5","SError","Flex","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","default","createElement","cn","assignProps","_defineProperty2","Title","props","_ref2","arguments[0]","_ref6","STitle","Box","Description","_ref3","_ref7","SDescription","Controls","_ref4","_ref8","SControls","Error","createComponent","_default"],"sources":["../../src/Error.tsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"Error.js","names":["_core","require","_baseComponents","_illustration","_react","_interopRequireDefault","style","sstyled","insert","getIconPath","name","getIllustrationPath","exports","RootError","Component","render","_ref","asProps","_ref5","SError","Flex","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","default","createElement","cn","assignProps","_defineProperty2","Title","props","_ref2","arguments[0]","_ref6","STitle","Box","Description","_ref3","_ref7","SDescription","Controls","_ref4","_ref8","SControls","Error","createComponent","_default"],"sources":["../../src/Error.tsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport type { NSErrors } from './Error.type';\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name: NSErrors.IconName) => getIllustrationPath(name);\n\nclass RootError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSErrors.Component>\n> {\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='' /> : icon}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Title.Component>) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Description.Component>) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Controls.Component>) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nconst Error = createComponent(RootError, {\n Title,\n Description,\n Controls,\n}) as NSErrors.Component;\n\nexport default Error;\n"],"mappings":";;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,eAAA,GAAAD,OAAA;AAGA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAA0B;AAAA,MAAAK,KAAA,8BAAAN,KAAA,CAAAO,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAKnB,MAAMC,WAAW,GAAIC,IAAuB,IAAK,IAAAC,iCAAmB,EAACD,IAAI,CAAC;AAACE,OAAA,CAAAH,WAAA,GAAAA,WAAA;AAElF,MAAMI,SAAS,SAASC,eAAS,CAE/B;EAIAC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,MAAM,GAOMC,oBAAI;IANtB,MAAM;MAAEC,QAAQ;MAAEC,MAAM;MAAEC;IAAK,CAAC,GAAG,IAAI,CAACN,OAAO;IAC/C,MAAMO,MAAM,GAAG,KAAK;IACpB,MAAMC,aAAa,GAAG,KAAK;IAC3B,MAAMC,QAAQ,GAAG,KAAK;IACtB,MAAMC,MAAM,GAAG,KAAK;IACpB,OAAAT,KAAA,GAAO,IAAAX,aAAO,EAACe,MAAM,CAAC,eACpBlB,MAAA,C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O,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAC7G,MAAMC,YAAY,GACiCJ,mBAAG;EAAtD,OAAAG,KAAA,GAAO,IAAAnC,aAAO,EAAC2B,KAAK,CAACZ,MAAM,CAAC,eAAClB,MAAA,CAAAwB,OAAA,CAAAC,aAAA,CAACc,YAAY,EAAAD,KAAA,CAAAZ,EAAA;IAAA,OAAA9B,KAAA,CAAA+B,WAAA;MAAA,OAAkB;IAAG,GAAAU,KAAA;EAAA,EAAE,CAAC;AACpE;AAEA,SAASG,QAAQA,CAACV,KAAqF,EAAE;EAAA,IAAAW,KAAA,GAAAT,YAAA;IAAAU,KAAA;EACvG,MAAMC,SAAS,GACiCR,mBAAG;EAAnD,OAAAO,KAAA,GAAO,IAAAvC,aAAO,EAAC2B,KAAK,CAACZ,MAAM,CAAC,eAAClB,MAAA,CAAAwB,OAAA,CAAAC,aAAA,CAACkB,SAAS,EAAAD,KAAA,CAAAhB,EAAA;IAAA,OAAA9B,KAAA,CAAA+B,WAAA,MAAAc,KAAA;EAAA,EAAe,CAAC;AACzD;AAEA,MAAMG,KAAK,GAAG,IAAAC,qBAAe,EAACpC,SAAS,EAAE;EACvCoB,KAAK;EACLO,WAAW;EACXI;AACF,CAAC,CAAuB;AAAC,IAAAM,QAAA,GAAAtC,OAAA,CAAAgB,OAAA,GAEVoB,KAAK","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.type.js","names":[],"sources":["../../src/Error.type.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\
|
|
1
|
+
{"version":3,"file":"Error.type.js","names":[],"sources":["../../src/Error.type.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\ndeclare namespace NSErrors {\n type Props = FlexProps & {\n /**\n * Error icon\n * Icon as a string is a URL to an image.\n */\n icon?: string | React.ReactNode;\n };\n type Ctx = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n };\n type IconName = TIllustrationNamesErrors;\n\n namespace Title {\n type Component = typeof Box;\n }\n\n namespace Description {\n type Component = typeof Box;\n }\n\n namespace Controls {\n type Component = typeof Box;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Title: Title.Component;\n Description: Description.Component;\n Controls: Controls.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ErrorsProps = NSErrors.Props;\n/** @deprecated It will be removed in v18. */\nexport type ErrorsContext = NSErrors.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type IconNamesErrors = NSErrors.IconName;\n\nexport type { NSErrors };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Maintenance.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootMaintenance","Component","render","_ref","asProps","Children","getI18nText","homeLink","toolName","titleTag","default","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/Maintenance/Maintenance.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type {
|
|
1
|
+
{"version":3,"file":"Maintenance.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootMaintenance","Component","render","_ref","asProps","Children","getI18nText","homeLink","toolName","titleTag","default","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/Maintenance/Maintenance.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSMaintenance } from './Maintenance.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSMaintenance.Component>,\n typeof RootMaintenance.enhance\n> {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('maintenance'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{`${toolName} ${getI18nText('title')}`}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootMaintenance) as NSMaintenance.Component;\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,eAAe,SAASC,eAAS,CAGrC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AAM,EAAE,IAAI;EACZpB,QAAQ,EAAE,GAAG;EACbqB,IAAI,EAAE,IAAAC,kBAAW,EAAC,aAAa,CAAC;EAChCpB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAoBY,IAAAsB,qBAAe,EAAChC,eAAe,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Maintenance.type.js","names":[],"sources":["../../../src/Maintenance/Maintenance.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"Maintenance.type.js","names":[],"sources":["../../../src/Maintenance/Maintenance.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSMaintenance {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type MaintenanceProps = NSMaintenance.Props;\n\nexport type { NSMaintenance };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageError.js","names":["_core","require","_button","_interopRequireDefault","_assignProps2","_canUseDOM","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageError","Component","constructor","args","_defineProperty2","default","canUseDOM","location","reload","render","_ref","asProps","Children","getI18nText","onClick","titleTag","createElement","Error","assignProps","Title","tag","Description","Controls","callAllEventHandlers","handleReload","size","use","theme","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type {
|
|
1
|
+
{"version":3,"file":"PageError.js","names":["_core","require","_button","_interopRequireDefault","_assignProps2","_canUseDOM","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageError","Component","constructor","args","_defineProperty2","default","canUseDOM","location","reload","render","_ref","asProps","Children","getI18nText","onClick","titleTag","createElement","Error","assignProps","Title","tag","Description","Controls","callAllEventHandlers","handleReload","size","use","theme","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageError } from './PageError.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nclass RootPageError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageError.Component>,\n typeof RootPageError.enhance\n> {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_error'),\n titleTag: 'h2',\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, titleTag } = this.asProps;\n\n return (\n <Root render={Error} __excludeProps={['Children', 'getI18nText', 'onClick', 'titleTag']}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageError) as NSPageError.Component;\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,YAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,MAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAEA,IAAAO,MAAA,GAAAC,uBAAA,CAAAR,OAAA;AAEA,IAAAS,4BAAA,GAAAT,OAAA;AACA,MAAMU,aAAa,SAASC,eAAS,CAGnC;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,wBAUe,MAAM;MACnB,IAAI,IAAAC,kBAAS,EAAC,CAAC,EAAE;QACfC,QAAQ,CAACC,MAAM,CAAC,CAAC;MACnB;IACF,CAAC;EAAA;EAEDC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,OAAO;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAEjE,oBACEf,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAAcC,cAAK,MAAA5B,KAAA,CAAA6B,WAAA;MAAA,kBAAkB,CAAC,UAAU,EAAE,aAAa,EAAE,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":"PageError.type.js","names":[],"sources":["../../../src/PageError/PageError.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"PageError.type.js","names":[],"sources":["../../../src/PageError/PageError.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageError {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageErrorProps = NSPageError.Props;\n\nexport type { NSPageError };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageNotFound","Component","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","default","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageNotFound/PageNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type {
|
|
1
|
+
{"version":3,"file":"PageNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageNotFound","Component","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","default","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageNotFound/PageNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageNotFound } from './PageNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageNotFound.Component>,\n typeof RootPageNotFound.enhance\n> {\n static displayName = 'PageNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageNotFound) as NSPageNotFound.Component;\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,u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7CT,gBAAgB,kBAME;EACpByB,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,gBAAgB,CAAC;EACnCrB,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAoBY,IAAAsB,qBAAe,EAAC/B,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound.type.js","names":[],"sources":["../../../src/PageNotFound/PageNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"PageNotFound.type.js","names":[],"sources":["../../../src/PageNotFound/PageNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageNotFound {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageNotFoundProps = NSPageNotFound.Props;\n\nexport type { NSPageNotFound };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_typography","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootProjectNotFound","Component","render","_ref","asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","default","createElement","ul","li","supportLink","href","Error","assignProps","Title","tag","Description","Text","formatTags","size","Controls","type","use","theme","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/ProjectNotFound/ProjectNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type {
|
|
1
|
+
{"version":3,"file":"ProjectNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_typography","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootProjectNotFound","Component","render","_ref","asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","default","createElement","ul","li","supportLink","href","Error","assignProps","Title","tag","Description","Text","formatTags","size","Controls","type","use","theme","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/ProjectNotFound/ProjectNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSProjectNotFound } from './ProjectNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSProjectNotFound.Component>,\n typeof RootProjectNotFound.enhance\n> {\n static displayName = 'ProjectNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: '/company/contacts',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink, titleTag } = this.asProps;\n const text = getI18nText('text', {\n p: (chunk: string) => <p>{chunk}</p>,\n ul: (chunk: string) => <ul>{chunk}</ul>,\n li: (chunk: string) => <li>{chunk}</li>,\n supportLink: (chunk: string) => <a href={supportTeamLink}>{chunk}</a>,\n });\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description tag={Text} formatTags={true} size={300}>\n {text}\n </Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={projectsLink}>\n {getI18nText('btnProjects')}\n </Button>\n <Button size='l' tag='a' type='none' href={contactsLink}>\n {getI18nText('btnContacts')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootProjectNotFound) as NSProjectNotFound.Component;\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AAEA,IAAAM,MAAA,GAAAC,uBAAA,CAAAP,OAAA;AAEA,IAAAQ,4BAAA,GAAAR,OAAA;AAEA,MAAMS,mBAAmB,SAASC,eAAS,CAGzC;EAaAC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,YAAY;MAAEC,YAAY;MAAEC,eAAe;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACN,OAAO;IACrG,MAAMO,IAAI,GAAGL,WAAW,CAAC,MAAM,EAAE;MAC/BM,CAAC,EAAGC,KAAa,iBAAKjB,MAAA,CAAAkB,OAAA,CAAAC,aAAA,YAAIF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C,GAAG;MAACJ,GAAG,EAAC,GAAG;MAACM,IAAI,EAAC,MAAM;MAACV,IAAI,EAAEX;IAAa,GACrDF,WAAW,CAAC,aAAa,CACpB,CACM,CACZ,CAAC;EAEX;AACF;AAAC,IAAA0B,gBAAA,CAAAlB,OAAA,EA1CKd,mBAAmB,iBAIF,iBAAiB;AAAA,IAAAgC,gBAAA,CAAAlB,OAAA,EAJlCd,mBAAmB,aAKN,CAAC,IAAAiC,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAlB,OAAA,EAL7Cd,mBAAmB,kBAMD;EACpBmC,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,mBAAmB,CAAC;EACtC/B,YAAY,EAAE,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,mBAAmB;EACpCC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAA6B,QAAA,GAAAC,OAAA,CAAA1B,OAAA,GA8BY,IAAA2B,qBAAe,EAACzC,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectNotFound.type.js","names":[],"sources":["../../../src/ProjectNotFound/ProjectNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"ProjectNotFound.type.js","names":[],"sources":["../../../src/ProjectNotFound/ProjectNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSProjectNotFound {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ProjectNotFoundProps = NSProjectNotFound.Props;\n\nexport type { NSProjectNotFound };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessDenied.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootAccessDenied","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"AccessDenied.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootAccessDenied","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/AccessDenied/AccessDenied.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type { NSAccessDenied } from './AccessDenied.type';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSAccessDenied.Component>,\n typeof RootAccessDenied.enhance\n> {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('access_denied'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description wMax='640px'>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootAccessDenied) as NSAccessDenied.Component;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAGzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,gBAAgB,SAASP,SAAS,CAGtC;EAWAQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAClE,oBACEP,KAAA,CAAAY,aAAA,CAAcX,KAAK,EAAAY,YAAA,KAAAP,IAAA,gBACjBN,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACa,KAAK;MAACC,GAAG,EAAEJ;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChET,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACe,WAAW;MAACC,IAAI,EAAC;IAAO,GAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eACzET,KAAA,CAAAY,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZR,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACiB,QAAQ,qBACblB,KAAA,CAAAY,aAAA,CAACjB,MAAM;MAACoB,GAAG,EAAC,GAAG;MAACI,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEb;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAACe,eAAA,CA7BKpB,gBAAgB,iBAIC,cAAc;AAAAoB,eAAA,CAJ/BpB,gBAAgB,aAKH,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAqB,eAAA,CAL7CpB,gBAAgB,kBAME;EACpBqB,IAAI,EAAEtB,iBAAiB;EACvBuB,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAEzB,WAAW,CAAC,eAAe,CAAC;EAClCS,QAAQ,EAAE;AACZ,CAAC;AAmBH,eAAef,eAAe,CAACQ,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessDenied.type.js","names":[],"sources":["../../../src/AccessDenied/AccessDenied.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"AccessDenied.type.js","names":[],"sources":["../../../src/AccessDenied/AccessDenied.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSAccessDenied {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type AccessDeniedProps = NSAccessDenied.Props;\n\nexport type { NSAccessDenied };\n"],"mappings":"","ignoreList":[]}
|
package/lib/es6/Error.js
CHANGED
|
@@ -9,17 +9,17 @@ import { createComponent, Root, Component, sstyled } from '@semcore/core';
|
|
|
9
9
|
import { getIllustrationPath } from '@semcore/illustration';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
/*!__reshadow-styles__:"./style/errors.shadow.css"*/
|
|
12
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
12
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SError_1wnzv_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-6x, 24px);margin:0 auto;max-width:960px}@media (max-width:647px){.___SError_1wnzv_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1wnzv_gg_ .___SControls_1wnzv_gg_{display:flex;flex-wrap:wrap;gap:var(--intergalactic-spacing-3x, 12px);align-items:center}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_{width:100%;display:flex;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}@media (max-width:647px){.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_{flex-direction:column}}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImageWrapper_1wnzv_gg_,.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImage_1wnzv_gg_{width:260px;height:260px}@media (max-width:647px){.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImageWrapper_1wnzv_gg_,.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImage_1wnzv_gg_{width:200px;height:200px}}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImageWrapper_1wnzv_gg_{flex-shrink:0;margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SWrapper_1wnzv_gg_{max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___STitle_1wnzv_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_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SDescription_1wnzv_gg_{display:block;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__*/"1wnzv_gg_"),
|
|
13
13
|
/*__reshadow_css_end__*/
|
|
14
14
|
{
|
|
15
|
-
"__SError": "
|
|
16
|
-
"__SControls": "
|
|
17
|
-
"__SInner": "
|
|
18
|
-
"__SImageWrapper": "
|
|
19
|
-
"__SImage": "
|
|
20
|
-
"__SWrapper": "
|
|
21
|
-
"__STitle": "
|
|
22
|
-
"__SDescription": "
|
|
15
|
+
"__SError": "___SError_1wnzv_gg_",
|
|
16
|
+
"__SControls": "___SControls_1wnzv_gg_",
|
|
17
|
+
"__SInner": "___SInner_1wnzv_gg_",
|
|
18
|
+
"__SImageWrapper": "___SImageWrapper_1wnzv_gg_",
|
|
19
|
+
"__SImage": "___SImage_1wnzv_gg_",
|
|
20
|
+
"__SWrapper": "___SWrapper_1wnzv_gg_",
|
|
21
|
+
"__STitle": "___STitle_1wnzv_gg_",
|
|
22
|
+
"__SDescription": "___SDescription_1wnzv_gg_"
|
|
23
23
|
});
|
|
24
24
|
export const getIconPath = name => getIllustrationPath(name);
|
|
25
25
|
class RootError extends Component {
|
package/lib/es6/Error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","names":["Box","Flex","createComponent","Root","Component","sstyled","getIllustrationPath","React","style","_sstyled","insert","getIconPath","name","RootError","render","_ref","asProps","_ref5","SError","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","createElement","cn","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref6","STitle","_assignProps2","Description","_ref3","_ref7","SDescription","_assignProps3","Controls","_ref4","_ref8","SControls","_assignProps4","Error"],"sources":["../../src/Error.tsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"Error.js","names":["Box","Flex","createComponent","Root","Component","sstyled","getIllustrationPath","React","style","_sstyled","insert","getIconPath","name","RootError","render","_ref","asProps","_ref5","SError","Children","styles","icon","SInner","SImageWrapper","SWrapper","SImage","createElement","cn","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref6","STitle","_assignProps2","Description","_ref3","_ref7","SDescription","_assignProps3","Controls","_ref4","_ref8","SControls","_assignProps4","Error"],"sources":["../../src/Error.tsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport type { NSErrors } from './Error.type';\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name: NSErrors.IconName) => getIllustrationPath(name);\n\nclass RootError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSErrors.Component>\n> {\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='' /> : icon}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Title.Component>) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Description.Component>) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props: Intergalactic.InternalTypings.InferComponentProps<NSErrors.Controls.Component>) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nconst Error = createComponent(RootError, {\n Title,\n Description,\n Controls,\n}) as NSErrors.Component;\n\nexport default Error;\n"],"mappings":";;;;;;AAAA,SAASA,GAAG,EAAEC,IAAI,QAAQ,0BAA0B;AAEpD,SAASC,eAAe,EAAEC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAK1B,OAAO,MAAMC,WAAW,GAAIC,IAAuB,IAAKN,mBAAmB,CAACM,IAAI,CAAC;AAEjF,MAAMC,SAAS,SAAST,SAAS,CAE/B;EAIAU,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,MAAM,GAOMjB,IAAI;IANtB,MAAM;MAAEkB,QAAQ;MAAEC,MAAM;MAAEC;IAAK,CAAC,G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,WAAWA,CAACN,KAAwF,EAAE;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAC7G,MAAMC,YAAY,GACiCxC,GAAG;EAAtD,OAAAuC,KAAA,GAAOlC,OAAO,CAAC0B,KAAK,CAACX,MAAM,CAAC,eAACb,KAAA,CAAAmB,aAAA,CAACc,YAAY,EAAAD,KAAA,CAAAZ,EAAA;IAAA,GAAAc,aAAA;MAAA,OAAkB;IAAG,GAAAH,KAAA;EAAA,EAAE,CAAC;AACpE;AAEA,SAASI,QAAQA,CAACX,KAAqF,EAAE;EAAA,IAAAY,KAAA,GAAAV,YAAA;IAAAW,KAAA;EACvG,MAAMC,SAAS,GACiC7C,GAAG;EAAnD,OAAA4C,KAAA,GAAOvC,OAAO,CAAC0B,KAAK,CAACX,MAAM,CAAC,eAACb,KAAA,CAAAmB,aAAA,CAACmB,SAAS,EAAAD,KAAA,CAAAjB,EAAA;IAAA,GAAAmB,aAAA,KAAAH,KAAA;EAAA,EAAe,CAAC;AACzD;AAEA,MAAMI,KAAK,GAAG7C,eAAe,CAACW,SAAS,EAAE;EACvCiB,KAAK;EACLO,WAAW;EACXK;AACF,CAAC,CAAuB;AAExB,eAAeK,KAAK","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.type.js","names":[],"sources":["../../src/Error.type.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\
|
|
1
|
+
{"version":3,"file":"Error.type.js","names":[],"sources":["../../src/Error.type.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { TIllustrationNamesErrors } from '@semcore/illustration';\nimport type React from 'react';\n\ndeclare namespace NSErrors {\n type Props = FlexProps & {\n /**\n * Error icon\n * Icon as a string is a URL to an image.\n */\n icon?: string | React.ReactNode;\n };\n type Ctx = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n };\n type IconName = TIllustrationNamesErrors;\n\n namespace Title {\n type Component = typeof Box;\n }\n\n namespace Description {\n type Component = typeof Box;\n }\n\n namespace Controls {\n type Component = typeof Box;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Title: Title.Component;\n Description: Description.Component;\n Controls: Controls.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ErrorsProps = NSErrors.Props;\n/** @deprecated It will be removed in v18. */\nexport type ErrorsContext = NSErrors.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type IconNamesErrors = NSErrors.IconName;\n\nexport type { NSErrors };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Maintenance.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootMaintenance","render","_ref","asProps","Children","getI18nText","homeLink","toolName","titleTag","createElement","_assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/Maintenance/Maintenance.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type {
|
|
1
|
+
{"version":3,"file":"Maintenance.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootMaintenance","render","_ref","asProps","Children","getI18nText","homeLink","toolName","titleTag","createElement","_assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/Maintenance/Maintenance.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSMaintenance } from './Maintenance.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSMaintenance.Component>,\n typeof RootMaintenance.enhance\n> {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n homeLink: '/',\n icon: getIconPath('maintenance'),\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{`${toolName} ${getI18nText('title')}`}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootMaintenance) as NSMaintenance.Component;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAE7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,eAAe,SAASP,SAAS,CAGrC;EAWAQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACL,OAAO;IAE5E,oBACEP,KAAA,CAAAa,aAAA,CAAcZ,KAAK,EAAAa,YAAA,KAAAR,IAAA,gBACjBN,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACc,KAAK;MAACC,GAAG,EAAEJ;IAAS,GAAE,GAAGD,QAAQ,IAAIF,WAAW,CAAC,OAAO,CAAC,EAAgB,CAAC,eACjFT,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACgB,WAAW,QAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DT,KAAA,CAAAa,aAAA,CAACL,QAAQ,MAAE,CAAC,eACZR,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACiB,QAAQ,qBACblB,KAAA,CAAAa,aAAA,CAAClB,MAAM;MAACqB,GAAG,EAAC,GAAG;MAACG,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEb;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAACe,eAAA,CA9BKpB,eAAe,iBAIE,aAAa;AAAAoB,eAAA,CAJ9BpB,eAAe,aAKF,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAqB,eAAA,CAL7CpB,eAAe,kBAMG;EACpBqB,IAAI,EAAEtB,iBAAiB;EACvBuB,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAEzB,WAAW,CAAC,aAAa,CAAC;EAChCU,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAehB,eAAe,CAACQ,eAAe,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Maintenance.type.js","names":[],"sources":["../../../src/Maintenance/Maintenance.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"Maintenance.type.js","names":[],"sources":["../../../src/Maintenance/Maintenance.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSMaintenance {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type MaintenanceProps = NSMaintenance.Props;\n\nexport type { NSMaintenance };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageError.js","names":["Button","createComponent","Component","Root","callAllEventHandlers","canUseDOM","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageError","constructor","args","_defineProperty","location","reload","render","_ref","asProps","Children","getI18nText","onClick","titleTag","createElement","_assignProps","Title","tag","Description","Controls","handleReload","size","use","theme","i18n","locale","icon"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type {
|
|
1
|
+
{"version":3,"file":"PageError.js","names":["Button","createComponent","Component","Root","callAllEventHandlers","canUseDOM","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageError","constructor","args","_defineProperty","location","reload","render","_ref","asProps","Children","getI18nText","onClick","titleTag","createElement","_assignProps","Title","tag","Description","Controls","handleReload","size","use","theme","i18n","locale","icon"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageError } from './PageError.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nclass RootPageError extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageError.Component>,\n typeof RootPageError.enhance\n> {\n static displayName = 'PageError';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_error'),\n titleTag: 'h2',\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, titleTag } = this.asProps;\n\n return (\n <Root render={Error} __excludeProps={['Children', 'getI18nText', 'onClick', 'titleTag']}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageError) as NSPageError.Component;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,OAAOC,SAAS,MAAM,mCAAmC;AACzD,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAE7C,SAASC,iBAAiB,QAAQ,gDAAgD;AA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B,IAAI,EAAExB,iBAAiB;EACvByB,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE3B,WAAW,CAAC,YAAY,CAAC;EAC/Bc,QAAQ,EAAE;AACZ,CAAC;AA+BH,eAAetB,eAAe,CAACU,aAAa,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageError.type.js","names":[],"sources":["../../../src/PageError/PageError.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"PageError.type.js","names":[],"sources":["../../../src/PageError/PageError.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageError {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageErrorProps = NSPageError.Props;\n\nexport type { NSPageError };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageNotFound","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/PageNotFound/PageNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type {
|
|
1
|
+
{"version":3,"file":"PageNotFound.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageNotFound","render","_ref","asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/PageNotFound/PageNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSPageNotFound } from './PageNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSPageNotFound.Component>,\n typeof RootPageNotFound.enhance\n> {\n static displayName = 'PageNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, homeLink, titleTag } = this.asProps;\n\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={homeLink}>\n {getI18nText('btnHome')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageNotFound) as NSPageNotFound.Component;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;A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;EACbC,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAef,eAAe,CAACQ,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound.type.js","names":[],"sources":["../../../src/PageNotFound/PageNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"PageNotFound.type.js","names":[],"sources":["../../../src/PageNotFound/PageNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSPageNotFound {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PageNotFoundProps = NSPageNotFound.Props;\n\nexport type { NSPageNotFound };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectNotFound.js","names":["Button","createComponent","Component","Root","i18nEnhance","Text","React","Error","getIconPath","localizedMessages","RootProjectNotFound","render","_ref","asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","createElement","ul","li","supportLink","href","_assignProps","Title","tag","Description","formatTags","size","Controls","type","use","theme","_defineProperty","i18n","locale","icon"],"sources":["../../../src/ProjectNotFound/ProjectNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type {
|
|
1
|
+
{"version":3,"file":"ProjectNotFound.js","names":["Button","createComponent","Component","Root","i18nEnhance","Text","React","Error","getIconPath","localizedMessages","RootProjectNotFound","render","_ref","asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","createElement","ul","li","supportLink","href","_assignProps","Title","tag","Description","formatTags","size","Controls","type","use","theme","_defineProperty","i18n","locale","icon"],"sources":["../../../src/ProjectNotFound/ProjectNotFound.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { NSProjectNotFound } from './ProjectNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSProjectNotFound.Component>,\n typeof RootProjectNotFound.enhance\n> {\n static displayName = 'ProjectNotFound';\n static enhance = [i18nEnhance(localizedMessages)] as const;\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: '/company/contacts',\n titleTag: 'h2',\n };\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink, titleTag } = this.asProps;\n const text = getI18nText('text', {\n p: (chunk: string) => <p>{chunk}</p>,\n ul: (chunk: string) => <ul>{chunk}</ul>,\n li: (chunk: string) => <li>{chunk}</li>,\n supportLink: (chunk: string) => <a href={supportTeamLink}>{chunk}</a>,\n });\n return (\n <Root render={Error}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description tag={Text} formatTags={true} size={300}>\n {text}\n </Error.Description>\n <Children />\n <Error.Controls>\n <Button tag='a' type='none' size='l' use='primary' theme='info' href={projectsLink}>\n {getI18nText('btnProjects')}\n </Button>\n <Button size='l' tag='a' type='none' href={contactsLink}>\n {getI18nText('btnContacts')}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootProjectNotFound) as NSProjectNotFound.Component;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,SAASC,IAAI,QAAQ,qBAAqB;AAC1C,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAE7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,mBAAmB,SAASR,SAAS,CAGzC;EAaAS,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,YAAY;MAAEC,YAAY;MAAEC,eAAe;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACN,OAAO;IACrG,MAAMO,IAAI,GAAGL,WAAW,CAAC,MAAM,EAAE;MAC/BM,CAAC,EAAGC,KAAa,iBAAKhB,KAAA,CAAAiB,aAAA,YAAID,KAAS,CAAC;MACpCE,EAAE,EAAGF,KAAa,iBAAKhB,KAAA,CAAAiB,aAAA,aAAKD,KAAU,CAAC;MACvCG,EAAE,EAAGH,KAAa,iBAAKhB,KAAA,CAAAiB,aAAA,aAAKD,KAAU,CAAC;MACvCI,WAAW,EAAGJ,KAAa,iBAAKhB,KAAA,CAAAiB,aAAA;QAAGI,IAAI,EAAET;MAAgB,GAAEI,KAAS;IACtE,CAAC,CAAC;IACF,oBACEhB,KAAA,CAAAiB,aAAA,CAAchB,KAAK,EAAAqB,YAAA,KAAAhB,IAAA,gBACjBN,KAAA,CAAAiB,aAAA,CA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1
|
-
{"version":3,"file":"ProjectNotFound.type.js","names":[],"sources":["../../../src/ProjectNotFound/ProjectNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"ProjectNotFound.type.js","names":[],"sources":["../../../src/ProjectNotFound/ProjectNotFound.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\n\nimport type { NSErrors } from '../Error.type';\n\ndeclare namespace NSProjectNotFound {\n type Props = 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 type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ProjectNotFoundProps = NSProjectNotFound.Props;\n\nexport type { NSProjectNotFound };\n"],"mappings":"","ignoreList":[]}
|
package/lib/esm/Error.mjs
CHANGED
|
@@ -8,19 +8,19 @@ const style = (
|
|
|
8
8
|
/*__reshadow_css_start__*/
|
|
9
9
|
(sstyled.insert(
|
|
10
10
|
/*__inner_css_start__*/
|
|
11
|
-
".
|
|
11
|
+
".___SError_1wnzv_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-6x, 24px);margin:0 auto;max-width:960px}@media (max-width:647px){.___SError_1wnzv_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1wnzv_gg_ .___SControls_1wnzv_gg_{display:flex;flex-wrap:wrap;gap:var(--intergalactic-spacing-3x, 12px);align-items:center}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_{width:100%;display:flex;justify-content:flex-start;align-items:flex-start;box-sizing:border-box}@media (max-width:647px){.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_{flex-direction:column}}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImageWrapper_1wnzv_gg_,.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImage_1wnzv_gg_{width:260px;height:260px}@media (max-width:647px){.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImageWrapper_1wnzv_gg_,.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImage_1wnzv_gg_{width:200px;height:200px}}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SImageWrapper_1wnzv_gg_{flex-shrink:0;margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SWrapper_1wnzv_gg_{max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1wnzv_gg_ .___SInner_1wnzv_gg_ .___STitle_1wnzv_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_1wnzv_gg_ .___SInner_1wnzv_gg_ .___SDescription_1wnzv_gg_{display:block;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}",
|
|
12
12
|
/*__inner_css_end__*/
|
|
13
|
-
"
|
|
13
|
+
"1wnzv_gg_"
|
|
14
14
|
), /*__reshadow_css_end__*/
|
|
15
15
|
{
|
|
16
|
-
"__SError": "
|
|
17
|
-
"__SControls": "
|
|
18
|
-
"__SInner": "
|
|
19
|
-
"__SImageWrapper": "
|
|
20
|
-
"__SImage": "
|
|
21
|
-
"__SWrapper": "
|
|
22
|
-
"__STitle": "
|
|
23
|
-
"__SDescription": "
|
|
16
|
+
"__SError": "___SError_1wnzv_gg_",
|
|
17
|
+
"__SControls": "___SControls_1wnzv_gg_",
|
|
18
|
+
"__SInner": "___SInner_1wnzv_gg_",
|
|
19
|
+
"__SImageWrapper": "___SImageWrapper_1wnzv_gg_",
|
|
20
|
+
"__SImage": "___SImage_1wnzv_gg_",
|
|
21
|
+
"__SWrapper": "___SWrapper_1wnzv_gg_",
|
|
22
|
+
"__STitle": "___STitle_1wnzv_gg_",
|
|
23
|
+
"__SDescription": "___SDescription_1wnzv_gg_"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
const getIconPath = (name) => getIllustrationPath(name);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const _default:
|
|
1
|
+
import type { NSAccessDenied } from './AccessDenied.type';
|
|
2
|
+
declare const _default: NSAccessDenied.Component;
|
|
3
3
|
export default _default;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import type { Intergalactic } from '@semcore/core';
|
|
2
2
|
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
import type { NSErrors } from '../Error.type';
|
|
4
|
+
declare namespace NSAccessDenied {
|
|
5
|
+
type Props = WithI18nEnhanceProps & {
|
|
6
|
+
/**
|
|
7
|
+
* href of the home link
|
|
8
|
+
* @default /
|
|
9
|
+
*/
|
|
10
|
+
homeLink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* HTML tag of the error title
|
|
13
|
+
* @default h2
|
|
14
|
+
*/
|
|
15
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
16
|
+
};
|
|
17
|
+
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
18
|
+
}
|
|
19
|
+
/** @deprecated It will be removed in v18. */
|
|
20
|
+
export type AccessDeniedProps = NSAccessDenied.Props;
|
|
21
|
+
export type { NSAccessDenied };
|
package/lib/types/Error.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const getIconPath: (name:
|
|
3
|
-
declare const Error:
|
|
1
|
+
import type { NSErrors } from './Error.type';
|
|
2
|
+
export declare const getIconPath: (name: NSErrors.IconName) => string;
|
|
3
|
+
declare const Error: NSErrors.Component;
|
|
4
4
|
export default Error;
|
|
@@ -2,25 +2,39 @@ import type { Box, FlexProps } from '@semcore/base-components';
|
|
|
2
2
|
import type { Intergalactic, PropGetterFn } from '@semcore/core';
|
|
3
3
|
import type { TIllustrationNamesErrors } from '@semcore/illustration';
|
|
4
4
|
import type React from 'react';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Controls
|
|
26
|
-
|
|
5
|
+
declare namespace NSErrors {
|
|
6
|
+
type Props = FlexProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Error icon
|
|
9
|
+
* Icon as a string is a URL to an image.
|
|
10
|
+
*/
|
|
11
|
+
icon?: string | React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
type Ctx = {
|
|
14
|
+
getTextProps: PropGetterFn;
|
|
15
|
+
getDescriptionProps: PropGetterFn;
|
|
16
|
+
getControlsProps: PropGetterFn;
|
|
17
|
+
};
|
|
18
|
+
type IconName = TIllustrationNamesErrors;
|
|
19
|
+
namespace Title {
|
|
20
|
+
type Component = typeof Box;
|
|
21
|
+
}
|
|
22
|
+
namespace Description {
|
|
23
|
+
type Component = typeof Box;
|
|
24
|
+
}
|
|
25
|
+
namespace Controls {
|
|
26
|
+
type Component = typeof Box;
|
|
27
|
+
}
|
|
28
|
+
type Component = Intergalactic.Component<'div', Props, Ctx> & {
|
|
29
|
+
Title: Title.Component;
|
|
30
|
+
Description: Description.Component;
|
|
31
|
+
Controls: Controls.Component;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/** @deprecated It will be removed in v18. */
|
|
35
|
+
export type ErrorsProps = NSErrors.Props;
|
|
36
|
+
/** @deprecated It will be removed in v18. */
|
|
37
|
+
export type ErrorsContext = NSErrors.Ctx;
|
|
38
|
+
/** @deprecated It will be removed in v18. */
|
|
39
|
+
export type IconNamesErrors = NSErrors.IconName;
|
|
40
|
+
export type { NSErrors };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const _default:
|
|
1
|
+
import type { NSMaintenance } from './Maintenance.type';
|
|
2
|
+
declare const _default: NSMaintenance.Component;
|
|
3
3
|
export default _default;
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import type { Intergalactic } from '@semcore/core';
|
|
2
2
|
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
3
|
+
import type { NSErrors } from '../Error.type';
|
|
4
|
+
declare namespace NSMaintenance {
|
|
5
|
+
type Props = WithI18nEnhanceProps & {
|
|
6
|
+
/**
|
|
7
|
+
* Tool name
|
|
8
|
+
*/
|
|
9
|
+
toolName: string;
|
|
10
|
+
/**
|
|
11
|
+
* href of the home link
|
|
12
|
+
* @default /
|
|
13
|
+
*/
|
|
14
|
+
homeLink?: string;
|
|
15
|
+
/**
|
|
16
|
+
* HTML tag of the error title
|
|
17
|
+
* @default h2
|
|
18
|
+
*/
|
|
19
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
20
|
+
};
|
|
21
|
+
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
22
|
+
}
|
|
23
|
+
/** @deprecated It will be removed in v18. */
|
|
24
|
+
export type MaintenanceProps = NSMaintenance.Props;
|
|
25
|
+
export type { NSMaintenance };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const _default:
|
|
1
|
+
import type { NSPageError } from './PageError.type';
|
|
2
|
+
declare const _default: NSPageError.Component;
|
|
3
3
|
export default _default;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import type { Intergalactic } from '@semcore/core';
|
|
2
2
|
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
import type { NSErrors } from '../Error.type';
|
|
4
|
+
declare namespace NSPageError {
|
|
5
|
+
type Props = WithI18nEnhanceProps & {
|
|
6
|
+
/**
|
|
7
|
+
* Page reloading button click handler
|
|
8
|
+
* @default () => { if (canUseDOM()) { location.reload(); } }
|
|
9
|
+
*/
|
|
10
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
11
|
+
/**
|
|
12
|
+
* HTML tag of the error title
|
|
13
|
+
* @default h2
|
|
14
|
+
*/
|
|
15
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
16
|
+
};
|
|
17
|
+
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
18
|
+
}
|
|
19
|
+
/** @deprecated It will be removed in v18. */
|
|
20
|
+
export type PageErrorProps = NSPageError.Props;
|
|
21
|
+
export type { NSPageError };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const _default:
|
|
1
|
+
import type { NSPageNotFound } from './PageNotFound.type';
|
|
2
|
+
declare const _default: NSPageNotFound.Component;
|
|
3
3
|
export default _default;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import type { Intergalactic } from '@semcore/core';
|
|
2
2
|
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
import type { NSErrors } from '../Error.type';
|
|
4
|
+
declare namespace NSPageNotFound {
|
|
5
|
+
type Props = WithI18nEnhanceProps & {
|
|
6
|
+
/**
|
|
7
|
+
* href of the home link
|
|
8
|
+
* @default /
|
|
9
|
+
*/
|
|
10
|
+
homeLink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* HTML tag of the error title
|
|
13
|
+
* @default h2
|
|
14
|
+
*/
|
|
15
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
16
|
+
};
|
|
17
|
+
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
18
|
+
}
|
|
19
|
+
/** @deprecated It will be removed in v18. */
|
|
20
|
+
export type PageNotFoundProps = NSPageNotFound.Props;
|
|
21
|
+
export type { NSPageNotFound };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const _default:
|
|
1
|
+
import type { NSProjectNotFound } from './ProjectNotFound.type';
|
|
2
|
+
declare const _default: NSProjectNotFound.Component;
|
|
3
3
|
export default _default;
|
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import type { Intergalactic } from '@semcore/core';
|
|
2
2
|
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
3
|
+
import type { NSErrors } from '../Error.type';
|
|
4
|
+
declare namespace NSProjectNotFound {
|
|
5
|
+
type Props = WithI18nEnhanceProps & {
|
|
6
|
+
/**
|
|
7
|
+
* URL for the "Go to Projects" button
|
|
8
|
+
* @default /projects
|
|
9
|
+
*/
|
|
10
|
+
projectsLink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* URL for the "Contact us" button
|
|
13
|
+
* @default /company/contacts
|
|
14
|
+
*/
|
|
15
|
+
contactsLink?: string;
|
|
16
|
+
/**
|
|
17
|
+
* URL for the "Support Team" link
|
|
18
|
+
* @default /company/contacts
|
|
19
|
+
*/
|
|
20
|
+
supportTeamLink?: string;
|
|
21
|
+
/**
|
|
22
|
+
* HTML tag of the error title
|
|
23
|
+
* @default h2
|
|
24
|
+
*/
|
|
25
|
+
titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';
|
|
26
|
+
};
|
|
27
|
+
type Component = Intergalactic.Component<'div', Props & NSErrors.Props>;
|
|
28
|
+
}
|
|
29
|
+
/** @deprecated It will be removed in v18. */
|
|
30
|
+
export type ProjectNotFoundProps = NSProjectNotFound.Props;
|
|
31
|
+
export type { NSProjectNotFound };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/errors",
|
|
3
3
|
"description": "Semrush Errors Component",
|
|
4
|
-
"version": "17.0.1",
|
|
4
|
+
"version": "17.0.2-prerelease.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"require": "./lib/cjs/index.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "^17.0.1",
|
|
17
|
+
"@semcore/button": "^17.0.1-prerelease.1",
|
|
18
18
|
"@semcore/illustration": "^17.0.1",
|
|
19
|
-
"@semcore/typography": "^17.0.1"
|
|
19
|
+
"@semcore/typography": "^17.0.2-prerelease.1"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@semcore/base-components": "^17.0.
|
|
22
|
+
"@semcore/base-components": "^17.0.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@semcore/core": "17.0.1",
|
|
31
|
-
"@semcore/base-components": "17.0.1",
|
|
31
|
+
"@semcore/base-components": "17.0.2-prerelease.1",
|
|
32
32
|
"@semcore/testing-utils": "1.0.0"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|