openpencil/packages/docs
Danila Poyarkov 6c6f24409e
feat: let a collection name the attribute its modes switch by (#913)
* feat: let a collection name the attribute its modes switch by

Manually switched modes were always selected by data-<collection name>, so a collection called New wrote data-new and a codebase already using data-color-scheme could not be matched. A collection can now name its attribute in the inspector, validated so a stylesheet can select it as is. The stylesheet and exported code use it, setting it is undoable, and .fig files keep it in the collection's plugin data.

* fix: show the switch attribute only where there are modes to switch

* fix: return to the list after committing the switch attribute

* fix: keep a collection's switch attribute when a new one is refused

setModeAttribute cleared the attribute when given a name a stylesheet cannot select on; it now leaves the current one, and only an empty name restores the default. In the inspector, Enter on a refused name keeps the focus so it can be corrected.

* docs: describe the switch attribute in the mode conditions

The Switched manually row still said the attribute is named after the collection. The changelog had collected four copies of the variables dialog entry through rebases; one remains, with the switch attribute in it.
2026-10-06 12:35:41 +00:00
..
.vitepress refactor(vue)!: remove the variables table composables (#908) 2026-10-06 12:35:41 +00:00
de feat: let a collection name the attribute its modes switch by (#913) 2026-10-06 12:35:41 +00:00
development test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
es feat: let a collection name the attribute its modes switch by (#913) 2026-10-06 12:35:41 +00:00
fr feat: let a collection name the attribute its modes switch by (#913) 2026-10-06 12:35:41 +00:00
it feat: let a collection name the attribute its modes switch by (#913) 2026-10-06 12:35:41 +00:00
overview feat(code): link the Code tab to canvas layers and sync both ways (#805) 2026-10-04 10:08:40 +00:00
pl feat: let a collection name the attribute its modes switch by (#913) 2026-10-06 12:35:41 +00:00
programmable refactor(vue)!: remove the variables table composables (#908) 2026-10-06 12:35:41 +00:00
public refactor(vue)!: remove the variables table composables (#908) 2026-10-06 12:35:41 +00:00
reference fix: share CSS value parsing between dom-css and design JSX (#910) 2026-10-05 17:02:43 +00:00
ru feat: let a collection name the attribute its modes switch by (#913) 2026-10-06 12:35:41 +00:00
user-guide feat: let a collection name the attribute its modes switch by (#913) 2026-10-06 12:35:41 +00:00
AGENTS.md build(tools): group tools by role and gate them like the rest of the repo (#791) 2026-09-30 05:00:31 +04:00
getting-started.md fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
index.md Refine docs structure for SDK and automation 2026-03-24 23:24:08 +03:00
package.json build: update dependencies (#873) 2026-10-04 12:48:24 +00:00