styleframe 2.4.0 → 2.5.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 +43 -3
- package/package.json +13 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# styleframe
|
|
2
2
|
|
|
3
|
+
## 2.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#93](https://github.com/styleframe-dev/styleframe/pull/93) [`4ebc385`](https://github.com/styleframe-dev/styleframe/commit/4ebc3856ad4468e6caea5f72e595e781e2651b09) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Add `useDesignTokensPreset` composable for quick design token system setup
|
|
8
|
+
- Introduces a comprehensive preset function that bootstraps complete design token systems with sensible defaults in a single function call
|
|
9
|
+
- Full TypeScript type inference for all configuration options
|
|
10
|
+
- Flexible domain configuration: use defaults, disable domains with `false`, or provide custom values
|
|
11
|
+
- Automatic color variation generation (lightness, shades, tints) with configurable levels
|
|
12
|
+
- Exports default values from variable composables (`defaultSpacingValues`, `defaultColorValues`, etc.)
|
|
13
|
+
- Adds `useFontStyle` variable composable
|
|
14
|
+
- Includes 54 comprehensive tests and detailed documentation
|
|
15
|
+
|
|
16
|
+
- [#95](https://github.com/styleframe-dev/styleframe/pull/95) [`75fd781`](https://github.com/styleframe-dev/styleframe/commit/75fd78196d61498db066de6e355eabcebbd39071) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Rename `useUtilities` to `useUtilitiesPreset` for consistency with design tokens preset naming
|
|
17
|
+
- **BREAKING**: Renamed `useUtilities()` to `useUtilitiesPreset()` to align with `useDesignTokensPreset()` naming convention
|
|
18
|
+
- Added comprehensive presets documentation page with complete API reference for 200+ utility creators
|
|
19
|
+
- Updated all documentation examples and storybook files to use the new function name
|
|
20
|
+
- Clarified CHANGELOG entries to indicate this is a rename from the previous function
|
|
21
|
+
|
|
22
|
+
- [#96](https://github.com/styleframe-dev/styleframe/pull/96) [`8460f16`](https://github.com/styleframe-dev/styleframe/commit/8460f169cec1199810e9203b357dac9f2f128c56) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Rename `?recipe` imports to `?ts` and add named selector export support
|
|
23
|
+
- **Breaking:** Renamed import query parameter from `?recipe` to `?ts` for styleframe files
|
|
24
|
+
- Add support for exporting named selectors alongside recipes via `?ts` imports
|
|
25
|
+
- Add `_exportName` property to `Selector` and `Recipe` types for tracking named exports
|
|
26
|
+
- Replace `c12` with `chokidar` + `jiti` for simpler, more reliable config loading
|
|
27
|
+
- Add `onError` callback to `watchConfiguration` for error reporting during file watch
|
|
28
|
+
- Add file deletion detection with `unlink` handler in watch mode
|
|
29
|
+
- Simplify `loadConfiguration` API by merging `loadConfigurationFromPath`
|
|
30
|
+
- Add comprehensive unit tests for TypeScript selector consumer
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- [`1f60314`](https://github.com/styleframe-dev/styleframe/commit/1f60314cde97278294f06e248682026eb53a8af9) Thanks [@alexgrozav](https://github.com/alexgrozav)! - fix: update cli dependency
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [[`1f60314`](https://github.com/styleframe-dev/styleframe/commit/1f60314cde97278294f06e248682026eb53a8af9), [`8460f16`](https://github.com/styleframe-dev/styleframe/commit/8460f169cec1199810e9203b357dac9f2f128c56), [`4e06424`](https://github.com/styleframe-dev/styleframe/commit/4e064245e78903307e6996eebf3f6dae5565de5f)]:
|
|
37
|
+
- @styleframe/cli@2.3.1
|
|
38
|
+
- @styleframe/loader@2.4.0
|
|
39
|
+
- @styleframe/transpiler@2.6.0
|
|
40
|
+
- @styleframe/plugin@2.4.0
|
|
41
|
+
- @styleframe/core@2.6.0
|
|
42
|
+
|
|
3
43
|
## 2.4.0
|
|
4
44
|
|
|
5
45
|
### Minor Changes
|
|
@@ -16,11 +56,11 @@
|
|
|
16
56
|
|
|
17
57
|
Consolidate escape logic into a single regex and extend escaping to cover additional special characters (#, (, ), %, ,) needed for arbitrary CSS value syntax like `[#1E3A8A]`, `[rgb(255,0,0)]`, and `[calc(100%-20px)]`.
|
|
18
58
|
|
|
19
|
-
- [#76](https://github.com/styleframe-dev/styleframe/pull/76) [`06afe2a`](https://github.com/styleframe-dev/styleframe/commit/06afe2af66c3ecd8c6a516336e594c1e8cb56de1) Thanks [@alexgrozav](https://github.com/alexgrozav)! -
|
|
59
|
+
- [#76](https://github.com/styleframe-dev/styleframe/pull/76) [`06afe2a`](https://github.com/styleframe-dev/styleframe/commit/06afe2af66c3ecd8c6a516336e594c1e8cb56de1) Thanks [@alexgrozav](https://github.com/alexgrozav)! - **BREAKING**: rename `useUtilities` to `useUtilitiesPreset` for consistency with design tokens preset naming
|
|
20
60
|
|
|
21
|
-
|
|
61
|
+
Renamed `useUtilities()` to `useUtilitiesPreset()` to align with the naming convention established by `useDesignTokensPreset()`. The function registers all ~180 utility composables with a Styleframe instance and returns their creator functions, enabling automatic utility class generation for recipe declarations.
|
|
22
62
|
|
|
23
|
-
Updated recipe documentation examples to use `
|
|
63
|
+
Updated recipe documentation examples to use `useUtilitiesPreset()` with destructured functions and demonstrate both `ref()` and `@variable.name` syntax for referencing design tokens.
|
|
24
64
|
|
|
25
65
|
- Updated dependencies [[`ff1a689`](https://github.com/styleframe-dev/styleframe/commit/ff1a689f36dc4294b2a7353949c6efd220451e9d), [`d98b650`](https://github.com/styleframe-dev/styleframe/commit/d98b65030170582ceacfabde3ba9ff7d92105389)]:
|
|
26
66
|
- @styleframe/transpiler@2.5.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "styleframe",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"styleframe": "./dist/cli.cjs"
|
|
6
6
|
},
|
|
@@ -83,20 +83,22 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"@styleframe/cli": "^2.3.1"
|
|
88
|
+
},
|
|
86
89
|
"peerDependencies": {
|
|
87
|
-
"@styleframe/
|
|
88
|
-
"@styleframe/
|
|
89
|
-
"@styleframe/
|
|
90
|
-
"@styleframe/
|
|
91
|
-
"@styleframe/transpiler": "^2.5.0"
|
|
90
|
+
"@styleframe/plugin": "^2.4.0",
|
|
91
|
+
"@styleframe/core": "^2.6.0",
|
|
92
|
+
"@styleframe/loader": "^2.4.0",
|
|
93
|
+
"@styleframe/transpiler": "^2.6.0"
|
|
92
94
|
},
|
|
93
95
|
"devDependencies": {
|
|
94
96
|
"@styleframe/config-typescript": "^2",
|
|
95
|
-
"@styleframe/cli": "^2.3.
|
|
96
|
-
"@styleframe/plugin": "^2.
|
|
97
|
-
"@styleframe/core": "^2.
|
|
98
|
-
"@styleframe/loader": "^2.
|
|
99
|
-
"@styleframe/transpiler": "^2.
|
|
97
|
+
"@styleframe/cli": "^2.3.1",
|
|
98
|
+
"@styleframe/plugin": "^2.4.0",
|
|
99
|
+
"@styleframe/core": "^2.6.0",
|
|
100
|
+
"@styleframe/loader": "^2.4.0",
|
|
101
|
+
"@styleframe/transpiler": "^2.6.0",
|
|
100
102
|
"@types/node": "^22.15.17",
|
|
101
103
|
"@vitest/coverage-v8": "^3.2.4",
|
|
102
104
|
"bumpp": "^10.1.0",
|