Commit graph

13 commits

Author SHA1 Message Date
aad6525c3c docs: compile-time and runtime type guards 2026-07-22 21:44:44 +02:00
abe67055d0 docs: Prop Access documentation improvements 2026-07-22 21:22:00 +02:00
ayo
7b48653966
docs: align cem-plugin example with the typed-props pattern 2026-07-22 15:09:13 +02:00
ayo
cef76dfd66
docs: tighten the "why" page (grammar and figures) 2026-07-22 01:18:01 +02:00
ayo
2997caddde
docs: switch typed-props pattern to named type above, defaults within 2026-07-21 16:41:24 +02:00
ayo
cdfe928112
docs: document unobserved state via plain class properties 2026-07-21 16:13:41 +02:00
ayo
4b4cbc6cc8
docs: add comparison page and a new why (#58) 2026-07-20 22:49:40 +02:00
Ayo
561294f72c docs: fix build failing
Some checks are pending
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
2026-07-20 20:31:27 +02:00
Ayo
f290e049bd feat: custom prop <> attr conversion
Override `toAttribute()` and `fromAttribute()` methods to
implement custom conversion between props and attributes
2026-07-20 20:18:06 +02:00
Ayo
1b3e251a9d feat!: reflect boolean props as bare attributes
Some checks are pending
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
Boolean props follow the HTML presence/absence semantics.
- We stick close to standard HTML behavior: flag="false" is treated as
true in most cases. Standard bare attributes disabled and required for
form fields are interpreted as true with non-existence as false.
- The use-cases for aria-*="false" and contenteditable="false" are also
supported by typing them in the JS class as string ("true" | "false").
This "true" | "false" opt-in is types-only. At runtime it's just a
string, and strings already serialize literally and are never removed —
so the enumerated/aria path needs no runtime code.
2026-07-20 19:57:23 +02:00
Ayo
2da6cd5afc feat: new cem analyzer plugin (cem-plugin)
Some checks are pending
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
2026-07-19 21:06:22 +02:00
Ayo
861310c6bf feat: typed props
Some checks are pending
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
- jsdocs / types change only to enforce giving shapt to `static props`
2026-07-19 18:27:52 +02:00
422b7a2e06 feat(docs): use note Aside on prop access guide 2025-03-27 20:40:39 +01:00
Renamed from docs/src/content/docs/guides/prop-access.md (Browse further)