@cobalt-ui/core
Advanced tools
Comparing version 1.11.2 to 1.11.3
# @cobalt-ui/core | ||
## 1.11.3 | ||
### Patch Changes | ||
- Aliases don’t need `$type`s | ||
## 1.11.2 | ||
@@ -7,3 +13,3 @@ | ||
- [#253](https://github.com/drwpow/cobalt-ui/pull/253) [`2dec1cb`](https://github.com/drwpow/cobalt-ui/commit/2dec1cb427715d6b7eb3c719f3eba8e3bb263517) Thanks [@drwpow](https://github.com/drwpow)! - Bump deps | ||
- [#253](https://github.com/terrazzoapp/terrazzo/pull/253) [`2dec1cb`](https://github.com/terrazzoapp/terrazzo/commit/2dec1cb427715d6b7eb3c719f3eba8e3bb263517) Thanks [@drwpow](https://github.com/drwpow)! - Bump deps | ||
@@ -14,3 +20,3 @@ ## 1.11.1 | ||
- [#247](https://github.com/drwpow/cobalt-ui/pull/247) [`743b26f`](https://github.com/drwpow/cobalt-ui/commit/743b26fea3d1348ba0fe639bf0726528c08c69e3) Thanks [@drwpow](https://github.com/drwpow)! - Fix duplicate value check failing on custom token types | ||
- [#247](https://github.com/terrazzoapp/terrazzo/pull/247) [`743b26f`](https://github.com/terrazzoapp/terrazzo/commit/743b26fea3d1348ba0fe639bf0726528c08c69e3) Thanks [@drwpow](https://github.com/drwpow)! - Fix duplicate value check failing on custom token types | ||
@@ -21,7 +27,7 @@ ## 1.11.0 | ||
- [#238](https://github.com/drwpow/cobalt-ui/pull/238) [`4b02c6bde0067950cbcb7b81163488c45bbc65c9`](https://github.com/drwpow/cobalt-ui/commit/4b02c6bde0067950cbcb7b81163488c45bbc65c9) Thanks [@drwpow](https://github.com/drwpow)! - Add core lint rules | ||
- [#238](https://github.com/terrazzoapp/terrazzo/pull/238) [`4b02c6bde0067950cbcb7b81163488c45bbc65c9`](https://github.com/terrazzoapp/terrazzo/commit/4b02c6bde0067950cbcb7b81163488c45bbc65c9) Thanks [@drwpow](https://github.com/drwpow)! - Add core lint rules | ||
### Patch Changes | ||
- Updated dependencies [[`4b02c6bde0067950cbcb7b81163488c45bbc65c9`](https://github.com/drwpow/cobalt-ui/commit/4b02c6bde0067950cbcb7b81163488c45bbc65c9)]: | ||
- Updated dependencies [[`4b02c6bde0067950cbcb7b81163488c45bbc65c9`](https://github.com/terrazzoapp/terrazzo/commit/4b02c6bde0067950cbcb7b81163488c45bbc65c9)]: | ||
- @cobalt-ui/utils@1.2.6 | ||
@@ -33,3 +39,3 @@ | ||
- [`a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414`](https://github.com/drwpow/cobalt-ui/commit/a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414) Thanks [@drwpow](https://github.com/drwpow)! - Improve lint error outputs | ||
- [`a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414`](https://github.com/terrazzoapp/terrazzo/commit/a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414) Thanks [@drwpow](https://github.com/drwpow)! - Improve lint error outputs | ||
@@ -40,3 +46,3 @@ ## 1.10.1 | ||
- [#233](https://github.com/drwpow/cobalt-ui/pull/233) [`54bd5a31f01dd97dceb3808db7f3ff93d4342166`](https://github.com/drwpow/cobalt-ui/commit/54bd5a31f01dd97dceb3808db7f3ff93d4342166) Thanks [@drwpow](https://github.com/drwpow)! - Tiny parser performance bump | ||
- [#233](https://github.com/terrazzoapp/terrazzo/pull/233) [`54bd5a31f01dd97dceb3808db7f3ff93d4342166`](https://github.com/terrazzoapp/terrazzo/commit/54bd5a31f01dd97dceb3808db7f3ff93d4342166) Thanks [@drwpow](https://github.com/drwpow)! - Tiny parser performance bump | ||
@@ -47,9 +53,9 @@ ## 1.10.0 | ||
- [#231](https://github.com/drwpow/cobalt-ui/pull/231) [`6bd99785eb50af83c96a0d70bd78fe6c6ab88a19`](https://github.com/drwpow/cobalt-ui/commit/6bd99785eb50af83c96a0d70bd78fe6c6ab88a19) Thanks [@drwpow](https://github.com/drwpow)! - Support YAML parsing in core | ||
- [#231](https://github.com/terrazzoapp/terrazzo/pull/231) [`6bd99785eb50af83c96a0d70bd78fe6c6ab88a19`](https://github.com/terrazzoapp/terrazzo/commit/6bd99785eb50af83c96a0d70bd78fe6c6ab88a19) Thanks [@drwpow](https://github.com/drwpow)! - Support YAML parsing in core | ||
### Patch Changes | ||
- [#231](https://github.com/drwpow/cobalt-ui/pull/231) [`6bd99785eb50af83c96a0d70bd78fe6c6ab88a19`](https://github.com/drwpow/cobalt-ui/commit/6bd99785eb50af83c96a0d70bd78fe6c6ab88a19) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ Tiny breaking change: Remove index.min.js from package (not used by anything, and probably shouldn’t be used; just using default package entryfile will yield better results in all setups) | ||
- [#231](https://github.com/terrazzoapp/terrazzo/pull/231) [`6bd99785eb50af83c96a0d70bd78fe6c6ab88a19`](https://github.com/terrazzoapp/terrazzo/commit/6bd99785eb50af83c96a0d70bd78fe6c6ab88a19) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ Tiny breaking change: Remove index.min.js from package (not used by anything, and probably shouldn’t be used; just using default package entryfile will yield better results in all setups) | ||
- [#231](https://github.com/drwpow/cobalt-ui/pull/231) [`6bd99785eb50af83c96a0d70bd78fe6c6ab88a19`](https://github.com/drwpow/cobalt-ui/commit/6bd99785eb50af83c96a0d70bd78fe6c6ab88a19) Thanks [@drwpow](https://github.com/drwpow)! - Improve JSON parsing errors with json-parse | ||
- [#231](https://github.com/terrazzoapp/terrazzo/pull/231) [`6bd99785eb50af83c96a0d70bd78fe6c6ab88a19`](https://github.com/terrazzoapp/terrazzo/commit/6bd99785eb50af83c96a0d70bd78fe6c6ab88a19) Thanks [@drwpow](https://github.com/drwpow)! - Improve JSON parsing errors with json-parse | ||
@@ -60,9 +66,9 @@ ## 1.9.0 | ||
- [#228](https://github.com/drwpow/cobalt-ui/pull/228) [`1e12d04fb24eebc1df152017935dd65a2c6d7618`](https://github.com/drwpow/cobalt-ui/commit/1e12d04fb24eebc1df152017935dd65a2c6d7618) Thanks [@drwpow](https://github.com/drwpow)! - Add gamut clipping for color tokens | ||
- [#228](https://github.com/terrazzoapp/terrazzo/pull/228) [`1e12d04fb24eebc1df152017935dd65a2c6d7618`](https://github.com/terrazzoapp/terrazzo/commit/1e12d04fb24eebc1df152017935dd65a2c6d7618) Thanks [@drwpow](https://github.com/drwpow)! - Add gamut clipping for color tokens | ||
### Patch Changes | ||
- [#228](https://github.com/drwpow/cobalt-ui/pull/228) [`1e12d04fb24eebc1df152017935dd65a2c6d7618`](https://github.com/drwpow/cobalt-ui/commit/1e12d04fb24eebc1df152017935dd65a2c6d7618) Thanks [@drwpow](https://github.com/drwpow)! - Improve Tokens Studio inline aliasing | ||
- [#228](https://github.com/terrazzoapp/terrazzo/pull/228) [`1e12d04fb24eebc1df152017935dd65a2c6d7618`](https://github.com/terrazzoapp/terrazzo/commit/1e12d04fb24eebc1df152017935dd65a2c6d7618) Thanks [@drwpow](https://github.com/drwpow)! - Improve Tokens Studio inline aliasing | ||
- [#228](https://github.com/drwpow/cobalt-ui/pull/228) [`1e12d04fb24eebc1df152017935dd65a2c6d7618`](https://github.com/drwpow/cobalt-ui/commit/1e12d04fb24eebc1df152017935dd65a2c6d7618) Thanks [@drwpow](https://github.com/drwpow)! - Make parse options optional for easier use | ||
- [#228](https://github.com/terrazzoapp/terrazzo/pull/228) [`1e12d04fb24eebc1df152017935dd65a2c6d7618`](https://github.com/terrazzoapp/terrazzo/commit/1e12d04fb24eebc1df152017935dd65a2c6d7618) Thanks [@drwpow](https://github.com/drwpow)! - Make parse options optional for easier use | ||
@@ -73,5 +79,5 @@ ## 1.8.1 | ||
- [#226](https://github.com/drwpow/cobalt-ui/pull/226) [`09e44f0efa0d025a2f1545abdc87ba107b7043e7`](https://github.com/drwpow/cobalt-ui/commit/09e44f0efa0d025a2f1545abdc87ba107b7043e7) Thanks [@drwpow](https://github.com/drwpow)! - Fix bug in linting via CLI | ||
- [#226](https://github.com/terrazzoapp/terrazzo/pull/226) [`09e44f0efa0d025a2f1545abdc87ba107b7043e7`](https://github.com/terrazzoapp/terrazzo/commit/09e44f0efa0d025a2f1545abdc87ba107b7043e7) Thanks [@drwpow](https://github.com/drwpow)! - Fix bug in linting via CLI | ||
- [#226](https://github.com/drwpow/cobalt-ui/pull/226) [`09e44f0efa0d025a2f1545abdc87ba107b7043e7`](https://github.com/drwpow/cobalt-ui/commit/09e44f0efa0d025a2f1545abdc87ba107b7043e7) Thanks [@drwpow](https://github.com/drwpow)! - Add `co lint` command and `lint.build.enabled` config flag | ||
- [#226](https://github.com/terrazzoapp/terrazzo/pull/226) [`09e44f0efa0d025a2f1545abdc87ba107b7043e7`](https://github.com/terrazzoapp/terrazzo/commit/09e44f0efa0d025a2f1545abdc87ba107b7043e7) Thanks [@drwpow](https://github.com/drwpow)! - Add `co lint` command and `lint.build.enabled` config flag | ||
@@ -82,9 +88,9 @@ ## 1.8.0 | ||
- [#218](https://github.com/drwpow/cobalt-ui/pull/218) [`041a8d070b74d2bca46e0c26c0c522f96b585458`](https://github.com/drwpow/cobalt-ui/commit/041a8d070b74d2bca46e0c26c0c522f96b585458) Thanks [@drwpow](https://github.com/drwpow)! - Add `lint()` and `registerRules()` stages to plugins | ||
- [#218](https://github.com/terrazzoapp/terrazzo/pull/218) [`041a8d070b74d2bca46e0c26c0c522f96b585458`](https://github.com/terrazzoapp/terrazzo/commit/041a8d070b74d2bca46e0c26c0c522f96b585458) Thanks [@drwpow](https://github.com/drwpow)! - Add `lint()` and `registerRules()` stages to plugins | ||
- [#218](https://github.com/drwpow/cobalt-ui/pull/218) [`041a8d070b74d2bca46e0c26c0c522f96b585458`](https://github.com/drwpow/cobalt-ui/commit/041a8d070b74d2bca46e0c26c0c522f96b585458) Thanks [@drwpow](https://github.com/drwpow)! - Support `lint` and lint rules in config | ||
- [#218](https://github.com/terrazzoapp/terrazzo/pull/218) [`041a8d070b74d2bca46e0c26c0c522f96b585458`](https://github.com/terrazzoapp/terrazzo/commit/041a8d070b74d2bca46e0c26c0c522f96b585458) Thanks [@drwpow](https://github.com/drwpow)! - Support `lint` and lint rules in config | ||
### Patch Changes | ||
- [#218](https://github.com/drwpow/cobalt-ui/pull/218) [`041a8d070b74d2bca46e0c26c0c522f96b585458`](https://github.com/drwpow/cobalt-ui/commit/041a8d070b74d2bca46e0c26c0c522f96b585458) Thanks [@drwpow](https://github.com/drwpow)! - build() command is no longer required in types | ||
- [#218](https://github.com/terrazzoapp/terrazzo/pull/218) [`041a8d070b74d2bca46e0c26c0c522f96b585458`](https://github.com/terrazzoapp/terrazzo/commit/041a8d070b74d2bca46e0c26c0c522f96b585458) Thanks [@drwpow](https://github.com/drwpow)! - build() command is no longer required in types | ||
@@ -95,3 +101,3 @@ ## 1.7.3 | ||
- [#208](https://github.com/drwpow/cobalt-ui/pull/208) [`12f41273b853b98c8da665552ab342df7b0baf9e`](https://github.com/drwpow/cobalt-ui/commit/12f41273b853b98c8da665552ab342df7b0baf9e) Thanks [@james-nash](https://github.com/james-nash)! - Allows DTCG files to contain empty groups. Previously they would cause a parsing error, now only a warning will be logged. | ||
- [#208](https://github.com/terrazzoapp/terrazzo/pull/208) [`12f41273b853b98c8da665552ab342df7b0baf9e`](https://github.com/terrazzoapp/terrazzo/commit/12f41273b853b98c8da665552ab342df7b0baf9e) Thanks [@james-nash](https://github.com/james-nash)! - Allows DTCG files to contain empty groups. Previously they would cause a parsing error, now only a warning will be logged. | ||
@@ -102,3 +108,3 @@ ## 1.7.2 | ||
- [#205](https://github.com/drwpow/cobalt-ui/pull/205) [`5f39eb577ce4ede00d479d2ecc73bd087aa584c2`](https://github.com/drwpow/cobalt-ui/commit/5f39eb577ce4ede00d479d2ecc73bd087aa584c2) Thanks [@drwpow](https://github.com/drwpow)! - Improve parsing of Tokens Studio files | ||
- [#205](https://github.com/terrazzoapp/terrazzo/pull/205) [`5f39eb577ce4ede00d479d2ecc73bd087aa584c2`](https://github.com/terrazzoapp/terrazzo/commit/5f39eb577ce4ede00d479d2ecc73bd087aa584c2) Thanks [@drwpow](https://github.com/drwpow)! - Improve parsing of Tokens Studio files | ||
@@ -109,9 +115,9 @@ ## 1.7.0 | ||
- [#189](https://github.com/drwpow/cobalt-ui/pull/189) [`a2afdc48a9cda210eafc59c4f4f9af1e5bb3dc42`](https://github.com/drwpow/cobalt-ui/commit/a2afdc48a9cda210eafc59c4f4f9af1e5bb3dc42) Thanks [@drwpow](https://github.com/drwpow)! - Add Figma Variable support natively | ||
- [#189](https://github.com/terrazzoapp/terrazzo/pull/189) [`a2afdc48a9cda210eafc59c4f4f9af1e5bb3dc42`](https://github.com/terrazzoapp/terrazzo/commit/a2afdc48a9cda210eafc59c4f4f9af1e5bb3dc42) Thanks [@drwpow](https://github.com/drwpow)! - Add Figma Variable support natively | ||
### Patch Changes | ||
- [#187](https://github.com/drwpow/cobalt-ui/pull/187) [`a395b21d017ae4b2f0a05bba6706b05a63850f69`](https://github.com/drwpow/cobalt-ui/commit/a395b21d017ae4b2f0a05bba6706b05a63850f69) Thanks [@drwpow](https://github.com/drwpow)! - Update Culori to 4.x | ||
- [#187](https://github.com/terrazzoapp/terrazzo/pull/187) [`a395b21d017ae4b2f0a05bba6706b05a63850f69`](https://github.com/terrazzoapp/terrazzo/commit/a395b21d017ae4b2f0a05bba6706b05a63850f69) Thanks [@drwpow](https://github.com/drwpow)! - Update Culori to 4.x | ||
- Updated dependencies [[`a2afdc48a9cda210eafc59c4f4f9af1e5bb3dc42`](https://github.com/drwpow/cobalt-ui/commit/a2afdc48a9cda210eafc59c4f4f9af1e5bb3dc42)]: | ||
- Updated dependencies [[`a2afdc48a9cda210eafc59c4f4f9af1e5bb3dc42`](https://github.com/terrazzoapp/terrazzo/commit/a2afdc48a9cda210eafc59c4f4f9af1e5bb3dc42)]: | ||
- @cobalt-ui/utils@1.2.3 | ||
@@ -123,3 +129,3 @@ | ||
- [#140](https://github.com/drwpow/cobalt-ui/pull/140) [`636f4da`](https://github.com/drwpow/cobalt-ui/commit/636f4dae537677dfe893bb310352589b7bb58795) Thanks [@drwpow](https://github.com/drwpow)! - Fix strokeStyle object values | ||
- [#140](https://github.com/terrazzoapp/terrazzo/pull/140) [`636f4da`](https://github.com/terrazzoapp/terrazzo/commit/636f4dae537677dfe893bb310352589b7bb58795) Thanks [@drwpow](https://github.com/drwpow)! - Fix strokeStyle object values | ||
@@ -130,3 +136,3 @@ ## 1.6.0 | ||
- [#119](https://github.com/drwpow/cobalt-ui/pull/119) [`1a76946`](https://github.com/drwpow/cobalt-ui/commit/1a769463920d730a9688e0be66c27426da25cf7d) Thanks [@drwpow](https://github.com/drwpow)! - Breaking change: don’t automatically convert colors to hex | ||
- [#119](https://github.com/terrazzoapp/terrazzo/pull/119) [`1a76946`](https://github.com/terrazzoapp/terrazzo/commit/1a769463920d730a9688e0be66c27426da25cf7d) Thanks [@drwpow](https://github.com/drwpow)! - Breaking change: don’t automatically convert colors to hex | ||
@@ -137,5 +143,5 @@ ## 1.5.0 | ||
- [#114](https://github.com/drwpow/cobalt-ui/pull/114) [`9f62035`](https://github.com/drwpow/cobalt-ui/commit/9f620359ee6c426279645a29edc5854085dd6045) Thanks [@drwpow](https://github.com/drwpow)! - Add "inset" property for shadows | ||
- [#114](https://github.com/terrazzoapp/terrazzo/pull/114) [`9f62035`](https://github.com/terrazzoapp/terrazzo/commit/9f620359ee6c426279645a29edc5854085dd6045) Thanks [@drwpow](https://github.com/drwpow)! - Add "inset" property for shadows | ||
- [#114](https://github.com/drwpow/cobalt-ui/pull/114) [`9f62035`](https://github.com/drwpow/cobalt-ui/commit/9f620359ee6c426279645a29edc5854085dd6045) Thanks [@drwpow](https://github.com/drwpow)! - Support arrays of shadows | ||
- [#114](https://github.com/terrazzoapp/terrazzo/pull/114) [`9f62035`](https://github.com/terrazzoapp/terrazzo/commit/9f620359ee6c426279645a29edc5854085dd6045) Thanks [@drwpow](https://github.com/drwpow)! - Support arrays of shadows | ||
@@ -146,5 +152,5 @@ ## 1.4.3 | ||
- [#92](https://github.com/drwpow/cobalt-ui/pull/92) [`e859bef`](https://github.com/drwpow/cobalt-ui/commit/e859bef2dea05c5087c4205f3ef89dc8273361a3) Thanks [@drwpow](https://github.com/drwpow)! - Sort tokens alphabetically | ||
- [#92](https://github.com/terrazzoapp/terrazzo/pull/92) [`e859bef`](https://github.com/terrazzoapp/terrazzo/commit/e859bef2dea05c5087c4205f3ef89dc8273361a3) Thanks [@drwpow](https://github.com/drwpow)! - Sort tokens alphabetically | ||
- Updated dependencies [[`e859bef`](https://github.com/drwpow/cobalt-ui/commit/e859bef2dea05c5087c4205f3ef89dc8273361a3)]: | ||
- Updated dependencies [[`e859bef`](https://github.com/terrazzoapp/terrazzo/commit/e859bef2dea05c5087c4205f3ef89dc8273361a3)]: | ||
- @cobalt-ui/utils@1.2.1 | ||
@@ -156,3 +162,3 @@ | ||
- [#63](https://github.com/drwpow/cobalt-ui/pull/63) [`f20f589`](https://github.com/drwpow/cobalt-ui/commit/f20f5896568a9f71b90135606eb3abc041263a02) Thanks [@drwpow](https://github.com/drwpow)! - Add `co bundle` command | ||
- [#63](https://github.com/terrazzoapp/terrazzo/pull/63) [`f20f589`](https://github.com/terrazzoapp/terrazzo/commit/f20f5896568a9f71b90135606eb3abc041263a02) Thanks [@drwpow](https://github.com/drwpow)! - Add `co bundle` command | ||
@@ -163,3 +169,3 @@ ## 1.3.1 | ||
- [#61](https://github.com/drwpow/cobalt-ui/pull/61) [`949481f`](https://github.com/drwpow/cobalt-ui/commit/949481ff53489baf485f6befd3befcd6ec176260) Thanks [@drwpow](https://github.com/drwpow)! - Replace better-color-tools with culori for faster, more accurate color operations | ||
- [#61](https://github.com/terrazzoapp/terrazzo/pull/61) [`949481f`](https://github.com/terrazzoapp/terrazzo/commit/949481ff53489baf485f6befd3befcd6ec176260) Thanks [@drwpow](https://github.com/drwpow)! - Replace better-color-tools with culori for faster, more accurate color operations | ||
@@ -170,5 +176,5 @@ ## 1.3.0 | ||
- [#51](https://github.com/drwpow/cobalt-ui/pull/51) [`e1e18c1`](https://github.com/drwpow/cobalt-ui/commit/e1e18c1aa0fca4f3fc915f937fe148ee56ac184f) Thanks [@drwpow](https://github.com/drwpow)! - Allow combining multiple schemas | ||
- [#51](https://github.com/terrazzoapp/terrazzo/pull/51) [`e1e18c1`](https://github.com/terrazzoapp/terrazzo/commit/e1e18c1aa0fca4f3fc915f937fe148ee56ac184f) Thanks [@drwpow](https://github.com/drwpow)! - Allow combining multiple schemas | ||
- [#51](https://github.com/drwpow/cobalt-ui/pull/51) [`e1e18c1`](https://github.com/drwpow/cobalt-ui/commit/e1e18c1aa0fca4f3fc915f937fe148ee56ac184f) Thanks [@drwpow](https://github.com/drwpow)! - Allow loading tokens as YAML | ||
- [#51](https://github.com/terrazzoapp/terrazzo/pull/51) [`e1e18c1`](https://github.com/terrazzoapp/terrazzo/commit/e1e18c1aa0fca4f3fc915f937fe148ee56ac184f) Thanks [@drwpow](https://github.com/drwpow)! - Allow loading tokens as YAML | ||
@@ -179,3 +185,3 @@ ## 1.2.0 | ||
- [#47](https://github.com/drwpow/cobalt-ui/pull/47) [`432029f`](https://github.com/drwpow/cobalt-ui/commit/432029f78130bec264fbdb26e83a6980fb923b0e) Thanks [@drwpow](https://github.com/drwpow)! - Add global color transform options | ||
- [#47](https://github.com/terrazzoapp/terrazzo/pull/47) [`432029f`](https://github.com/terrazzoapp/terrazzo/commit/432029f78130bec264fbdb26e83a6980fb923b0e) Thanks [@drwpow](https://github.com/drwpow)! - Add global color transform options | ||
@@ -186,5 +192,5 @@ ## 1.1.3 | ||
- [#45](https://github.com/drwpow/cobalt-ui/pull/45) [`4e4e2c0`](https://github.com/drwpow/cobalt-ui/commit/4e4e2c03ed0750306633fe757396733b8f6db385) Thanks [@drwpow](https://github.com/drwpow)! - Fix release script | ||
- [#45](https://github.com/terrazzoapp/terrazzo/pull/45) [`4e4e2c0`](https://github.com/terrazzoapp/terrazzo/commit/4e4e2c03ed0750306633fe757396733b8f6db385) Thanks [@drwpow](https://github.com/drwpow)! - Fix release script | ||
- Updated dependencies [[`4e4e2c0`](https://github.com/drwpow/cobalt-ui/commit/4e4e2c03ed0750306633fe757396733b8f6db385)]: | ||
- Updated dependencies [[`4e4e2c0`](https://github.com/terrazzoapp/terrazzo/commit/4e4e2c03ed0750306633fe757396733b8f6db385)]: | ||
- @cobalt-ui/utils@1.1.1 | ||
@@ -196,3 +202,3 @@ | ||
- [#43](https://github.com/drwpow/cobalt-ui/pull/43) [`8bf696d`](https://github.com/drwpow/cobalt-ui/commit/8bf696d045269ba552424a0221347413a9272cc5) Thanks [@drwpow](https://github.com/drwpow)! - Fix @cobalt-ui/core package import | ||
- [#43](https://github.com/terrazzoapp/terrazzo/pull/43) [`8bf696d`](https://github.com/terrazzoapp/terrazzo/commit/8bf696d045269ba552424a0221347413a9272cc5) Thanks [@drwpow](https://github.com/drwpow)! - Fix @cobalt-ui/core package import | ||
@@ -203,5 +209,5 @@ ## 1.1.1 | ||
- [#37](https://github.com/drwpow/cobalt-ui/pull/37) [`214559f`](https://github.com/drwpow/cobalt-ui/commit/214559f87d5fe38355b5ef0552388397cb77129b) Thanks [@drwpow](https://github.com/drwpow)! - Fix Tokens Studio opacity token type | ||
- [#37](https://github.com/terrazzoapp/terrazzo/pull/37) [`214559f`](https://github.com/terrazzoapp/terrazzo/commit/214559f87d5fe38355b5ef0552388397cb77129b) Thanks [@drwpow](https://github.com/drwpow)! - Fix Tokens Studio opacity token type | ||
- [#37](https://github.com/drwpow/cobalt-ui/pull/37) [`214559f`](https://github.com/drwpow/cobalt-ui/commit/214559f87d5fe38355b5ef0552388397cb77129b) Thanks [@drwpow](https://github.com/drwpow)! - Fix bug where `$type: number, $value: 0` was treated as a missing value | ||
- [#37](https://github.com/terrazzoapp/terrazzo/pull/37) [`214559f`](https://github.com/terrazzoapp/terrazzo/commit/214559f87d5fe38355b5ef0552388397cb77129b) Thanks [@drwpow](https://github.com/drwpow)! - Fix bug where `$type: number, $value: 0` was treated as a missing value | ||
@@ -212,13 +218,13 @@ ## 1.1.0 | ||
- [#30](https://github.com/drwpow/cobalt-ui/pull/30) [`482f5cd`](https://github.com/drwpow/cobalt-ui/commit/482f5cd4dfd7dd5bf71b64ae1f103322e6709717) Thanks [@drwpow](https://github.com/drwpow)! - Deprecate Figma sync CLI and core functionality (in favor of Tokens Studio support) | ||
- [#30](https://github.com/terrazzoapp/terrazzo/pull/30) [`482f5cd`](https://github.com/terrazzoapp/terrazzo/commit/482f5cd4dfd7dd5bf71b64ae1f103322e6709717) Thanks [@drwpow](https://github.com/drwpow)! - Deprecate Figma sync CLI and core functionality (in favor of Tokens Studio support) | ||
- [#30](https://github.com/drwpow/cobalt-ui/pull/30) [`482f5cd`](https://github.com/drwpow/cobalt-ui/commit/482f5cd4dfd7dd5bf71b64ae1f103322e6709717) Thanks [@drwpow](https://github.com/drwpow)! - Add Tokens Studio support | ||
- [#30](https://github.com/terrazzoapp/terrazzo/pull/30) [`482f5cd`](https://github.com/terrazzoapp/terrazzo/commit/482f5cd4dfd7dd5bf71b64ae1f103322e6709717) Thanks [@drwpow](https://github.com/drwpow)! - Add Tokens Studio support | ||
### Patch Changes | ||
- [#33](https://github.com/drwpow/cobalt-ui/pull/33) [`eb942a7`](https://github.com/drwpow/cobalt-ui/commit/eb942a7c50a7afd48e73c0f652f34f71f01db68f) Thanks [@drwpow](https://github.com/drwpow)! - Remove unused deps | ||
- [#33](https://github.com/terrazzoapp/terrazzo/pull/33) [`eb942a7`](https://github.com/terrazzoapp/terrazzo/commit/eb942a7c50a7afd48e73c0f652f34f71f01db68f) Thanks [@drwpow](https://github.com/drwpow)! - Remove unused deps | ||
- [#30](https://github.com/drwpow/cobalt-ui/pull/30) [`482f5cd`](https://github.com/drwpow/cobalt-ui/commit/482f5cd4dfd7dd5bf71b64ae1f103322e6709717) Thanks [@drwpow](https://github.com/drwpow)! - Fix bug where $value: `0` wasn’t a valid value | ||
- [#30](https://github.com/terrazzoapp/terrazzo/pull/30) [`482f5cd`](https://github.com/terrazzoapp/terrazzo/commit/482f5cd4dfd7dd5bf71b64ae1f103322e6709717) Thanks [@drwpow](https://github.com/drwpow)! - Fix bug where $value: `0` wasn’t a valid value | ||
- Updated dependencies [[`152f666`](https://github.com/drwpow/cobalt-ui/commit/152f66661de125e1c4b9d872794bbcff8b51de8f)]: | ||
- Updated dependencies [[`152f666`](https://github.com/terrazzoapp/terrazzo/commit/152f66661de125e1c4b9d872794bbcff8b51de8f)]: | ||
- @cobalt-ui/utils@1.1.0 | ||
@@ -225,0 +231,0 @@ |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type { Group, ParsedToken } from './token.js'; | ||
@@ -3,0 +2,0 @@ export type { BorderToken, BorderTokenValue, ColorToken, CubicBezierToken, DimensionToken, DurationToken, FontFamilyToken, FontWeightToken, GradientStop, GradientToken, Group, LinkToken, Mode, NumberToken, ParsedBorderToken, ParsedColorToken, ParsedCubicBezierToken, ParsedDimensionToken, ParsedDurationToken, ParsedFontFamilyToken, ParsedFontWeightToken, ParsedGradientToken, ParsedLinkToken, ParsedNumberToken, ParsedShadowToken, ParsedStrokeStyleToken, ParsedToken, ParsedTransitionToken, ParsedTypographyToken, ParsedTypographyValue, ShadowToken, ShadowValue, StrokeStyleToken, StrokeStyleValue, Token, TokenBase, TokenOrGroup, TokenType, TransitionToken, TransitionValue, TypographyToken, TypographyValue, } from './token.js'; |
@@ -190,2 +190,3 @@ import { cloneDeep, FG_YELLOW, getAliasID, invalidTokenIDError, isAlias, RESET } from '@cobalt-ui/utils'; | ||
// 2. resolve aliases | ||
const resolvedTypes = {}; | ||
const values = {}; | ||
@@ -196,4 +197,6 @@ // 2a. pass 1: gather all IDs & values | ||
values[token.id] = token.$value; | ||
resolvedTypes[token.id] = token.$type; | ||
if (token.$extensions?.mode) { | ||
for (const k in token.$extensions.mode || {}) { | ||
resolvedTypes[`${token.id}#${k}`] = token.$type; | ||
values[`${token.id}#${k}`] = token.$extensions.mode[k]; | ||
@@ -222,2 +225,5 @@ } | ||
} | ||
if (resolvedTypes[nextID]) { | ||
resolvedTypes[id] = resolvedTypes[nextID]; | ||
} | ||
return values[nextID]; | ||
@@ -263,2 +269,6 @@ }, | ||
const token = tokens[id]; | ||
// aliases are allowed to omit $type | ||
if (!token.$type && resolvedTypes[id]) { | ||
token.$type = resolvedTypes[id]; | ||
} | ||
try { | ||
@@ -265,0 +275,0 @@ switch (token.$type) { |
@@ -22,2 +22,3 @@ export type Group = { | ||
export type Token = ColorToken | FontFamilyToken | FontWeightToken | DimensionToken | DurationToken | CubicBezierToken | NumberToken | LinkToken | StrokeStyleToken | BorderToken | TransitionToken | ShadowToken | GradientToken | TypographyToken; | ||
export type AliasToken = TokenBase; | ||
export type TokenOrGroup = Token | Group; | ||
@@ -37,3 +38,3 @@ export type TokenType = Token['$type']; | ||
$type: 'color'; | ||
_original: ColorToken; | ||
_original: AliasToken | ColorToken; | ||
} | ||
@@ -45,3 +46,3 @@ export interface DimensionToken extends TokenBase<string> { | ||
$type: 'dimension'; | ||
_original: DimensionToken; | ||
_original: AliasToken | DimensionToken; | ||
} | ||
@@ -53,3 +54,3 @@ export interface FontFamilyToken extends TokenBase<string | string[]> { | ||
$type: 'fontFamily'; | ||
_original: FontFamilyToken; | ||
_original: AliasToken | FontFamilyToken; | ||
} | ||
@@ -61,3 +62,3 @@ export interface FontWeightToken extends TokenBase<number> { | ||
$type: 'fontWeight'; | ||
_original: FontWeightToken; | ||
_original: AliasToken | FontWeightToken; | ||
} | ||
@@ -69,3 +70,3 @@ export interface DurationToken extends TokenBase<string> { | ||
$type: 'duration'; | ||
_original: DurationToken; | ||
_original: AliasToken | DurationToken; | ||
} | ||
@@ -77,3 +78,3 @@ export interface CubicBezierToken extends TokenBase<[number, number, number, number]> { | ||
$type: 'cubicBezier'; | ||
_original: CubicBezierToken; | ||
_original: AliasToken | CubicBezierToken; | ||
} | ||
@@ -85,3 +86,3 @@ export interface NumberToken extends TokenBase<number> { | ||
$type: 'number'; | ||
_original: NumberToken; | ||
_original: AliasToken | NumberToken; | ||
} | ||
@@ -93,3 +94,3 @@ export interface LinkToken extends TokenBase<string> { | ||
$type: 'link'; | ||
_original: LinkToken; | ||
_original: AliasToken | LinkToken; | ||
} | ||
@@ -101,3 +102,3 @@ export interface StrokeStyleToken extends TokenBase<StrokeStyleValue> { | ||
$type: 'strokeStyle'; | ||
_original: StrokeStyleToken; | ||
_original: AliasToken | StrokeStyleToken; | ||
} | ||
@@ -118,3 +119,3 @@ export type StrokeStyleValue = string | { | ||
$type: 'border'; | ||
_original: BorderToken; | ||
_original: AliasToken | BorderToken; | ||
} | ||
@@ -131,3 +132,3 @@ export interface TransitionValue { | ||
$type: 'transition'; | ||
_original: TransitionToken; | ||
_original: AliasToken | TransitionToken; | ||
} | ||
@@ -148,3 +149,3 @@ export interface ShadowValue { | ||
$type: 'shadow'; | ||
_original: ShadowToken; | ||
_original: AliasToken | ShadowToken; | ||
} | ||
@@ -160,3 +161,3 @@ export interface GradientStop { | ||
$type: 'gradient'; | ||
_original: GradientToken; | ||
_original: AliasToken | GradientToken; | ||
} | ||
@@ -180,3 +181,3 @@ export interface TypographyValue { | ||
$type: 'typography'; | ||
_original: TypographyToken; | ||
_original: AliasToken | TypographyToken; | ||
} |
{ | ||
"name": "@cobalt-ui/core", | ||
"description": "Parser/validator for the Design Tokens Community Group (DTCG) standard.", | ||
"version": "1.11.2", | ||
"version": "1.11.3", | ||
"author": { | ||
@@ -27,3 +27,3 @@ "name": "Drew Powers", | ||
"type": "git", | ||
"url": "git+https://github.com/drwpow/cobalt-ui.git", | ||
"url": "git+https://github.com/terrazzoapp/terrazzo.git", | ||
"directory": "packages/core" | ||
@@ -36,3 +36,3 @@ }, | ||
"dependencies": { | ||
"@types/culori": "^2.1.0", | ||
"@types/culori": "^2.1.1", | ||
"@types/deep-equal": "^1.0.4", | ||
@@ -43,5 +43,8 @@ "culori": "^4.0.1", | ||
"scule": "^1.3.0", | ||
"yaml": "^2.4.2", | ||
"yaml": "^2.4.5", | ||
"@cobalt-ui/utils": "^1.2.6" | ||
}, | ||
"devDependencies": { | ||
"strip-ansi": "^7.1.0" | ||
}, | ||
"scripts": { | ||
@@ -48,0 +51,0 @@ "build": "pnpm run build:clean && pnpm run build:ts && pnpm run build:license", |
@@ -252,2 +252,3 @@ import { cloneDeep, FG_YELLOW, getAliasID, invalidTokenIDError, isAlias, RESET } from '@cobalt-ui/utils'; | ||
// 2. resolve aliases | ||
const resolvedTypes: Record<string, TokenType> = {}; | ||
const values: Record<string, unknown> = {}; | ||
@@ -259,4 +260,6 @@ | ||
values[token.id] = token.$value; | ||
resolvedTypes[token.id] = token.$type; | ||
if (token.$extensions?.mode) { | ||
for (const k in token.$extensions.mode || {}) { | ||
resolvedTypes[`${token.id}#${k}`] = token.$type; | ||
values[`${token.id}#${k}`] = token.$extensions.mode[k]; | ||
@@ -287,3 +290,5 @@ } | ||
} | ||
if (resolvedTypes[nextID]) { | ||
resolvedTypes[id] = resolvedTypes[nextID]; | ||
} | ||
return values[nextID]; | ||
@@ -330,2 +335,7 @@ }, | ||
const token = tokens[id]!; | ||
// aliases are allowed to omit $type | ||
if (!token.$type && resolvedTypes[id]) { | ||
(token as any).$type = resolvedTypes[id]; | ||
} | ||
try { | ||
@@ -332,0 +342,0 @@ switch (token.$type) { |
@@ -41,2 +41,4 @@ // Base | ||
export type AliasToken = TokenBase; | ||
export type TokenOrGroup = Token | Group; | ||
@@ -74,3 +76,3 @@ export type TokenType = Token['$type']; | ||
$type: 'color'; | ||
_original: ColorToken; | ||
_original: AliasToken | ColorToken; | ||
} | ||
@@ -85,3 +87,3 @@ | ||
$type: 'dimension'; | ||
_original: DimensionToken; | ||
_original: AliasToken | DimensionToken; | ||
} | ||
@@ -96,3 +98,3 @@ | ||
$type: 'fontFamily'; | ||
_original: FontFamilyToken; | ||
_original: AliasToken | FontFamilyToken; | ||
} | ||
@@ -108,3 +110,3 @@ | ||
$type: 'fontWeight'; | ||
_original: FontWeightToken; | ||
_original: AliasToken | FontWeightToken; | ||
} | ||
@@ -119,3 +121,3 @@ | ||
$type: 'duration'; | ||
_original: DurationToken; | ||
_original: AliasToken | DurationToken; | ||
} | ||
@@ -130,3 +132,3 @@ | ||
$type: 'cubicBezier'; | ||
_original: CubicBezierToken; | ||
_original: AliasToken | CubicBezierToken; | ||
} | ||
@@ -142,3 +144,3 @@ | ||
$type: 'number'; | ||
_original: NumberToken; | ||
_original: AliasToken | NumberToken; | ||
} | ||
@@ -153,3 +155,3 @@ | ||
$type: 'link'; | ||
_original: LinkToken; | ||
_original: AliasToken | LinkToken; | ||
} | ||
@@ -165,3 +167,3 @@ | ||
$type: 'strokeStyle'; | ||
_original: StrokeStyleToken; | ||
_original: AliasToken | StrokeStyleToken; | ||
} | ||
@@ -190,3 +192,3 @@ | ||
$type: 'border'; | ||
_original: BorderToken; | ||
_original: AliasToken | BorderToken; | ||
} | ||
@@ -206,3 +208,3 @@ | ||
$type: 'transition'; | ||
_original: TransitionToken; | ||
_original: AliasToken | TransitionToken; | ||
} | ||
@@ -226,3 +228,3 @@ | ||
$type: 'shadow'; | ||
_original: ShadowToken; | ||
_original: AliasToken | ShadowToken; | ||
} | ||
@@ -241,3 +243,3 @@ | ||
$type: 'gradient'; | ||
_original: GradientToken; | ||
_original: AliasToken | GradientToken; | ||
} | ||
@@ -263,3 +265,3 @@ | ||
$type: 'typography'; | ||
_original: TypographyToken; | ||
_original: AliasToken | TypographyToken; | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
310964
6112
1
Updated@types/culori@^2.1.1
Updatedyaml@^2.4.5