histoire 0.5.1 → 0.5.2
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/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/components.d.ts +8 -0
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "histoire",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "A fast story book powered by Vite",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"histoire": "./bin.mjs"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@histoire/controls": "^0.5.
|
|
36
|
+
"@histoire/controls": "^0.5.2",
|
|
37
37
|
"@iconify/vue": "^3.2.1",
|
|
38
38
|
"@types/markdown-it": "^12.2.3",
|
|
39
39
|
"@vueuse/core": "^8.2.5",
|
package/src/components.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ import type {
|
|
|
15
15
|
HstColorShades,
|
|
16
16
|
} from '@histoire/controls'
|
|
17
17
|
|
|
18
|
+
// Utils
|
|
19
|
+
|
|
18
20
|
declare type NonUndefinedable<T> = T extends undefined ? never : T
|
|
19
21
|
declare type TypePropsToRuntimeProps<T> = {
|
|
20
22
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -25,6 +27,8 @@ declare type TypePropsToRuntimeProps<T> = {
|
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
|
|
30
|
+
// <Story>
|
|
31
|
+
|
|
28
32
|
interface VueStoryProps {
|
|
29
33
|
/**
|
|
30
34
|
* Title of the story.
|
|
@@ -78,6 +82,8 @@ declare const VueStoryComponent: import('vue').DefineComponent<
|
|
|
78
82
|
TypePropsToRuntimeProps<VueStoryProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<TypePropsToRuntimeProps<VueStoryProps>>> & {}, {}
|
|
79
83
|
>
|
|
80
84
|
|
|
85
|
+
// <Variant>
|
|
86
|
+
|
|
81
87
|
interface VueVariantProps {
|
|
82
88
|
/**
|
|
83
89
|
* Title of the variant.
|
|
@@ -119,6 +125,8 @@ declare const VueVariantComponent: import('vue').DefineComponent<
|
|
|
119
125
|
TypePropsToRuntimeProps<VueVariantProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<TypePropsToRuntimeProps<VueVariantProps>>> & {}, {}
|
|
120
126
|
>
|
|
121
127
|
|
|
128
|
+
// Register global components
|
|
129
|
+
|
|
122
130
|
declare module '@vue/runtime-core' {
|
|
123
131
|
export interface GlobalComponents {
|
|
124
132
|
Story: typeof VueStoryComponent
|