@itcase/storybook-config 1.1.65 → 1.1.66

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.
@@ -2,12 +2,12 @@
2
2
 
3
3
  var React = require('react');
4
4
  var castArray = require('lodash/castArray');
5
- var UIContext = require('@itcase/ui/context/UIContext');
6
5
  var index = require('./components/FormSubmitWrapper.js');
7
6
  require('lodash/camelCase');
8
7
  require('@itcase/common');
9
8
  var msw = require('msw');
10
9
  var Notifications = require('@itcase/ui/context/Notifications');
10
+ var UIContext = require('@itcase/ui/context/UIContext');
11
11
 
12
12
  function withExtraProviders(providers) {
13
13
  if (providers === void 0) {
@@ -443,7 +443,7 @@ function withFormSubmitDecorator() {
443
443
  var updatedContext = Object.assign({}, context, {
444
444
  parameters: Object.assign({}, context.parameters)
445
445
  });
446
- return /*#__PURE__*/React.createElement(UIContext.UIProvider, null, hasFormParameters(parameters) ? /*#__PURE__*/React.createElement(index.FormSubmitWrapper, updatedContext, /*#__PURE__*/React.createElement(Story, updatedContext)) : /*#__PURE__*/React.createElement(Story, updatedContext));
446
+ return hasFormParameters(parameters) ? /*#__PURE__*/React.createElement(index.FormSubmitWrapper, updatedContext, /*#__PURE__*/React.createElement(Story, updatedContext)) : /*#__PURE__*/React.createElement(Story, updatedContext);
447
447
  };
448
448
  return decorator;
449
449
  }
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import castArray from 'lodash/castArray';
3
- import { UIProvider } from '@itcase/ui/context/UIContext';
4
3
  import { FormSubmitWrapper } from './components/FormSubmitWrapper.js';
5
4
  import 'lodash/camelCase';
6
5
  import '@itcase/common';
7
6
  import { http, HttpResponse } from 'msw';
8
7
  import { NotificationsProvider } from '@itcase/ui/context/Notifications';
8
+ import { UIProvider } from '@itcase/ui/context/UIContext';
9
9
 
10
10
  function withExtraProviders(providers) {
11
11
  if (providers === void 0) {
@@ -441,7 +441,7 @@ function withFormSubmitDecorator() {
441
441
  var updatedContext = Object.assign({}, context, {
442
442
  parameters: Object.assign({}, context.parameters)
443
443
  });
444
- return /*#__PURE__*/React.createElement(UIProvider, null, hasFormParameters(parameters) ? /*#__PURE__*/React.createElement(FormSubmitWrapper, updatedContext, /*#__PURE__*/React.createElement(Story, updatedContext)) : /*#__PURE__*/React.createElement(Story, updatedContext));
444
+ return hasFormParameters(parameters) ? /*#__PURE__*/React.createElement(FormSubmitWrapper, updatedContext, /*#__PURE__*/React.createElement(Story, updatedContext)) : /*#__PURE__*/React.createElement(Story, updatedContext);
445
445
  };
446
446
  return decorator;
447
447
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.1.65",
3
+ "version": "1.1.66",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {