@semcore/illustration 16.0.2 → 16.0.3-prerelease.3
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/AccessDenied/index.d.ts +1 -1
- package/AccessLogIn/index.d.ts +1 -1
- package/AreaChart/index.d.ts +1 -1
- package/Blocked/index.d.ts +1 -1
- package/CHANGELOG.md +6 -0
- package/ChoroplethMapChart/index.d.ts +1 -1
- package/Coffee/index.d.ts +1 -1
- package/Collection/index.d.ts +1 -1
- package/CombinedChart/index.d.ts +1 -1
- package/Configuration/index.d.ts +1 -1
- package/Confirmation/index.d.ts +1 -1
- package/Congrats/index.d.ts +1 -1
- package/ConnectionLost/index.d.ts +1 -1
- package/DeletedAccount/index.d.ts +1 -1
- package/DeletedPage/index.d.ts +1 -1
- package/Dns/index.d.ts +1 -1
- package/DonutChart/index.d.ts +1 -1
- package/Duplicates/index.d.ts +1 -1
- package/Feedback/index.d.ts +1 -1
- package/FunnelChart/index.d.ts +1 -1
- package/Good/index.d.ts +1 -1
- package/HeatMapChart/index.d.ts +1 -1
- package/HorizontalBarChart/index.d.ts +1 -1
- package/KagiChart/index.d.ts +1 -1
- package/LineChart/index.d.ts +1 -1
- package/LollipopChart/index.d.ts +1 -1
- package/MailSent/index.d.ts +1 -1
- package/Maintenance/index.d.ts +1 -1
- package/Nexttime/index.d.ts +1 -1
- package/NoPayment/index.d.ts +1 -1
- package/NothingFound/index.d.ts +1 -1
- package/OtherData/index.d.ts +1 -1
- package/PageError/index.d.ts +1 -1
- package/PageNotFound/index.d.ts +1 -1
- package/PieChart/index.d.ts +1 -1
- package/Processing/index.d.ts +1 -1
- package/ProjectNotFound/index.d.ts +1 -1
- package/README.md +1 -28
- package/RadarChart/index.d.ts +1 -1
- package/RadialTreeChart/index.d.ts +1 -1
- package/SankeyChart/index.d.ts +1 -1
- package/ScatterPlotChart/index.d.ts +1 -1
- package/StackedAreaChart/index.d.ts +1 -1
- package/Suggestion/index.d.ts +1 -1
- package/Suggestions/index.d.ts +1 -1
- package/Table/index.d.ts +1 -1
- package/TagCloud/index.d.ts +1 -1
- package/TextLinksEtc/index.d.ts +1 -1
- package/Timeout/index.d.ts +1 -1
- package/UnderConstruction/index.d.ts +1 -1
- package/VennChart/index.d.ts +1 -1
- package/VerticalBarChart/index.d.ts +1 -1
- package/Waiting/index.d.ts +1 -1
- package/Warning/index.d.ts +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +2 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/index.js +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/esm/index.mjs +1 -1
- package/lib/types/index.d.ts +11 -12
- package/package.json +7 -7
- package/transform.ts +7 -7
- package/types/svg-to-jsx.d.ts +1 -1
package/AccessDenied/index.d.ts
CHANGED
package/AccessLogIn/index.d.ts
CHANGED
package/AreaChart/index.d.ts
CHANGED
package/Blocked/index.d.ts
CHANGED
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
|
+
## [16.0.3] - 2025-06-16
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/base-components` [16.0.1 ~> 16.0.2]).
|
|
10
|
+
|
|
5
11
|
## [16.0.2] - 2025-05-30
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/Coffee/index.d.ts
CHANGED
package/Collection/index.d.ts
CHANGED
package/CombinedChart/index.d.ts
CHANGED
package/Configuration/index.d.ts
CHANGED
package/Confirmation/index.d.ts
CHANGED
package/Congrats/index.d.ts
CHANGED
package/DeletedPage/index.d.ts
CHANGED
package/Dns/index.d.ts
CHANGED
package/DonutChart/index.d.ts
CHANGED
package/Duplicates/index.d.ts
CHANGED
package/Feedback/index.d.ts
CHANGED
package/FunnelChart/index.d.ts
CHANGED
package/Good/index.d.ts
CHANGED
package/HeatMapChart/index.d.ts
CHANGED
package/KagiChart/index.d.ts
CHANGED
package/LineChart/index.d.ts
CHANGED
package/LollipopChart/index.d.ts
CHANGED
package/MailSent/index.d.ts
CHANGED
package/Maintenance/index.d.ts
CHANGED
package/Nexttime/index.d.ts
CHANGED
package/NoPayment/index.d.ts
CHANGED
package/NothingFound/index.d.ts
CHANGED
package/OtherData/index.d.ts
CHANGED
package/PageError/index.d.ts
CHANGED
package/PageNotFound/index.d.ts
CHANGED
package/PieChart/index.d.ts
CHANGED
package/Processing/index.d.ts
CHANGED
package/README.md
CHANGED
|
@@ -13,43 +13,16 @@
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
npm install
|
|
16
|
+
npm install @semcore/illustration
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
21
|
-
```jsx
|
|
22
|
-
import MailSentReact from 'intergalactic/illustration/MailSent';
|
|
23
|
-
import MailSentSVG from 'intergalactic/illustration/svg/MailSent.svg';
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
<details>
|
|
27
|
-
<summary>Alternative installation and use</summary>
|
|
28
|
-
|
|
29
|
-
**We do not recommend this usage path due to possible dependency and update issues.**
|
|
30
|
-
|
|
31
|
-
### Install
|
|
32
|
-
|
|
33
|
-
You can only install one package from the design system
|
|
34
|
-
|
|
35
|
-
```sh
|
|
36
|
-
npm install @semcore/illustration @semcore/core
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
`@semcore/core` - _is the basic package by which we create our components, and it contains all of the common logic
|
|
40
|
-
of the components that is discussed below. There should only be one version of the package in the project._
|
|
41
|
-
|
|
42
|
-
### Usage
|
|
43
|
-
|
|
44
|
-
You can use the package the same way but without `/ui/` in the import path.
|
|
45
|
-
|
|
46
21
|
```jsx
|
|
47
22
|
import MailSentReact from '@semcore/illustration/MailSent';
|
|
48
23
|
import MailSentSVG from '@semcore/illustration/svg/MailSent.svg';
|
|
49
24
|
```
|
|
50
25
|
|
|
51
|
-
</details>
|
|
52
|
-
|
|
53
26
|
## 👤 Author
|
|
54
27
|
|
|
55
28
|
[UI-kit team](https://github.com/semrush/intergalactic/blob/master/MAINTAINERS) and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
|
package/RadarChart/index.d.ts
CHANGED
package/SankeyChart/index.d.ts
CHANGED
package/Suggestion/index.d.ts
CHANGED
package/Suggestions/index.d.ts
CHANGED
package/Table/index.d.ts
CHANGED
package/TagCloud/index.d.ts
CHANGED
package/TextLinksEtc/index.d.ts
CHANGED
package/Timeout/index.d.ts
CHANGED
package/VennChart/index.d.ts
CHANGED
package/Waiting/index.d.ts
CHANGED
package/Warning/index.d.ts
CHANGED
package/lib/cjs/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["export 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":"","ignoreList":[]}
|
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 = "16.0.
|
|
7
|
+
var version = "16.0.3";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Formats string from `access_denied` or `access-denied` to `AccessDenied`
|
|
@@ -14,9 +14,8 @@ var formatName = function formatName(name) {
|
|
|
14
14
|
return el[0].toUpperCase() + el.slice(1);
|
|
15
15
|
}).join('');
|
|
16
16
|
};
|
|
17
|
-
var getIllustrationPath = function getIllustrationPath(name) {
|
|
17
|
+
var getIllustrationPath = exports.getIllustrationPath = function getIllustrationPath(name) {
|
|
18
18
|
var formattedName = formatName(name);
|
|
19
19
|
return "https://static.semrush.com/intergalactic/illustrations/".concat(version, "/").concat(formattedName, ".svg");
|
|
20
20
|
};
|
|
21
|
-
exports.getIllustrationPath = getIllustrationPath;
|
|
22
21
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","
|
|
1
|
+
{"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","exports","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/intergalactic/illustrations/${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,CAAC,CAAC,GAAGD,EAAE,CAACE,KAAK,CAAC,CAAC,CAAC;EAAA,EAAC,CAC9CC,IAAI,CAAC,EAAE,CAAC;AACb,CAAC;AAEM,IAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG,SAAtBA,mBAAmBA,CAAIP,IAAY,EAAK;EACnD,IAAMS,aAAa,GAAGV,UAAU,CAACC,IAAI,CAAC;EAEtC,iEAAAU,MAAA,CAAiEZ,OAAO,OAAAY,MAAA,CAAID,aAAa;AAC3F,CAAC","ignoreList":[]}
|
package/lib/es6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["export 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":"","ignoreList":[]}
|
package/lib/es6/index.js
CHANGED
package/lib/es6/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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/intergalactic/illustrations/${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,
|
|
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/intergalactic/illustrations/${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,CAAC,CAAC,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,iEAAAS,MAAA,CAAiEX,OAAO,OAAAW,MAAA,CAAID,aAAa;AAC3F,CAAC","ignoreList":[]}
|
package/lib/esm/index.mjs
CHANGED
package/lib/types/index.d.ts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
|
|
2
1
|
export type IllustrationProps = {
|
|
3
|
-
|
|
2
|
+
/**
|
|
4
3
|
* Main color of the illustration
|
|
5
4
|
**/
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
primaryColor?: string;
|
|
6
|
+
/**
|
|
8
7
|
* Secondary color of the illustration
|
|
9
8
|
**/
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
secondaryColor?: string;
|
|
10
|
+
/**
|
|
12
11
|
* Changes background fill of the illustration
|
|
13
12
|
**/
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
fill?: string;
|
|
14
|
+
/**
|
|
16
15
|
* Width of the illustration
|
|
17
16
|
**/
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
width?: string | number;
|
|
18
|
+
/**
|
|
20
19
|
* Height of the illustration
|
|
21
20
|
**/
|
|
22
|
-
|
|
23
|
-
}
|
|
21
|
+
height?: string | number;
|
|
22
|
+
};
|
|
24
23
|
|
|
25
24
|
export type TIllustrationNamesErrors =
|
|
26
25
|
| 'access_denied'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/illustration",
|
|
3
3
|
"description": "Semrush Illustration Component",
|
|
4
|
-
"version": "16.0.
|
|
4
|
+
"version": "16.0.3-prerelease.3",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/esm/index.mjs",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@babel/runtime": "
|
|
12
|
+
"@babel/runtime": "7.19.0",
|
|
13
13
|
"colorjs.io": "0.4.3"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@semcore/base-components": "^16.0.
|
|
16
|
+
"@semcore/base-components": "^16.0.2-prerelease.3"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"directory": "semcore/illustration"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
+
"@types/fs-extra": "8.1.0",
|
|
24
25
|
"esbuild": "0.14.29",
|
|
25
|
-
"happy-dom": "9.20.3",
|
|
26
26
|
"fs-extra": "8.1.0",
|
|
27
|
+
"happy-dom": "9.20.3",
|
|
27
28
|
"svg-to-jsx": "1.0.4",
|
|
28
|
-
"@semcore/
|
|
29
|
-
"@
|
|
30
|
-
"@types/fs-extra": "8.1.0"
|
|
29
|
+
"@semcore/core": "16.0.0",
|
|
30
|
+
"@semcore/testing-utils": "1.0.0"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
package/transform.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import fs from 'fs-extra';
|
|
2
1
|
import path, { resolve as resolvePath } from 'path';
|
|
3
|
-
|
|
4
|
-
import { Window } from 'happy-dom';
|
|
5
|
-
import esbuild from 'esbuild';
|
|
2
|
+
|
|
6
3
|
import ColorJSIO from 'colorjs.io';
|
|
4
|
+
import esbuild from 'esbuild';
|
|
5
|
+
import fs from 'fs-extra';
|
|
6
|
+
import { Window } from 'happy-dom';
|
|
7
|
+
import svgToJsx from 'svg-to-jsx';
|
|
7
8
|
const Color = ColorJSIO as any;
|
|
8
9
|
|
|
9
10
|
const illustrations = await fs.readdir('svg');
|
|
@@ -113,7 +114,7 @@ import { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';
|
|
|
113
114
|
const ${illustration} = ({${props.join(', ')}, ...props}, ref) => {
|
|
114
115
|
${prerenderLines.join('\n')}
|
|
115
116
|
return (
|
|
116
|
-
<Box
|
|
117
|
+
<Box
|
|
117
118
|
ref={ref}
|
|
118
119
|
width={width}
|
|
119
120
|
height={height}
|
|
@@ -158,7 +159,7 @@ type IllustrationProps = BoxProps & {
|
|
|
158
159
|
height?: string | number;
|
|
159
160
|
}
|
|
160
161
|
declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
|
|
161
|
-
export default Illustration;
|
|
162
|
+
export default Illustration;
|
|
162
163
|
`;
|
|
163
164
|
|
|
164
165
|
const { code: cjs } = await esbuild.transform(component, {
|
|
@@ -209,7 +210,6 @@ async function patchExports(illustrations: string[]) {
|
|
|
209
210
|
|
|
210
211
|
await fs.writeJSON(packageJsonPath, packageJson, { spaces: 2 });
|
|
211
212
|
|
|
212
|
-
// biome-ignore lint/suspicious/noConsoleLog:
|
|
213
213
|
console.log('Patched exports in package.json.');
|
|
214
214
|
}
|
|
215
215
|
|
package/types/svg-to-jsx.d.ts
CHANGED