@aventusjs/storybook 0.0.10 → 0.0.11

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.
Files changed (2) hide show
  1. package/dist/Meta.d.ts +11 -2
  2. package/package.json +2 -1
package/dist/Meta.d.ts CHANGED
@@ -1,6 +1,15 @@
1
- import { Meta as MetaWC } from '@storybook/web-components';
1
+ import { Args as ArgsWC, Meta as MetaWC } from '@storybook/web-components';
2
2
  import { IStoryExport } from './StoryExport';
3
+ import { InputType as InputTypeIntenal, SBScalarType, SBType } from 'storybook/internal/types';
3
4
 
4
- export type Meta = MetaWC & {
5
+ type InputType = Omit<InputTypeIntenal, 'type'> & {
6
+ type?: SBType | SBScalarType['name'] | 'color';
7
+ };
8
+ type ArgTypes<TArgs = ArgsWC> = {
9
+ [name in keyof TArgs]: InputType;
10
+ };
11
+ export type Meta<TArgs = ArgsWC> = Omit<MetaWC<TArgs>, 'argTypes'> & {
5
12
  aventus: IStoryExport;
13
+ argTypes: Partial<ArgTypes<TArgs>>;
6
14
  };
15
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventusjs/storybook",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "description": "Storybook type extension for aventusjs",
6
6
  "scripts": {
@@ -15,6 +15,7 @@
15
15
  "license": "MIT",
16
16
  "devDependencies": {
17
17
  "@types/node": "^20.14.9",
18
+ "storybook": "^8.2.9",
18
19
  "vite": "^5.3.3",
19
20
  "vite-plugin-dts": "^3.9.1"
20
21
  },