@repobuddy/storybook 0.8.0 → 0.9.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/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
  */
@@ -41,6 +42,7 @@ export declare const betaBadge: {
41
42
  badge: {
42
43
  text: string;
43
44
  bgColor: string;
45
+ borderColor: string;
44
46
  tooltip: string;
45
47
  };
46
48
  };
@@ -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
  */
@@ -41,7 +42,8 @@ export const betaBadge = {
41
42
  tags: 'beta',
42
43
  badge: {
43
44
  text: '🅱️',
44
- bgColor: 'transparent',
45
+ bgColor: '#E3F2FD',
46
+ borderColor: '#90CAF9',
45
47
  tooltip: 'Beta'
46
48
  }
47
49
  };
@@ -104,7 +106,7 @@ export const unitBadge = {
104
106
  export const integrationBadge = {
105
107
  tags: 'integration',
106
108
  badge: {
107
- text: '🔄',
109
+ text: '🔗',
108
110
  bgColor: 'transparent',
109
111
  tooltip: 'Integration Test'
110
112
  }
@@ -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.0",
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
  */
@@ -45,7 +46,8 @@ export const betaBadge = {
45
46
  tags: 'beta',
46
47
  badge: {
47
48
  text: '🅱️',
48
- bgColor: 'transparent',
49
+ bgColor: '#E3F2FD',
50
+ borderColor: '#90CAF9',
49
51
  tooltip: 'Beta'
50
52
  }
51
53
  }
@@ -116,7 +118,7 @@ export const unitBadge = {
116
118
  export const integrationBadge = {
117
119
  tags: 'integration',
118
120
  badge: {
119
- text: '🔄',
121
+ text: '🔗',
120
122
  bgColor: 'transparent',
121
123
  tooltip: 'Integration Test'
122
124
  }
@@ -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'