@itcase/storybook-config 1.2.64 → 1.2.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.
- package/dist/FormSubmitWrapper-i32wPLJH.js +207 -0
- package/dist/{Notification-DUFL7HZn.js → Notification-Cqx2_tCE.js} +6 -6
- package/dist/_rollupPluginBabelHelpers-D8XyM9rZ.js +203 -0
- package/dist/cjs/components/FormSubmitWrapper.js +5 -89
- package/dist/cjs/decorators/withFigmaSourceLink.js +1 -1
- package/dist/cjs/decorators/withFormSubmitDecorator.js +18 -6
- package/dist/cjs/decorators/withNextDecorator.js +2 -2
- package/dist/cjs/decorators/withUiDecorator.js +1 -1
- package/dist/cjs/decorators.js +3 -3
- package/dist/components/FormSubmitWrapper-DvowO4lz.js +205 -0
- package/dist/components/FormSubmitWrapper.js +3 -91
- package/dist/{Notification-Cf0dDVtz.js → components/Notification-qLYjGbKN.js} +6 -6
- package/dist/components/_rollupPluginBabelHelpers-DQ-fuxJg.js +198 -0
- package/dist/decorators/withFigmaSourceLink.js +1 -1
- package/dist/decorators/withFormSubmitDecorator.js +18 -6
- package/dist/decorators/withNextDecorator.js +2 -2
- package/dist/decorators/withUiDecorator.js +1 -1
- package/dist/decorators.js +3 -3
- package/dist/utils/index.js +2 -0
- package/dist/utils/isVitestEnvironment.js +5 -0
- package/package.json +9 -9
- package/dist/_rollupPluginBabelHelpers-BsYN8Oir.js +0 -65
- package/dist/_rollupPluginBabelHelpers-Wvf9ehn_.js +0 -68
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as _objectWithoutProperties } from '../components/_rollupPluginBabelHelpers-DQ-fuxJg.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { d, m, P } from '../Notification-
|
|
3
|
+
import { d, m, P } from '../components/Notification-qLYjGbKN.js';
|
|
4
4
|
import '@itcase/common';
|
|
5
5
|
import 'lodash/camelCase';
|
|
6
6
|
import 'lodash/castArray';
|
package/dist/decorators.js
CHANGED
|
@@ -6,13 +6,13 @@ 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 './_rollupPluginBabelHelpers-
|
|
9
|
+
import './components/_rollupPluginBabelHelpers-DQ-fuxJg.js';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
|
-
import './components/FormSubmitWrapper.js';
|
|
11
|
+
import './components/FormSubmitWrapper-DvowO4lz.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import '@itcase/common';
|
|
14
14
|
import 'msw';
|
|
15
|
-
import './Notification-
|
|
15
|
+
import './components/Notification-qLYjGbKN.js';
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import 'lodash/maxBy';
|
|
18
18
|
import 'react-dom';
|
package/dist/utils/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { getFigmaSourceLink } from './getFigmaSourceLink'
|
|
|
2
2
|
import { getStoryInfoBlocks } from './getStoryInfoBlocks'
|
|
3
3
|
import { handleMSWParameters } from './handleMSWParameters'
|
|
4
4
|
import { hasFormParameters } from './hasFormParameters'
|
|
5
|
+
import { isVitestEnvironment } from './isVitestEnvironment'
|
|
5
6
|
|
|
6
7
|
// import { storybookFormMockFactory } from './storybookFormMockFactory'
|
|
7
8
|
|
|
@@ -10,5 +11,6 @@ export {
|
|
|
10
11
|
getStoryInfoBlocks,
|
|
11
12
|
handleMSWParameters,
|
|
12
13
|
hasFormParameters,
|
|
14
|
+
isVitestEnvironment,
|
|
13
15
|
// storybookFormMockFactory,
|
|
14
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/storybook-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.66",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Storybook configuration package",
|
|
6
6
|
"engines": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@gorhom/bottom-sheet": "^5.2.14",
|
|
86
86
|
"@itcase/config": "^1.6.56",
|
|
87
87
|
"@itcase/storybook-addon-auth": "^1.0.5",
|
|
88
|
-
"@react-native-async-storage/async-storage": "^3.0
|
|
88
|
+
"@react-native-async-storage/async-storage": "^3.1.0",
|
|
89
89
|
"@react-native-community/datetimepicker": "^9.1.0",
|
|
90
90
|
"@storybook/addon-designs": "^11.1.3",
|
|
91
91
|
"@storybook/addon-docs": "^10.4.0",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"@storybook/react-vite": "^10.4.0",
|
|
110
110
|
"@storybook/react-webpack5": "^10.4.0",
|
|
111
111
|
"@vitejs/plugin-react": "^6.0.2",
|
|
112
|
-
"@vitest/browser-playwright": "^4.1.
|
|
112
|
+
"@vitest/browser-playwright": "^4.1.7",
|
|
113
113
|
"babel-loader": "^10.1.1",
|
|
114
114
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
115
115
|
"babel-plugin-react-native-web": "^0.21.2",
|
|
@@ -126,11 +126,11 @@
|
|
|
126
126
|
"react-native-worklets": "^0.8.3",
|
|
127
127
|
"storybook": "^10.4.0",
|
|
128
128
|
"storybook-addon-source-link": "^2.0.1",
|
|
129
|
-
"vite": "^8.0.
|
|
129
|
+
"vite": "^8.0.14",
|
|
130
130
|
"vite-plugin-babel": "^1.7.3",
|
|
131
131
|
"vite-plugin-svgr": "^5.2.0",
|
|
132
132
|
"vite-tsconfig-paths": "^6.1.1",
|
|
133
|
-
"vitest": "^4.1.
|
|
133
|
+
"vitest": "^4.1.7"
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
136
|
"@babel/core": "^7.29.0",
|
|
@@ -141,8 +141,8 @@
|
|
|
141
141
|
"@commitlint/config-conventional": "^21.0.1",
|
|
142
142
|
"@itcase/common": "^1.2.41",
|
|
143
143
|
"@itcase/lint": "^1.1.115",
|
|
144
|
-
"@itcase/ui-core": "^1.9.
|
|
145
|
-
"@itcase/ui-web": "^1.9.
|
|
144
|
+
"@itcase/ui-core": "^1.9.108",
|
|
145
|
+
"@itcase/ui-web": "^1.9.113",
|
|
146
146
|
"@react-native-community/cli": "20.1.3",
|
|
147
147
|
"@react-native-community/cli-platform-android": "20.1.3",
|
|
148
148
|
"@react-native-community/cli-platform-ios": "20.1.3",
|
|
@@ -175,8 +175,8 @@
|
|
|
175
175
|
"rollup-plugin-copy": "^3.5.0",
|
|
176
176
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
177
177
|
"semantic-release": "^25.0.3",
|
|
178
|
-
"stylelint": "^17.
|
|
178
|
+
"stylelint": "^17.12.0",
|
|
179
179
|
"typescript": "^5.9.3",
|
|
180
|
-
"vite": "^8.0.
|
|
180
|
+
"vite": "^8.0.14"
|
|
181
181
|
}
|
|
182
182
|
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
function _defineProperty(e, r, t) {
|
|
2
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
3
|
-
value: t,
|
|
4
|
-
enumerable: true,
|
|
5
|
-
configurable: true,
|
|
6
|
-
writable: true
|
|
7
|
-
}) : e[r] = t, e;
|
|
8
|
-
}
|
|
9
|
-
function ownKeys(e, r) {
|
|
10
|
-
var t = Object.keys(e);
|
|
11
|
-
if (Object.getOwnPropertySymbols) {
|
|
12
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
13
|
-
r && (o = o.filter(function (r) {
|
|
14
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
15
|
-
})), t.push.apply(t, o);
|
|
16
|
-
}
|
|
17
|
-
return t;
|
|
18
|
-
}
|
|
19
|
-
function _objectSpread2(e) {
|
|
20
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
21
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
22
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
23
|
-
_defineProperty(e, r, t[r]);
|
|
24
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
25
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return e;
|
|
29
|
-
}
|
|
30
|
-
function _objectWithoutProperties(e, t) {
|
|
31
|
-
if (null == e) return {};
|
|
32
|
-
var o,
|
|
33
|
-
r,
|
|
34
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
35
|
-
if (Object.getOwnPropertySymbols) {
|
|
36
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
37
|
-
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
38
|
-
}
|
|
39
|
-
return i;
|
|
40
|
-
}
|
|
41
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
42
|
-
if (null == r) return {};
|
|
43
|
-
var t = {};
|
|
44
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
45
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
46
|
-
t[n] = r[n];
|
|
47
|
-
}
|
|
48
|
-
return t;
|
|
49
|
-
}
|
|
50
|
-
function _toPrimitive(t, r) {
|
|
51
|
-
if ("object" != typeof t || !t) return t;
|
|
52
|
-
var e = t[Symbol.toPrimitive];
|
|
53
|
-
if (void 0 !== e) {
|
|
54
|
-
var i = e.call(t, r);
|
|
55
|
-
if ("object" != typeof i) return i;
|
|
56
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
57
|
-
}
|
|
58
|
-
return ("string" === r ? String : Number)(t);
|
|
59
|
-
}
|
|
60
|
-
function _toPropertyKey(t) {
|
|
61
|
-
var i = _toPrimitive(t, "string");
|
|
62
|
-
return "symbol" == typeof i ? i : i + "";
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export { _objectSpread2 as _, _objectWithoutProperties as a };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function _defineProperty(e, r, t) {
|
|
4
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
5
|
-
value: t,
|
|
6
|
-
enumerable: true,
|
|
7
|
-
configurable: true,
|
|
8
|
-
writable: true
|
|
9
|
-
}) : e[r] = t, e;
|
|
10
|
-
}
|
|
11
|
-
function ownKeys(e, r) {
|
|
12
|
-
var t = Object.keys(e);
|
|
13
|
-
if (Object.getOwnPropertySymbols) {
|
|
14
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
15
|
-
r && (o = o.filter(function (r) {
|
|
16
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
17
|
-
})), t.push.apply(t, o);
|
|
18
|
-
}
|
|
19
|
-
return t;
|
|
20
|
-
}
|
|
21
|
-
function _objectSpread2(e) {
|
|
22
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
23
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
24
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
25
|
-
_defineProperty(e, r, t[r]);
|
|
26
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
27
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return e;
|
|
31
|
-
}
|
|
32
|
-
function _objectWithoutProperties(e, t) {
|
|
33
|
-
if (null == e) return {};
|
|
34
|
-
var o,
|
|
35
|
-
r,
|
|
36
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
37
|
-
if (Object.getOwnPropertySymbols) {
|
|
38
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
39
|
-
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
40
|
-
}
|
|
41
|
-
return i;
|
|
42
|
-
}
|
|
43
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
44
|
-
if (null == r) return {};
|
|
45
|
-
var t = {};
|
|
46
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
47
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
48
|
-
t[n] = r[n];
|
|
49
|
-
}
|
|
50
|
-
return t;
|
|
51
|
-
}
|
|
52
|
-
function _toPrimitive(t, r) {
|
|
53
|
-
if ("object" != typeof t || !t) return t;
|
|
54
|
-
var e = t[Symbol.toPrimitive];
|
|
55
|
-
if (void 0 !== e) {
|
|
56
|
-
var i = e.call(t, r);
|
|
57
|
-
if ("object" != typeof i) return i;
|
|
58
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
59
|
-
}
|
|
60
|
-
return ("string" === r ? String : Number)(t);
|
|
61
|
-
}
|
|
62
|
-
function _toPropertyKey(t) {
|
|
63
|
-
var i = _toPrimitive(t, "string");
|
|
64
|
-
return "symbol" == typeof i ? i : i + "";
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
exports._objectSpread2 = _objectSpread2;
|
|
68
|
-
exports._objectWithoutProperties = _objectWithoutProperties;
|