@vueless/storybook 0.0.5 → 0.0.7

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,6 @@
1
1
  import { addons, makeDecorator } from "@storybook/preview-api";
2
2
  import { h, onMounted, watch } from "vue";
3
- import { setBrandColor } from "vueless/src/service.ui";
3
+ import { setBrandColor } from "vueless/service.ui";
4
4
 
5
5
  export const vue3SourceDecorator = makeDecorator({
6
6
  name: "vue3SourceDecorator",
@@ -1,6 +1,11 @@
1
1
  /** @type { import('@storybook/vue3-vite').StorybookConfig } */
2
2
  export default {
3
- stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)", "../src/**/*.@(mdx)"],
3
+ stories: [
4
+ "../node_modules/vueless/**/*.stories.@(js|jsx|ts|tsx)",
5
+ "../node_modules/vueless/**/*.@(mdx)",
6
+ "../src/**/*.stories.@(js|jsx|ts|tsx)",
7
+ "../src/**/*.@(mdx)",
8
+ ],
4
9
  addons: [
5
10
  "@storybook/addon-links",
6
11
  "@storybook/addon-essentials",
@@ -4,15 +4,15 @@ import { vue3SourceDecorator } from "./decorators/vue3SourceDecorator";
4
4
 
5
5
  // Vue plugins
6
6
  import { createStore } from "vuex";
7
- import NotifyServiceDefault from "vueless/src/ui.notify/services";
7
+ import NotifyServiceDefault from "vueless/ui.notify/services";
8
8
 
9
9
  // Tailwind styles
10
10
  import "./index.pcss";
11
11
 
12
12
  // Common stores
13
- import loader from "vueless/src/ui.loader-rendering/store";
14
- import loaderTop from "vueless/src/ui.loader-top/store";
15
- import breakpoint from "vueless/src/ui.viewport/store";
13
+ import loader from "vueless/ui.loader-rendering/store";
14
+ import loaderTop from "vueless/ui.loader-top/store";
15
+ import breakpoint from "vueless/ui.viewport/store";
16
16
 
17
17
  // Create store instance
18
18
  const store = createStore({
@@ -36,7 +36,10 @@ export default {
36
36
  docs,
37
37
  backgrounds,
38
38
  options: {
39
- storySort: (a, b) => (a.id === b.id ? 0 : a.name === "Docs" && a.id.localeCompare(b.id, undefined, { numeric: true })),
39
+ storySort: (a, b) =>
40
+ a.id === b.id
41
+ ? 0
42
+ : a.name === "Docs" && a.id.localeCompare(b.id, undefined, { numeric: true }),
40
43
  },
41
44
  },
42
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueless/storybook",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "The package simplifies Storybook configuration for Vueless UI library.",
5
5
  "homepage": "https://vueless.com",
6
6
  "author": "Johnny Grid",
@@ -42,5 +42,8 @@
42
42
  "eslint-plugin-prettier": "^5.1.3",
43
43
  "prettier": "^3.2.5",
44
44
  "prettier-eslint": "^16.3.0"
45
+ },
46
+ "resolutions": {
47
+ "jackspeak": "2.1.1"
45
48
  }
46
49
  }