@knapsack/design-token-utils 4.70.0--canary.4628.1068e46.0 → 4.70.0--canary.4854.b1d79a8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +138 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/converters/ks-figma-vars-to-spec/ks-figma-vars-to-spec.js +1 -2
- package/dist/converters/ks-figma-vars-to-spec/ks-figma-vars-to-spec.js.map +1 -1
- package/dist/converters/spec-src-to-token-data/convert-src-to-token-data.d.ts.map +1 -1
- package/dist/converters/spec-src-to-token-data/convert-src-to-token-data.js +8 -4
- package/dist/converters/spec-src-to-token-data/convert-src-to-token-data.js.map +1 -1
- package/dist/formats/ks-figma-vars/ks-figma-vars.format.d.ts.map +1 -1
- package/dist/formats/ks-figma-vars/ks-figma-vars.format.js +97 -60
- package/dist/formats/ks-figma-vars/ks-figma-vars.format.js.map +1 -1
- package/package.json +12 -13
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,141 @@
|
|
1
|
+
# v4.69.11 (Fri Sep 20 2024)
|
2
|
+
|
3
|
+
#### 🐛 Bug Fix
|
4
|
+
|
5
|
+
- Merge branch 'latest' into patch-asset-set-symlink-fix ([@mabry1985](https://github.com/mabry1985))
|
6
|
+
|
7
|
+
#### 🏠 Internal
|
8
|
+
|
9
|
+
- KSP-5144: cypress tests for collections [#4541](https://github.com/knapsack-labs/app-monorepo/pull/4541) ([@illepic](https://github.com/illepic))
|
10
|
+
- Remove deprecated packages - @types/sass [#4816](https://github.com/knapsack-labs/app-monorepo/pull/4816) ([@greylabel](https://github.com/greylabel))
|
11
|
+
- adds select all option to exclude patterns filters [#4803](https://github.com/knapsack-labs/app-monorepo/pull/4803) ([@GormanDesign](https://github.com/GormanDesign))
|
12
|
+
|
13
|
+
#### Authors: 4
|
14
|
+
|
15
|
+
- Christopher Bloom ([@illepic](https://github.com/illepic))
|
16
|
+
- Grant Gaudet ([@greylabel](https://github.com/greylabel))
|
17
|
+
- Josh Mabry ([@mabry1985](https://github.com/mabry1985))
|
18
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
19
|
+
|
20
|
+
---
|
21
|
+
|
22
|
+
# v4.69.10 (Wed Sep 18 2024)
|
23
|
+
|
24
|
+
#### 🏠 Internal
|
25
|
+
|
26
|
+
- fix(deps): update dependency immer to ^10.1.1 [#4786](https://github.com/knapsack-labs/app-monorepo/pull/4786) ([@renovate[bot]](https://github.com/renovate[bot]))
|
27
|
+
|
28
|
+
#### Authors: 1
|
29
|
+
|
30
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
31
|
+
|
32
|
+
---
|
33
|
+
|
34
|
+
# v4.69.9 (Sat Sep 14 2024)
|
35
|
+
|
36
|
+
#### 🏠 Internal
|
37
|
+
|
38
|
+
- update template stage ui [#4763](https://github.com/knapsack-labs/app-monorepo/pull/4763) ([@GormanDesign](https://github.com/GormanDesign))
|
39
|
+
- add spacing under form feedback banner [#4747](https://github.com/knapsack-labs/app-monorepo/pull/4747) ([@GormanDesign](https://github.com/GormanDesign))
|
40
|
+
|
41
|
+
#### Authors: 1
|
42
|
+
|
43
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
44
|
+
|
45
|
+
---
|
46
|
+
|
47
|
+
# v4.69.8 (Thu Sep 12 2024)
|
48
|
+
|
49
|
+
#### 🐛 Bug Fix
|
50
|
+
|
51
|
+
- allow spaces in token group title ([@GormanDesign](https://github.com/GormanDesign))
|
52
|
+
|
53
|
+
#### 🏠 Internal
|
54
|
+
|
55
|
+
- allow spaces in token group title [#4759](https://github.com/knapsack-labs/app-monorepo/pull/4759) ([@GormanDesign](https://github.com/GormanDesign))
|
56
|
+
|
57
|
+
#### Authors: 1
|
58
|
+
|
59
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
60
|
+
|
61
|
+
---
|
62
|
+
|
63
|
+
# v4.69.7 (Wed Sep 11 2024)
|
64
|
+
|
65
|
+
#### 🐛 Bug Fix
|
66
|
+
|
67
|
+
- Merge branch 'latest' into feature/ksp-5497-setup-status-id-in-client ([@mabry1985](https://github.com/mabry1985))
|
68
|
+
|
69
|
+
#### 🏠 Internal
|
70
|
+
|
71
|
+
- fix(deps): update dependency sass to ^1.78.0 [#4683](https://github.com/knapsack-labs/app-monorepo/pull/4683) ([@renovate[bot]](https://github.com/renovate[bot]))
|
72
|
+
- fixes schema form select appearance [#4700](https://github.com/knapsack-labs/app-monorepo/pull/4700) ([@GormanDesign](https://github.com/GormanDesign))
|
73
|
+
- add scroll indicator to popover [#4697](https://github.com/knapsack-labs/app-monorepo/pull/4697) ([@GormanDesign](https://github.com/GormanDesign))
|
74
|
+
|
75
|
+
#### Authors: 3
|
76
|
+
|
77
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
78
|
+
- Josh Mabry ([@mabry1985](https://github.com/mabry1985))
|
79
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
80
|
+
|
81
|
+
---
|
82
|
+
|
83
|
+
# v4.69.6 (Fri Sep 06 2024)
|
84
|
+
|
85
|
+
#### 🐛 Bug Fix
|
86
|
+
|
87
|
+
- Merge branch 'latest' into feature/ksp-5458-anchor-links-not-jumping-to-the-right-spot ([@GormanDesign](https://github.com/GormanDesign))
|
88
|
+
|
89
|
+
#### 🏠 Internal
|
90
|
+
|
91
|
+
- Update dependency @types/node to ^20.16.5 [#4669](https://github.com/knapsack-labs/app-monorepo/pull/4669) ([@renovate[bot]](https://github.com/renovate[bot]))
|
92
|
+
- restores hash link handling [#4637](https://github.com/knapsack-labs/app-monorepo/pull/4637) ([@GormanDesign](https://github.com/GormanDesign))
|
93
|
+
|
94
|
+
#### Authors: 2
|
95
|
+
|
96
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
97
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
98
|
+
|
99
|
+
---
|
100
|
+
|
101
|
+
# v4.69.3 (Wed Sep 04 2024)
|
102
|
+
|
103
|
+
#### 🏠 Internal
|
104
|
+
|
105
|
+
- Update dependency @types/node to ^20.16.3 [#4643](https://github.com/knapsack-labs/app-monorepo/pull/4643) ([@renovate[bot]](https://github.com/renovate[bot]))
|
106
|
+
|
107
|
+
#### Authors: 1
|
108
|
+
|
109
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
110
|
+
|
111
|
+
---
|
112
|
+
|
113
|
+
# v4.69.2 (Fri Aug 30 2024)
|
114
|
+
|
115
|
+
#### 🐛 Bug Fix
|
116
|
+
|
117
|
+
- add error info [#4628](https://github.com/knapsack-labs/app-monorepo/pull/4628) ([@EvanLovely](https://github.com/EvanLovely) [@mabry1985](https://github.com/mabry1985))
|
118
|
+
- Merge branch 'latest' into EvanLovely-patch-24 ([@mabry1985](https://github.com/mabry1985))
|
119
|
+
|
120
|
+
#### Authors: 2
|
121
|
+
|
122
|
+
- Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
|
123
|
+
- Josh Mabry ([@mabry1985](https://github.com/mabry1985))
|
124
|
+
|
125
|
+
---
|
126
|
+
|
127
|
+
# v4.69.1 (Fri Aug 30 2024)
|
128
|
+
|
129
|
+
#### 🐛 Bug Fix
|
130
|
+
|
131
|
+
- Merge branch 'latest' into feature/ksp-5460-nested-menu-item-is-finicky ([@GormanDesign](https://github.com/GormanDesign))
|
132
|
+
|
133
|
+
#### Authors: 1
|
134
|
+
|
135
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
136
|
+
|
137
|
+
---
|
138
|
+
|
1
139
|
# v4.68.12 (Thu Aug 29 2024)
|
2
140
|
|
3
141
|
#### 🐛 Bug Fix
|
package/dist/constants.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAe/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAW,CAAC;AAChD,eAAO,MAAM,qBAAqB,
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAe/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAW,CAAC;AAChD,eAAO,MAAM,qBAAqB,QAAc,CAAC;AACjD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,QAAe,CAAC"}
|
package/dist/constants.js
CHANGED
@@ -22,7 +22,7 @@ export const tokenReferenceRegex = new RegExp(
|
|
22
22
|
* Invalid token strings, ie "brand-color-blue". Cannot include ".", "/", or "\"
|
23
23
|
*/
|
24
24
|
export const invalidTokenStringRegex = /[.\\]/g;
|
25
|
-
export const invalidGroupNameRegex = /["
|
25
|
+
export const invalidGroupNameRegex = /["+".\\]/g;
|
26
26
|
/**
|
27
27
|
* Invalid token names, ie each key in { brand: { color: { value: blue } } }.
|
28
28
|
* Cannot include ".", "-", "\", "{", "}"
|
package/dist/constants.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,MAAM;AAC3C,kBAAkB;AAClB,GAAG;IACD,wBAAwB;IACxB,GAAG;IACH,gCAAgC;IAChC,MAAM;IACN,yDAAyD;IACzD,GAAG;IACH,uBAAuB;IACvB,GAAG;IACH,sBAAsB;IACtB,SAAS;AACX,yDAAyD;AACzD,GAAG,CACJ,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC;AAChD,MAAM,CAAC,MAAM,qBAAqB,GAAG,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,MAAM;AAC3C,kBAAkB;AAClB,GAAG;IACD,wBAAwB;IACxB,GAAG;IACH,gCAAgC;IAChC,MAAM;IACN,yDAAyD;IACzD,GAAG;IACH,uBAAuB;IACvB,GAAG;IACH,sBAAsB;IACtB,SAAS;AACX,yDAAyD;AACzD,GAAG,CACJ,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC;AAChD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC;AACjD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAAC"}
|
@@ -113,7 +113,6 @@ export function convertKsFigmaVarsToSpec({ ksFigmaVars, currentTokensSrc, }) {
|
|
113
113
|
const varId = name.replace(/\//g, '.');
|
114
114
|
// Note, this does not indicate values for modes
|
115
115
|
const fullVarPath = `${tsu.collectionsParentKey}.${collectionName}.${varId}`;
|
116
|
-
console.log('DEBUG varId:', fullVarPath);
|
117
116
|
// 2024/07/18: tokensById does not appear to contain Tokens that are refs
|
118
117
|
// const varExists = Object.keys(tokensById).some((key) =>
|
119
118
|
// key.startsWith(fullVarPath),
|
@@ -172,7 +171,7 @@ export function convertKsFigmaVarsToSpec({ ksFigmaVars, currentTokensSrc, }) {
|
|
172
171
|
return {
|
173
172
|
src: tsu.src,
|
174
173
|
data: tsu.data,
|
175
|
-
warnings,
|
174
|
+
warnings, // @TODO: We are not actually setting any warnings yet
|
176
175
|
};
|
177
176
|
}
|
178
177
|
//# sourceMappingURL=ks-figma-vars-to-spec.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ks-figma-vars-to-spec.js","sourceRoot":"","sources":["../../../src/converters/ks-figma-vars-to-spec/ks-figma-vars-to-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC,OAAO,EAKL,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EAAE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K,EAAE,GAAG,CAAC,CAAC;YAEvC,gDAAgD;YAChD,MAAM,WAAW,GAAG,GAAG,GAAG,CAAC,oBAAoB,IAAI,cAAc,IAAI,KAAK,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"ks-figma-vars-to-spec.js","sourceRoot":"","sources":["../../../src/converters/ks-figma-vars-to-spec/ks-figma-vars-to-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC,OAAO,EAKL,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAE/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEpD,SAAS,eAAe,CAAC,IAAyB;IAChD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YACV,OAAO,OAAO,CAAC;QACjB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,OAAO;YACV,OAAO,WAAW,CAAC;QACrB,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC;QAClB,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,gBAAgB,GAAU,IAAI,CAAC;YACrC,OAAO,gBAAgB,CAAC;QAC1B,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,EAC/B,KAAK,EACL,OAAO,GAIR;IACC,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,SAAS,CAAC,CAAC,CAAC;YACf,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;gBAC/B,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;YACtC,CAAC;YACD,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,KAAK;aACN,CAAC;QACJ,CAAC;QACD,KAAK,QAAQ,CAAC,CAAC,CAAC;YACd,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC9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-token-data/convert-src-to-token-data.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,SAAS,EACT,cAAc,EAKd,iBAAiB,EAOjB,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAWzB;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtC,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB;;OAEG;IACH,YAAY,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAC1C,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CACtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,OAAQ,MAAM,WAAyC,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,QAAQ,OAAQ,MAAM,WAAyB,CAAC;AAE7D;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,eAAO,MAAM,aAAa,yBAA0B,cAAc,YASjE,CAAC;AAEF;;;GAGG;AACH,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AACF,eAAO,MAAM,cAAc,wBAAyB,aAAa,aAShE,CAAC;AAwBF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,MAAO,MAAM,KAAK,MAAM,WAiBtD,CAAC;AAiDF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,
|
1
|
+
{"version":3,"file":"convert-src-to-token-data.d.ts","sourceRoot":"","sources":["../../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TokenGroupToData = flow(function flattenObj(obj) {
|
|
435
435
|
throw new Error(`Token "${group.id}" is a Token Var but ID "${varId}" is taken by a regular Token. This is not allowed.`);
|
436
436
|
}
|
437
437
|
const modesById = modes.reduce((acc, mode, i) => {
|
438
|
-
var _a;
|
438
|
+
var _a, _b;
|
439
439
|
const token = tokensById[`${group.id}.${mode.id}`];
|
440
440
|
// var-refs look like a group, but are a reference to a var in
|
441
441
|
// another group
|
442
442
|
const maybeVarRef = groupsById[`${group.id}.${mode.id}`];
|
443
|
-
|
444
|
-
|
443
|
+
// True var-refs have a collectionInfo key. Some regular Vars
|
444
|
+
// make it into the groupsById object, and this is how we filter
|
445
|
+
// them out.
|
446
|
+
if ((_a = maybeVarRef === null || maybeVarRef === void 0 ? void 0 : maybeVarRef.groupConfig) === null || _a === void 0 ? void 0 : _a.collectionInfo) {
|
447
|
+
const collectionInfo = (_b = maybeVarRef.groupConfig) === null || _b === void 0 ? void 0 : _b.collectionInfo;
|
445
448
|
const refId = (collectionInfo === null || collectionInfo === void 0 ? void 0 : collectionInfo.type) === 'var-ref'
|
446
449
|
? collectionInfo.referencedId
|
447
450
|
: '';
|
448
|
-
if (!refId)
|
451
|
+
if (!refId) {
|
449
452
|
throw new Error(`${maybeVarRef} is a var-ref but has no referencedId. Make sure it references something!`);
|
453
|
+
}
|
450
454
|
acc[mode.id] = {
|
451
455
|
modeId: mode.id,
|
452
456
|
type: 'set',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"convert-src-to-token-data.js","sourceRoot":"","sources":["../../../src/converters/spec-src-to-token-data/convert-src-to-token-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EACV,YAAY,EACZ,oBAAoB,EAEpB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,GAGrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,oBAAoB,EAAE,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,EAAE;QAC7C,MAAM,KAAK,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;QAC7B,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;QACvD,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;QACxD,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QACpC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnB,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACtC,CAAC,CAAC;IAEF,6DAA6D;IAC7D,MAAA,MAAA,YAAY,CAAC,KAAK,0CAAE,QAAQ,0CAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACzD,iEAAiE;IACjE,sBAAsB;IACtB,MAAA,MAAA,YAAY,CAAC,KAAK,0CAAE,QAAQ,0CAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACzD,OAAO;QACL,UAAU;QACV,MAAM;QACN,UAAU;QACV,MAAM;QACN,YAAY;QACZ,WAAW;QACX,eAAe;KAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"convert-src-to-token-data.js","sourceRoot":"","sources":["../../../src/converters/spec-src-to-token-data/convert-src-to-token-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EACV,YAAY,EACZ,oBAAoB,EAEpB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,GAGrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EACL,gB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E;QAC7C,MAAM,KAAK,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;QAC7B,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;QACvD,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;QACxD,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QACpC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnB,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACtC,CAAC,CAAC;IAEF,6DAA6D;IAC7D,MAAA,MAAA,YAAY,CAAC,KAAK,0CAAE,QAAQ,0CAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACzD,iEAAiE;IACjE,sBAAsB;IACtB,MAAA,MAAA,YAAY,CAAC,KAAK,0CAAE,QAAQ,0CAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACzD,OAAO;QACL,UAAU;QACV,MAAM;QACN,UAAU;QACV,MAAM;QACN,YAAY;QACZ,WAAW;QACX,eAAe;KAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ks-figma-vars.format.d.ts","sourceRoot":"","sources":["../../../src/formats/ks-figma-vars/ks-figma-vars.format.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ks-figma-vars.format.d.ts","sourceRoot":"","sources":["../../../src/formats/ks-figma-vars/ks-figma-vars.format.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,YAAY;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,YAAY;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,YAAY;IACZ,CAAC,CAA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AiB,CAAC,CAAC;IACnD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,iBAAiB,CAyI7D,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { isObject } from '@knapsack/types';
|
2
|
+
import { isArray } from '@knapsack/utils';
|
2
3
|
import { formatValidationResults } from '../format-utils.js';
|
3
4
|
export function isKsFigmaVarValueAlias(value) {
|
4
5
|
return isObject(value) && 'type' in value && value.type === 'VARIABLE_ALIAS';
|
@@ -7,86 +8,122 @@ export function isKsFigmaVarValueRgb(value) {
|
|
7
8
|
return isObject(value) && 'r' in value && 'g' in value && 'b' in value;
|
8
9
|
}
|
9
10
|
export const validateFigmaVarsSrc = (src) => {
|
10
|
-
|
11
|
+
const validateResults = {
|
11
12
|
errorMsg: '',
|
12
13
|
errors: [],
|
13
14
|
data: undefined,
|
14
15
|
};
|
16
|
+
// Reduce repeating
|
17
|
+
const validateReturn = () => ({
|
18
|
+
errorMsg: formatValidationResults(validateResults.errors),
|
19
|
+
errors: validateResults.errors,
|
20
|
+
data: validateResults.errors.length
|
21
|
+
? undefined
|
22
|
+
: src,
|
23
|
+
});
|
15
24
|
if (!isObject(src)) {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
{
|
22
|
-
id: ',',
|
23
|
-
msgs: [msg],
|
24
|
-
},
|
25
|
-
],
|
26
|
-
};
|
25
|
+
validateResults.errors.push({
|
26
|
+
id: 'mustBeObject',
|
27
|
+
msgs: [`Source must be an object, received: "${JSON.stringify(src)}"`],
|
28
|
+
});
|
29
|
+
return validateReturn();
|
27
30
|
}
|
28
|
-
if (
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
{
|
35
|
-
id: 'collectionsById',
|
36
|
-
msgs: [msg],
|
37
|
-
},
|
38
|
-
],
|
39
|
-
};
|
31
|
+
if (!('collectionsById' in src) || !isObject(src.collectionsById)) {
|
32
|
+
validateResults.errors.push({
|
33
|
+
id: 'collectionsById',
|
34
|
+
msgs: [`Must have a "collectionsById" key`],
|
35
|
+
});
|
36
|
+
return validateReturn();
|
40
37
|
}
|
41
|
-
if (
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
{
|
48
|
-
id: 'variablesById',
|
49
|
-
msgs: [msg],
|
50
|
-
},
|
51
|
-
],
|
52
|
-
};
|
38
|
+
if (!('variablesById' in src) || !isObject(src.variablesById)) {
|
39
|
+
validateResults.errors.push({
|
40
|
+
id: 'variablesById',
|
41
|
+
msgs: [`Must have a "variablesById" key`],
|
42
|
+
});
|
43
|
+
return validateReturn();
|
53
44
|
}
|
45
|
+
const { variablesById, collectionsById } = src;
|
46
|
+
const setVariablesById = new Set(Object.keys(variablesById));
|
47
|
+
const setCollectionsById = new Set(Object.keys(collectionsById));
|
54
48
|
// Verify all vars that are referenced actually exist
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
49
|
+
if (setVariablesById) {
|
50
|
+
setVariablesById.forEach((varId) => {
|
51
|
+
const varData = variablesById[varId];
|
52
|
+
if (!isObject(varData) || !('valuesByMode' in varData)) {
|
53
|
+
validateResults.errors.push({
|
54
|
+
id: 'badVar',
|
55
|
+
msgs: [`Malformed Variable: ${varId}`],
|
56
|
+
});
|
61
57
|
return;
|
62
|
-
|
63
|
-
|
58
|
+
}
|
59
|
+
const { valuesByMode, collectionId } = varData;
|
60
|
+
if (!isObject(valuesByMode)) {
|
61
|
+
validateResults.errors.push({
|
62
|
+
id: `${varData.name}-noModeValues`,
|
63
|
+
msgs: [
|
64
|
+
`${varData.name} is a Variable, but has not values for any modes.`,
|
65
|
+
],
|
66
|
+
});
|
64
67
|
return;
|
65
|
-
|
68
|
+
}
|
69
|
+
// Check refs
|
66
70
|
Object.entries(valuesByMode).forEach(([modeId, modeVal]) => {
|
67
71
|
if (isKsFigmaVarValueAlias(modeVal)) {
|
68
72
|
const found = variablesById[modeVal.id];
|
69
73
|
if (!found) {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
+
validateResults.errors.push({
|
75
|
+
id: `${varData.name}.${modeId}-badRef`,
|
76
|
+
msgs: [
|
77
|
+
`Var "${varData.name}" has a reference, "${modeVal.id}", for mode "${modeId}" that cannot be found`,
|
78
|
+
],
|
74
79
|
});
|
75
80
|
}
|
76
81
|
}
|
77
82
|
});
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
// Check that collection exists
|
84
|
+
if (typeof collectionId === 'string' &&
|
85
|
+
!setCollectionsById.has(collectionId)) {
|
86
|
+
validateResults.errors.push({
|
87
|
+
id: 'varRefsCollectionsNoExist',
|
88
|
+
msgs: [
|
89
|
+
`Variable ${varData.name} references Collection ID ${collectionId} that does not exist.`,
|
90
|
+
],
|
91
|
+
});
|
92
|
+
}
|
82
93
|
});
|
83
94
|
}
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
95
|
+
// Now that varIds are in the Set, run through Collections to make sure every var exists
|
96
|
+
if (setCollectionsById) {
|
97
|
+
setCollectionsById.forEach((colId) => {
|
98
|
+
const colData = collectionsById[colId];
|
99
|
+
if (!isObject(colData) || !('variableIds' in colData)) {
|
100
|
+
validateResults.errors.push({
|
101
|
+
id: 'badCol',
|
102
|
+
msgs: [`Malformed collection: ${colId}`],
|
103
|
+
});
|
104
|
+
return;
|
105
|
+
}
|
106
|
+
const { variableIds } = colData;
|
107
|
+
if (!isArray(variableIds)) {
|
108
|
+
validateResults.errors.push({
|
109
|
+
id: 'colMissingVariableIds',
|
110
|
+
msgs: [`Collection ${colId} has no Variables`],
|
111
|
+
});
|
112
|
+
return;
|
113
|
+
}
|
114
|
+
// Verify that every Var referenced in Collection actually exists
|
115
|
+
variableIds.forEach((variableId) => {
|
116
|
+
if (!setVariablesById.has(variableId)) {
|
117
|
+
validateResults.errors.push({
|
118
|
+
id: 'colHasMissingVar',
|
119
|
+
msgs: [
|
120
|
+
`Collection ${colId} references a Variable ${variableId} that does not exist.`,
|
121
|
+
],
|
122
|
+
});
|
123
|
+
}
|
124
|
+
});
|
125
|
+
});
|
126
|
+
}
|
127
|
+
return validateReturn();
|
91
128
|
};
|
92
129
|
//# sourceMappingURL=ks-figma-vars.format.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ks-figma-vars.format.js","sourceRoot":"","sources":["../../../src/formats/ks-figma-vars/ks-figma-vars.format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"ks-figma-vars.format.js","sourceRoot":"","sources":["../../../src/formats/ks-figma-vars/ks-figma-vars.format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAyB7D,MAAM,UAAU,sBAAsB,CACpC,KAAc;IAEd,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,KAAsB;IAEtB,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,KAAK,CAAC;AACzE,CAAC;AAgCD,MAAM,CAAC,MAAM,oBAAoB,GAAiC,CAAC,GAAG,EAAE,EAAE;IACxE,MAAM,eAAe,GAA6C;QAChE,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;KAChB,CAAC;IAEF,mBAAmB;IACnB,MAAM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gBACjC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;oBACtC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC;wBAC1B,EAAE,EAAE,kBAAkB;wBACtB,IAAI,EAAE;4BACJ,cAAc,KAAK,0BAA0B,UAAU,uBAAuB;yBAC/E;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,cAAc,EAAE,CAAC;AAC1B,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/design-token-utils",
|
3
3
|
"description": "",
|
4
|
-
"version": "4.70.0--canary.
|
4
|
+
"version": "4.70.0--canary.4854.b1d79a8.0",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
7
7
|
".": {
|
@@ -26,29 +26,28 @@
|
|
26
26
|
"test": "time npm run ava"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@knapsack/color-utils": "4.70.0--canary.
|
30
|
-
"@knapsack/file-utils": "4.70.0--canary.
|
31
|
-
"@knapsack/types": "4.70.0--canary.
|
32
|
-
"@knapsack/utils": "4.70.0--canary.
|
29
|
+
"@knapsack/color-utils": "4.70.0--canary.4854.b1d79a8.0",
|
30
|
+
"@knapsack/file-utils": "4.70.0--canary.4854.b1d79a8.0",
|
31
|
+
"@knapsack/types": "4.70.0--canary.4854.b1d79a8.0",
|
32
|
+
"@knapsack/utils": "4.70.0--canary.4854.b1d79a8.0",
|
33
33
|
"flat": "^5.0.2",
|
34
|
-
"immer": "^10.
|
34
|
+
"immer": "^10.1.1",
|
35
35
|
"lodash": "^4.17.21",
|
36
36
|
"superstruct": "^0.16.7"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@knapsack/eslint-config-starter": "4.70.0--canary.
|
40
|
-
"@knapsack/test-ava": "4.70.0--canary.
|
41
|
-
"@knapsack/typescript-config-starter": "4.70.0--canary.
|
39
|
+
"@knapsack/eslint-config-starter": "4.70.0--canary.4854.b1d79a8.0",
|
40
|
+
"@knapsack/test-ava": "4.70.0--canary.4854.b1d79a8.0",
|
41
|
+
"@knapsack/typescript-config-starter": "4.70.0--canary.4854.b1d79a8.0",
|
42
42
|
"@types/flat": "^5.0.5",
|
43
43
|
"@types/fs-extra": "^11.0.4",
|
44
44
|
"@types/lodash": "^4.17.5",
|
45
|
-
"@types/node": "^20.16.
|
45
|
+
"@types/node": "^20.16.5",
|
46
46
|
"@types/prettier": "^2.7.3",
|
47
|
-
"@types/sass": "^1.45.0",
|
48
47
|
"ava": "^6.1.3",
|
49
48
|
"eslint": "^8.57.0",
|
50
49
|
"fs-extra": "^11.2.0",
|
51
|
-
"sass": "^1.
|
50
|
+
"sass": "^1.78.0",
|
52
51
|
"ts-expect": "^1.3.0",
|
53
52
|
"typescript": "^5.5.4"
|
54
53
|
},
|
@@ -62,5 +61,5 @@
|
|
62
61
|
"directory": "libs/design-token-utils",
|
63
62
|
"type": "git"
|
64
63
|
},
|
65
|
-
"gitHead": "
|
64
|
+
"gitHead": "b1d79a8caffe3537b921ff76bae2f2e8bcabbc43"
|
66
65
|
}
|