@semcore/errors 17.0.0-prerelease.29 → 17.0.0-prerelease.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/lib/cjs/AccessDenied/{index.js → AccessDenied.js} +1 -1
  3. package/lib/cjs/AccessDenied/AccessDenied.js.map +1 -0
  4. package/lib/cjs/AccessDenied/AccessDenied.type.js +2 -0
  5. package/lib/cjs/AccessDenied/AccessDenied.type.js.map +1 -0
  6. package/lib/cjs/Error.js +2 -1
  7. package/lib/cjs/Error.js.map +1 -1
  8. package/lib/cjs/Error.type.js +2 -0
  9. package/lib/cjs/Error.type.js.map +1 -0
  10. package/lib/cjs/Maintenance/{index.js → Maintenance.js} +1 -1
  11. package/lib/cjs/Maintenance/Maintenance.js.map +1 -0
  12. package/lib/cjs/Maintenance/Maintenance.type.js +2 -0
  13. package/lib/cjs/Maintenance/Maintenance.type.js.map +1 -0
  14. package/lib/cjs/PageError/{index.js → PageError.js} +1 -1
  15. package/lib/cjs/PageError/PageError.js.map +1 -0
  16. package/lib/cjs/PageError/PageError.type.js +2 -0
  17. package/lib/cjs/PageError/PageError.type.js.map +1 -0
  18. package/lib/cjs/PageNotFound/{index.js → PageNotFound.js} +3 -2
  19. package/lib/cjs/PageNotFound/PageNotFound.js.map +1 -0
  20. package/lib/cjs/PageNotFound/PageNotFound.type.js +2 -0
  21. package/lib/cjs/PageNotFound/PageNotFound.type.js.map +1 -0
  22. package/lib/cjs/ProjectNotFound/{index.js → ProjectNotFound.js} +3 -3
  23. package/lib/cjs/ProjectNotFound/ProjectNotFound.js.map +1 -0
  24. package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js +2 -0
  25. package/lib/cjs/ProjectNotFound/ProjectNotFound.type.js.map +1 -0
  26. package/lib/cjs/index.js +76 -8
  27. package/lib/cjs/index.js.map +1 -1
  28. package/lib/es6/AccessDenied/{index.js → AccessDenied.js} +1 -1
  29. package/lib/es6/AccessDenied/AccessDenied.js.map +1 -0
  30. package/lib/es6/AccessDenied/AccessDenied.type.js +2 -0
  31. package/lib/es6/AccessDenied/AccessDenied.type.js.map +1 -0
  32. package/lib/es6/Error.js +2 -1
  33. package/lib/es6/Error.js.map +1 -1
  34. package/lib/es6/Error.type.js +2 -0
  35. package/lib/es6/Error.type.js.map +1 -0
  36. package/lib/es6/Maintenance/{index.js → Maintenance.js} +1 -1
  37. package/lib/es6/Maintenance/Maintenance.js.map +1 -0
  38. package/lib/es6/Maintenance/Maintenance.type.js +2 -0
  39. package/lib/es6/Maintenance/Maintenance.type.js.map +1 -0
  40. package/lib/es6/PageError/{index.js → PageError.js} +1 -1
  41. package/lib/es6/PageError/PageError.js.map +1 -0
  42. package/lib/es6/PageError/PageError.type.js +2 -0
  43. package/lib/es6/PageError/PageError.type.js.map +1 -0
  44. package/lib/es6/PageNotFound/{index.js → PageNotFound.js} +3 -2
  45. package/lib/es6/PageNotFound/PageNotFound.js.map +1 -0
  46. package/lib/es6/PageNotFound/PageNotFound.type.js +2 -0
  47. package/lib/es6/PageNotFound/PageNotFound.type.js.map +1 -0
  48. package/lib/es6/ProjectNotFound/{index.js → ProjectNotFound.js} +3 -3
  49. package/lib/es6/ProjectNotFound/ProjectNotFound.js.map +1 -0
  50. package/lib/es6/ProjectNotFound/ProjectNotFound.type.js +2 -0
  51. package/lib/es6/ProjectNotFound/ProjectNotFound.type.js.map +1 -0
  52. package/lib/es6/index.js +12 -7
  53. package/lib/es6/index.js.map +1 -1
  54. package/lib/esm/AccessDenied/{index.mjs → AccessDenied.mjs} +2 -2
  55. package/lib/esm/Error.mjs +1 -1
  56. package/lib/esm/Maintenance/{index.mjs → Maintenance.mjs} +2 -2
  57. package/lib/esm/PageError/{index.mjs → PageError.mjs} +2 -2
  58. package/lib/esm/PageNotFound/{index.mjs → PageNotFound.mjs} +3 -3
  59. package/lib/esm/ProjectNotFound/{index.mjs → ProjectNotFound.mjs} +4 -4
  60. package/lib/esm/index.mjs +5 -5
  61. package/lib/types/AccessDenied/AccessDenied.d.ts +3 -0
  62. package/lib/types/AccessDenied/AccessDenied.type.d.ts +16 -0
  63. package/lib/types/AccessDenied/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  64. package/lib/types/Error.d.ts +4 -0
  65. package/lib/types/Error.type.d.ts +22 -0
  66. package/lib/types/Maintenance/Maintenance.d.ts +3 -0
  67. package/lib/types/Maintenance/Maintenance.type.d.ts +20 -0
  68. package/lib/types/Maintenance/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  69. package/lib/types/PageError/PageError.d.ts +3 -0
  70. package/lib/types/PageError/PageError.type.d.ts +16 -0
  71. package/lib/types/PageError/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  72. package/lib/types/PageNotFound/PageNotFound.d.ts +3 -0
  73. package/lib/types/PageNotFound/PageNotFound.type.d.ts +16 -0
  74. package/lib/types/PageNotFound/translations/__intergalactic-dynamic-locales.d.ts +77 -0
  75. package/lib/types/ProjectNotFound/ProjectNotFound.d.ts +3 -0
  76. package/lib/types/ProjectNotFound/ProjectNotFound.type.d.ts +26 -0
  77. package/lib/types/ProjectNotFound/translations/__intergalactic-dynamic-locales.d.ts +92 -0
  78. package/lib/types/index.d.ts +12 -114
  79. package/package.json +6 -6
  80. package/vite.config.ts +1 -1
  81. package/lib/cjs/AccessDenied/index.js.map +0 -1
  82. package/lib/cjs/Maintenance/index.js.map +0 -1
  83. package/lib/cjs/PageError/index.js.map +0 -1
  84. package/lib/cjs/PageNotFound/index.js.map +0 -1
  85. package/lib/cjs/ProjectNotFound/index.js.map +0 -1
  86. package/lib/cjs/index.d.js +0 -8
  87. package/lib/cjs/index.d.js.map +0 -1
  88. package/lib/es6/AccessDenied/index.js.map +0 -1
  89. package/lib/es6/Maintenance/index.js.map +0 -1
  90. package/lib/es6/PageError/index.js.map +0 -1
  91. package/lib/es6/PageNotFound/index.js.map +0 -1
  92. package/lib/es6/ProjectNotFound/index.js.map +0 -1
  93. package/lib/es6/index.d.js +0 -2
  94. package/lib/es6/index.d.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,12 +2,16 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [17.0.0] - 2026-02-27
5
+ ## [17.0.0] - 2026-03-27
6
6
 
7
7
  ### BREAK
8
8
 
9
9
  - **ellipsis**: New major version.
10
10
 
11
+ ### Fixed
12
+
13
+ - Rewrite component to TS.
14
+
11
15
  ## [16.1.7] - 2025-11-17
12
16
 
13
17
  ### Changed
@@ -46,4 +46,4 @@ class RootAccessDenied extends _core.Component {
46
46
  titleTag: 'h2'
47
47
  });
48
48
  var _default = exports.default = (0, _core.createComponent)(RootAccessDenied);
49
- //# sourceMappingURL=index.js.map
49
+ //# sourceMappingURL=AccessDenied.js.map
@@ -0,0 +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 { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type { AccessDeniedComponent, AccessDeniedProps } from './AccessDenied.type';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component<AccessDeniedProps, typeof RootAccessDenied.enhance> {\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 AccessDeniedComponent;\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAGA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,gBAAgB,SAASC,eAAS,CAAqD;EAW3FC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAClE,oBACER,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAAcC,cAAK,MAAApB,KAAA,CAAAqB,WAAA,MAAAT,IAAA,gBACjBP,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACI,KAAK;MAACC,GAAG,EAAEN;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChEV,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACM,WAAW;MAACC,IAAI,EAAC;IAAO,GAAEV,WAAW,CAAC,MAAM,CAAqB,CAAC,eACzEV,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACL,QAAQ,MAAE,CAAC,eACZT,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAAY,OAAK,CAACQ,QAAQ,qBACbrB,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACjB,OAAA,CAAAgB,OAAM;MAACK,GAAG,EAAC,GAAG;MAACI,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEf;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAAC,IAAAiB,gBAAA,CAAAd,OAAA,EA1BKT,gBAAgB,iBACC,cAAc;AAAA,IAAAuB,gBAAA,CAAAd,OAAA,EAD/BT,gBAAgB,aAEH,CAAC,IAAAwB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAd,OAAA,EAF7CT,gBAAgB,kBAGE;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":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=AccessDenied.type.js.map
@@ -0,0 +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 { ErrorsProps } from '../Error.type';\n\nexport type AccessDeniedProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type AccessDeniedComponent = Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;\n"],"mappings":"","ignoreList":[]}
package/lib/cjs/Error.js CHANGED
@@ -78,9 +78,10 @@ function Controls(props) {
78
78
  ...(0, _core.assignProps)({}, _ref4)
79
79
  }));
80
80
  }
81
- var _default = exports.default = (0, _core.createComponent)(RootError, {
81
+ const Error = (0, _core.createComponent)(RootError, {
82
82
  Title,
83
83
  Description,
84
84
  Controls
85
85
  });
86
+ var _default = exports.default = Error;
86
87
  //# sourceMappingURL=Error.js.map
@@ -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","_default","createComponent"],"sources":["../../src/Error.jsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass RootError extends Component {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n const SImage = 'img';\n return sstyled(styles)(\n <SError render={Flex}>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? <SImage src={icon} alt='' /> : icon}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nexport default createComponent(RootError, {\n Title,\n Description,\n Controls,\n});\n"],"mappings":";;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,eAAA,GAAAD,OAAA;AAEA,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;AAInB,MAAMC,WAAW,GAAIC,IAAI,IAAK,IAAAC,iCAAmB,EAACD,IAAI,CAAC;AAACE,OAAA,CAAAH,WAAA,GAAAA,WAAA;AAE/D,MAAMI,SAAS,SAASC,eAAS,CAAC;EAIhCC,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,CAAAwB,OAAA,CAAAC,aAAA,CAACV,MAAM,EAAAD,KAAA,CAAAY,EAAA;MAAA,OAAA9B,KAAA,CAAA+B,WAAA,MAAAf,IAAA;IAAA,iBACLZ,MAAA,CAAAwB,OA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ClB,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,KAAK,EAAE;EAAA,IAAAW,KAAA,GAAAT,YAAA;IAAAU,KAAA;EACvB,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;AAAC,IAAAG,QAAA,GAAApC,OAAA,CAAAgB,OAAA,GAEc,IAAAqB,qBAAe,EAACpC,SAAS,EAAE;EACxCoB,KAAK;EACLO,WAAW;EACXI;AACF,CAAC,CAAC","ignoreList":[]}
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 { IStyledProps } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport type { ErrorComponent, ErrorsProps, IconNamesErrors } from './Error.type';\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name: IconNamesErrors) => getIllustrationPath(name);\n\nclass RootError extends Component<ErrorsProps> {\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: IStyledProps) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props: IStyledProps) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props: IStyledProps) {\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 ErrorComponent;\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,IAAqB,IAAK,IAAAC,iCAAmB,EAACD,IAAI,CAAC;AAACE,OAAA,CAAAH,WAAA,GAAAA,WAAA;AAEhF,MAAMI,SAAS,SAASC,eAAS,CAAc;EAI7CC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,MAAM,GAOMC,oBAAI;IANtB,MAAM;MAAEC,QAAQ;MAAEC,MAAM;MAAEC;IA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CAAC,eAAClB,MAAA,CAAAwB,OAAA,CAAAC,aAAA,CAACS,MAAM,EAAAD,KAAA,CAAAP,EAAA;IAAA,OAAA9B,KAAA,CAAA+B,WAAA;MAAA;MAAA,OAAoC;IAAI,GAAAI,KAAA;EAAA,EAAE,CAAC;AACjF;AAEA,SAASK,WAAWA,CAACN,KAAmB,EAAE;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EACxC,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,KAAmB,EAAE;EAAA,IAAAW,KAAA,GAAAT,YAAA;IAAAU,KAAA;EACrC,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,CAAmB;AAAC,IAAAM,QAAA,GAAAtC,OAAA,CAAAgB,OAAA,GAENoB,KAAK","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=Error.type.js.map
@@ -0,0 +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\nexport type IconNamesErrors = TIllustrationNamesErrors;\n\nexport type ErrorsProps = FlexProps & {\n /**\n * Error icon\n * Icon as a string is a URL to an image.\n */\n icon?: string | React.ReactNode;\n};\n\nexport type ErrorsContext = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n};\n\nexport type ErrorComponent = Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {\n Title: typeof Box;\n Description: typeof Box;\n Controls: typeof Box;\n};\n"],"mappings":"","ignoreList":[]}
@@ -45,4 +45,4 @@ class RootMaintenance extends _core.Component {
45
45
  titleTag: 'h2'
46
46
  });
47
47
  var _default = exports.default = (0, _core.createComponent)(RootMaintenance);
48
- //# sourceMappingURL=index.js.map
48
+ //# sourceMappingURL=Maintenance.js.map
@@ -0,0 +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 { 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 { MaintenanceComponent, MaintenanceProps } from './Maintenance.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component<MaintenanceProps, typeof RootMaintenance.enhance> {\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 MaintenanceComponent;\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,eAAe,SAASC,eAAS,CAAmD;EAWxFC,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,oBACER,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAAcC,cAAK,MAAArB,KAAA,CAAAsB,WAAA,MAAAV,IAAA,gBACjBP,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAAa,OAAK,CAACI,KAAK;MAACC,GAAG,EAAEN;IAAS,GAAE,GAAGD,QAAQ,IAAIF,WAAW,CAAC,OAAO,CAAC,EAAgB,CAAC,eACjFV,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAAa,OAAK,CAACM,WAAW,QAAEV,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DV,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACN,QAAQ,MAAE,CAAC,eACZT,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAAa,OAAK,CAACO,QAAQ,qBACbrB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAAClB,OAAA,CAAAiB,OAAM;MAACK,GAAG,EAAC,GAAG;MAACG,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEf;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAAC,IAAAiB,gBAAA,CAAAb,OAAA,EA3BKV,eAAe,iBACE,aAAa;AAAA,IAAAuB,gBAAA,CAAAb,OAAA,EAD9BV,eAAe,aAEF,CAAC,IAAAwB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAb,OAAA,EAF7CV,eAAe,kBAGG;EACpB0B,IAAI,EAAED,8CAAiB;EACvBE,MAAM,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":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=Maintenance.type.js.map
@@ -0,0 +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 { ErrorsProps } from '../Error.type';\n\nexport type MaintenanceProps = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type MaintenanceComponent = Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;\n"],"mappings":"","ignoreList":[]}
@@ -51,4 +51,4 @@ class RootPageError extends _core.Component {
51
51
  titleTag: 'h2'
52
52
  });
53
53
  var _default = exports.default = (0, _core.createComponent)(RootPageError);
54
- //# sourceMappingURL=index.js.map
54
+ //# sourceMappingURL=PageError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageError.js","names":["_button","_interopRequireDefault","require","_core","_assignProps","_canUseDOM","_i18nEnhance","_react","_Error","_interopRequireWildcard","_intergalacticDynamicLocales","RootPageError","Component","constructor","args","_defineProperty2","default","canUseDOM","location","reload","render","Children","getI18nText","onClick","titleTag","other","asProps","createElement","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 { createComponent, Component } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { PageErrorComponent, PageErrorProps } from './PageError.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageError extends Component<PageErrorProps, typeof RootPageError.enhance> {\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, ...other } = this.asProps;\n\n return (\n <Error {...other}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Error>\n );\n }\n}\n\nexport default createComponent(RootPageError) as PageErrorComponent;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAAM,MAAA,GAAAC,uBAAA,CAAAP,OAAA;AAEA,IAAAQ,4BAAA,GAAAR,OAAA;AAEA,MAAMS,aAAa,SAASC,eAAS,CAA+C;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,wBAUnE,MAAM;MACnB,IAAI,IAAAC,kBAAS,EAAC,CAAC,EAAE;QACfC,QAAQ,CAACC,MAAM,CAAC,CAAC;MACnB;IACF,CAAC;EAAA;EAEDC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,OAAO;MAAEC,QAAQ;MAAE,GAAGC;IAAM,CAAC,GAAG,IAAI,CAACC,OAAO;IAE3E,oBACEnB,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACnB,MAAA,CAAAQ,OAAK,EAAKS,KAAK,eACdlB,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACnB,MAAA,CAAAQ,OAAK,CAACY,KAAK;MAACC,GAAG,EAAEL;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChEf,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACnB,MAAA,CAAAQ,OAAK,CAACc,WAAW,QAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5Df,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACN,QAAQ,MAAE,CAAC,eACZd,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAACnB,MAAA,CAAAQ,OAAK,CAACe,QAAQ,qBACbxB,MAAA,CAAAS,OAAA,CAAAW,aAAA,CAAC3B,OAAA,CAAAgB,OAAM;MACLO,OAAO,EAAE,IAAAS,iCAAoB,EAACT,OAAO,EAAE,IAAI,CAACU,YAAY,CAAE;MAC1DC,IAAI,EAAC,GAAG;MACRC,GAAG,EAAC,SAAS;MACbC,KAAK,EAAC;IAAM,GAEXd,WAAW,CAAC,UAAU,CACjB,CACM,CACX,CAAC;EAEZ;AACF;AAAC,IAAAP,gBAAA,CAAAC,OAAA,EArCKL,aAAa,iBACI,WAAW;AAAA,IAAAI,gBAAA,CAAAC,OAAA,EAD5BL,aAAa,aAEA,CAAC,IAAA0B,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAvB,gBAAA,CAAAC,OAAA,EAF7CL,aAAa,kBAGK;EACpB4B,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAAC,kBAAW,EAAC,YAAY,CAAC;EAC/BlB,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAmB,QAAA,GAAAC,OAAA,CAAA5B,OAAA,GA+BY,IAAA6B,qBAAe,EAAClC,aAAa,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=PageError.type.js.map
@@ -0,0 +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 { ErrorsProps } from '../Error.type';\n\nexport type PageErrorProps = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type PageErrorComponent = Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;\n"],"mappings":"","ignoreList":[]}
@@ -34,7 +34,7 @@ class RootPageNotFound extends _core.Component {
34
34
  }, getI18nText('btnHome'))));
35
35
  }
36
36
  }
37
- (0, _defineProperty2.default)(RootPageNotFound, "displayName", 'Maintenance');
37
+ (0, _defineProperty2.default)(RootPageNotFound, "displayName", 'PageNotFound');
38
38
  (0, _defineProperty2.default)(RootPageNotFound, "enhance", [(0, _i18nEnhance.default)(_intergalacticDynamicLocales.localizedMessages)]);
39
39
  (0, _defineProperty2.default)(RootPageNotFound, "defaultProps", {
40
40
  i18n: _intergalacticDynamicLocales.localizedMessages,
@@ -44,4 +44,5 @@ class RootPageNotFound extends _core.Component {
44
44
  titleTag: 'h2'
45
45
  });
46
46
  var _default = exports.default = (0, _core.createComponent)(RootPageNotFound);
47
- //# sourceMappingURL=index.js.map
47
+ ;
48
+ //# sourceMappingURL=PageNotFound.js.map
@@ -0,0 +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 { 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 { PageNotFoundComponent, PageNotFoundProps } from './PageNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component<PageNotFoundProps, typeof RootPageNotFound.enhance> {\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 PageNotFoundComponent; ;\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,4BAAA,GAAAP,OAAA;AAEA,MAAMQ,gBAAgB,SAASC,eAAS,CAAqD;EAW3FC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAElE,oBACER,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAAcC,cAAK,MAAApB,KAAA,CAAAqB,WA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sourceMappingURL=PageNotFound.type.js.map
@@ -0,0 +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 { ErrorsProps } from '../Error.type';\n\nexport type PageNotFoundProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type PageNotFoundComponent = Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;\n"],"mappings":"","ignoreList":[]}
@@ -38,7 +38,7 @@ class RootProjectNotFound extends _core.Component {
38
38
  }, getI18nText('title')), /*#__PURE__*/_react.default.createElement(_Error.default.Description, {
39
39
  tag: _typography.Text,
40
40
  formatTags: true,
41
- size: "300"
41
+ size: 300
42
42
  }, text), /*#__PURE__*/_react.default.createElement(Children, null), /*#__PURE__*/_react.default.createElement(_Error.default.Controls, null, /*#__PURE__*/_react.default.createElement(_button.default, {
43
43
  tag: "a",
44
44
  type: "none",
@@ -54,7 +54,7 @@ class RootProjectNotFound extends _core.Component {
54
54
  }, getI18nText('btnContacts'))));
55
55
  }
56
56
  }
57
- (0, _defineProperty2.default)(RootProjectNotFound, "displayName", 'Maintenance');
57
+ (0, _defineProperty2.default)(RootProjectNotFound, "displayName", 'ProjectNotFound');
58
58
  (0, _defineProperty2.default)(RootProjectNotFound, "enhance", [(0, _i18nEnhance.default)(_intergalacticDynamicLocales.localizedMessages)]);
59
59
  (0, _defineProperty2.default)(RootProjectNotFound, "defaultProps", {
60
60
  i18n: _intergalacticDynamicLocales.localizedMessages,
@@ -66,4 +66,4 @@ class RootProjectNotFound extends _core.Component {
66
66
  titleTag: 'h2'
67
67
  });
68
68
  var _default = exports.default = (0, _core.createComponent)(RootProjectNotFound);
69
- //# sourceMappingURL=index.js.map
69
+ //# sourceMappingURL=ProjectNotFound.js.map
@@ -0,0 +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 { 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 { ProjectNotFoundComponent, ProjectNotFoundProps } from './ProjectNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component<ProjectNotFoundProps, typeof RootProjectNotFound.enhance> {\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 ProjectNotFoundComponent;\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,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,CAA2D;EAapGC,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,KAAS,CAAC;MACpCG,EAAE,EAAGH,KAAa,iBAAKjB,MAAA,CAAAkB,OAAA,CAAAC,aAAA,aAAKF,KAAU,CAAC;MACvCI,EAAE,EAAGJ,KAAa,iBAAKjB,MAAA,CAAAkB,OAAA,CAAAC,aAAA,aAAKF,KAAU,CAAC;MACvCK,WAAW,EAAGL,KAAa,iBAAKjB,MAAA,CAAAkB,OAAA,CAAAC,aAAA;QAAGI,IAAI,EAAEV;MAAgB,GAAEI,KAAS;IACtE,CAAC,CAA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A,IAAAF,gBAAA,CAAAlB,OAAA,EAF7Cd,mBAAmB,kBAGD;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":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=ProjectNotFound.type.js.map
@@ -0,0 +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 { ErrorsProps } from '../Error.type';\n\nexport type ProjectNotFoundProps = WithI18nEnhanceProps & {\n /**\n * URL for the \"Go to Projects\" button\n * @default /projects\n */\n projectsLink?: string;\n /**\n * URL for the \"Contact us\" button\n * @default /company/contacts\n */\n contactsLink?: string;\n /**\n * URL for the \"Support Team\" link\n * @default /company/contacts\n */\n supportTeamLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type ProjectNotFoundComponent = Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;\n"],"mappings":"","ignoreList":[]}
package/lib/cjs/index.js CHANGED
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  var _exportNames = {
9
+ getIconPath: true,
9
10
  AccessDenied: true,
10
11
  Maintenance: true,
11
12
  PageError: true,
@@ -48,21 +49,88 @@ Object.defineProperty(exports, "default", {
48
49
  return _Error.default;
49
50
  }
50
51
  });
52
+ Object.defineProperty(exports, "getIconPath", {
53
+ enumerable: true,
54
+ get: function () {
55
+ return _Error.getIconPath;
56
+ }
57
+ });
51
58
  var _Error = _interopRequireWildcard(require("./Error"));
52
- Object.keys(_Error).forEach(function (key) {
59
+ var _Error2 = require("./Error.type");
60
+ Object.keys(_Error2).forEach(function (key) {
61
+ if (key === "default" || key === "__esModule") return;
62
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
63
+ if (key in exports && exports[key] === _Error2[key]) return;
64
+ Object.defineProperty(exports, key, {
65
+ enumerable: true,
66
+ get: function () {
67
+ return _Error2[key];
68
+ }
69
+ });
70
+ });
71
+ var _AccessDenied = _interopRequireDefault(require("./AccessDenied/AccessDenied"));
72
+ var _AccessDenied2 = require("./AccessDenied/AccessDenied.type");
73
+ Object.keys(_AccessDenied2).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
76
+ if (key in exports && exports[key] === _AccessDenied2[key]) return;
77
+ Object.defineProperty(exports, key, {
78
+ enumerable: true,
79
+ get: function () {
80
+ return _AccessDenied2[key];
81
+ }
82
+ });
83
+ });
84
+ var _Maintenance = _interopRequireDefault(require("./Maintenance/Maintenance"));
85
+ var _Maintenance2 = require("./Maintenance/Maintenance.type");
86
+ Object.keys(_Maintenance2).forEach(function (key) {
87
+ if (key === "default" || key === "__esModule") return;
88
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
89
+ if (key in exports && exports[key] === _Maintenance2[key]) return;
90
+ Object.defineProperty(exports, key, {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _Maintenance2[key];
94
+ }
95
+ });
96
+ });
97
+ var _PageError = _interopRequireDefault(require("./PageError/PageError"));
98
+ var _PageError2 = require("./PageError/PageError.type");
99
+ Object.keys(_PageError2).forEach(function (key) {
100
+ if (key === "default" || key === "__esModule") return;
101
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
102
+ if (key in exports && exports[key] === _PageError2[key]) return;
103
+ Object.defineProperty(exports, key, {
104
+ enumerable: true,
105
+ get: function () {
106
+ return _PageError2[key];
107
+ }
108
+ });
109
+ });
110
+ var _PageNotFound = _interopRequireDefault(require("./PageNotFound/PageNotFound"));
111
+ var _PageNotFound2 = require("./PageNotFound/PageNotFound.type");
112
+ Object.keys(_PageNotFound2).forEach(function (key) {
113
+ if (key === "default" || key === "__esModule") return;
114
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
115
+ if (key in exports && exports[key] === _PageNotFound2[key]) return;
116
+ Object.defineProperty(exports, key, {
117
+ enumerable: true,
118
+ get: function () {
119
+ return _PageNotFound2[key];
120
+ }
121
+ });
122
+ });
123
+ var _ProjectNotFound = _interopRequireDefault(require("./ProjectNotFound/ProjectNotFound"));
124
+ var _ProjectNotFound2 = require("./ProjectNotFound/ProjectNotFound.type");
125
+ Object.keys(_ProjectNotFound2).forEach(function (key) {
53
126
  if (key === "default" || key === "__esModule") return;
54
127
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
55
- if (key in exports && exports[key] === _Error[key]) return;
128
+ if (key in exports && exports[key] === _ProjectNotFound2[key]) return;
56
129
  Object.defineProperty(exports, key, {
57
130
  enumerable: true,
58
131
  get: function () {
59
- return _Error[key];
132
+ return _ProjectNotFound2[key];
60
133
  }
61
134
  });
62
135
  });
63
- var _AccessDenied = _interopRequireDefault(require("./AccessDenied"));
64
- var _Maintenance = _interopRequireDefault(require("./Maintenance"));
65
- var _PageError = _interopRequireDefault(require("./PageError"));
66
- var _PageNotFound = _interopRequireDefault(require("./PageNotFound"));
67
- var _ProjectNotFound = _interopRequireDefault(require("./ProjectNotFound"));
68
136
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_Error","_interopRequireWildcard","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_AccessDenied","_interopRequireDefault","_Maintenance","_PageError","_PageNotFound","_ProjectNotFound"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './Error';\nexport * from './Error';\nexport { default as AccessDenied } from './AccessDenied';\nexport { default as Maintenance } from './Maintenance';\nexport { default as PageError } from './PageError';\nexport { default as PageNotFound } from './PageNotFound';\nexport { default as ProjectNotFound } from './ProjectNotFound';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACAC,MAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAK,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAN,MAAA,CAAAM,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAd,MAAA,CAAAM,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,aAAA,GAAAC,sBAAA,CAAAd,OAAA;AACA,IAAAe,YAAA,GAAAD,sBAAA,CAAAd,OAAA;AACA,IAAAgB,UAAA,GAAAF,sBAAA,CAAAd,OAAA;AACA,IAAAiB,aAAA,GAAAH,sBAAA,CAAAd,OAAA;AACA,IAAAkB,gBAAA,GAAAJ,sBAAA,CAAAd,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_Error","_interopRequireWildcard","require","_Error2","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_AccessDenied","_interopRequireDefault","_AccessDenied2","_Maintenance","_Maintenance2","_PageError","_PageError2","_PageNotFound","_PageNotFound2","_ProjectNotFound","_ProjectNotFound2"],"sources":["../../src/index.ts"],"sourcesContent":["export { default, getIconPath } from './Error';\nexport * from './Error.type';\n\nexport { default as AccessDenied } from './AccessDenied/AccessDenied';\nexport * from './AccessDenied/AccessDenied.type';\nexport { default as Maintenance } from './Maintenance/Maintenance';\nexport * from './Maintenance/Maintenance.type';\nexport { default as PageError } from './PageError/PageError';\nexport * from './PageError/PageError.type';\nexport { default as PageNotFound } from './PageNotFound/PageNotFound';\nexport * from './PageNotFound/PageNotFound.type';\nexport { default as ProjectNotFound } from './ProjectNotFound/ProjectNotFound';\nexport * from './ProjectNotFound/ProjectNotFound.type';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,OAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,OAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,OAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAEA,IAAAS,aAAA,GAAAC,sBAAA,CAAAf,OAAA;AACA,IAAAgB,cAAA,GAAAhB,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAa,cAAA,EAAAZ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAA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gB,aAAA,GAAAN,sBAAA,CAAAf,OAAA;AACA,IAAAsB,cAAA,GAAAtB,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAmB,cAAA,EAAAlB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAiB,cAAA,CAAAjB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAS,cAAA,CAAAjB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAkB,gBAAA,GAAAR,sBAAA,CAAAf,OAAA;AACA,IAAAwB,iBAAA,GAAAxB,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAqB,iBAAA,EAAApB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAmB,iBAAA,CAAAnB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAW,iBAAA,CAAAnB,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -39,4 +39,4 @@ _defineProperty(RootAccessDenied, "defaultProps", {
39
39
  titleTag: 'h2'
40
40
  });
41
41
  export default createComponent(RootAccessDenied);
42
- //# sourceMappingURL=index.js.map
42
+ //# sourceMappingURL=AccessDenied.js.map
@@ -0,0 +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 { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport type { AccessDeniedComponent, AccessDeniedProps } from './AccessDenied.type';\nimport Error, { getIconPath } from '../Error';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootAccessDenied extends Component<AccessDeniedProps, typeof RootAccessDenied.enhance> {\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 AccessDeniedComponent;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAGzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAC7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,gBAAgB,SAASP,SAAS,CAAqD;EAW3FQ,MAAMA,CAAA,EAAG;IAAA,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"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 { ErrorsProps } from '../Error.type';\n\nexport type AccessDeniedProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type AccessDeniedComponent = Intergalactic.Component<'div', AccessDeniedProps & ErrorsProps>;\n"],"mappings":"","ignoreList":[]}
package/lib/es6/Error.js CHANGED
@@ -75,9 +75,10 @@ function Controls(props) {
75
75
  ..._assignProps4({}, _ref4)
76
76
  }));
77
77
  }
78
- export default createComponent(RootError, {
78
+ const Error = createComponent(RootError, {
79
79
  Title,
80
80
  Description,
81
81
  Controls
82
82
  });
83
+ export default Error;
83
84
  //# sourceMappingURL=Error.js.map
@@ -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"],"sources":["../../src/Error.jsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass RootError extends Component {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n const SImage = 'img';\n return sstyled(styles)(\n <SError render={Flex}>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? <SImage src={icon} alt='' /> : icon}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nexport default createComponent(RootError, {\n Title,\n Description,\n Controls,\n});\n"],"mappings":";;;;;;AAAA,SAASA,GAAG,EAAEC,IAAI,QAAQ,0BAA0B;AACpD,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;AAI1B,OAAO,MAAMC,WAAW,GAAIC,IAAI,IAAKN,mBAAmB,CAACM,IAAI,CAAC;AAE9D,MAAMC,SAAS,SAAST,SAAS,CAAC;EAIhCU,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,MAAM,GAOMjB,IAAI;IANtB,MAAM;MAAEkB,QAAQ;MAAEC,MAAM;MAAEC;IAAK,CAAC,GAAG,IAAI,CAACL,OAAO;IAC/C,MAAMM,MAAM,GAAG,KAAK;IACpB,MAAMC,aAAa,GAAG,KAAK;IAC3B,MAAMC,QAAQ,GAAG,KAAK;IACtB,MAAMC,MAAM,GAAG,KAAK;IACpB,OAA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AAM,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,KAAK,EAAE;EAAA,IAAAY,KAAA,GAAAV,YAAA;IAAAW,KAAA;EACvB,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,eAAezC,eAAe,CAACW,SAAS,EAAE;EACxCiB,KAAK;EACLO,WAAW;EACXK;AACF,CAAC,CAAC","ignoreList":[]}
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 { IStyledProps } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\n\nimport type { ErrorComponent, ErrorsProps, IconNamesErrors } from './Error.type';\nimport style from './style/errors.shadow.css';\n\nexport const getIconPath = (name: IconNamesErrors) => getIllustrationPath(name);\n\nclass RootError extends Component<ErrorsProps> {\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: IStyledProps) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} data-errors-title tag='h2' />);\n}\n\nfunction Description(props: IStyledProps) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag='p' />);\n}\n\nfunction Controls(props: IStyledProps) {\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 ErrorComponent;\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,IAAqB,IAAKN,mBAAmB,CAACM,IAAI,CAAC;AAE/E,MAAMC,SAAS,SAAST,SAAS,CAAc;EAI7CU,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,MAAM,GAOMjB,IAAI;IANtB,MAAM;MAAEkB,QAAQ;MAAEC,MAAM;MAAEC;IAAK,CAAC,GAAG,IAAI,CAACL,OAAO;IAC/C,MAAMM,MAAM,GAAG,KAAK;IACpB,MAAMC,aAAa,GAAG,KAAK;IAC3B,MAAMC,QAAQ,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tD,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,KAAmB,EAAE;EAAA,IAAAY,KAAA,GAAAV,YAAA;IAAAW,KAAA;EACrC,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,CAAmB;AAEpB,eAAeK,KAAK","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Error.type.js.map
@@ -0,0 +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\nexport type IconNamesErrors = TIllustrationNamesErrors;\n\nexport type ErrorsProps = FlexProps & {\n /**\n * Error icon\n * Icon as a string is a URL to an image.\n */\n icon?: string | React.ReactNode;\n};\n\nexport type ErrorsContext = {\n getTextProps: PropGetterFn;\n getDescriptionProps: PropGetterFn;\n getControlsProps: PropGetterFn;\n};\n\nexport type ErrorComponent = Intergalactic.Component<'div', ErrorsProps, ErrorsContext> & {\n Title: typeof Box;\n Description: typeof Box;\n Controls: typeof Box;\n};\n"],"mappings":"","ignoreList":[]}
@@ -38,4 +38,4 @@ _defineProperty(RootMaintenance, "defaultProps", {
38
38
  titleTag: 'h2'
39
39
  });
40
40
  export default createComponent(RootMaintenance);
41
- //# sourceMappingURL=index.js.map
41
+ //# sourceMappingURL=Maintenance.js.map
@@ -0,0 +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 { 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 { MaintenanceComponent, MaintenanceProps } from './Maintenance.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootMaintenance extends Component<MaintenanceProps, typeof RootMaintenance.enhance> {\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 MaintenanceComponent;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OA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AQ,EAAE,GAAG;EACbiB,IAAI,EAAEzB,WAAW,CAAC,aAAa,CAAC;EAChCU,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAehB,eAAe,CAACQ,eAAe,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Maintenance.type.js.map
@@ -0,0 +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 { ErrorsProps } from '../Error.type';\n\nexport type MaintenanceProps = WithI18nEnhanceProps & {\n /**\n * Tool name\n */\n toolName: string;\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type MaintenanceComponent = Intergalactic.Component<'div', MaintenanceProps & ErrorsProps>;\n"],"mappings":"","ignoreList":[]}
@@ -43,4 +43,4 @@ _defineProperty(RootPageError, "defaultProps", {
43
43
  titleTag: 'h2'
44
44
  });
45
45
  export default createComponent(RootPageError);
46
- //# sourceMappingURL=index.js.map
46
+ //# sourceMappingURL=PageError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageError.js","names":["Button","createComponent","Component","callAllEventHandlers","canUseDOM","i18nEnhance","React","Error","getIconPath","localizedMessages","RootPageError","constructor","args","_defineProperty","location","reload","render","Children","getI18nText","onClick","titleTag","other","asProps","createElement","Title","tag","Description","Controls","handleReload","size","use","theme","i18n","locale","icon"],"sources":["../../../src/PageError/PageError.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport { createComponent, Component } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport Error, { getIconPath } from '../Error';\nimport type { PageErrorComponent, PageErrorProps } from './PageError.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageError extends Component<PageErrorProps, typeof RootPageError.enhance> {\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, ...other } = this.asProps;\n\n return (\n <Error {...other}>\n <Error.Title tag={titleTag}>{getI18nText('title')}</Error.Title>\n <Error.Description>{getI18nText('text')}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size='l'\n use='primary'\n theme='info'\n >\n {getI18nText('btnRetry')}\n </Button>\n </Error.Controls>\n </Error>\n );\n }\n}\n\nexport default createComponent(RootPageError) as PageErrorComponent;\n"],"mappings":";AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAASC,eAAe,EAAEC,SAAS,QAAQ,eAAe;AAC1D,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,OAAOC,SAAS,MAAM,mCAAmC;AACzD,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAE7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,aAAa,SAASR,SAAS,CAA+C;EAAAS,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,uBAUnE,MAAM;MACnB,IAAIT,SAAS,CAAC,CAAC,EAAE;QACfU,QAAQ,CAACC,MAAM,CAAC,CAAC;MACnB;IACF,CAAC;EAAA;EAEDC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,OAAO;MAAEC,QAAQ;MAAE,GAAGC;IAAM,CAAC,GAAG,IAAI,CAACC,OAAO;IAE3E,oBACEhB,KAAA,CAAAiB,aAAA,CAAChB,KAAK,EAAKc,KAAK,eACdf,KAAA,CAAAiB,aAAA,CAAChB,KAAK,CAACiB,KAAK;MAACC,GAAG,EAAEL;IAAS,GAAEF,WAAW,CAAC,OAAO,CAAe,CAAC,eAChEZ,KAAA,CAAAiB,aAAA,CAAChB,KAAK,CAACmB,WAAW,QAAER,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DZ,KAAA,CAAAiB,aAAA,CAACN,QAAQ,MAAE,CAAC,eACZX,KAAA,CAAAiB,aAAA,CAAChB,KAAK,CAACoB,QAAQ,qBACbrB,KAAA,CAAAiB,aAAA,CAACvB,MAAM;MACLmB,OAAO,EAAEhB,oBAAoB,CAACgB,OAAO,EAAE,IAAI,CAACS,YAAY,CAAE;MAC1DC,IAAI,EAAC,GAAG;MACRC,GAAG,EAAC,SAAS;MACbC,KAAK,EAAC;IAAM,GAEXb,WAAW,CAAC,UAAU,CACjB,CACM,CACX,CAAC;EAEZ;AACF;AAACL,eAAA,CArCKH,aAAa,iBACI,WAAW;AAAAG,eAAA,CAD5BH,aAAa,aAEA,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAI,eAAA,CAF7CH,aAAa,kBAGK;EACpBsB,IAAI,EAAEvB,iBAAiB;EACvBwB,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE1B,WAAW,CAAC,YAAY,CAAC;EAC/BY,QAAQ,EAAE;AACZ,CAAC;AA+BH,eAAenB,eAAe,CAACS,aAAa,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PageError.type.js.map
@@ -0,0 +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 { ErrorsProps } from '../Error.type';\n\nexport type PageErrorProps = WithI18nEnhanceProps & {\n /**\n * Page reloading button click handler\n * @default () => { if (canUseDOM()) { location.reload(); } }\n */\n onClick?: (e: React.MouseEvent) => void;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type PageErrorComponent = Intergalactic.Component<'div', PageErrorProps & ErrorsProps>;\n"],"mappings":"","ignoreList":[]}
@@ -27,7 +27,7 @@ class RootPageNotFound extends Component {
27
27
  }, getI18nText('btnHome'))));
28
28
  }
29
29
  }
30
- _defineProperty(RootPageNotFound, "displayName", 'Maintenance');
30
+ _defineProperty(RootPageNotFound, "displayName", 'PageNotFound');
31
31
  _defineProperty(RootPageNotFound, "enhance", [i18nEnhance(localizedMessages)]);
32
32
  _defineProperty(RootPageNotFound, "defaultProps", {
33
33
  i18n: localizedMessages,
@@ -37,4 +37,5 @@ _defineProperty(RootPageNotFound, "defaultProps", {
37
37
  titleTag: 'h2'
38
38
  });
39
39
  export default createComponent(RootPageNotFound);
40
- //# sourceMappingURL=index.js.map
40
+ ;
41
+ //# sourceMappingURL=PageNotFound.js.map
@@ -0,0 +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 { 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 { PageNotFoundComponent, PageNotFoundProps } from './PageNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootPageNotFound extends Component<PageNotFoundProps, typeof RootPageNotFound.enhance> {\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 PageNotFoundComponent; ;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAASC,eAAe,EAAEC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,IAAIC,WAAW,QAAQ,UAAU;AAE7C,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,gBAAgB,SAASP,SAAS,CAAqD;EAW3FQ,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC,QAAQ;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACJ,OAAO;IAElE,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,QAAEP,WAAW,CAAC,MAAM,CAAqB,CAAC,eAC5DT,KAAA,CAAAY,aAAA,CAACJ,QAAQ,MAAE,CAAC,eACZR,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACgB,QAAQ,qBACbjB,KAAA,CAAAY,aAAA,CAACjB,MAAM;MAACoB,GAAG,EAAC,GAAG;MAACG,IAAI,EAAC,MAAM;MAACC,IAAI,EAAC,GAAG;MAACC,GAAG,EAAC,SAAS;MAACC,KAAK,EAAC,MAAM;MAACC,IAAI,EAAEZ;IAAS,GAC5ED,WAAW,CAAC,SAAS,CAChB,CACM,CACZ,CAAC;EAEX;AACF;AAACc,eAAA,CA3BKnB,gBAAgB,iBACC,cAAc;AAAAmB,eAAA,CAD/BnB,gBAAgB,aAEH,CAACL,WAAW,CAACI,iBAAiB,CAAC,CAAC;AAAAoB,eAAA,CAF7CnB,gBAAgB,kBAGE;EACpBoB,IAAI,EAAErB,iBAAiB;EACvBsB,MAAM,EAAE,IAAI;EACZC,IAAI,EAAExB,WAAW,CAAC,gBAAgB,CAAC;EACnCQ,QAAQ,EAAE,GAAG;EACbC,QAAQ,EAAE;AACZ,CAAC;AAoBH,eAAef,eAAe,CAACQ,gBAAgB,CAAC;AAA2B","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PageNotFound.type.js.map
@@ -0,0 +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 { ErrorsProps } from '../Error.type';\n\nexport type PageNotFoundProps = WithI18nEnhanceProps & {\n /**\n * href of the home link\n * @default /\n */\n homeLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type PageNotFoundComponent = Intergalactic.Component<'div', PageNotFoundProps & ErrorsProps>;\n"],"mappings":"","ignoreList":[]}
@@ -31,7 +31,7 @@ class RootProjectNotFound extends Component {
31
31
  }, getI18nText('title')), /*#__PURE__*/React.createElement(Error.Description, {
32
32
  tag: Text,
33
33
  formatTags: true,
34
- size: "300"
34
+ size: 300
35
35
  }, text), /*#__PURE__*/React.createElement(Children, null), /*#__PURE__*/React.createElement(Error.Controls, null, /*#__PURE__*/React.createElement(Button, {
36
36
  tag: "a",
37
37
  type: "none",
@@ -47,7 +47,7 @@ class RootProjectNotFound extends Component {
47
47
  }, getI18nText('btnContacts'))));
48
48
  }
49
49
  }
50
- _defineProperty(RootProjectNotFound, "displayName", 'Maintenance');
50
+ _defineProperty(RootProjectNotFound, "displayName", 'ProjectNotFound');
51
51
  _defineProperty(RootProjectNotFound, "enhance", [i18nEnhance(localizedMessages)]);
52
52
  _defineProperty(RootProjectNotFound, "defaultProps", {
53
53
  i18n: localizedMessages,
@@ -59,4 +59,4 @@ _defineProperty(RootProjectNotFound, "defaultProps", {
59
59
  titleTag: 'h2'
60
60
  });
61
61
  export default createComponent(RootProjectNotFound);
62
- //# sourceMappingURL=index.js.map
62
+ //# sourceMappingURL=ProjectNotFound.js.map
@@ -0,0 +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 { 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 { ProjectNotFoundComponent, ProjectNotFoundProps } from './ProjectNotFound.type';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass RootProjectNotFound extends Component<ProjectNotFoundProps, typeof RootProjectNotFound.enhance> {\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 ProjectNotFoundComponent;\n"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,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,CAA2D;EAapGS,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,Q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,CAACvB,MAAM;MAACiC,IAAI,EAAC,GAAG;MAACH,GAAG,EAAC,GAAG;MAACK,IAAI,EAAC,MAAM;MAACR,IAAI,EAAEV;IAAa,GACrDF,WAAW,CAAC,aAAa,CACpB,CACM,CACZ,CAAC;EAEX;AACF;AAACuB,eAAA,CAvCK5B,mBAAmB,iBACF,iBAAiB;AAAA4B,eAAA,CADlC5B,mBAAmB,aAEN,CAACN,WAAW,CAACK,iBAAiB,CAAC,CAAC;AAAA6B,eAAA,CAF7C5B,mBAAmB,kBAGD;EACpB6B,IAAI,EAAE9B,iBAAiB;EACvB+B,MAAM,EAAE,IAAI;EACZC,IAAI,EAAEjC,WAAW,CAAC,mBAAmB,CAAC;EACtCQ,YAAY,EAAE,WAAW;EACzBC,YAAY,EAAE,mBAAmB;EACjCC,eAAe,EAAE,mBAAmB;EACpCC,QAAQ,EAAE;AACZ,CAAC;AA8BH,eAAelB,eAAe,CAACS,mBAAmB,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ProjectNotFound.type.js.map
@@ -0,0 +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 { ErrorsProps } from '../Error.type';\n\nexport type ProjectNotFoundProps = WithI18nEnhanceProps & {\n /**\n * URL for the \"Go to Projects\" button\n * @default /projects\n */\n projectsLink?: string;\n /**\n * URL for the \"Contact us\" button\n * @default /company/contacts\n */\n contactsLink?: string;\n /**\n * URL for the \"Support Team\" link\n * @default /company/contacts\n */\n supportTeamLink?: string;\n /**\n * HTML tag of the error title\n * @default h2\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p';\n};\n\nexport type ProjectNotFoundComponent = Intergalactic.Component<'div', ProjectNotFoundProps & ErrorsProps>;\n"],"mappings":"","ignoreList":[]}