You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add DOM API documentation to all Storybook stories
Each element's story now documents its public methods, getters/setters,
and custom events in the autodocs component description.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/stories/Choose.stories.ts
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,30 @@ const meta = {
23
23
render: ()=>html`${unsafeHTML(sourceCode)}`,
24
24
parameters: {
25
25
docs: {
26
+
description: {
27
+
component: [
28
+
"Conditional branching element. Evaluates `<aa-when>` test expressions against session memory and instantiates the first matching branch, or `<aa-otherwise>` if none match.",
Copy file name to clipboardExpand all lines: src/stories/FunctionRandom.stories.ts
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,22 @@ const meta = {
30
30
},
31
31
parameters: {
32
32
docs: {
33
+
description: {
34
+
component: [
35
+
"Generates a random integer between `min` and `max` (inclusive) and stores it in session memory. Removes itself from the DOM after generating (unless `debug` is set).",
Copy file name to clipboardExpand all lines: src/stories/Session.stories.ts
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,37 @@ const meta = {
26
26
render: ()=>html`${unsafeHTML(sourceCode)}`,
27
27
parameters: {
28
28
docs: {
29
+
description: {
30
+
component: [
31
+
"The top-level container for an assessment. Manages session identity, memory, and data collection. Wraps its content in a `<template>` that is cloned and instantiated on `run()`.",
0 commit comments