@semcore/illustration 2.44.2 → 16.0.0-prerelease.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.
Files changed (113) hide show
  1. package/AccessDenied/index.js +1 -1
  2. package/AccessDenied/index.mjs +1 -1
  3. package/AccessLogIn/index.js +1 -1
  4. package/AccessLogIn/index.mjs +1 -1
  5. package/AreaChart/index.js +1 -1
  6. package/AreaChart/index.mjs +1 -1
  7. package/Blocked/index.js +1 -1
  8. package/Blocked/index.mjs +1 -1
  9. package/CHANGELOG.md +6 -0
  10. package/ChoroplethMapChart/index.js +1 -1
  11. package/ChoroplethMapChart/index.mjs +1 -1
  12. package/Coffee/index.js +1 -1
  13. package/Coffee/index.mjs +1 -1
  14. package/Collection/index.js +1 -1
  15. package/Collection/index.mjs +1 -1
  16. package/CombinedChart/index.js +1 -1
  17. package/CombinedChart/index.mjs +1 -1
  18. package/Configuration/index.js +1 -1
  19. package/Configuration/index.mjs +1 -1
  20. package/Confirmation/index.js +1 -1
  21. package/Confirmation/index.mjs +1 -1
  22. package/Congrats/index.js +1 -1
  23. package/Congrats/index.mjs +1 -1
  24. package/ConnectionLost/index.js +1 -1
  25. package/ConnectionLost/index.mjs +1 -1
  26. package/DeletedAccount/index.js +1 -1
  27. package/DeletedAccount/index.mjs +1 -1
  28. package/DeletedPage/index.js +1 -1
  29. package/DeletedPage/index.mjs +1 -1
  30. package/Dns/index.js +1 -1
  31. package/Dns/index.mjs +1 -1
  32. package/DonutChart/index.js +1 -1
  33. package/DonutChart/index.mjs +1 -1
  34. package/Duplicates/index.js +1 -1
  35. package/Duplicates/index.mjs +1 -1
  36. package/Feedback/index.js +1 -1
  37. package/Feedback/index.mjs +1 -1
  38. package/FunnelChart/index.js +1 -1
  39. package/FunnelChart/index.mjs +1 -1
  40. package/Good/index.js +1 -1
  41. package/Good/index.mjs +1 -1
  42. package/HeatMapChart/index.js +1 -1
  43. package/HeatMapChart/index.mjs +1 -1
  44. package/HorizontalBarChart/index.js +1 -1
  45. package/HorizontalBarChart/index.mjs +1 -1
  46. package/KagiChart/index.js +1 -1
  47. package/KagiChart/index.mjs +1 -1
  48. package/LineChart/index.js +1 -1
  49. package/LineChart/index.mjs +1 -1
  50. package/LollipopChart/index.js +1 -1
  51. package/LollipopChart/index.mjs +1 -1
  52. package/MailSent/index.js +1 -1
  53. package/MailSent/index.mjs +1 -1
  54. package/Maintenance/index.js +1 -1
  55. package/Maintenance/index.mjs +1 -1
  56. package/Nexttime/index.js +1 -1
  57. package/Nexttime/index.mjs +1 -1
  58. package/NoPayment/index.js +1 -1
  59. package/NoPayment/index.mjs +1 -1
  60. package/NothingFound/index.js +1 -1
  61. package/NothingFound/index.mjs +1 -1
  62. package/OtherData/index.js +1 -1
  63. package/OtherData/index.mjs +1 -1
  64. package/PageError/index.js +1 -1
  65. package/PageError/index.mjs +1 -1
  66. package/PageNotFound/index.js +1 -1
  67. package/PageNotFound/index.mjs +1 -1
  68. package/PieChart/index.js +1 -1
  69. package/PieChart/index.mjs +1 -1
  70. package/Processing/index.js +1 -1
  71. package/Processing/index.mjs +1 -1
  72. package/ProjectNotFound/index.js +1 -1
  73. package/ProjectNotFound/index.mjs +1 -1
  74. package/RadarChart/index.js +1 -1
  75. package/RadarChart/index.mjs +1 -1
  76. package/RadialTreeChart/index.js +1 -1
  77. package/RadialTreeChart/index.mjs +1 -1
  78. package/SankeyChart/index.js +1 -1
  79. package/SankeyChart/index.mjs +1 -1
  80. package/ScatterPlotChart/index.js +1 -1
  81. package/ScatterPlotChart/index.mjs +1 -1
  82. package/StackedAreaChart/index.js +1 -1
  83. package/StackedAreaChart/index.mjs +1 -1
  84. package/Suggestion/index.js +1 -1
  85. package/Suggestion/index.mjs +1 -1
  86. package/Suggestions/index.js +1 -1
  87. package/Suggestions/index.mjs +1 -1
  88. package/Table/index.js +1 -1
  89. package/Table/index.mjs +1 -1
  90. package/TagCloud/index.js +1 -1
  91. package/TagCloud/index.mjs +1 -1
  92. package/TextLinksEtc/index.js +1 -1
  93. package/TextLinksEtc/index.mjs +1 -1
  94. package/Timeout/index.js +1 -1
  95. package/Timeout/index.mjs +1 -1
  96. package/UnderConstruction/index.js +1 -1
  97. package/UnderConstruction/index.mjs +1 -1
  98. package/VennChart/index.js +1 -1
  99. package/VennChart/index.mjs +1 -1
  100. package/VerticalBarChart/index.js +1 -1
  101. package/VerticalBarChart/index.mjs +1 -1
  102. package/Waiting/index.js +1 -1
  103. package/Waiting/index.mjs +1 -1
  104. package/Warning/index.js +1 -1
  105. package/Warning/index.mjs +1 -1
  106. package/lib/cjs/index.js +2 -2
  107. package/lib/cjs/index.js.map +1 -1
  108. package/lib/es6/index.js +2 -2
  109. package/lib/es6/index.js.map +1 -1
  110. package/lib/esm/index.mjs +13 -0
  111. package/package.json +6 -9
  112. package/transform.ts +1 -1
  113. package/vite.config.ts +24 -0
package/package.json CHANGED
@@ -1,22 +1,19 @@
1
1
  {
2
2
  "name": "@semcore/illustration",
3
3
  "description": "Semrush Illustration Component",
4
- "version": "2.44.2",
4
+ "version": "16.0.0-prerelease.0",
5
5
  "main": "lib/cjs/index.js",
6
- "module": "lib/es6/index.js",
6
+ "module": "lib/esm/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.41.4",
14
13
  "colorjs.io": "0.4.3"
15
14
  },
16
15
  "peerDependencies": {
17
- "@semcore/core": "^2.17.5",
18
- "react": "16.8 - 18",
19
- "react-dom": "16.8 - 18"
16
+ "@semcore/base-components": "^16.0.0-prerelease.0"
20
17
  },
21
18
  "repository": {
22
19
  "type": "git",
@@ -27,7 +24,7 @@
27
24
  "esbuild": "0.14.29",
28
25
  "happy-dom": "9.20.3",
29
26
  "fs-extra": "8.1.0",
30
- "svg-to-jsx": "^1.0.4",
27
+ "svg-to-jsx": "1.0.4",
31
28
  "@semcore/testing-utils": "1.0.0",
32
29
  "@types/react": "18.0.21",
33
30
  "@types/fs-extra": "8.1.0"
@@ -35,7 +32,7 @@
35
32
  "exports": {
36
33
  ".": {
37
34
  "require": "./lib/cjs/index.js",
38
- "import": "./lib/es6/index.js",
35
+ "import": "./lib/esm/index.mjs",
39
36
  "types": "./lib/types/index.d.ts"
40
37
  },
41
38
  "./AccessDenied": {
@@ -300,7 +297,7 @@
300
297
  }
301
298
  },
302
299
  "scripts": {
303
- "build": "pnpm clear && pnpm semcore-builder --source=js && pnpm run transform",
300
+ "build": "pnpm clear && pnpm semcore-builder --source=js && pnpm run transform && pnpm vite build",
304
301
  "transform": "tsm --require=../../.ci/tsm-filter-warnings.js transform.ts",
305
302
  "clear": "tsm --require=../../.ci/tsm-filter-warnings.js clear.ts",
306
303
  "upload-static": "gcs-upload svg/*.svg"
package/transform.ts CHANGED
@@ -108,7 +108,7 @@ await Promise.all(
108
108
  import React from 'react';
109
109
  import { createBaseComponent } from '@semcore/core';
110
110
  import { Box } from '@semcore/flex-box';
111
- import { useColorResolver } from '@semcore/utils/lib/use/useColorResolver';
111
+ import { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';
112
112
 
113
113
  const ${illustration} = ({${props.join(', ')}, ...props}, ref) => {
114
114
  ${prerenderLines.join('\n')}
package/vite.config.ts ADDED
@@ -0,0 +1,24 @@
1
+ import { defineConfig, mergeConfig } from 'vite';
2
+
3
+ import viteConfig from '../../commonVite.config';
4
+
5
+ export default mergeConfig(
6
+ viteConfig,
7
+ defineConfig({
8
+ build: {
9
+ lib: {
10
+ entry: './src/index.ts',
11
+ },
12
+ rollupOptions: {
13
+ external: [
14
+ 'react',
15
+ 'react-dom',
16
+ 'react/jsx-runtime',
17
+ /@babel\/runtime\/*/,
18
+ /@semcore\/*/,
19
+ 'colorjs.io',
20
+ ],
21
+ },
22
+ },
23
+ }),
24
+ );