@itcase/storybook-config 1.1.52 → 1.1.53

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.
@@ -12,7 +12,9 @@ function FormSubmitWrapper(props) {
12
12
  }
13
13
  }, [formRef]);
14
14
  return /*#__PURE__*/React.cloneElement(props.children, {
15
- ref: formRef
15
+ args: Object.assign({}, props.args, {
16
+ ref: formRef
17
+ })
16
18
  });
17
19
  }
18
20
 
@@ -449,7 +449,7 @@ function withNextDecoratorFactory(_ref) {
449
449
  if (hasFormParameters(parameters) && !parameters.formUrl) {
450
450
  throw new Error('Set "formUrl" in stories!');
451
451
  }
452
- return /*#__PURE__*/React.createElement(RootStoreProvider, parameters.storesData, /*#__PURE__*/React.createElement(UIContext.UIProvider, null, /*#__PURE__*/React.createElement(Notifications.NotificationsProvider, null, hasFormParameters(parameters) ? /*#__PURE__*/React.createElement(index.FormSubmitWrapper, null, /*#__PURE__*/React.createElement(Story, updatedContext)) : /*#__PURE__*/React.createElement(Story, updatedContext))));
452
+ return /*#__PURE__*/React.createElement(RootStoreProvider, parameters.storesData, /*#__PURE__*/React.createElement(UIContext.UIProvider, null, /*#__PURE__*/React.createElement(Notifications.NotificationsProvider, null, hasFormParameters(parameters) ? /*#__PURE__*/React.createElement(index.FormSubmitWrapper, updatedContext, /*#__PURE__*/React.createElement(Story, updatedContext)) : /*#__PURE__*/React.createElement(Story, updatedContext))));
453
453
  };
454
454
  return decorator;
455
455
  }
@@ -10,7 +10,9 @@ function FormSubmitWrapper(props) {
10
10
  }
11
11
  }, [formRef]);
12
12
  return /*#__PURE__*/React.cloneElement(props.children, {
13
- ref: formRef
13
+ args: Object.assign({}, props.args, {
14
+ ref: formRef
15
+ })
14
16
  });
15
17
  }
16
18
 
@@ -447,7 +447,7 @@ function withNextDecoratorFactory(_ref) {
447
447
  if (hasFormParameters(parameters) && !parameters.formUrl) {
448
448
  throw new Error('Set "formUrl" in stories!');
449
449
  }
450
- return /*#__PURE__*/React.createElement(RootStoreProvider, parameters.storesData, /*#__PURE__*/React.createElement(UIProvider, null, /*#__PURE__*/React.createElement(NotificationsProvider, null, hasFormParameters(parameters) ? /*#__PURE__*/React.createElement(FormSubmitWrapper, null, /*#__PURE__*/React.createElement(Story, updatedContext)) : /*#__PURE__*/React.createElement(Story, updatedContext))));
450
+ return /*#__PURE__*/React.createElement(RootStoreProvider, parameters.storesData, /*#__PURE__*/React.createElement(UIProvider, null, /*#__PURE__*/React.createElement(NotificationsProvider, null, hasFormParameters(parameters) ? /*#__PURE__*/React.createElement(FormSubmitWrapper, updatedContext, /*#__PURE__*/React.createElement(Story, updatedContext)) : /*#__PURE__*/React.createElement(Story, updatedContext))));
451
451
  };
452
452
  return decorator;
453
453
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.1.52",
3
+ "version": "1.1.53",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {