@semcore/illustration 2.41.0-prerelease.2 → 2.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [2.42.0] - 2025-02-03
6
+
7
+ ### Changed
8
+
9
+ - Version minor update due to children dependencies update (`@semcore/flex-box` [5.39.1 ~> 5.40.0], `@semcore/core` [2.37.1 ~> 2.38.0]).
10
+
5
11
  ## [2.41.0] - 2024-12-09
6
12
 
7
13
  ### Added
package/lib/cjs/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getIllustrationPath = void 0;
7
- var version = "2.41.0";
7
+ var version = "2.42.0";
8
8
 
9
9
  /**
10
10
  * Formats string from `access_denied` or `access-denied` to `AccessDenied`
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mjs","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["\nexport type IllustrationProps = {\n /**\n * Main color of the illustration\n **/\n primaryColor?: string;\n /**\n * Secondary color of the illustration\n **/\n secondaryColor?: string;\n /**\n * Changes background fill of the illustration\n **/\n fill?: string;\n /**\n * Width of the illustration\n **/\n width?: string | number;\n /**\n * Height of the illustration\n **/\n height?: string | number;\n}\n\nexport type TIllustrationNamesErrors =\n | 'access_denied'\n | 'blocked'\n | 'confirmation'\n | 'connection_lost'\n | 'deleted_account'\n | 'dns'\n | 'maintenance'\n | 'no_payment'\n | 'page_error'\n | 'page_not_found'\n | 'project_not_found'\n | 'timeout';\n\nexport type TIllustrationNamesWidgetEmpty =\n | 'area-chart'\n | 'choropleth-map-chart'\n | 'coffee'\n | 'combined-chart'\n | 'congrats'\n | 'deleted-page'\n | 'donut-chart'\n | 'duplicates'\n | 'funnel-chart'\n | 'good'\n | 'heat-map-chart'\n | 'horizontal-bar-chart'\n | 'kagi-chart'\n | 'line-chart'\n | 'lollipop-chart'\n | 'nexttime'\n | 'nothing-found'\n | 'other-data'\n | 'pie-chart'\n | 'processing'\n | 'radar-chart'\n | 'radial-tree-chart'\n | 'sankey-chart'\n | 'scatter-plot-chart'\n | 'stacked-area-chart'\n | 'suggestion'\n | 'suggestions'\n | 'table'\n | 'tag-cloud'\n | 'text-links-etc'\n | 'under-construction'\n | 'venn-chart'\n | 'vertical-bar-chart'\n | 'warning';\n\ndeclare const getIllustrationPath: (\n name: TIllustrationNamesErrors | TIllustrationNamesWidgetEmpty,\n) => string;\n\nexport { getIllustrationPath };\n"],"mappings":""}
@@ -1,4 +1,4 @@
1
- var version = "2.41.0";
1
+ var version = "2.42.0";
2
2
 
3
3
  /**
4
4
  * Formats string from `access_denied` or `access-denied` to `AccessDenied`
@@ -12,4 +12,4 @@ export var getIllustrationPath = function getIllustrationPath(name) {
12
12
  var formattedName = formatName(name);
13
13
  return "https://static.semrush.com/ui-kit/illustration/".concat(version, "/").concat(formattedName, ".svg");
14
14
  };
15
- //# sourceMappingURL=index.js.map
15
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","formattedName","concat"],"sources":["../../src/index.ts"],"sourcesContent":["declare const preval: any;\n\nconst version = preval`module.exports = require('../package.json').version`;\n\n/**\n * Formats string from `access_denied` or `access-denied` to `AccessDenied`\n */\nconst formatName = (name: string) => {\n return name\n .split(/_|-/)\n .map((el) => el[0].toUpperCase() + el.slice(1))\n .join('');\n};\n\nexport const getIllustrationPath = (name: string) => {\n const formattedName = formatName(name);\n\n return `https://static.semrush.com/ui-kit/illustration/${version}/${formattedName}.svg`;\n};\n"],"mappings":"AAEA,IAAMA,OAAO,WAA8D;;AAE3E;AACA;AACA;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAY,EAAK;EACnC,OAAOA,IAAI,CACRC,KAAK,CAAC,KAAK,CAAC,CACZC,GAAG,CAAC,UAACC,EAAE;IAAA,OAAKA,EAAE,CAAC,CAAC,CAAC,CAACC,WAAW,EAAE,GAAGD,EAAE,CAACE,KAAK,CAAC,CAAC,CAAC;EAAA,EAAC,CAC9CC,IAAI,CAAC,EAAE,CAAC;AACb,CAAC;AAED,OAAO,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIP,IAAY,EAAK;EACnD,IAAMQ,aAAa,GAAGT,UAAU,CAACC,IAAI,CAAC;EAEtC,yDAAAS,MAAA,CAAyDX,OAAO,OAAAW,MAAA,CAAID,aAAa;AACnF,CAAC"}
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@semcore/illustration",
3
3
  "description": "Semrush Illustration Component",
4
- "version": "2.41.0-prerelease.2",
4
+ "version": "2.42.0",
5
5
  "main": "lib/cjs/index.js",
6
- "module": "lib/es6/index.js",
6
+ "module": "lib/es6/index.mjs",
7
7
  "typings": "lib/types/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@babel/runtime": "^7.17.9",
13
- "@semcore/flex-box": "5.39.1-prerelease.2",
13
+ "@semcore/flex-box": "5.40.0",
14
14
  "colorjs.io": "0.4.3"
15
15
  },
16
16
  "peerDependencies": {
17
- "@semcore/core": "^2.37.1-prerelease.2",
17
+ "@semcore/core": "^2.17.5",
18
18
  "react": "16.8 - 18",
19
19
  "react-dom": "16.8 - 18"
20
20
  },
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["\nexport type IllustrationProps = {\n /**\n * Main color of the illustration\n **/\n primaryColor?: string;\n /**\n * Secondary color of the illustration\n **/\n secondaryColor?: string;\n /**\n * Changes background fill of the illustration\n **/\n fill?: string;\n /**\n * Width of the illustration\n **/\n width?: string | number;\n /**\n * Height of the illustration\n **/\n height?: string | number;\n}\n\nexport type TIllustrationNamesErrors =\n | 'access_denied'\n | 'blocked'\n | 'confirmation'\n | 'connection_lost'\n | 'deleted_account'\n | 'dns'\n | 'maintenance'\n | 'no_payment'\n | 'page_error'\n | 'page_not_found'\n | 'project_not_found'\n | 'timeout';\n\nexport type TIllustrationNamesWidgetEmpty =\n | 'area-chart'\n | 'choropleth-map-chart'\n | 'coffee'\n | 'combined-chart'\n | 'congrats'\n | 'deleted-page'\n | 'donut-chart'\n | 'duplicates'\n | 'funnel-chart'\n | 'good'\n | 'heat-map-chart'\n | 'horizontal-bar-chart'\n | 'kagi-chart'\n | 'line-chart'\n | 'lollipop-chart'\n | 'nexttime'\n | 'nothing-found'\n | 'other-data'\n | 'pie-chart'\n | 'processing'\n | 'radar-chart'\n | 'radial-tree-chart'\n | 'sankey-chart'\n | 'scatter-plot-chart'\n | 'stacked-area-chart'\n | 'suggestion'\n | 'suggestions'\n | 'table'\n | 'tag-cloud'\n | 'text-links-etc'\n | 'under-construction'\n | 'venn-chart'\n | 'vertical-bar-chart'\n | 'warning';\n\ndeclare const getIllustrationPath: (\n name: TIllustrationNamesErrors | TIllustrationNamesWidgetEmpty,\n) => string;\n\nexport { getIllustrationPath };\n"],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","formattedName","concat"],"sources":["../../src/index.ts"],"sourcesContent":["declare const preval: any;\n\nconst version = preval`module.exports = require('../package.json').version`;\n\n/**\n * Formats string from `access_denied` or `access-denied` to `AccessDenied`\n */\nconst formatName = (name: string) => {\n return name\n .split(/_|-/)\n .map((el) => el[0].toUpperCase() + el.slice(1))\n .join('');\n};\n\nexport const getIllustrationPath = (name: string) => {\n const formattedName = formatName(name);\n\n return `https://static.semrush.com/ui-kit/illustration/${version}/${formattedName}.svg`;\n};\n"],"mappings":"AAEA,IAAMA,OAAO,WAA8D;;AAE3E;AACA;AACA;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAY,EAAK;EACnC,OAAOA,IAAI,CACRC,KAAK,CAAC,KAAK,CAAC,CACZC,GAAG,CAAC,UAACC,EAAE;IAAA,OAAKA,EAAE,CAAC,CAAC,CAAC,CAACC,WAAW,EAAE,GAAGD,EAAE,CAACE,KAAK,CAAC,CAAC,CAAC;EAAA,EAAC,CAC9CC,IAAI,CAAC,EAAE,CAAC;AACb,CAAC;AAED,OAAO,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIP,IAAY,EAAK;EACnD,IAAMQ,aAAa,GAAGT,UAAU,CAACC,IAAI,CAAC;EAEtC,yDAAAS,MAAA,CAAyDX,OAAO,OAAAW,MAAA,CAAID,aAAa;AACnF,CAAC"}