@itcase/storybook-config 1.0.46 → 1.0.48

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.
@@ -1,6 +1,7 @@
1
- import axios from 'axios'
2
1
  import camelCase from 'lodash/camelCase'
3
2
 
3
+ import { axiosInstanceITCase } from '@itcase/common'
4
+
4
5
  async function getStoryInfoBlocks(infoBlockSlugsList = []) {
5
6
  const slugsList = []
6
7
  const regExpsList = []
@@ -13,9 +14,10 @@ async function getStoryInfoBlocks(infoBlockSlugsList = []) {
13
14
  }
14
15
  })
15
16
 
16
- const restBaseUrl = process.env.REST_BASE_URL
17
17
  const slugsQuery = slugsList.join(',')
18
- const response = await axios.get(`${restBaseUrl}rest/infoblocks/?active=true&slugs=${slugsQuery}`)
18
+ const response = await axiosInstanceITCase.get(
19
+ `/rest/infoblocks/?active=true&slugs=${slugsQuery}`,
20
+ )
19
21
  const infoBlocksList = response.data.results || []
20
22
  const infoBlocks = infoBlocksList.reduce((resultData, infoBlockItem) => {
21
23
  const targetSlugRegExp = regExpsList.find((slugRegExp) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {
@@ -57,28 +57,28 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@etchteam/storybook-addon-status": "^5.0.0",
60
- "@itcase/config": "^1.0.14",
60
+ "@itcase/config": "^1.0.16",
61
61
  "@itcase/storybook-addon-auth": "^1.0.4",
62
- "@storybook/addon-actions": "^8.5.8",
63
- "@storybook/addon-controls": "^8.5.8",
62
+ "@storybook/addon-actions": "^8.6.0",
63
+ "@storybook/addon-controls": "^8.6.0",
64
64
  "@storybook/addon-designs": "^8.2.0",
65
- "@storybook/addon-essentials": "^8.5.8",
66
- "@storybook/addon-interactions": "^8.5.8",
67
- "@storybook/addon-links": "^8.5.8",
65
+ "@storybook/addon-essentials": "^8.6.0",
66
+ "@storybook/addon-interactions": "^8.6.0",
67
+ "@storybook/addon-links": "^8.6.0",
68
68
  "@storybook/addon-styling-webpack": "^1.0.1",
69
- "@storybook/addon-themes": "^8.5.8",
70
- "@storybook/addon-viewport": "^8.5.8",
69
+ "@storybook/addon-themes": "^8.6.0",
70
+ "@storybook/addon-viewport": "^8.6.0",
71
71
  "@storybook/addon-webpack5-compiler-swc": "^2.1.0",
72
- "@storybook/blocks": "^8.5.8",
73
- "@storybook/manager-api": "^8.5.8",
74
- "@storybook/nextjs": "^8.5.8",
75
- "@storybook/preview-api": "^8.5.8",
76
- "@storybook/react": "^8.5.8",
77
- "@storybook/react-vite": "^8.5.8",
78
- "@storybook/react-webpack5": "^8.5.8",
79
- "@storybook/theming": "^8.5.8",
72
+ "@storybook/blocks": "^8.6.0",
73
+ "@storybook/manager-api": "^8.6.0",
74
+ "@storybook/nextjs": "^8.6.0",
75
+ "@storybook/preview-api": "^8.6.0",
76
+ "@storybook/react": "^8.6.0",
77
+ "@storybook/react-vite": "^8.6.0",
78
+ "@storybook/react-webpack5": "^8.6.0",
79
+ "@storybook/theming": "^8.6.0",
80
80
  "http-proxy-middleware": "^3.0.3",
81
- "msw": "^2.7.0",
81
+ "msw": "^2.7.3",
82
82
  "msw-storybook-addon": "^2.0.4",
83
83
  "react-docgen": "^7.1.1",
84
84
  "react-docgen-typescript-plugin": "^1.0.8",
@@ -87,9 +87,9 @@
87
87
  "devDependencies": {
88
88
  "@commitlint/cli": "^19.7.1",
89
89
  "@commitlint/config-conventional": "^19.7.1",
90
- "@itcase/common": "^1.2.17",
90
+ "@itcase/common": "^1.2.18",
91
91
  "@itcase/lint": "^1.0.41",
92
- "@itcase/ui": "^1.3.25",
92
+ "@itcase/ui": "^1.3.26",
93
93
  "@rollup/plugin-babel": "^6.0.4",
94
94
  "@rollup/plugin-commonjs": "^28.0.2",
95
95
  "@rollup/plugin-node-resolve": "^16.0.0",
@@ -99,18 +99,18 @@
99
99
  "@types/react": "^18",
100
100
  "@types/react-dom": "^18",
101
101
  "conventional-changelog-conventionalcommits": "^8.0.0",
102
- "eslint": "9.20.1",
102
+ "eslint": "9.21.0",
103
103
  "glob": "^11.0.1",
104
104
  "husky": "^9.1.7",
105
105
  "lint-staged": "^15.4.3",
106
- "prettier": "^3.5.1",
106
+ "prettier": "^3.5.2",
107
107
  "react": "^18",
108
108
  "react-dom": "^18",
109
109
  "rollup": "^4.34.8",
110
110
  "rollup-plugin-copy": "^3.5.0",
111
111
  "rollup-plugin-peer-deps-external": "^2.2.4",
112
112
  "semantic-release": "^24.2.3",
113
- "storybook": "^8.5.8",
113
+ "storybook": "^8.6.0",
114
114
  "stylelint": "^16.14.1",
115
115
  "typescript": "^5.7.3"
116
116
  }