@itcase/types 1.0.3 → 1.0.5
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 +8 -0
- package/package.json +7 -7
- package/types/appearanceKeys.ts +11 -1
- package/types/common.ts +14 -0
- package/types/size/size.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.0.5](https://github.com/ITCase/itcase-types/compare/v1.0.4...v1.0.5) (2025-06-12)
|
|
2
|
+
|
|
3
|
+
## [1.0.4](https://github.com/ITCase/itcase-types/compare/v1.0.3...v1.0.4) (2025-06-04)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add simple urls types ([3d28026](https://github.com/ITCase/itcase-types/commit/3d280261291d9f93ecb694de79ab0be5f9075d2d))
|
|
8
|
+
|
|
1
9
|
## [1.0.3](https://github.com/ITCase/itcase-types/compare/v1.0.2...v1.0.3) (2025-05-13)
|
|
2
10
|
|
|
3
11
|
### Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "unified type storage",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"types"
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@commitlint/cli": "^19.8.1",
|
|
34
34
|
"@commitlint/config-conventional": "^19.8.1",
|
|
35
|
-
"@itcase/config": "^1.0.
|
|
36
|
-
"@itcase/lint": "^1.1.
|
|
35
|
+
"@itcase/config": "^1.0.47",
|
|
36
|
+
"@itcase/lint": "^1.1.15",
|
|
37
37
|
"@semantic-release/changelog": "^6.0.3",
|
|
38
38
|
"@semantic-release/git": "^10.0.1",
|
|
39
39
|
"@semantic-release/release-notes-generator": "14.0.3",
|
|
40
|
-
"conventional-changelog-conventionalcommits": "^
|
|
41
|
-
"eslint": "9.
|
|
40
|
+
"conventional-changelog-conventionalcommits": "^9.0.0",
|
|
41
|
+
"eslint": "9.28.0",
|
|
42
42
|
"husky": "^9.1.7",
|
|
43
|
-
"lint-staged": "^16.
|
|
43
|
+
"lint-staged": "^16.1.0",
|
|
44
44
|
"prettier": "^3.5.3",
|
|
45
|
-
"semantic-release": "^24.2.
|
|
45
|
+
"semantic-release": "^24.2.5",
|
|
46
46
|
"typescript": "^5.8.3"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/types/appearanceKeys.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SizeProps } from './size'
|
|
2
|
+
|
|
3
|
+
type AppearanceKeysDefault =
|
|
2
4
|
| 'accent'
|
|
3
5
|
| 'accentPrimary'
|
|
4
6
|
| 'accentQuaternary'
|
|
@@ -31,3 +33,11 @@ export type AppearanceKeysDefault =
|
|
|
31
33
|
| 'surfaceTertiary'
|
|
32
34
|
| 'unableLoadData'
|
|
33
35
|
| 'warning'
|
|
36
|
+
|
|
37
|
+
type SizeAppearanceKey = `size${Uppercase<SizeProps>}`
|
|
38
|
+
|
|
39
|
+
type CompositeAppearanceKey =
|
|
40
|
+
| `${AppearanceKeysDefault} ${SizeAppearanceKey}`
|
|
41
|
+
| AppearanceKeysDefault
|
|
42
|
+
|
|
43
|
+
export type { AppearanceKeysDefault, CompositeAppearanceKey, SizeAppearanceKey }
|
package/types/common.ts
CHANGED
|
@@ -17,6 +17,18 @@ type DateIso = string
|
|
|
17
17
|
*/
|
|
18
18
|
type DateTimeIso = string
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* URL to some endpoint. E.g.: to django rest framework
|
|
22
|
+
* @format relative URL: "/rest/{...}/some/"
|
|
23
|
+
*/
|
|
24
|
+
type RelativeUrl = string
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* URL to some endpoint. E.g.: to django rest framework
|
|
28
|
+
* @format absolute URL: "https://itcase.pro/rest/{...}/some/"
|
|
29
|
+
*/
|
|
30
|
+
type AbsoluteUrl = string
|
|
31
|
+
|
|
20
32
|
/**
|
|
21
33
|
* URL to file. E.g.: in django media folder
|
|
22
34
|
* @format relative URL: "/media/uploads/{...}/file_name.png"
|
|
@@ -39,6 +51,8 @@ export type {
|
|
|
39
51
|
Id,
|
|
40
52
|
DateIso,
|
|
41
53
|
DateTimeIso,
|
|
54
|
+
RelativeUrl,
|
|
55
|
+
AbsoluteUrl,
|
|
42
56
|
ImageRelativeUrl,
|
|
43
57
|
ImageAbsoluteUrl,
|
|
44
58
|
SimpleCallback,
|