@itcase/storybook-config 1.2.47 → 1.2.48

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,7 +2,7 @@
2
2
 
3
3
  var _rollupPluginBabelHelpers = require('../../_rollupPluginBabelHelpers-Wvf9ehn_.js');
4
4
  var React = require('react');
5
- var castArray = require('lodash/castArray');
5
+ var r = require('lodash/castArray');
6
6
 
7
7
  function withFigmaSourceLink() {
8
8
  var decorator = function decorator(Story, _ref) {
@@ -10,7 +10,7 @@ function withFigmaSourceLink() {
10
10
  context = _ref.context;
11
11
  var sourceLink = parameters.sourceLink || {};
12
12
  if (parameters.design) {
13
- var designList = castArray(parameters.design);
13
+ var designList = r(parameters.design);
14
14
  if (!sourceLink.links) {
15
15
  sourceLink.links = {};
16
16
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _rollupPluginBabelHelpers = require('../../_rollupPluginBabelHelpers-Wvf9ehn_.js');
4
4
  var React = require('react');
5
- var Notification = require('../../Notification-CjVZJ18f.js');
5
+ var Notification = require('../../Notification-CskLjIM7.js');
6
6
  require('@itcase/common');
7
7
  require('lodash/camelCase');
8
8
  require('lodash/castArray');
@@ -32,9 +32,9 @@ function withNextDecoratorFactory(_ref) {
32
32
  pageProps: appArgs
33
33
  });
34
34
  }
35
- return /*#__PURE__*/React.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React.createElement(Notification.UIProvider, null, /*#__PURE__*/React.createElement(Notification.NotificationsProvider, {
35
+ return /*#__PURE__*/React.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React.createElement(Notification.d, null, /*#__PURE__*/React.createElement(Notification.m, {
36
36
  initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
37
- }, /*#__PURE__*/React.createElement(Notification.NotificationWrapper, {
37
+ }, /*#__PURE__*/React.createElement(Notification.P, {
38
38
  className: "notification_global notification_global_right_top"
39
39
  }), /*#__PURE__*/React.createElement(Story, appContext))));
40
40
  };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var Notification = require('../../Notification-CjVZJ18f.js');
4
+ var Notification = require('../../Notification-CskLjIM7.js');
5
5
  require('@itcase/common');
6
6
  require('lodash/camelCase');
7
7
  require('lodash/castArray');
@@ -12,9 +12,9 @@ require('react-dom');
12
12
  function withUiDecorator(Story, _ref) {
13
13
  var args = _ref.args,
14
14
  parameters = _ref.parameters;
15
- return /*#__PURE__*/React.createElement(Notification.UIProvider, null, /*#__PURE__*/React.createElement(Notification.NotificationsProvider, {
15
+ return /*#__PURE__*/React.createElement(Notification.d, null, /*#__PURE__*/React.createElement(Notification.m, {
16
16
  initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
17
- }, /*#__PURE__*/React.createElement(Notification.NotificationWrapper, null), /*#__PURE__*/React.createElement(Story, null)));
17
+ }, /*#__PURE__*/React.createElement(Notification.P, null), /*#__PURE__*/React.createElement(Story, null)));
18
18
  }
19
19
 
20
20
  exports.withUiDecorator = withUiDecorator;
@@ -14,10 +14,10 @@ require('./components/FormSubmitWrapper.js');
14
14
  require('lodash/camelCase');
15
15
  require('@itcase/common');
16
16
  require('msw');
17
- require('../Notification-CjVZJ18f.js');
18
- require('react-dom');
17
+ require('../Notification-CskLjIM7.js');
19
18
  require('lodash/upperFirst');
20
19
  require('lodash/maxBy');
20
+ require('react-dom');
21
21
 
22
22
 
23
23
 
@@ -3,7 +3,8 @@ import chalk from 'chalk'
3
3
  const STORYBOOK_PUBLIC_PATH = null
4
4
  const WEBPACK_ALIAS = {
5
5
  src: `${process.cwd()}/src`,
6
- '@itcase/ui': `${process.cwd()}/node_modules/@itcase/ui/dist`,
6
+ '@itcase/ui-web': `${process.cwd()}/node_modules/@itcase/ui-web/dist`,
7
+ '@itcase/ui-core': `${process.cwd()}/node_modules/@itcase/ui-core/dist`,
7
8
  }
8
9
 
9
10
  const MAIN_CONFIG_WEBPACK = {
@@ -1,6 +1,6 @@
1
1
  import { a as _objectSpread2 } from '../_rollupPluginBabelHelpers-47UUmXIE.js';
2
2
  import React__default from 'react';
3
- import castArray from 'lodash/castArray';
3
+ import r from 'lodash/castArray';
4
4
 
5
5
  function withFigmaSourceLink() {
6
6
  var decorator = function decorator(Story, _ref) {
@@ -8,7 +8,7 @@ function withFigmaSourceLink() {
8
8
  context = _ref.context;
9
9
  var sourceLink = parameters.sourceLink || {};
10
10
  if (parameters.design) {
11
- var designList = castArray(parameters.design);
11
+ var designList = r(parameters.design);
12
12
  if (!sourceLink.links) {
13
13
  sourceLink.links = {};
14
14
  }
@@ -1,6 +1,6 @@
1
1
  import { _ as _objectWithoutProperties } from '../_rollupPluginBabelHelpers-47UUmXIE.js';
2
2
  import React__default from 'react';
3
- import { U as UIProvider, N as NotificationsProvider, a as NotificationWrapper } from '../Notification-DcTliQqo.js';
3
+ import { d, m, P } from '../Notification-C3fVIIPU.js';
4
4
  import '@itcase/common';
5
5
  import 'lodash/camelCase';
6
6
  import 'lodash/castArray';
@@ -30,9 +30,9 @@ function withNextDecoratorFactory(_ref) {
30
30
  pageProps: appArgs
31
31
  });
32
32
  }
33
- return /*#__PURE__*/React__default.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React__default.createElement(UIProvider, null, /*#__PURE__*/React__default.createElement(NotificationsProvider, {
33
+ return /*#__PURE__*/React__default.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React__default.createElement(d, null, /*#__PURE__*/React__default.createElement(m, {
34
34
  initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
35
- }, /*#__PURE__*/React__default.createElement(NotificationWrapper, {
35
+ }, /*#__PURE__*/React__default.createElement(P, {
36
36
  className: "notification_global notification_global_right_top"
37
37
  }), /*#__PURE__*/React__default.createElement(Story, appContext))));
38
38
  };
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { U as UIProvider, N as NotificationsProvider, a as NotificationWrapper } from '../Notification-DcTliQqo.js';
2
+ import { d, m, P } from '../Notification-C3fVIIPU.js';
3
3
  import '@itcase/common';
4
4
  import 'lodash/camelCase';
5
5
  import 'lodash/castArray';
@@ -10,9 +10,9 @@ import 'react-dom';
10
10
  function withUiDecorator(Story, _ref) {
11
11
  var args = _ref.args,
12
12
  parameters = _ref.parameters;
13
- return /*#__PURE__*/React__default.createElement(UIProvider, null, /*#__PURE__*/React__default.createElement(NotificationsProvider, {
13
+ return /*#__PURE__*/React__default.createElement(d, null, /*#__PURE__*/React__default.createElement(m, {
14
14
  initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
15
- }, /*#__PURE__*/React__default.createElement(NotificationWrapper, null), /*#__PURE__*/React__default.createElement(Story, null)));
15
+ }, /*#__PURE__*/React__default.createElement(P, null), /*#__PURE__*/React__default.createElement(Story, null)));
16
16
  }
17
17
 
18
18
  export { withUiDecorator };
@@ -12,7 +12,7 @@ import './components/FormSubmitWrapper.js';
12
12
  import 'lodash/camelCase';
13
13
  import '@itcase/common';
14
14
  import 'msw';
15
- import './Notification-DcTliQqo.js';
16
- import 'react-dom';
15
+ import './Notification-C3fVIIPU.js';
17
16
  import 'lodash/upperFirst';
18
17
  import 'lodash/maxBy';
18
+ import 'react-dom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.2.47",
3
+ "version": "1.2.48",
4
4
  "author": "ITCase",
5
5
  "description": "Storybook configuration package",
6
6
  "engines": {
@@ -141,7 +141,8 @@
141
141
  "@commitlint/config-conventional": "^20.5.0",
142
142
  "@itcase/common": "^1.2.41",
143
143
  "@itcase/lint": "^1.1.102",
144
- "@itcase/ui": "^1.9.76",
144
+ "@itcase/ui-core": "^1.9.77",
145
+ "@itcase/ui-web": "^1.9.77",
145
146
  "@react-native-community/cli": "20.1.2",
146
147
  "@react-native-community/cli-platform-android": "20.1.2",
147
148
  "@react-native-community/cli-platform-ios": "20.1.2",