@storybook/csf 0.1.11 β 0.1.12-next.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/dist/index.d.ts +9 -9
- package/package.json +1 -1
- package/CHANGELOG.md +0 -218
package/dist/index.d.ts
CHANGED
|
@@ -290,27 +290,27 @@ interface BaseAnnotations<TRenderer extends Renderer = Renderer, TArgs = Args> {
|
|
|
290
290
|
* Wrapper components or Storybook decorators that wrap a story.
|
|
291
291
|
*
|
|
292
292
|
* Decorators defined in Meta will be applied to every story variation.
|
|
293
|
-
* @see [Decorators](https://storybook.js.org/docs/
|
|
293
|
+
* @see [Decorators](https://storybook.js.org/docs/writing-stories/decorators)
|
|
294
294
|
*/
|
|
295
295
|
decorators?: DecoratorFunction<TRenderer, Simplify<TArgs>>[] | DecoratorFunction<TRenderer, Simplify<TArgs>>;
|
|
296
296
|
/**
|
|
297
297
|
* Custom metadata for a story.
|
|
298
|
-
* @see [Parameters](https://storybook.js.org/docs/
|
|
298
|
+
* @see [Parameters](https://storybook.js.org/docs/writing-stories/parameters)
|
|
299
299
|
*/
|
|
300
300
|
parameters?: Parameters;
|
|
301
301
|
/**
|
|
302
302
|
* Dynamic data that are provided (and possibly updated by) Storybook and its addons.
|
|
303
|
-
* @see [
|
|
303
|
+
* @see [Args](https://storybook.js.org/docs/writing-stories/args)
|
|
304
304
|
*/
|
|
305
305
|
args?: Partial<TArgs>;
|
|
306
306
|
/**
|
|
307
307
|
* ArgTypes encode basic metadata for args, such as `name`, `description`, `defaultValue` for an arg. These get automatically filled in by Storybook Docs.
|
|
308
|
-
* @see [
|
|
308
|
+
* @see [ArgTypes](https://storybook.js.org/docs/api/arg-types)
|
|
309
309
|
*/
|
|
310
310
|
argTypes?: Partial<ArgTypes<TArgs>>;
|
|
311
311
|
/**
|
|
312
312
|
* Asynchronous functions which provide data for a story.
|
|
313
|
-
* @see [Loaders](https://storybook.js.org/docs/
|
|
313
|
+
* @see [Loaders](https://storybook.js.org/docs/writing-stories/loaders)
|
|
314
314
|
*/
|
|
315
315
|
loaders?: LoaderFunction<TRenderer, TArgs>[] | LoaderFunction<TRenderer, TArgs>;
|
|
316
316
|
/**
|
|
@@ -371,7 +371,7 @@ interface ComponentAnnotations<TRenderer extends Renderer = Renderer, TArgs = Ar
|
|
|
371
371
|
* title: 'Design System/Atoms/Button'
|
|
372
372
|
* }
|
|
373
373
|
*
|
|
374
|
-
* @see [Story Hierarchy](https://storybook.js.org/docs/
|
|
374
|
+
* @see [Story Hierarchy](https://storybook.js.org/docs/writing-stories/naming-components-and-hierarchy#structure-and-hierarchy)
|
|
375
375
|
*/
|
|
376
376
|
title?: ComponentTitle;
|
|
377
377
|
/**
|
|
@@ -379,7 +379,7 @@ interface ComponentAnnotations<TRenderer extends Renderer = Renderer, TArgs = Ar
|
|
|
379
379
|
*
|
|
380
380
|
* By default is inferred from sanitizing the title
|
|
381
381
|
*
|
|
382
|
-
* @see [
|
|
382
|
+
* @see [Permalink to stories](https://storybook.js.org/docs/configure/sidebar-and-urls#permalink-to-stories)
|
|
383
383
|
*/
|
|
384
384
|
id?: ComponentId;
|
|
385
385
|
/**
|
|
@@ -388,7 +388,7 @@ interface ComponentAnnotations<TRenderer extends Renderer = Renderer, TArgs = Ar
|
|
|
388
388
|
* includeStories: ['SimpleStory', 'ComplexStory']
|
|
389
389
|
* includeStories: /.*Story$/
|
|
390
390
|
*
|
|
391
|
-
* @see [Non-story exports](https://storybook.js.org/docs/
|
|
391
|
+
* @see [Non-story exports](https://storybook.js.org/docs/api/csf#non-story-exports)
|
|
392
392
|
*/
|
|
393
393
|
includeStories?: StoryDescriptor$1;
|
|
394
394
|
/**
|
|
@@ -397,7 +397,7 @@ interface ComponentAnnotations<TRenderer extends Renderer = Renderer, TArgs = Ar
|
|
|
397
397
|
* excludeStories: ['simpleData', 'complexData']
|
|
398
398
|
* excludeStories: /.*Data$/
|
|
399
399
|
*
|
|
400
|
-
* @see [Non-story exports](https://storybook.js.org/docs/
|
|
400
|
+
* @see [Non-story exports](https://storybook.js.org/docs/api/csf#non-story-exports)
|
|
401
401
|
*/
|
|
402
402
|
excludeStories?: StoryDescriptor$1;
|
|
403
403
|
/**
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
# v0.1.11 (Tue Jul 02 2024)
|
|
2
|
-
|
|
3
|
-
#### π Bug Fix
|
|
4
|
-
|
|
5
|
-
- Add mount to CSF [#100](https://github.com/ComponentDriven/csf/pull/100) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
6
|
-
|
|
7
|
-
#### Authors: 1
|
|
8
|
-
|
|
9
|
-
- Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
# v0.1.10 (Tue Jul 02 2024)
|
|
14
|
-
|
|
15
|
-
#### π Bug Fix
|
|
16
|
-
|
|
17
|
-
- Consolidate loader, play and render context and add a self referencing context property [#98](https://github.com/ComponentDriven/csf/pull/98) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
18
|
-
- Add canvas prop to the context [#99](https://github.com/ComponentDriven/csf/pull/99) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
19
|
-
|
|
20
|
-
#### Authors: 1
|
|
21
|
-
|
|
22
|
-
- Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
# v0.1.9 (Mon Jun 24 2024)
|
|
27
|
-
|
|
28
|
-
#### π Bug Fix
|
|
29
|
-
|
|
30
|
-
- Add `beforeAll` hook to CSF types [#96](https://github.com/ComponentDriven/csf/pull/96) ([@ghengeveld](https://github.com/ghengeveld))
|
|
31
|
-
|
|
32
|
-
#### Authors: 2
|
|
33
|
-
|
|
34
|
-
- Gert Hengeveld ([@ghengeveld](https://github.com/ghengeveld))
|
|
35
|
-
- Michael Shilman ([@shilman](https://github.com/shilman))
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
# v0.1.8 (Mon Jun 03 2024)
|
|
40
|
-
|
|
41
|
-
#### π Bug Fix
|
|
42
|
-
|
|
43
|
-
- Add project initialGlobals & component/story globals, deprecate project globals [#92](https://github.com/ComponentDriven/csf/pull/92) ([@shilman](https://github.com/shilman))
|
|
44
|
-
|
|
45
|
-
#### Authors: 1
|
|
46
|
-
|
|
47
|
-
- Michael Shilman ([@shilman](https://github.com/shilman))
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
# v0.1.7 (Mon May 06 2024)
|
|
52
|
-
|
|
53
|
-
#### π Bug Fix
|
|
54
|
-
|
|
55
|
-
- Fix the package name in the readme [#81](https://github.com/ComponentDriven/csf/pull/81) ([@stof](https://github.com/stof))
|
|
56
|
-
- Add utility for tag combination & negation [#80](https://github.com/ComponentDriven/csf/pull/80) ([@shilman](https://github.com/shilman))
|
|
57
|
-
|
|
58
|
-
#### Authors: 2
|
|
59
|
-
|
|
60
|
-
- Christophe Coevoet ([@stof](https://github.com/stof))
|
|
61
|
-
- Michael Shilman ([@shilman](https://github.com/shilman))
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
# v0.1.6 (Tue Apr 30 2024)
|
|
66
|
-
|
|
67
|
-
#### π Bug Fix
|
|
68
|
-
|
|
69
|
-
- Add the beforeEach hook [#82](https://github.com/ComponentDriven/csf/pull/82) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
70
|
-
|
|
71
|
-
#### Authors: 1
|
|
72
|
-
|
|
73
|
-
- Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
77
|
-
# v0.1.5 (Thu Apr 25 2024)
|
|
78
|
-
|
|
79
|
-
#### π Bug Fix
|
|
80
|
-
|
|
81
|
-
- chore: resolve eslint issues [#87](https://github.com/ComponentDriven/csf/pull/87) ([@Cherry](https://github.com/Cherry))
|
|
82
|
-
- fix: better handle readonly InputType options [#85](https://github.com/ComponentDriven/csf/pull/85) ([@Cherry](https://github.com/Cherry))
|
|
83
|
-
|
|
84
|
-
#### Authors: 2
|
|
85
|
-
|
|
86
|
-
- James Ross ([@Cherry](https://github.com/Cherry))
|
|
87
|
-
- Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
# v0.1.4 (Fri Apr 12 2024)
|
|
92
|
-
|
|
93
|
-
#### π Bug Fix
|
|
94
|
-
|
|
95
|
-
- Loosen control type and some fixes [#83](https://github.com/ComponentDriven/csf/pull/83) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
96
|
-
|
|
97
|
-
#### Authors: 1
|
|
98
|
-
|
|
99
|
-
- Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
100
|
-
|
|
101
|
-
---
|
|
102
|
-
|
|
103
|
-
# v0.1.3 (Mon Mar 18 2024)
|
|
104
|
-
|
|
105
|
-
#### π Bug Fix
|
|
106
|
-
|
|
107
|
-
- Fix bad publish [#78](https://github.com/ComponentDriven/csf/pull/78) ([@shilman](https://github.com/shilman))
|
|
108
|
-
- Improve InputType for controls [#75](https://github.com/ComponentDriven/csf/pull/75) ([@Shinigami92](https://github.com/Shinigami92) [@shilman](https://github.com/shilman))
|
|
109
|
-
- Update README [#74](https://github.com/ComponentDriven/csf/pull/74) ([@nkabrown](https://github.com/nkabrown))
|
|
110
|
-
|
|
111
|
-
#### Authors: 4
|
|
112
|
-
|
|
113
|
-
- Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
114
|
-
- Michael Shilman ([@shilman](https://github.com/shilman))
|
|
115
|
-
- Nathan Brown ([@nkabrown](https://github.com/nkabrown))
|
|
116
|
-
- Shinigami ([@Shinigami92](https://github.com/Shinigami92))
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
# v0.1.2 (Wed Nov 22 2023)
|
|
121
|
-
|
|
122
|
-
#### π Bug Fix
|
|
123
|
-
|
|
124
|
-
- Allow loaders to be synchronous or void [#71](https://github.com/ComponentDriven/csf/pull/71) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
125
|
-
- Move `types` condition to the front [#69](https://github.com/ComponentDriven/csf/pull/69) ([@Andarist](https://github.com/Andarist))
|
|
126
|
-
|
|
127
|
-
#### Authors: 2
|
|
128
|
-
|
|
129
|
-
- Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
130
|
-
- Mateusz BurzyΕski ([@Andarist](https://github.com/Andarist))
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
|
|
134
|
-
# v0.1.1 (Fri Jun 02 2023)
|
|
135
|
-
|
|
136
|
-
#### π Bug Fix
|
|
137
|
-
|
|
138
|
-
- Move `types` condition to the front [#70](https://github.com/ComponentDriven/csf/pull/70) ([@Andarist](https://github.com/Andarist))
|
|
139
|
-
|
|
140
|
-
#### Authors: 1
|
|
141
|
-
|
|
142
|
-
- Mateusz BurzyΕski ([@Andarist](https://github.com/Andarist))
|
|
143
|
-
|
|
144
|
-
---
|
|
145
|
-
|
|
146
|
-
# v0.1.0 (Mon Apr 03 2023)
|
|
147
|
-
|
|
148
|
-
#### π Enhancement
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
#### π Bug Fix
|
|
152
|
-
|
|
153
|
-
- Turn Args interfaces into types when passed to decorators [#65](https://github.com/ComponentDriven/csf/pull/65) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
154
|
-
- Improve the startcase implementation to mimick lodash's version more closely [#64](https://github.com/ComponentDriven/csf/pull/64) ([@ndelangen](https://github.com/ndelangen))
|
|
155
|
-
- replace lodash [#62](https://github.com/ComponentDriven/csf/pull/62) ([@ndelangen](https://github.com/ndelangen))
|
|
156
|
-
- Fix bug with meta not working well as generic parameter for StoryObj [#60](https://github.com/ComponentDriven/csf/pull/60) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
157
|
-
- Make sure that index signatures (used in decorators) don't cause unexpected types [#58](https://github.com/ComponentDriven/csf/pull/58) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
158
|
-
- Add strict variants for Args and Paramters to CSF [#57](https://github.com/ComponentDriven/csf/pull/57) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
159
|
-
- Revert stricter parameters [#56](https://github.com/ComponentDriven/csf/pull/56) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
160
|
-
- Use builtin installation of actions/setup-node [#55](https://github.com/ComponentDriven/csf/pull/55) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
161
|
-
- Rename Framework to Renderer [#54](https://github.com/ComponentDriven/csf/pull/54) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
162
|
-
- Rework Framework type to contain `canvasElement` [#53](https://github.com/ComponentDriven/csf/pull/53) ([@tmeasday](https://github.com/tmeasday))
|
|
163
|
-
- Add tags annotation at all levels [#52](https://github.com/ComponentDriven/csf/pull/52) ([@tmeasday](https://github.com/tmeasday))
|
|
164
|
-
- First attempt at bringing new types over [#29](https://github.com/ComponentDriven/csf/pull/29) ([@tmeasday](https://github.com/tmeasday) [@shilman](https://github.com/shilman) [@ghengeveld](https://github.com/ghengeveld) [@wKich](https://github.com/wKich) [@kasperpeulen](https://github.com/kasperpeulen))
|
|
165
|
-
- Revert "Play function can only be set at the story level" [#40](https://github.com/ComponentDriven/csf/pull/40) ([@wKich](https://github.com/wKich) [@shilman](https://github.com/shilman))
|
|
166
|
-
- Add conditional arg types and metadata [#36](https://github.com/ComponentDriven/csf/pull/36) ([@shilman](https://github.com/shilman) [@tmeasday](https://github.com/tmeasday) [@kasperpeulen](https://github.com/kasperpeulen))
|
|
167
|
-
- Re-apply `TArgs` to CSF `render` type [#43](https://github.com/ComponentDriven/csf/pull/43) ([@tmeasday](https://github.com/tmeasday) [@shilman](https://github.com/shilman) [@kasperpeulen](https://github.com/kasperpeulen))
|
|
168
|
-
- Add step to play context and `runStep` to project annotations [#48](https://github.com/ComponentDriven/csf/pull/48) ([@tmeasday](https://github.com/tmeasday) [@shilman](https://github.com/shilman) [@kasperpeulen](https://github.com/kasperpeulen))
|
|
169
|
-
- Sound arg types for CSF3 [#49](https://github.com/ComponentDriven/csf/pull/49) ([@kasperpeulen](https://github.com/kasperpeulen) [@shilman](https://github.com/shilman))
|
|
170
|
-
- ArgsFromMeta utility and generic ArgsStoryFn RT [#51](https://github.com/ComponentDriven/csf/pull/51) ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
171
|
-
- Configure Auto [#50](https://github.com/ComponentDriven/csf/pull/50) ([@shilman](https://github.com/shilman))
|
|
172
|
-
- Only make `TArgs` parameterize `args` and `argTypes` in our default annotations [#33](https://github.com/ComponentDriven/csf/pull/33) ([@tmeasday](https://github.com/tmeasday))
|
|
173
|
-
- Adding Components.studio as a tool using CSF [#13](https://github.com/ComponentDriven/csf/pull/13) ([@georges-gomes](https://github.com/georges-gomes) [@ghengeveld](https://github.com/ghengeveld))
|
|
174
|
-
- Makes name argument for 'toId' optional [#17](https://github.com/ComponentDriven/csf/pull/17) ([@unematiii](https://github.com/unematiii) [@ghengeveld](https://github.com/ghengeveld))
|
|
175
|
-
- use permanent url for the header image [#12](https://github.com/ComponentDriven/csf/pull/12) ([@winkerVSbecks](https://github.com/winkerVSbecks))
|
|
176
|
-
- fix link to image [#10](https://github.com/ComponentDriven/csf/pull/10) ([@winkerVSbecks](https://github.com/winkerVSbecks))
|
|
177
|
-
- Publish under @componentdriven and update README [#8](https://github.com/ComponentDriven/csf/pull/8) ([@winkerVSbecks](https://github.com/winkerVSbecks))
|
|
178
|
-
- Add meta types for CSF [#5](https://github.com/ComponentDriven/csf/pull/5) ([@wKich](https://github.com/wKich))
|
|
179
|
-
- types of csf properties [#3](https://github.com/ComponentDriven/csf/pull/3) ([@atanasster](https://github.com/atanasster) [@ndelangen](https://github.com/ndelangen))
|
|
180
|
-
- Extract @storybook/csf from monorepo [#1](https://github.com/ComponentDriven/csf/pull/1) ([@shilman](https://github.com/shilman))
|
|
181
|
-
|
|
182
|
-
#### β οΈ Pushed to `master`
|
|
183
|
-
|
|
184
|
-
- First commit ([@shilman](https://github.com/shilman))
|
|
185
|
-
|
|
186
|
-
#### π Documentation
|
|
187
|
-
|
|
188
|
-
- added storyNameFromExport(key) in README.md [#2](https://github.com/ComponentDriven/csf/pull/2) ([@georges-gomes](https://github.com/georges-gomes) [@shilman](https://github.com/shilman))
|
|
189
|
-
|
|
190
|
-
#### π© Dependency Updates
|
|
191
|
-
|
|
192
|
-
- Bump handlebars from 4.5.3 to 4.7.7 [#20](https://github.com/ComponentDriven/csf/pull/20) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
193
|
-
- Bump y18n from 4.0.0 to 4.0.3 [#32](https://github.com/ComponentDriven/csf/pull/32) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
194
|
-
- Bump ini from 1.3.5 to 1.3.8 [#18](https://github.com/ComponentDriven/csf/pull/18) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
195
|
-
- Bump yargs-parser from 13.1.1 to 13.1.2 [#15](https://github.com/ComponentDriven/csf/pull/15) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
196
|
-
- Bump lodash from 4.17.15 to 4.17.21 [#21](https://github.com/ComponentDriven/csf/pull/21) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
197
|
-
- Bump hosted-git-info from 2.8.5 to 2.8.9 [#22](https://github.com/ComponentDriven/csf/pull/22) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
198
|
-
- Bump path-parse from 1.0.6 to 1.0.7 [#25](https://github.com/ComponentDriven/csf/pull/25) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
199
|
-
- Bump browserslist from 4.11.1 to 4.16.6 [#23](https://github.com/ComponentDriven/csf/pull/23) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
200
|
-
- Bump acorn from 5.7.3 to 5.7.4 [#27](https://github.com/ComponentDriven/csf/pull/27) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
201
|
-
- Bump ws from 5.2.2 to 5.2.3 [#28](https://github.com/ComponentDriven/csf/pull/28) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
202
|
-
- Bump tar from 4.4.13 to 4.4.19 [#30](https://github.com/ComponentDriven/csf/pull/30) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
203
|
-
- Bump tmpl from 1.0.4 to 1.0.5 [#31](https://github.com/ComponentDriven/csf/pull/31) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
204
|
-
|
|
205
|
-
#### Authors: 12
|
|
206
|
-
|
|
207
|
-
- [@dependabot[bot]](https://github.com/dependabot[bot])
|
|
208
|
-
- Atanas Stoyanov ([@atanasster](https://github.com/atanasster))
|
|
209
|
-
- Dmitriy Lazarev ([@wKich](https://github.com/wKich))
|
|
210
|
-
- Dominic Nguyen ([@domyen](https://github.com/domyen))
|
|
211
|
-
- Georges Gomes ([@georges-gomes](https://github.com/georges-gomes))
|
|
212
|
-
- Gert Hengeveld ([@ghengeveld](https://github.com/ghengeveld))
|
|
213
|
-
- Kasper Peulen ([@kasperpeulen](https://github.com/kasperpeulen))
|
|
214
|
-
- Mati KΓ€rner ([@unematiii](https://github.com/unematiii))
|
|
215
|
-
- Michael Shilman ([@shilman](https://github.com/shilman))
|
|
216
|
-
- Norbert de Langen ([@ndelangen](https://github.com/ndelangen))
|
|
217
|
-
- Tom Coleman ([@tmeasday](https://github.com/tmeasday))
|
|
218
|
-
- Varun Vachhar ([@winkerVSbecks](https://github.com/winkerVSbecks))
|