@terrazzo/plugin-css 2.0.0-alpha.0 → 2.0.0-alpha.2

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 CHANGED
@@ -1,5 +1,31 @@
1
1
  # @terrazzo/plugin-css
2
2
 
3
+ ## 2.0.0-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#568](https://github.com/terrazzoapp/terrazzo/pull/568) [`67c75be`](https://github.com/terrazzoapp/terrazzo/commit/67c75be78978cece52b61cf258ccc3a875e6af48) Thanks [@drwpow](https://github.com/drwpow)! - Fix border tokens not cascading correctly across modes
8
+
9
+ - Updated dependencies [[`67c75be`](https://github.com/terrazzoapp/terrazzo/commit/67c75be78978cece52b61cf258ccc3a875e6af48)]:
10
+ - @terrazzo/cli@2.0.0-alpha.2
11
+ - @terrazzo/token-tools@2.0.0-alpha.2
12
+
13
+ ## 2.0.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#530](https://github.com/terrazzoapp/terrazzo/pull/530) [`370ed7b`](https://github.com/terrazzoapp/terrazzo/commit/370ed7b0f578a64824124145d7f4936536b37bb3) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ Breaking change: lint on plugins no longer runs on individual files, rather, the full set once merged.
18
+
19
+ If your lint plugin is not using the `src` context value, no changes are needed. If it is, you’ll need to instead read from the `sources` array, and look up sources with a token’s `source.loc` filename manually. This change was because lint rules now run on all files in one pass, essentially.
20
+
21
+ - [#530](https://github.com/terrazzoapp/terrazzo/pull/530) [`370ed7b`](https://github.com/terrazzoapp/terrazzo/commit/370ed7b0f578a64824124145d7f4936536b37bb3) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ [Plugin API] Minor breaking change: token.originalValue may be undefined for tokens created with $ref. This shouldn’t affect any tokens or plugins not using $refs. But going forward this value will be missing if the token was created dynamically via $ref.
22
+
23
+ ### Patch Changes
24
+
25
+ - [#530](https://github.com/terrazzoapp/terrazzo/pull/530) [`370ed7b`](https://github.com/terrazzoapp/terrazzo/commit/370ed7b0f578a64824124145d7f4936536b37bb3) Thanks [@drwpow](https://github.com/drwpow)! - Validation moved to lint rules, which means token validation can be individually configured, and optionally extended.
26
+
27
+ - [#553](https://github.com/terrazzoapp/terrazzo/pull/553) [`e63a627`](https://github.com/terrazzoapp/terrazzo/commit/e63a6277f61282fb608744a8348689b16f977076) Thanks [@Sidnioulz](https://github.com/Sidnioulz)! - Add support for the Token Listing format
28
+
3
29
  ## 0.10.4
4
30
 
5
31
  ### Patch Changes
package/dist/index.js CHANGED
@@ -4709,7 +4709,8 @@ function cssPlugin(options) {
4709
4709
  format: FORMAT_ID,
4710
4710
  localID,
4711
4711
  value,
4712
- mode
4712
+ mode,
4713
+ meta: { "token-listing": { name: localID } }
4713
4714
  });
4714
4715
  continue;
4715
4716
  }
@@ -4720,12 +4721,20 @@ function cssPlugin(options) {
4720
4721
  transformAlias,
4721
4722
  color: { legacyHex }
4722
4723
  });
4723
- if (transformedValue !== void 0) setTransform(id, {
4724
- format: FORMAT_ID,
4725
- localID,
4726
- value: transformedValue,
4727
- mode
4728
- });
4724
+ if (transformedValue !== void 0) {
4725
+ let listingName = localID;
4726
+ if (typeof transformedValue === "object" && generateShorthand({
4727
+ $type: token.$type,
4728
+ localID
4729
+ }) === void 0) listingName = void 0;
4730
+ setTransform(id, {
4731
+ format: FORMAT_ID,
4732
+ localID,
4733
+ value: transformedValue,
4734
+ mode,
4735
+ meta: { "token-listing": { name: listingName } }
4736
+ });
4737
+ }
4729
4738
  }
4730
4739
  }
4731
4740
  },