@repobuddy/storybook 0.11.3 → 0.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.
@@ -36,4 +36,4 @@ export type StorybookBuiltInParams = Partial<BackgroundsParam | GlobalApiBackgro
36
36
  * }
37
37
  * ```
38
38
  */
39
- export declare function defineParameters<P extends Record<string, any>>(parameters: P & StorybookBuiltInParams): P & StorybookBuiltInParams;
39
+ export declare function defineParameters<P extends Record<string, any>>(param: P & StorybookBuiltInParams, ...rest: Array<StorybookBuiltInParams>): StorybookBuiltInParams;
@@ -27,6 +27,6 @@
27
27
  * }
28
28
  * ```
29
29
  */
30
- export function defineParameters(parameters) {
31
- return parameters;
30
+ export function defineParameters(param, ...rest) {
31
+ return rest.reduce((acc, param) => Object.assign(acc, param), param);
32
32
  }
@@ -31,5 +31,6 @@ export declare const codeOnlyBadge: TagBadgeParameter;
31
31
  export declare const snapshotBadge: TagBadgeParameter;
32
32
  export declare const unitBadge: TagBadgeParameter;
33
33
  export declare const integrationBadge: TagBadgeParameter;
34
+ export declare const internalBadge: TagBadgeParameter;
34
35
  export declare const tagBadges: TagBadgeParameters;
35
36
  export {};
@@ -141,6 +141,15 @@ export const integrationBadge = {
141
141
  sidebar: false
142
142
  }
143
143
  };
144
+ export const internalBadge = {
145
+ tags: 'internal',
146
+ badge: {
147
+ text: '🔒',
148
+ bgColor: 'transparent',
149
+ borderColor: 'transparent',
150
+ tooltip: 'Internal'
151
+ }
152
+ };
144
153
  export const tagBadges = [
145
154
  editorBadge,
146
155
  unitBadge,
@@ -153,6 +162,7 @@ export const tagBadges = [
153
162
  propsBadge,
154
163
  todoBadge,
155
164
  codeOnlyBadge,
165
+ internalBadge,
156
166
  snapshotBadge,
157
167
  versionBadge
158
168
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobuddy/storybook",
3
- "version": "0.11.3",
3
+ "version": "0.13.0",
4
4
  "description": "Storybook repo buddy",
5
5
  "keywords": [
6
6
  "storybook",
@@ -42,7 +42,7 @@
42
42
  "!**/*.{spec,test,unit,accept,integrate,system,perf,stress,study,stories}.*"
43
43
  ],
44
44
  "dependencies": {
45
- "@just-web/css": "^0.4.0",
45
+ "@just-web/css": "^0.5.0",
46
46
  "@repobuddy/test": "^1.0.0"
47
47
  },
48
48
  "devDependencies": {
@@ -65,7 +65,7 @@
65
65
  "rimraf": "^6.0.1",
66
66
  "storybook": "^8.6.12",
67
67
  "storybook-addon-tag-badges": "^1.4.0",
68
- "storybook-addon-vis": "^0.19.4",
68
+ "storybook-addon-vis": "^1.0.0",
69
69
  "storybook-dark-mode": "^4.0.2",
70
70
  "tailwindcss": "^4.1.5",
71
71
  "vite": "^6.3.4",
@@ -40,6 +40,9 @@ export type StorybookBuiltInParams = Partial<BackgroundsParam | GlobalApiBackgro
40
40
  * }
41
41
  * ```
42
42
  */
43
- export function defineParameters<P extends Record<string, any>>(parameters: P & StorybookBuiltInParams) {
44
- return parameters
43
+ export function defineParameters<P extends Record<string, any>>(
44
+ param: P & StorybookBuiltInParams,
45
+ ...rest: Array<StorybookBuiltInParams>
46
+ ) {
47
+ return rest.reduce((acc, param) => Object.assign(acc, param), param)
45
48
  }
@@ -157,6 +157,16 @@ export const integrationBadge: TagBadgeParameter = {
157
157
  }
158
158
  }
159
159
 
160
+ export const internalBadge: TagBadgeParameter = {
161
+ tags: 'internal',
162
+ badge: {
163
+ text: '🔒',
164
+ bgColor: 'transparent',
165
+ borderColor: 'transparent',
166
+ tooltip: 'Internal'
167
+ }
168
+ }
169
+
160
170
  export const tagBadges: TagBadgeParameters = [
161
171
  editorBadge,
162
172
  unitBadge,
@@ -169,6 +179,7 @@ export const tagBadges: TagBadgeParameters = [
169
179
  propsBadge,
170
180
  todoBadge,
171
181
  codeOnlyBadge,
182
+ internalBadge,
172
183
  snapshotBadge,
173
184
  versionBadge
174
185
  ]