@nlabs/lex 1.48.1 → 1.48.3
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.
- package/.storybook/main.ts +32 -1
- package/package.json +7 -6
package/.storybook/main.ts
CHANGED
|
@@ -3,6 +3,7 @@ const config = {
|
|
|
3
3
|
'@storybook/addon-docs',
|
|
4
4
|
'@storybook/addon-links',
|
|
5
5
|
'@storybook/addon-postcss',
|
|
6
|
+
'@storybook/addon-styling-webpack',
|
|
6
7
|
'@storybook/addon-themes'
|
|
7
8
|
],
|
|
8
9
|
framework: {
|
|
@@ -13,7 +14,37 @@ const config = {
|
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
},
|
|
16
|
-
stories: ['../src/**/*.stories.@(js|ts|tsx)', '../src/**/*.mdx']
|
|
17
|
+
stories: ['../src/**/*.stories.@(js|ts|tsx)', '../src/**/*.mdx'],
|
|
18
|
+
webpackFinal: async (config) => {
|
|
19
|
+
return {
|
|
20
|
+
...config,
|
|
21
|
+
module: {
|
|
22
|
+
...config.module,
|
|
23
|
+
rules: [
|
|
24
|
+
...(config.module?.rules || []),
|
|
25
|
+
{
|
|
26
|
+
test: /\.(ts|tsx)$/,
|
|
27
|
+
use: [
|
|
28
|
+
{
|
|
29
|
+
loader: 'babel-loader',
|
|
30
|
+
options: {
|
|
31
|
+
presets: [
|
|
32
|
+
'@babel/preset-typescript',
|
|
33
|
+
[
|
|
34
|
+
'@babel/preset-react',
|
|
35
|
+
{
|
|
36
|
+
runtime: 'automatic'
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
17
48
|
};
|
|
18
49
|
|
|
19
50
|
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlabs/lex",
|
|
3
|
-
"version": "1.48.
|
|
3
|
+
"version": "1.48.3",
|
|
4
4
|
"description": "Lex",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -59,7 +59,9 @@
|
|
|
59
59
|
"@babel/core": "^7.28.0",
|
|
60
60
|
"@babel/plugin-transform-nullish-coalescing-operator": "^7.27.1",
|
|
61
61
|
"@babel/plugin-transform-optional-chaining": "^7.27.1",
|
|
62
|
+
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
62
63
|
"@babel/preset-env": "^7.28.0",
|
|
64
|
+
"@babel/preset-react": "^7.27.1",
|
|
63
65
|
"@babel/preset-typescript": "7.27.1",
|
|
64
66
|
"@luckycatfactory/esbuild-graphql-loader": "^3.8.1",
|
|
65
67
|
"@mdx-js/loader": "^3.1.0",
|
|
@@ -70,6 +72,7 @@
|
|
|
70
72
|
"@storybook/addon-docs": "^9.0.17",
|
|
71
73
|
"@storybook/addon-links": "^9.0.17",
|
|
72
74
|
"@storybook/addon-postcss": "^2.0.0",
|
|
75
|
+
"@storybook/addon-styling-webpack": "^2.0.0",
|
|
73
76
|
"@storybook/addon-themes": "^9.0.17",
|
|
74
77
|
"@storybook/addon-viewport": "^9.0.8",
|
|
75
78
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
@@ -85,7 +88,9 @@
|
|
|
85
88
|
"assert": "^2.1.0",
|
|
86
89
|
"autoprefixer": "^10.4.21",
|
|
87
90
|
"babel-jest": "^30.0.4",
|
|
91
|
+
"babel-loader": "^10.0.0",
|
|
88
92
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
93
|
+
"babel-plugin-transform-import-meta": "^2.3.3",
|
|
89
94
|
"boxen": "8.0.1",
|
|
90
95
|
"buffer": "^6.0.3",
|
|
91
96
|
"caniuse-lite": "1.0.30001727",
|
|
@@ -181,16 +186,12 @@
|
|
|
181
186
|
"webpack-plugin-serve": "^1.6.0"
|
|
182
187
|
},
|
|
183
188
|
"devDependencies": {
|
|
184
|
-
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
185
|
-
"@babel/preset-react": "^7.27.1",
|
|
186
189
|
"@types/jest": "^30.0.0",
|
|
187
190
|
"@types/luxon": "^3.6.2",
|
|
188
191
|
"@types/node": "^24.0.14",
|
|
189
192
|
"@types/ora": "^3.2.0",
|
|
190
193
|
"@types/react": "^19.1.8",
|
|
191
|
-
"@types/webpack": "^5.28.5"
|
|
192
|
-
"babel-loader": "^10.0.0",
|
|
193
|
-
"babel-plugin-transform-import-meta": "^2.3.3"
|
|
194
|
+
"@types/webpack": "^5.28.5"
|
|
194
195
|
},
|
|
195
196
|
"peerDependencies": {
|
|
196
197
|
"@storybook/react": "^9.0.17",
|