@repobuddy/storybook 0.8.0 → 0.9.1

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/esm/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  export * from '@repobuddy/test';
2
- export * from './decorators/show_doc_source.tsx';
3
- export * from './decorators/when_running_in_test.tsx';
4
2
  export * from './parameters/define_actions_param.ts';
5
3
  export * from './parameters/define_backgrounds_param.ts';
6
4
  export * from './parameters/define_docs_param.ts';
package/esm/index.js CHANGED
@@ -1,6 +1,4 @@
1
1
  export * from '@repobuddy/test';
2
- export * from "./decorators/show_doc_source.js";
3
- export * from "./decorators/when_running_in_test.js";
4
2
  export * from "./parameters/define_actions_param.js";
5
3
  export * from "./parameters/define_backgrounds_param.js";
6
4
  export * from "./parameters/define_docs_param.js";
@@ -0,0 +1,2 @@
1
+ export * from './brand_title.ts';
2
+ export * from './tag_badges.ts';
@@ -0,0 +1,2 @@
1
+ export * from "./brand_title.js";
2
+ export * from "./tag_badges.js";
@@ -12,8 +12,9 @@ import { type TagBadgeParameters } from 'storybook-addon-tag-badges';
12
12
  * - 🚨 Danger - Stories demonstrating dangerous patterns
13
13
  * - 📋 Todo - Stories marked as todo/incomplete
14
14
  * - 📝 Code Only - Stories without visual examples
15
+ * - 📸 Snapshot - Stories with snapshot tests
15
16
  * - 🧪 Unit - Stories with unit tests
16
- * - 🔄 Integration - Stories with integration tests
17
+ * - 🔗 Integration - Stories with integration tests
17
18
  *
18
19
  * Also includes the default version badge from `storybook-addon-tag-badges`.
19
20
  */
@@ -26,6 +27,7 @@ export declare const editorBadge: {
26
27
  };
27
28
  display: {
28
29
  sidebar: string[];
30
+ toolbar: string[];
29
31
  };
30
32
  };
31
33
  export declare const newBadge: {
@@ -41,6 +43,7 @@ export declare const betaBadge: {
41
43
  badge: {
42
44
  text: string;
43
45
  bgColor: string;
46
+ borderColor: string;
44
47
  tooltip: string;
45
48
  };
46
49
  };
@@ -91,6 +94,10 @@ export declare const snapshotBadge: {
91
94
  bgColor: string;
92
95
  tooltip: string;
93
96
  };
97
+ display: {
98
+ sidebar: string[];
99
+ toolbar: string[];
100
+ };
94
101
  };
95
102
  export declare const unitBadge: {
96
103
  tags: string;
@@ -13,8 +13,9 @@ const [, , , , , , versionBadge] = defaultConfig;
13
13
  * - 🚨 Danger - Stories demonstrating dangerous patterns
14
14
  * - 📋 Todo - Stories marked as todo/incomplete
15
15
  * - 📝 Code Only - Stories without visual examples
16
+ * - 📸 Snapshot - Stories with snapshot tests
16
17
  * - 🧪 Unit - Stories with unit tests
17
- * - 🔄 Integration - Stories with integration tests
18
+ * - 🔗 Integration - Stories with integration tests
18
19
  *
19
20
  * Also includes the default version badge from `storybook-addon-tag-badges`.
20
21
  */
@@ -26,7 +27,8 @@ export const editorBadge = {
26
27
  tooltip: 'Editor'
27
28
  },
28
29
  display: {
29
- sidebar: ['story']
30
+ sidebar: ['group', 'component', 'story'],
31
+ toolbar: ['group', 'component', 'story']
30
32
  }
31
33
  };
32
34
  export const newBadge = {
@@ -41,7 +43,8 @@ export const betaBadge = {
41
43
  tags: 'beta',
42
44
  badge: {
43
45
  text: '🅱️',
44
- bgColor: 'transparent',
46
+ bgColor: '#E3F2FD',
47
+ borderColor: '#90CAF9',
45
48
  tooltip: 'Beta'
46
49
  }
47
50
  };
@@ -91,6 +94,10 @@ export const snapshotBadge = {
91
94
  text: '📸',
92
95
  bgColor: 'transparent',
93
96
  tooltip: 'Snapshot Test'
97
+ },
98
+ display: {
99
+ sidebar: ['story'],
100
+ toolbar: ['story']
94
101
  }
95
102
  };
96
103
  export const unitBadge = {
@@ -104,7 +111,7 @@ export const unitBadge = {
104
111
  export const integrationBadge = {
105
112
  tags: 'integration',
106
113
  badge: {
107
- text: '🔄',
114
+ text: '🔗',
108
115
  bgColor: 'transparent',
109
116
  tooltip: 'Integration Test'
110
117
  }
@@ -0,0 +1,2 @@
1
+ export * from './decorators/show_doc_source.tsx';
2
+ export * from './decorators/when_running_in_test.tsx';
@@ -0,0 +1,2 @@
1
+ export * from "./decorators/show_doc_source.js";
2
+ export * from "./decorators/when_running_in_test.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobuddy/storybook",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "Storybook repo buddy",
5
5
  "keywords": [
6
6
  "storybook",
@@ -20,8 +20,12 @@
20
20
  "default": "./esm/index.js"
21
21
  },
22
22
  "./manager": {
23
- "types": "./esm/manager.d.ts",
24
- "default": "./esm/manager.js"
23
+ "types": "./esm/manager/index.d.ts",
24
+ "default": "./esm/manager/index.js"
25
+ },
26
+ "./react": {
27
+ "types": "./esm/react/index.d.ts",
28
+ "default": "./esm/react/index.js"
25
29
  },
26
30
  "./testing": {
27
31
  "types": "./esm/testing.d.ts",
@@ -37,7 +41,7 @@
37
41
  "@repobuddy/test": "^1.0.0"
38
42
  },
39
43
  "devDependencies": {
40
- "@repobuddy/vitest": "^1.2.1",
44
+ "@repobuddy/vitest": "^1.2.2",
41
45
  "@storybook/addon-essentials": "^8.6.12",
42
46
  "@storybook/addon-storysource": "^8.6.12",
43
47
  "@storybook/blocks": "^8.6.12",
package/readme.md CHANGED
@@ -72,8 +72,9 @@ we provide a different set of badges that uses emojis:
72
72
  - 🚨 Dangerous
73
73
  - 📋 To-do items
74
74
  - 📝 Code-only stories
75
+ - 📸 Snapshot tests
75
76
  - 🧪 Unit tests
76
- - 🔄 Integration tests
77
+ - 🔗 Integration tests
77
78
  - Version indicators (unchanged)
78
79
 
79
80
  To use them, add them to your `.storybook/manager.ts`:
package/src/index.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  export * from '@repobuddy/test'
2
- export * from './decorators/show_doc_source.tsx'
3
- export * from './decorators/when_running_in_test.tsx'
4
2
  export * from './parameters/define_actions_param.ts'
5
3
  export * from './parameters/define_backgrounds_param.ts'
6
4
  export * from './parameters/define_docs_param.ts'
@@ -0,0 +1,2 @@
1
+ export * from './brand_title.ts'
2
+ export * from './tag_badges.ts'
@@ -15,8 +15,9 @@ const [, , , , , , versionBadge] = defaultConfig
15
15
  * - 🚨 Danger - Stories demonstrating dangerous patterns
16
16
  * - 📋 Todo - Stories marked as todo/incomplete
17
17
  * - 📝 Code Only - Stories without visual examples
18
+ * - 📸 Snapshot - Stories with snapshot tests
18
19
  * - 🧪 Unit - Stories with unit tests
19
- * - 🔄 Integration - Stories with integration tests
20
+ * - 🔗 Integration - Stories with integration tests
20
21
  *
21
22
  * Also includes the default version badge from `storybook-addon-tag-badges`.
22
23
  */
@@ -28,7 +29,8 @@ export const editorBadge = {
28
29
  tooltip: 'Editor'
29
30
  },
30
31
  display: {
31
- sidebar: ['story']
32
+ sidebar: ['group', 'component', 'story'],
33
+ toolbar: ['group', 'component', 'story']
32
34
  }
33
35
  }
34
36
 
@@ -45,7 +47,8 @@ export const betaBadge = {
45
47
  tags: 'beta',
46
48
  badge: {
47
49
  text: '🅱️',
48
- bgColor: 'transparent',
50
+ bgColor: '#E3F2FD',
51
+ borderColor: '#90CAF9',
49
52
  tooltip: 'Beta'
50
53
  }
51
54
  }
@@ -101,6 +104,10 @@ export const snapshotBadge = {
101
104
  text: '📸',
102
105
  bgColor: 'transparent',
103
106
  tooltip: 'Snapshot Test'
107
+ },
108
+ display: {
109
+ sidebar: ['story'],
110
+ toolbar: ['story']
104
111
  }
105
112
  }
106
113
 
@@ -116,7 +123,7 @@ export const unitBadge = {
116
123
  export const integrationBadge = {
117
124
  tags: 'integration',
118
125
  badge: {
119
- text: '🔄',
126
+ text: '🔗',
120
127
  bgColor: 'transparent',
121
128
  tooltip: 'Integration Test'
122
129
  }
@@ -0,0 +1,2 @@
1
+ export * from './decorators/show_doc_source.tsx'
2
+ export * from './decorators/when_running_in_test.tsx'
package/esm/manager.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './manager/brand_title.ts';
2
- export * from './manager/tag_badges.ts';
package/esm/manager.js DELETED
@@ -1,2 +0,0 @@
1
- export * from "./manager/brand_title.js";
2
- export * from "./manager/tag_badges.js";
package/src/manager.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './manager/brand_title.ts'
2
- export * from './manager/tag_badges.ts'