@itcase/storybook-config 1.2.0 → 1.2.2
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.
- package/dist/cjs/decorators/withNextDecorator.js +4 -1
- package/dist/cjs/decorators/withUiDecorator.js +2 -1
- package/dist/cjs/decorators.js +1 -0
- package/dist/decorators/withNextDecorator.js +4 -1
- package/dist/decorators/withUiDecorator.js +2 -1
- package/dist/decorators.js +1 -0
- package/package.json +1 -1
- /package/dist/config/preview/{preview.js → index.js} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var Notification = require('@itcase/ui/components/Notification');
|
|
4
5
|
var Notifications = require('@itcase/ui/context/Notifications');
|
|
5
6
|
var UIContext = require('@itcase/ui/context/UIContext');
|
|
6
7
|
|
|
@@ -36,7 +37,9 @@ function withNextDecoratorFactory(_ref) {
|
|
|
36
37
|
pageProps: appArgs
|
|
37
38
|
});
|
|
38
39
|
}
|
|
39
|
-
return /*#__PURE__*/React.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React.createElement(UIContext.UIProvider, null, /*#__PURE__*/React.createElement(Notifications.NotificationsProvider,
|
|
40
|
+
return /*#__PURE__*/React.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React.createElement(UIContext.UIProvider, null, /*#__PURE__*/React.createElement(Notifications.NotificationsProvider, {
|
|
41
|
+
initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
|
|
42
|
+
}, /*#__PURE__*/React.createElement(Notification.NotificationWrapper, null), /*#__PURE__*/React.createElement(Story, appContext))));
|
|
40
43
|
};
|
|
41
44
|
return decorator;
|
|
42
45
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var Notification = require('@itcase/ui/components/Notification');
|
|
4
5
|
var Notifications = require('@itcase/ui/context/Notifications');
|
|
5
6
|
var UIContext = require('@itcase/ui/context/UIContext');
|
|
6
7
|
|
|
@@ -9,7 +10,7 @@ function withUiDecorator(Story, _ref) {
|
|
|
9
10
|
parameters = _ref.parameters;
|
|
10
11
|
return /*#__PURE__*/React.createElement(UIContext.UIProvider, null, /*#__PURE__*/React.createElement(Notifications.NotificationsProvider, {
|
|
11
12
|
initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
|
|
12
|
-
}, /*#__PURE__*/React.createElement(Story, null)));
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Notification.NotificationWrapper, null), /*#__PURE__*/React.createElement(Story, null)));
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
exports.withUiDecorator = withUiDecorator;
|
package/dist/cjs/decorators.js
CHANGED
|
@@ -13,6 +13,7 @@ require('./components/FormSubmitWrapper.js');
|
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('@itcase/common');
|
|
15
15
|
require('msw');
|
|
16
|
+
require('@itcase/ui/components/Notification');
|
|
16
17
|
require('@itcase/ui/context/Notifications');
|
|
17
18
|
require('@itcase/ui/context/UIContext');
|
|
18
19
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { NotificationWrapper } from '@itcase/ui/components/Notification';
|
|
2
3
|
import { NotificationsProvider } from '@itcase/ui/context/Notifications';
|
|
3
4
|
import { UIProvider } from '@itcase/ui/context/UIContext';
|
|
4
5
|
|
|
@@ -34,7 +35,9 @@ function withNextDecoratorFactory(_ref) {
|
|
|
34
35
|
pageProps: appArgs
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
return /*#__PURE__*/React.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React.createElement(UIProvider, null, /*#__PURE__*/React.createElement(NotificationsProvider,
|
|
38
|
+
return /*#__PURE__*/React.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React.createElement(UIProvider, null, /*#__PURE__*/React.createElement(NotificationsProvider, {
|
|
39
|
+
initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
|
|
40
|
+
}, /*#__PURE__*/React.createElement(NotificationWrapper, null), /*#__PURE__*/React.createElement(Story, appContext))));
|
|
38
41
|
};
|
|
39
42
|
return decorator;
|
|
40
43
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { NotificationWrapper } from '@itcase/ui/components/Notification';
|
|
2
3
|
import { NotificationsProvider } from '@itcase/ui/context/Notifications';
|
|
3
4
|
import { UIProvider } from '@itcase/ui/context/UIContext';
|
|
4
5
|
|
|
@@ -7,7 +8,7 @@ function withUiDecorator(Story, _ref) {
|
|
|
7
8
|
parameters = _ref.parameters;
|
|
8
9
|
return /*#__PURE__*/React.createElement(UIProvider, null, /*#__PURE__*/React.createElement(NotificationsProvider, {
|
|
9
10
|
initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
|
|
10
|
-
}, /*#__PURE__*/React.createElement(Story, null)));
|
|
11
|
+
}, /*#__PURE__*/React.createElement(NotificationWrapper, null), /*#__PURE__*/React.createElement(Story, null)));
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export { withUiDecorator };
|
package/dist/decorators.js
CHANGED
package/package.json
CHANGED
|
File without changes
|