@vueless/storybook 1.1.3-beta.8 → 1.1.3-beta.9
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-js/preview.js
CHANGED
package/.storybook-ts/preview.ts
CHANGED
|
@@ -4,13 +4,6 @@ import { setup } from "@storybook/vue3-vite";
|
|
|
4
4
|
|
|
5
5
|
import type { Preview } from "@storybook/vue3-vite";
|
|
6
6
|
|
|
7
|
-
type Story = {
|
|
8
|
-
id: string;
|
|
9
|
-
importPath: string;
|
|
10
|
-
name: string;
|
|
11
|
-
title: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
7
|
/* Theme styles */
|
|
15
8
|
import "./themes/preview.css";
|
|
16
9
|
import { themeDark } from "./themes/themeDark";
|
|
@@ -34,7 +27,7 @@ setup((app) => {
|
|
|
34
27
|
}
|
|
35
28
|
});
|
|
36
29
|
|
|
37
|
-
export
|
|
30
|
+
export default {
|
|
38
31
|
/* Set storybook decorators */
|
|
39
32
|
decorators: [vue3SourceDecorator, storyDarkModeDecorator],
|
|
40
33
|
|
|
@@ -56,7 +49,8 @@ export const preview: Preview = {
|
|
|
56
49
|
stylePreview: true,
|
|
57
50
|
},
|
|
58
51
|
options: {
|
|
59
|
-
|
|
52
|
+
// @ts-expect-error: Storybook types are not correct.
|
|
53
|
+
storySort: (a, b) => {
|
|
60
54
|
const idA = a.id.split("--")[0];
|
|
61
55
|
const idB = b.id.split("--")[0];
|
|
62
56
|
|
|
@@ -64,7 +58,7 @@ export const preview: Preview = {
|
|
|
64
58
|
},
|
|
65
59
|
},
|
|
66
60
|
},
|
|
67
|
-
};
|
|
61
|
+
} as Preview;
|
|
68
62
|
|
|
69
63
|
/* Reload the page on the error "Failed to fetch dynamically imported module..." */
|
|
70
64
|
window.addEventListener("error", (ev) => onFailedToFetchModule(ev.message));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": [
|
|
3
|
+
"env.d.ts",
|
|
4
|
+
"**/*",
|
|
5
|
+
],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
/* General */
|
|
8
|
+
"module": "ESNext",
|
|
9
|
+
"target": "ESNext",
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"useDefineForClassFields": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"verbatimModuleSyntax": true, // This is important for `<script setup>`.
|
|
14
|
+
"tsBuildInfoFile": "./node_modules/.tmp/storybookTsconfig.app.tsbuildinfo",
|
|
15
|
+
"removeComments": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"composite": true,
|
|
18
|
+
"noEmit": true,
|
|
19
|
+
|
|
20
|
+
/* Path settings */
|
|
21
|
+
"baseUrl": ".",
|
|
22
|
+
"rootDir": "./",
|
|
23
|
+
|
|
24
|
+
/* Enables all strict type-checking options. */
|
|
25
|
+
"strict": true,
|
|
26
|
+
"noImplicitThis": true,
|
|
27
|
+
|
|
28
|
+
/* Bundlers settings */
|
|
29
|
+
"moduleResolution": "bundler",
|
|
30
|
+
"resolveJsonModule": true,
|
|
31
|
+
|
|
32
|
+
/* JS file support. */
|
|
33
|
+
"allowJs": true,
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": [
|
|
3
|
+
"vite.config.*",
|
|
4
|
+
],
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"noEmit": true,
|
|
8
|
+
"composite": true,
|
|
9
|
+
"tsBuildInfoFile": "./node_modules/.tmp/storybookTsconfig.node.tsbuildinfo",
|
|
10
|
+
"moduleResolution": "Bundler",
|
|
11
|
+
|
|
12
|
+
/* Custom types. */
|
|
13
|
+
"types": [
|
|
14
|
+
"node",
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueless/storybook",
|
|
3
|
-
"version": "1.1.3-beta.
|
|
3
|
+
"version": "1.1.3-beta.9",
|
|
4
4
|
"description": "Simplifies Storybook configuration for Vueless UI library.",
|
|
5
5
|
"author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
|
|
6
6
|
"homepage": "https://vueless.com",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@release-it/bumper": "^7.0.5",
|
|
43
43
|
"@stylistic/eslint-plugin": "^5.2.3",
|
|
44
|
-
"@tsconfig/node20": "^20.1.6",
|
|
45
44
|
"@types/node": "^24.3.0",
|
|
46
45
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
47
46
|
"eslint": "^9.33.0",
|