@storybook/react-webpack5 7.0.0-alpha.49 → 7.0.0-alpha.50

Sign up to get free protection for your applications and to get access to all the features.
package/dist/preset.d.ts CHANGED
@@ -720,39 +720,9 @@ PackageJson$1.NonStandardEntryPoints &
720
720
  PackageJson$1.TypeScriptConfiguration &
721
721
  PackageJson$1.YarnConfiguration &
722
722
  PackageJson$1.JSPMConfiguration;
723
-
724
- declare type StoryId = string;
725
723
  declare type Tag = string;
726
- declare type Parameters$1 = {
724
+ interface Parameters {
727
725
  [name: string]: any;
728
- };
729
- declare type Addon_Comparator<T> = ((a: T, b: T) => boolean) | ((a: T, b: T) => number);
730
- declare type Addon_StorySortMethod = 'configure' | 'alphabetical';
731
- interface Addon_StorySortObjectParameter {
732
- method?: Addon_StorySortMethod;
733
- order?: any[];
734
- locales?: string;
735
- includeNames?: boolean;
736
- }
737
- declare type Addon_IndexEntryLegacy = [StoryId, any, Parameters, Parameters];
738
- declare type Addon_StorySortComparator = Addon_Comparator<Addon_IndexEntryLegacy>;
739
- declare type Addon_StorySortParameter = Addon_StorySortComparator | Addon_StorySortObjectParameter;
740
- interface Addon_OptionsParameter extends Object {
741
- storySort?: Addon_StorySortParameter;
742
- theme?: {
743
- base: string;
744
- brandTitle?: string;
745
- };
746
- [key: string]: any;
747
- }
748
- declare type Layout = 'centered' | 'fullscreen' | 'padded' | 'none';
749
- interface Parameters extends Parameters$1 {
750
- fileName?: string;
751
- options?: Addon_OptionsParameter;
752
- /** The layout property defines basic styles added to the preview body where the story is rendered. If you pass 'none', no styles are applied. */
753
- layout?: Layout;
754
- docsOnly?: boolean;
755
- [key: string]: any;
756
726
  }
757
727
 
758
728
  interface Options$1 {
package/jest.config.js ADDED
@@ -0,0 +1,7 @@
1
+ const path = require('path');
2
+ const baseConfig = require('../../jest.config.node');
3
+
4
+ module.exports = {
5
+ ...baseConfig,
6
+ displayName: __dirname.split(path.sep).slice(-2).join(path.posix.sep),
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-webpack5",
3
- "version": "7.0.0-alpha.49",
3
+ "version": "7.0.0-alpha.50",
4
4
  "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -51,13 +51,13 @@
51
51
  "prep": "../../../scripts/prepare/bundle.ts"
52
52
  },
53
53
  "dependencies": {
54
- "@storybook/builder-webpack5": "7.0.0-alpha.49",
55
- "@storybook/preset-react-webpack": "7.0.0-alpha.49",
56
- "@storybook/react": "7.0.0-alpha.49",
54
+ "@storybook/builder-webpack5": "7.0.0-alpha.50",
55
+ "@storybook/preset-react-webpack": "7.0.0-alpha.50",
56
+ "@storybook/react": "7.0.0-alpha.50",
57
57
  "@types/node": "^16.0.0"
58
58
  },
59
59
  "devDependencies": {
60
- "jest-specific-snapshot": "^4.0.0",
60
+ "jest-specific-snapshot": "^6.0.0",
61
61
  "typescript": "~4.6.3"
62
62
  },
63
63
  "peerDependencies": {
@@ -86,5 +86,5 @@
86
86
  ],
87
87
  "platform": "node"
88
88
  },
89
- "gitHead": "d7eb433300cac55d3c7256c8181eb6fd7a47b4c8"
89
+ "gitHead": "77184d039091f4782dc4540df6d271a24fb3e242"
90
90
  }