rafters 0.0.47 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +19 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62310,13 +62310,28 @@ var RaftersToolHandler = class _RaftersToolHandler {
|
|
|
62310
62310
|
}
|
|
62311
62311
|
if (parsed) {
|
|
62312
62312
|
existing.value = parsed;
|
|
62313
|
-
const
|
|
62314
|
-
|
|
62315
|
-
existing.dependsOn = [lightRefStr, darkRef];
|
|
62313
|
+
const darkRef = dark ?? existing.dependsOn?.[1] ?? `${parsed.family}-${parsed.position}`;
|
|
62314
|
+
existing.dependsOn = [parsed.family, darkRef];
|
|
62316
62315
|
} else {
|
|
62317
62316
|
existing.value = value2;
|
|
62318
62317
|
}
|
|
62319
62318
|
await registry2.setToken(existing);
|
|
62319
|
+
const familyCascade = [];
|
|
62320
|
+
if (parsed && existing.namespace === "semantic" && _RaftersToolHandler.SEMANTIC_FAMILY_SET.has(name2)) {
|
|
62321
|
+
const cascadeResults = [];
|
|
62322
|
+
const cascadeTokens = this.cascadeSemanticFamily(
|
|
62323
|
+
registry2,
|
|
62324
|
+
name2,
|
|
62325
|
+
parsed.family,
|
|
62326
|
+
cascadeResults
|
|
62327
|
+
);
|
|
62328
|
+
if (cascadeTokens.length > 0) {
|
|
62329
|
+
await registry2.setTokens(cascadeTokens);
|
|
62330
|
+
for (const token of cascadeTokens) {
|
|
62331
|
+
familyCascade.push(token.name);
|
|
62332
|
+
}
|
|
62333
|
+
}
|
|
62334
|
+
}
|
|
62320
62335
|
const affected = this.getAffectedTokens(registry2, name2);
|
|
62321
62336
|
const outputFiles = await this.regenerateOutputs(registry2);
|
|
62322
62337
|
return {
|
|
@@ -62334,6 +62349,7 @@ var RaftersToolHandler = class _RaftersToolHandler {
|
|
|
62334
62349
|
namespace: existing.namespace
|
|
62335
62350
|
},
|
|
62336
62351
|
cascaded: affected,
|
|
62352
|
+
familyCascade,
|
|
62337
62353
|
outputFiles
|
|
62338
62354
|
})
|
|
62339
62355
|
}
|