ext-apps/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Hefner 77306d1aaf Complete "Reacting to light/dark theme changes" pattern documentation
Reference existing JSDoc examples instead of maintaining a separate one in
`docs/patterns.ts`:
- Vanilla JS: `applyDocumentTheme_fromHostContext` from `styles.examples.ts`
- React: `useDocumentTheme_conditionalRender` for reactive theme reading

Expand `applyDocumentTheme_fromHostContext` example to show both the
`onhostcontextchanged` handler and initial theme application after `connect()`.

Note in the docs that `useHostStyles()` applies theme automatically, so React
apps don't need additional setup unless they want to read the theme reactively
for conditional rendering.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:31:11 -06:00
..
generated Improve JSDoc comments with cross-references and clarifications (#254) 2026-01-14 00:41:17 +00:00
react Refine JSDoc examples for consistency and type safety 2026-01-19 20:43:47 -06:00
server Complete "Tools that are private to Apps" pattern documentation 2026-01-20 13:31:11 -06:00
app-bridge.examples.ts Refine JSDoc examples for consistency and type safety 2026-01-19 20:43:47 -06:00
app-bridge.test.ts feat: add ui/update-model-context (#125) 2026-01-12 15:21:45 +00:00
app-bridge.ts Refine JSDoc examples for consistency and type safety 2026-01-19 20:43:47 -06:00
app.examples.ts Refine JSDoc examples for consistency and type safety 2026-01-19 20:43:47 -06:00
app.ts Refine JSDoc examples for consistency and type safety 2026-01-19 20:43:47 -06:00
message-transport.examples.ts Refine JSDoc examples for consistency and type safety 2026-01-19 20:43:47 -06:00
message-transport.ts Move JSDoc examples to type-checked .examples.ts files 2026-01-19 20:41:19 -06:00
spec.types.ts Improve JSDoc comments with cross-references and clarifications (#254) 2026-01-14 00:41:17 +00:00
styles.examples.ts Complete "Reacting to light/dark theme changes" pattern documentation 2026-01-20 13:31:11 -06:00
styles.ts Move JSDoc examples to type-checked .examples.ts files 2026-01-19 20:41:19 -06:00
types.ts Improve JSDoc comments with cross-references and clarifications (#254) 2026-01-14 00:41:17 +00:00