@semcore/errors 16.2.0 → 16.2.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 +1 -1
- package/lib/cjs/AccessDenied/{AccessDenied.js → index.js} +1 -1
- package/lib/cjs/AccessDenied/index.js.map +1 -0
- package/lib/cjs/Error.js +15 -16
- package/lib/cjs/Error.js.map +1 -1
- package/lib/cjs/Maintenance/{Maintenance.js → index.js} +1 -1
- package/lib/cjs/Maintenance/index.js.map +1 -0
- package/lib/cjs/PageError/{PageError.js → index.js} +10 -10
- package/lib/cjs/PageError/index.js.map +1 -0
- package/lib/cjs/PageNotFound/{PageNotFound.js → index.js} +2 -2
- package/lib/cjs/PageNotFound/index.js.map +1 -0
- package/lib/cjs/ProjectNotFound/{ProjectNotFound.js → index.js} +5 -6
- package/lib/cjs/ProjectNotFound/index.js.map +1 -0
- package/lib/cjs/index.d.js +15 -0
- package/lib/cjs/index.d.js.map +1 -0
- package/lib/cjs/index.js +8 -76
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/errors.shadow.css +0 -1
- package/lib/es6/AccessDenied/{AccessDenied.js → index.js} +1 -1
- package/lib/es6/AccessDenied/index.js.map +1 -0
- package/lib/es6/Error.js +11 -12
- package/lib/es6/Error.js.map +1 -1
- package/lib/es6/Maintenance/{Maintenance.js → index.js} +1 -1
- package/lib/es6/Maintenance/index.js.map +1 -0
- package/lib/es6/PageError/{PageError.js → index.js} +7 -8
- package/lib/es6/PageError/index.js.map +1 -0
- package/lib/es6/PageNotFound/{PageNotFound.js → index.js} +2 -2
- package/lib/es6/PageNotFound/index.js.map +1 -0
- package/lib/es6/ProjectNotFound/{ProjectNotFound.js → index.js} +5 -6
- package/lib/es6/ProjectNotFound/index.js.map +1 -0
- package/lib/es6/index.d.js +16 -0
- package/lib/es6/index.d.js.map +1 -0
- package/lib/es6/index.js +7 -12
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/errors.shadow.css +0 -1
- package/lib/esm/AccessDenied/{AccessDenied.mjs → index.mjs} +3 -3
- package/lib/esm/Error.mjs +13 -13
- package/lib/esm/Maintenance/{Maintenance.mjs → index.mjs} +3 -3
- package/lib/esm/PageError/{PageError.mjs → index.mjs} +7 -8
- package/lib/esm/PageNotFound/{PageNotFound.mjs → index.mjs} +4 -4
- package/lib/esm/ProjectNotFound/{ProjectNotFound.mjs → index.mjs} +7 -8
- package/lib/esm/index.mjs +5 -11
- package/lib/esm/style/errors.shadow.css +0 -1
- package/lib/types/index.d.ts +128 -12
- package/package.json +8 -8
- package/lib/cjs/AccessDenied/AccessDenied.js.map +0 -1
- package/lib/cjs/AccessDenied/AccessDenied.type.js +0 -2
- package/lib/cjs/AccessDenied/AccessDenied.type.js.map +0 -1
- package/lib/cjs/Error.type.js +0 -2
- package/lib/cjs/Error.type.js.map +0 -1
- package/lib/cjs/Maintenance/Maintenance.js.map +0 -1
- package/lib/cjs/Maintenance/Maintenance.type.js +0 -2
- package/lib/cjs/Maintenance/Maintenance.type.js.map +0 -1
- package/lib/cjs/PageError/PageError.js.map +0 -1
- package/lib/cjs/PageError/PageError.type.js +0 -2
- package/lib/cjs/PageError/PageError.type.js.map +0 -1
- package/lib/cjs/PageNotFound/PageNotFound.js.map +0 -1
- package/lib/cjs/PageNotFound/PageNotFound.type.js +0 -2
- package/lib/cjs/PageNotFound/PageNotFound.type.js.map +0 -1
- package/lib/cjs/ProjectNotFound/ProjectNotFound.js.map +0 -1
- package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js +0 -2
- package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js.map +0 -1
- package/lib/es6/AccessDenied/AccessDenied.js.map +0 -1
- package/lib/es6/AccessDenied/AccessDenied.type.js +0 -2
- package/lib/es6/AccessDenied/AccessDenied.type.js.map +0 -1
- package/lib/es6/Error.type.js +0 -2
- package/lib/es6/Error.type.js.map +0 -1
- package/lib/es6/Maintenance/Maintenance.js.map +0 -1
- package/lib/es6/Maintenance/Maintenance.type.js +0 -2
- package/lib/es6/Maintenance/Maintenance.type.js.map +0 -1
- package/lib/es6/PageError/PageError.js.map +0 -1
- package/lib/es6/PageError/PageError.type.js +0 -2
- package/lib/es6/PageError/PageError.type.js.map +0 -1
- package/lib/es6/PageNotFound/PageNotFound.js.map +0 -1
- package/lib/es6/PageNotFound/PageNotFound.type.js +0 -2
- package/lib/es6/PageNotFound/PageNotFound.type.js.map +0 -1
- package/lib/es6/ProjectNotFound/ProjectNotFound.js.map +0 -1
- package/lib/es6/ProjectNotFound/ProjectNotFound.type.js +0 -2
- package/lib/es6/ProjectNotFound/ProjectNotFound.type.js.map +0 -1
- package/lib/esm/AccessDenied/AccessDenied.type.mjs +0 -1
- package/lib/esm/Error.type.mjs +0 -1
- package/lib/esm/Maintenance/Maintenance.type.mjs +0 -1
- package/lib/esm/PageError/PageError.type.mjs +0 -1
- package/lib/esm/PageNotFound/PageNotFound.type.mjs +0 -1
- package/lib/esm/ProjectNotFound/ProjectNotFound.type.mjs +0 -1
- package/lib/types/AccessDenied/AccessDenied.d.ts +0 -3
- package/lib/types/AccessDenied/AccessDenied.type.d.ts +0 -21
- package/lib/types/AccessDenied/translations/__intergalactic-dynamic-locales.d.ts +0 -77
- package/lib/types/Error.d.ts +0 -4
- package/lib/types/Error.type.d.ts +0 -40
- package/lib/types/Maintenance/Maintenance.d.ts +0 -3
- package/lib/types/Maintenance/Maintenance.type.d.ts +0 -25
- package/lib/types/Maintenance/translations/__intergalactic-dynamic-locales.d.ts +0 -77
- package/lib/types/PageError/PageError.d.ts +0 -3
- package/lib/types/PageError/PageError.type.d.ts +0 -21
- package/lib/types/PageError/translations/__intergalactic-dynamic-locales.d.ts +0 -77
- package/lib/types/PageNotFound/PageNotFound.d.ts +0 -3
- package/lib/types/PageNotFound/PageNotFound.type.d.ts +0 -21
- package/lib/types/PageNotFound/translations/__intergalactic-dynamic-locales.d.ts +0 -77
- package/lib/types/ProjectNotFound/ProjectNotFound.d.ts +0 -3
- package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts +0 -31
- package/lib/types/ProjectNotFound/translations/__intergalactic-dynamic-locales.d.ts +0 -92
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/errors",
|
|
3
3
|
"description": "Semrush Errors Component",
|
|
4
|
-
"version": "16.2.
|
|
4
|
+
"version": "16.2.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "16.1.
|
|
18
|
-
"@semcore/format-text": "16.2.
|
|
19
|
-
"@semcore/illustration": "16.1.
|
|
20
|
-
"@semcore/typography": "16.4.
|
|
21
|
-
"@semcore/flex-box": "16.1.
|
|
17
|
+
"@semcore/button": "16.1.1",
|
|
18
|
+
"@semcore/format-text": "16.2.1",
|
|
19
|
+
"@semcore/illustration": "16.1.1",
|
|
20
|
+
"@semcore/typography": "16.4.1",
|
|
21
|
+
"@semcore/flex-box": "16.1.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@semcore/base-components": "^16.6.0"
|
|
@@ -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.6.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "pnpm semcore-builder --source=js && pnpm vite build"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccessDenied.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootAccessDenied","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","titleTag","createElement","Error","assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","Component","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/AccessDenied/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,OAAA;AAFA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAA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,KAAK,EAAC,MAAM;QAACC,IAAI,EAAEd;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EA5B4BgB,eAAS;AAAA,IAAAC,gBAAA,aAAlC/B,gBAAgB,iBAIC,cAAc;AAAA,IAAA+B,gBAAA,aAJ/B/B,gBAAgB,aAKH,CAAC,IAAAgC,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,aAL7C/B,gBAAgB,kBAME;EACpBkC,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZpB,QAAQ,EAAE,GAAG;EACbqB,IAAI,EAAE,IAAAC,kBAAW,EAAC,eAAe,CAAC;EAClCrB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAsB,QAAA,GAAAC,OAAA,cAmBY,IAAAC,qBAAe,EAACxC,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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.type.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Maintenance.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootMaintenance","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","toolName","titleTag","createElement","Error","assignProps","Title","tag","concat","Description","Controls","type","size","use","theme","href","Component","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/Maintenance/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;AAAmF,IAE7EQ,eAAe,0BAAAC,UAAA;EAAA,SAAAD,gBAAA;IAAA,IAAAE,gBAAA,mBAAAF,eAAA;IAAA,WAAAG,WAAA,mBAAAH,eAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,eAAA,EAAAC,UAAA;EAAA,WAAAK,aAAA,aAAAN,eAAA;IAAAO,GAAA;IAAAC,KAAA,EAcnB,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GAAgE,IAA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,EAAE,GAAG;EACbsB,IAAI,EAAE,IAAAC,kBAAW,EAAC,aAAa,CAAC;EAChCrB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAsB,QAAA,GAAAC,OAAA,cAoBY,IAAAC,qBAAe,EAACzC,eAAe,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageError.js","names":["_core","require","_button","_interopRequireDefault","_assignProps2","_canUseDOM","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageError","_Component","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","_callSuper2","concat","_defineProperty2","canUseDOM","location","reload","_inherits2","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","onClick","titleTag","createElement","Error","assignProps","Title","tag","Description","Controls","callAllEventHandlers","handleReload","size","use","theme","Component","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;AAAmF,IAC7EU,aAAa,0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MAAA,WAAK,CAACoC,WAAW,QAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5D7B,MAAA,YAAAgC,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZ5B,MAAA,YAAAgC,aAAA,CAAC/B,MAAA,WAAK,CAACqC,QAAQ,qBACbtC,MAAA,YAAAgC,aAAA,CAACrC,OAAA,WAAM;QACLmC,OAAO,EAAE,IAAAS,kCAAoB,EAACT,OAAO,EAAE,IAAI,CAACU,YAAY,CAAE;QAC1DC,IAAI,EAAC,GAAG;QACRC,GAAG,EAAC,SAAS;QACbC,KAAK,EAAC;MAAM,GAEXd,WAAW,CAAC,UAAU,CACjB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EAvCyBe,eAAS;AAAA,IAAA5B,gBAAA,aAA/BZ,aAAa,iBAII,WAAW;AAAA,IAAAY,gBAAA,aAJ5BZ,aAAa,aAKA,CAAC,IAAAyC,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAA9B,gBAAA,aAL7CZ,aAAa,kBAMK;EACpB2C,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,YAAY,CAAC;EAC/BnB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAoB,QAAA,GAAAC,OAAA,cA+BY,IAAAC,qBAAe,EAACjD,aAAa,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageNotFound","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","titleTag","createElement","Error","assignProps","Title","tag","Description","Controls","type","size","use","theme","href","Component","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","icon","getIconPath","_default","exports","createComponent"],"sources":["../../../src/PageNotFound/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,uBAAA,CAAAN,OAAA;AAEA,IAAAO,4BAAA,GAAAP,OAAA;AAAmF,IAE7EQ,gBAAgB,0BAAAC,UAAA;EAAA,SAAAD,iBAAA;IAAA,IAAAE,gBAAA,mBAAAF,gBAAA;IAAA,WAAAG,WAAA,mBAAAH,gBAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,gBAAA,EAAAC,UAAA;EAAA,WAAAK,aAAA,aAAAN,gBAAA;IAAAO,GAAA;IAAAC,KAAA,EAcpB,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GAAsD,IAAI,CAACD,OAAO;QAA1DE,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,WAAW,GAAAF,aAAA,CAAXE,WAAW;QAAEC,QAAQ,GAAAH,aAAA,CAARG,QAAQ;QAAEC,QAAQ,GAAAJ,aAAA,CAARI,QAAQ;MAEjD,oBACEpB,MAAA,YAAAqB,aAAA,CAAcC,iBAAK,MAAA3B,KAAA,CAAA4B,WAAA,MAAAT,IAAA,gBACjBd,MAAA,YAAAqB,aAAA,CAACpB,MAAA,WAAK,CAACuB,KAAK;QAACC,GAAG,EAAEL;MAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChElB,MAAA,YAAAqB,aAAA,CAACpB,MAAA,WAAK,CAACyB,WAAW,QAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DlB,MAAA,YAAAqB,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZjB,MAAA,YAAAqB,aAAA,CAACpB,MAAA,WAAK,CAAC0B,QAAQ,qBACb3B,MAAA,YAAAqB,aAAA,CAACxB,OAAA,WAAM;QAAC4B,GAAG,EAAC,GAAG;QAACG,IAAI,EAAC,MAAM;QAACC,IAAI,EAAC,GAAG;QAACC,GAAG,EAAC,SAAS;QAACC,KAAK,EAAC,MAAM;QAACC,IAAI,EAAEb;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EA7B4Be,eAAS;AAAA,IAAAC,gBAAA,aAAlC9B,gBAAgB,iBAIC,cAAc;AAAA,IAAA8B,gBAAA,aAJ/B9B,gBAAgB,aAKH,CAAC,IAAA+B,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,aAL7C9B,gBAAgB,kBAME;EACpBiC,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,gBAAgB,CAAC;EACnCrB,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqB,QAAA,GAAAC,OAAA,cAoBY,IAAAC,qBAAe,EAACvC,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectNotFound.js","names":["_core","require","_button","_interopRequireDefault","_i18nEnhance","_typography","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootProjectNotFound","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","createElement","ul","li","supportLink","href","Error","assignProps","Title","tag","Description","Text","formatTags","size","Controls","type","use","theme","Component","_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;AAAmF,IAE7ES,mBAAmB,0BAAAC,UAAA;EAAA,SAAAD,oBAAA;IAAA,IAAAE,gBAAA,mBAAAF,mBAAA;IAAA,WAAAG,WAAA,mBAAAH,mBAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,mBAAA,EAAAC,UAAA;EAAA,WAAAK,aAAA,aAAAN,mBAAA;IAAAO,GAAA;IAAAC,KAAA,EAgBvB,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GAAyF,IAAI,CAACD,OAAO;QAA7FE,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,WAAW,GAAAF,aAAA,CAAXE,WAAW;QAAEC,YAA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,GAAG;QAACM,IAAI,EAAC,MAAM;QAACF,IAAI,EAAC,GAAG;QAACG,GAAG,EAAC,SAAS;QAACC,KAAK,EAAC,MAAM;QAACZ,IAAI,EAAEX;MAAa,GAChFD,WAAW,CAAC,aAAa,CACpB,CAAC,eACTlB,MAAA,YAAA0B,aAAA,CAAC9B,OAAA,WAAM;QAAC0C,IAAI,EAAC,GAAG;QAACJ,GAAG,EAAC,GAAG;QAACM,IAAI,EAAC,MAAM;QAACV,IAAI,EAAEV;MAAa,GACrDF,WAAW,CAAC,aAAa,CACpB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EAzC+ByB,eAAS;AAAA,IAAAC,gBAAA,aAArCxC,mBAAmB,iBAIF,iBAAiB;AAAA,IAAAwC,gBAAA,aAJlCxC,mBAAmB,aAKN,CAAC,IAAAyC,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,aAL7CxC,mBAAmB,kBAMD;EACpB2C,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,cA8BY,IAAAC,qBAAe,EAACjD,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccessDenied.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootAccessDenied","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","wMax","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/AccessDenied/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;AAAC,IAE7EC,gBAAgB,0BAAAC,UAAA;EAAA,SAAAD,iBAAA;IAAAE,eAAA,OAAAF,gBAAA;IAAA,OAAAG,UAAA,OAAAH,gBAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,gBAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,gBAAA;IAAAO,GAAA;IAAAC,KAAA,EAcpB,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GAAsD,IAAI,CAACD,OAAO;QAA1DE,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,WAAW,GAAAF,aAAA,CAAXE,WAAW;QAAEC,QAAQ,GAAAH,aAAA,CAARG,QAAQ;QAAEC,QAAQ,GAAAJ,aAAA,CAARI,QAAQ;MACjD,oBACEpB,KAAA,CAAAqB,aAAA,CAAcpB,KAAK,EAAAqB,YAAA,KAAAR,IAAA,gBACjBd,KAAA,CAAAqB,aAAA,CAACpB,KAAK,CAACsB,KAAK;QAACC,GAAG,EAAEJ;MAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChElB,KAAA,CAAAqB,aAAA,CAACpB,KAAK,CAACwB,WAAW;QAACC,IAAI,EAAC;MAAO,GAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eACzElB,KAAA,CAAAqB,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZjB,KAAA,CAAAqB,aAAA,CAACpB,KAAK,CAAC0B,QAAQ,qBACb3B,KAAA,CAAAqB,aAAA,CAAC1B,MAAM;QAAC6B,GAAG,EAAC,GAAG;QAACI,IAAI,EAAC,MAAM;QAACC,IAAI,EAAC,GAAG;QAACC,GAAG,EAAC,SAAS;QAACC,KAAK,EAAC,MAAM;QAACC,IAAI,EAAEb;MAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EA5B4BrB,SAAS;AAAAoC,eAAA,CAAlC7B,gBAAgB,iBAIC,cAAc;AAAA6B,eAAA,CAJ/B7B,gBAAgB,aAKH,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAA8B,eAAA,CAL7C7B,gBAAgB,kBAME;EACpB8B,IAAI,EAAE/B,iBAAiB;EACvBgC,MAAM,EAAE,IAAI;EACZhB,QAAQ,EAAE,GAAG;EACbiB,IAAI,EAAElC,WAAW,CAAC,eAAe,CAAC;EAClCkB,QAAQ,EAAE;AACZ,CAAC;AAmBH,eAAexB,eAAe,CAACQ,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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.type.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Maintenance.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootMaintenance","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","toolName","titleTag","createElement","_assignProps","Title","tag","concat","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/Maintenance/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;AAAC,IAE7EC,eAAe,0BAAAC,UAAA;EAAA,SAAAD,gBAAA;IAAAE,eAAA,OAAAF,eAAA;IAAA,OAAAG,UAAA,OAAAH,eAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,eAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,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B+B,IAAI,EAAEhC,iBAAiB;EACvBiC,MAAM,EAAE,IAAI;EACZjB,QAAQ,EAAE,GAAG;EACbkB,IAAI,EAAEnC,WAAW,CAAC,aAAa,CAAC;EAChCmB,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAezB,eAAe,CAACQ,eAAe,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageError.js","names":["Button","createComponent","Component","Root","callAllEventHandlers","canUseDOM","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageError","_Component","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","location","reload","_inherits","_createClass","key","value","render","_ref","asProps","_this$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;AAAC,IAC7EC,aAAa,0BAAAC,UAAA;EAAA,SAAAD,cAAA;IAAA,IAAAE,KAAA;IAAAC,eAAA,OAAAH,aAAA;IAAA,SAAAI,IA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CAAC9B,KAAK,CAACmC,QAAQ,qBACbpC,KAAA,CAAA+B,aAAA,CAACtC,MAAM;QACLoC,OAAO,EAAEhC,oBAAoB,CAACgC,OAAO,EAAE,IAAI,CAACQ,YAAY,CAAE;QAC1DC,IAAI,EAAC,GAAG;QACRC,GAAG,EAAC,SAAS;QACbC,KAAK,EAAC;MAAM,GAEXZ,WAAW,CAAC,UAAU,CACjB,CACM,CACZ,CAAC;IAEX;EAAC;AAAA,EAvCyBjC,SAAS;AAAAqB,eAAA,CAA/BZ,aAAa,iBAII,WAAW;AAAAY,eAAA,CAJ5BZ,aAAa,aAKA,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAa,eAAA,CAL7CZ,aAAa,kBAMK;EACpBqC,IAAI,EAAEtC,iBAAiB;EACvBuC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAEzC,WAAW,CAAC,YAAY,CAAC;EAC/B4B,QAAQ,EAAE;AACZ,CAAC;AA+BH,eAAepC,eAAe,CAACU,aAAa,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound.js","names":["Button","createComponent","Component","Root","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageNotFound","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","homeLink","titleTag","createElement","_assignProps","Title","tag","Description","Controls","type","size","use","theme","href","_defineProperty","i18n","locale","icon"],"sources":["../../../src/PageNotFound/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;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,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;EAAC;AAAA,EA7B4BrB,SAAS;AAAAmC,eAAA,CAAlC5B,gBAAgB,iBAIC,cAAc;AAAA4B,eAAA,CAJ/B5B,gBAAgB,aAKH,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAA6B,eAAA,CAL7C5B,gBAAgB,kBAME;EACpB6B,IAAI,EAAE9B,iBAAiB;EACvB+B,MAAM,EAAE,IAAI;EACZC,IAAI,EAAEjC,WAAW,CAAC,gBAAgB,CAAC;EACnCiB,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAexB,eAAe,CAACQ,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectNotFound.js","names":["Button","createComponent","Component","Root","i18nEnhance","Text","React","Error","getIconPath","localizedMessages","RootProjectNotFound","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","titleTag","text","p","chunk","createElement","ul","li","supportLink","href","_assignProps","Title","tag","Description","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,S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AAM,EAAE,IAAI;EACZC,IAAI,EAAE1C,WAAW,CAAC,mBAAmB,CAAC;EACtCiB,YAAY,EAAE,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,mBAAmB;EACpCC,QAAQ,EAAE;AACZ,CAAC;AA8BH,eAAe3B,eAAe,CAACS,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
|
package/lib/esm/Error.type.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Intergalactic } from '@semcore/core';
|
|
2
|
-
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
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 };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export declare const localizedMessages: {
|
|
2
|
-
de: {
|
|
3
|
-
title: string;
|
|
4
|
-
text: string;
|
|
5
|
-
btnHome: string;
|
|
6
|
-
};
|
|
7
|
-
en: {
|
|
8
|
-
title: string;
|
|
9
|
-
text: string;
|
|
10
|
-
btnHome: string;
|
|
11
|
-
};
|
|
12
|
-
es: {
|
|
13
|
-
title: string;
|
|
14
|
-
text: string;
|
|
15
|
-
btnHome: string;
|
|
16
|
-
};
|
|
17
|
-
fr: {
|
|
18
|
-
title: string;
|
|
19
|
-
text: string;
|
|
20
|
-
btnHome: string;
|
|
21
|
-
};
|
|
22
|
-
it: {
|
|
23
|
-
title: string;
|
|
24
|
-
text: string;
|
|
25
|
-
btnHome: string;
|
|
26
|
-
};
|
|
27
|
-
ja: {
|
|
28
|
-
title: string;
|
|
29
|
-
text: string;
|
|
30
|
-
btnHome: string;
|
|
31
|
-
};
|
|
32
|
-
ko: {
|
|
33
|
-
title: string;
|
|
34
|
-
text: string;
|
|
35
|
-
btnHome: string;
|
|
36
|
-
};
|
|
37
|
-
nl: {
|
|
38
|
-
title: string;
|
|
39
|
-
text: string;
|
|
40
|
-
btnHome: string;
|
|
41
|
-
};
|
|
42
|
-
pt: {
|
|
43
|
-
title: string;
|
|
44
|
-
text: string;
|
|
45
|
-
btnHome: string;
|
|
46
|
-
};
|
|
47
|
-
ru: {
|
|
48
|
-
title: string;
|
|
49
|
-
text: string;
|
|
50
|
-
btnHome: string;
|
|
51
|
-
};
|
|
52
|
-
tr: {
|
|
53
|
-
title: string;
|
|
54
|
-
text: string;
|
|
55
|
-
btnHome: string;
|
|
56
|
-
};
|
|
57
|
-
vi: {
|
|
58
|
-
title: string;
|
|
59
|
-
text: string;
|
|
60
|
-
btnHome: string;
|
|
61
|
-
};
|
|
62
|
-
zh: {
|
|
63
|
-
title: string;
|
|
64
|
-
text: string;
|
|
65
|
-
btnHome: string;
|
|
66
|
-
};
|
|
67
|
-
pl: {
|
|
68
|
-
title: string;
|
|
69
|
-
text: string;
|
|
70
|
-
btnHome: string;
|
|
71
|
-
};
|
|
72
|
-
sv: {
|
|
73
|
-
title: string;
|
|
74
|
-
text: string;
|
|
75
|
-
btnHome: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
package/lib/types/Error.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { Box, FlexProps } from '@semcore/base-components';
|
|
2
|
-
import type { Intergalactic, PropGetterFn } from '@semcore/core';
|
|
3
|
-
import type { TIllustrationNamesErrors } from '@semcore/illustration';
|
|
4
|
-
import type React from 'react';
|
|
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,25 +0,0 @@
|
|
|
1
|
-
import type { Intergalactic } from '@semcore/core';
|
|
2
|
-
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
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,77 +0,0 @@
|
|
|
1
|
-
export declare const localizedMessages: {
|
|
2
|
-
de: {
|
|
3
|
-
title: string;
|
|
4
|
-
text: string;
|
|
5
|
-
btnHome: string;
|
|
6
|
-
};
|
|
7
|
-
en: {
|
|
8
|
-
title: string;
|
|
9
|
-
text: string;
|
|
10
|
-
btnHome: string;
|
|
11
|
-
};
|
|
12
|
-
es: {
|
|
13
|
-
title: string;
|
|
14
|
-
text: string;
|
|
15
|
-
btnHome: string;
|
|
16
|
-
};
|
|
17
|
-
fr: {
|
|
18
|
-
title: string;
|
|
19
|
-
text: string;
|
|
20
|
-
btnHome: string;
|
|
21
|
-
};
|
|
22
|
-
it: {
|
|
23
|
-
title: string;
|
|
24
|
-
text: string;
|
|
25
|
-
btnHome: string;
|
|
26
|
-
};
|
|
27
|
-
ja: {
|
|
28
|
-
title: string;
|
|
29
|
-
text: string;
|
|
30
|
-
btnHome: string;
|
|
31
|
-
};
|
|
32
|
-
ko: {
|
|
33
|
-
title: string;
|
|
34
|
-
text: string;
|
|
35
|
-
btnHome: string;
|
|
36
|
-
};
|
|
37
|
-
nl: {
|
|
38
|
-
title: string;
|
|
39
|
-
text: string;
|
|
40
|
-
btnHome: string;
|
|
41
|
-
};
|
|
42
|
-
pt: {
|
|
43
|
-
title: string;
|
|
44
|
-
text: string;
|
|
45
|
-
btnHome: string;
|
|
46
|
-
};
|
|
47
|
-
ru: {
|
|
48
|
-
title: string;
|
|
49
|
-
text: string;
|
|
50
|
-
btnHome: string;
|
|
51
|
-
};
|
|
52
|
-
tr: {
|
|
53
|
-
title: string;
|
|
54
|
-
text: string;
|
|
55
|
-
btnHome: string;
|
|
56
|
-
};
|
|
57
|
-
vi: {
|
|
58
|
-
title: string;
|
|
59
|
-
text: string;
|
|
60
|
-
btnHome: string;
|
|
61
|
-
};
|
|
62
|
-
zh: {
|
|
63
|
-
title: string;
|
|
64
|
-
text: string;
|
|
65
|
-
btnHome: string;
|
|
66
|
-
};
|
|
67
|
-
pl: {
|
|
68
|
-
title: string;
|
|
69
|
-
text: string;
|
|
70
|
-
btnHome: string;
|
|
71
|
-
};
|
|
72
|
-
sv: {
|
|
73
|
-
title: string;
|
|
74
|
-
text: string;
|
|
75
|
-
btnHome: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Intergalactic } from '@semcore/core';
|
|
2
|
-
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
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 };
|