histoire 0.11.8 → 0.11.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.
@@ -22,7 +22,7 @@ interface CommonProps {
22
22
  variant: Variant;
23
23
  }) => unknown;
24
24
  }
25
- export declare type StoryOptions = Omit<StoryProps, 'setupApp'> & CommonProps & ((VanillaApi & {
25
+ export type StoryOptions = Omit<StoryProps, 'setupApp'> & CommonProps & ((VanillaApi & {
26
26
  variants?: never;
27
27
  }) | {
28
28
  variants?: VariantOptions[];
@@ -7,4 +7,4 @@ export declare function createMarkdownPlugins(ctx: Context): Promise<VitePlugin[
7
7
  export declare function createMarkdownFilesWatcher(ctx: Context): Promise<{
8
8
  stop: () => Promise<void>;
9
9
  }>;
10
- export declare type MarkdownFilesWatcher = ReturnType<typeof createMarkdownFilesWatcher>;
10
+ export type MarkdownFilesWatcher = ReturnType<typeof createMarkdownFilesWatcher>;
@@ -1,14 +1,14 @@
1
1
  import chokidar from 'chokidar';
2
2
  import type { ServerStoryFile } from '@histoire/shared';
3
3
  import { Context } from './context.js';
4
- declare type StoryChangeHandler = (file?: ServerStoryFile) => unknown;
4
+ type StoryChangeHandler = (file?: ServerStoryFile) => unknown;
5
5
  /**
6
6
  * Called when a new story is added or modified. Collecting should be done.
7
7
  * @param handler
8
8
  */
9
9
  export declare function onStoryChange(handler: StoryChangeHandler): void;
10
10
  export declare function notifyStoryChange(file?: ServerStoryFile): void;
11
- declare type StoryListChangeHandler = () => unknown;
11
+ type StoryListChangeHandler = () => unknown;
12
12
  /**
13
13
  * Called when the story list has changed (ex: removed a story). No collecting should be needed.
14
14
  * @param handler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "histoire",
3
- "version": "0.11.8",
3
+ "version": "0.11.9",
4
4
  "description": "A fast story book powered by Vite",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -33,10 +33,10 @@
33
33
  "histoire": "./bin.mjs"
34
34
  },
35
35
  "dependencies": {
36
- "@histoire/app": "^0.11.8",
37
- "@histoire/controls": "^0.11.8",
38
- "@histoire/shared": "^0.11.8",
39
- "@histoire/vendors": "^0.11.8",
36
+ "@histoire/app": "^0.11.9",
37
+ "@histoire/controls": "^0.11.9",
38
+ "@histoire/shared": "^0.11.9",
39
+ "@histoire/vendors": "^0.11.9",
40
40
  "@types/flexsearch": "^0.7.3",
41
41
  "@types/markdown-it": "^12.2.3",
42
42
  "birpc": "^0.1.1",
@@ -60,7 +60,7 @@
60
60
  "pathe": "^0.2.0",
61
61
  "picocolors": "^1.0.0",
62
62
  "sade": "^1.8.1",
63
- "shiki": "0.10.1",
63
+ "shiki": "0.11.1",
64
64
  "sirv": "^2.0.2",
65
65
  "tinypool": "^0.1.2",
66
66
  "vite-node": "0.23.4"