@itcase/storybook-config 1.2.65 → 1.2.67

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.
@@ -0,0 +1,205 @@
1
+ import { _ as _asyncToGenerator, c as _regenerator, a as _objectSpread2 } from './_rollupPluginBabelHelpers-DQ-fuxJg.js';
2
+ import React__default, { useRef, useEffect } from 'react';
3
+
4
+ var SUBMIT_TIMEOUT_MS = 15000;
5
+ var SUBMIT_POLL_MS = 50;
6
+ function getMountRoot() {
7
+ var _ref, _document$getElementB;
8
+ return (_ref = (_document$getElementB = document.getElementById('storybook-root')) !== null && _document$getElementB !== void 0 ? _document$getElementB : document.getElementById('root')) !== null && _ref !== void 0 ? _ref : document.body;
9
+ }
10
+ function sleep() {
11
+ var ms = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : SUBMIT_POLL_MS;
12
+ return new Promise(function (resolve) {
13
+ setTimeout(resolve, ms);
14
+ });
15
+ }
16
+ function prepareFormForAutoSubmit(form) {
17
+ var _config$field, _fieldState$value, _config$suffix;
18
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19
+ var fieldNames = typeof (form === null || form === void 0 ? void 0 : form.getRegisteredFields) === 'function' ? form.getRegisteredFields() : [];
20
+ var fieldName = (_config$field = config.field) !== null && _config$field !== void 0 ? _config$field : fieldNames[0];
21
+ if (!fieldName) {
22
+ return false;
23
+ }
24
+ var fieldState = form.getFieldState(fieldName);
25
+ var value = (_fieldState$value = fieldState === null || fieldState === void 0 ? void 0 : fieldState.value) !== null && _fieldState$value !== void 0 ? _fieldState$value : '';
26
+ var suffix = (_config$suffix = config.suffix) !== null && _config$suffix !== void 0 ? _config$suffix : "\u200B";
27
+ var nextValue = "".concat(value).concat(suffix);
28
+ if (nextValue === value) {
29
+ return false;
30
+ }
31
+ form.change(fieldName, nextValue);
32
+ return true;
33
+ }
34
+ function findSubmitButton(root) {
35
+ if (!root) {
36
+ return null;
37
+ }
38
+ var byType = root.querySelector('button[type="submit"]');
39
+ if (byType) {
40
+ return byType;
41
+ }
42
+ var form = root.querySelector('form[data-testid], form');
43
+ if (!form) {
44
+ return null;
45
+ }
46
+ var primaryInGroup = form.querySelector('.form__button .form__button-item, .form__button-item');
47
+ if (primaryInGroup) {
48
+ return primaryInGroup;
49
+ }
50
+ var byTestId = form.querySelector('button[data-testid*="Submit"], button[data-testid*="SignIn"], button[data-testid*="Create"]');
51
+ return byTestId;
52
+ }
53
+ function getFormSubmitTarget(formRef) {
54
+ var root = getMountRoot();
55
+ var submitButton = findSubmitButton(root);
56
+ var form = formRef.current;
57
+ var hasFields = typeof (form === null || form === void 0 ? void 0 : form.getRegisteredFields) === 'function' && form.getRegisteredFields().length > 0;
58
+ return {
59
+ canMarkForm: Boolean(form && hasFields),
60
+ canSubmit: Boolean(submitButton),
61
+ form: form,
62
+ submitButton: submitButton
63
+ };
64
+ }
65
+ function autoSubmitForm(_x, _x2, _x3) {
66
+ return _autoSubmitForm.apply(this, arguments);
67
+ }
68
+ function _autoSubmitForm() {
69
+ _autoSubmitForm = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(formRef, formSubmitConfig, signal) {
70
+ var deadline, didPrepareUnchangedSubmit, _getFormSubmitTarget, canMarkForm, canSubmit, form, submitButton;
71
+ return _regenerator().w(function (_context) {
72
+ while (1) switch (_context.n) {
73
+ case 0:
74
+ deadline = Date.now() + SUBMIT_TIMEOUT_MS;
75
+ didPrepareUnchangedSubmit = false;
76
+ case 1:
77
+ if (!(Date.now() < deadline)) {
78
+ _context.n = 9;
79
+ break;
80
+ }
81
+ if (!signal.aborted) {
82
+ _context.n = 2;
83
+ break;
84
+ }
85
+ return _context.a(2);
86
+ case 2:
87
+ _getFormSubmitTarget = getFormSubmitTarget(formRef), canMarkForm = _getFormSubmitTarget.canMarkForm, canSubmit = _getFormSubmitTarget.canSubmit, form = _getFormSubmitTarget.form, submitButton = _getFormSubmitTarget.submitButton;
88
+ if (canSubmit) {
89
+ _context.n = 4;
90
+ break;
91
+ }
92
+ _context.n = 3;
93
+ return sleep();
94
+ case 3:
95
+ return _context.a(3, 1);
96
+ case 4:
97
+ if (!(formSubmitConfig !== null && formSubmitConfig !== void 0 && formSubmitConfig.allowUnchangedSubmit && !didPrepareUnchangedSubmit)) {
98
+ _context.n = 8;
99
+ break;
100
+ }
101
+ if (!canMarkForm) {
102
+ _context.n = 6;
103
+ break;
104
+ }
105
+ prepareFormForAutoSubmit(form, formSubmitConfig);
106
+ didPrepareUnchangedSubmit = true;
107
+ _context.n = 5;
108
+ return sleep();
109
+ case 5:
110
+ return _context.a(3, 1);
111
+ case 6:
112
+ _context.n = 7;
113
+ return sleep();
114
+ case 7:
115
+ return _context.a(3, 1);
116
+ case 8:
117
+ submitButton.click();
118
+ return _context.a(2);
119
+ case 9:
120
+ return _context.a(2);
121
+ }
122
+ }, _callee);
123
+ }));
124
+ return _autoSubmitForm.apply(this, arguments);
125
+ }
126
+
127
+ function wrapRender(component, render, formRef) {
128
+ if (!component || typeof render !== 'function') {
129
+ return render;
130
+ }
131
+ return function renderWithRef(storyArgs) {
132
+ var args = _objectSpread2({}, storyArgs !== null && storyArgs !== void 0 ? storyArgs : {});
133
+ delete args.ref;
134
+ return /*#__PURE__*/React__default.createElement(component, _objectSpread2({
135
+ ref: formRef
136
+ }, args));
137
+ };
138
+ }
139
+ function withFormRef(children, formRef, bindings) {
140
+ var _ref, _children$props, _ref2, _children$props2, _ref3, _children$props3;
141
+ var component = bindings.component,
142
+ args = bindings.args,
143
+ storyRender = bindings.render,
144
+ allArgs = bindings.allArgs,
145
+ context = bindings.context;
146
+ var storyComponent = (_ref = component !== null && component !== void 0 ? component : context === null || context === void 0 ? void 0 : context.component) !== null && _ref !== void 0 ? _ref : children === null || children === void 0 || (_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.component;
147
+ var storyRenderFn = (_ref2 = storyRender !== null && storyRender !== void 0 ? storyRender : context === null || context === void 0 ? void 0 : context.render) !== null && _ref2 !== void 0 ? _ref2 : children === null || children === void 0 || (_children$props2 = children.props) === null || _children$props2 === void 0 ? void 0 : _children$props2.render;
148
+ var boundRender = wrapRender(storyComponent, storyRenderFn, formRef);
149
+ var addRef = function addRef(value) {
150
+ return value ? _objectSpread2(_objectSpread2({}, value), {}, {
151
+ ref: formRef
152
+ }) : value;
153
+ };
154
+ return /*#__PURE__*/React__default.cloneElement(children, {
155
+ component: storyComponent,
156
+ args: addRef((_ref3 = args !== null && args !== void 0 ? args : context === null || context === void 0 ? void 0 : context.args) !== null && _ref3 !== void 0 ? _ref3 : children === null || children === void 0 || (_children$props3 = children.props) === null || _children$props3 === void 0 ? void 0 : _children$props3.args),
157
+ render: boundRender,
158
+ allArgs: addRef(allArgs),
159
+ context: context ? _objectSpread2(_objectSpread2({}, context), {}, {
160
+ component: storyComponent,
161
+ args: addRef(context.args),
162
+ render: boundRender,
163
+ allArgs: addRef(context.allArgs)
164
+ }) : context
165
+ });
166
+ }
167
+
168
+ /**
169
+ * Авто-submit для интерактивного Storybook (Require / Validation / ServerError).
170
+ * В Vitest не используется — submit делается в play.
171
+ */
172
+ function FormSubmitWrapper(props) {
173
+ var formRef = useRef(null);
174
+ var component = props.component,
175
+ args = props.args,
176
+ parameters = props.parameters,
177
+ render = props.render,
178
+ allArgs = props.allArgs,
179
+ context = props.context,
180
+ _props$submit = props.submit,
181
+ submit = _props$submit === void 0 ? true : _props$submit,
182
+ children = props.children;
183
+ var formSubmitConfig = parameters === null || parameters === void 0 ? void 0 : parameters.formSubmit;
184
+ useEffect(function () {
185
+ if (!submit) {
186
+ return undefined;
187
+ }
188
+ var abortController = new AbortController();
189
+ autoSubmitForm(formRef, formSubmitConfig, abortController.signal);
190
+ return function () {
191
+ abortController.abort();
192
+ };
193
+ }, [formSubmitConfig, submit]);
194
+
195
+ // eslint-disable-next-line react-hooks/refs -- ref уходит в createElement внутри bound render
196
+ return withFormRef(children, formRef, {
197
+ component: component,
198
+ args: args,
199
+ render: render,
200
+ allArgs: allArgs,
201
+ context: context
202
+ });
203
+ }
204
+
205
+ export { FormSubmitWrapper as F };
@@ -1,3 +1,3 @@
1
- export { F as FormSubmitWrapper, c as cloneStoryWithFormRef, m as markFormAsDataChanged } from './FormSubmitWrapper-CKYmwsqe.js';
1
+ export { F as FormSubmitWrapper } from './FormSubmitWrapper-DvowO4lz.js';
2
+ import './_rollupPluginBabelHelpers-DQ-fuxJg.js';
2
3
  import 'react';
3
- import './_rollupPluginBabelHelpers-BsYN8Oir.js';
@@ -0,0 +1,198 @@
1
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
2
+ try {
3
+ var i = n[a](c),
4
+ u = i.value;
5
+ } catch (n) {
6
+ return void e(n);
7
+ }
8
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
9
+ }
10
+ function _asyncToGenerator(n) {
11
+ return function () {
12
+ var t = this,
13
+ e = arguments;
14
+ return new Promise(function (r, o) {
15
+ var a = n.apply(t, e);
16
+ function _next(n) {
17
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
18
+ }
19
+ function _throw(n) {
20
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
21
+ }
22
+ _next(void 0);
23
+ });
24
+ };
25
+ }
26
+ function _defineProperty(e, r, t) {
27
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
28
+ value: t,
29
+ enumerable: true,
30
+ configurable: true,
31
+ writable: true
32
+ }) : e[r] = t, e;
33
+ }
34
+ function ownKeys(e, r) {
35
+ var t = Object.keys(e);
36
+ if (Object.getOwnPropertySymbols) {
37
+ var o = Object.getOwnPropertySymbols(e);
38
+ r && (o = o.filter(function (r) {
39
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
40
+ })), t.push.apply(t, o);
41
+ }
42
+ return t;
43
+ }
44
+ function _objectSpread2(e) {
45
+ for (var r = 1; r < arguments.length; r++) {
46
+ var t = null != arguments[r] ? arguments[r] : {};
47
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
48
+ _defineProperty(e, r, t[r]);
49
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
50
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
51
+ });
52
+ }
53
+ return e;
54
+ }
55
+ function _objectWithoutProperties(e, t) {
56
+ if (null == e) return {};
57
+ var o,
58
+ r,
59
+ i = _objectWithoutPropertiesLoose(e, t);
60
+ if (Object.getOwnPropertySymbols) {
61
+ var n = Object.getOwnPropertySymbols(e);
62
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
63
+ }
64
+ return i;
65
+ }
66
+ function _objectWithoutPropertiesLoose(r, e) {
67
+ if (null == r) return {};
68
+ var t = {};
69
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
70
+ if (-1 !== e.indexOf(n)) continue;
71
+ t[n] = r[n];
72
+ }
73
+ return t;
74
+ }
75
+ function _regenerator() {
76
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
77
+ var e,
78
+ t,
79
+ r = "function" == typeof Symbol ? Symbol : {},
80
+ n = r.iterator || "@@iterator",
81
+ o = r.toStringTag || "@@toStringTag";
82
+ function i(r, n, o, i) {
83
+ var c = n && n.prototype instanceof Generator ? n : Generator,
84
+ u = Object.create(c.prototype);
85
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
86
+ var i,
87
+ c,
88
+ u,
89
+ f = 0,
90
+ p = o || [],
91
+ y = false,
92
+ G = {
93
+ p: 0,
94
+ n: 0,
95
+ v: e,
96
+ a: d,
97
+ f: d.bind(e, 4),
98
+ d: function (t, r) {
99
+ return i = t, c = 0, u = e, G.n = r, a;
100
+ }
101
+ };
102
+ function d(r, n) {
103
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
104
+ var o,
105
+ i = p[t],
106
+ d = G.p,
107
+ l = i[2];
108
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
109
+ }
110
+ if (o || r > 1) return a;
111
+ throw y = true, n;
112
+ }
113
+ return function (o, p, l) {
114
+ if (f > 1) throw TypeError("Generator is already running");
115
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
116
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
117
+ try {
118
+ if (f = 2, i) {
119
+ if (c || (o = "next"), t = i[o]) {
120
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
121
+ if (!t.done) return t;
122
+ u = t.value, c < 2 && (c = 0);
123
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
124
+ i = e;
125
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
126
+ } catch (t) {
127
+ i = e, c = 1, u = t;
128
+ } finally {
129
+ f = 1;
130
+ }
131
+ }
132
+ return {
133
+ value: t,
134
+ done: y
135
+ };
136
+ };
137
+ }(r, o, i), true), u;
138
+ }
139
+ var a = {};
140
+ function Generator() {}
141
+ function GeneratorFunction() {}
142
+ function GeneratorFunctionPrototype() {}
143
+ t = Object.getPrototypeOf;
144
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
145
+ return this;
146
+ }), t),
147
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
148
+ function f(e) {
149
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
150
+ }
151
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
152
+ return this;
153
+ }), _regeneratorDefine(u, "toString", function () {
154
+ return "[object Generator]";
155
+ }), (_regenerator = function () {
156
+ return {
157
+ w: i,
158
+ m: f
159
+ };
160
+ })();
161
+ }
162
+ function _regeneratorDefine(e, r, n, t) {
163
+ var i = Object.defineProperty;
164
+ try {
165
+ i({}, "", {});
166
+ } catch (e) {
167
+ i = 0;
168
+ }
169
+ _regeneratorDefine = function (e, r, n, t) {
170
+ function o(r, n) {
171
+ _regeneratorDefine(e, r, function (e) {
172
+ return this._invoke(r, n, e);
173
+ });
174
+ }
175
+ r ? i ? i(e, r, {
176
+ value: n,
177
+ enumerable: !t,
178
+ configurable: !t,
179
+ writable: !t
180
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
181
+ }, _regeneratorDefine(e, r, n, t);
182
+ }
183
+ function _toPrimitive(t, r) {
184
+ if ("object" != typeof t || !t) return t;
185
+ var e = t[Symbol.toPrimitive];
186
+ if (void 0 !== e) {
187
+ var i = e.call(t, r);
188
+ if ("object" != typeof i) return i;
189
+ throw new TypeError("@@toPrimitive must return a primitive value.");
190
+ }
191
+ return ("string" === r ? String : Number)(t);
192
+ }
193
+ function _toPropertyKey(t) {
194
+ var i = _toPrimitive(t, "string");
195
+ return "symbol" == typeof i ? i : i + "";
196
+ }
197
+
198
+ export { _asyncToGenerator as _, _objectSpread2 as a, _objectWithoutProperties as b, _regenerator as c };
@@ -1,4 +1,4 @@
1
- import { _ as _objectSpread2 } from '../components/_rollupPluginBabelHelpers-BsYN8Oir.js';
1
+ import { a as _objectSpread2 } from '../components/_rollupPluginBabelHelpers-DQ-fuxJg.js';
2
2
  import React__default from 'react';
3
3
  import s from 'lodash/castArray';
4
4
 
@@ -1,20 +1,32 @@
1
1
  import React__default from 'react';
2
- import { F as FormSubmitWrapper } from '../components/FormSubmitWrapper-CKYmwsqe.js';
2
+ import { F as FormSubmitWrapper } from '../components/FormSubmitWrapper-DvowO4lz.js';
3
3
  import 'lodash/camelCase';
4
4
  import '@itcase/common';
5
5
  import 'msw';
6
- import '../components/_rollupPluginBabelHelpers-BsYN8Oir.js';
6
+ import '../components/_rollupPluginBabelHelpers-DQ-fuxJg.js';
7
7
 
8
8
  function hasFormParameters(parameters) {
9
9
  return Boolean(parameters.require || parameters.validation || parameters.error || parameters.serverError || parameters.serverErrorData);
10
10
  }
11
11
 
12
+ function isVitestEnvironment() {
13
+ var _import$meta$env;
14
+ return Boolean((_import$meta$env = import.meta.env) === null || _import$meta$env === void 0 ? void 0 : _import$meta$env.VITEST);
15
+ }
16
+
12
17
  function withFormSubmitDecorator() {
13
18
  var decorator = function decorator(Story, storyContext) {
14
- var parameters = storyContext.parameters,
15
- _storyContext$context = storyContext.context,
16
- context = _storyContext$context === void 0 ? storyContext : _storyContext$context;
17
- return hasFormParameters(parameters) ? /*#__PURE__*/React__default.createElement(FormSubmitWrapper, context, /*#__PURE__*/React__default.createElement(Story, context)) : /*#__PURE__*/React__default.createElement(Story, context);
19
+ var _storyContext$context;
20
+ var parameters = storyContext.parameters;
21
+ var context = (_storyContext$context = storyContext.context) !== null && _storyContext$context !== void 0 ? _storyContext$context : storyContext;
22
+ if (isVitestEnvironment() || !hasFormParameters(parameters)) {
23
+ return /*#__PURE__*/React__default.createElement(Story, context);
24
+ }
25
+ return /*#__PURE__*/React__default.createElement(FormSubmitWrapper, Object.assign({}, context, {
26
+ parameters: parameters
27
+ }), /*#__PURE__*/React__default.createElement(Story, Object.assign({}, context, {
28
+ parameters: parameters
29
+ })));
18
30
  };
19
31
  return decorator;
20
32
  }
@@ -1,4 +1,4 @@
1
- import { a as _objectWithoutProperties } from '../components/_rollupPluginBabelHelpers-BsYN8Oir.js';
1
+ import { b as _objectWithoutProperties } from '../components/_rollupPluginBabelHelpers-DQ-fuxJg.js';
2
2
  import React__default from 'react';
3
3
  import { d, m, P } from '../components/Notification-qLYjGbKN.js';
4
4
  import '@itcase/common';
@@ -6,9 +6,9 @@ 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-BsYN8Oir.js';
9
+ import './components/_rollupPluginBabelHelpers-DQ-fuxJg.js';
10
10
  import 'lodash/castArray';
11
- import './components/FormSubmitWrapper-CKYmwsqe.js';
11
+ import './components/FormSubmitWrapper-DvowO4lz.js';
12
12
  import 'lodash/camelCase';
13
13
  import '@itcase/common';
14
14
  import 'msw';
@@ -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
  }
@@ -0,0 +1,5 @@
1
+ function isVitestEnvironment() {
2
+ return Boolean(import.meta.env?.VITEST)
3
+ }
4
+
5
+ export { isVitestEnvironment }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.2.65",
3
+ "version": "1.2.67",
4
4
  "author": "ITCase",
5
5
  "description": "Storybook configuration package",
6
6
  "engines": {
@@ -83,31 +83,31 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@gorhom/bottom-sheet": "^5.2.14",
86
- "@itcase/config": "^1.6.56",
86
+ "@itcase/config": "^1.6.58",
87
87
  "@itcase/storybook-addon-auth": "^1.0.5",
88
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
- "@storybook/addon-docs": "^10.4.0",
92
- "@storybook/addon-links": "^10.4.0",
91
+ "@storybook/addon-docs": "^10.4.1",
92
+ "@storybook/addon-links": "^10.4.1",
93
93
  "@storybook/addon-ondevice-actions": "10.4.4",
94
94
  "@storybook/addon-ondevice-backgrounds": "10.4.4",
95
95
  "@storybook/addon-ondevice-controls": "10.4.4",
96
96
  "@storybook/addon-ondevice-notes": "^10.4.4",
97
97
  "@storybook/addon-react-native-web": "^0.0.29",
98
98
  "@storybook/addon-styling-webpack": "^3.0.2",
99
- "@storybook/addon-themes": "^10.4.0",
100
- "@storybook/addon-vitest": "^10.4.0",
99
+ "@storybook/addon-themes": "^10.4.1",
100
+ "@storybook/addon-vitest": "^10.4.1",
101
101
  "@storybook/addon-webpack5-compiler-swc": "^4.0.3",
102
- "@storybook/builder-vite": "^10.4.0",
103
- "@storybook/nextjs": "^10.4.0",
104
- "@storybook/nextjs-vite": "^10.4.0",
105
- "@storybook/react": "^10.4.0",
102
+ "@storybook/builder-vite": "^10.4.1",
103
+ "@storybook/nextjs": "^10.4.1",
104
+ "@storybook/nextjs-vite": "^10.4.1",
105
+ "@storybook/react": "^10.4.1",
106
106
  "@storybook/react-native": "10.4.4",
107
107
  "@storybook/react-native-ui-lite": "10.4.4",
108
- "@storybook/react-native-web-vite": "^10.4.0",
109
- "@storybook/react-vite": "^10.4.0",
110
- "@storybook/react-webpack5": "^10.4.0",
108
+ "@storybook/react-native-web-vite": "^10.4.1",
109
+ "@storybook/react-vite": "^10.4.1",
110
+ "@storybook/react-webpack5": "^10.4.1",
111
111
  "@vitejs/plugin-react": "^6.0.2",
112
112
  "@vitest/browser-playwright": "^4.1.7",
113
113
  "babel-loader": "^10.1.1",
@@ -124,7 +124,7 @@
124
124
  "react-native-svg": "^15.15.5",
125
125
  "react-native-web": "^0.21.2",
126
126
  "react-native-worklets": "^0.8.3",
127
- "storybook": "^10.4.0",
127
+ "storybook": "^10.4.1",
128
128
  "storybook-addon-source-link": "^2.0.1",
129
129
  "vite": "^8.0.14",
130
130
  "vite-plugin-babel": "^1.7.3",
@@ -139,10 +139,10 @@
139
139
  "@babel/runtime": "^7.29.2",
140
140
  "@commitlint/cli": "^21.0.1",
141
141
  "@commitlint/config-conventional": "^21.0.1",
142
- "@itcase/common": "^1.2.41",
143
- "@itcase/lint": "^1.1.115",
144
- "@itcase/ui-core": "^1.9.108",
145
- "@itcase/ui-web": "^1.9.113",
142
+ "@itcase/common": "^1.2.43",
143
+ "@itcase/lint": "^1.1.116",
144
+ "@itcase/ui-core": "^1.10.0",
145
+ "@itcase/ui-web": "^1.10.0",
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",
@@ -154,7 +154,7 @@
154
154
  "@rollup/plugin-commonjs": "^29.0.2",
155
155
  "@rollup/plugin-json": "^6.1.0",
156
156
  "@rollup/plugin-node-resolve": "^16.0.3",
157
- "@storybook/addon-docs": "^10.4.0",
157
+ "@storybook/addon-docs": "^10.4.1",
158
158
  "@types/react": "^18",
159
159
  "@types/react-dom": "^18",
160
160
  "react-docgen": "^8.0.3",