@itcase/storybook-config 1.2.74 → 1.2.75

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.
@@ -1119,11 +1119,6 @@ function hasFormParameters(parameters) {
1119
1119
  return Boolean(parameters.require || parameters.validation || parameters.error || parameters.serverError || parameters.serverErrorData);
1120
1120
  }
1121
1121
 
1122
- function isVitestEnvironment() {
1123
- var _import$meta$env;
1124
- return Boolean((_import$meta$env = undefined) === null || _import$meta$env === void 0 ? void 0 : _import$meta$env.VITEST);
1125
- }
1126
-
1127
1122
  function getStoryArgs(storyContext) {
1128
1123
  var _storyContext$context, _storyContext$initial, _baseContext$args, _storyContext$args;
1129
1124
  var baseContext = (_storyContext$context = storyContext.context) !== null && _storyContext$context !== void 0 ? _storyContext$context : storyContext;
@@ -1141,7 +1136,7 @@ function withFormSubmitDecorator() {
1141
1136
  var decorator = function decorator(Story, storyContext) {
1142
1137
  var parameters = storyContext.parameters;
1143
1138
  var context = enhanceStoryContext(storyContext);
1144
- if (isVitestEnvironment() || !hasFormParameters(parameters)) {
1139
+ if (!hasFormParameters(parameters)) {
1145
1140
  return /*#__PURE__*/React.createElement(Story, Object.assign({}, context, {
1146
1141
  parameters: parameters
1147
1142
  }));
@@ -17,6 +17,13 @@ const VIEWPORTS = {
17
17
  height: '667px',
18
18
  },
19
19
  },
20
+ tablet: {
21
+ name: 'Tablet',
22
+ styles: {
23
+ width: '768px',
24
+ height: '1024px',
25
+ },
26
+ },
20
27
  }
21
28
 
22
29
  export { VIEWPORTS }
@@ -1117,11 +1117,6 @@ function hasFormParameters(parameters) {
1117
1117
  return Boolean(parameters.require || parameters.validation || parameters.error || parameters.serverError || parameters.serverErrorData);
1118
1118
  }
1119
1119
 
1120
- function isVitestEnvironment() {
1121
- var _import$meta$env;
1122
- return Boolean((_import$meta$env = import.meta.env) === null || _import$meta$env === void 0 ? void 0 : _import$meta$env.VITEST);
1123
- }
1124
-
1125
1120
  function getStoryArgs(storyContext) {
1126
1121
  var _storyContext$context, _storyContext$initial, _baseContext$args, _storyContext$args;
1127
1122
  var baseContext = (_storyContext$context = storyContext.context) !== null && _storyContext$context !== void 0 ? _storyContext$context : storyContext;
@@ -1139,7 +1134,7 @@ function withFormSubmitDecorator() {
1139
1134
  var decorator = function decorator(Story, storyContext) {
1140
1135
  var parameters = storyContext.parameters;
1141
1136
  var context = enhanceStoryContext(storyContext);
1142
- if (isVitestEnvironment() || !hasFormParameters(parameters)) {
1137
+ if (!hasFormParameters(parameters)) {
1143
1138
  return /*#__PURE__*/React.createElement(Story, Object.assign({}, context, {
1144
1139
  parameters: parameters
1145
1140
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.2.74",
3
+ "version": "1.2.75",
4
4
  "author": "ITCase",
5
5
  "description": "Storybook configuration package",
6
6
  "engines": {
@@ -121,11 +121,11 @@
121
121
  "babel-plugin-react-native-web": "^0.21.2",
122
122
  "babel-plugin-transform-inline-environment-variables": "^0.4.4",
123
123
  "chalk": "^5.6.2",
124
- "http-proxy-middleware": "^4.0.0",
124
+ "http-proxy-middleware": "^4.1.0",
125
125
  "msw": "^2.14.6",
126
126
  "msw-storybook-addon": "^2.0.7",
127
127
  "react-native-gesture-handler": "^3.0.0",
128
- "react-native-reanimated": "^4.4.0",
128
+ "react-native-reanimated": "^4.4.1",
129
129
  "react-native-safe-area-context": "^5.8.0",
130
130
  "react-native-svg": "^15.15.5",
131
131
  "react-native-web": "^0.21.2",
@@ -147,8 +147,8 @@
147
147
  "@commitlint/config-conventional": "^21.0.2",
148
148
  "@itcase/common": "^1.2.44",
149
149
  "@itcase/lint": "^1.1.116",
150
- "@itcase/ui-core": "^1.10.15",
151
- "@itcase/ui-web": "^1.10.20",
150
+ "@itcase/ui-core": "^1.10.21",
151
+ "@itcase/ui-web": "^1.10.23",
152
152
  "@react-native-community/cli": "20.1.3",
153
153
  "@react-native-community/cli-platform-android": "20.1.3",
154
154
  "@react-native-community/cli-platform-ios": "20.1.3",
@@ -177,11 +177,11 @@
177
177
  "react-dom": "^18",
178
178
  "react-native": "0.85.3",
179
179
  "react-native-web": "^0.21.2",
180
- "rollup": "^4.61.0",
180
+ "rollup": "^4.61.1",
181
181
  "rollup-plugin-copy": "^3.5.0",
182
182
  "rollup-plugin-peer-deps-external": "^2.2.4",
183
183
  "semantic-release": "^25.0.3",
184
- "stylelint": "^17.12.0",
184
+ "stylelint": "^17.13.0",
185
185
  "typescript": "^6.0.3",
186
186
  "vite": "^8.0.16"
187
187
  }