@itcase/storybook-config 1.1.94 → 1.1.96

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.
@@ -17,6 +17,9 @@ function withLayoutDecorator() {
17
17
  width: parameters.maxWidth && '100%',
18
18
  maxWidth: parameters == null ? void 0 : parameters.maxWidth
19
19
  };
20
+ if (!layoutClass && !parameters.maxWidth) {
21
+ return /*#__PURE__*/React.createElement(Story, null);
22
+ }
20
23
  if (!layoutClass) {
21
24
  return /*#__PURE__*/React.createElement("div", {
22
25
  style: maxWidthStyle
@@ -1,6 +1,8 @@
1
1
  import { INITIAL_VIEWPORTS, MINIMAL_VIEWPORTS } from 'storybook/viewport'
2
2
 
3
3
  const VIEWPORTS = {
4
+ ...INITIAL_VIEWPORTS,
5
+ ...MINIMAL_VIEWPORTS,
4
6
  desktop: {
5
7
  name: 'Desktop',
6
8
  styles: {
@@ -15,8 +17,6 @@ const VIEWPORTS = {
15
17
  height: '667px',
16
18
  },
17
19
  },
18
- ...INITIAL_VIEWPORTS,
19
- ...MINIMAL_VIEWPORTS,
20
20
  }
21
21
 
22
22
  export { VIEWPORTS }
@@ -15,6 +15,9 @@ function withLayoutDecorator() {
15
15
  width: parameters.maxWidth && '100%',
16
16
  maxWidth: parameters == null ? void 0 : parameters.maxWidth
17
17
  };
18
+ if (!layoutClass && !parameters.maxWidth) {
19
+ return /*#__PURE__*/React.createElement(Story, null);
20
+ }
18
21
  if (!layoutClass) {
19
22
  return /*#__PURE__*/React.createElement("div", {
20
23
  style: maxWidthStyle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.1.94",
3
+ "version": "1.1.96",
4
4
  "author": "ITCase",
5
5
  "description": "Storybook configuration package",
6
6
  "engines": {
@@ -94,15 +94,15 @@
94
94
  "react-docgen": "^8.0.0",
95
95
  "react-docgen-typescript-plugin": "^1.0.8",
96
96
  "storybook-addon-source-link": "^0.2.2",
97
- "@std/path": "npm:@jsr/std__path@^1.1.1",
97
+ "@std/path": "npm:@jsr/std__path@^1.1.2",
98
98
  "vite": "^7.1.2",
99
99
  "vitest": "^3.2.4"
100
100
  },
101
101
  "devDependencies": {
102
102
  "@commitlint/cli": "^19.8.1",
103
103
  "@commitlint/config-conventional": "^19.8.1",
104
- "@itcase/common": "^1.2.28",
105
- "@itcase/lint": "^1.1.30",
104
+ "@itcase/common": "^1.2.29",
105
+ "@itcase/lint": "^1.1.32",
106
106
  "@rollup/plugin-babel": "^6.0.4",
107
107
  "@rollup/plugin-commonjs": "^28.0.6",
108
108
  "@rollup/plugin-json": "^6.1.0",