@knapsack/design-token-utils 4.70.0--canary.4854.b1d79a8.0 → 4.70.0--canary.4561.78aed7a.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,58 @@
1
+ # v4.69.14 (Fri Sep 27 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - KSP-5373: speed up Figma Var import [#4513](https://github.com/knapsack-labs/app-monorepo/pull/4513) ([@illepic](https://github.com/illepic))
6
+
7
+ #### 🏠 Internal
8
+
9
+ - spec docs uses collapse instead of accordion [#4862](https://github.com/knapsack-labs/app-monorepo/pull/4862) ([@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
+
18
+ # v4.69.13 (Thu Sep 26 2024)
19
+
20
+ #### 🐛 Bug Fix
21
+
22
+ - update design src user flow to be async [#4739](https://github.com/knapsack-labs/app-monorepo/pull/4739) ([@mabry1985](https://github.com/mabry1985))
23
+ - Merge branch 'latest' into feature/ksp-5512-create-add-design-src-file-async-mutation ([@mabry1985](https://github.com/mabry1985))
24
+
25
+ #### 🏠 Internal
26
+
27
+ - extract rendering utils out [#4789](https://github.com/knapsack-labs/app-monorepo/pull/4789) ([@EvanLovely](https://github.com/EvanLovely))
28
+ - refactors user flow for updating design src files [#4769](https://github.com/knapsack-labs/app-monorepo/pull/4769) ([@mabry1985](https://github.com/mabry1985))
29
+
30
+ #### Authors: 2
31
+
32
+ - Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
33
+ - Josh Mabry ([@mabry1985](https://github.com/mabry1985))
34
+
35
+ ---
36
+
37
+ # v4.69.12 (Thu Sep 26 2024)
38
+
39
+ #### 🐛 Bug Fix
40
+
41
+ - Merge branch 'latest' into feature/ksp-5560-replace-schema-forms-in-content-blocks ([@GormanDesign](https://github.com/GormanDesign))
42
+
43
+ #### 🏠 Internal
44
+
45
+ - chore(deps): update dependency @types/node to ^20.16.6 [#4846](https://github.com/knapsack-labs/app-monorepo/pull/4846) ([@renovate[bot]](https://github.com/renovate[bot]))
46
+ - KSP-5425: surface figma vars conversion errors to UI [#4837](https://github.com/knapsack-labs/app-monorepo/pull/4837) ([@illepic](https://github.com/illepic))
47
+
48
+ #### Authors: 3
49
+
50
+ - [@renovate[bot]](https://github.com/renovate[bot])
51
+ - Christopher Bloom ([@illepic](https://github.com/illepic))
52
+ - Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
53
+
54
+ ---
55
+
1
56
  # v4.69.11 (Fri Sep 20 2024)
2
57
 
3
58
  #### 🐛 Bug Fix
@@ -1,5 +1,6 @@
1
1
  import { TokenData } from '@knapsack/types';
2
- export declare const cssVarName: (name: string) => string;
2
+ import { cssVarName } from '@knapsack/utils';
3
+ export { cssVarName };
3
4
  /**
4
5
  * How to resolve the actual value of a token.
5
6
  * @param token - Processed TokenData object
@@ -1 +1 @@
1
- {"version":3,"file":"web-asset-converters.d.ts","sourceRoot":"","sources":["../../../../src/converters/asset-converters/web/web-asset-converters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA2B5C,eAAO,MAAM,UAAU,SAAU,MAAM,WAA8B,CAAC;AAYtE;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,GAC9B,MAAM,GAAG,MAAM,GAAG,OAAO,CAqB3B;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,eACpB,SAAS,EAAE,aACZ,OAAO,KACjB,MAYF,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAQhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,eAAgB,SAAS,EAAE,KAAG,MA+BnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAahE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAShE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,eAAgB,SAAS,EAAE,WAQnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,eACnB,SAAS,EAAE,KACtB;IACD,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;CAuBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,eAAgB,SAAS,EAAE,KAAG,MAQ/D,CAAC"}
1
+ {"version":3,"file":"web-asset-converters.d.ts","sourceRoot":"","sources":["../../../../src/converters/asset-converters/web/web-asset-converters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAa,UAAU,EAAgB,MAAM,iBAAiB,CAAC;AAUtE,OAAO,EAAE,UAAU,EAAE,CAAC;AAqBtB;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,GAC9B,MAAM,GAAG,MAAM,GAAG,OAAO,CAqB3B;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,eACpB,SAAS,EAAE,aACZ,OAAO,KACjB,MAYF,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAQhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,eAAgB,SAAS,EAAE,KAAG,MA+BnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAahE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAShE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,eAAgB,SAAS,EAAE,WAQnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,eACnB,SAAS,EAAE,KACtB;IACD,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;CAuBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,eAAgB,SAAS,EAAE,KAAG,MAQ/D,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import loSet from 'lodash/setWith.js';
2
- import { camelCase, kebabCase } from '@knapsack/utils';
2
+ import { camelCase, cssVarName, cssKebabCase } from '@knapsack/utils';
3
3
  import { formatBorderTokenValue, formatCubicBezierValue, formatShadowTokenValue, formatTransitionValue, sortTokenData, } from './web-asset-converter-utils.js';
4
+ export { cssVarName };
4
5
  /**
5
6
  * Replace anything between { and } characters, returns val W/O the brackets.
6
7
  * Ensure all processing uses the same logic to access { } values in strings.
@@ -9,14 +10,6 @@ import { formatBorderTokenValue, formatCubicBezierValue, formatShadowTokenValue,
9
10
  * val.replace(refRegex, (match, group) => scssVarName(group)
10
11
  */
11
12
  const refRegex = /{([^}]*)}/g;
12
- /**
13
- * Lower and split on dots, that's it. Do NOT split standalone strings on
14
- * numbers, caps, etc. Note that we split/join specifically to process each
15
- * segment of a token name, ie if `color.primary`, we process 'color' and 'primary'
16
- * individually
17
- */
18
- const cssKebabCase = (str) => str.split('.').map(kebabCase).join('-');
19
- export const cssVarName = (name) => `--${cssKebabCase(name)}`;
20
13
  /**
21
14
  * Ensure quotes are handled correctly in JS/JSON
22
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"web-asset-converters.js","sourceRoot":"","sources":["../../../../src/converters/asset-converters/web/web-asset-converters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,SAAS,EA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AC;IAEH,MAAM,UAAU,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC5C,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC9B,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;QAEnC,OAAO,wBAAwB,IAAI,MAAM,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC;IAChE,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;QACjC,SAAS,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;KACjC,CAAC;AACJ,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,UAAuB,EAAU,EAAE;IACvE,MAAM,YAAY,GAAa,aAAa,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACrE,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACjC,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO,GAAG,IAAI,KAAK,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,oBAAoB,EAAE,GAAG,YAAY,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAClE,CAAC,CAAC"}
1
+ {"version":3,"file":"web-asset-converters.js","sourceRoot":"","sources":["../../../../src/converters/asset-converters/web/web-asset-converters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,aAAa,GACd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AC;QACjC,SAAS,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;KACjC,CAAC;AACJ,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,UAAuB,EAAU,EAAE;IACvE,MAAM,YAAY,GAAa,aAAa,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACrE,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACjC,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO,GAAG,IAAI,KAAK,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,oBAAoB,EAAE,GAAG,YAAY,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAClE,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ks-figma-vars-to-spec.d.ts","sourceRoot":"","sources":["../../../src/converters/ks-figma-vars-to-spec/ks-figma-vars-to-spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAgC,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EACL,iBAAiB,EAMlB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AA2E1F;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,WAAW,EAAE,iBAAiB,CAAC;IAC/B,gBAAgB,EAAE,aAAa,CAAC;CACjC,GAAG;IACF,QAAQ,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IACzC,GAAG,EAAE,aAAa,CAAC;IACnB,IAAI,EAAE,gBAAgB,CAAC;CACxB,CA6HA"}
1
+ {"version":3,"file":"ks-figma-vars-to-spec.d.ts","sourceRoot":"","sources":["../../../src/converters/ks-figma-vars-to-spec/ks-figma-vars-to-spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAgC,MAAM,iBAAiB,CAAC;AAE9E,OAAO,EACL,iBAAiB,EAMlB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAKzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AA4E1F;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,WAAW,EAAE,iBAAiB,CAAC;IAC/B,gBAAgB,EAAE,aAAa,CAAC;CACjC,GAAG;IACF,QAAQ,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IACzC,GAAG,EAAE,aAAa,CAAC;IACnB,IAAI,EAAE,gBAAgB,CAAC;CACxB,CAmJA"}
@@ -1,6 +1,7 @@
1
1
  import loGet from 'lodash/get.js';
2
+ import { timer } from '@knapsack/utils';
2
3
  import { isKsFigmaVarValueRgb, isKsFigmaVarValueAlias, } from '../../formats/ks-figma-vars/ks-figma-vars.format.js';
3
- import { TokenSrcUpdater } from '../../token-src-updater/token-src-updater.js';
4
+ import { TokenSrcUpdater, } from '../../token-src-updater/token-src-updater.js';
4
5
  import { convertFigmaColorToHex } from './utils.js';
5
6
  function mapFigmaVarType(type) {
6
7
  switch (type) {
@@ -9,6 +10,7 @@ function mapFigmaVarType(type) {
9
10
  case 'BOOLEAN':
10
11
  return 'boolean';
11
12
  case 'FLOAT':
13
+ // Figma treats numbers as dimensions, so we do too
12
14
  return 'dimension';
13
15
  case 'STRING':
14
16
  return 'string';
@@ -70,6 +72,7 @@ function createTokenSrcValueInfo({ value, varType, }) {
70
72
  * ATTENTION: this is a WIP; assume nothing, question everything
71
73
  */
72
74
  export function convertKsFigmaVarsToSpec({ ksFigmaVars, currentTokensSrc, }) {
75
+ const doTimer = timer();
73
76
  const warnings = [];
74
77
  // Tokens already in src
75
78
  const tsu = new TokenSrcUpdater({ src: currentTokensSrc });
@@ -78,14 +81,16 @@ export function convertKsFigmaVarsToSpec({ ksFigmaVars, currentTokensSrc, }) {
78
81
  tsu.setCollectionsParentKey({ collectionsParentKey: 'collections' });
79
82
  }
80
83
  const modesById = {};
84
+ const modeValArray = [];
81
85
  // Start by creating empty collections and modes by looping over INCOMING collections
82
- Object.values(ksFigmaVars.collectionsById).forEach(({ id, name, modes, variableIds }) => {
83
- if (collectionsById[name]) {
84
- console.log('Collection already exists, no need to create:', name);
86
+ Object.values(ksFigmaVars.collectionsById).forEach(({ id, name: collectionName, modes, variableIds }) => {
87
+ if (collectionsById[collectionName]) {
88
+ console.log(`Collection ${collectionName} already exists, skipping creation.`);
85
89
  }
86
90
  else {
91
+ console.log('Creation collection:', collectionName);
87
92
  tsu.collection.create({
88
- collectionId: name,
93
+ collectionId: collectionName,
89
94
  // Important that we do NOT create the default `mode 1` starter mode here
90
95
  excludeInitialMode: true,
91
96
  });
@@ -94,53 +99,53 @@ export function convertKsFigmaVarsToSpec({ ksFigmaVars, currentTokensSrc, }) {
94
99
  modes.forEach((incomingMode) => {
95
100
  var _a;
96
101
  // Check if mode already exists
97
- if ((_a = collectionsById[name]) === null || _a === void 0 ? void 0 : _a.modes.find((existingMode) => existingMode.id === incomingMode.name)) {
98
- console.log('Mode already exists, no need to create:', incomingMode.name);
102
+ if ((_a = collectionsById[collectionName]) === null || _a === void 0 ? void 0 : _a.modes.find((existingMode) => existingMode.id === incomingMode.name)) {
103
+ console.log(`Mode "${incomingMode.name}" already exists on collection ${collectionName}, skipping creation.`);
99
104
  // Don't create mode if it already exists
100
105
  return;
101
106
  }
107
+ console.log(`Creatiing mode on collection "${collectionName}":`, incomingMode.name);
102
108
  // Otherwise create mode
103
109
  modesById[incomingMode.modeId] = incomingMode.name;
104
- tsu.mode.create({ modeId: incomingMode.name, collectionId: name });
110
+ tsu.mode.create({
111
+ modeId: incomingMode.name,
112
+ collectionId: collectionName,
113
+ });
105
114
  });
106
- });
107
- Object.values(ksFigmaVars.collectionsById).forEach(({ variableIds }) => {
108
- variableIds
109
- .map((vId) => ksFigmaVars.variablesById[vId])
110
- .forEach(({ collectionId, name, type: varType, valuesByMode }) => {
111
- const { name: collectionName } = ksFigmaVars.collectionsById[collectionId];
115
+ // For each var within the collection
116
+ variableIds.forEach((variable) => {
117
+ const { name, type: varType, valuesByMode, } = ksFigmaVars.variablesById[variable];
112
118
  // Figma treats '/' as a group separator
113
119
  const varId = name.replace(/\//g, '.');
114
120
  // Note, this does not indicate values for modes
115
121
  const fullVarPath = `${tsu.collectionsParentKey}.${collectionName}.${varId}`;
116
- // 2024/07/18: tokensById does not appear to contain Tokens that are refs
117
- // const varExists = Object.keys(tokensById).some((key) =>
118
- // key.startsWith(fullVarPath),
119
- // );
120
- // Instead, fall back to loGet against src
122
+ // Avoid creating var if it already exists
123
+ // 2024/07/18: tokensById does not appear to contain Tokens that are
124
+ // refs. Instead, fall back to loGet against src.
121
125
  const varExists = loGet(currentTokensSrc, fullVarPath);
122
126
  if (varExists) {
123
- console.log('Var already exists, no need to create:', fullVarPath);
127
+ console.log(`Var "${fullVarPath}" already exists, skipping creation.`);
124
128
  }
125
129
  else {
126
- // Avoid creating var if it already exists
130
+ console.log('Creating varId:', fullVarPath);
127
131
  tsu.var.create({
128
132
  collectionId: collectionName,
129
133
  varId,
130
134
  varType: mapFigmaVarType(varType),
131
135
  });
132
136
  }
133
- Object.entries(valuesByMode).forEach(([modeId, value]) => {
137
+ // Vast majority of processing time is here vv
138
+ Object.entries(valuesByMode).forEach(([modeId, modeVal]) => {
134
139
  // VAR ALIAS
135
- if (isKsFigmaVarValueAlias(value)) {
136
- const figmaVar = ksFigmaVars.variablesById[value.id];
140
+ if (isKsFigmaVarValueAlias(modeVal)) {
141
+ const figmaVar = ksFigmaVars.variablesById[modeVal.id];
137
142
  if (!figmaVar) {
138
- throw new Error(`Var ${name} has a reference, "${value.id}", that cannot be found`);
143
+ throw new Error(`Var ${name} has a reference, "${modeVal.id}", that cannot be found`);
139
144
  }
140
145
  // Using the target Figma Var, get the Collection ID it belongs to,
141
146
  // and use to look up that Collection's name
142
147
  const targetCollectionName = ksFigmaVars.collectionsById[figmaVar.collectionId].name;
143
- tsu.var.setModeValue({
148
+ modeValArray.push({
144
149
  collectionId: collectionName,
145
150
  varId,
146
151
  modeId: modesById[modeId],
@@ -159,15 +164,21 @@ export function convertKsFigmaVarsToSpec({ ksFigmaVars, currentTokensSrc, }) {
159
164
  return;
160
165
  }
161
166
  // ALL OTHER VAR TYPES
162
- tsu.var.setModeValue({
167
+ modeValArray.push({
163
168
  collectionId: collectionName,
164
169
  varId,
165
170
  modeId: modesById[modeId],
166
- tokenSrcValueInfo: createTokenSrcValueInfo({ value, varType }),
171
+ tokenSrcValueInfo: createTokenSrcValueInfo({
172
+ value: modeVal,
173
+ varType,
174
+ }),
167
175
  });
168
176
  });
169
177
  });
170
178
  });
179
+ // Now that we've built up an array of value objects, actually set them
180
+ tsu.var.setModeValue(modeValArray);
181
+ console.log(`Finished processing Figma Vars import in ${doTimer()}ms.`);
171
182
  return {
172
183
  src: tsu.src,
173
184
  data: tsu.data,
@@ -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,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,OAA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CAAC,KAAK,EAAE,GAAG,CAAC;6BAClC,CAAC,IAAI,CAAC,GAAG,CAAC;yBACZ;qBACF,CAAC,CAAC;oBACH,OAAO;gBACT,CAAC;gBACD,sBAAsB;gBACtB,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC;oBACnB,YAAY,EAAE,cAAc;oBAC5B,KAAK;oBACL,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC;oBACzB,iBAAiB,EAAE,uBAAuB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;iBAC/D,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,QAAQ,EAAE,sDAAsD;KACjE,CAAC;AACJ,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,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAKL,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EACL,eAAe,GAEhB,MAAM,8CAA8C,CAAC;AAEtD,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,mDAAmD;YACnD,OAAO,WAAW,CAAC;QACrB,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC;QAClB,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,gBAAgB,GAAU,IAAI,CA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AsB;gBACtB,YAAY,CAAC,IAAI,CAAC;oBAChB,YAAY,EAAE,cAAc;oBAC5B,KAAK;oBACL,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC;oBACzB,iBAAiB,EAAE,uBAAuB,CAAC;wBACzC,KAAK,EAAE,OAAO;wBACd,OAAO;qBACR,CAAC;iBACH,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CACF,CAAC;IAEF,uEAAuE;IACvE,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAEnC,OAAO,CAAC,GAAG,CAAC,4CAA4C,OAAO,EAAE,KAAK,CAAC,CAAC;IAExE,OAAO;QACL,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,QAAQ,EAAE,sDAAsD;KACjE,CAAC;AACJ,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":"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,CAAC,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;CACZ;AACD,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,MAAM,GACN,MAAM,GACN,eAAe,GACf,eAAe,CAAC;AACpB,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE3E,wBAAgB,sBAAsB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E,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACnD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,iBAAiB,CA0F7D,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { isObject } from '@knapsack/types';
2
- import { isArray } from '@knapsack/utils';
3
2
  import { formatValidationResults } from '../format-utils.js';
4
3
  export function isKsFigmaVarValueAlias(value) {
5
4
  return isObject(value) && 'type' in value && value.type === 'VARIABLE_ALIAS';
@@ -8,122 +7,86 @@ export function isKsFigmaVarValueRgb(value) {
8
7
  return isObject(value) && 'r' in value && 'g' in value && 'b' in value;
9
8
  }
10
9
  export const validateFigmaVarsSrc = (src) => {
11
- const validateResults = {
10
+ let validateResults = {
12
11
  errorMsg: '',
13
12
  errors: [],
14
13
  data: undefined,
15
14
  };
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
- });
24
15
  if (!isObject(src)) {
25
- validateResults.errors.push({
26
- id: 'mustBeObject',
27
- msgs: [`Source must be an object, received: "${JSON.stringify(src)}"`],
28
- });
29
- return validateReturn();
16
+ const msg = `Must be an object, received: "${JSON.stringify(src)}"`;
17
+ validateResults = {
18
+ ...validateResults,
19
+ errors: [
20
+ ...validateResults.errors,
21
+ {
22
+ id: ',',
23
+ msgs: [msg],
24
+ },
25
+ ],
26
+ };
30
27
  }
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();
28
+ if (isObject(src) && !('collectionsById' in src)) {
29
+ const msg = `Must have a "collectionsById" key`;
30
+ validateResults = {
31
+ ...validateResults,
32
+ errors: [
33
+ ...validateResults.errors,
34
+ {
35
+ id: 'collectionsById',
36
+ msgs: [msg],
37
+ },
38
+ ],
39
+ };
37
40
  }
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();
41
+ if (isObject(src) && !('variablesById' in src)) {
42
+ const msg = `Must have a "variablesById" key`;
43
+ validateResults = {
44
+ ...validateResults,
45
+ errors: [
46
+ ...validateResults.errors,
47
+ {
48
+ id: 'variablesById',
49
+ msgs: [msg],
50
+ },
51
+ ],
52
+ };
44
53
  }
45
- const { variablesById, collectionsById } = src;
46
- const setVariablesById = new Set(Object.keys(variablesById));
47
- const setCollectionsById = new Set(Object.keys(collectionsById));
48
54
  // Verify all vars that are referenced actually exist
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
- });
55
+ // @TODO: zod all this
56
+ if (isObject(src) && 'variablesById' in src && isObject(src.variablesById)) {
57
+ // const allVarIds = Object.keys(src.variablesById);
58
+ const { variablesById } = src;
59
+ Object.values(variablesById).forEach((varData) => {
60
+ if (!isObject(varData) || !('valuesByMode' in varData))
57
61
  return;
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
- });
62
+ const { valuesByMode } = varData;
63
+ if (!isObject(valuesByMode))
67
64
  return;
68
- }
69
- // Check refs
65
+ const refErrors = [];
70
66
  Object.entries(valuesByMode).forEach(([modeId, modeVal]) => {
71
67
  if (isKsFigmaVarValueAlias(modeVal)) {
72
68
  const found = variablesById[modeVal.id];
73
69
  if (!found) {
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
- ],
70
+ const msg = `Var "${varData.name}" has a reference, "${modeVal.id}", for mode "${modeId}" that cannot be found`;
71
+ refErrors.push({
72
+ id: `${varData.name}.${modeId}`,
73
+ msgs: [msg],
79
74
  });
80
75
  }
81
76
  }
82
77
  });
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
- }
93
- });
94
- }
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
- });
78
+ validateResults = {
79
+ ...validateResults,
80
+ errors: [...validateResults.errors, ...refErrors],
81
+ };
125
82
  });
126
83
  }
127
- return validateReturn();
84
+ return {
85
+ errorMsg: formatValidationResults(validateResults.errors),
86
+ errors: validateResults.errors,
87
+ data: validateResults.errors.length
88
+ ? undefined
89
+ : src,
90
+ };
128
91
  };
129
92
  //# 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;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,cAAc,GAAG,GAAG,EAAE,CAAC,CAAC;QAC5B,QAAQ,EAAE,uBAAuB,CAAC,eAAe,CAAC,MAAM,CAAC;QACzD,MAAM,EAAE,eAAe,CAAC,MAAM;QAC9B,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,MAAM;YACjC,CAAC,CAAC,SAAS;YACX,CAAC,CAAE,GAAyB;KAC/B,CAAC,CAAC;IAEH,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;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EAAE,CAAC,CAAC;oBACxC,IAAI,CAAC,KAAK,EAAE,CAAC;wBACX,MAAM,GAAG,GAAG,QAAQ,OAAO,CAAC,IAAI,uBAAuB,OAAO,CAAC,EAAE,gBAAgB,MAAM,wBAAwB,CAAC;wBAChH,SAAS,CAAC,IAAI,CAAC;4BACb,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,IAAI,MAAM,EAAE;4BAC/B,IAAI,EAAE,CAAC,GAAG,CAAC;yBACZ,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,eAAe,GAAG;gBAChB,GAAG,eAAe;gBAClB,MAAM,EAAE,CAAC,GAAG,eAAe,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC;aAClD,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,QAAQ,EAAE,uBAAuB,CAAC,eAAe,CAAC,MAAM,CAAC;QACzD,MAAM,EAAE,eAAe,CAAC,MAAM;QAC9B,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,MAAM;YACjC,CAAC,CAAC,SAAS;YACX,CAAC,CAAE,GAAyB;KAC/B,CAAC;AACJ,CAAC,CAAC"}
@@ -1,5 +1,32 @@
1
1
  import { TokenSrcGroup, TokenType, TokenSrcValueInfo, TokenInfo, TokenData, TokenKsExtensions } from '@knapsack/types';
2
2
  import { type TokenDataSummary } from '../converters/spec-src-to-token-data/index.js';
3
+ /**
4
+ * Setting values for modes
5
+ */
6
+ export type SetModeValArgs = {
7
+ /**
8
+ * The collection ID within the "collections" key.
9
+ */
10
+ collectionId: string;
11
+ /**
12
+ * Var IDs are the path within its collection.
13
+ */
14
+ varId: string;
15
+ /**
16
+ * The mode ID *within the collection it's a part of*
17
+ */
18
+ modeId: string;
19
+ /**
20
+ * Token data for the Mode.
21
+ */
22
+ tokenSrcValueInfo: TokenSrcValueInfo;
23
+ /**
24
+ * If the tokenSrcValueInfo is a ref, this will skip the check for the ref
25
+ * existing. This is useful when the ref is being set in a loop and the ref
26
+ * is not yet created.
27
+ */
28
+ skipRefExistsCheck?: boolean;
29
+ };
3
30
  /**
4
31
  * A helper to manipulate Token src data.
5
32
  *
@@ -304,30 +331,10 @@ export declare class TokenSrcUpdater {
304
331
  /**
305
332
  * Var -> setModeValue
306
333
  */
307
- setModeValue: ({ collectionId, varId, modeId, tokenSrcValueInfo, skipRefExistsCheck, }: {
308
- /**
309
- * The collection ID within the "collections" key.
310
- */
311
- collectionId: string;
312
- /**
313
- * Var IDs are the path within its collection.
314
- */
315
- varId: string;
316
- /**
317
- * The mode ID *within the collection it's a part of*
318
- */
319
- modeId: string;
320
- /**
321
- * Token data for the Mode.
322
- */
323
- tokenSrcValueInfo: TokenSrcValueInfo;
324
- /**
325
- * If the tokenSrcValueInfo is a ref, this will skip the check for the ref
326
- * existing. This is useful when the ref is being set in a loop and the ref
327
- * is not yet created.
328
- */
329
- skipRefExistsCheck?: boolean;
330
- }) => void;
334
+ /**
335
+ * Set one or many var mode values
336
+ */
337
+ setModeValue: (modeVals: SetModeValArgs | SetModeValArgs[]) => void;
331
338
  /**
332
339
  * Var -> unsetModeValue
333
340
  */
@@ -1 +1 @@
1
- {"version":3,"file":"token-src-updater.d.ts","sourceRoot":"","sources":["../../src/token-src-updater/token-src-updater.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,SAAS,EAIT,SAAS,EAET,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,+CAA+C,CAAC;AA6FvD;;;GAGG;AACH,qBAAa,eAAe;;IAQ1B;;;OAGG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAa7B;;OAEG;IACH,IAAI,GAAG,kBAEN;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,gBAAgB,CAM3B;gBAEW,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE;QAAE,GAAG,EAAE,aAA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AAE,iBAAiB,CAAC;YACrC;;;;eAIG;YACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;SAC9B;QAsFD;;WAEG;2DAKA;YACD;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YACrB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YACd;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;SAChB;MAKD;CACH"}
1
+ {"version":3,"file":"token-src-updater.d.ts","sourceRoot":"","sources":["../../src/token-src-updater/token-src-updater.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,SAAS,EAIT,SAAS,EAET,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,+CAA+C,CAAC;AAavD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,iBAAiB,EAAE,iBAAiB,CAAC;IACrC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAkFF;;;GAGG;AACH,qBAAa,eAAe;;IAQ1B;;;OAGG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAa7B;;OAEG;IACH,IAAI,GAAG,kBAEN;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,gBAAgB,CAM3B;gBAEW,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE;QAAE,GAAG,EAAE,aAAa,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;IAMpE;;OAEG;IAEH;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,SAAS;IAaxE;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,EAAE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GG;YACH,cAAc,EAAE,MAAM,CAAC;YACvB;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YACrB;;eAEG;YACH,0BAA0B,EAAE,MAAM,CAAC;SACpC;MAkED;IAEF;;OAEG;IACH,GAAG;QACD;;WAEG;6DAMA;YACD;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YACrB,KAAK,EAAE,MAAM,CAAC;YACd,OAAO,EAAE,SAAS,CAAC;YACnB,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB;QA6BD;;WAEG;qDAKA;YACD;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YACrB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YACd;;;eAGG;YACH,QAAQ,EAAE,MAAM,CAAC;SAClB;QAMD;;WAEG;2CAIA;YACD;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YACrB;;;;eAIG;YACH,KAAK,EAAE,MAAM,CAAC;SACf;QAKD;;;WAGG;2DAKA;YACD,YAAY,EAAE,MAAM,CAAC;YACrB,KAAK,EAAE,MAAM,CAAC;YACd,gBAAgB,EAAE,MAAM,CAAC;SAC1B;QASD;;WAEG;gEAKA;YACD;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YACrB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YACd;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;SACrB;QAWD;;WAEG;QAEH;;WAEG;iCACsB,cAAc,GAAG,cAAc,EAAE;QAqH1D;;WAEG;2DAKA;YACD;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YACrB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YACd;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;SAChB;MAKD;CACH"}
@@ -475,8 +475,11 @@ export class TokenSrcUpdater {
475
475
  });
476
476
  const newVarId = groupId ? `${groupId}.${varId}` : varId;
477
477
  const fullGroupId = `${this.collectionsParentKey}.${collectionId}.${newVarId}`;
478
- if (this.data.collectionsById[collectionId].vars.find((v) => v.id === newVarId)) {
479
- throw new Error(`Var ${newVarId} already exists in ${collectionId}.`);
478
+ // This is pretty fast
479
+ const existingVar = loGet(this.src, newVarId);
480
+ if (existingVar) {
481
+ console.log(`Var ${newVarId} already exists in ${collectionId}. Skipping.`);
482
+ return;
480
483
  }
481
484
  this.createGroup({
482
485
  groupId: fullGroupId,
@@ -535,75 +538,96 @@ export class TokenSrcUpdater {
535
538
  /**
536
539
  * Var -> setModeValue
537
540
  */
538
- setModeValue: ({ collectionId, varId, modeId, tokenSrcValueInfo, skipRefExistsCheck, }) => {
539
- var _a, _b;
540
- //
541
- const { vars } = this.data.collectionsById[collectionId];
542
- const varValue = vars.find((v) => v.id === varId);
543
- if (!varValue) {
544
- throw new Error(`Var ${varId} does not exist in collection ${collectionId}`);
545
- }
546
- const tokenId = `${this.collectionsParentKey}.${collectionId}.${varId}.${modeId}`;
547
- // Handle the different kinds of tokenSrcValueInfo: var refs and static
548
- switch (tokenSrcValueInfo.kind) {
549
- case 'ref': {
550
- const { isVarRef, referencedTokenId } = tokenSrcValueInfo;
551
- // Note that there are TWO kinds of "refs": referencing another var
552
- // (and all its modes therein) and just referencing a vanilla token.
553
- if (isVarRef) {
554
- if (!skipRefExistsCheck) {
555
- const ref = this.data.groupsById[referencedTokenId];
556
- if (!ref) {
557
- throw new Error(`No ref exists for "${referencedTokenId}"`);
558
- }
559
- if (((_b = (_a = ref.groupConfig) === null || _a === void 0 ? void 0 : _a.collectionInfo) === null || _b === void 0 ? void 0 : _b.type) !== 'var') {
560
- throw new Error(`Referenced token "${referencedTokenId}" is not a var`);
561
- }
562
- }
563
- // This is the fancypants ref to a whole collections var
564
- const tokenSrc = {
565
- $extensions: {
566
- 'cloud.knapsack': {
567
- group: {
568
- collectionInfo: {
569
- type: 'var-ref',
570
- referencedId: referencedTokenId,
541
+ /**
542
+ * Set one or many var mode values
543
+ */
544
+ setModeValue: (modeVals) => {
545
+ // Do everything inside a single Immer produce for batch efficiency
546
+ __classPrivateFieldSet(this, _TokenSrcUpdater_instances, produce(this.src, (draft) => {
547
+ // Force the incoming args to be an array so we can handle one or many
548
+ castArray(modeVals).forEach((val) => {
549
+ var _a, _b;
550
+ const { collectionId, varId, modeId, tokenSrcValueInfo, skipRefExistsCheck, } = val;
551
+ const { vars } = this.data.collectionsById[collectionId];
552
+ const varValue = vars.find((v) => v.id === varId);
553
+ if (!varValue) {
554
+ throw new Error(`Var ${varId} does not exist in collection ${collectionId}`);
555
+ }
556
+ const tokenId = `${this.collectionsParentKey}.${collectionId}.${varId}.${modeId}`;
557
+ // Handle the different kinds of tokenSrcValueInfo: var refs and static
558
+ switch (tokenSrcValueInfo.kind) {
559
+ case 'ref': {
560
+ const { isVarRef, referencedTokenId } = tokenSrcValueInfo;
561
+ // Note that there are TWO kinds of "refs": referencing another var
562
+ // (and all its modes therein) and just referencing a vanilla token.
563
+ if (isVarRef) {
564
+ if (!skipRefExistsCheck) {
565
+ const ref = this.data.groupsById[referencedTokenId];
566
+ if (!ref) {
567
+ throw new Error(`No ref exists for "${referencedTokenId}"`);
568
+ }
569
+ if (((_b = (_a = ref.groupConfig) === null || _a === void 0 ? void 0 : _a.collectionInfo) === null || _b === void 0 ? void 0 : _b.type) !== 'var') {
570
+ throw new Error(`Referenced token "${referencedTokenId}" is not a var`);
571
+ }
572
+ }
573
+ // This is the fancypants ref to a whole collections var
574
+ const tokenSrc = {
575
+ $extensions: {
576
+ 'cloud.knapsack': {
577
+ group: {
578
+ collectionInfo: {
579
+ type: 'var-ref',
580
+ referencedId: referencedTokenId,
581
+ },
582
+ },
571
583
  },
572
584
  },
573
- },
574
- },
575
- };
576
- __classPrivateFieldSet(this, _TokenSrcUpdater_instances, produce(this.src, (draft) => {
585
+ };
586
+ const newTokenSrc = loMerge(loGet(draft, tokenId, {}), tokenSrc);
587
+ // @ts-expect-error - force removing key that should not exist
588
+ delete newTokenSrc.$value;
589
+ loSetWith(draft, ensureTokenPath(tokenId), newTokenSrc, Object);
590
+ break;
591
+ }
592
+ // Cannot call another produce function within a produce
593
+ // this.updateToken({
594
+ // tokenId,
595
+ // tokenSrcValueInfo,
596
+ // });
597
+ // @TODO: find a way to call this.updateToken() instead of repeating below
598
+ // This is the vanilla token ref
599
+ const tokenSrc = makeTokenSrc({
600
+ tokenId,
601
+ tokenSrcValueInfo,
602
+ });
603
+ const newTokenSrc = loMerge(loGet(draft, tokenId, {}), tokenSrc);
604
+ loSetWith(draft, ensureTokenPath(tokenId), newTokenSrc, Object);
605
+ break;
606
+ }
607
+ case 'static': {
608
+ // Cannot call another function that uses produce
609
+ // this.updateToken({
610
+ // tokenId,
611
+ // tokenSrcValueInfo,
612
+ // });
613
+ // @TODO: find a way to call this.updateToken() instead of repeating below
614
+ const tokenSrc = makeTokenSrc({
615
+ tokenId,
616
+ tokenSrcValueInfo,
617
+ });
577
618
  const newTokenSrc = loMerge(loGet(draft, tokenId, {}), tokenSrc);
578
- // @ts-expect-error - force removing key that should not exist
579
- delete newTokenSrc.$value;
580
619
  loSetWith(draft, ensureTokenPath(tokenId), newTokenSrc, Object);
581
- }), "a", _TokenSrcUpdater_src_set);
582
- break;
620
+ break;
621
+ }
622
+ default: {
623
+ const _exhaustiveCheck = tokenSrcValueInfo;
624
+ throw new Error(`Unhandled kind: ${JSON.stringify(tokenSrcValueInfo)}`);
625
+ }
583
626
  }
584
- // This is the vanilla token ref
585
- this.updateToken({
586
- tokenId,
587
- tokenSrcValueInfo,
588
- });
589
- break;
590
- }
591
- case 'static': {
592
- this.updateToken({
593
- tokenId,
594
- tokenSrcValueInfo,
595
- });
596
- break;
597
- }
598
- default: {
599
- const _exhaustiveCheck = tokenSrcValueInfo;
600
- throw new Error(`Unhandled kind: ${JSON.stringify(tokenSrcValueInfo)}`);
601
- }
602
- }
603
- // Token Mode Values should not have $type since the $type of the Mode is
604
- // set within the Var object above. This just guarantees $type is not set.
605
- __classPrivateFieldSet(this, _TokenSrcUpdater_instances, produce(this.src, (draft) => {
606
- loUnset(draft, `${tokenId}.$type`);
627
+ // Token Mode Values should not have $type since the $type of the Mode is
628
+ // set within the Var object above. This just guarantees $type is not set.
629
+ loUnset(draft, `${tokenId}.$type`);
630
+ });
607
631
  }), "a", _TokenSrcUpdater_src_set);
608
632
  },
609
633
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"token-src-updater.js","sourceRoot":"","sources":["../../src/token-src-updater/token-src-updater.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAC1C,OAAO,KAAK,MAAM,eAAe,CAAC;AAClC,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAQL,sBAAsB,EAEtB,UAAU,GAEX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAEL,uBAAuB,GACxB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAEjF,SAAS,WAAW,CAA8B,YAAe;IAC/D,IAAI,YAAY,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;QAChC,MAAM,GAAG,GAAmB,IAAI,YAAY,CAAC,iBAAiB,GAAG,CAAC;QAClE,OAAO,GAAG,CAAC;IACb,CAAC;IACD,MAAM,GAAG,GAA4C,YAAY,CAAC,KAAK,CAAC;IACxE,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,YAAY,CAAC,EACpB,OAAO,EACP,iBAAiB,EACjB,WAAW,EAAE,YAAY,GAC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E,MAAM,0CAAE,oBAAoB;YACrE,EAAE,CAAC;AACP,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.4854.b1d79a8.0",
4
+ "version": "4.70.0--canary.4561.78aed7a.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -26,23 +26,23 @@
26
26
  "test": "time npm run ava"
27
27
  },
28
28
  "dependencies": {
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",
29
+ "@knapsack/color-utils": "4.70.0--canary.4561.78aed7a.0",
30
+ "@knapsack/file-utils": "4.70.0--canary.4561.78aed7a.0",
31
+ "@knapsack/types": "4.70.0--canary.4561.78aed7a.0",
32
+ "@knapsack/utils": "4.70.0--canary.4561.78aed7a.0",
33
33
  "flat": "^5.0.2",
34
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.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",
39
+ "@knapsack/eslint-config-starter": "4.70.0--canary.4561.78aed7a.0",
40
+ "@knapsack/test-ava": "4.70.0--canary.4561.78aed7a.0",
41
+ "@knapsack/typescript-config-starter": "4.70.0--canary.4561.78aed7a.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.5",
45
+ "@types/node": "^20.16.6",
46
46
  "@types/prettier": "^2.7.3",
47
47
  "ava": "^6.1.3",
48
48
  "eslint": "^8.57.0",
@@ -61,5 +61,5 @@
61
61
  "directory": "libs/design-token-utils",
62
62
  "type": "git"
63
63
  },
64
- "gitHead": "b1d79a8caffe3537b921ff76bae2f2e8bcabbc43"
64
+ "gitHead": "78aed7a41e9fe84276609d2f85fbd944914473a0"
65
65
  }