@itcase/storybook-config 1.1.112 → 1.1.113
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.
|
@@ -7,10 +7,12 @@ const SOURCE_LINK = {
|
|
|
7
7
|
'component-vscode': ({ importPath, rootPath }) => {
|
|
8
8
|
if (!rootPath) return undefined
|
|
9
9
|
const labelPath =
|
|
10
|
-
'Source — ' + importPath.replace(/\.stories\.(js|tsx)?$/, '')
|
|
10
|
+
'Source — ' + importPath.replace(/\.stories\.(js|jsx|tsx|tsx)?$/, '')
|
|
11
11
|
const href = `vscode://${
|
|
12
|
-
getFileUrl(
|
|
13
|
-
|
|
12
|
+
getFileUrl(
|
|
13
|
+
rootPath,
|
|
14
|
+
importPath.replace(/\.stories\.(js|jsx|tsx|tsx)?$/, '.js'),
|
|
15
|
+
).href
|
|
14
16
|
}`
|
|
15
17
|
const icon = 'VSCodeIcon'
|
|
16
18
|
return { label: labelPath, href: href, icon: icon }
|
|
@@ -18,7 +20,8 @@ const SOURCE_LINK = {
|
|
|
18
20
|
'story-vscode': ({ importPath, rootPath }) => {
|
|
19
21
|
if (!rootPath) return undefined
|
|
20
22
|
|
|
21
|
-
const labelPath =
|
|
23
|
+
const labelPath =
|
|
24
|
+
'Story — ' + importPath.replace(/\.(js|jsx|tsx|tsx)?$/, '')
|
|
22
25
|
const href = `vscode://${getFileUrl(rootPath, importPath).href}`
|
|
23
26
|
const icon = 'StorybookIcon'
|
|
24
27
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/storybook-config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.113",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Storybook configuration package",
|
|
6
6
|
"engines": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@storybook/addon-themes": "^9.1.3",
|
|
84
84
|
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
|
|
85
85
|
"@storybook/addon-vitest": "^9.1.3",
|
|
86
|
-
"@vitejs/plugin-react": "^5.0.
|
|
86
|
+
"@vitejs/plugin-react": "^5.0.2",
|
|
87
87
|
"@storybook/nextjs": "^9.1.3",
|
|
88
88
|
"@storybook/react-vite": "^9.1.3",
|
|
89
89
|
"@storybook/react-webpack5": "^9.1.3",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"msw-storybook-addon": "^2.0.5",
|
|
94
94
|
"react-docgen": "^8.0.1",
|
|
95
95
|
"react-docgen-typescript-plugin": "^1.0.8",
|
|
96
|
-
"storybook-addon-source-link": "^1.0.
|
|
96
|
+
"storybook-addon-source-link": "^1.0.1",
|
|
97
97
|
"vite": "^7.1.3",
|
|
98
98
|
"vitest": "^3.2.4"
|
|
99
99
|
},
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@commitlint/cli": "^19.8.1",
|
|
102
102
|
"@commitlint/config-conventional": "^19.8.1",
|
|
103
103
|
"@itcase/common": "^1.2.29",
|
|
104
|
-
"@itcase/lint": "^1.1.
|
|
104
|
+
"@itcase/lint": "^1.1.42",
|
|
105
105
|
"@rollup/plugin-babel": "^6.0.4",
|
|
106
106
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
107
107
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -112,14 +112,14 @@
|
|
|
112
112
|
"@types/react": "^18",
|
|
113
113
|
"@types/react-dom": "^18",
|
|
114
114
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
115
|
-
"eslint": "9.
|
|
115
|
+
"eslint": "9.34.0",
|
|
116
116
|
"glob": "^11.0.3",
|
|
117
117
|
"husky": "^9.1.7",
|
|
118
118
|
"lint-staged": "^16.1.5",
|
|
119
119
|
"prettier": "^3.6.2",
|
|
120
120
|
"react": "^18",
|
|
121
121
|
"react-dom": "^18",
|
|
122
|
-
"rollup": "^4.
|
|
122
|
+
"rollup": "^4.49.0",
|
|
123
123
|
"rollup-plugin-copy": "^3.5.0",
|
|
124
124
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
125
125
|
"semantic-release": "^24.2.7",
|