@itcase/storybook-config 1.2.77 → 1.2.78

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.
@@ -1,25 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ require('react');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
 
6
- function ClearStoresWrapper({
7
- clearStoreData,
8
- Story
9
- }) {
10
- React.useEffect(() => {
11
- clearStoreData();
12
- }, [Story, clearStoreData]);
13
- return /*#__PURE__*/jsxRuntime.jsx(Story, {});
14
- }
15
6
  function withClearStoresDecorator({
16
7
  clearStoreData
17
8
  }) {
18
9
  const Decorator = Story => {
19
- return /*#__PURE__*/jsxRuntime.jsx(ClearStoresWrapper, {
20
- clearStoreData: clearStoreData,
21
- Story: Story
22
- });
10
+ clearStoreData();
11
+ return /*#__PURE__*/jsxRuntime.jsx(Story, {});
23
12
  };
24
13
  return Decorator;
25
14
  }
@@ -1,23 +1,12 @@
1
- import { useEffect } from 'react';
1
+ import 'react';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
- function ClearStoresWrapper({
5
- clearStoreData,
6
- Story
7
- }) {
8
- useEffect(() => {
9
- clearStoreData();
10
- }, [Story, clearStoreData]);
11
- return /*#__PURE__*/jsx(Story, {});
12
- }
13
4
  function withClearStoresDecorator({
14
5
  clearStoreData
15
6
  }) {
16
7
  const Decorator = Story => {
17
- return /*#__PURE__*/jsx(ClearStoresWrapper, {
18
- clearStoreData: clearStoreData,
19
- Story: Story
20
- });
8
+ clearStoreData();
9
+ return /*#__PURE__*/jsx(Story, {});
21
10
  };
22
11
  return Decorator;
23
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.2.77",
3
+ "version": "1.2.78",
4
4
  "author": "ITCase",
5
5
  "description": "Storybook configuration package",
6
6
  "engines": {