@semcore/ui 13.2.0 → 13.2.2

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
@@ -1,3 +1,48 @@
1
+ ## [13.2.2] - 2022-12-07
2
+
3
+ ### @semcore/animation
4
+
5
+ - **Added** Added prop `initialAnimation` to run animation on the first rendering
6
+
7
+ ### @semcore/flags
8
+
9
+ - **Fixed** Fixed exporting `iso2Name`, `iso3iso2` and `nameWithoutIso` because of linter warnings.
10
+
11
+ ### @semcore/input
12
+
13
+ - **Added** Added type `IInputCtx` for export.
14
+
15
+ ### @semcore/input-tags
16
+
17
+ - **Fixed** Fixed `Value` type
18
+
19
+ ### @semcore/notice-bubble
20
+
21
+ - **Fixed** Fixed `NoticeBubbleManager` types
22
+ - **Added** Added prop `initialAnimation` to run animation on the first rendering
23
+
24
+ ### @semcore/select
25
+
26
+ - **Fixed** Fixed screen readers support for `Select.List`
27
+
28
+ ### @semcore/wizard
29
+
30
+ - **Fixed** Fixed layout so that the white background in the rounded borders of the modal would not be visible.
31
+
32
+ ## [13.2.1] - 2022-12-02
33
+
34
+ ### @semcore/dropdown-menu
35
+
36
+ - **Changed** Changed size of shadow in `DropdownMenu.List` from `9px` to `16px`.
37
+
38
+ ### @semcore/flags
39
+
40
+ - **Added** Added missed object `iso3iso2` in `index.d.ts` for exporting.
41
+
42
+ ### @semcore/input-tags
43
+
44
+ - **Fixed** Fixed exported types of components.
45
+
1
46
  ## [13.2.0] - 2022-11-30
2
47
 
3
48
  ### @semcore/base-trigger
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright ©, 2022, Semrush Inc. (written by Roman Lysov, Sergey Kobets, Mikhail Karachev, Julia Mnizhek, Elena Krasnopolskaia, Mikhail Sereniti).
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,10 +1,8 @@
1
- import { execSync } from 'child_process';
2
1
  import path from 'path';
3
2
  import fs from 'fs-extra';
4
3
  import glob from 'fast-glob';
5
4
  import { fileURLToPath } from 'url';
6
5
  import { createRequire } from 'module';
7
- import { fetchVersionsFromNpm } from '@semcore/continuous-delivery';
8
6
 
9
7
  const filename = fileURLToPath(import.meta.url);
10
8
  const dirname = path.resolve(filename, '..');
@@ -13,40 +11,6 @@ const components = fs.readJSONSync(path.resolve(dirname, './components.json'));
13
11
 
14
12
  const EXPORT_DEFAULT_REG = /export ({ default }|default)/gm;
15
13
 
16
- const installComponents = async (packages: string[]) => {
17
- const latestVersions = await fetchVersionsFromNpm(packages);
18
- const packageFile = await fs.readJSON(path.resolve(dirname, './package.json'));
19
- packageFile.dependencies = {};
20
- for (const packageName of packages) {
21
- packageFile.dependencies[packageName] = latestVersions[packageName];
22
- }
23
- await fs.writeJSON(path.resolve(dirname, './package.json'), packageFile, { spaces: 2 });
24
- execSync(`pnpm install --frozen-lockfile false`, {
25
- stdio: 'inherit',
26
- cwd: dirname,
27
- });
28
-
29
- const nestedNodeModules = glob
30
- .sync('**/node_modules/**/package.json', {
31
- cwd: path.resolve(dirname, 'node_modules/@semcore'),
32
- followSymbolicLinks: false,
33
- })
34
- .map(
35
- (packageFilePath) =>
36
- './node_modules/@semcore/' +
37
- packageFilePath.substring(0, packageFilePath.length - '/package.json'.length),
38
- )
39
- .map((relativePath) => {
40
- const { version } = fs.readJsonSync(path.resolve(dirname, relativePath, 'package.json'));
41
-
42
- return `${relativePath} @${version}`;
43
- });
44
-
45
- if (nestedNodeModules.length > 0) {
46
- throw new Error(`Nested node_modules found:\n- ${nestedNodeModules.join('\n- ')}\n`);
47
- }
48
- };
49
-
50
14
  const hasExportDefault = async (dependency: string) => {
51
15
  const require = createRequire(import.meta.url);
52
16
 
@@ -207,10 +171,4 @@ const generateFiles = async (packages: string[]) => {
207
171
  }
208
172
  };
209
173
 
210
- await installComponents(components.packages);
211
174
  await generateFiles(components.packages);
212
-
213
- execSync('pnpm test', {
214
- stdio: 'inherit',
215
- cwd: dirname,
216
- });
package/package.json CHANGED
@@ -1,17 +1,12 @@
1
1
  {
2
2
  "name": "@semcore/ui",
3
- "version": "13.2.0",
3
+ "version": "13.2.2",
4
4
  "license": "MIT",
5
5
  "module": "./index.js",
6
6
  "sideEffects": false,
7
- "scripts": {
8
- "clear": "tsm --require=../../.ci/tsm-filter-warnings.js clear.ts",
9
- "generate": "pnpm run clear && tsm --require=../../.ci/tsm-filter-warnings.js generate.ts",
10
- "test": "jest"
11
- },
12
7
  "dependencies": {
13
- "@semcore/accordion": "4.1.10",
14
- "@semcore/animation": "1.7.3",
8
+ "@semcore/accordion": "4.1.11",
9
+ "@semcore/animation": "1.8.0",
15
10
  "@semcore/badge": "3.2.5",
16
11
  "@semcore/base-trigger": "3.2.11",
17
12
  "@semcore/breadcrumbs": "4.2.9",
@@ -20,23 +15,23 @@
20
15
  "@semcore/card": "4.1.9",
21
16
  "@semcore/carousel": "2.1.10",
22
17
  "@semcore/checkbox": "6.2.0",
23
- "@semcore/color-picker": "1.2.11",
18
+ "@semcore/color-picker": "1.2.12",
24
19
  "@semcore/core": "1.13.6",
25
20
  "@semcore/counter": "2.1.5",
26
21
  "@semcore/data-table": "3.5.4",
27
- "@semcore/date-picker": "3.4.16",
22
+ "@semcore/date-picker": "3.4.17",
28
23
  "@semcore/divider": "3.1.5",
29
- "@semcore/dot": "4.1.7",
24
+ "@semcore/dot": "4.1.8",
30
25
  "@semcore/drag-and-drop": "2.2.2",
31
26
  "@semcore/dropdown": "3.2.6",
32
- "@semcore/dropdown-menu": "3.4.1",
33
- "@semcore/d3-chart": "2.5.4",
27
+ "@semcore/dropdown-menu": "3.4.2",
28
+ "@semcore/d3-chart": "2.5.5",
34
29
  "@semcore/ellipsis": "1.0.5",
35
30
  "@semcore/email": "1.0.2",
36
31
  "@semcore/errors": "3.5.6",
37
- "@semcore/feature-popover": "3.1.11",
32
+ "@semcore/feature-popover": "3.1.12",
38
33
  "@semcore/feedback-form": "5.2.5",
39
- "@semcore/flags": "3.2.2",
34
+ "@semcore/flags": "3.2.4",
40
35
  "@semcore/flex-box": "4.6.5",
41
36
  "@semcore/format-text": "3.1.5",
42
37
  "@semcore/fullscreen-modal": "2.1.10",
@@ -44,19 +39,19 @@
44
39
  "@semcore/icon": "3.3.2",
45
40
  "@semcore/illustration": "1.3.5",
46
41
  "@semcore/inline-input": "3.2.1",
47
- "@semcore/inline-edit": "2.1.7",
48
- "@semcore/input": "3.4.1",
49
- "@semcore/input-mask": "4.3.7",
50
- "@semcore/input-number": "4.1.6",
51
- "@semcore/input-tags": "3.2.7",
42
+ "@semcore/inline-edit": "2.1.8",
43
+ "@semcore/input": "3.4.2",
44
+ "@semcore/input-mask": "4.3.8",
45
+ "@semcore/input-number": "4.1.7",
46
+ "@semcore/input-tags": "3.2.10",
52
47
  "@semcore/link": "4.2.5",
53
- "@semcore/modal": "3.1.11",
48
+ "@semcore/modal": "3.1.12",
54
49
  "@semcore/neighbor-location": "3.1.5",
55
- "@semcore/notice": "4.2.10",
56
- "@semcore/notice-global": "1.2.10",
57
- "@semcore/notice-bubble": "4.2.12",
50
+ "@semcore/notice": "4.2.11",
51
+ "@semcore/notice-global": "1.2.11",
52
+ "@semcore/notice-bubble": "4.3.1",
58
53
  "@semcore/outside-click": "2.5.5",
59
- "@semcore/pagination": "3.3.12",
54
+ "@semcore/pagination": "3.3.13",
60
55
  "@semcore/pills": "4.3.6",
61
56
  "@semcore/popper": "4.13.6",
62
57
  "@semcore/portal": "2.4.5",
@@ -64,24 +59,24 @@
64
59
  "@semcore/progress-bar": "3.2.5",
65
60
  "@semcore/radio": "5.2.0",
66
61
  "@semcore/scroll-area": "4.1.5",
67
- "@semcore/select": "3.2.16",
68
- "@semcore/side-panel": "2.1.11",
62
+ "@semcore/select": "3.2.19",
63
+ "@semcore/side-panel": "2.1.12",
69
64
  "@semcore/skeleton": "4.3.2",
70
65
  "@semcore/slider": "3.2.5",
71
66
  "@semcore/spin": "4.1.5",
72
- "@semcore/spin-container": "6.1.6",
67
+ "@semcore/spin-container": "6.1.7",
73
68
  "@semcore/sticky": "2.3.5",
74
69
  "@semcore/switch": "4.2.5",
75
70
  "@semcore/tab-line": "3.1.6",
76
71
  "@semcore/tab-panel": "3.2.5",
77
72
  "@semcore/tag": "4.2.9",
78
73
  "@semcore/textarea": "4.2.0",
79
- "@semcore/time-picker": "3.2.15",
74
+ "@semcore/time-picker": "3.2.18",
80
75
  "@semcore/tooltip": "5.2.0",
81
76
  "@semcore/typography": "4.2.9",
82
77
  "@semcore/utils": "3.42.0",
83
78
  "@semcore/widget-empty": "3.6.5",
84
- "@semcore/wizard": "1.1.11"
79
+ "@semcore/wizard": "1.1.13"
85
80
  },
86
81
  "devDependencies": {
87
82
  "@types/react": "18.0.21",
@@ -98,5 +93,13 @@
98
93
  "type": "git",
99
94
  "url": "https://github.com/semrush/intergalactic.git",
100
95
  "directory": "semcore/ui"
96
+ },
97
+ "scripts": {
98
+ "clear": "tsm --require=../../.ci/tsm-filter-warnings.js clear.ts",
99
+ "build": "pnpm run clear && pnpm run update-dependencies && pnpm run generate-reexport && pnpm run test",
100
+ "generate-reexport": "pnpm run clear && tsm --require=../../.ci/tsm-filter-warnings.js generate-reexport.ts",
101
+ "update-dependencies": "tsm --require=../../.ci/tsm-filter-warnings.js update-dependencies.ts",
102
+ "update-changelog": "pnpm update-release-changelog",
103
+ "test": "jest"
101
104
  }
102
- }
105
+ }
@@ -0,0 +1,47 @@
1
+ import { execSync } from 'child_process';
2
+ import path from 'path';
3
+ import fs from 'fs-extra';
4
+ import glob from 'fast-glob';
5
+ import { fileURLToPath } from 'url';
6
+ import { fetchFromNpm } from '@semcore/continuous-delivery';
7
+
8
+ const filename = fileURLToPath(import.meta.url);
9
+ const dirname = path.resolve(filename, '..');
10
+
11
+ const components = fs.readJSONSync(path.resolve(dirname, './components.json'));
12
+
13
+ const installComponents = async (packages: string[]) => {
14
+ const npmPackages = await fetchFromNpm(packages);
15
+ const packageFile = await fs.readJSON(path.resolve(dirname, './package.json'));
16
+ packageFile.dependencies = {};
17
+ for (const packageName of packages) {
18
+ packageFile.dependencies[packageName] = npmPackages[packageName].version;
19
+ }
20
+ await fs.writeJSON(path.resolve(dirname, './package.json'), packageFile, { spaces: 2 });
21
+ execSync(`pnpm install --frozen-lockfile false`, {
22
+ stdio: 'inherit',
23
+ cwd: dirname,
24
+ });
25
+
26
+ const nestedNodeModules = glob
27
+ .sync('**/node_modules/**/package.json', {
28
+ cwd: path.resolve(dirname, 'node_modules/@semcore'),
29
+ followSymbolicLinks: false,
30
+ })
31
+ .map(
32
+ (packageFilePath) =>
33
+ './node_modules/@semcore/' +
34
+ packageFilePath.substring(0, packageFilePath.length - '/package.json'.length),
35
+ )
36
+ .map((relativePath) => {
37
+ const { version } = fs.readJsonSync(path.resolve(dirname, relativePath, 'package.json'));
38
+
39
+ return `${relativePath} @${version}`;
40
+ });
41
+
42
+ if (nestedNodeModules.length > 0) {
43
+ throw new Error(`Nested node_modules found:\n- ${nestedNodeModules.join('\n- ')}\n`);
44
+ }
45
+ };
46
+
47
+ await installComponents(components.packages);