@storybook/web-components 8.0.0-alpha.7 → 8.0.0-alpha.8

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/dist/index.d.ts CHANGED
@@ -21,16 +21,6 @@ type StoryFn<TArgs = Args> = AnnotatedStoryFn<WebComponentsRenderer, TArgs>;
21
21
  * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
22
22
  */
23
23
  type StoryObj<TArgs = Args> = StoryAnnotations<WebComponentsRenderer, TArgs>;
24
- /**
25
- * @deprecated Use `StoryFn` instead.
26
- * Use `StoryObj` if you want to migrate to CSF3, which uses objects instead of functions to represent stories.
27
- * You can read more about the CSF3 format here: https://storybook.js.org/blog/component-story-format-3-0/
28
- *
29
- * Story function that represents a CSFv2 component example.
30
- *
31
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
32
- */
33
- type Story<TArgs = Args> = StoryFn<TArgs>;
34
24
  type Decorator<TArgs = StrictArgs> = DecoratorFunction<WebComponentsRenderer, TArgs>;
35
25
  type Loader<TArgs = StrictArgs> = LoaderFunction<WebComponentsRenderer, TArgs>;
36
26
  type StoryContext<TArgs = StrictArgs> = StoryContext$1<WebComponentsRenderer, TArgs>;
@@ -45,4 +35,4 @@ declare function setCustomElements(customElements: any): void;
45
35
  declare function setCustomElementsManifest(customElements: any): void;
46
36
  declare function getCustomElements(): any;
47
37
 
48
- export { Decorator, Loader, Meta, Preview, Story, StoryContext, StoryFn, StoryObj, WebComponentsRenderer, getCustomElements, isValidComponent, isValidMetaData, setCustomElements, setCustomElementsManifest };
38
+ export { Decorator, Loader, Meta, Preview, StoryContext, StoryFn, StoryObj, WebComponentsRenderer, getCustomElements, isValidComponent, isValidMetaData, setCustomElements, setCustomElementsManifest };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/web-components",
3
- "version": "8.0.0-alpha.7",
3
+ "version": "8.0.0-alpha.8",
4
4
  "description": "Storybook web-components renderer",
5
5
  "keywords": [
6
6
  "lit",
@@ -50,12 +50,12 @@
50
50
  "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
51
51
  },
52
52
  "dependencies": {
53
- "@storybook/client-logger": "8.0.0-alpha.7",
54
- "@storybook/docs-tools": "8.0.0-alpha.7",
53
+ "@storybook/client-logger": "8.0.0-alpha.8",
54
+ "@storybook/docs-tools": "8.0.0-alpha.8",
55
55
  "@storybook/global": "^5.0.0",
56
- "@storybook/manager-api": "8.0.0-alpha.7",
57
- "@storybook/preview-api": "8.0.0-alpha.7",
58
- "@storybook/types": "8.0.0-alpha.7",
56
+ "@storybook/manager-api": "8.0.0-alpha.8",
57
+ "@storybook/preview-api": "8.0.0-alpha.8",
58
+ "@storybook/types": "8.0.0-alpha.8",
59
59
  "tiny-invariant": "^1.3.1",
60
60
  "ts-dedent": "^2.0.0"
61
61
  },
@@ -9,9 +9,9 @@ type User = {
9
9
 
10
10
  export interface HeaderProps {
11
11
  user?: User;
12
- onLogin: () => void;
13
- onLogout: () => void;
14
- onCreateAccount: () => void;
12
+ onLogin?: () => void;
13
+ onLogout?: () => void;
14
+ onCreateAccount?: () => void;
15
15
  }
16
16
 
17
17
  export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => html`
@@ -8,9 +8,9 @@ type User = {
8
8
 
9
9
  export interface PageProps {
10
10
  user?: User;
11
- onLogin: () => void;
12
- onLogout: () => void;
13
- onCreateAccount: () => void;
11
+ onLogin?: () => void;
12
+ onLogout?: () => void;
13
+ onCreateAccount?: () => void;
14
14
  }
15
15
 
16
16
  export const Page = ({ user, onLogin, onLogout, onCreateAccount }: PageProps) => html`
@@ -9,9 +9,9 @@ type User = {
9
9
 
10
10
  export interface HeaderProps {
11
11
  user?: User;
12
- onLogin: () => void;
13
- onLogout: () => void;
14
- onCreateAccount: () => void;
12
+ onLogin?: () => void;
13
+ onLogout?: () => void;
14
+ onCreateAccount?: () => void;
15
15
  }
16
16
 
17
17
  export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => html`
@@ -8,9 +8,9 @@ type User = {
8
8
 
9
9
  export interface PageProps {
10
10
  user?: User;
11
- onLogin: () => void;
12
- onLogout: () => void;
13
- onCreateAccount: () => void;
11
+ onLogin?: () => void;
12
+ onLogout?: () => void;
13
+ onCreateAccount?: () => void;
14
14
  }
15
15
 
16
16
  export const Page = ({ user, onLogin, onLogout, onCreateAccount }: PageProps) => html`