@storybook/server 6.5.9 → 7.0.0-alpha.2

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 (80) hide show
  1. package/README.md +1 -317
  2. package/dist/cjs/{client/index.js → index.js} +12 -11
  3. package/dist/cjs/{client/preview → preview}/config.js +3 -3
  4. package/dist/cjs/{client/preview → preview}/globals.js +3 -1
  5. package/dist/cjs/preview/index.js +47 -0
  6. package/dist/cjs/preview/render.js +113 -0
  7. package/dist/cjs/{client/preview → preview}/types.js +0 -0
  8. package/dist/esm/index.js +3 -0
  9. package/dist/{modern/client → esm}/preview/config.js +0 -0
  10. package/dist/{modern/client → esm}/preview/globals.js +0 -0
  11. package/dist/{modern/client → esm}/preview/index.js +1 -1
  12. package/dist/{modern/client → esm}/preview/render.js +0 -0
  13. package/dist/esm/{client/preview → preview}/types.js +0 -0
  14. package/dist/{ts3.9/client → types}/index.d.ts +0 -0
  15. package/dist/{ts3.9/client → types}/preview/config.d.ts +0 -0
  16. package/dist/{ts3.9/client → types}/preview/globals.d.ts +0 -0
  17. package/dist/{ts3.9/client → types}/preview/index.d.ts +1 -2
  18. package/dist/{ts3.9/client → types}/preview/render.d.ts +0 -0
  19. package/dist/{ts3.9/client → types}/preview/types.d.ts +1 -1
  20. package/package.json +13 -40
  21. package/preview.js +1 -0
  22. package/bin/build.js +0 -4
  23. package/bin/index.js +0 -3
  24. package/dist/cjs/client/preview/index.js +0 -52
  25. package/dist/cjs/client/preview/render.js +0 -192
  26. package/dist/cjs/lib/compiler/index.js +0 -21
  27. package/dist/cjs/lib/compiler/stringifier.js +0 -175
  28. package/dist/cjs/lib/compiler/types.js +0 -1
  29. package/dist/cjs/server/build.js +0 -9
  30. package/dist/cjs/server/framework-preset-server.js +0 -33
  31. package/dist/cjs/server/index.js +0 -9
  32. package/dist/cjs/server/loader.js +0 -14
  33. package/dist/cjs/server/options.js +0 -17
  34. package/dist/esm/client/index.js +0 -5
  35. package/dist/esm/client/preview/config.js +0 -4
  36. package/dist/esm/client/preview/globals.js +0 -3
  37. package/dist/esm/client/preview/index.js +0 -30
  38. package/dist/esm/client/preview/render.js +0 -161
  39. package/dist/esm/lib/compiler/index.js +0 -13
  40. package/dist/esm/lib/compiler/stringifier.js +0 -137
  41. package/dist/esm/lib/compiler/types.js +0 -0
  42. package/dist/esm/server/build.js +0 -3
  43. package/dist/esm/server/framework-preset-server.js +0 -18
  44. package/dist/esm/server/index.js +0 -3
  45. package/dist/esm/server/loader.js +0 -4
  46. package/dist/esm/server/options.js +0 -8
  47. package/dist/modern/client/index.js +0 -5
  48. package/dist/modern/client/preview/types.js +0 -1
  49. package/dist/modern/lib/compiler/index.js +0 -12
  50. package/dist/modern/lib/compiler/stringifier.js +0 -83
  51. package/dist/modern/lib/compiler/types.js +0 -0
  52. package/dist/modern/server/build.js +0 -3
  53. package/dist/modern/server/framework-preset-server.js +0 -18
  54. package/dist/modern/server/index.js +0 -3
  55. package/dist/modern/server/loader.js +0 -4
  56. package/dist/modern/server/options.js +0 -8
  57. package/dist/ts3.4/client/index.d.ts +0 -1
  58. package/dist/ts3.4/client/preview/config.d.ts +0 -4
  59. package/dist/ts3.4/client/preview/globals.d.ts +0 -1
  60. package/dist/ts3.4/client/preview/index.d.ts +0 -21
  61. package/dist/ts3.4/client/preview/render.d.ts +0 -5
  62. package/dist/ts3.4/client/preview/types.d.ts +0 -20
  63. package/dist/ts3.4/lib/compiler/index.d.ts +0 -2
  64. package/dist/ts3.4/lib/compiler/stringifier.d.ts +0 -7
  65. package/dist/ts3.4/lib/compiler/types.d.ts +0 -24
  66. package/dist/ts3.4/server/build.d.ts +0 -1
  67. package/dist/ts3.4/server/framework-preset-server.d.ts +0 -4
  68. package/dist/ts3.4/server/index.d.ts +0 -1
  69. package/dist/ts3.4/server/loader.d.ts +0 -2
  70. package/dist/ts3.4/server/options.d.ts +0 -3
  71. package/dist/ts3.9/lib/compiler/index.d.ts +0 -2
  72. package/dist/ts3.9/lib/compiler/stringifier.d.ts +0 -7
  73. package/dist/ts3.9/lib/compiler/types.d.ts +0 -24
  74. package/dist/ts3.9/server/build.d.ts +0 -1
  75. package/dist/ts3.9/server/framework-preset-server.d.ts +0 -4
  76. package/dist/ts3.9/server/index.d.ts +0 -1
  77. package/dist/ts3.9/server/loader.d.ts +0 -2
  78. package/dist/ts3.9/server/options.d.ts +0 -3
  79. package/preset.js +0 -1
  80. package/standalone.js +0 -8
@@ -1,4 +0,0 @@
1
- import { StorybookConfig } from '@storybook/core-common';
2
- import { Configuration } from 'webpack';
3
- export declare function webpack(config: Configuration): Configuration;
4
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- declare const _default: (content: string) => string;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import { LoadOptions } from '@storybook/core-common';
2
- declare const _default: LoadOptions;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- import { CompileCsfModuleArgs } from './types';
2
- export declare function compileCsfModule(args: CompileCsfModuleArgs): string;
@@ -1,7 +0,0 @@
1
- import { StorybookStory, StorybookSection } from './types';
2
- export declare function stringifyObject(object: any, level?: number, excludeOuterParams?: boolean): string;
3
- export declare function stringifyImports(imports: Record<string, string[]>): string;
4
- export declare function stringifyDecorators(decorators: string[]): string;
5
- export declare function stringifyDefault(section: StorybookSection): string;
6
- export declare function stringifyStory(story: StorybookStory): string;
7
- export declare function stringifySection(section: StorybookSection): string;
@@ -1,24 +0,0 @@
1
- export interface CompileStorybookStoryArgs {
2
- name: string;
3
- [x: string]: any;
4
- }
5
- export interface CompileStorybookSectionArgs {
6
- title: string;
7
- stories: CompileStorybookStoryArgs[];
8
- [x: string]: any;
9
- }
10
- export interface CompileCsfModuleArgs extends CompileStorybookSectionArgs {
11
- addons?: string[];
12
- }
13
- export interface StorybookStory {
14
- name: string;
15
- decorators?: string[];
16
- [x: string]: any;
17
- }
18
- export interface StorybookSection {
19
- imports: Record<string, string[]>;
20
- decorators?: string[];
21
- title: string;
22
- stories: StorybookStory[];
23
- [x: string]: any;
24
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/core-common';
2
- import type { Configuration } from 'webpack';
3
- export declare function webpack(config: Configuration): Configuration;
4
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- declare const _default: (content: string) => string;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import type { LoadOptions } from '@storybook/core-common';
2
- declare const _default: LoadOptions;
3
- export default _default;
package/preset.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./dist/cjs/server/framework-preset-server');
package/standalone.js DELETED
@@ -1,8 +0,0 @@
1
- const build = require('@storybook/core/standalone');
2
- const frameworkOptions = require('./dist/cjs/server/options').default;
3
-
4
- async function buildStandalone(options) {
5
- return build(options, frameworkOptions);
6
- }
7
-
8
- module.exports = buildStandalone;