@itcase/storybook-config 1.2.40 → 1.2.42
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/README.md +67 -0
- package/dist/{UIContext-7wI7giOz.js → Notification-BSc5Fd6Y.js} +619 -269
- package/dist/{UIContext-Xx74DZVi.js → Notification-Bk4P88mj.js} +633 -283
- package/dist/cjs/decorators/withNextDecorator.js +4 -5
- package/dist/cjs/decorators/withUiDecorator.js +4 -5
- package/dist/cjs/decorators.js +1 -2
- package/dist/decorators/withNextDecorator.js +2 -3
- package/dist/decorators/withUiDecorator.js +2 -3
- package/dist/decorators.js +1 -2
- package/package.json +38 -55
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var _rollupPluginBabelHelpers = require('../../_rollupPluginBabelHelpers-Wvf9ehn_.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
6
|
-
require('
|
|
5
|
+
var Notification = require('../../Notification-Bk4P88mj.js');
|
|
6
|
+
require('@itcase/common');
|
|
7
7
|
require('lodash/camelCase');
|
|
8
8
|
require('lodash/castArray');
|
|
9
9
|
require('lodash/upperFirst');
|
|
10
|
-
require('@itcase/common');
|
|
11
10
|
require('lodash/maxBy');
|
|
12
11
|
|
|
13
12
|
var _excluded = ["storesData"];
|
|
@@ -32,9 +31,9 @@ function withNextDecoratorFactory(_ref) {
|
|
|
32
31
|
pageProps: appArgs
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
|
-
return /*#__PURE__*/React.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React.createElement(
|
|
34
|
+
return /*#__PURE__*/React.createElement(RootStoreProvider, appArgs.rootStoreInitialData, /*#__PURE__*/React.createElement(Notification.UIProvider, null, /*#__PURE__*/React.createElement(Notification.NotificationsProvider, {
|
|
36
35
|
initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
|
|
37
|
-
}, /*#__PURE__*/React.createElement(
|
|
36
|
+
}, /*#__PURE__*/React.createElement(Notification.NotificationWrapper, {
|
|
38
37
|
className: "notification_global notification_global_right_top"
|
|
39
38
|
}), /*#__PURE__*/React.createElement(Story, appContext))));
|
|
40
39
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var
|
|
5
|
-
require('
|
|
4
|
+
var Notification = require('../../Notification-Bk4P88mj.js');
|
|
5
|
+
require('@itcase/common');
|
|
6
6
|
require('lodash/camelCase');
|
|
7
7
|
require('lodash/castArray');
|
|
8
8
|
require('lodash/upperFirst');
|
|
9
|
-
require('@itcase/common');
|
|
10
9
|
require('lodash/maxBy');
|
|
11
10
|
|
|
12
11
|
function withUiDecorator(Story, _ref) {
|
|
13
12
|
var args = _ref.args,
|
|
14
13
|
parameters = _ref.parameters;
|
|
15
|
-
return /*#__PURE__*/React.createElement(
|
|
14
|
+
return /*#__PURE__*/React.createElement(Notification.UIProvider, null, /*#__PURE__*/React.createElement(Notification.NotificationsProvider, {
|
|
16
15
|
initialNotificationsList: parameters.initialNotificationsList || args.initialNotificationsList || []
|
|
17
|
-
}, /*#__PURE__*/React.createElement(
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Notification.NotificationWrapper, null), /*#__PURE__*/React.createElement(Story, null)));
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
exports.withUiDecorator = withUiDecorator;
|
package/dist/cjs/decorators.js
CHANGED
|
@@ -14,8 +14,7 @@ require('./components/FormSubmitWrapper.js');
|
|
|
14
14
|
require('lodash/camelCase');
|
|
15
15
|
require('@itcase/common');
|
|
16
16
|
require('msw');
|
|
17
|
-
require('../
|
|
18
|
-
require('react/jsx-runtime');
|
|
17
|
+
require('../Notification-Bk4P88mj.js');
|
|
19
18
|
require('lodash/upperFirst');
|
|
20
19
|
require('lodash/maxBy');
|
|
21
20
|
|
|
@@ -1,11 +1,10 @@
|
|
|
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 '../
|
|
4
|
-
import '
|
|
3
|
+
import { U as UIProvider, N as NotificationsProvider, a as NotificationWrapper } from '../Notification-BSc5Fd6Y.js';
|
|
4
|
+
import '@itcase/common';
|
|
5
5
|
import 'lodash/camelCase';
|
|
6
6
|
import 'lodash/castArray';
|
|
7
7
|
import 'lodash/upperFirst';
|
|
8
|
-
import '@itcase/common';
|
|
9
8
|
import 'lodash/maxBy';
|
|
10
9
|
|
|
11
10
|
var _excluded = ["storesData"];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { U as UIProvider, N as NotificationsProvider, a as NotificationWrapper } from '../
|
|
3
|
-
import '
|
|
2
|
+
import { U as UIProvider, N as NotificationsProvider, a as NotificationWrapper } from '../Notification-BSc5Fd6Y.js';
|
|
3
|
+
import '@itcase/common';
|
|
4
4
|
import 'lodash/camelCase';
|
|
5
5
|
import 'lodash/castArray';
|
|
6
6
|
import 'lodash/upperFirst';
|
|
7
|
-
import '@itcase/common';
|
|
8
7
|
import 'lodash/maxBy';
|
|
9
8
|
|
|
10
9
|
function withUiDecorator(Story, _ref) {
|
package/dist/decorators.js
CHANGED
|
@@ -12,7 +12,6 @@ import './components/FormSubmitWrapper.js';
|
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import '@itcase/common';
|
|
14
14
|
import 'msw';
|
|
15
|
-
import './
|
|
16
|
-
import 'react/jsx-runtime';
|
|
15
|
+
import './Notification-BSc5Fd6Y.js';
|
|
17
16
|
import 'lodash/upperFirst';
|
|
18
17
|
import 'lodash/maxBy';
|
package/package.json
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/storybook-config",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "1.2.42",
|
|
5
4
|
"author": "ITCase",
|
|
6
5
|
"description": "Storybook configuration package",
|
|
7
6
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
7
|
+
"node": ">=24.0.0"
|
|
9
8
|
},
|
|
10
9
|
"scripts": {
|
|
11
10
|
"build": "npm run build-js",
|
|
12
11
|
"build-js": "rm -rf dist && NODE_ENV=production rollup -c",
|
|
13
12
|
"prepare": "npx husky install",
|
|
14
13
|
"prepack": "npm run build",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"react-native-start": "react-native start -- --reset-cache",
|
|
18
|
-
"storybook-react-native-start": "sb-rn-get-stories --config-path ./.storybook-react-native && STORYBOOK_ENABLED=true react-native start",
|
|
14
|
+
"ios": "react-native run-ios -- --reset-cache",
|
|
15
|
+
"android": "react-native run-android -- --reset-cache",
|
|
19
16
|
"storybook-react-native-ios": "sb-rn-get-stories --config-path ./.storybook-react-native && react-native run-ios",
|
|
20
17
|
"storybook-react-native-android": "sb-rn-get-stories --config-path ./.storybook-react-native && react-native run-android",
|
|
21
|
-
"storybook-webpack": "storybook dev -p 6006 --config-dir .storybook-react-
|
|
18
|
+
"storybook-react-webpack": "storybook dev -p 6006 --config-dir .storybook-react-webpack",
|
|
22
19
|
"storybook-next-js": "storybook dev -p 6006 --config-dir .storybook-next-js",
|
|
23
20
|
"storybook-vite": "storybook dev -p 6006 --config-dir .storybook-vite",
|
|
24
21
|
"storybook-next-js-vite": "storybook dev -p 6006 --config-dir ..storybook-next-js-vite",
|
|
@@ -84,45 +81,35 @@
|
|
|
84
81
|
"react": "19.2.4",
|
|
85
82
|
"react-dom": "19.2.4"
|
|
86
83
|
},
|
|
87
|
-
"peerDependencies": {
|
|
88
|
-
"storybook": "^10.2.8",
|
|
89
|
-
"@storybook/nextjs-vite": "^10.2.8",
|
|
90
|
-
"@storybook/addon-links": "^10.2.8",
|
|
91
|
-
"@storybook/addon-themes": "^10.2.8",
|
|
92
|
-
"@storybook/addon-designs": "^11.1.2",
|
|
93
|
-
"@storybook/addon-docs": "^10.2.8",
|
|
94
|
-
"@storybook/addon-vitest": "^10.2.8",
|
|
95
|
-
"storybook-addon-source-link": "^2.0.1",
|
|
96
|
-
"@storybook/builder-vite": "^10.2.8"
|
|
97
|
-
},
|
|
98
84
|
"dependencies": {
|
|
99
85
|
"@gorhom/bottom-sheet": "^5.2.8",
|
|
100
86
|
"@itcase/config": "^1.6.51",
|
|
101
87
|
"@itcase/storybook-addon-auth": "^1.0.5",
|
|
102
|
-
"@react-native-async-storage/async-storage": "^
|
|
88
|
+
"@react-native-async-storage/async-storage": "^3.0.1",
|
|
103
89
|
"@react-native-community/datetimepicker": "^8.6.0",
|
|
104
90
|
"@storybook/addon-designs": "^11.1.2",
|
|
105
|
-
"@storybook/addon-docs": "^10.2.
|
|
106
|
-
"@storybook/addon-links": "^10.2.
|
|
91
|
+
"@storybook/addon-docs": "^10.2.14",
|
|
92
|
+
"@storybook/addon-links": "^10.2.14",
|
|
107
93
|
"@storybook/addon-ondevice-actions": "10.2.3",
|
|
108
94
|
"@storybook/addon-ondevice-backgrounds": "10.2.3",
|
|
109
95
|
"@storybook/addon-ondevice-controls": "10.2.3",
|
|
110
96
|
"@storybook/addon-ondevice-notes": "^10.2.3",
|
|
111
97
|
"@storybook/addon-react-native-web": "^0.0.29",
|
|
112
98
|
"@storybook/addon-styling-webpack": "^3.0.0",
|
|
113
|
-
"@storybook/addon-themes": "^10.2.
|
|
114
|
-
"@storybook/addon-vitest": "^10.2.
|
|
99
|
+
"@storybook/addon-themes": "^10.2.14",
|
|
100
|
+
"@storybook/addon-vitest": "^10.2.14",
|
|
115
101
|
"@storybook/addon-webpack5-compiler-swc": "^4.0.2",
|
|
116
|
-
"@storybook/
|
|
117
|
-
"@storybook/nextjs
|
|
118
|
-
"@storybook/
|
|
102
|
+
"@storybook/builder-vite": "^10.2.14",
|
|
103
|
+
"@storybook/nextjs": "^10.2.14",
|
|
104
|
+
"@storybook/nextjs-vite": "^10.2.14",
|
|
105
|
+
"@storybook/react": "^10.2.14",
|
|
119
106
|
"@storybook/react-native": "10.2.3",
|
|
120
107
|
"@storybook/react-native-ui-lite": "10.2.3",
|
|
121
|
-
"@storybook/react-native-web-vite": "^10.2.
|
|
122
|
-
"@storybook/react-vite": "^10.2.
|
|
123
|
-
"@
|
|
124
|
-
"@storybook/react-webpack5": "^10.2.10",
|
|
108
|
+
"@storybook/react-native-web-vite": "^10.2.14",
|
|
109
|
+
"@storybook/react-vite": "^10.2.14",
|
|
110
|
+
"@storybook/react-webpack5": "^10.2.14",
|
|
125
111
|
"@vitejs/plugin-react": "^5.1.4",
|
|
112
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
126
113
|
"babel-loader": "^10.0.0",
|
|
127
114
|
"babel-plugin-react-native-web": "^0.21.2",
|
|
128
115
|
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
@@ -130,21 +117,19 @@
|
|
|
130
117
|
"http-proxy-middleware": "^3.0.5",
|
|
131
118
|
"msw": "^2.12.10",
|
|
132
119
|
"msw-storybook-addon": "^2.0.6",
|
|
133
|
-
"react": "19.2.4",
|
|
134
|
-
"react-dom": "^19.2.4",
|
|
135
|
-
"react-native": "0.84.0",
|
|
136
120
|
"react-native-gesture-handler": "^2.30.0",
|
|
137
121
|
"react-native-reanimated": "^4.2.2",
|
|
138
|
-
"react-native-safe-area-context": "^5.
|
|
122
|
+
"react-native-safe-area-context": "^5.7.0",
|
|
139
123
|
"react-native-svg": "^15.15.3",
|
|
140
124
|
"react-native-web": "^0.21.2",
|
|
141
125
|
"react-native-worklets": "^0.7.4",
|
|
142
|
-
"storybook": "^10.2.
|
|
126
|
+
"storybook": "^10.2.14",
|
|
143
127
|
"storybook-addon-source-link": "^2.0.1",
|
|
128
|
+
"vite": "^7.3.1",
|
|
129
|
+
"vite-plugin-babel": "^1.5.1",
|
|
144
130
|
"vite-plugin-svgr": "^4.5.0",
|
|
145
131
|
"vite-tsconfig-paths": "^6.1.1",
|
|
146
|
-
"vitest": "^4.0.18"
|
|
147
|
-
"vite": "^7.3.1"
|
|
132
|
+
"vitest": "^4.0.18"
|
|
148
133
|
},
|
|
149
134
|
"devDependencies": {
|
|
150
135
|
"@babel/core": "^7.29.0",
|
|
@@ -155,42 +140,40 @@
|
|
|
155
140
|
"@commitlint/config-conventional": "^20.4.2",
|
|
156
141
|
"@itcase/common": "^1.2.41",
|
|
157
142
|
"@itcase/lint": "^1.1.97",
|
|
158
|
-
"@itcase/ui": "^1.9.
|
|
159
|
-
"@react-native-community/cli": "20.1.
|
|
160
|
-
"@react-native-community/cli-platform-android": "20.1.
|
|
161
|
-
"@react-native-community/cli-platform-ios": "20.1.
|
|
162
|
-
"@react-native/babel-preset": "0.84.
|
|
163
|
-
"@react-native/eslint-config": "0.84.
|
|
164
|
-
"@react-native/metro-config": "0.84.
|
|
165
|
-
"@react-native/typescript-config": "0.84.
|
|
143
|
+
"@itcase/ui": "^1.9.66",
|
|
144
|
+
"@react-native-community/cli": "20.1.2",
|
|
145
|
+
"@react-native-community/cli-platform-android": "20.1.2",
|
|
146
|
+
"@react-native-community/cli-platform-ios": "20.1.2",
|
|
147
|
+
"@react-native/babel-preset": "0.84.1",
|
|
148
|
+
"@react-native/eslint-config": "0.84.1",
|
|
149
|
+
"@react-native/metro-config": "0.84.1",
|
|
150
|
+
"@react-native/typescript-config": "0.84.1",
|
|
166
151
|
"@rollup/plugin-babel": "^6.1.0",
|
|
167
152
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
168
153
|
"@rollup/plugin-json": "^6.1.0",
|
|
169
154
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
170
|
-
"@storybook/addon-docs": "^10.2.
|
|
155
|
+
"@storybook/addon-docs": "^10.2.14",
|
|
171
156
|
"@types/react": "^19",
|
|
172
157
|
"@types/react-dom": "^19",
|
|
173
158
|
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
174
|
-
"conventional-changelog-conventionalcommits": "^9.
|
|
159
|
+
"conventional-changelog-conventionalcommits": "^9.2.0",
|
|
175
160
|
"eslint": "9.39.2",
|
|
176
161
|
"glob": "^13.0.6",
|
|
177
162
|
"husky": "^9.1.7",
|
|
178
|
-
"lint-staged": "^16.
|
|
163
|
+
"lint-staged": "^16.3.1",
|
|
179
164
|
"next": "^16.1.6",
|
|
180
165
|
"prettier": "^3.8.1",
|
|
181
166
|
"react": "19.2.4",
|
|
182
167
|
"react-docgen-typescript": "^2.4.0",
|
|
183
168
|
"react-dom": "19.2.4",
|
|
184
|
-
"react-native": "0.84.
|
|
169
|
+
"react-native": "0.84.1",
|
|
185
170
|
"react-native-web": "^0.21.2",
|
|
186
|
-
"rollup": "^4.
|
|
171
|
+
"rollup": "^4.59.0",
|
|
187
172
|
"rollup-plugin-copy": "^3.5.0",
|
|
188
173
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
189
174
|
"semantic-release": "^25.0.3",
|
|
190
|
-
"
|
|
191
|
-
"stylelint": "^17.3.0",
|
|
175
|
+
"stylelint": "^17.4.0",
|
|
192
176
|
"typescript": "^5.9.3",
|
|
193
|
-
"vite": "^7.3.1"
|
|
194
|
-
"vite-plugin-babel": "^1.5.1"
|
|
177
|
+
"vite": "^7.3.1"
|
|
195
178
|
}
|
|
196
179
|
}
|