@storybook/angular 8.3.0-alpha.6 → 8.3.0-alpha.7

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 (42) hide show
  1. package/dist/client/angular-beta/AbstractRenderer.d.ts +16 -15
  2. package/dist/client/angular-beta/AbstractRenderer.js +16 -15
  3. package/dist/client/angular-beta/ComputesTemplateFromComponent.d.ts +4 -2
  4. package/dist/client/angular-beta/ComputesTemplateFromComponent.js +7 -8
  5. package/dist/client/angular-beta/DocsRenderer.js +6 -9
  6. package/dist/client/angular-beta/StorybookModule.js +1 -3
  7. package/dist/client/angular-beta/StorybookModule.test.js +6 -6
  8. package/dist/client/angular-beta/StorybookWrapperComponent.d.ts +1 -3
  9. package/dist/client/angular-beta/StorybookWrapperComponent.js +1 -3
  10. package/dist/client/angular-beta/utils/BootstrapQueue.d.ts +5 -7
  11. package/dist/client/angular-beta/utils/BootstrapQueue.js +8 -13
  12. package/dist/client/angular-beta/utils/BootstrapQueue.test.js +2 -1
  13. package/dist/client/angular-beta/utils/NgComponentAnalyzer.d.ts +3 -10
  14. package/dist/client/angular-beta/utils/NgComponentAnalyzer.js +3 -10
  15. package/dist/client/angular-beta/utils/PropertyExtractor.d.ts +0 -2
  16. package/dist/client/angular-beta/utils/PropertyExtractor.js +0 -2
  17. package/dist/client/angular-beta/utils/StoryUID.d.ts +8 -9
  18. package/dist/client/angular-beta/utils/StoryUID.js +9 -12
  19. package/dist/client/argsToTemplate.d.ts +13 -12
  20. package/dist/client/argsToTemplate.js +8 -6
  21. package/dist/client/decorators.d.ts +3 -4
  22. package/dist/client/decorators.js +3 -4
  23. package/dist/client/docs/__testfixtures__/doc-button/input.d.ts +7 -8
  24. package/dist/client/docs/__testfixtures__/doc-button/input.js +7 -8
  25. package/dist/client/docs/sourceDecorator.d.ts +2 -1
  26. package/dist/client/docs/sourceDecorator.js +2 -1
  27. package/dist/client/globals.d.ts +9 -11
  28. package/dist/client/globals.js +14 -20
  29. package/dist/client/types.d.ts +6 -6
  30. package/dist/server/angular-cli-webpack.js +6 -10
  31. package/dist/server/framework-preset-angular-cli.js +6 -15
  32. package/dist/server/framework-preset-angular-ivy.d.ts +2 -2
  33. package/dist/server/framework-preset-angular-ivy.js +10 -10
  34. package/dist/server/plugins/storybook-normalize-angular-entry-plugin.d.ts +4 -3
  35. package/dist/server/plugins/storybook-normalize-angular-entry-plugin.js +4 -3
  36. package/dist/types.d.ts +1 -3
  37. package/package.json +8 -8
  38. package/scripts/postbuild.js +5 -4
  39. package/template/cli/button.component.ts +11 -19
  40. package/template/cli/header.component.ts +47 -50
  41. package/template/cli/page.component.ts +54 -54
  42. package/.eslintrc.js +0 -16
@@ -9,60 +9,60 @@ import type { User } from './user';
9
9
  standalone: true,
10
10
  imports: [CommonModule, HeaderComponent],
11
11
  template: `<article>
12
- <storybook-header
13
- [user]="user"
14
- (onLogout)="doLogout()"
15
- (onLogin)="doLogin()"
16
- (onCreateAccount)="doCreateAccount()"
17
- ></storybook-header>
18
- <section class="storybook-page">
19
- <h2>Pages in Storybook</h2>
20
- <p>
21
- We recommend building UIs with a
22
- <a href="https://componentdriven.org" target="_blank" rel="noopener noreferrer">
23
- <strong>component-driven</strong>
24
- </a>
25
- process starting with atomic components and ending with pages.
26
- </p>
27
- <p>
28
- Render pages with mock data. This makes it easy to build and review page states without
29
- needing to navigate to them in your app. Here are some handy patterns for managing page data
30
- in Storybook:
31
- </p>
32
- <ul>
33
- <li>
34
- Use a higher-level connected component. Storybook helps you compose such data from the
35
- "args" of child component stories
36
- </li>
37
- <li>
38
- Assemble data in the page component from your services. You can mock these services out
39
- using Storybook.
40
- </li>
41
- </ul>
42
- <p>
43
- Get a guided tutorial on component-driven development at
44
- <a href="https://storybook.js.org/tutorials/" target="_blank" rel="noopener noreferrer">
45
- Storybook tutorials
46
- </a>
47
- . Read more in the
48
- <a href="https://storybook.js.org/docs" target="_blank" rel="noopener noreferrer"> docs </a>
49
- .
50
- </p>
51
- <div class="tip-wrapper">
52
- <span class="tip">Tip</span> Adjust the width of the canvas with the
53
- <svg width="10" height="10" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">
54
- <g fill="none" fillRule="evenodd">
55
- <path
56
- d="M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z"
57
- id="a"
58
- fill="#999"
59
- />
60
- </g>
61
- </svg>
62
- Viewports addon in the toolbar
63
- </div>
64
- </section>
65
- </article>`,
12
+ <storybook-header
13
+ [user]="user"
14
+ (onLogout)="doLogout()"
15
+ (onLogin)="doLogin()"
16
+ (onCreateAccount)="doCreateAccount()"
17
+ ></storybook-header>
18
+ <section class="storybook-page">
19
+ <h2>Pages in Storybook</h2>
20
+ <p>
21
+ We recommend building UIs with a
22
+ <a href="https://componentdriven.org" target="_blank" rel="noopener noreferrer">
23
+ <strong>component-driven</strong>
24
+ </a>
25
+ process starting with atomic components and ending with pages.
26
+ </p>
27
+ <p>
28
+ Render pages with mock data. This makes it easy to build and review page states without
29
+ needing to navigate to them in your app. Here are some handy patterns for managing page data
30
+ in Storybook:
31
+ </p>
32
+ <ul>
33
+ <li>
34
+ Use a higher-level connected component. Storybook helps you compose such data from the
35
+ "args" of child component stories
36
+ </li>
37
+ <li>
38
+ Assemble data in the page component from your services. You can mock these services out
39
+ using Storybook.
40
+ </li>
41
+ </ul>
42
+ <p>
43
+ Get a guided tutorial on component-driven development at
44
+ <a href="https://storybook.js.org/tutorials/" target="_blank" rel="noopener noreferrer">
45
+ Storybook tutorials
46
+ </a>
47
+ . Read more in the
48
+ <a href="https://storybook.js.org/docs" target="_blank" rel="noopener noreferrer"> docs </a>
49
+ .
50
+ </p>
51
+ <div class="tip-wrapper">
52
+ <span class="tip">Tip</span> Adjust the width of the canvas with the
53
+ <svg width="10" height="10" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">
54
+ <g fill="none" fillRule="evenodd">
55
+ <path
56
+ d="M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z"
57
+ id="a"
58
+ fill="#999"
59
+ />
60
+ </g>
61
+ </svg>
62
+ Viewports addon in the toolbar
63
+ </div>
64
+ </section>
65
+ </article>`,
66
66
  styleUrls: ['./page.css'],
67
67
  })
68
68
  export class PageComponent {
package/.eslintrc.js DELETED
@@ -1,16 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- '@typescript-eslint/consistent-type-imports': [
4
- 'error',
5
- { prefer: 'no-type-imports', disallowTypeAnnotations: false },
6
- ],
7
- },
8
- overrides: [
9
- {
10
- files: ['template/**/*.*'],
11
- rules: {
12
- 'import/no-extraneous-dependencies': 'off',
13
- },
14
- },
15
- ],
16
- };