openpencil/packages/docs/reference
Danila Poyarkov 6a05e30f15
fix(design-jsx): say what gradient helpers expect when stops are not an array (#881)
* fix(design-jsx): say what gradient helpers expect when stops are not an array

An AI agent called linearGradient with something other than an array of stops, and render failed with 'stops.map is not a function', which does not tell it how to fix the call. The helpers now validate their stops with Valibot and name the expected form, and the authoring reference shows the signature.

* fix(design-jsx): describe stops that cannot be shown as JSON

Review follow-up. JSON.stringify throws on a bigint or a circular object, so such a call failed with that error instead of the gradient's expected form.

* fix(design-jsx): word gradient stop errors from the Valibot issue

Review follow-up. The message now names the helper as a call, as the paint helper option warnings do, and ends with Valibot's description of what was wrong, which already says what it received without serializing the value. A stop that is neither [color, position] nor { color, position } names both forms and its index.
2026-10-04 18:28:44 +00:00
..
cli.md feat: write variables as a CSS token stylesheet (#856) 2026-10-04 18:15:52 +00:00
design-authoring.md fix(design-jsx): say what gradient helpers expect when stops are not an array (#881) 2026-10-04 18:28:44 +00:00
dom-css-mapping.md refactor!: generate Tailwind JSX through dom-css (#763) 2026-09-26 10:50:28 +04:00
figma-compatibility.md feat(fig): support text on path 2026-08-17 12:00:01 +03:00
file-format.md docs(fig): clarify existing round-trip fidelity limits 2026-09-13 15:32:57 +03:00
keyboard-shortcuts.md feat(app): expand Figma menu and selection parity (#459) 2026-08-03 00:23:05 +03:00
node-types.md feat(editor): add component property controls 2026-07-17 21:59:49 +03:00
scene-graph.md docs: generate llms files 2026-05-22 16:03:04 +03:00