@vueless/storybook 1.2.1-beta.4 → 1.2.1-beta.5

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,5 +1,5 @@
1
1
  @import "tailwindcss";
2
- @import "vueless";
2
+ @import "vueless/tailwind.css";
3
3
 
4
4
  /* -------------------- Storybook Preview UI -------------------- */
5
5
  /* -------------------- General -------------------- */
@@ -2,7 +2,7 @@ import { defineConfig } from "vite";
2
2
 
3
3
  // Plugins
4
4
  import Vue from "@vitejs/plugin-vue";
5
- import { Vueless, TailwindCSS } from "vueless/plugin-vite";
5
+ import { Vueless, TailwindCSS } from "vueless/plugin-vite.js";
6
6
  import { STORYBOOK_ENV } from "vueless/constants.js";
7
7
 
8
8
  export default defineConfig({
@@ -1,5 +1,5 @@
1
1
  @import "tailwindcss";
2
- @import "vueless";
2
+ @import "vueless/tailwind.css";
3
3
 
4
4
  /* -------------------- Storybook Preview UI -------------------- */
5
5
  /* -------------------- General -------------------- */
@@ -2,7 +2,7 @@ import { defineConfig } from "vite";
2
2
 
3
3
  // Plugins
4
4
  import Vue from "@vitejs/plugin-vue";
5
- import { Vueless, TailwindCSS } from "vueless/plugin-vite";
5
+ import { Vueless, TailwindCSS } from "vueless/plugin-vite.js";
6
6
  import { STORYBOOK_ENV } from "vueless/constants.js";
7
7
 
8
8
  export default defineConfig({
package/README.md CHANGED
@@ -16,7 +16,7 @@ npm install vueless
16
16
  npm install -D @vueless/storybook
17
17
 
18
18
  # Copy Vueless Storybook preset into your project.
19
- npx @vueless/storybook
19
+ npx @vueless/storybook init
20
20
  ```
21
21
 
22
22
  ## Contributing
@@ -0,0 +1,2 @@
1
+ export { storyDarkModeDecorator } from "./decorators/storyDarkModeDecorator.js";
2
+ export { vue3SourceDecorator } from "./decorators/vue3SourceDecorator.js";
package/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- import { UnknownObject } from "vueless";
1
+ export declare function defineConfigWithVueless(options?: any): () => any;
2
+ export declare function getVuelessStoriesGlob(vuelessEnv?: string): Promise<string[]>;
2
3
 
3
- export { storyDarkModeDecorator } from "./decorators/storyDarkModeDecorator";
4
- export { vue3SourceDecorator } from "./decorators/vue3SourceDecorator";
5
-
6
- export declare function defineConfigWithVueless(options?: UnknownObject): () => UnknownObject;
7
- export function getVuelessStoriesGlob(vuelessEnv?: string): Promise<string[]>;
4
+ export { storyDarkModeDecorator } from "./decorators/storyDarkModeDecorator.js";
5
+ export { vue3SourceDecorator } from "./decorators/vue3SourceDecorator.js";
package/index.js CHANGED
@@ -1,5 +1,4 @@
1
- export { storyDarkModeDecorator } from "./decorators/storyDarkModeDecorator";
2
- export { vue3SourceDecorator } from "./decorators/vue3SourceDecorator";
1
+ export { buildWebTypes } from "./webTypes/index.js";
3
2
 
4
3
  import { getVuelessConfig } from "vueless/utils/node/vuelessConfig.js";
5
4
  import {
package/package.json CHANGED
@@ -1,12 +1,10 @@
1
1
  {
2
2
  "name": "@vueless/storybook",
3
- "version": "1.2.1-beta.4",
3
+ "version": "1.2.1-beta.5",
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",
7
7
  "license": "MIT",
8
- "main": "index.js",
9
- "type": "module",
10
8
  "publishConfig": {
11
9
  "access": "public"
12
10
  },
@@ -58,6 +56,16 @@
58
56
  "vue-tsc": "^3.0.6",
59
57
  "vueless": "^1.2.2"
60
58
  },
59
+ "type": "module",
60
+ "main": "index.js",
61
+ "types": "./index.d.ts",
62
+ "exports": {
63
+ ".": {
64
+ "node": "./index.js",
65
+ "types": "./index.d.ts",
66
+ "browser": "./index.browser.js"
67
+ }
68
+ },
61
69
  "overrides": {
62
70
  "vue-docgen-api": {
63
71
  "vue": "latest",
package/webTypes/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { extractConfig } from "./lib/config.js";
3
3
  import build from "./lib/build.js";
4
4
 
5
- export default async function buildWebTypes(vuelessConfig, srcDir) {
5
+ export async function buildWebTypes(vuelessConfig, srcDir) {
6
6
  const config = await extractConfig();
7
7
 
8
8
  build(config, vuelessConfig, srcDir);