styleframe 2.4.0 → 2.5.1

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +52 -3
  2. package/package.json +14 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # styleframe
2
2
 
3
+ ## 2.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#100](https://github.com/styleframe-dev/styleframe/pull/100) [`6ae30fd`](https://github.com/styleframe-dev/styleframe/commit/6ae30fdd281033eb3a37c0a0b0388692506a0e58) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Add `@styleframe/license` as a dependency to the main `styleframe` package and update the CLI init command to add `@styleframe/runtime` as a production dependency instead of a dev dependency.
8
+
9
+ - Updated dependencies [[`6ae30fd`](https://github.com/styleframe-dev/styleframe/commit/6ae30fdd281033eb3a37c0a0b0388692506a0e58)]:
10
+ - @styleframe/cli@2.3.2
11
+
12
+ ## 2.5.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#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
17
+ - Introduces a comprehensive preset function that bootstraps complete design token systems with sensible defaults in a single function call
18
+ - Full TypeScript type inference for all configuration options
19
+ - Flexible domain configuration: use defaults, disable domains with `false`, or provide custom values
20
+ - Automatic color variation generation (lightness, shades, tints) with configurable levels
21
+ - Exports default values from variable composables (`defaultSpacingValues`, `defaultColorValues`, etc.)
22
+ - Adds `useFontStyle` variable composable
23
+ - Includes 54 comprehensive tests and detailed documentation
24
+
25
+ - [#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
26
+ - **BREAKING**: Renamed `useUtilities()` to `useUtilitiesPreset()` to align with `useDesignTokensPreset()` naming convention
27
+ - Added comprehensive presets documentation page with complete API reference for 200+ utility creators
28
+ - Updated all documentation examples and storybook files to use the new function name
29
+ - Clarified CHANGELOG entries to indicate this is a rename from the previous function
30
+
31
+ - [#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
32
+ - **Breaking:** Renamed import query parameter from `?recipe` to `?ts` for styleframe files
33
+ - Add support for exporting named selectors alongside recipes via `?ts` imports
34
+ - Add `_exportName` property to `Selector` and `Recipe` types for tracking named exports
35
+ - Replace `c12` with `chokidar` + `jiti` for simpler, more reliable config loading
36
+ - Add `onError` callback to `watchConfiguration` for error reporting during file watch
37
+ - Add file deletion detection with `unlink` handler in watch mode
38
+ - Simplify `loadConfiguration` API by merging `loadConfigurationFromPath`
39
+ - Add comprehensive unit tests for TypeScript selector consumer
40
+
41
+ ### Patch Changes
42
+
43
+ - [`1f60314`](https://github.com/styleframe-dev/styleframe/commit/1f60314cde97278294f06e248682026eb53a8af9) Thanks [@alexgrozav](https://github.com/alexgrozav)! - fix: update cli dependency
44
+
45
+ - 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)]:
46
+ - @styleframe/cli@2.3.1
47
+ - @styleframe/loader@2.4.0
48
+ - @styleframe/transpiler@2.6.0
49
+ - @styleframe/plugin@2.4.0
50
+ - @styleframe/core@2.6.0
51
+
3
52
  ## 2.4.0
4
53
 
5
54
  ### Minor Changes
@@ -16,11 +65,11 @@
16
65
 
17
66
  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
67
 
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)! - feat: add useUtilities function for registering all utility factories
68
+ - [#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
69
 
21
- Introduces `useUtilities()` that registers all ~180 utility composables with a Styleframe instance and returns their creator functions. This enables automatic utility class generation for recipe declarations.
70
+ 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
71
 
23
- Updated recipe documentation examples to use `useUtilities()` with destructured functions and demonstrate both `ref()` and `@variable.name` syntax for referencing design tokens.
72
+ Updated recipe documentation examples to use `useUtilitiesPreset()` with destructured functions and demonstrate both `ref()` and `@variable.name` syntax for referencing design tokens.
24
73
 
25
74
  - Updated dependencies [[`ff1a689`](https://github.com/styleframe-dev/styleframe/commit/ff1a689f36dc4294b2a7353949c6efd220451e9d), [`d98b650`](https://github.com/styleframe-dev/styleframe/commit/d98b65030170582ceacfabde3ba9ff7d92105389)]:
26
75
  - @styleframe/transpiler@2.5.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "styleframe",
3
- "version": "2.4.0",
3
+ "version": "2.5.1",
4
4
  "bin": {
5
5
  "styleframe": "./dist/cli.cjs"
6
6
  },
@@ -83,20 +83,23 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
+ "dependencies": {
87
+ "@styleframe/cli": "^2.3.2",
88
+ "@styleframe/license": "^2.0.2"
89
+ },
86
90
  "peerDependencies": {
87
- "@styleframe/cli": "^2.3.0",
88
- "@styleframe/plugin": "^2.3.0",
89
- "@styleframe/core": "^2.5.0",
90
- "@styleframe/loader": "^2.3.0",
91
- "@styleframe/transpiler": "^2.5.0"
91
+ "@styleframe/plugin": "^2.4.0",
92
+ "@styleframe/core": "^2.6.0",
93
+ "@styleframe/loader": "^2.4.0",
94
+ "@styleframe/transpiler": "^2.6.0"
92
95
  },
93
96
  "devDependencies": {
94
97
  "@styleframe/config-typescript": "^2",
95
- "@styleframe/cli": "^2.3.0",
96
- "@styleframe/plugin": "^2.3.0",
97
- "@styleframe/core": "^2.5.0",
98
- "@styleframe/loader": "^2.3.0",
99
- "@styleframe/transpiler": "^2.5.0",
98
+ "@styleframe/cli": "^2.3.2",
99
+ "@styleframe/plugin": "^2.4.0",
100
+ "@styleframe/core": "^2.6.0",
101
+ "@styleframe/loader": "^2.4.0",
102
+ "@styleframe/transpiler": "^2.6.0",
100
103
  "@types/node": "^22.15.17",
101
104
  "@vitest/coverage-v8": "^3.2.4",
102
105
  "bumpp": "^10.1.0",