@knapsack/design-token-utils 4.66.5--canary.4376.520264e.0 → 4.66.5--canary.4358.1d7c3b7.0
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
# v4.66.4 (Fri Jul 19 2024)
|
2
|
+
|
3
|
+
#### 🐛 Bug Fix
|
4
|
+
|
5
|
+
- KSP-5283: token var refs point to correct token. Figma Var imports merge correctly without deepMerge. [#4370](https://github.com/knapsack-labs/app-monorepo/pull/4370) ([@illepic](https://github.com/illepic))
|
6
|
+
|
7
|
+
#### 🏠 Internal
|
8
|
+
|
9
|
+
- update ReactMarkdown to latest version [#4369](https://github.com/knapsack-labs/app-monorepo/pull/4369) ([@GormanDesign](https://github.com/GormanDesign))
|
10
|
+
|
11
|
+
#### Authors: 2
|
12
|
+
|
13
|
+
- Christopher Bloom ([@illepic](https://github.com/illepic))
|
14
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
15
|
+
|
16
|
+
---
|
17
|
+
|
1
18
|
# v4.66.3 (Fri Jul 19 2024)
|
2
19
|
|
3
20
|
#### 🐛 Bug Fix
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"token-collection-utils.d.ts","sourceRoot":"","sources":["../../src/collections/token-collection-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAMtF,wBAAgB,yBAAyB,CAAC,EACxC,UAAU,EACV,MAAM,GACP,EAAE;IACD,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB,UAEA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,SAAS,EAAE,EAAE,eAAe,EAAE,EAC9B,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,MAAM,
|
1
|
+
{"version":3,"file":"token-collection-utils.d.ts","sourceRoot":"","sources":["../../src/collections/token-collection-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAMtF,wBAAgB,yBAAyB,CAAC,EACxC,UAAU,EACV,MAAM,GACP,EAAE;IACD,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB,UAEA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,SAAS,EAAE,EAAE,eAAe,EAAE,EAC9B,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,MAAM,CAmCT;AAED,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,gBAAgB,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,MAAM,CAYT;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvE"}
|
@@ -20,14 +20,11 @@ export function getTokenCollectionCss({ collectionId, tokenData: { collectionsBy
|
|
20
20
|
return [];
|
21
21
|
const { value } = varInMode;
|
22
22
|
const { type } = value;
|
23
|
-
// var-refs are *groups
|
24
|
-
// id from value
|
23
|
+
// var-refs are *groups*
|
25
24
|
if (type === 'var-ref') {
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
const refValue = value.groupId.replace(collection.groupId, '');
|
30
|
-
return [` ${cssVarName(varData.id)}: var(${cssVarName(refValue)});`];
|
25
|
+
return [
|
26
|
+
` ${cssVarName(varData.id)}: var(${cssVarName(value.groupId)});`,
|
27
|
+
];
|
31
28
|
}
|
32
29
|
// Return CSS for actual vars
|
33
30
|
return [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"token-collection-utils.js","sourceRoot":"","sources":["../../src/collections/token-collection-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EACL,UAAU,EACV,qBAAqB,GACtB,MAAM,6CAA6C,CAAC;AAErD,MAAM,UAAU,yBAAyB,CAAC,EACxC,UAAU,EACV,MAAM,GAIP;IACC,OAAO,QAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,MAAM,GAAG,CAAC;AAC7D,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,EACpC,YAAY,EACZ,SAAS,EAAE,EAAE,eAAe,EAAE,EAC9B,QAAQ,GAKT;IACC,MAAM,UAAU,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;IACjD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,gCAAgC,YAAY,EAAE,CAAC,CAAC;IAClE,CAAC;IACD,MAAM,KAAK,GAAa,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,EAAY,EAAE;QACrE,OAAO;YACL,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;YACvB,IAAI,yBAAyB,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,KAAK;YACnE,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAY,EAAE;gBAC/C,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAC7C,IAAI,CAAC,SAAS;oBAAE,OAAO,EAAE,CAAC;gBAC1B,IAAI,SAAS,CAAC,IAAI,KAAK,M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,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/design-token-utils",
|
3
3
|
"description": "",
|
4
|
-
"version": "4.66.5--canary.
|
4
|
+
"version": "4.66.5--canary.4358.1d7c3b7.0",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
7
7
|
".": {
|
@@ -26,19 +26,19 @@
|
|
26
26
|
"test": "time npm run ava"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@knapsack/color-utils": "4.66.5--canary.
|
30
|
-
"@knapsack/file-utils": "4.66.5--canary.
|
31
|
-
"@knapsack/types": "4.66.5--canary.
|
32
|
-
"@knapsack/utils": "4.66.5--canary.
|
29
|
+
"@knapsack/color-utils": "4.66.5--canary.4358.1d7c3b7.0",
|
30
|
+
"@knapsack/file-utils": "4.66.5--canary.4358.1d7c3b7.0",
|
31
|
+
"@knapsack/types": "4.66.5--canary.4358.1d7c3b7.0",
|
32
|
+
"@knapsack/utils": "4.66.5--canary.4358.1d7c3b7.0",
|
33
33
|
"flat": "^5.0.2",
|
34
34
|
"immer": "^10.0.4",
|
35
35
|
"lodash": "^4.17.21",
|
36
36
|
"superstruct": "^0.16.7"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@knapsack/eslint-config-starter": "4.66.5--canary.
|
40
|
-
"@knapsack/test-ava": "4.66.5--canary.
|
41
|
-
"@knapsack/typescript-config-starter": "4.66.5--canary.
|
39
|
+
"@knapsack/eslint-config-starter": "4.66.5--canary.4358.1d7c3b7.0",
|
40
|
+
"@knapsack/test-ava": "4.66.5--canary.4358.1d7c3b7.0",
|
41
|
+
"@knapsack/typescript-config-starter": "4.66.5--canary.4358.1d7c3b7.0",
|
42
42
|
"@microsoft/api-extractor": "^7.43.8",
|
43
43
|
"@types/flat": "^5.0.5",
|
44
44
|
"@types/fs-extra": "^11.0.4",
|
@@ -63,5 +63,5 @@
|
|
63
63
|
"directory": "libs/design-token-utils",
|
64
64
|
"type": "git"
|
65
65
|
},
|
66
|
-
"gitHead": "
|
66
|
+
"gitHead": "1d7c3b74856ae62f1ea5d6177eb44ae20fa73837"
|
67
67
|
}
|