@itcase/storybook-config 1.2.71 → 1.2.72

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,4 +1,4 @@
1
- import React__default from 'react';
1
+ import React from 'react';
2
2
 
3
3
  function withLayoutDecorator() {
4
4
  return function (Story, _ref) {
@@ -22,23 +22,23 @@ function withLayoutDecorator() {
22
22
  maxWidth: parameters === null || parameters === void 0 ? void 0 : parameters.maxWidth
23
23
  };
24
24
  if (!layoutClass && parameters.maxWidth) {
25
- return /*#__PURE__*/React__default.createElement("div", {
25
+ return /*#__PURE__*/React.createElement("div", {
26
26
  style: maxWidthStyle
27
- }, /*#__PURE__*/React__default.createElement(Story, null));
27
+ }, /*#__PURE__*/React.createElement(Story, null));
28
28
  }
29
29
  if (layoutClass && !parameters.maxWidth) {
30
- return /*#__PURE__*/React__default.createElement("div", {
30
+ return /*#__PURE__*/React.createElement("div", {
31
31
  className: layoutClass
32
- }, /*#__PURE__*/React__default.createElement(Story, null));
32
+ }, /*#__PURE__*/React.createElement(Story, null));
33
33
  }
34
34
  if (layoutClass && parameters.maxWidth) {
35
- return /*#__PURE__*/React__default.createElement("div", {
35
+ return /*#__PURE__*/React.createElement("div", {
36
36
  className: layoutClass
37
- }, /*#__PURE__*/React__default.createElement("div", {
37
+ }, /*#__PURE__*/React.createElement("div", {
38
38
  style: maxWidthStyle
39
- }, /*#__PURE__*/React__default.createElement(Story, null)));
39
+ }, /*#__PURE__*/React.createElement(Story, null)));
40
40
  }
41
- return /*#__PURE__*/React__default.createElement(Story, null);
41
+ return /*#__PURE__*/React.createElement(Story, null);
42
42
  };
43
43
  }
44
44
 
@@ -1,12 +1,7 @@
1
- import { b as _objectWithoutProperties } from '../components/_rollupPluginBabelHelpers-DQ-fuxJg.js';
2
- import React__default from 'react';
3
- import { d, m, P } from '../components/Notification-qLYjGbKN.js';
4
- import '@itcase/common';
5
- import 'lodash/camelCase';
6
- import 'lodash/castArray';
7
- import 'lodash/upperFirst';
8
- import 'lodash/maxBy';
9
- import 'react-dom';
1
+ import { _ as _objectWithoutProperties } from '../components/_rollupPluginBabelHelpers-OwKVS06F.js';
2
+ import React from 'react';
3
+ import { NotificationWrapper } from '@itcase/ui-web/components/Notification';
4
+ import { UIProvider, NotificationsProvider } from '@itcase/ui-core/context';
10
5
 
11
6
  var _excluded = ["storesData"];
12
7
  function withNextDecoratorFactory(_ref) {
@@ -25,16 +20,16 @@ function withNextDecoratorFactory(_ref) {
25
20
  appContext = _prepareStoryArgument.appContext,
26
21
  appParameters = _prepareStoryArgument.appParameters;
27
22
  if (appParameters.page) {
28
- return /*#__PURE__*/React__default.createElement(App, {
23
+ return /*#__PURE__*/React.createElement(App, {
29
24
  Component: Story,
30
25
  pageProps: appArgs
31
26
  });
32
27
  }
33
- return /*#__PURE__*/React__default.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React__default.createElement(d, null, /*#__PURE__*/React__default.createElement(m, {
28
+ return /*#__PURE__*/React.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React.createElement(UIProvider, null, /*#__PURE__*/React.createElement(NotificationsProvider, {
34
29
  initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
35
- }, /*#__PURE__*/React__default.createElement(P, {
30
+ }, /*#__PURE__*/React.createElement(NotificationWrapper, {
36
31
  className: "notification_global notification_global_right_top"
37
- }), /*#__PURE__*/React__default.createElement(Story, appContext))));
32
+ }), /*#__PURE__*/React.createElement(Story, appContext))));
38
33
  };
39
34
  return decorator;
40
35
  }
@@ -1,18 +1,13 @@
1
- import React__default from 'react';
2
- import { d, m, P } from '../components/Notification-qLYjGbKN.js';
3
- import '@itcase/common';
4
- import 'lodash/camelCase';
5
- import 'lodash/castArray';
6
- import 'lodash/upperFirst';
7
- import 'lodash/maxBy';
8
- import 'react-dom';
1
+ import React from 'react';
2
+ import { NotificationWrapper } from '@itcase/ui-web/components/Notification';
3
+ import { UIProvider, NotificationsProvider } from '@itcase/ui-core/context';
9
4
 
10
5
  function withUiDecorator(Story, _ref) {
11
6
  var args = _ref.args,
12
7
  parameters = _ref.parameters;
13
- return /*#__PURE__*/React__default.createElement(d, null, /*#__PURE__*/React__default.createElement(m, {
8
+ return /*#__PURE__*/React.createElement(UIProvider, null, /*#__PURE__*/React.createElement(NotificationsProvider, {
14
9
  initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
15
- }, /*#__PURE__*/React__default.createElement(P, null), /*#__PURE__*/React__default.createElement(Story, null)));
10
+ }, /*#__PURE__*/React.createElement(NotificationWrapper, null), /*#__PURE__*/React.createElement(Story, null)));
16
11
  }
17
12
 
18
13
  export { withUiDecorator };
@@ -6,13 +6,10 @@ export { withLayoutDecorator } from './decorators/withLayoutDecorator.js';
6
6
  export { withNextDecoratorFactory } from './decorators/withNextDecorator.js';
7
7
  export { withUiDecorator } from './decorators/withUiDecorator.js';
8
8
  import 'react';
9
- import './components/_rollupPluginBabelHelpers-DQ-fuxJg.js';
10
- import 'lodash/castArray';
11
- import './components/FormSubmitWrapper-YokGjDrh.js';
12
- import 'lodash/camelCase';
9
+ import './components/_rollupPluginBabelHelpers-OwKVS06F.js';
10
+ import './components/isArray-CPoGkdXv.js';
11
+ import './components/FormSubmitWrapper-CytvWwKi.js';
13
12
  import '@itcase/common';
14
13
  import 'msw';
15
- import './components/Notification-qLYjGbKN.js';
16
- import 'lodash/upperFirst';
17
- import 'lodash/maxBy';
18
- import 'react-dom';
14
+ import '@itcase/ui-web/components/Notification';
15
+ import '@itcase/ui-core/context';
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
+
5
+ function getDefaultExportFromCjs (x) {
6
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
7
+ }
8
+
9
+ /**
10
+ * Checks if `value` is classified as an `Array` object.
11
+ *
12
+ * @static
13
+ * @memberOf _
14
+ * @since 0.1.0
15
+ * @category Lang
16
+ * @param {*} value The value to check.
17
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
18
+ * @example
19
+ *
20
+ * _.isArray([1, 2, 3]);
21
+ * // => true
22
+ *
23
+ * _.isArray(document.body.children);
24
+ * // => false
25
+ *
26
+ * _.isArray('abc');
27
+ * // => false
28
+ *
29
+ * _.isArray(_.noop);
30
+ * // => false
31
+ */
32
+
33
+ var isArray_1;
34
+ var hasRequiredIsArray;
35
+
36
+ function requireIsArray () {
37
+ if (hasRequiredIsArray) return isArray_1;
38
+ hasRequiredIsArray = 1;
39
+ var isArray = Array.isArray;
40
+
41
+ isArray_1 = isArray;
42
+ return isArray_1;
43
+ }
44
+
45
+ exports.commonjsGlobal = commonjsGlobal;
46
+ exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
47
+ exports.requireIsArray = requireIsArray;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.2.71",
3
+ "version": "1.2.72",
4
4
  "author": "ITCase",
5
5
  "description": "Storybook configuration package",
6
6
  "engines": {
@@ -81,11 +81,17 @@
81
81
  "react": "^18",
82
82
  "react-dom": "^18"
83
83
  },
84
+ "peerDependencies": {
85
+ "@itcase/ui-core": "^1.10.8",
86
+ "@itcase/ui-web": "^1.10.8",
87
+ "react": "^18",
88
+ "react-dom": "^18"
89
+ },
84
90
  "dependencies": {
85
91
  "@gorhom/bottom-sheet": "^5.2.14",
86
92
  "@itcase/config": "^1.6.58",
87
93
  "@itcase/storybook-addon-auth": "^1.0.5",
88
- "@react-native-async-storage/async-storage": "^3.1.0",
94
+ "@react-native-async-storage/async-storage": "^3.1.1",
89
95
  "@react-native-community/datetimepicker": "^9.1.0",
90
96
  "@storybook/addon-designs": "^11.1.3",
91
97
  "@storybook/addon-docs": "^10.4.1",
@@ -109,7 +115,7 @@
109
115
  "@storybook/react-vite": "^10.4.1",
110
116
  "@storybook/react-webpack5": "^10.4.1",
111
117
  "@vitejs/plugin-react": "^6.0.2",
112
- "@vitest/browser-playwright": "^4.1.7",
118
+ "@vitest/browser-playwright": "^4.1.8",
113
119
  "babel-loader": "^10.1.1",
114
120
  "babel-plugin-react-docgen": "^4.2.1",
115
121
  "babel-plugin-react-native-web": "^0.21.2",
@@ -126,23 +132,23 @@
126
132
  "react-native-worklets": "^0.9.1",
127
133
  "storybook": "^10.4.1",
128
134
  "storybook-addon-source-link": "^2.0.1",
129
- "vite": "^8.0.14",
135
+ "vite": "^8.0.16",
130
136
  "vite-plugin-babel": "^1.7.3",
131
137
  "vite-plugin-svgr": "^5.2.0",
132
138
  "vite-tsconfig-paths": "^6.1.1",
133
- "vitest": "^4.1.7"
139
+ "vitest": "^4.1.8"
134
140
  },
135
141
  "devDependencies": {
136
142
  "@babel/core": "^7.29.7",
137
143
  "@babel/preset-env": "^7.29.7",
138
144
  "@babel/preset-react": "^7.29.7",
139
145
  "@babel/runtime": "^7.29.7",
140
- "@commitlint/cli": "^21.0.1",
141
- "@commitlint/config-conventional": "^21.0.1",
146
+ "@commitlint/cli": "^21.0.2",
147
+ "@commitlint/config-conventional": "^21.0.2",
142
148
  "@itcase/common": "^1.2.43",
143
149
  "@itcase/lint": "^1.1.116",
144
- "@itcase/ui-core": "^1.10.8",
145
- "@itcase/ui-web": "^1.10.8",
150
+ "@itcase/ui-core": "^1.10.15",
151
+ "@itcase/ui-web": "^1.10.16",
146
152
  "@react-native-community/cli": "20.1.3",
147
153
  "@react-native-community/cli-platform-android": "20.1.3",
148
154
  "@react-native-community/cli-platform-ios": "20.1.3",
@@ -150,8 +156,8 @@
150
156
  "@react-native/eslint-config": "0.85.3",
151
157
  "@react-native/metro-config": "0.85.3",
152
158
  "@react-native/typescript-config": "0.85.3",
153
- "@rollup/plugin-babel": "^7.0.0",
154
- "@rollup/plugin-commonjs": "^29.0.2",
159
+ "@rollup/plugin-babel": "^7.1.0",
160
+ "@rollup/plugin-commonjs": "^29.0.3",
155
161
  "@rollup/plugin-json": "^6.1.0",
156
162
  "@rollup/plugin-node-resolve": "^16.0.3",
157
163
  "@storybook/addon-docs": "^10.4.1",
@@ -162,8 +168,8 @@
162
168
  "eslint": "9.39.2",
163
169
  "glob": "^13.0.6",
164
170
  "husky": "^9.1.7",
165
- "lint-staged": "^17.0.5",
166
- "next": "^16.2.6",
171
+ "lint-staged": "^17.0.7",
172
+ "next": "^16.2.7",
167
173
  "prettier": "^3.8.3",
168
174
  "react": "^18",
169
175
  "react-docgen": "^8.0.3",
@@ -171,12 +177,12 @@
171
177
  "react-dom": "^18",
172
178
  "react-native": "0.85.3",
173
179
  "react-native-web": "^0.21.2",
174
- "rollup": "^4.60.4",
180
+ "rollup": "^4.61.0",
175
181
  "rollup-plugin-copy": "^3.5.0",
176
182
  "rollup-plugin-peer-deps-external": "^2.2.4",
177
183
  "semantic-release": "^25.0.3",
178
184
  "stylelint": "^17.12.0",
179
185
  "typescript": "^6.0.3",
180
- "vite": "^8.0.14"
186
+ "vite": "^8.0.16"
181
187
  }
182
188
  }