@scalar/api-reference 1.0.0 → 1.0.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/CHANGELOG.md +18 -0
- package/dist/browser/standalone.js +81891 -81784
- package/dist/components/ApiClientModal.vue.d.ts +14 -2
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts +15 -17
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts +178 -0
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle.vue.d.ts +15 -1
- package/dist/components/DarkModeToggle.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.d.ts +15 -1
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/Sidebar.vue.d.ts +14 -2
- package/dist/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/hooks/useParser.d.ts +2 -0
- package/dist/hooks/useParser.d.ts.map +1 -1
- package/dist/hooks/useSpec.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22110 -35511
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -5,6 +5,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
5
5
|
type: import("vue").PropType<Spec>;
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
|
+
isDarkMode: {
|
|
9
|
+
type: import("vue").PropType<boolean>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
8
12
|
overloadShow: {
|
|
9
13
|
type: import("vue").PropType<boolean>;
|
|
10
14
|
};
|
|
@@ -17,11 +21,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
17
21
|
proxyUrl: {
|
|
18
22
|
type: import("vue").PropType<string>;
|
|
19
23
|
};
|
|
20
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
toggleDarkMode: () => void;
|
|
26
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
27
|
parsedSpec: {
|
|
22
28
|
type: import("vue").PropType<Spec>;
|
|
23
29
|
required: true;
|
|
24
30
|
};
|
|
31
|
+
isDarkMode: {
|
|
32
|
+
type: import("vue").PropType<boolean>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
25
35
|
overloadShow: {
|
|
26
36
|
type: import("vue").PropType<boolean>;
|
|
27
37
|
};
|
|
@@ -34,7 +44,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
44
|
proxyUrl: {
|
|
35
45
|
type: import("vue").PropType<string>;
|
|
36
46
|
};
|
|
37
|
-
}
|
|
47
|
+
}>> & {
|
|
48
|
+
onToggleDarkMode?: (() => any) | undefined;
|
|
49
|
+
}, {}, {}>, {
|
|
38
50
|
header?(_: {}): any;
|
|
39
51
|
"active-tab"?(_: {}): any;
|
|
40
52
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;AAKpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;AAKpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA0PzB,GAAG;0BACG,GAAG;;AA1PtC,wBAyQ0G;AAgB1G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -13,6 +13,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
13
13
|
aiWriterMarkdown: {
|
|
14
14
|
type: import("vue").PropType<string>;
|
|
15
15
|
};
|
|
16
|
+
hocuspocusConfiguration: {
|
|
17
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
|
|
18
|
+
};
|
|
19
|
+
initialTabState: {
|
|
20
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
|
|
21
|
+
};
|
|
16
22
|
spec: {
|
|
17
23
|
type: import("vue").PropType<string>;
|
|
18
24
|
};
|
|
@@ -22,9 +28,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
28
|
specResult: {
|
|
23
29
|
type: import("vue").PropType<Record<any, any>>;
|
|
24
30
|
};
|
|
25
|
-
initialTabState: {
|
|
26
|
-
type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
|
|
27
|
-
};
|
|
28
31
|
showSidebar: {
|
|
29
32
|
type: import("vue").PropType<boolean>;
|
|
30
33
|
default: undefined;
|
|
@@ -37,9 +40,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
37
40
|
type: import("vue").PropType<boolean>;
|
|
38
41
|
default: undefined;
|
|
39
42
|
};
|
|
40
|
-
hocuspocusConfiguration: {
|
|
41
|
-
type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
|
|
42
|
-
};
|
|
43
43
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
44
|
changeTheme: (value: ThemeId) => void;
|
|
45
45
|
startAIWriter: (value: string[], swaggerData: string, swaggerType: "json" | "yaml") => void;
|
|
@@ -56,6 +56,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
56
56
|
aiWriterMarkdown: {
|
|
57
57
|
type: import("vue").PropType<string>;
|
|
58
58
|
};
|
|
59
|
+
hocuspocusConfiguration: {
|
|
60
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
|
|
61
|
+
};
|
|
62
|
+
initialTabState: {
|
|
63
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
|
|
64
|
+
};
|
|
59
65
|
spec: {
|
|
60
66
|
type: import("vue").PropType<string>;
|
|
61
67
|
};
|
|
@@ -65,9 +71,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
65
71
|
specResult: {
|
|
66
72
|
type: import("vue").PropType<Record<any, any>>;
|
|
67
73
|
};
|
|
68
|
-
initialTabState: {
|
|
69
|
-
type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
|
|
70
|
-
};
|
|
71
74
|
showSidebar: {
|
|
72
75
|
type: import("vue").PropType<boolean>;
|
|
73
76
|
default: undefined;
|
|
@@ -80,22 +83,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
80
83
|
type: import("vue").PropType<boolean>;
|
|
81
84
|
default: undefined;
|
|
82
85
|
};
|
|
83
|
-
hocuspocusConfiguration: {
|
|
84
|
-
type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
|
|
85
|
-
};
|
|
86
86
|
}>> & {
|
|
87
|
-
onStartAIWriter?: ((value: string[], swaggerData: string, swaggerType: "json" | "yaml") => any) | undefined;
|
|
88
87
|
onChangeTheme?: ((value: ThemeId) => any) | undefined;
|
|
88
|
+
onStartAIWriter?: ((value: string[], swaggerData: string, swaggerType: "json" | "yaml") => any) | undefined;
|
|
89
89
|
}, {
|
|
90
90
|
showSidebar: boolean;
|
|
91
91
|
footerBelowSidebar: boolean;
|
|
92
92
|
isEditable: boolean;
|
|
93
93
|
}, {}>, {
|
|
94
|
-
"search-modal"?(_: {}): any;
|
|
95
94
|
header?(_: {}): any;
|
|
96
|
-
"mobile-header"?(_: {
|
|
97
|
-
|
|
98
|
-
}): any;
|
|
95
|
+
"mobile-header"?(_: {}): any;
|
|
96
|
+
"search-modal"?(_: {}): any;
|
|
99
97
|
footer?(_: {}): any;
|
|
100
98
|
}>;
|
|
101
99
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,gBAAgB,CAAA;AAQ1D,OAAO,KAAK,EAAE,sBAAsB,EAAwB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0V5E,wBAA8G;AAyB9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { type ThemeId } from '@scalar/themes';
|
|
2
|
+
import type { ReferenceConfiguration, Spec } from '../types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
currentConfiguration: {
|
|
5
|
+
type: import("vue").PropType<ReferenceConfiguration>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
isDarkMode: {
|
|
9
|
+
type: import("vue").PropType<boolean>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
parsedSpec: {
|
|
13
|
+
type: import("vue").PropType<Spec>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
rawSpec: {
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
swaggerEditorRef: {
|
|
21
|
+
type: import("vue").PropType<import("vue").DefineComponent<{
|
|
22
|
+
aiWriterMarkdown: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
};
|
|
25
|
+
value: {
|
|
26
|
+
type: import("vue").PropType<string>;
|
|
27
|
+
};
|
|
28
|
+
hocuspocusConfiguration: {
|
|
29
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
|
|
30
|
+
};
|
|
31
|
+
theme: {
|
|
32
|
+
type: import("vue").PropType<ThemeId>;
|
|
33
|
+
};
|
|
34
|
+
initialTabState: {
|
|
35
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
|
|
36
|
+
};
|
|
37
|
+
proxyUrl: {
|
|
38
|
+
type: import("vue").PropType<string>;
|
|
39
|
+
};
|
|
40
|
+
error: {
|
|
41
|
+
type: import("vue").PropType<string | import("vue").ComputedRef<string> | import("vue").Ref<string> | null>;
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
handleOpenSwaggerEditor: (action?: import("@scalar/swagger-editor").OpenSwaggerEditorActions | undefined) => void;
|
|
45
|
+
handleChangeExample: (example: import("@scalar/swagger-editor").GettingStartedExamples) => Promise<void>;
|
|
46
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
|
+
contentUpdate: (value: string) => void;
|
|
48
|
+
import: (value: string) => void;
|
|
49
|
+
changeTheme: (value: ThemeId) => void;
|
|
50
|
+
startAIWriter: (value: string[], swaggerData: string, swaggerType: "json" | "yaml") => void;
|
|
51
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
aiWriterMarkdown: {
|
|
53
|
+
type: import("vue").PropType<string>;
|
|
54
|
+
};
|
|
55
|
+
value: {
|
|
56
|
+
type: import("vue").PropType<string>;
|
|
57
|
+
};
|
|
58
|
+
hocuspocusConfiguration: {
|
|
59
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
|
|
60
|
+
};
|
|
61
|
+
theme: {
|
|
62
|
+
type: import("vue").PropType<ThemeId>;
|
|
63
|
+
};
|
|
64
|
+
initialTabState: {
|
|
65
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
|
|
66
|
+
};
|
|
67
|
+
proxyUrl: {
|
|
68
|
+
type: import("vue").PropType<string>;
|
|
69
|
+
};
|
|
70
|
+
error: {
|
|
71
|
+
type: import("vue").PropType<string | import("vue").ComputedRef<string> | import("vue").Ref<string> | null>;
|
|
72
|
+
};
|
|
73
|
+
}>> & {
|
|
74
|
+
onStartAIWriter?: ((value: string[], swaggerData: string, swaggerType: "json" | "yaml") => any) | undefined;
|
|
75
|
+
onChangeTheme?: ((value: ThemeId) => any) | undefined;
|
|
76
|
+
onImport?: ((value: string) => any) | undefined;
|
|
77
|
+
onContentUpdate?: ((value: string) => any) | undefined;
|
|
78
|
+
}, {}, {}> | null>;
|
|
79
|
+
};
|
|
80
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
81
|
+
changeTheme: (value: ThemeId) => void;
|
|
82
|
+
toggleDarkMode: () => void;
|
|
83
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
+
currentConfiguration: {
|
|
85
|
+
type: import("vue").PropType<ReferenceConfiguration>;
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
88
|
+
isDarkMode: {
|
|
89
|
+
type: import("vue").PropType<boolean>;
|
|
90
|
+
required: true;
|
|
91
|
+
};
|
|
92
|
+
parsedSpec: {
|
|
93
|
+
type: import("vue").PropType<Spec>;
|
|
94
|
+
required: true;
|
|
95
|
+
};
|
|
96
|
+
rawSpec: {
|
|
97
|
+
type: import("vue").PropType<string>;
|
|
98
|
+
required: true;
|
|
99
|
+
};
|
|
100
|
+
swaggerEditorRef: {
|
|
101
|
+
type: import("vue").PropType<import("vue").DefineComponent<{
|
|
102
|
+
aiWriterMarkdown: {
|
|
103
|
+
type: import("vue").PropType<string>;
|
|
104
|
+
};
|
|
105
|
+
value: {
|
|
106
|
+
type: import("vue").PropType<string>;
|
|
107
|
+
};
|
|
108
|
+
hocuspocusConfiguration: {
|
|
109
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
|
|
110
|
+
};
|
|
111
|
+
theme: {
|
|
112
|
+
type: import("vue").PropType<ThemeId>;
|
|
113
|
+
};
|
|
114
|
+
initialTabState: {
|
|
115
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
|
|
116
|
+
};
|
|
117
|
+
proxyUrl: {
|
|
118
|
+
type: import("vue").PropType<string>;
|
|
119
|
+
};
|
|
120
|
+
error: {
|
|
121
|
+
type: import("vue").PropType<string | import("vue").ComputedRef<string> | import("vue").Ref<string> | null>;
|
|
122
|
+
};
|
|
123
|
+
}, {
|
|
124
|
+
handleOpenSwaggerEditor: (action?: import("@scalar/swagger-editor").OpenSwaggerEditorActions | undefined) => void;
|
|
125
|
+
handleChangeExample: (example: import("@scalar/swagger-editor").GettingStartedExamples) => Promise<void>;
|
|
126
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
127
|
+
contentUpdate: (value: string) => void;
|
|
128
|
+
import: (value: string) => void;
|
|
129
|
+
changeTheme: (value: ThemeId) => void;
|
|
130
|
+
startAIWriter: (value: string[], swaggerData: string, swaggerType: "json" | "yaml") => void;
|
|
131
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
132
|
+
aiWriterMarkdown: {
|
|
133
|
+
type: import("vue").PropType<string>;
|
|
134
|
+
};
|
|
135
|
+
value: {
|
|
136
|
+
type: import("vue").PropType<string>;
|
|
137
|
+
};
|
|
138
|
+
hocuspocusConfiguration: {
|
|
139
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
|
|
140
|
+
};
|
|
141
|
+
theme: {
|
|
142
|
+
type: import("vue").PropType<ThemeId>;
|
|
143
|
+
};
|
|
144
|
+
initialTabState: {
|
|
145
|
+
type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
|
|
146
|
+
};
|
|
147
|
+
proxyUrl: {
|
|
148
|
+
type: import("vue").PropType<string>;
|
|
149
|
+
};
|
|
150
|
+
error: {
|
|
151
|
+
type: import("vue").PropType<string | import("vue").ComputedRef<string> | import("vue").Ref<string> | null>;
|
|
152
|
+
};
|
|
153
|
+
}>> & {
|
|
154
|
+
onStartAIWriter?: ((value: string[], swaggerData: string, swaggerType: "json" | "yaml") => any) | undefined;
|
|
155
|
+
onChangeTheme?: ((value: ThemeId) => any) | undefined;
|
|
156
|
+
onImport?: ((value: string) => any) | undefined;
|
|
157
|
+
onContentUpdate?: ((value: string) => any) | undefined;
|
|
158
|
+
}, {}, {}> | null>;
|
|
159
|
+
};
|
|
160
|
+
}>> & {
|
|
161
|
+
onToggleDarkMode?: (() => any) | undefined;
|
|
162
|
+
onChangeTheme?: ((value: ThemeId) => any) | undefined;
|
|
163
|
+
}, {}, {}>, {
|
|
164
|
+
"search-modal"?(_: {}): any;
|
|
165
|
+
header?(_: {}): any;
|
|
166
|
+
"mobile-header"?(_: {
|
|
167
|
+
label: string;
|
|
168
|
+
}): any;
|
|
169
|
+
editor?(_: {}): any;
|
|
170
|
+
footer?(_: {}): any;
|
|
171
|
+
}>;
|
|
172
|
+
export default _default;
|
|
173
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
174
|
+
new (): {
|
|
175
|
+
$slots: S;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
//# sourceMappingURL=ApiReferenceLayout.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAK7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4c5D,wBAA8G;AAmB9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyWxD,wBAAkD"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
isDarkMode: {
|
|
3
|
+
type: import("vue").PropType<boolean>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
toggleDarkMode: () => void;
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
isDarkMode: {
|
|
10
|
+
type: import("vue").PropType<boolean>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & {
|
|
14
|
+
onToggleDarkMode?: (() => any) | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
2
16
|
export default _default;
|
|
3
17
|
//# sourceMappingURL=DarkModeToggle.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DarkModeToggle.vue.d.ts","sourceRoot":"","sources":["../../src/components/DarkModeToggle.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DarkModeToggle.vue.d.ts","sourceRoot":"","sources":["../../src/components/DarkModeToggle.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAuJA,wBAAkD"}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
isDarkMode: {
|
|
3
|
+
type: import("vue").PropType<boolean>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
toggleDarkMode: () => void;
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
isDarkMode: {
|
|
10
|
+
type: import("vue").PropType<boolean>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & {
|
|
14
|
+
onToggleDarkMode?: (() => any) | undefined;
|
|
15
|
+
}, {}, {}>, {
|
|
2
16
|
default?(_: {}): any;
|
|
3
17
|
}>;
|
|
4
18
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAkKA,wBAA8G;AAiB9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { Spec } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
isDarkMode: {
|
|
4
|
+
type: import("vue").PropType<boolean>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
3
7
|
searchHotKey: {
|
|
4
8
|
type: import("vue").PropType<string>;
|
|
5
9
|
default: string;
|
|
@@ -8,7 +12,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
12
|
type: import("vue").PropType<Spec>;
|
|
9
13
|
required: true;
|
|
10
14
|
};
|
|
11
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
toggleDarkMode: () => void;
|
|
17
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
isDarkMode: {
|
|
19
|
+
type: import("vue").PropType<boolean>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
12
22
|
searchHotKey: {
|
|
13
23
|
type: import("vue").PropType<string>;
|
|
14
24
|
default: string;
|
|
@@ -17,7 +27,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
27
|
type: import("vue").PropType<Spec>;
|
|
18
28
|
required: true;
|
|
19
29
|
};
|
|
20
|
-
}
|
|
30
|
+
}>> & {
|
|
31
|
+
onToggleDarkMode?: (() => any) | undefined;
|
|
32
|
+
}, {
|
|
21
33
|
searchHotKey: string;
|
|
22
34
|
}, {}>;
|
|
23
35
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Sidebar.vue.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAA6B,MAAM,UAAU,CAAA
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Sidebar.vue.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAA6B,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqd/D,wBAAkD"}
|
|
@@ -154,6 +154,8 @@ export declare function useParser({ input, }: {
|
|
|
154
154
|
pathItems?: Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3_1.PathItemObject<{}>> | undefined;
|
|
155
155
|
} | undefined;
|
|
156
156
|
definitions?: import("openapi-types").OpenAPIV2.DefinitionsObject | undefined;
|
|
157
|
+
openapi?: string | undefined;
|
|
158
|
+
swagger?: string | undefined;
|
|
157
159
|
};
|
|
158
160
|
overwriteParsedSpecRef: (value: Spec) => void;
|
|
159
161
|
errorRef: Ref<string | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useParser.d.ts","sourceRoot":"","sources":["../../src/hooks/useParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAA+B,MAAM,KAAK,CAAA;AAE7E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AA4BpC;;GAEG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,GACN,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;CACnD
|
|
1
|
+
{"version":3,"file":"useParser.d.ts","sourceRoot":"","sources":["../../src/hooks/useParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAA+B,MAAM,KAAK,CAAA;AAE7E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AA4BpC;;GAEG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,GACN,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;CACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA2CwC,IAAI;;EAS5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSpec.d.ts","sourceRoot":"","sources":["../../src/hooks/useSpec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAqB,MAAM,KAAK,CAAA;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AA4CjD;;GAEG;AACH,wBAAgB,OAAO,CAAC,EACtB,aAAa,EACb,KAAK,GACN,EAAE;IACD,aAAa,CAAC,EACV,iBAAiB,GACjB,GAAG,CAAC,iBAAiB,GAAG,SAAS,CAAC,GAClC,WAAW,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAA;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;
|
|
1
|
+
{"version":3,"file":"useSpec.d.ts","sourceRoot":"","sources":["../../src/hooks/useSpec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAqB,MAAM,KAAK,CAAA;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AA4CjD;;GAEG;AACH,wBAAgB,OAAO,CAAC,EACtB,aAAa,EACb,KAAK,GACN,EAAE;IACD,aAAa,CAAC,EACV,iBAAiB,GACjB,GAAG,CAAC,iBAAiB,GAAG,SAAS,CAAC,GAClC,WAAW,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAA;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;;2BAgC+B,MAAM;EAYrC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as ApiClientModal, useApiClientStore, } from './components/ApiClientModal.vue';
|
|
2
2
|
export { default as ApiReference } from './components/ApiReference.vue';
|
|
3
|
+
export { default as ApiReferenceLayout } from './components/ApiReferenceLayout.vue';
|
|
3
4
|
export { default as Sidebar } from './components/Sidebar.vue';
|
|
4
5
|
export { default as RenderedReference } from './components/Content/Content.vue';
|
|
5
6
|
export { default as DarkModeToggle } from './components/DarkModeToggle.vue';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,cAAc,EACzB,iBAAiB,GAClB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1C,cAAc,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,cAAc,EACzB,iBAAiB,GAClB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1C,cAAc,SAAS,CAAA"}
|