fix(fig): skip unresolved paint variables

- Drop preserved colorVar and opacityVar payload fields together with variable maps
- Keep concrete paint colors as fallbacks so Figma does not render unresolved variables as missing content
This commit is contained in:
Danila Poyarkov 2026-05-20 22:42:43 +03:00
parent 6586b497bb
commit ef802b4681

View file

@ -101,7 +101,9 @@ function parseGuidOrNull(value: string) {
const FIGMA_PAYLOAD_FIELDS_UNSAFE_FOR_EXPORT = new Set([
'variableConsumptionMap',
'parameterConsumptionMap'
'parameterConsumptionMap',
'colorVar',
'opacityVar'
])
function materializeFigmaPayload(value: unknown, blobs: Uint8Array[]): unknown {