synthesisui 0.16.68 → 0.16.69
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/doctor/transcribe.js +16 -4
- package/package.json +1 -1
|
@@ -227,6 +227,7 @@ export function transcribe(classes, declared) {
|
|
|
227
227
|
states: {},
|
|
228
228
|
dark: {},
|
|
229
229
|
skipped: [],
|
|
230
|
+
literals: [],
|
|
230
231
|
fromToken: 0,
|
|
231
232
|
fromLiteral: 0,
|
|
232
233
|
};
|
|
@@ -267,16 +268,27 @@ export function transcribe(classes, declared) {
|
|
|
267
268
|
}
|
|
268
269
|
if (!decl || !target)
|
|
269
270
|
continue;
|
|
271
|
+
/**
|
|
272
|
+
* EVERYTHING IT READS TRAVELS, literals included - as DATA.
|
|
273
|
+
*
|
|
274
|
+
* Which of these becomes a recipe declaration is not this module's call: a
|
|
275
|
+
* literal cannot re-theme, and whether `#ffffff` is a white or a SURFACE
|
|
276
|
+
* depends on the two palettes, which only exist on the platform. An earlier
|
|
277
|
+
* version wrote literals straight into `base` and a dark preview rendered a
|
|
278
|
+
* white box with white text on it; the version after that dropped them and
|
|
279
|
+
* carried almost nothing. Both were this module deciding something it cannot
|
|
280
|
+
* see (dono, 01/08).
|
|
281
|
+
*
|
|
282
|
+
* So it reports the whole reading and the platform pairs base against dark
|
|
283
|
+
* to recover the role. See `exclusive-contract.ts`.
|
|
284
|
+
*/
|
|
270
285
|
// First write wins, matching how a class list resolves for the properties
|
|
271
286
|
// we read: later duplicates in the same list are almost always a merge
|
|
272
287
|
// artefact rather than an override.
|
|
273
288
|
if (target[decl.property] != null)
|
|
274
289
|
continue;
|
|
275
290
|
target[decl.property] = decl.value;
|
|
276
|
-
|
|
277
|
-
out.fromToken += 1;
|
|
278
|
-
else
|
|
279
|
-
out.fromLiteral += 1;
|
|
291
|
+
out.fromToken += 1;
|
|
280
292
|
}
|
|
281
293
|
return out;
|
|
282
294
|
}
|
package/package.json
CHANGED