@knapsack/design-token-utils 4.67.7--canary.4522.70746b6.0 → 4.67.7--canary.4513.b33020f.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,54 +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
- console.log('DEBUG varId:', fullVarPath);
117
- // 2024/07/18: tokensById does not appear to contain Tokens that are refs
118
- // const varExists = Object.keys(tokensById).some((key) =>
119
- // key.startsWith(fullVarPath),
120
- // );
121
- // 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.
122
125
  const varExists = loGet(currentTokensSrc, fullVarPath);
123
126
  if (varExists) {
124
- console.log('Var already exists, no need to create:', fullVarPath);
127
+ console.log(`Var "${fullVarPath}" already exists, skipping creation.`);
125
128
  }
126
129
  else {
127
- // Avoid creating var if it already exists
130
+ console.log('Creating varId:', fullVarPath);
128
131
  tsu.var.create({
129
132
  collectionId: collectionName,
130
133
  varId,
131
134
  varType: mapFigmaVarType(varType),
132
135
  });
133
136
  }
134
- Object.entries(valuesByMode).forEach(([modeId, value]) => {
137
+ // Vast majority of processing time is here vv
138
+ Object.entries(valuesByMode).forEach(([modeId, modeVal]) => {
135
139
  // VAR ALIAS
136
- if (isKsFigmaVarValueAlias(value)) {
137
- const figmaVar = ksFigmaVars.variablesById[value.id];
140
+ if (isKsFigmaVarValueAlias(modeVal)) {
141
+ const figmaVar = ksFigmaVars.variablesById[modeVal.id];
138
142
  if (!figmaVar) {
139
- 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`);
140
144
  }
141
145
  // Using the target Figma Var, get the Collection ID it belongs to,
142
146
  // and use to look up that Collection's name
143
147
  const targetCollectionName = ksFigmaVars.collectionsById[figmaVar.collectionId].name;
144
- tsu.var.setModeValue({
148
+ modeValArray.push({
145
149
  collectionId: collectionName,
146
150
  varId,
147
151
  modeId: modesById[modeId],
@@ -160,15 +164,21 @@ export function convertKsFigmaVarsToSpec({ ksFigmaVars, currentTokensSrc, }) {
160
164
  return;
161
165
  }
162
166
  // ALL OTHER VAR TYPES
163
- tsu.var.setModeValue({
167
+ modeValArray.push({
164
168
  collectionId: collectionName,
165
169
  varId,
166
170
  modeId: modesById[modeId],
167
- tokenSrcValueInfo: createTokenSrcValueInfo({ value, varType }),
171
+ tokenSrcValueInfo: createTokenSrcValueInfo({
172
+ value: modeVal,
173
+ varType,
174
+ }),
168
175
  });
169
176
  });
170
177
  });
171
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.`);
172
182
  return {
173
183
  src: tsu.src,
174
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,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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C,CAAC,CAAC;IACH,OAAO;QACL,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,QAAQ;KACT,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,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,CA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,CAAC,CAAC;IAExE,OAAO;QACL,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,QAAQ;KACT,CAAC;AACJ,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
  *
@@ -303,30 +330,10 @@ export declare class TokenSrcUpdater {
303
330
  /**
304
331
  * Var -> setModeValue
305
332
  */
306
- setModeValue: ({ collectionId, varId, modeId, tokenSrcValueInfo, skipRefExistsCheck, }: {
307
- /**
308
- * The collection ID within the "collections" key.
309
- */
310
- collectionId: string;
311
- /**
312
- * Var IDs are the path within its collection.
313
- */
314
- varId: string;
315
- /**
316
- * The mode ID *within the collection it's a part of*
317
- */
318
- modeId: string;
319
- /**
320
- * Token data for the Mode.
321
- */
322
- tokenSrcValueInfo: TokenSrcValueInfo;
323
- /**
324
- * If the tokenSrcValueInfo is a ref, this will skip the check for the ref
325
- * existing. This is useful when the ref is being set in a loop and the ref
326
- * is not yet created.
327
- */
328
- skipRefExistsCheck?: boolean;
329
- }) => void;
333
+ /**
334
+ * Set one or many var mode values
335
+ */
336
+ setModeValue: (modeVals: SetModeValArgs | SetModeValArgs[]) => void;
330
337
  /**
331
338
  * Var -> unsetModeValue
332
339
  */
@@ -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,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,iBAAiB,EAAE,WAAW,EAAE,EAAE,SAAS;IAclE;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE;IAyNvD;;;OAGG;IACH,WAAW,CAAC,EACV,eAAe,EACf,kBAAkB,GACnB,EAAE;QACD,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;KAC5B;;;;IAgED;;OAEG;IACH,YAAY;IAEZ;;OAEG;IACH,WAAW,CAAC,EACV,OAAO,EACP,SAAS,GACV,EAAE;QACD,OAAO,EAAE,MAAM,C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AC;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;QAUD;;WAEG;gGAOA;YACD;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YACrB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YACd;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YACf;;eAEG;YACH,iBAAiB,EAAE,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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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,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,CAAC,CAAC;QAClC,CAAC,CAAC,gCAAA,CAAC;IACL,CAAC;IAED,uBAAuB,CAAC,EACtB,oBAAoB,GAGrB;QACC,uBAAA,IAAI,8BAAQ,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE;;YACtC,KAAK,CAAC,WAAW,GAAG;gBAClB,GAAG,CAAC,KAAK,CAAC,WAAW,IAAI,EAAE,CAAC;gBAC5B,gBAAgB,EAAE;oBAChB,GAAG,CAAC,CAAA,MAAA,KAAK,CAAC,WAAW,0CAAG,gBAAgB,CAAC,KAAI,EAAE,CAAC;oBAChD,MAAM,EAAE;wBACN,GAAG,CAAC,CAAA,MAAA,MAAA,KAAK,CAAC,WAAW,0CAAG,gBAAgB,CAAC,0CAAE,MAAM,KAAI,EAAE,CAAC;wBACxD,oBAAoB;qBACrB;iBACF;aACF,CAAC;QACJ,CAAC,CAAC,gCAAA,CAAC;QAEH,IAAI,oBAAoB,EAAE,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC;gBACf,OAAO,EAAE,oBAAoB;aAC9B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CA0vBF;6UAvzCU,MAAqB;;IAC5B,uBAAA,IAAI,yBAAS,MAAM,MAAA,CAAC;IACpB,uBAAA,IAAI,gCAAgB,IAAI,MAAA,CAAC;IACzB,IAAI,CAAC,oBAAoB;QACvB,CAAA,MAAA,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,0CAAG,gBAAgB,CAAC,0CAAE,MAAM,0CAAE,oBAAoB;YACrE,EAAE,CAAC;AACP,CAAC"}
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;AACl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AI,EAAE,CAAC;oBAChD,MAAM,EAAE;wBACN,GAAG,CAAC,CAAA,MAAA,MAAA,KAAK,CAAC,WAAW,0CAAG,gBAAgB,CAAC,0CAAE,MAAM,KAAI,EAAE,CAAC;wBACxD,oBAAoB;qBACrB;iBACF;aACF,CAAC;QACJ,CAAC,CAAC,gCAAA,CAAC;QAEH,IAAI,oBAAoB,EAAE,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC;gBACf,OAAO,EAAE,oBAAoB;aAC9B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CAkwBF;6UA/zCU,MAAqB;;IAC5B,uBAAA,IAAI,yBAAS,MAAM,MAAA,CAAC;IACpB,uBAAA,IAAI,gCAAgB,IAAI,MAAA,CAAC;IACzB,IAAI,CAAC,oBAAoB;QACvB,CAAA,MAAA,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,0CAAG,gBAAgB,CAAC,0CAAE,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.67.7--canary.4522.70746b6.0",
4
+ "version": "4.67.7--canary.4513.b33020f.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.67.7--canary.4522.70746b6.0",
30
- "@knapsack/file-utils": "4.67.7--canary.4522.70746b6.0",
31
- "@knapsack/types": "4.67.7--canary.4522.70746b6.0",
32
- "@knapsack/utils": "4.67.7--canary.4522.70746b6.0",
29
+ "@knapsack/color-utils": "4.67.7--canary.4513.b33020f.0",
30
+ "@knapsack/file-utils": "4.67.7--canary.4513.b33020f.0",
31
+ "@knapsack/types": "4.67.7--canary.4513.b33020f.0",
32
+ "@knapsack/utils": "4.67.7--canary.4513.b33020f.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.67.7--canary.4522.70746b6.0",
40
- "@knapsack/test-ava": "4.67.7--canary.4522.70746b6.0",
41
- "@knapsack/typescript-config-starter": "4.67.7--canary.4522.70746b6.0",
39
+ "@knapsack/eslint-config-starter": "4.67.7--canary.4513.b33020f.0",
40
+ "@knapsack/test-ava": "4.67.7--canary.4513.b33020f.0",
41
+ "@knapsack/typescript-config-starter": "4.67.7--canary.4513.b33020f.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": "70746b6b44e9a832be22af539b2de8d232576c13"
66
+ "gitHead": "b33020f4c25bf06b8b38fa6acca06cf36f02b52b"
67
67
  }