@synerise/ds-utils 0.29.3 → 0.30.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 +19 -0
- package/dist/index.d.ts +1 -1
- package/dist/types/types.d.ts +8 -0
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.30.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@0.29.4...@synerise/ds-utils@0.30.0) (2024-10-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **menu:** maxToShowItems props ([982d12c](https://github.com/synerise/synerise-design/commit/982d12cf00dfd271bd75e3228e0e231ab26dc7f1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.29.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@0.29.3...@synerise/ds-utils@0.29.4) (2024-09-26)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-utils
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.29.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@0.29.2...@synerise/ds-utils@0.29.3) (2024-09-17)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-utils
|
package/dist/index.d.ts
CHANGED
|
@@ -20,4 +20,4 @@ export * from './useTraceUpdate';
|
|
|
20
20
|
export * from './getPopupContainer';
|
|
21
21
|
export declare const NOOP: () => void;
|
|
22
22
|
export type { HandledEventsType } from './useOnClickOutside/useOnClickOutside';
|
|
23
|
-
export type { LiteralStringUnion, WithHTMLAttributes } from './types/types';
|
|
23
|
+
export type { ExactlyOne, LiteralStringUnion, WithHTMLAttributes } from './types/types';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -3,4 +3,12 @@ import { HTMLAttributes } from 'react';
|
|
|
3
3
|
* Allows creating a literal string union type with auto-completion in IDEs
|
|
4
4
|
*/
|
|
5
5
|
export type LiteralStringUnion<T extends string> = T | (string & {});
|
|
6
|
+
/**
|
|
7
|
+
* Enforces props from one type and excludes props from the other
|
|
8
|
+
*/
|
|
9
|
+
export type ExactlyOne<T, U> = (T & {
|
|
10
|
+
[K in keyof U]?: never;
|
|
11
|
+
}) | (U & {
|
|
12
|
+
[K in keyof T]?: never;
|
|
13
|
+
});
|
|
6
14
|
export type WithHTMLAttributes<ElementType extends HTMLElement, BaseType> = BaseType & Omit<HTMLAttributes<ElementType>, keyof BaseType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "Utils UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"pack:ci": "npm pack --pack-destination ../../portal/storybook-static/static",
|
|
25
25
|
"prepublish": "npm run build",
|
|
26
26
|
"test": "jest",
|
|
27
|
-
"types": "tsc --noEmit"
|
|
27
|
+
"types": "tsc --noEmit",
|
|
28
|
+
"upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
|
|
28
29
|
},
|
|
29
30
|
"sideEffects": [
|
|
30
31
|
"dist/style/*",
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
],
|
|
33
34
|
"types": "dist/index.d.ts",
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-data-format": "^0.5.
|
|
36
|
+
"@synerise/ds-data-format": "^0.5.4",
|
|
36
37
|
"latinize": "^0.5.0"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
@@ -40,5 +41,5 @@
|
|
|
40
41
|
"react": ">=16.9.0 <= 17.0.2",
|
|
41
42
|
"styled-components": "5.0.1"
|
|
42
43
|
},
|
|
43
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "2389b995aa44e42ec1dd9a177c7ab1f1a0001a70"
|
|
44
45
|
}
|