@@ -8,34 +8,78 @@ const managerApiPath = path.join(__dirname, '../core/src/manager-api');
8
8
9
9
const config : StorybookConfig = {
10
10
stories : [
11
+ {
12
+ directory : '../core/template/stories' ,
13
+ titlePrefix : 'core' ,
14
+ } ,
11
15
{
12
16
directory : '../core/src/manager' ,
13
- titlePrefix : '@ manager' ,
17
+ titlePrefix : 'manager' ,
14
18
} ,
15
19
{
16
20
directory : '../core/src/preview-api' ,
17
- titlePrefix : '@preview' ,
21
+ titlePrefix : 'preview' ,
22
+ } ,
23
+ {
24
+ directory : '../core/src/components/brand' ,
25
+ titlePrefix : 'brand' ,
18
26
} ,
19
27
{
20
- directory : '../core/src/components' ,
21
- titlePrefix : '@ components' ,
28
+ directory : '../core/src/components/components ' ,
29
+ titlePrefix : 'components' ,
22
30
} ,
23
31
{
24
32
directory : '../lib/blocks/src' ,
25
- titlePrefix : '@blocks' ,
33
+ titlePrefix : 'blocks' ,
34
+ } ,
35
+ {
36
+ directory : '../addons/a11y/template/stories' ,
37
+ titlePrefix : 'addons/a11y' ,
38
+ } ,
39
+ {
40
+ directory : '../addons/actions/template/stories' ,
41
+ titlePrefix : 'addons/actions' ,
42
+ } ,
43
+ {
44
+ directory : '../addons/backgrounds/template/stories' ,
45
+ titlePrefix : 'addons/backgrounds' ,
26
46
} ,
27
47
{
28
48
directory : '../addons/controls/src' ,
29
- titlePrefix : '@addons/controls' ,
49
+ titlePrefix : 'addons/controls' ,
50
+ } ,
51
+ {
52
+ directory : '../addons/controls/template/stories' ,
53
+ titlePrefix : 'addons/controls' ,
54
+ } ,
55
+ {
56
+ directory : '../addons/docs/template/stories' ,
57
+ titlePrefix : 'addons/docs' ,
58
+ } ,
59
+ {
60
+ directory : '../addons/links/template/stories' ,
61
+ titlePrefix : 'addons/links' ,
62
+ } ,
63
+ {
64
+ directory : '../addons/viewport/template/stories' ,
65
+ titlePrefix : 'addons/viewport' ,
66
+ } ,
67
+ {
68
+ directory : '../addons/toolbars/template/stories' ,
69
+ titlePrefix : 'addons/toolbars' ,
30
70
} ,
31
71
{
32
72
directory : '../addons/onboarding/src' ,
33
- titlePrefix : '@ addons/onboarding' ,
73
+ titlePrefix : 'addons/onboarding' ,
34
74
} ,
35
75
{
36
76
directory : '../addons/interactions/src' ,
37
- titlePrefix : '@ addons/interactions' ,
77
+ titlePrefix : 'addons/interactions' ,
38
78
} ,
79
+ // {
80
+ // directory: '../addons/interactions/template/stories',
81
+ // titlePrefix: 'addons/interactions',
82
+ // },
39
83
] ,
40
84
addons : [
41
85
'@storybook/addon-links' ,
@@ -46,6 +90,11 @@ const config: StorybookConfig = {
46
90
'@storybook/addon-a11y' ,
47
91
'@chromatic-com/storybook' ,
48
92
] ,
93
+ previewAnnotations : [
94
+ './core/template/stories/preview.ts' ,
95
+ './addons/toolbars/template/stories/preview.ts' ,
96
+ './renderers/react/template/components/index.js' ,
97
+ ] ,
49
98
build : {
50
99
test : {
51
100
// we have stories for the blocks here, we can't exclude them
@@ -58,9 +107,21 @@ const config: StorybookConfig = {
58
107
name : '@storybook/react-vite' ,
59
108
options : { } ,
60
109
} ,
110
+ refs : {
111
+ icons : {
112
+ title : 'Icons' ,
113
+ url : 'https://main--64b56e737c0aeefed9d5e675.chromatic.com' ,
114
+ expanded : false ,
115
+ } ,
116
+ } ,
61
117
core : {
62
118
disableTelemetry : true ,
63
119
} ,
120
+ features : {
121
+ viewportStoryGlobals : true ,
122
+ themesStoryGlobals : true ,
123
+ backgroundsStoryGlobals : true ,
124
+ } ,
64
125
viteFinal : ( viteConfig , { configType } ) =>
65
126
mergeConfig ( viteConfig , {
66
127
resolve : {
@@ -81,7 +142,7 @@ const config: StorybookConfig = {
81
142
sourcemap : process . env . CI !== 'true' ,
82
143
} ,
83
144
} ) ,
84
- logLevel : 'debug' ,
145
+ // logLevel: 'debug',
85
146
} ;
86
147
87
148
export default config ;
0 commit comments