@scalar/api-reference 1.0.6 → 1.1.0

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/browser/standalone.js +37310 -37184
  3. package/dist/components/ApiClientModal.vue.d.ts +0 -8
  4. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.d.ts +5 -101
  6. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceBase.vue.d.ts +34 -0
  8. package/dist/components/ApiReferenceBase.vue.d.ts.map +1 -0
  9. package/dist/components/ApiReferenceLayout.vue.d.ts +8 -15
  10. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  11. package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Schema.vue.d.ts +6 -6
  13. package/dist/components/Content/SchemaProperty.vue.d.ts +6 -6
  14. package/dist/components/DarkModeToggle.vue.d.ts +1 -15
  15. package/dist/components/DarkModeToggle.vue.d.ts.map +1 -1
  16. package/dist/components/FlowIconButton.vue.d.ts +8 -8
  17. package/dist/components/MobileHeader.vue.d.ts +1 -22
  18. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  19. package/dist/components/{FindAnythingButton.vue.d.ts → SearchButton.vue.d.ts} +1 -1
  20. package/dist/components/SearchButton.vue.d.ts.map +1 -0
  21. package/dist/components/Sidebar.vue.d.ts +11 -25
  22. package/dist/components/Sidebar.vue.d.ts.map +1 -1
  23. package/dist/helpers/getExampleFromSchema.d.ts +6 -1
  24. package/dist/helpers/getExampleFromSchema.d.ts.map +1 -1
  25. package/dist/helpers/getRequestFromOperation.d.ts.map +1 -1
  26. package/dist/helpers/index.d.ts +1 -0
  27. package/dist/helpers/index.d.ts.map +1 -1
  28. package/dist/helpers/json2xml.d.ts +5 -0
  29. package/dist/helpers/json2xml.d.ts.map +1 -0
  30. package/dist/hooks/useParser.d.ts +23 -31
  31. package/dist/hooks/useParser.d.ts.map +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +10526 -10432
  35. package/dist/types.d.ts +15 -27
  36. package/dist/types.d.ts.map +1 -1
  37. package/package.json +6 -6
  38. package/dist/components/FindAnythingButton.vue.d.ts.map +0 -1
@@ -5,10 +5,6 @@ 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
- };
12
8
  overloadShow: {
13
9
  type: import("vue").PropType<boolean>;
14
10
  };
@@ -28,10 +24,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
28
24
  type: import("vue").PropType<Spec>;
29
25
  required: true;
30
26
  };
31
- isDarkMode: {
32
- type: import("vue").PropType<boolean>;
33
- required: true;
34
- };
35
27
  overloadShow: {
36
28
  type: import("vue").PropType<boolean>;
37
29
  };
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAyOzB,GAAG;0BACG,GAAG;;AAzOtC,wBAwP0G;AAgB1G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,107 +1,11 @@
1
- import { type ThemeId } from '@scalar/themes';
2
- import type { ReferenceConfiguration } from '../types';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
- proxyUrl: {
5
- type: import("vue").PropType<string>;
6
- };
7
- theme: {
8
- type: import("vue").PropType<ThemeId>;
9
- };
1
+ declare const _default: import("vue").DefineComponent<{
10
2
  configuration: {
11
- type: import("vue").PropType<ReferenceConfiguration>;
12
- };
13
- aiWriterMarkdown: {
14
- type: import("vue").PropType<string>;
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
- };
22
- spec: {
23
- type: import("vue").PropType<string>;
24
- };
25
- specUrl: {
26
- type: import("vue").PropType<string>;
27
- };
28
- specResult: {
29
- type: import("vue").PropType<Record<any, any>>;
30
- };
31
- showSidebar: {
32
- type: import("vue").PropType<boolean>;
33
- default: undefined;
34
- };
35
- footerBelowSidebar: {
36
- type: import("vue").PropType<boolean>;
37
- default: undefined;
38
- };
39
- isEditable: {
40
- type: import("vue").PropType<boolean>;
41
- default: undefined;
42
- };
43
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
- changeTheme: (value: ThemeId) => void;
45
- updateContent: (value: string) => void;
46
- startAIWriter: (value: string[], swaggerData: string, swaggerType: "json" | "yaml") => void;
47
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
- proxyUrl: {
49
- type: import("vue").PropType<string>;
50
- };
51
- theme: {
52
- type: import("vue").PropType<ThemeId>;
3
+ type: import("vue").PropType<import("src/types").ReferenceConfiguration>;
53
4
  };
5
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
54
6
  configuration: {
55
- type: import("vue").PropType<ReferenceConfiguration>;
56
- };
57
- aiWriterMarkdown: {
58
- type: import("vue").PropType<string>;
59
- };
60
- hocuspocusConfiguration: {
61
- type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
62
- };
63
- initialTabState: {
64
- type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
65
- };
66
- spec: {
67
- type: import("vue").PropType<string>;
68
- };
69
- specUrl: {
70
- type: import("vue").PropType<string>;
7
+ type: import("vue").PropType<import("src/types").ReferenceConfiguration>;
71
8
  };
72
- specResult: {
73
- type: import("vue").PropType<Record<any, any>>;
74
- };
75
- showSidebar: {
76
- type: import("vue").PropType<boolean>;
77
- default: undefined;
78
- };
79
- footerBelowSidebar: {
80
- type: import("vue").PropType<boolean>;
81
- default: undefined;
82
- };
83
- isEditable: {
84
- type: import("vue").PropType<boolean>;
85
- default: undefined;
86
- };
87
- }>> & {
88
- onChangeTheme?: ((value: ThemeId) => any) | undefined;
89
- onUpdateContent?: ((value: string) => any) | undefined;
90
- onStartAIWriter?: ((value: string[], swaggerData: string, swaggerType: "json" | "yaml") => any) | undefined;
91
- }, {
92
- showSidebar: boolean;
93
- footerBelowSidebar: boolean;
94
- isEditable: boolean;
95
- }, {}>, {
96
- header?(_: {}): any;
97
- "mobile-header"?(_: {}): any;
98
- "search-modal"?(_: {}): any;
99
- footer?(_: {}): any;
100
- }>;
9
+ }>>, {}, {}>;
101
10
  export default _default;
102
- type __VLS_WithTemplateSlots<T, S> = T & {
103
- new (): {
104
- $slots: S;
105
- };
106
- };
107
11
  //# sourceMappingURL=ApiReference.vue.d.ts.map
@@ -1 +1 @@
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuW5E,wBAA8G;AA2B9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue.ts"],"names":[],"mappings":";;;;;;;;;AAsLA,wBAAkD"}
@@ -0,0 +1,34 @@
1
+ import { type ThemeId } from '@scalar/themes';
2
+ import { type ReferenceConfiguration } from '../types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ configuration: {
5
+ type: import("vue").PropType<ReferenceConfiguration>;
6
+ };
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ changeTheme: (value: ThemeId) => void;
9
+ updateContent: (value: string) => void;
10
+ startAIWriter: (value: string[], swaggerData: string, swaggerType: "json" | "yaml") => void;
11
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ configuration: {
13
+ type: import("vue").PropType<ReferenceConfiguration>;
14
+ };
15
+ }>> & {
16
+ onChangeTheme?: ((value: ThemeId) => any) | undefined;
17
+ onUpdateContent?: ((value: string) => any) | undefined;
18
+ onStartAIWriter?: ((value: string[], swaggerData: string, swaggerType: "json" | "yaml") => any) | undefined;
19
+ }, {}, {}>, {
20
+ header?(_: {
21
+ breadcrumb: string;
22
+ }): any;
23
+ "sidebar-start"?(_: {}): any;
24
+ "sidebar-end"?(_: {}): any;
25
+ "content-start"?(_: {}): any;
26
+ "content-end"?(_: {}): any;
27
+ }>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
34
+ //# sourceMappingURL=ApiReferenceBase.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceBase.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceBase.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,gBAAgB,CAAA;AAO1D,OAAO,EAEL,KAAK,sBAAsB,EAG5B,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0UjB,wBAA8G;AAqB9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,14 +1,10 @@
1
1
  import { type ThemeId } from '@scalar/themes';
2
2
  import type { ReferenceConfiguration, Spec } from '../types';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
- currentConfiguration: {
4
+ configuration: {
5
5
  type: import("vue").PropType<ReferenceConfiguration>;
6
6
  required: true;
7
7
  };
8
- isDarkMode: {
9
- type: import("vue").PropType<boolean>;
10
- required: true;
11
- };
12
8
  parsedSpec: {
13
9
  type: import("vue").PropType<Spec>;
14
10
  required: true;
@@ -81,14 +77,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
81
77
  updateContent: (value: string) => void;
82
78
  toggleDarkMode: () => void;
83
79
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
84
- currentConfiguration: {
80
+ configuration: {
85
81
  type: import("vue").PropType<ReferenceConfiguration>;
86
82
  required: true;
87
83
  };
88
- isDarkMode: {
89
- type: import("vue").PropType<boolean>;
90
- required: true;
91
- };
92
84
  parsedSpec: {
93
85
  type: import("vue").PropType<Spec>;
94
86
  required: true;
@@ -161,13 +153,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
161
153
  onChangeTheme?: ((value: ThemeId) => any) | undefined;
162
154
  onUpdateContent?: ((value: string) => any) | undefined;
163
155
  }, {}, {}>, {
164
- "search-modal"?(_: {}): any;
165
- header?(_: {}): any;
166
- "mobile-header"?(_: {
167
- label: string;
156
+ header?(_: {
157
+ breadcrumb: string;
168
158
  }): any;
159
+ "sidebar-start"?(_: {}): any;
160
+ "sidebar-end"?(_: {}): any;
169
161
  editor?(_: {}): any;
170
- footer?(_: {}): any;
162
+ "content-start"?(_: {}): any;
163
+ "content-end"?(_: {}): any;
171
164
  }>;
172
165
  export default _default;
173
166
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8c5D,wBAA8G;AAqB9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAM7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4Z5D,wBAA8G;AAqB9G,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":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExampleRequest.vue.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;AA2b1D,wBAAkD"}
1
+ {"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExampleRequest.vue.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;AA4b1D,wBAAkD"}
@@ -1,21 +1,21 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- value: {
3
- type: import("vue").PropType<Record<string, any>>;
4
- };
5
2
  name: {
6
3
  type: import("vue").PropType<string>;
7
4
  };
5
+ value: {
6
+ type: import("vue").PropType<Record<string, any>>;
7
+ };
8
8
  level: {
9
9
  type: import("vue").PropType<number>;
10
10
  default: number;
11
11
  };
12
12
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
- value: {
14
- type: import("vue").PropType<Record<string, any>>;
15
- };
16
13
  name: {
17
14
  type: import("vue").PropType<string>;
18
15
  };
16
+ value: {
17
+ type: import("vue").PropType<Record<string, any>>;
18
+ };
19
19
  level: {
20
20
  type: import("vue").PropType<number>;
21
21
  default: number;
@@ -1,10 +1,10 @@
1
1
  declare const _default_1: import("vue").DefineComponent<{
2
- value: {
3
- type: import("vue").PropType<Record<string, any>>;
4
- };
5
2
  name: {
6
3
  type: import("vue").PropType<string>;
7
4
  };
5
+ value: {
6
+ type: import("vue").PropType<Record<string, any>>;
7
+ };
8
8
  required: {
9
9
  type: import("vue").PropType<boolean>;
10
10
  default: boolean;
@@ -14,12 +14,12 @@ declare const _default_1: import("vue").DefineComponent<{
14
14
  default: number;
15
15
  };
16
16
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
- value: {
18
- type: import("vue").PropType<Record<string, any>>;
19
- };
20
17
  name: {
21
18
  type: import("vue").PropType<string>;
22
19
  };
20
+ value: {
21
+ type: import("vue").PropType<Record<string, any>>;
22
+ };
23
23
  required: {
24
24
  type: import("vue").PropType<boolean>;
25
25
  default: boolean;
@@ -1,17 +1,3 @@
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
- }, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
16
2
  export default _default;
17
3
  //# 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":";;;;;;;;;;;;;;;AAuJA,wBAAkD"}
1
+ {"version":3,"file":"DarkModeToggle.vue.d.ts","sourceRoot":"","sources":["../../src/components/DarkModeToggle.vue.ts"],"names":[],"mappings":";AA8IA,wBAAkD"}
@@ -5,27 +5,27 @@ declare const _default: import("vue").DefineComponent<{
5
5
  type: import("vue").PropType<string>;
6
6
  required: true;
7
7
  };
8
- icon: {
9
- type: import("vue").PropType<Icon>;
10
- required: true;
11
- };
12
8
  variant: {
13
9
  type: import("vue").PropType<ButtonVariant>;
14
10
  default: string;
15
11
  };
12
+ icon: {
13
+ type: import("vue").PropType<Icon>;
14
+ required: true;
15
+ };
16
16
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  label: {
18
18
  type: import("vue").PropType<string>;
19
19
  required: true;
20
20
  };
21
- icon: {
22
- type: import("vue").PropType<Icon>;
23
- required: true;
24
- };
25
21
  variant: {
26
22
  type: import("vue").PropType<ButtonVariant>;
27
23
  default: string;
28
24
  };
25
+ icon: {
26
+ type: import("vue").PropType<Icon>;
27
+ required: true;
28
+ };
29
29
  }>>, {
30
30
  variant: ButtonVariant;
31
31
  }, {}>;
@@ -1,24 +1,3 @@
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
- }, {}, {}>, {
16
- default?(_: {}): any;
17
- }>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
18
2
  export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
22
- };
23
- };
24
3
  //# sourceMappingURL=MobileHeader.vue.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue.ts"],"names":[],"mappings":";AAiIA,wBAAkD"}
@@ -12,4 +12,4 @@ declare const _default: import("vue").DefineComponent<{
12
12
  searchHotKey: string;
13
13
  }, {}>;
14
14
  export default _default;
15
- //# sourceMappingURL=FindAnythingButton.vue.d.ts.map
15
+ //# sourceMappingURL=SearchButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchButton.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAiJA,wBAAkD"}
@@ -1,36 +1,22 @@
1
1
  import type { Spec } from '../types';
2
- declare const _default: import("vue").DefineComponent<{
3
- isDarkMode: {
4
- type: import("vue").PropType<boolean>;
5
- required: true;
6
- };
7
- searchHotKey: {
8
- type: import("vue").PropType<string>;
9
- default: string;
10
- };
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
11
3
  parsedSpec: {
12
4
  type: import("vue").PropType<Spec>;
13
5
  required: true;
14
6
  };
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
- };
22
- searchHotKey: {
23
- type: import("vue").PropType<string>;
24
- default: string;
25
- };
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
8
  parsedSpec: {
27
9
  type: import("vue").PropType<Spec>;
28
10
  required: true;
29
11
  };
30
- }>> & {
31
- onToggleDarkMode?: (() => any) | undefined;
32
- }, {
33
- searchHotKey: string;
34
- }, {}>;
12
+ }>>, {}, {}>, {
13
+ "sidebar-start"?(_: {}): any;
14
+ "sidebar-end"?(_: {}): any;
15
+ }>;
35
16
  export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
36
22
  //# sourceMappingURL=Sidebar.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Sidebar.vue.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,IAAI,EAA6B,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAod/D,wBAAkD"}
1
+ {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Sidebar.vue.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,IAAI,EAA6B,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;AA4Z/D,wBAA8G;AAI9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -6,6 +6,11 @@ export declare const getExampleFromSchema: (schema: Record<string, any>, options
6
6
  * The fallback string for empty string values.
7
7
  * @default ''
8
8
  **/
9
- emptyString: string;
9
+ emptyString?: string;
10
+ /**
11
+ * Whether to use the XML tag names as keys
12
+ * @default false
13
+ */
14
+ xml?: boolean;
10
15
  }, level?: number) => any;
11
16
  //# sourceMappingURL=getExampleFromSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getExampleFromSchema.d.ts","sourceRoot":"","sources":["../../src/helpers/getExampleFromSchema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,oBAAoB,WACvB,OAAO,MAAM,EAAE,GAAG,CAAC,YACjB;IACR;;;QAGI;IACJ,WAAW,EAAE,MAAM,CAAA;CACpB,UACM,MAAM,KACZ,GA4FF,CAAA"}
1
+ {"version":3,"file":"getExampleFromSchema.d.ts","sourceRoot":"","sources":["../../src/helpers/getExampleFromSchema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,oBAAoB,WACvB,OAAO,MAAM,EAAE,GAAG,CAAC,YACjB;IACR;;;QAGI;IACJ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;CACd,UACM,MAAM,KACZ,GAqHF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getRequestFromOperation.d.ts","sourceRoot":"","sources":["../../src/helpers/getRequestFromOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAGxE,eAAO,MAAM,uBAAuB,cACvB,oBAAoB,YACrB;IACR,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,KACA,QAAQ,kBAAkB,CA6C5B,CAAA"}
1
+ {"version":3,"file":"getRequestFromOperation.d.ts","sourceRoot":"","sources":["../../src/helpers/getRequestFromOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAElB,oBAAoB,EACrB,MAAM,UAAU,CAAA;AAIjB,eAAO,MAAM,uBAAuB,cACvB,oBAAoB,YACrB;IACR,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,KACA,QAAQ,kBAAkB,CAuB5B,CAAA"}
@@ -15,6 +15,7 @@ export * from './getVariableNames';
15
15
  export * from './hasModels';
16
16
  export * from './hasSecuritySchemes';
17
17
  export * from './isJsonString';
18
+ export * from './json2xml';
18
19
  export * from './mapFromObject';
19
20
  export * from './objectMerge';
20
21
  export * from './prettyPrintJson';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This function converts an object to XML.
3
+ */
4
+ export declare function json2xml(data: Record<string, any>, tab?: string): string;
5
+ //# sourceMappingURL=json2xml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json2xml.d.ts","sourceRoot":"","sources":["../../src/helpers/json2xml.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,UA+C/D"}
@@ -35,25 +35,29 @@ export declare function useParser({ input, }: {
35
35
  description: string;
36
36
  content: {
37
37
  "application/json": {
38
- schema: {
39
- type: string;
40
- required: string[];
41
- properties: import("../types").ContentProperties;
42
- };
38
+ schema: any;
39
+ example?: any;
40
+ examples?: any;
41
+ };
42
+ "application/x-www-form-urlencoded": {
43
+ schema: any;
44
+ example?: any;
45
+ examples?: any;
43
46
  };
44
47
  "application/xml": {
45
- schema: {
46
- type: string;
47
- required: string[];
48
- properties: import("../types").ContentProperties;
49
- };
48
+ schema: any;
49
+ example?: any;
50
+ examples?: any;
51
+ };
52
+ "multipart/form-data": {
53
+ schema: any;
54
+ example?: any;
55
+ examples?: any;
50
56
  };
51
57
  "text/plain": {
52
- schema: {
53
- type: string;
54
- required: string[];
55
- properties: import("../types").ContentProperties;
56
- };
58
+ schema: any;
59
+ example?: any;
60
+ examples?: any;
57
61
  };
58
62
  "text/html": {
59
63
  schema: {
@@ -62,19 +66,10 @@ export declare function useParser({ input, }: {
62
66
  properties: import("../types").ContentProperties;
63
67
  };
64
68
  };
65
- "application/x-www-form-urlencoded": {
66
- schema: {
67
- type: string;
68
- required: string[];
69
- properties: import("../types").ContentProperties;
70
- };
71
- };
72
- "multipart/form-data": {
73
- schema: {
74
- type: string;
75
- required: string[];
76
- properties: import("../types").ContentProperties;
77
- };
69
+ "application/octet-stream": {
70
+ schema?: any;
71
+ example?: any;
72
+ examples?: any;
78
73
  };
79
74
  };
80
75
  required: boolean;
@@ -82,9 +77,6 @@ export declare function useParser({ input, }: {
82
77
  summary: string;
83
78
  tags: string[];
84
79
  };
85
- responses: Record<string, import("../types").Response & {
86
- headers: import("../types").ExampleResponseHeaders;
87
- }>;
88
80
  }[];
89
81
  }[];
90
82
  info: {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA6CwC,IAAI;;EAS5C"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA6CwC,IAAI;;EAS5C"}
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  export { default as ApiClientModal, useApiClientStore, } from './components/ApiClientModal.vue';
2
2
  export { default as ApiReference } from './components/ApiReference.vue';
3
3
  export { default as ApiReferenceLayout } from './components/ApiReferenceLayout.vue';
4
+ export { default as ApiReferenceBase } from './components/ApiReferenceBase.vue';
4
5
  export { default as Sidebar } from './components/Sidebar.vue';
5
6
  export { default as RenderedReference } from './components/Content/Content.vue';
6
7
  export { default as DarkModeToggle } from './components/DarkModeToggle.vue';
7
8
  export { default as SearchModal } from './components/SearchModal.vue';
8
- export { useDarkModeState } from './hooks';
9
9
  export * from './types';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -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,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"}
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,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAC/E,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,cAAc,SAAS,CAAA"}