@forgebook/story-format 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/src/client.d.ts +9 -1
- package/dist/src/clock.d.ts +0 -1
- package/dist/src/clock.js +0 -1
- package/dist/src/csf.d.ts +75 -4
- package/dist/src/csf.js +0 -1
- package/dist/src/source.d.ts +120 -6
- package/dist/src/source.js +0 -1
- package/dist/src/testingLibrary.d.ts +0 -1
- package/dist/src/testingLibrary.js +0 -1
- package/dist/src/texts.d.ts +0 -1
- package/dist/src/texts.js +0 -1
- package/package.json +1 -1
- package/dist/src/clock.d.ts.map +0 -1
- package/dist/src/clock.js.map +0 -1
- package/dist/src/csf.d.ts.map +0 -1
- package/dist/src/csf.js.map +0 -1
- package/dist/src/source.d.ts.map +0 -1
- package/dist/src/source.js.map +0 -1
- package/dist/src/testingLibrary.d.ts.map +0 -1
- package/dist/src/testingLibrary.js.map +0 -1
- package/dist/src/texts.d.ts.map +0 -1
- package/dist/src/texts.js.map +0 -1
package/README.md
CHANGED
|
@@ -30,8 +30,8 @@ An app's `forgebook.config.ts` then lists it: `sources: ["@acme/ui/stories"]`.
|
|
|
30
30
|
| Import | What it is |
|
|
31
31
|
|---|---|
|
|
32
32
|
| `@forgebook/story-format/csf` | The CSF 3 types, generic over a framework |
|
|
33
|
-
| `@forgebook/story-format/source` | `StorySource`: a package's story files, style sheets, texts
|
|
34
|
-
| `@forgebook/story-format/client` | The types of the `?forgebook-files` and `?forgebook-
|
|
33
|
+
| `@forgebook/story-format/source` | `StorySource`: a package's story files, style sheets, texts (each language a table, or a loader of it: `en: () => import("./locales/en.json")`), home page and docs pages |
|
|
34
|
+
| `@forgebook/story-format/client` | The types of the `?forgebook-files`, `?forgebook-markdown` and `?forgebook-docs-pages` imports |
|
|
35
35
|
| `@forgebook/story-format/texts` | Texts inside the stories, by key, in the catalogue's language |
|
|
36
36
|
| `@forgebook/story-format/clock` | The story clock a live story reads |
|
|
37
37
|
| `@forgebook/story-format/testing-library` | `canvas` and `userEvent` in every `play`, once Testing Library is installed |
|
package/dist/src/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The types of the `?forgebook-files` and `?forgebook-
|
|
2
|
+
* The types of the `?forgebook-files`, `?forgebook-markdown` and `?forgebook-docs-pages` imports, for the module that declares a source: add
|
|
3
3
|
* `@forgebook/story-format/client` to that folder's `compilerOptions.types`, beside `vite/client`.
|
|
4
4
|
*
|
|
5
5
|
* @remarks
|
|
@@ -24,3 +24,11 @@ declare module "*?forgebook-markdown" {
|
|
|
24
24
|
// biome-ignore lint/style/noDefaultExport: see above
|
|
25
25
|
export default markdown;
|
|
26
26
|
}
|
|
27
|
+
|
|
28
|
+
declare module "*?forgebook-docs-pages" {
|
|
29
|
+
/** The docs pages the pattern before `?forgebook-docs-pages` matches. */
|
|
30
|
+
const pages: import("./source").DocPages;
|
|
31
|
+
// the source imports them as a default (`import pages from "…?forgebook-docs-pages"`), so the module has one
|
|
32
|
+
// biome-ignore lint/style/noDefaultExport: see above
|
|
33
|
+
export default pages;
|
|
34
|
+
}
|
package/dist/src/clock.d.ts
CHANGED
package/dist/src/clock.js
CHANGED
package/dist/src/csf.d.ts
CHANGED
|
@@ -26,6 +26,11 @@ export type Renderer = {
|
|
|
26
26
|
readonly component: unknown;
|
|
27
27
|
/** What a story draws (`ReactNode` in React). */
|
|
28
28
|
readonly storyResult: unknown;
|
|
29
|
+
/**
|
|
30
|
+
* What a decorator's `story()` gives, for a framework where it is narrower than what a story may return (Vue: a story
|
|
31
|
+
* may return a component, but `story()` is a virtual node); `storyResult` without it.
|
|
32
|
+
*/
|
|
33
|
+
readonly decoratedStory?: unknown;
|
|
29
34
|
};
|
|
30
35
|
/** A value a story's args may write for a prop: the prop's own, or, where it takes a text, a text named by its key. */
|
|
31
36
|
export type WrittenArg<TValue> = string extends TValue ? TValue | StoryTextArg : TValue;
|
|
@@ -41,6 +46,35 @@ export type ReplayMode = "remount" | {
|
|
|
41
46
|
/** How long the arg stays false once the exit has played, in ms (a loading phase to watch); none by default. */
|
|
42
47
|
readonly hold?: number;
|
|
43
48
|
};
|
|
49
|
+
/** How a device is held: upright, or turned on its side with its top to the left. */
|
|
50
|
+
export type DeviceOrientation = "portrait" | "landscape";
|
|
51
|
+
/**
|
|
52
|
+
* The device a story is shown in by default (`parameters.device`): a drawn phone or tablet around it, at the model's
|
|
53
|
+
* real viewport size, which the person can still turn off, change or rotate. Each field is optional: a story's own
|
|
54
|
+
* fields win over the meta's, which win over the catalogue's `device`.
|
|
55
|
+
*/
|
|
56
|
+
export type StoryDeviceSetting = {
|
|
57
|
+
/** Whether the story starts in the device frame; `false` by default, and on a story it leaves the meta's out. */
|
|
58
|
+
readonly frame?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The model, by id (`iphone-16`; the catalogue's documentation lists them): the one the frame shows, and the one
|
|
61
|
+
* the toolbar's toggle turns on; `phone`, a generic phone, by default.
|
|
62
|
+
*/
|
|
63
|
+
readonly model?: string;
|
|
64
|
+
/** How the device is held; `portrait` by default. */
|
|
65
|
+
readonly orientation?: DeviceOrientation;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the story is touched with the catalogue's simulated finger while it is in the device, as a phone is;
|
|
68
|
+
* `true` by default. The reader can still turn touch off for it.
|
|
69
|
+
*/
|
|
70
|
+
readonly touch?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the story draws edge to edge, under the status bar and the home indicator, as a full-screen app does; it
|
|
73
|
+
* then pads itself with the safe areas the frame writes as custom properties (`--forgebook-safe-area-top`…), since
|
|
74
|
+
* `env(safe-area-inset-*)` stays zero in a frame. `false` by default: the story sits inside the safe areas.
|
|
75
|
+
*/
|
|
76
|
+
readonly edgeToEdge?: boolean;
|
|
77
|
+
};
|
|
44
78
|
/**
|
|
45
79
|
* A group of stories in the sidebar (`states`, `in-context`): its order and heading come from the catalogue's
|
|
46
80
|
* configuration (or a library's preset); a group it does not name sits after the named ones.
|
|
@@ -89,6 +123,14 @@ export type ArgType = {
|
|
|
89
123
|
export type ArgTypes<TArgs> = {
|
|
90
124
|
readonly [Name in keyof TArgs]?: ArgType;
|
|
91
125
|
} & Readonly<Record<string, ArgType>>;
|
|
126
|
+
/** A component's or a story's design, in the tool it was drawn in. */
|
|
127
|
+
export type StoryDesign = {
|
|
128
|
+
/**
|
|
129
|
+
* The link to its node in Figma (`https://www.figma.com/design/<file>/<name>?node-id=12-34`), or to its file. Written
|
|
130
|
+
* plainly (the index reads it). A link that is not Figma's is reported and never embedded.
|
|
131
|
+
*/
|
|
132
|
+
readonly figma: string;
|
|
133
|
+
};
|
|
92
134
|
/** The settings the catalogue reads from a meta or a story; anything else under `parameters` is left alone. */
|
|
93
135
|
export type StoryParameters = {
|
|
94
136
|
/** The states forced on the whole story; a part can force its own with `data-forgebook-force`. */
|
|
@@ -132,6 +174,18 @@ export type StoryParameters = {
|
|
|
132
174
|
* story's own `false` leaves it out. Written plainly (`logic: true`, the index reads it).
|
|
133
175
|
*/
|
|
134
176
|
readonly logic?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* The device the story is shown in by default: `{ frame: true, model: "iphone-16" }` draws an iPhone 16 around it,
|
|
179
|
+
* at its viewport, on the story's page and on its component's page. On a meta, for every story of the file; a
|
|
180
|
+
* story's own fields win. Written plainly (the index reads it); off by default.
|
|
181
|
+
*/
|
|
182
|
+
readonly device?: StoryDeviceSetting;
|
|
183
|
+
/**
|
|
184
|
+
* The design this is drawn from: on a meta, the component's and every story's; on a story, its own in place of the
|
|
185
|
+
* meta's. The catalogue links to it, and with a design plugin (`@forgebook/plugin-figma`) shows it in a Design tab
|
|
186
|
+
* beside the story.
|
|
187
|
+
*/
|
|
188
|
+
readonly design?: StoryDesign;
|
|
135
189
|
/**
|
|
136
190
|
* The story reads the story clock (`context.clock`, `useStoryNow`): a Live story, which starts at this moment and
|
|
137
191
|
* then runs; the catalogue shows pause, resume, restart and the speed, and the tests hold it at its start.
|
|
@@ -140,6 +194,21 @@ export type StoryParameters = {
|
|
|
140
194
|
readonly clock?: StoryClockSetting;
|
|
141
195
|
/** How the story sits in its frame: padded (default), centred, or the whole frame. */
|
|
142
196
|
readonly layout?: "padded" | "centered" | "fullscreen";
|
|
197
|
+
/**
|
|
198
|
+
* The story's mocked API: MSW's request handlers, which answer what the story fetches while it is shown. A list, or
|
|
199
|
+
* a record of lists as MSW's Storybook addon writes it. Typed `unknown` here, since this package depends on nothing:
|
|
200
|
+
* they are MSW's `http.get(…)` values.
|
|
201
|
+
*/
|
|
202
|
+
readonly msw?: {
|
|
203
|
+
/** The handlers. */
|
|
204
|
+
readonly handlers: readonly unknown[] | Readonly<Record<string, readonly unknown[]>>;
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* On a meta: the component's prop groups to list first in its API reference and Props tab, in this order, by the
|
|
208
|
+
* name their props' TSDoc gives (`@group Selection`), ahead of the catalogue's own order; the others follow as they
|
|
209
|
+
* first appear. Written plainly, a list of string literals (the index reads it).
|
|
210
|
+
*/
|
|
211
|
+
readonly propGroups?: readonly string[];
|
|
143
212
|
/** CSF's documentation block; the catalogue reads the component's one-line description from it. */
|
|
144
213
|
readonly docs?: {
|
|
145
214
|
readonly description?: {
|
|
@@ -168,8 +237,9 @@ export type StoryContext<TArgs> = {
|
|
|
168
237
|
*/
|
|
169
238
|
readonly clock: StoryClock;
|
|
170
239
|
/**
|
|
171
|
-
* The
|
|
172
|
-
*
|
|
240
|
+
* The globals a decorator reads to pick a provider's theme, a density, a locale, by id (CSF's name): the preview's
|
|
241
|
+
* starting values (its `globalTypes` defaults, under `initialGlobals`), under the meta's and the story's own, under
|
|
242
|
+
* the catalogue's switches applied by code. Text values only. Empty outside a catalogue.
|
|
173
243
|
*/
|
|
174
244
|
readonly globals: Readonly<Record<string, string>>;
|
|
175
245
|
/** What the story's loaders returned, merged: the preview's, then the meta's, then the story's (CSF's `loaded`). */
|
|
@@ -216,7 +286,9 @@ export type StoryBeforeEach<TArgs> = (context: StoryHookContext<TArgs>) => Promi
|
|
|
216
286
|
/** One function of a kind, or a list of them, as CSF lets a meta, a story or a preview write it. */
|
|
217
287
|
export type OneOrMany<TFunction> = TFunction | readonly TFunction[];
|
|
218
288
|
/** Wraps a story: a provider, a container of a given width. */
|
|
219
|
-
export type Decorator<TRenderer extends Renderer, TArgs> = (story: () => TRenderer
|
|
289
|
+
export type Decorator<TRenderer extends Renderer, TArgs> = (story: () => TRenderer extends {
|
|
290
|
+
readonly decoratedStory: infer TStory;
|
|
291
|
+
} ? TStory : TRenderer["storyResult"], context: StoryContext<TArgs>) => TRenderer["storyResult"];
|
|
220
292
|
/**
|
|
221
293
|
* A story file's default export, for a framework: `TComponent` is the component it shows, `TArgs` what its render
|
|
222
294
|
* receives and `TWrittenArgs` what its args may write (a framework's package derives both from the component's props).
|
|
@@ -342,4 +414,3 @@ export type CsfPreview<TRenderer extends Renderer> = {
|
|
|
342
414
|
/** Tags of every story, under the meta's. */
|
|
343
415
|
readonly tags?: readonly string[];
|
|
344
416
|
};
|
|
345
|
-
//# sourceMappingURL=csf.d.ts.map
|
package/dist/src/csf.js
CHANGED
package/dist/src/source.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What a package hands a catalogue: its story files, its style sheets, its texts.
|
|
2
|
+
* What a package hands a catalogue: its story files, its style sheets, its texts, its docs pages.
|
|
3
3
|
*
|
|
4
4
|
* @remarks
|
|
5
5
|
* Every package with stories exports one `StorySource` from a development-only `./stories` subpath, never published;
|
|
@@ -7,17 +7,42 @@
|
|
|
7
7
|
* catalogue's Vite plugin answers (`import files from "../src/**\/*.stories.tsx?forgebook-files"`, typed by
|
|
8
8
|
* `@forgebook/story-format/client`): one module with every file's index (read without running the files), and the loaders
|
|
9
9
|
* of its stories, its component's docs and its code. The style sheets are the URLs the frame loads for each
|
|
10
|
-
* Styles setting.
|
|
10
|
+
* Styles setting. Its design tokens are paths, not imports: tools read them without loading the source, and the pages
|
|
11
|
+
* carry nothing of them.
|
|
11
12
|
*
|
|
12
13
|
* @module
|
|
13
14
|
*/
|
|
14
|
-
import type { StoryGroup } from "./csf.ts";
|
|
15
|
+
import type { StoryDeviceSetting, StoryGroup } from "./csf.ts";
|
|
16
|
+
import type { StoryTextTable } from "./texts.ts";
|
|
17
|
+
/** What a Figma file is, as the embed's address names it. */
|
|
18
|
+
export type FigmaFileKind = "design" | "proto" | "board" | "slides" | "deck";
|
|
19
|
+
/**
|
|
20
|
+
* A design's link (`parameters.design.figma`), as the index checked it: only a link to a file on Figma's own hosts gets
|
|
21
|
+
* here, taken apart, so the pages and the tools trust it without checking it again.
|
|
22
|
+
*/
|
|
23
|
+
export type FigmaLink = {
|
|
24
|
+
/** The link to open in Figma, rebuilt from the parts below on `www.figma.com`. */
|
|
25
|
+
readonly url: string;
|
|
26
|
+
/** What the file is. */
|
|
27
|
+
readonly kind: FigmaFileKind;
|
|
28
|
+
/** The file's key. */
|
|
29
|
+
readonly fileKey: string;
|
|
30
|
+
/** The branch's key, for a link to a branch of the file. */
|
|
31
|
+
readonly branchKey?: string;
|
|
32
|
+
/** The node it points at, as Figma's REST API writes it (`12:34`); none for a link to the whole file. */
|
|
33
|
+
readonly nodeId?: string;
|
|
34
|
+
};
|
|
15
35
|
/** The props the panel can set for a story: every adjustable one, or only the named ones (none for fixed examples). */
|
|
16
36
|
export type StoryControlsSetting = "all" | readonly string[];
|
|
17
37
|
/** One story of a file, as the index lists it. */
|
|
18
38
|
export type StoryIndexEntry = {
|
|
19
39
|
/** The named export (`KeyboardOpen`). */
|
|
20
40
|
readonly exportName: string;
|
|
41
|
+
/**
|
|
42
|
+
* The story's id as it writes it (Storybook's `parameters.__id`, a plain string), when it writes one: it replaces the
|
|
43
|
+
* id made from the meta and the export, without the source's id.
|
|
44
|
+
*/
|
|
45
|
+
readonly id?: string;
|
|
21
46
|
/** The name written in the story, when it has one (`name: "Keyboard · open"`). */
|
|
22
47
|
readonly name?: string;
|
|
23
48
|
/** The story's own `parameters.controls`, when it sets one: `[]` for `false`. */
|
|
@@ -26,6 +51,11 @@ export type StoryIndexEntry = {
|
|
|
26
51
|
readonly group?: StoryGroup;
|
|
27
52
|
/** The story's own `parameters.height`, when it sets one, in CSS px. */
|
|
28
53
|
readonly height?: number;
|
|
54
|
+
/**
|
|
55
|
+
* The story's own `parameters.design.figma`, when it sets one: `null` when that link is not a Figma file's (noted in
|
|
56
|
+
* the file's `notes`), so the story shows no design rather than the meta's.
|
|
57
|
+
*/
|
|
58
|
+
readonly design?: FigmaLink | null;
|
|
29
59
|
/** Whether the story sets `parameters.main: true`: the component's demo. */
|
|
30
60
|
readonly isMain?: boolean;
|
|
31
61
|
/**
|
|
@@ -38,6 +68,8 @@ export type StoryIndexEntry = {
|
|
|
38
68
|
* `false` to leave the meta's out.
|
|
39
69
|
*/
|
|
40
70
|
readonly isLogic?: boolean;
|
|
71
|
+
/** The story's own `parameters.device`, when it sets one: the device it is shown in by default. */
|
|
72
|
+
readonly device?: StoryDeviceSetting;
|
|
41
73
|
/**
|
|
42
74
|
* The first sentence of the story's TSDoc, or its `parameters.docs.description.story`: what it shows and what to
|
|
43
75
|
* notice.
|
|
@@ -45,25 +77,44 @@ export type StoryIndexEntry = {
|
|
|
45
77
|
readonly description?: string;
|
|
46
78
|
/** The story's tags, the meta's then its own, a `!name` taking `name` away (Storybook's tags). */
|
|
47
79
|
readonly tags?: readonly string[];
|
|
80
|
+
/**
|
|
81
|
+
* Whether the file writes a `play` for the story: its own, one from a story of the file it spreads, or the meta's.
|
|
82
|
+
* Left out when it writes none, as far as reading the file without running it can tell.
|
|
83
|
+
*/
|
|
84
|
+
readonly hasPlay?: boolean;
|
|
48
85
|
};
|
|
49
86
|
/** One story file, read statically: what the catalogue shows before loading it. */
|
|
50
87
|
export type StoryFileIndex = {
|
|
51
88
|
/** The meta's title (`Inputs/Selection/Select`). */
|
|
52
89
|
readonly title: string;
|
|
90
|
+
/**
|
|
91
|
+
* The meta's `id`, when it writes one: its stories' ids start with it instead of the title, as Storybook's do
|
|
92
|
+
* (`id: "menus"` gives `menus--overview`).
|
|
93
|
+
*/
|
|
94
|
+
readonly id?: string;
|
|
53
95
|
/** The meta's `parameters.controls`, when it sets one: `[]` for `false`. */
|
|
54
96
|
readonly controls?: StoryControlsSetting;
|
|
55
97
|
/** The meta's `parameters.height`, when it sets one: every story's frame height, in CSS px. */
|
|
56
98
|
readonly height?: number;
|
|
99
|
+
/**
|
|
100
|
+
* The meta's `parameters.design.figma`, when it sets a valid one (a wrong one is in `notes`): the component's, and
|
|
101
|
+
* every story's.
|
|
102
|
+
*/
|
|
103
|
+
readonly design?: FigmaLink;
|
|
57
104
|
/** The meta's `parameters.touch`, when it sets one: every story starts in touch unless it says otherwise. */
|
|
58
105
|
readonly isTouch?: boolean;
|
|
59
106
|
/** The meta's `parameters.logic`, when it sets one: every story is about logic unless it says otherwise. */
|
|
60
107
|
readonly isLogic?: boolean;
|
|
108
|
+
/** The meta's `parameters.device`, when it sets one: every story's device unless it sets its own fields. */
|
|
109
|
+
readonly device?: StoryDeviceSetting;
|
|
61
110
|
/** The meta's `alsoIn`, when it sets one: the other places the component is listed in. */
|
|
62
111
|
readonly alsoIn?: readonly string[];
|
|
63
112
|
/** The meta's `related`, when it sets one: the titles of the components its page names at its top. */
|
|
64
113
|
readonly related?: readonly string[];
|
|
65
114
|
/** The meta's `keywords`, when it sets one: other words the search finds the component by. */
|
|
66
115
|
readonly keywords?: readonly string[];
|
|
116
|
+
/** The meta's `parameters.propGroups`, when it sets one: the component's prop groups listed first, in order. */
|
|
117
|
+
readonly propGroups?: readonly string[];
|
|
67
118
|
/** The meta's `parameters.docs.description.component`, when written plainly. */
|
|
68
119
|
readonly description?: string;
|
|
69
120
|
/** What the index noticed without refusing the file (a title written by code, placed by its path). */
|
|
@@ -80,6 +131,10 @@ export type StorySheets = {
|
|
|
80
131
|
/** Loaded with Styles › Restyled, instead of the theme: a consumer's own look through the public hooks. */
|
|
81
132
|
readonly restyled: readonly string[];
|
|
82
133
|
};
|
|
134
|
+
/** A language's texts in a source: the table, keyed by text key, or a loader of the module whose default it is. */
|
|
135
|
+
export type StoryTexts = StoryTextTable | (() => Promise<{
|
|
136
|
+
readonly default: StoryTextTable;
|
|
137
|
+
}>);
|
|
83
138
|
/**
|
|
84
139
|
* A language a catalogue offers (the View menu's Language row): its id and name, and whether its texts are a
|
|
85
140
|
* pseudo-translation. Data only: the provider that draws a story in a language is a decorator of the catalogue's
|
|
@@ -131,6 +186,13 @@ export type StoryFiles = {
|
|
|
131
186
|
* cannot be read). None when the catalogue turned it off, or for files indexed before it existed.
|
|
132
187
|
*/
|
|
133
188
|
readonly usage?: () => Promise<unknown>;
|
|
189
|
+
/** Each of the group's stories with the files it reaches, for tools on the dev server; none in a static build. */
|
|
190
|
+
readonly reach?: () => Promise<unknown>;
|
|
191
|
+
/**
|
|
192
|
+
* The group's search index: its components' props, descriptions and documentation, loaded on the first search. None
|
|
193
|
+
* for files indexed before it existed: the search then finds them by their names.
|
|
194
|
+
*/
|
|
195
|
+
readonly search?: () => Promise<unknown>;
|
|
134
196
|
};
|
|
135
197
|
/**
|
|
136
198
|
* The colour of the page a source's stories open on, by theme and contrast: the catalogue paints a story's box with it
|
|
@@ -152,6 +214,45 @@ export type StoryMarkdown = {
|
|
|
152
214
|
/** The file as HTML, its first `#` title left out (the catalogue shows the source's name). */
|
|
153
215
|
readonly html: string;
|
|
154
216
|
};
|
|
217
|
+
/** A docs page as the index lists it, read from its file before anyone opens it. */
|
|
218
|
+
export type DocPageIndex = {
|
|
219
|
+
/** Its place and name: `Guides/Theming`, or `Theming` for a page outside any group. */
|
|
220
|
+
readonly title: string;
|
|
221
|
+
/** Where it sits among the pages: lower first, then the pages without one, by title. */
|
|
222
|
+
readonly order?: number;
|
|
223
|
+
/** What it is about, in a sentence: the page's lead, and what tools list. */
|
|
224
|
+
readonly description?: string;
|
|
225
|
+
/** The ids of the stories it shows, in its order. */
|
|
226
|
+
readonly stories: readonly string[];
|
|
227
|
+
/** The ids of the components whose API tables it shows, in its order. */
|
|
228
|
+
readonly components: readonly string[];
|
|
229
|
+
/** The slugs of the pages it links to, which the catalogue checks across every group of the source. */
|
|
230
|
+
readonly links: readonly string[];
|
|
231
|
+
/** What the index noticed without refusing the file: an unknown key, a missing image. */
|
|
232
|
+
readonly notes?: readonly string[];
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* The docs pages of a pattern, as the catalogue's plugin answers a `?forgebook-docs-pages` import: each page's index and
|
|
236
|
+
* the loader of the page, by the file's path relative to the importing module (`./docs/theming.md`).
|
|
237
|
+
*/
|
|
238
|
+
export type DocPages = {
|
|
239
|
+
/** Each page's index: its title and what it shows, read from its file. */
|
|
240
|
+
readonly index: Readonly<Record<string, DocPageIndex>>;
|
|
241
|
+
/** Each page, loaded when it opens. */
|
|
242
|
+
readonly pages: Readonly<Record<string, () => Promise<unknown>>>;
|
|
243
|
+
/** Each page's Markdown, for tools on the dev server; none in a static build. */
|
|
244
|
+
readonly text?: Readonly<Record<string, () => Promise<unknown>>>;
|
|
245
|
+
/** The group's search index: its pages' text by heading, loaded on the first search. */
|
|
246
|
+
readonly search?: () => Promise<unknown>;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* A design tokens file of a package: its path from the module that declares the source, with its theme when it is a
|
|
250
|
+
* theme's (the format has no themes of its own, so a theme is a file over the base).
|
|
251
|
+
*/
|
|
252
|
+
export type StoryTokensFile = string | {
|
|
253
|
+
readonly file: string;
|
|
254
|
+
readonly mode: string;
|
|
255
|
+
};
|
|
155
256
|
/** A package's stories, as the catalogue reads them. */
|
|
156
257
|
export type StorySource = {
|
|
157
258
|
/** A stable id, part of every story id's URL (`acme-ui`). */
|
|
@@ -189,9 +290,10 @@ export type StorySource = {
|
|
|
189
290
|
/**
|
|
190
291
|
* The texts inside the stories, by language id (the ids of the catalogue's languages; `en` the one every key is in):
|
|
191
292
|
* the package's `stories/locales/<id>.json`. A story reads them with `useStoryText()` or `context.text()`; none by
|
|
192
|
-
* default.
|
|
293
|
+
* default. Each language is its table, or a loader of it (`en: () => import("./locales/en.json")`): a loader keeps
|
|
294
|
+
* the texts out of the catalogue's page, which never shows them, and a frame loads only the languages it draws in.
|
|
193
295
|
*/
|
|
194
|
-
readonly texts?: Readonly<Record<string,
|
|
296
|
+
readonly texts?: Readonly<Record<string, StoryTexts>>;
|
|
195
297
|
/**
|
|
196
298
|
* What the source needs before any of its stories renders (a polyfill to load), awaited by the frame and by the
|
|
197
299
|
* server tests; nothing by default.
|
|
@@ -204,5 +306,17 @@ export type StorySource = {
|
|
|
204
306
|
readonly home?: () => Promise<{
|
|
205
307
|
readonly default: StoryMarkdown;
|
|
206
308
|
}>;
|
|
309
|
+
/**
|
|
310
|
+
* Its docs pages: guides and foundations in Markdown, with live stories, listed in the sidebar's Docs section. One
|
|
311
|
+
* group per `?forgebook-docs-pages` import, the keys unique across the groups. None by default.
|
|
312
|
+
*/
|
|
313
|
+
readonly docs?: readonly DocPages[];
|
|
314
|
+
/**
|
|
315
|
+
* The package's design tokens, DTCG 2025.10 files, the base first
|
|
316
|
+
* (`["tokens.json", { file: "dark.tokens.json", mode: "dark" }]`): every catalogue that shows the source adds them to
|
|
317
|
+
* its own, and `forgebook docs` lists them in `CATALOG.md`. They are read from the module's text, never by running it,
|
|
318
|
+
* so a broken story cannot hide them: write the list here, in the object of `export const source`, with plain strings
|
|
319
|
+
* (a source re-exported or spread from another module gives none) and paths inside the package. None by default.
|
|
320
|
+
*/
|
|
321
|
+
readonly tokens?: readonly StoryTokensFile[];
|
|
207
322
|
};
|
|
208
|
-
//# sourceMappingURL=source.d.ts.map
|
package/dist/src/source.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=source.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=testingLibrary.js.map
|
package/dist/src/texts.d.ts
CHANGED
package/dist/src/texts.js
CHANGED
|
@@ -30,4 +30,3 @@ export const storyText = (key, values) => values === undefined ? { storyText: ke
|
|
|
30
30
|
* @param value - a story's arg.
|
|
31
31
|
*/
|
|
32
32
|
export const isStoryTextArg = (value) => typeof value === "object" && value !== null && "storyText" in value && typeof value.storyText === "string";
|
|
33
|
-
//# sourceMappingURL=texts.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forgebook/story-format",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "The story format of Forgebook: the CSF 3 types a story file is written with, generic over a framework, the StorySource a package hands a catalogue, the texts inside the stories in the shown language, and the story clock a Live story reads. No dependency: a library's stories depend on their framework's package, never on the catalogue that shows them.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stories",
|
package/dist/src/clock.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clock.d.ts","sourceRoot":"","sources":["../../src/clock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,8BAA8B;AAC9B,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IACvD;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,iGAAiG;AACjG,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,UAiB9C,CAAC"}
|
package/dist/src/clock.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clock.js","sourceRoot":"","sources":["../../src/clock.ts"],"names":[],"mappings":"AAkDA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAa,EAAc,EAAE;IAC1D,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,MAAM,SAAS,GAAG,IAAI,GAAG,EAAc,CAAC;IACxC,OAAO;QACL,GAAG,EAAE,GAAW,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;QACtC,SAAS,EAAE,CAAC,MAAkB,EAAgB,EAAE;YAC9C,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACtB,OAAO,GAAS,EAAE;gBAChB,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC3B,CAAC,CAAC;QACJ,CAAC;QACD,OAAO,EAAE,CAAC,EAAU,EAAQ,EAAE;YAC5B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;gBAAE,OAAO;YAC5C,OAAO,IAAI,EAAE,CAAC;YACd,KAAK,MAAM,QAAQ,IAAI,SAAS;gBAAE,QAAQ,EAAE,CAAC;QAC/C,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/src/csf.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"csf.d.ts","sourceRoot":"","sources":["../../src/csf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAElE;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,oCAAoC;IACpC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,iDAAiD;IACjD,Q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eAAe,CAAC;IACtC,yFAAyF;IACzF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,kEAAkE;IAClE,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7E,kEAAkE;IAClE,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACpF,iFAAiF;IACjF,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAClD,uFAAuF;IACvF,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACtD;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACzD,gEAAgE;IAChE,QAAQ,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5D,6CAA6C;IAC7C,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC,CAAC"}
|
package/dist/src/csf.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"csf.js","sourceRoot":"","sources":["../../src/csf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,yHAAyH;AACzH,kBAAkB;AAClB,2BAA2B"}
|
package/dist/src/source.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","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E,CAAC,CAAC;CACpE,CAAC"}
|
package/dist/src/source.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source.js","sourceRoot":"","sources":["../../src/source.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testingLibrary.d.ts","sourceRoot":"","sources":["../../src/testingLibrary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,QAAQ,UAAU,CAAC;IACxB,4CAA4C;IAC5C,UAAU,cAAc;QACtB,6FAA6F;QAC7F,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC;QAChD,uEAAuE;QACvE,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;KAC/B;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testingLibrary.js","sourceRoot":"","sources":["../../src/testingLibrary.ts"],"names":[],"mappings":""}
|
package/dist/src/texts.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"texts.d.ts","sourceRoot":"","sources":["../../src/texts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,oCAAoC;AACpC,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9D,sDAAsD;AACtD,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;AAExE,8EAA8E;AAC9E,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,KAAK,MAAM,CAA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