@itcase/storybook-config 1.0.54 → 1.0.56

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.
@@ -4,10 +4,8 @@ var React = require('react');
4
4
 
5
5
  function FormSubmitWrapper(props) {
6
6
  var formRef = React.useRef();
7
- var _props$submit = props.submit,
8
- submit = _props$submit === void 0 ? true : _props$submit;
9
7
  React.useEffect(function () {
10
- if (formRef != null && formRef.current && submit) {
8
+ if (formRef != null && formRef.current) {
11
9
  formRef.current.submit();
12
10
  }
13
11
  }, [formRef]);
@@ -2,10 +2,8 @@ import React, { useRef, useEffect } from 'react';
2
2
 
3
3
  function FormSubmitWrapper(props) {
4
4
  var formRef = useRef();
5
- var _props$submit = props.submit,
6
- submit = _props$submit === void 0 ? true : _props$submit;
7
5
  useEffect(function () {
8
- if (formRef != null && formRef.current && submit) {
6
+ if (formRef != null && formRef.current) {
9
7
  formRef.current.submit();
10
8
  }
11
9
  }, [formRef]);
@@ -7,6 +7,12 @@ const ADDONS_NEXTJS = [
7
7
  '@storybook/addon-designs',
8
8
  'storybook-addon-source-link',
9
9
  '@etchteam/storybook-addon-status',
10
+ {
11
+ name: '@newhighsco/storybook-addon-transpile-modules',
12
+ options: {
13
+ transpileModules: ['@itcase/icons', '@itcase/next'],
14
+ },
15
+ },
10
16
  ]
11
17
 
12
18
  export { ADDONS_NEXTJS }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.0.54",
3
+ "version": "1.0.56",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {
@@ -59,24 +59,25 @@
59
59
  "@etchteam/storybook-addon-status": "^5.0.0",
60
60
  "@itcase/config": "^1.0.18",
61
61
  "@itcase/storybook-addon-auth": "^1.0.4",
62
- "@storybook/addon-actions": "^8.6.1",
63
- "@storybook/addon-controls": "^8.6.1",
62
+ "@newhighsco/storybook-addon-transpile-modules": "^2.0.51",
63
+ "@storybook/addon-actions": "^8.6.3",
64
+ "@storybook/addon-controls": "^8.6.3",
64
65
  "@storybook/addon-designs": "^8.2.0",
65
- "@storybook/addon-essentials": "^8.6.1",
66
- "@storybook/addon-interactions": "^8.6.1",
67
- "@storybook/addon-links": "^8.6.1",
66
+ "@storybook/addon-essentials": "^8.6.3",
67
+ "@storybook/addon-interactions": "^8.6.3",
68
+ "@storybook/addon-links": "^8.6.3",
68
69
  "@storybook/addon-styling-webpack": "^1.0.1",
69
- "@storybook/addon-themes": "^8.6.1",
70
- "@storybook/addon-viewport": "^8.6.1",
70
+ "@storybook/addon-themes": "^8.6.3",
71
+ "@storybook/addon-viewport": "^8.6.3",
71
72
  "@storybook/addon-webpack5-compiler-swc": "^2.1.0",
72
- "@storybook/blocks": "^8.6.1",
73
- "@storybook/manager-api": "^8.6.1",
74
- "@storybook/nextjs": "^8.6.1",
75
- "@storybook/preview-api": "^8.6.1",
76
- "@storybook/react": "^8.6.1",
77
- "@storybook/react-vite": "^8.6.1",
78
- "@storybook/react-webpack5": "^8.6.1",
79
- "@storybook/theming": "^8.6.1",
73
+ "@storybook/blocks": "^8.6.3",
74
+ "@storybook/manager-api": "^8.6.3",
75
+ "@storybook/nextjs": "^8.6.3",
76
+ "@storybook/preview-api": "^8.6.3",
77
+ "@storybook/react": "^8.6.3",
78
+ "@storybook/react-vite": "^8.6.3",
79
+ "@storybook/react-webpack5": "^8.6.3",
80
+ "@storybook/theming": "^8.6.3",
80
81
  "http-proxy-middleware": "^3.0.3",
81
82
  "msw": "^2.7.3",
82
83
  "msw-storybook-addon": "^2.0.4",
@@ -103,15 +104,15 @@
103
104
  "glob": "^11.0.1",
104
105
  "husky": "^9.1.7",
105
106
  "lint-staged": "^15.4.3",
106
- "prettier": "^3.5.2",
107
+ "prettier": "^3.5.3",
107
108
  "react": "^18",
108
109
  "react-dom": "^18",
109
- "rollup": "^4.34.8",
110
+ "rollup": "^4.34.9",
110
111
  "rollup-plugin-copy": "^3.5.0",
111
112
  "rollup-plugin-peer-deps-external": "^2.2.4",
112
113
  "semantic-release": "^24.2.3",
113
- "storybook": "^8.6.1",
114
- "stylelint": "^16.14.1",
115
- "typescript": "^5.7.3"
114
+ "storybook": "^8.6.3",
115
+ "stylelint": "^16.15.0",
116
+ "typescript": "^5.8.2"
116
117
  }
117
118
  }