@repobuddy/storybook 2.12.0 → 2.13.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.
@@ -8,7 +8,7 @@ type TagBadgeParameter = TagBadgeParameters[0];
8
8
  /**
9
9
  * Type representing the names of predefined tags used in Storybook stories.
10
10
  */
11
- type TagNames = 'editor' | 'new' | 'beta' | 'props' | 'deprecated' | 'outdated' | 'danger' | 'todo' | 'code-only' | 'snapshot' | 'unit' | 'integration' | 'keyboard' | 'internal' | 'usecase' | 'version:next';
11
+ type TagNames = 'editor' | 'source' | 'new' | 'beta' | 'props' | 'deprecated' | 'outdated' | 'danger' | 'todo' | 'code-only' | 'snapshot' | 'unit' | 'integration' | 'keyboard' | 'internal' | 'usecase' | 'version:next';
12
12
  /**
13
13
  * Configuration for story tag badges that appear in the Storybook sidebar.
14
14
  * Each badge is associated with a specific tag and displays an emoji with a tooltip.
@@ -37,6 +37,7 @@ declare const outdatedBadge: TagBadgeParameter;
37
37
  declare const dangerBadge: TagBadgeParameter;
38
38
  declare const todoBadge: TagBadgeParameter;
39
39
  declare const codeOnlyBadge: TagBadgeParameter;
40
+ declare const sourceBadge: TagBadgeParameter;
40
41
  declare const snapshotBadge: TagBadgeParameter;
41
42
  declare const unitBadge: TagBadgeParameter;
42
43
  declare const integrationBadge: TagBadgeParameter;
@@ -115,4 +116,4 @@ type StoryObj<TMetaOrCmpOrArgs = Args> = ExtendStoryObj<TMetaOrCmpOrArgs, StoryO
115
116
  tag: TagNames;
116
117
  }>;
117
118
  //#endregion
118
- export { Meta, StoryObj, TagNames, betaBadge, codeOnlyBadge, dangerBadge, deprecatedBadge, editorBadge, integrationBadge, internalBadge, keyboardBadge, newBadge, outdatedBadge, propsBadge, snapshotBadge, tagBadges, todoBadge, unitBadge };
119
+ export { Meta, StoryObj, TagNames, betaBadge, codeOnlyBadge, dangerBadge, deprecatedBadge, editorBadge, integrationBadge, internalBadge, keyboardBadge, newBadge, outdatedBadge, propsBadge, snapshotBadge, sourceBadge, tagBadges, todoBadge, unitBadge };
@@ -123,7 +123,20 @@ const codeOnlyBadge = {
123
123
  borderColor: "transparent"
124
124
  },
125
125
  tooltip: "Code Only"
126
- }
126
+ },
127
+ display: { mdx: false }
128
+ };
129
+ const sourceBadge = {
130
+ tags: "source",
131
+ badge: {
132
+ text: "</>",
133
+ style: {
134
+ backgroundColor: "transparent",
135
+ borderColor: "transparent"
136
+ },
137
+ tooltip: "Source Code"
138
+ },
139
+ display: { mdx: false }
127
140
  };
128
141
  const snapshotBadge = {
129
142
  tags: "snapshot",
@@ -188,6 +201,7 @@ const internalBadge = {
188
201
  };
189
202
  const tagBadges = [
190
203
  editorBadge,
204
+ sourceBadge,
191
205
  unitBadge,
192
206
  integrationBadge,
193
207
  keyboardBadge,
@@ -205,4 +219,4 @@ const tagBadges = [
205
219
  ];
206
220
 
207
221
  //#endregion
208
- export { betaBadge, codeOnlyBadge, dangerBadge, deprecatedBadge, editorBadge, integrationBadge, internalBadge, keyboardBadge, newBadge, outdatedBadge, propsBadge, snapshotBadge, tagBadges, todoBadge, unitBadge };
222
+ export { betaBadge, codeOnlyBadge, dangerBadge, deprecatedBadge, editorBadge, integrationBadge, internalBadge, keyboardBadge, newBadge, outdatedBadge, propsBadge, snapshotBadge, sourceBadge, tagBadges, todoBadge, unitBadge };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobuddy/storybook",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "Storybook repo buddy",
5
5
  "keywords": [
6
6
  "storybook",
@@ -9,6 +9,7 @@ type TagBadgeParameter = TagBadgeParameters[0]
9
9
  */
10
10
  export type TagNames =
11
11
  | 'editor'
12
+ | 'source'
12
13
  | 'new'
13
14
  | 'beta'
14
15
  | 'props'
@@ -155,6 +156,24 @@ export const codeOnlyBadge: TagBadgeParameter = {
155
156
  borderColor: 'transparent'
156
157
  },
157
158
  tooltip: 'Code Only'
159
+ },
160
+ display: {
161
+ mdx: false
162
+ }
163
+ }
164
+
165
+ export const sourceBadge: TagBadgeParameter = {
166
+ tags: 'source',
167
+ badge: {
168
+ text: '</>',
169
+ style: {
170
+ backgroundColor: 'transparent',
171
+ borderColor: 'transparent'
172
+ },
173
+ tooltip: 'Source Code'
174
+ },
175
+ display: {
176
+ mdx: false
158
177
  }
159
178
  }
160
179
 
@@ -230,6 +249,7 @@ export const internalBadge: TagBadgeParameter = {
230
249
 
231
250
  export const tagBadges: TagBadgeParameters = [
232
251
  editorBadge,
252
+ sourceBadge,
233
253
  unitBadge,
234
254
  integrationBadge,
235
255
  keyboardBadge,