@vueless/storybook 0.0.47 → 0.0.48

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.
@@ -159,6 +159,10 @@ body {
159
159
 
160
160
  /* -------------------- Main story -------------------- */
161
161
 
162
+ .sb-anchor {
163
+ @apply mt-2;
164
+ }
165
+
162
166
  .sb-bar,
163
167
  .docs-story {
164
168
  @apply bg-white;
@@ -15,10 +15,12 @@ import { createVueless } from "vueless";
15
15
  import { createRouter, createWebHistory } from "vue-router";
16
16
 
17
17
  /* Setup storybook */
18
- setup((app) => {
18
+ setup((app, storyContext) => {
19
19
  const vueless = createVueless();
20
20
  const router = createRouter({ history: createWebHistory(), routes: [] });
21
21
 
22
+ app.config.idPrefix = storyContext.id;
23
+
22
24
  if (!app._context.config.globalProperties.$route) {
23
25
  app.use(router);
24
26
  app.use(vueless);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueless/storybook",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "Simplifies Storybook configuration for Vueless UI library.",
5
5
  "homepage": "https://vueless.com",
6
6
  "author": "Johnny Grid",