sate-lib 1.2.0 → 1.3.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/README.md CHANGED
@@ -3,17 +3,25 @@
3
3
  A lightweight and modular React component library designed for modern web interfaces.
4
4
  **SATE Lib** powers the [sate.menu](https://sate.menu) platform with reusable, scalable, and themeable UI components.
5
5
 
6
- [Demo](https://sate-lib.vercel.app/)
7
- [NPM](https://www.npmjs.com/package/sate-lib)
6
+ - [Demo](https://sate-lib.vercel.app/)
7
+ - [NPM](https://www.npmjs.com/package/sate-lib)
8
8
 
9
9
  ## Tech Stack
10
10
 
11
- - [RSLib](https://rslib.rs/)
11
+ #### Core Technologies
12
+
12
13
  - [React](https://react.dev/)
13
14
  - [Typescript](https://www.typescriptlang.org/)
14
15
  - [Storybook](https://storybook.js.org/)
15
16
  - [CSS Modules](https://github.com/css-modules/css-modules)
17
+
18
+ #### Development & Configuration
19
+
20
+ - [RSLib](https://rslib.rs/)
16
21
  - [Biome](https://biomejs.dev/)
22
+ - [Husky](https://typicode.github.io/husky/)
23
+ - [Commit Lint](https://commitlint.js.org/)
24
+ - [Semantic Release](https://github.com/semantic-release/semantic-release)
17
25
 
18
26
  ## Installation
19
27
 
@@ -52,15 +60,28 @@ import from "sate-lib/typography.css";
52
60
 
53
61
  ## Commit etiquette
54
62
 
55
- - [Commit Etiquette](https://www.conventionalcommits.org/en/v1.0.0/)
56
-
57
63
  ```bash
58
64
  [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test] : message
59
65
  ```
60
66
 
67
+ #### Version Triggering
68
+
69
+ | Commit Type | Release Type | Version Bump Example |
70
+ | ----------------- | -------------------- | -------------------- |
71
+ | `feat` | Minor release | 1.1.0 → 1.2.0 |
72
+ | `fix` | Patch release | 1.1.0 → 1.1.1 |
73
+ | `BREAKING CHANGE` | Major release | 1.1.0 → 2.0.0 |
74
+ | `chore` | No release triggered | |
75
+ | `docs` | No release triggered | |
76
+ | `style` | No release triggered | |
77
+ | `refactor` | No release triggered | |
78
+ | `test` | No release triggered | |
79
+
61
80
  ## Fonts compression
62
81
 
63
- We subset fonts using the script subset-fonts.js
82
+ Optimize and subset fonts using the `subset-fonts.js` script to reduce file size and improve loading performance.
83
+
84
+ #### Run the Font Subset Script
64
85
 
65
86
  ```bash
66
87
  pnpm subset
@@ -1 +1 @@
1
- *,:before,:after{box-sizing:border-box}*{outline:none;margin:0;padding:0}ul,ol{list-style:none}html:focus-within{scroll-behavior:smooth}a:not([class]){text-decoration-skip-ink:auto;color:inherit}img,picture,svg,video,canvas{vertical-align:middle;background-repeat:no-repeat;background-size:cover;max-width:100%;height:auto}input,button,textarea,select{font:inherit;color:inherit;background:0 0;border:none;outline:none}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:before,:after{transition:none;scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}body,html{scroll-behavior:smooth;height:100%}body{-webkit-font-smoothing:antialiased}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}button{cursor:pointer}
1
+ *,:before,:after{box-sizing:border-box}*{margin:0;padding:0}html{scroll-behavior:smooth}img{max-width:100%;display:block}h1,h2,h3,h4,h5,h6{text-wrap:balance}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sate-lib",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -35,31 +35,35 @@
35
35
  "format": "biome format --write",
36
36
  "storybook": "storybook dev",
37
37
  "subset": "node ./subset-fonts.js",
38
- "release": "semantic-release"
38
+ "release": "HUSKY=0 semantic-release",
39
+ "prepare": "husky"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@biomejs/biome": "^1.9.4",
43
+ "@commitlint/cli": "19.8.0",
44
+ "@commitlint/config-conventional": "19.8.0",
42
45
  "@rsbuild/core": "1.4.0-beta.4",
43
- "@rsbuild/plugin-react": "^1.3.2",
44
- "@rslib/core": "^0.10.2",
46
+ "@rsbuild/plugin-react": "^1.3.3",
47
+ "@rslib/core": "^0.10.4",
45
48
  "@semantic-release/changelog": "^6.0.3",
46
49
  "@semantic-release/git": "^10.0.1",
47
50
  "@semantic-release/npm": "^12.0.2",
48
- "@storybook/addon-docs": "^9.0.11",
49
- "@storybook/addon-essentials": "^9.0.0-alpha.12",
50
- "@storybook/addon-interactions": "^9.0.0-alpha.10",
51
- "@storybook/addon-links": "^9.0.11",
52
- "@storybook/addon-onboarding": "^9.0.11",
53
- "@storybook/blocks": "^9.0.0-alpha.17",
54
- "@storybook/react": "^9.0.11",
55
- "@storybook/test": "^9.0.0-alpha.2",
56
- "@types/node": "^24.0.4",
51
+ "@storybook/addon-docs": "^9.0.15",
52
+ "@storybook/addon-essentials": "9.0.0-alpha.12",
53
+ "@storybook/addon-interactions": "9.0.0-alpha.10",
54
+ "@storybook/addon-links": "^9.0.15",
55
+ "@storybook/addon-onboarding": "^9.0.15",
56
+ "@storybook/blocks": "9.0.0-alpha.17",
57
+ "@storybook/react": "^9.0.15",
58
+ "@storybook/test": "9.0.0-alpha.2",
59
+ "@types/node": "^24.0.10",
57
60
  "@types/react": "^19.1.8",
61
+ "husky": "^9.1.7",
58
62
  "react": "^19.1.0",
59
- "semantic-release": "^24.2.5",
60
- "storybook": "^9.0.11",
61
- "storybook-addon-rslib": "^2.0.1",
62
- "storybook-react-rsbuild": "^2.0.1",
63
+ "semantic-release": "^24.2.6",
64
+ "storybook": "^9.0.15",
65
+ "storybook-addon-rslib": "^2.0.2",
66
+ "storybook-react-rsbuild": "^2.0.2",
63
67
  "subset-font": "^2.4.0",
64
68
  "typescript": "^5.8.3"
65
69
  },